[android-developers] Chances of TELEPHONY_SERVICE return null

2012-10-24 Thread thejaswi s
Is there any chances of getting TELEPHONY_SERVICE as null ? TelephonyManager teleman = (TelephonyManager) getBaseContext() .getSystemService(Context.TELEPHONY_SERVICE); I mean is there any chances of getting teleman as null in the above line ? Thanks in advance for reply. -- You received

[android-developers] java.lang.NullPointerException and Unknown Source

2012-10-22 Thread thejaswi s
In my code I am getting this error. I pasted full log cat java.lang.RuntimeException: Unable to start activity java.lang.RuntimeException: Unable to start activity ComponentInfo{ sa.app.activity.EmailRegistartionhttp://sa.appoptix.com/sa.appoptix.com.activity.EmailRegistartion}:

[android-developers] Call Graph in Android

2012-09-24 Thread thejaswi s
would like to have the call graph of the application...like which class is calling which..and so on..thank u. Regards Thejaswi S -- 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

Re: [android-developers] Call Graph in Android

2012-09-24 Thread thejaswi s
can please suggest few. On Mon, Sep 24, 2012 at 11:34 AM, Kristopher Micinski krismicin...@gmail.com wrote: this has nothing to do with Android... That said, many common Java analysis tools will generate call graphs. kris On Mon, Sep 24, 2012 at 1:59 AM, thejaswi s thejasw...@gmail.com

[android-developers] How to put outline for a gridview(or table view) boxes in android

2012-09-15 Thread thejaswi s
In my application I want a 5x5 grid view(or table view). I do not want to use image view or text view in side the grid view(or table view). 1. I just want to put out lines for the cells in side that grid view. Is it possible and how can I do it? 2. I also want to take identity of

[android-developers] How to generate random numbers between 1 to 8?

2012-08-30 Thread thejaswi s
In my application I want to generate random number between 1 to 8 and there should not be 5,6 and 7. i.e. random numbers must be (1, 2, 3, 4, 8). Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to generate random numbers between 1 to 8?

2012-08-30 Thread thejaswi s
ya, thanks. I got. On Thu, Aug 30, 2012 at 5:05 PM, Parthi K parthisof...@gmail.com wrote: in java support random method call random object . On Thu, Aug 30, 2012 at 3:43 PM, thejaswi s thejasw...@gmail.com wrote: In my application I want to generate random number between 1 to 8

[android-developers] Don't understand the constants provided in powertutor

2012-08-27 Thread thejaswi s
I was just going through powertutor source code and found many constants related to WiFi, CPU and LCD components. I can understand the flow but not getting about these constants.I am curious to know about this. Where these constants are derived from ? what are the standard values? etc.. Please

Re: [android-developers] Re: Don't understand the constants provided in powertutor

2012-08-27 Thread thejaswi s
*/ It's probably *AIDL*. http://developer.android.com/guide/components/aidl.html On Monday, August 27, 2012 7:59:03 AM UTC-5, thejaswi s wrote: I was just going through powertutor source code and found many constants related to WiFi, CPU and LCD components. I can understand the flow

Re: [android-developers] How to get battery usage from cpu usage in android

2012-08-22 Thread thejaswi s
into account CPU stepping etc to some degree) that is very much an approximation. It is not accurate enough that I would want it available through an API. On Tue, Aug 21, 2012 at 8:53 PM, thejaswi s thejasw...@gmail.com wrote: A bove link suggested by Asheesh arya saying about present

[android-developers] How to get battery usage from cpu usage in android

2012-08-21 Thread thejaswi s
I got cpu usage from following link http://stackoverflow.com/questions/3118234/how-to-get-memory-usage-and-cpu-usage-in-android. Can any one give idea about how much battery(in joules or watt) consumed to use this amount of cpu. Is there any formula to calculate it. Thanks in advance. -- You

Re: [android-developers] How to get battery usage from cpu usage in android

2012-08-21 Thread thejaswi s
A bove link suggested by Asheesh arya saying about present technology , plugged, scale, health, voltage, level, temperature, status . but not about how much battery is consuming to process cpu cycles. So please tel me how cpu usage related with battery usage using a equation. On Tue, Aug 21,

[android-developers] How to get cpu elapsed of other processes which are in background in android?

2012-08-15 Thread thejaswi s
How to get cpu elapsed of other processes which are in background in android? In my application I want to get CPU elapsed time of other processes which are running in background. How can I do it. Thanks in advance. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] BroadCast Receiver()

2012-08-07 Thread thejaswi s
The class BroadcastReceiver defines the onReceive() method. Only during this method your BroadcastReceiver object will be valid, afterwards the Android system can recycle the BroadcastReceiver. Therefore you cannot perform any asynchronous operation in the onReceive() method. refer:

Re: [android-developers] Is there any other way to find traffic stats in android other than using trafficstats API?

2012-08-03 Thread thejaswi s
Data usage per application. Based on uid I can take third party application data usage from my app using 'TrafficStats' API. But this will get reset in sertain condition. So is there any other way to take data usage per application. -- You received this message because you are subscribed to the

[android-developers] Is there any other way to find traffic stats in android other than using trafficstats API?

2012-08-02 Thread thejaswi s
In my application I want to calculate data when application is in foreground. I am using Trafficstats API. But some time this value get reset and start from 0. Is there any other method or API to take data usage other than Trafficstats which will never get reset. Thanks in advance -- You

[android-developers] Is rx tx value from traffic stats is application specific?

2012-08-01 Thread thejaswi s
I am finding each application data usage by using uid in traffic stats API. But Is this Rx Tx values resetting is application specific. Because youTube application value resetting is more frequent compare to gmail. Thanks in advance -- You received this message because you are subscribed to the

[android-developers] why TrafficStats values reset?

2012-07-31 Thread thejaswi s
I referred the following link http://code.google.com/p/android/issues/detail?id=19938 Is there any reason why TrafficStats values might be reset apart from on Shutdown? and found that values get reset when reboot or when we move from WiFi to 3g. But its a long value. * *If it exceeds the limit is