Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Piren
ahh... too many links for me to actually want to go through ;-) The first one is just a search, what's not to get there? It shows places where it found your search according to their source branch version and other (what it thinks are) related searches. all the rest doesn't really matter.. who

[android-developers] Re: include layout in tab : change tab name ?

2013-07-14 Thread Piren
you should read the tutorials http://developer.android.com/guide/topics/ui/layout/tabs.html On Saturday, July 13, 2013 7:18:00 PM UTC+3, Emmanuel Dafflon wrote: Hello, I created a simple activity with a tabhost and 3 tabs. Those tabs are includes of different layouts but the name of the

[android-developers] doesn't work LocationClient.requestLocationUpdate(PendingIntent)

2013-07-14 Thread もんきちさん
Dear Sir. I making LocationTracking Service(run background). My service has PATIAL_WAKE_LOCK. In addition,I can see that my service is running even after press the power button. However, not come thrown pending intent(onLocationChange). LocationClient.requestLocationUpdate (PendingIntent) is,

[android-developers] drawing a full ListView to a bitmap

2013-07-14 Thread dashman
I've got an ExpandableListView and would like to write the full view to a bitmap - not just a screenful. i.e. if the view has a 100 entries - write it out to a long bitmap. I'm using listview.draw(canvas) and it's set to a long/tall bitmap. The problem is the draw() function seems to write only

[android-developers] Re: drawing a full ListView to a bitmap

2013-07-14 Thread Piren
Views inheriting from ListView will recycle views, they don't really hold all the view information in memory. You could probably just inflate all the views into a LinearLayout and dump that to bitmap. I think your best approach is traverse the data itself and inflate just one view at a time

Re: [android-developers] Re: include layout in tab : change tab name ?

2013-07-14 Thread Emmanuel Dafflon
But TabActivity shouldnt be used anymore should it ? On Sun, Jul 14, 2013 at 9:06 AM, Piren gpi...@gmail.com wrote: you should read the tutorials http://developer.android.com/guide/topics/ui/layout/tabs.html On Saturday, July 13, 2013 7:18:00 PM UTC+3, Emmanuel Dafflon wrote: Hello, I

Re: [android-developers] Re: include layout in tab : change tab name ?

2013-07-14 Thread Piren
You don't have to use TabActivity (you're not really meant to use tabs anymore anyhow).. that's just a regular activity with some pre-made code to make life easier. see here: http://developer.android.com/reference/android/app/TabActivity.html On Sunday, July 14, 2013 3:11:22 PM UTC+3,

Re: [android-developers] Re: include layout in tab : change tab name ?

2013-07-14 Thread Emmanuel Dafflon
Okey thank you it works but for my knowledge what would you have used ? I need a single activity with multiple view/layout that the user can switch back and forth fast and easily. Tabs seem like the answer but if you have better tell me :) On Sun, Jul 14, 2013 at 2:58 PM, Piren gpi...@gmail.com

Re: [android-developers] Seekbar Save state and restore

2013-07-14 Thread Keith Zettler
So we come full circle . How exactly can i save/restore this seekbar if user uses back button or activity is destroyed. Does anyone have a seekbar specific example ? On Saturday, July 13, 2013 12:32:01 AM UTC-4, TreKing wrote: On Fri, Jul 12, 2013 at 7:07 PM, Keith Zettler

Re: [android-developers] Seekbar Save state and restore

2013-07-14 Thread Fred Niggle
I think you mean save the position of the seekbar (eg users preference) then you can use shared prefs . this thus: onCreate reads the shared prefs and sets the value of the seekbar your 'save' function then writes the value to shared prefs. On 14 July 2013 17:34, Keith Zettler

[android-developers] Drive API and exceptions

2013-07-14 Thread Kevin
Pretty much everything I've read about the drive api is samples, tips, best practices, etc. What I'm looking to find is a full rundown of every exception that might pop out of drive calls and what they mean. Is it a connection issue? An auth issue? Is there a possibility that an oauth token

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-14 Thread Linda Li
I mean, when we relaunch the application, the page is Login Page. if we press back button, it is Gallery. If we continue pressing back button, it goes to HOME. The whole process seems not clean (or not neat, or not friendly, or weird) to the user, since we do not expect a Gallery page hidden

