Android – Access Cell Phone details (Cell-Id, LAC, Signal Strength)

Originalmente publicado en Show me the code! - By Davanum Srinivas:

Here is the screen shot

001

Next Step(s)!

Need to figure out how to use cell-id/lac information to get a lat/long for the phone location! Please drop me a note or add comments here if you have an idea on how to do it. Thanks.

Source

 package org.apache; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.telephony.PhoneStateIntentReceiver; import android.telephony.ServiceState; import android.util.Log; import android.widget.EditText; public class LocateMe extends Activity { private PhoneStateIntentReceiver mPhoneStateReceiver; private EditText mEditLac; private EditText mEditCid; private EditText mEditSignal; private static final int MY_NOTIFICATION_ID = 0x100; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); mPhoneStateReceiver = new PhoneStateIntentReceiver(this, new ServiceStateHandler()); mPhoneStateReceiver.notifyServiceState(MY_NOTIFICATION_ID); mPhoneStateReceiver.notifyPhoneCallState(MY_NOTIFICATION_ID); mPhoneStateReceiver.notifySignalStrength(MY_NOTIFICATION_ID); mPhoneStateReceiver.registerIntent(); mEditLac = (EditText) findViewById(R.id.lac); mEditCid = (EditText) findViewById(R.id.cell_id); mEditSignal = (EditText) findViewById(R.id.signal_strength); } private class ServiceStateHandler extends Handler { public void handleMessage(Message msg) { Log.i("LocateMe", "In handleMessage : " + msg.what); switch (msg.what) { case MY_NOTIFICATION_ID: ServiceState state = mPhoneStateReceiver.getServiceState(); int cid = state.getCid()…

Ver original 39 palabras más

How did Nick Hanauer get onto TED’s home page?!

Originalmente publicado en TED Blog:

Nick Hanauer and TED Curator Chris Anderson are both "really bad at holding grudges." Here, the two talk before an in-office event. Photo: Ryan Lash Nick Hanauer and I are both really bad at holding grudges. Here, we talk before an in-office event last week. Photo: Ryan Lash

There’s a bit of a back story behind today’s TED Talk, in which Nick Hanauer issues a powerful warning to his fellow zillionaire ‘plutocrats’ that it’s time to take the inequality issue seriously, and makes the case to dramatically raise the minimum wage. Some of you may remember that two years ago there was an online spat between Nick and TED over a prior talk of his, also about inequality. We liked the talk, and agreed with its sentiments, but saw a few key problems with it that kept us from posting it on our home page (though we did post it on YouTube.) We were accused of censoring him, and the row generated an extraordinary level of heat.

Roll the clock forward two years, and worries about growing economic inequality have only increased. Nick has become…

Ver original 110 palabras más

Why the Pope’s embrace of science matters

Originalmente publicado en ideas.ted.com:

On June 18, Pope Francis issued the encyclical Laudato Si: On care for our common home. The letter has been widely praised for supporting the science on climate change. But it goes much further than many expected in documenting the phenomenal changes that our planet is undergoing, beyond climate. And the story of how the Pope has integrated science and religion (not always the easiest of companions, let’s face it) indicates, to me at least, a profound shift in world view.

The Pontifical Academy of Sciences has been bringing together climate scientists, economists and scholars pretty much since Francis’ papacy began in March 2013. My colleagues, professors Paul Crutzen, Veerabhadran Ramanathan and John Schellnhuber, have been part of a new level of dialogue between Earth system scientists and the Vatican. In April of this year, I attended a one-day scientific workshop on the moral dimensions of climate change and sustainable humanity.

Ver original 521 palabras más

What teens really want to know about sex

Originalmente publicado en ideas.ted.com:

Remember how weird it was to ask questions about sex as a teenager? High school teacher Al Vernacchio answers his students’ questions about everything from DIY birth control to how to tell when a guy really likes you, in an excerpt from his new book.

On the first day of my Sexuality and Society class, I don’t pass around anatomy drawings. I don’t hand out pamphlets about safer sex, although those are stacked on a table near the door. Instead, the first thing I do is establish ground rules. People should speak for themselves, laughter is OK, we won’t ask “personal history” questions, and we’ll work to create a community of peers who care about and respect one another. Only then can we get to work.

I’m all about context. Talking about sexuality, intimacy, relationships, and pleasure can’t be done in a vacuum.

In the back corner of my classroom is an…

Ver original 1.365 palabras más

Una puta mierda

Originalmente publicado en SCIENTIA:

alumNo es un alumno más. Este es el segundo año que le he dado clase y en estos dos cursos no ha faltado ni un solo día. Participa en todas las actividades programadas en el aula con un interés que pocas veces he visto en mis más de quince años de experiencia docente. Pregunta, discute, debate… pero siempre desde el respeto hacia el profesor y hacia sus compañeros.

Ver original 1.133 palabras más

Is DARPA’s Memex search engine a Google-killer?

4 reasons why talented women don’t thrive in tech

Originalmente publicado en ideas.ted.com:

We’ve all heard about the gender gap in tech. Women simply aren’t thriving in one of the most promising fields in the United States — and not for lack of talent. And here’s the truth: It’s not solely a problem for women. It’s a problem for men, too. In just five years, there will be a million unfilled computer science–related jobs in the United States, which according to our calculations could amount to a $500 billion opportunity cost. Tech companies are producing jobs three times faster than the U.S. is producing computer scientists. There are incredible opportunities here. We need women to help fill these jobs, and we need them now.

The reasons why women and people of color are not pursuing computer science jobs are complicated. I’ve thought a lot about this over the past 16 months, as I’ve directed my documentary on the subject, Code: Debugging the Gender Gap

Ver original 699 palabras más

Seguir

Recibe cada nueva publicación en tu buzón de correo electrónico.

Únete a otros 97 seguidores