[android-developers] What is wavelock in PowerManager API

2011-09-08 Thread Sarath Krishna
I was reading about PowerManager API . But, I couldn't understand the term wavelock. What is a wavelock? What does it exactly do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] java.lang.IllegalArgumentException: Unknown URL with Android 2.1

2011-07-24 Thread Sarath Krishna
Wrote the following code to insert an item into sqlite database. This code worked fine in Android 1.6 device but I got an error in Android 2.1 device public static final String PROVIDER_NAME = org.books; public static final Uri CONTENT_URI = Uri.parse(content://+ PROVIDER_NAME +

[android-developers] java.lang.IllegalArgumentException: Unknown URL content://org.books/books

2011-07-23 Thread Sarath Krishna
Wrote the following code to insert an item into sqlite database public static final String PROVIDER_NAME = org.books; public static final Uri CONTENT_URI = Uri.parse(content://+ PROVIDER_NAME + /books); private static final String DATABASE_TABLE = titles; public Uri insert(Uri uri,

[android-developers] error with Trafficstats

2011-04-12 Thread Sarath Krishna
Hello Dianne thanks for the reply. I am using the API level which supports this function. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] error with Trafficstats

2011-04-12 Thread Sarath Krishna
Hello Dianne thanks for the reply. I am using the API level which supports this function. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] error with Trafficstats

2011-04-12 Thread Sarath Krishna
I am using API level is 8 (android 2.2) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] package 3g data

2011-04-11 Thread Sarath Krishna
Hi, I want to write a code for tracking 3g data usage in my phone. Can anyone please tell me which android package should I use for this purpose. thanks in advance sarath -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] error with Trafficstats

2011-04-11 Thread Sarath Krishna
Hi, When I tried to use the TrafficStats class of android.net package in the following way long sent = TrafficStats.getMobileRxBytes(); I got the below error 04-11 22:12:06.449: ERROR/AndroidRuntime(2916): java.lang.NoClassDefFoundError: android.net.TrafficStats 04-11 22:12:06.449:

[android-developers] Httpposter

2011-04-06 Thread Sarath Krishna
Hi, This is the code I wrote a code for uploading data from android phone to a server String url = http://www.orsas.com/ServiceMatalan.php;; MapString, String kvPairs = new HashMapString, String(); kvPairs.put(vehicle, dataRecord.toString()); //

[android-developers] Httposter could not be resolved

2011-04-05 Thread Sarath Krishna
Hello every one, This is the code I wrote a code for uploading data from android phone to a server String url = http://www.orsas.com/ServiceMatalan.php;; MapString, String kvPairs = new HashMapString, String(); kvPairs.put(vehicle, dataRecord.toString());

[android-developers] Re: PACKAGE_USAGE_STATS exception

2011-03-25 Thread Sarath Krishna
use it... hence the word restricted. Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Thu, Mar 24, 2011 at 3:31 PM, Sarath Krishna sarathkrishn...@gmail.comwrote: Hello everyone, when I try to call getAllPkgUsageStats(); function

[android-developers] PACKAGE_USAGE_STATS exception

2011-03-25 Thread Sarath Krishna
I am running it on samsung galaxy phone. How can I use this permission on this phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Sarath Krishna
Hello everyone, when I try to call getAllPkgUsageStats(); function of IUsageStats package I get this exception. ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to create service org.gps.CPUusage: java.lang.SecurityException: Neither user 10081 nor current process has

[android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Sarath Krishna
Hello everyone, when I try to call getAllPkgUsageStats(); function of IUsageStats package I get this exception. ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to create service org.gps.CPUusage: java.lang.SecurityException: Neither user 10081 nor current process has

[android-developers] class cast exception

2011-03-09 Thread Sarath Krishna
I am getting class cat exception while running the following code. I checked the code but everything was fine . Can any one please help me out public class GPSsens extends Service { /** Name of the service used for logging */ private static final String TAG = SystemSensService;

[android-developers] android code for displaying signal strength of wifi access point

2009-11-29 Thread Sarath Krishna
hii..I need to develop an application which scans the wifi access points and also gives their signal strength.I wrote the code for scanning the access points but I dont know what packages to use for measuring the displaying strength.Can anyone please tell me how to display the signal strength,