Re: [android-developers] Seekbar Save state and restore

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 11:34 AM, Keith Zettler leftcont...@gmail.comwrote: So we come full circle . How exactly can i save/restore this seekbar if user uses back button or activity is destroyed. Does anyone have a seekbar specific example ? First, did you read the link I provided? Second,

Re: [android-developers] How can I get the reference to the top (or second top, or any one in the task) activity object

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 3:15 PM, Linda Li codingpotatoli...@gmail.comwrote: I mean, when we relaunch the application, the page is Login Page. if we press back button, it is Gallery. If we continue pressing back button, it goes to HOME. Sounds like your task stack is screwed up. You can make

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 2:02 AM, Piren gpi...@gmail.com wrote: It's actually funny you care so much about it...if you'd go to such lengths to check such a minor thing, how can you get any code done? Took the words right out of my mouth. :) This is quite the effort to avoid a simple if

[android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Palmer Eldritch
Glad you agree with each other Have you thought that this could be a way of delving a bit deeper into the framework ? That, well, it's not the end result only but the search that matters ? And that maybe this way one writes code faster at the end cause one knows his/her way better ? No

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Kostya Vasilyev
The framework code that Piren posted a link to above (below?) accesses the Intent object before calling the receiver's onReceive: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/app/ActivityThread.java#2350 Line 2350:

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Kristopher Micinski
I think the point everyone is trying to make is that it's important to care about statically ruling certain invariants are met: that's not an inherently bad thing. But with Android it's impossible to know if this invariant can be statically determined: since you never know which ROM you're

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 5:22 PM, Palmer Eldritch the.u...@gmail.com wrote: Have you thought that this could be a way of delving a bit deeper into the framework ? That, well, it's not the end result only but the search that matters ? If what you're saying is that this is an academic endeavor

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Kristopher Micinski
On Sun, Jul 14, 2013 at 10:19 PM, TreKing treking...@gmail.com wrote: On Sun, Jul 14, 2013 at 5:22 PM, Palmer Eldritch the.u...@gmail.com wrote: Receiving an object one hasn't the slightest idea about is apparently the android way - may be null or not - who cares as long as we can add an if

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 10:08 PM, Kristopher Micinski krismicin...@gmail.com wrote: I think this is probably a valid thing to consider in most APIs, especially if they're statically linked APIs, where you can actually check. Going off topic a bit, but maybe this will be of interest to the OP

Re: [android-developers] Re: Application mistakenly published

2013-07-14 Thread TreKing
On Sat, Jul 13, 2013 at 9:44 AM, Rmax julian.reyes.escri...@gmail.comwrote: Where i can find assistance from google. I'm looking for a while and only show me know issues I cant find something like a contact form. At the very top of you dev console, on the right, is a Help Feedback link.

Re: [android-developers] Re: include layout in tab : change tab name ?

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 9:52 AM, Emmanuel Dafflon lol482...@gmail.comwrote: Okey thank you it works but for my knowledge what would you have used ? I need a single activity with multiple view/layout that the user can switch back and forth fast and easily. Tabs seem like the answer but if you

Re: [android-developers] Drive API and exceptions

2013-07-14 Thread TreKing
On Sun, Jul 14, 2013 at 1:16 PM, Kevin kgalli...@gmail.com wrote: Pretty much everything I've read about the drive api This group is for Android Development. For your question about the Drive API, check that API's help docs: https://developers.google.com/drive/support

Re: [android-developers] Re: can _ever_ the intent received by a BroadcastReceiver onReceive() method be null?

2013-07-14 Thread Kristopher Micinski
At the risk of being too tangential... null pointer analysis is a very popular static analysis. Tons of Java based static analysis engines implement it using any off the shelf techniques: abstract interpretation (execute a piece of the program which carries an abstract value saying this is null