Questions tagged [telephonymanager]

Telephony class for Android devices

A class that provides access to information about the telephony services on an Android device

781 questions
-1
votes
3 answers

android device ID generation gives an error

In my Android app I wanna generate the device ID. At first I just generate the device ID inside an activity as below. It worked fine. TelephonyManager tManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String uid =…
Samantha Withanage
  • 3,811
  • 10
  • 30
  • 59
-1
votes
3 answers

Null check results in getLine1Number cannot be resolved or is not a field

I'm really not sure why this is happening. It seems as if getLine1Number isn't being instantiated - but it seems as if the 2nd reference to it doesn't need it (it throws no errors when I comment out the null check. WORKING: public class…
HelloMojo
  • 367
  • 1
  • 4
  • 20
-1
votes
1 answer

Purpose of Telephony Provider

Some background information: I have a certain yet to be released tablet and sadly the people who designed it seemed to have removed TelephonyProvider.apk Here's how I've reached that conclusion : When I go to More... in WIRELESS & NETWORKS there…
Karthik Balakrishnan
  • 4,353
  • 6
  • 37
  • 69
-1
votes
1 answer

How to know when call is made and connected?

hello im using a broadcast reciever to try to find out when a call is "made" and after the call is "made" also when the made call is "connected" i searched around and came up with this code but this works when recievng a call and making a call, all…
JRowan
  • 6,824
  • 8
  • 40
  • 59
-1
votes
4 answers

android tablet has no phone and code gives error when checking

I have an app that works fine on a android phone , but when I try to run it on the Nexus7 which has no phone the code fails with a force stop at the location indicated. What is the solution? How do I check to see if the feature is there and what…
user1445716
  • 442
  • 6
  • 18
-2
votes
1 answer

Android Studio - Java - TelephonyManager - error: non-static method

How can i solve the this problem? I don't see System.out.println I want to see System.out.println ethe of in. I see error in logcat. My codes are in the external java class. My codes are here: package com.example.test; import…
test3r123
  • 1
  • 2
-2
votes
1 answer

How to move TelephonyManager to different class then MainActivity

im making and APP about the Network information etc. I got a problem when i want to use TelephonyManager in different class then my MainActivity class. When i have a simple code in one class then everything is working OK, but the problem is when i…
Headsman
  • 25
  • 5
-2
votes
1 answer

how we get mobile number of any device in android

I am using this method to get the device number. TelephonyManager telemamanger = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String getSimNumber = telemamanger.getLine1Number(); but this method only works in android 7.0 and not…
Arjun
  • 25
  • 1
-2
votes
1 answer

How to recharge sim card programmatically in android

I want to make an app that accepts voucher of some network operator and recharge the sim card, I tried to use Telephony Manager but i couldn't find such thing to help me make the call within the app not via an intent to another calling app.
Abdalltif Basher
  • 617
  • 7
  • 19
-2
votes
1 answer

What exactly is a NeighboringCell in android.

What exactly is a NeighboringCell in android.
Svel04
  • 149
  • 10
-2
votes
1 answer

How to get the telecom provider name of dual sim in android

public String getImsiSIM1() { return imsiSIM1; } public String getImsiSIM2() { return imsiSIM2; } public boolean isSIM1Ready() { return isSIM1Ready; } public boolean isSIM2Ready() { return isSIM2Ready; } /*public static void…
-2
votes
1 answer

Getting java.lang.SecurityException when requesting for SIM info

I am trying to make an app that gives one the Sim card number, IMEI number and phone number. However when I do it I get the following error: java.lang.RuntimeException: Unable to start activity…
-2
votes
3 answers

Don't know why code isnt working.. Android/Java

I am currently trying to create an app that can track how much time I spend in a phone call and then display that on a toast message after clicking a button. Code found here: http://paste.ideaslabs.com/show/6INd0afyi I can't seem to figure out why…
fouadalnoor
  • 197
  • 2
  • 5
  • 14
-3
votes
1 answer

How to get user both inserted sim card number?

In my app i want to show the both inserted sim card mobile number to user in android studio . But i suffer from problem in which , i stuck at getting of second inserted sim mobile number . Help me to solve this.
user13301557
  • 11
  • 1
  • 2
-4
votes
1 answer

How to send email with phone device information without user concern?

I'm working on an security application in which my application will send a mail to the server automatically without the phone user disturbance. What I need is Colletct user phone number and imei number Send a email with the information, but user…
Tanvir Durlove
  • 768
  • 2
  • 9
  • 21
1 2 3
52
53