Re: [android-developers] Re: App Development for conducting classes
Why? Most information you need is somewhere on developer.android.com and related sites. Not every book is as useful as every other. Do you have a particular book in mind? I agree with Lew, most Android books are just the API reference printed on trees and nothing more, and that's at best. That being said, Mark's books are pretty helpful, even if I could learn the stuff by looking through the references, his explanations are pretty quick and help get people up to speed quickly in a way that isn't tacky, patronizing, or overly jokey to make up for the lack of actual content... this is in contrast to most of the programming books out there, kris -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to .setText of a String with different colours?
Hi I'm Oriol and I want to set a string like this one: H*i,* A*ll!* * * in the textView I've created on my layout. (One String in only one textView) But the matter it's that I don't know how to set a different colour for some specific characters inside my string. (Like in the example I show here) Does anyone knows how to do it? Thank you very much, Oriol -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to .setText of a String with different colours?
On Aug 28, 2012, at 6:52 PM, oriolmesia mesia@gmail.com wrote: Does anyone knows how to do it? This article is a good read for SpannableStrings; http://www.chrisumbel.com/article/android_textview_rich_text_spannablestring -- H -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to set two spinners with different strings and icons?
You have asked this question multiple times... I tried helping you on the other post, and even explained many things that you were not doing right. But sure... go ahead and post your code again. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 9:04 AM, Sobia Awan juwerian.so...@gmail.comwrote: yes i hve chkd whole coding many time and also chkd each spinner has different ID...shall i snd u code? On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote: First ... the program is only doing EXACTLY what you're telling it to do. Believe that. So, somewhere you're telling it to do the same thing twice. Check that each spinner has a different ID Check your population routines target two different spinner ID. Then, look close at every line of code ... like it was the first time you wrote it and go through the PROGRAMMING again in your head. If that doesn't work ... you better just post the Activity and Layout here for others to look at. Maybe we can see something you're overlooking! Fred -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Sobia Awan* * Bs(cs)* ** -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to set two spinners with different strings and icons?
shall i send u my coding again? On Tue, Aug 28, 2012 at 9:23 PM, Justin Anderson magouyaw...@gmail.comwrote: You have asked this question multiple times... I tried helping you on the other post, and even explained many things that you were not doing right. But sure... go ahead and post your code again. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 9:04 AM, Sobia Awan juwerian.so...@gmail.comwrote: yes i hve chkd whole coding many time and also chkd each spinner has different ID...shall i snd u code? On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote: First ... the program is only doing EXACTLY what you're telling it to do. Believe that. So, somewhere you're telling it to do the same thing twice. Check that each spinner has a different ID Check your population routines target two different spinner ID. Then, look close at every line of code ... like it was the first time you wrote it and go through the PROGRAMMING again in your head. If that doesn't work ... you better just post the Activity and Layout here for others to look at. Maybe we can see something you're overlooking! Fred -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Sobia Awan* * Bs(cs)* ** -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Sobia Awan* * Bs(cs)* ** -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] need to allow user to draw a region on Google map
Hi guys I'd like to allow a user to draw a region on top of a Google map and get the GPS coordinates of the drawn region. Can somebody advise how this is done? Tks -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Handler or (Local) BroadcastReceiver
Hi, I am working on a fairly complex bit of code. I would like your input to understand which (if any at all) of the above classes I should use. The short description is that I have an Activity that displays local HTML5 within a WebView. The WebView utilises a WebViewClient which intercepts URL requests from the HTML5 implementation (I realise that on Android the HTML5/javascript implementation can directly call native code but unfortunately the HTML5 needs to be x-platform (i.e. run on iOS) so I am forced to communicate through intercepting URL's that are being loaded). The application also has a separate Thread that I use to communicate with an external server across the network. 1: When the native Android code wants to do a javascript call in the WebView object, does this need to be done via the main application thread or could for instance the external server Thread do a WebView.loadURL(javascript:..) directly? 2: Is the HTML5/javascript implementation run by the main thread? In other words, is the WebViewClient.shouldOverrideUrlLoading() called by the main application thread? 3: I implemented PUSH notifications within the application and I am currently using a BroadCastReceiver in my Activity to receive broadcast messages from the cloud messaging IntentService I added. As the Activity already contains a Broadcastreceiver - should the external server Thread (in case the answer to 1 is yes) and the WebViewClient (in case the answer to 2 is no) also send a broadcast message to report to the Activity or should I implement an additional message Handler? - on a sidenote .. I just read that I cannot perform timeconsuming actions from the BroadcastReceiver.onReceive() method. (apparently not even open pop-up dialogs although that is exactly what I do and works fine on both the simulator and a range of real devices) ... what is the solution here? Hope I explained the situation clear enough :) Cheers, Lieuwe -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to set two spinners with different strings and icons?
actually i got solution of intent in spinner not this so if it will b possible for u then please reply me...Thanks On Tue, Aug 28, 2012 at 9:26 PM, Sobia Awan juwerian.so...@gmail.comwrote: shall i send u my coding again? On Tue, Aug 28, 2012 at 9:23 PM, Justin Anderson magouyaw...@gmail.comwrote: You have asked this question multiple times... I tried helping you on the other post, and even explained many things that you were not doing right. But sure... go ahead and post your code again. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 9:04 AM, Sobia Awan juwerian.so...@gmail.comwrote: yes i hve chkd whole coding many time and also chkd each spinner has different ID...shall i snd u code? On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote: First ... the program is only doing EXACTLY what you're telling it to do. Believe that. So, somewhere you're telling it to do the same thing twice. Check that each spinner has a different ID Check your population routines target two different spinner ID. Then, look close at every line of code ... like it was the first time you wrote it and go through the PROGRAMMING again in your head. If that doesn't work ... you better just post the Activity and Layout here for others to look at. Maybe we can see something you're overlooking! Fred -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Sobia Awan* * Bs(cs)* ** -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Sobia Awan* * Bs(cs)* ** -- *Sobia Awan* * Bs(cs)* ** -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] need to allow user to draw a region on Google map
On Tue, Aug 28, 2012 at 12:37 PM, dica steven.mu...@gmail.com wrote: I'd like to allow a user to draw a region on top of a Google map and get the GPS coordinates of the drawn region. Can somebody advise how this is done? On the second part, the Projection object can convert between pixel coordinates and microdegrees. On the first part, you will need to intercept touch events and draw on an Overlay, I guess. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handler or (Local) BroadcastReceiver
On Tue, Aug 28, 2012 at 12:45 PM, Lieuwe lieuwe.elger...@gmail.com wrote: (I realise that on Android the HTML5/javascript implementation can directly call native code but unfortunately the HTML5 needs to be x-platform (i.e. run on iOS) so I am forced to communicate through intercepting URL's that are being loaded) Other people (e.g., the PhoneGap folk) are capable of getting injected JavaScript objects to work on iOS as well as Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handler or (Local) BroadcastReceiver
On Tue, Aug 28, 2012 at 12:50 PM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 28, 2012 at 12:45 PM, Lieuwe lieuwe.elger...@gmail.com wrote: (I realise that on Android the HTML5/javascript implementation can directly call native code but unfortunately the HTML5 needs to be x-platform (i.e. run on iOS) so I am forced to communicate through intercepting URL's that are being loaded) Other people (e.g., the PhoneGap folk) are capable of getting injected JavaScript objects to work on iOS as well as Android. Actually, I take that partially back. PhoneGap is definitely capable of giving the illusion of injected JavaScript objects. Whether they are doing that on iOS actually via injected JavaScript objects or via some JavaScript wrapper that uses URLs under the covers, I cannot say, as I haven't looked. Regardless, in terms of your other questions, looking at how PhoneGap handles such issues with their Android implementation is a reasonable move, as that's probably the most heavily exercised hunk of WebView-embedding code out there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] detect weather incoming call fron landline number or mobile number
Hi, Anyone help me ,how to detect wether the incoming call from landline number or moblie number, is there any API for it. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting mapview as image
Hi, I want to get the image of currently displayed mapview. As of i know i can get the static map image by using google static map API. Is there any other way to do this? Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect weather incoming call fron landline number or mobile number
Sorry, no api to detect this. On Tue, Aug 28, 2012 at 11:21 PM, Aashish kumar testchetu...@gmail.comwrote: Hi, Anyone help me ,how to detect wether the incoming call from landline number or moblie number, is there any API for it. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting mapview as image
http://stackoverflow.com/questions/5939987/android-take-screenshot-via-code Try this Thanks Vijay On Tue, Aug 28, 2012 at 12:52 PM, disha ash...@gmail.com wrote: Hi, I want to get the image of currently displayed mapview. As of i know i can get the static map image by using google static map API. Is there any other way to do this? Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
On Aug 28, 2012, at 9:33 PM, anaOliveira oliveiranar...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] global_context
It is getting very cumbersome having to pass a Context object all over when I'm pretty sure it never should change. Is this so bad? public class MyApplication extends Application { public static Context global_context; @Override public void onCreate() { global_context = this; super.onCreate(); } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. 2012/8/28 Harri Smått har...@gmail.com On Aug 28, 2012, at 9:33 PM, anaOliveira oliveiranar...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
you shouldn't be passing the context all over the place, you should be getting by the methods defined for the specific activities, services, etc.. Why are you passing it around so often? P.s., *no*, it won't always be the same. kris On Tue, Aug 28, 2012 at 3:17 PM, bob b...@coolfone.comze.com wrote: It is getting very cumbersome having to pass a Context object all over when I'm pretty sure it never should change. Is this so bad? public class MyApplication extends Application { public static Context global_context; @Override public void onCreate() { global_context = this; super.onCreate(); } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
On Aug 28, 2012, at 10:20 PM, Ana Rita Brito Oliveira oliveiranar...@gmail.com wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. True that, my mistake actually, didn't know Java var_args worked the way you can pass an array to such methods. Anyway, just to make sure, are you sure your loop within doInBackground method exits as expected? Otherwise I can't come up with other reasons for your code didn't reach onPostExecute... -- H -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
Yes, this is quite bad. Contexts can change, for example when an activity is destroyed and recreated, a new context is given to it. Additionally, you are storing the application context, which cannot be used in all situations. For example, you'd get an exception if you tried to create an AlertDialog using this context. Raghav Sood Sent from my Nexus 7 On Aug 29, 2012 12:53 AM, Kristopher Micinski krismicin...@gmail.com wrote: you shouldn't be passing the context all over the place, you should be getting by the methods defined for the specific activities, services, etc.. Why are you passing it around so often? P.s., *no*, it won't always be the same. kris On Tue, Aug 28, 2012 at 3:17 PM, bob b...@coolfone.comze.com wrote: It is getting very cumbersome having to pass a Context object all over when I'm pretty sure it never should change. Is this so bad? public class MyApplication extends Application { public static Context global_context; @Override public void onCreate() { global_context = this; super.onCreate(); } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
Yes.. because these are the resaults of the log: 08-28 17:47:21.936: D/URL serviço HttpGet(2055): http://192.168.56.1:8080/pt.Agile21.Acerola.WebService/rest/acerola?id=g;a...@eu.com 08-28 17:47:22.456: D/RESPOSTA do web service(2055): ana;a...@eu.com;pass;0 08-28 17:47:22.456: D/RESPOSTA do web service(2055): ana;a...@eu.com;pass;0 as you can see I can get all the resaults of log! So I really don't know. :S 2012/8/28 Harri Smått har...@gmail.com On Aug 28, 2012, at 10:20 PM, Ana Rita Brito Oliveira oliveiranar...@gmail.com wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. True that, my mistake actually, didn't know Java var_args worked the way you can pass an array to such methods. Anyway, just to make sure, are you sure your loop within doInBackground method exits as expected? Otherwise I can't come up with other reasons for your code didn't reach onPostExecute... -- H -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I read an XML Data in Android?
FileInputStream is a good choise? Em segunda-feira, 27 de agosto de 2012 17h06min26s UTC-3, Lew escreveu: Guilherme Bernardi wrote: I'm developing an application that uses XML data... I consumed an wcf web service with SOAP, convert the object to a basic XML and save on sdcard, but now I need to read this data file to edit, confer and save? How can I do that? Can anyone help me? bob wrote: I would use Document Object Model (DOM). Sometimes. Sometimes it's better to use a stream-processing model. -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
are you sure that String result is not *blank* in* onPostExecute* method.? try to make a toast notification in onPostExecute method and display String result in message.See what happens. On Wednesday, August 29, 2012 12:52:47 AM UTC+5:30, anaOliveira wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. 2012/8/28 Harri Smått har...@gmail.com javascript: On Aug 28, 2012, at 9:33 PM, anaOliveira oliveir...@gmail.comjavascript: wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
if this log is generated due to this call Log.d(onPostExecute Serviço, result); //first line of onPostExecute(String res) then obviously your onPostExecute method is called (or did i missed something?) On Wednesday, August 29, 2012 1:13:24 AM UTC+5:30, anaOliveira wrote: Yes.. because these are the resaults of the log: 08-28 17:47:21.936: D/URL serviço HttpGet(2055): http://192.168.56.1:8080/pt.Agile21.Acerola.WebService/rest/acerola?id=g;a...@eu.com 08-28 17:47:22.456: D/RESPOSTA do web service(2055): ana;a...@eu.com;pass;0 08-28 17:47:22.456: D/RESPOSTA do web service(2055): ana;a...@eu.com;pass;0 as you can see I can get all the resaults of log! So I really don't know. :S 2012/8/28 Harri Smått har...@gmail.com javascript: On Aug 28, 2012, at 10:20 PM, Ana Rita Brito Oliveira oliveir...@gmail.com javascript: wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. True that, my mistake actually, didn't know Java var_args worked the way you can pass an array to such methods. Anyway, just to make sure, are you sure your loop within doInBackground method exits as expected? Otherwise I can't come up with other reasons for your code didn't reach onPostExecute... -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
As you can see, Log.d(onPostExecute Serviço, result);is not executed.. I can't see the response on the logs right? 2012/8/28 vivek singh vivek.r...@gmail.com if this log is generated due to this call Log.d(onPostExecute Serviço, result); //first line of onPostExecute(String res) then obviously your onPostExecute method is called (or did i missed something?) On Wednesday, August 29, 2012 1:13:24 AM UTC+5:30, anaOliveira wrote: Yes.. because these are the resaults of the log: 08-28 17:47:21.936: D/URL serviço HttpGet(2055): http://192.168.56.1:8080/pt.**Agile21.Acerola.WebService/**rest/acerola?id=g;a...@eu.com http://192.168.56.1:8080/pt.Agile21.Acerola.WebService/rest/acerola?id=g;a...@eu.com 08-28 17:47:22.456: D/RESPOSTA do web service(2055): ana;a...@eu.com;pass;0 08-28 17:47:22.456: D/RESPOSTA do web service(2055): ana;a...@eu.com;pass;0 as you can see I can get all the resaults of log! So I really don't know. :S 2012/8/28 Harri Smått har...@gmail.com On Aug 28, 2012, at 10:20 PM, Ana Rita Brito Oliveira oliveir...@gmail.com wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. True that, my mistake actually, didn't know Java var_args worked the way you can pass an array to such methods. Anyway, just to make sure, are you sure your loop within doInBackground method exits as expected? Otherwise I can't come up with other reasons for your code didn't reach onPostExecute... -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Are there any official Google sponsored training seminars/classes, etc?
I'm looking for information on officially sponsored training seminars/classes etc? I'm not really interested in online but will take some info on that if you have it. What I'm really interested in are seminars/courses that you pay for, have to go to the location, and take classes ranging from fundamentals to advanced. I've seen a couple of workshops posted around the interwebs and these might be just as productive as something Google sponsors but without any reviews or anything I don't know how comfortable I am giving just anyone $1K+ on an advertisement for training. Local colleges have options as well, but mainly I'm looking for more of a workshop style that isn't intending on teaching you from scratch. We've got guys who are already senior programmers in other languages that are not going to be interested in going to school for a semester! A week long course would be perfect to go out and bring home a few things. So does anyone know of anything like that? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
try to add code for displaying a toast notification in onPostExecute method and display the value of String result in that notification see what happens On Wednesday, August 29, 2012 1:21:53 AM UTC+5:30, anaOliveira wrote: As you can see on the picture.. I have all the results but when I get back to the call the result is NULL. I have been put a log in onPostExecute and that log is not executed.. so the method is not called. 2012/8/28 vivek singh vivek...@gmail.com javascript: are you sure that String result is not *blank* in* onPostExecute*method.? try to make a toast notification in onPostExecute method and display String result in message.See what happens. On Wednesday, August 29, 2012 12:52:47 AM UTC+5:30, anaOliveira wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. 2012/8/28 Harri Smått har...@gmail.com On Aug 28, 2012, at 9:33 PM, anaOliveira oliveir...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do I read an XML Data in Android?
That's not what Lew is talking about... DOM is easy, but heavy, by contrast things like SAX are lightweight and won't kill memory usage on the device. (Easier to do than you might think...) You should also look into using XmlPullParser. As a quick note, this isn't really specific to Android: these are the same technologies you would use in Java.. kris On Tue, Aug 28, 2012 at 3:38 PM, Guilherme Bernardi gui.bernard...@gmail.com wrote: FileInputStream is a good choise? Em segunda-feira, 27 de agosto de 2012 17h06min26s UTC-3, Lew escreveu: Guilherme Bernardi wrote: I'm developing an application that uses XML data... I consumed an wcf web service with SOAP, convert the object to a basic XML and save on sdcard, but now I need to read this data file to edit, confer and save? How can I do that? Can anyone help me? bob wrote: I would use Document Object Model (DOM). Sometimes. Sometimes it's better to use a stream-processing model. -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
I will try! , and then I tell something! 2012/8/28 vivek singh vivek.r...@gmail.com try to add code for displaying a toast notification in onPostExecute method and display the value of String result in that notification see what happens On Wednesday, August 29, 2012 1:21:53 AM UTC+5:30, anaOliveira wrote: As you can see on the picture.. I have all the results but when I get back to the call the result is NULL. I have been put a log in onPostExecute and that log is not executed.. so the method is not called. 2012/8/28 vivek singh vivek...@gmail.com are you sure that String result is not *blank* in* onPostExecute*method.? try to make a toast notification in onPostExecute method and display String result in message.See what happens. On Wednesday, August 29, 2012 12:52:47 AM UTC+5:30, anaOliveira wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. 2012/8/28 Harri Smått har...@gmail.com On Aug 28, 2012, at 9:33 PM, anaOliveira oliveir...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Are there any official Google sponsored training seminars/classes, etc?
I will mention that while not along the exact line you may be interested in, there is Google I/O, which always tends to have some interesting presentations.. Some courses might not be horrible, however, colleges might not be quite what you're looking for, but if you're near reputable universities they generally have pretty good classes. (Though taking them not as a student can be pretty challenging.) kris On Tue, Aug 28, 2012 at 4:00 PM, RKS sean.sambor...@live.com wrote: I'm looking for information on officially sponsored training seminars/classes etc? I'm not really interested in online but will take some info on that if you have it. What I'm really interested in are seminars/courses that you pay for, have to go to the location, and take classes ranging from fundamentals to advanced. I've seen a couple of workshops posted around the interwebs and these might be just as productive as something Google sponsors but without any reviews or anything I don't know how comfortable I am giving just anyone $1K+ on an advertisement for training. Local colleges have options as well, but mainly I'm looking for more of a workshop style that isn't intending on teaching you from scratch. We've got guys who are already senior programmers in other languages that are not going to be interested in going to school for a semester! A week long course would be perfect to go out and bring home a few things. So does anyone know of anything like that? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AsyncTask - onPostExecute is not called
ok On Wednesday, August 29, 2012 1:39:06 AM UTC+5:30, anaOliveira wrote: I will try! , and then I tell something! 2012/8/28 vivek singh vivek...@gmail.com javascript: try to add code for displaying a toast notification in onPostExecute method and display the value of String result in that notification see what happens On Wednesday, August 29, 2012 1:21:53 AM UTC+5:30, anaOliveira wrote: As you can see on the picture.. I have all the results but when I get back to the call the result is NULL. I have been put a log in onPostExecute and that log is not executed.. so the method is not called. 2012/8/28 vivek singh vivek...@gmail.com are you sure that String result is not *blank* in* onPostExecute*method.? try to make a toast notification in onPostExecute method and display String result in message.See what happens. On Wednesday, August 29, 2012 12:52:47 AM UTC+5:30, anaOliveira wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. 2012/8/28 Harri Smått har...@gmail.com On Aug 28, 2012, at 9:33 PM, anaOliveira oliveir...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@googlegroups.com For more options, visit this group at http://groups.google.com/**group**/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Com os melhores cumprimentos, Ana Rita Brito Oliveira -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Source code Development
On Mon, Aug 27, 2012 at 6:46 AM, Rajan Mishra rajan.m1...@gmail.com wrote: Please Provide the new Updates of source code in Android Mobile Development. Please explain what you're talking about. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Effect of Verdict in Apple v Samsung case?
On Mon, Aug 27, 2012 at 10:01 PM, Jungle Jim jjjungle...@gmail.com wrote: I wonder if this will enable Apple iphones to eat into Android's market share? I wonder if you read Mark's response to your initial post? This has nothing to do with Android Development, which is what this group is for. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Are there any official Google sponsored training seminars/classes, etc?
See if something like this helps http://androidbook.com/training Also if you have a set number of folks (about 10) I don't mind travelling with in the US for a week to teach. http://androidbook.com/training http://androidbook.com http://satyakomatineni.com http://twitter.com/SatyaKomatineni On Tue, Aug 28, 2012 at 4:00 PM, RKS sean.sambor...@live.com wrote: I'm looking for information on officially sponsored training seminars/classes etc? I'm not really interested in online but will take some info on that if you have it. What I'm really interested in are seminars/courses that you pay for, have to go to the location, and take classes ranging from fundamentals to advanced. I've seen a couple of workshops posted around the interwebs and these might be just as productive as something Google sponsors but without any reviews or anything I don't know how comfortable I am giving just anyone $1K+ on an advertisement for training. Local colleges have options as well, but mainly I'm looking for more of a workshop style that isn't intending on teaching you from scratch. We've got guys who are already senior programmers in other languages that are not going to be interested in going to school for a semester! A week long course would be perfect to go out and bring home a few things. So does anyone know of anything like that? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Are there any official Google sponsored training seminars/classes, etc?
Before beginning, in the interests of full disclosure: I teach Android development in events much like what you describe. On Tue, Aug 28, 2012 at 4:00 PM, RKS sean.sambor...@live.com wrote: I'm looking for information on officially sponsored training seminars/classes etc? Are there week-long bootcamps and the like? Yes. Are they officially sponsored? Google doesn't officially sponsor much of anything, except stuff that they deliver themselves (e.g., workshops the day before Google I|O). I've seen a couple of workshops posted around the interwebs and these might be just as productive as something Google sponsors but without any reviews or anything I don't know how comfortable I am giving just anyone $1K+ on an advertisement for training. If you were in college, you'd determine whether to attend a course based on the instructor (knows her stuff? decent presenter?) and your available options given your need to take certain courses to graduate. Professional training is much the same, minus the cap and gown. What dictates the quality of the course tends to be the instructor (knows her stuff? decent presenter?) and the agenda (does it match what you need?). The agendas tend to be posted on the training firm's site. The instructors can usually be researched via your favorite search engine and such: - What's the instructor done, relative to Android? (wrote XYZ app? wrote XYZ book? worked on XYZ team?) - Are there signs that the instructor presents a lot, beyond just the training firm (e.g., conferences), and what comments regarding presentation style and the like can you glean from that? So does anyone know of anything like that? You do not say where you are located, and travel can be a major consideration. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do I read an XML Data in Android?
To create the XML file, I did this: XmlSerializer serializer = Xml.newSerializer(); serializer.setOutput(fileos, UTF-8); serializer.startDocument(null, Boolean.valueOf(true)); serializer.setFeature(http://xmlpull.org/v1/doc/features.html#indent-output;, true); serializer.startTag(null, produtos); for (int currentProperty = 0; currentProperty propertyResultCount; currentProperty++) { SoapObject obj = (SoapObject) objSoapObject.getProperty(currentProperty); int attributeResultCount = obj.getPropertyCount(); serializer.startTag(null, produto+currentProperty); for (int index = 0; index attributeResultCount; index++){ PropertyInfo pi = new PropertyInfo(); obj.getPropertyInfo(index, pi); String tag = pi.name; String value = obj.getPropertyAsString(index).toString(); serializer.startTag(null, tag); serializer.text(value); serializer.endTag(null, tag); } serializer.endTag(null,produto+currentProperty); } serializer.endTag(null,produtos); serializer.endDocument(); serializer.flush(); fileos.close(); I can use the same model to read the file and get every data information that I need? Another doubt, when I create the file, I need to use the explicit address, for example: File newxmlfile = new File(/data/data/dataplus.application/produto.xml); Because I got some exceptions... Why I can't access my Internal Storage or External Storage? I set the permissions on the Manifest file... Em terça-feira, 28 de agosto de 2012 17h04min26s UTC-3, Kristopher Micinski escreveu: That's not what Lew is talking about... DOM is easy, but heavy, by contrast things like SAX are lightweight and won't kill memory usage on the device. (Easier to do than you might think...) You should also look into using XmlPullParser. As a quick note, this isn't really specific to Android: these are the same technologies you would use in Java.. kris On Tue, Aug 28, 2012 at 3:38 PM, Guilherme Bernardi gui.ber...@gmail.com javascript: wrote: FileInputStream is a good choise? Em segunda-feira, 27 de agosto de 2012 17h06min26s UTC-3, Lew escreveu: Guilherme Bernardi wrote: I'm developing an application that uses XML data... I consumed an wcf web service with SOAP, convert the object to a basic XML and save on sdcard, but now I need to read this data file to edit, confer and save? How can I do that? Can anyone help me? bob wrote: I would use Document Object Model (DOM). Sometimes. Sometimes it's better to use a stream-processing model. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ACRA
Can someone help me understand how ACRA works? Does ACRA.init() call this function? public static void setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Are there any official Google sponsored training seminars/classes, etc?
Ok man,there are google based training in mobile application development which take place in local universities here in kenya,i attended one this year from may to august and the training is totally free coz its google sponsored after the training there is a workshop where you develop apps for competition,this initiative is still on and during the training free start up manuals are provided which is easy to follow as a beginner until creation of simple apps to complex ones,if interested yoy can email me and i can send you the soft copy manual plus other useful materials and i can really assist you man,let me hear from you pliz,nyt On Aug 28, 2012 11:02 PM, RKS sean.sambor...@live.com wrote: -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
I can't load assets or resources without it. On Tuesday, August 28, 2012 2:24:12 PM UTC-5, Kristopher Micinski wrote: you shouldn't be passing the context all over the place, you should be getting by the methods defined for the specific activities, services, etc.. Why are you passing it around so often? P.s., *no*, it won't always be the same. kris On Tue, Aug 28, 2012 at 3:17 PM, bob b...@coolfone.comze.comjavascript: wrote: It is getting very cumbersome having to pass a Context object all over when I'm pretty sure it never should change. Is this so bad? public class MyApplication extends Application { public static Context global_context; @Override public void onCreate() { global_context = this; super.onCreate(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Are there any official Google sponsored training seminars/classes, etc?
@Kris Thanks for the tips. We're in Houston so UH is reputable and offers traditional coursework in Android-specific application development. That certainly is an option, but I haven't had time to research the prerequisites and see if taking a course outside as a non-degree seeker if you can show competency in those required courses. Something to think about, thanks. @ Satya Unfortunately we're only a small 6 man shop with only 2 really working day-to-day on development that would take this training. @Mark Your last comment is the easiest, as we're located in Houston. That said, as long as the training is in the continental US, we're willing to travel. So I didn't really mention that since a) I didn't think about it and b) it doesn't matter since we'd go anywhere. Researching an instructor is good advice. In college I had to schedule my courses around each other and couldn't be so picky sometimes to hold off on a particular instructor. I can certainly see your point, though. I just ask about official Google because that's easiest at this point. For those who've been around the Android block a few times it might be easier to determine an individual's worth. For me, I'm just getting started. You may be able to recognize many key names or others who have been contributing to Android for quite some time and I would tell you I've never heard of them before. Then there's the guys who have developed apps, but are they learning from, etc. Thanks for the tips. I will look into everyone's comments and suggestions. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android custom view (very basic)
You need width and height. Add these: *android:layout_width=fill_parent* *android:layout_height=fill_parent* On Monday, August 27, 2012 1:09:10 PM UTC-5, Victor Reboucas wrote: Hi, I'm new to Android development and I'm trying to implement a custom view to act as a custom menu button for my app. I followed the instructions at http://developer.android.com/training/custom-views/create-view.html but by the end of the implementation I get a message saying Unfortunately customviews1 has stopped and the app just shut's down. My approach is very simple and I cannot find any reference about solving this basic problem. Here's what I'm doing: 1. create a new Android project in Eclipse named customviews1 2. I run the project and it shows a Hello World TextView on the activity_main.xml layout file 3. I add a new class that extends View to the src folder of the project: public class MyCustomView extends View { public MyCustomView(Context context, AttributeSet attrs) { super(context, attrs); } } 4. I remove the TextView from activity_main.xml and add a customview1 to it: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; android:layout_width=match_parent android:layout_height=match_parent com.example.customviews1.MyCustomView android:id=@+id/myCustomView1 / /RelativeLayout 5. I run the app again and I got the message saying Unfortunately customviews1 has stopped and the app shuts down. Is there any code I'm missing here? Thanks for any clue, Regards, Victor Reboucas -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
On Tue, Aug 28, 2012 at 8:54 AM, Thesalan thesa...@gmail.com wrote: The project is attached to this post, at this lighter version (like we can found here https://gist.github.com/8cbe094bb7a783e37ad1) I repeat : this works greats on emulator and older devices, but not on my HTC One X with last OTA (Android 4.0.4) and Nexus S with CyanogenMod 10 (Android 4.1.1) I can reproduce your problem. It appears to be tied to hardware acceleration, insofar as if I add android:hardwareAccelerated=false to the activity, things work on hardware where it failed before (and also fails if I set the value explicity to true). Since the issues of clipping and hardware acceleration are beyond my area of expertise, I can't explain why this is the case. Rather than disable hardware acceleration for the whole activity, you could experiment with disabling it just for the ViewPager itself. And, of course, if we're lucky, somebody who understands more about this area will chime in and explain where things are going wrong. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ICS: White screen while changing visibility on Webview
Hi to all! I have a little app with a layout that it's something like this: FrameLayout FrameLayout ImageView/ ProgressBar/ /FrameLayout LinearLayout WebView/ /LinearLayout /FrameLayout I initially set the ImageView (kind of a place-holder) and the ProgressBar visibility to VISIBLE and the WebView's one to INVISIBLE. Then I call loadUrl on the WebView. When the page finishes loading (I use both onPageFinished and the detection of certain redirect on shouldOverrideUrlLoading on a custom WebViewClient) I finally set the visibility on the WebView to VISIBLE. Well, it works well on Android devices previous to Ice Cream Sandwich, but it seems like the WebView flashes to white before showing. I searched around for ideas and tried several combinations like letting the WebView as VISIBLE too and just hiding the place-holders, hiding them with GONE instead of INVISIBLE, replacing the image with a transparent one, and perhaps some others I already forgot. I'm testing with a Motorola Xoom recently (officially) updated to ICS; a couple weeks ago it had Honeycomb and the app worked just fine. Anyone had any similar problem or could think of any other way I can try? Thanks! Marina -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Sounds like a bug, please file a report with an apk or a sample project that reproduces the issue and I'll fix it. On Tue, Aug 28, 2012 at 11:05 PM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 28, 2012 at 8:54 AM, Thesalan thesa...@gmail.com wrote: The project is attached to this post, at this lighter version (like we can found here https://gist.github.com/8cbe094bb7a783e37ad1) I repeat : this works greats on emulator and older devices, but not on my HTC One X with last OTA (Android 4.0.4) and Nexus S with CyanogenMod 10 (Android 4.1.1) I can reproduce your problem. It appears to be tied to hardware acceleration, insofar as if I add android:hardwareAccelerated=false to the activity, things work on hardware where it failed before (and also fails if I set the value explicity to true). Since the issues of clipping and hardware acceleration are beyond my area of expertise, I can't explain why this is the case. Rather than disable hardware acceleration for the whole activity, you could experiment with disabling it just for the ViewPager itself. And, of course, if we're lucky, somebody who understands more about this area will chime in and explain where things are going wrong. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
To file a bug report, go to http://b.android.com btw On Tue, Aug 28, 2012 at 11:10 PM, Romain Guy romain...@android.com wrote: Sounds like a bug, please file a report with an apk or a sample project that reproduces the issue and I'll fix it. On Tue, Aug 28, 2012 at 11:05 PM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 28, 2012 at 8:54 AM, Thesalan thesa...@gmail.com wrote: The project is attached to this post, at this lighter version (like we can found here https://gist.github.com/8cbe094bb7a783e37ad1) I repeat : this works greats on emulator and older devices, but not on my HTC One X with last OTA (Android 4.0.4) and Nexus S with CyanogenMod 10 (Android 4.1.1) I can reproduce your problem. It appears to be tied to hardware acceleration, insofar as if I add android:hardwareAccelerated=false to the activity, things work on hardware where it failed before (and also fails if I set the value explicity to true). Since the issues of clipping and hardware acceleration are beyond my area of expertise, I can't explain why this is the case. Rather than disable hardware acceleration for the whole activity, you could experiment with disabling it just for the ViewPager itself. And, of course, if we're lucky, somebody who understands more about this area will chime in and explain where things are going wrong. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- Romain Guy Android framework engineer romain...@android.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Use of shapes for background
Why not extend android.widget.RelativeLayout and implement your own onDraw method? On Friday, August 24, 2012 5:08:54 AM UTC-5, Pau Rodríguez Coloma wrote: Hi, I'm want to set the background of a RelativeLayout like the attached png. For the moment I'm using a bitmap definition xml named background_dark.xml like: ?xml version=1.0 encoding=utf-8? bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/fondo_oscuro android:tileMode=repeat /bitmap And using it as the background drawable in my RelativeLayout: RelativeLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_below=@+id/headerLayout android:background=@drawable/background_dark /RelativeLayout But I want to make the same effect without using the png file, i.e. using only shapes and layer-list. The number of lines has to be different depending of the screen size, only the separation between lines are determinated. Does anyone know how can I do this? Thanks in advance. NOTE: Sorry about my english. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
public class MyApplication extends Application { public static Context global_context; @Override public void onCreate() { global_context = this; super.onCreate(); } } To load assets or resources you need to use the Application context... Since what you are doing is using the Application context I think you should be fine with this because this application context doesn't go away until your application dies. *Note that if you want to do UI related stuff you should most definitely NOT be using this context.* However, you should note that a lot of classes provide access to a context, and you really should be using that. For example, View has a getContext() method, and you can use that to load assets or resources. But you absolutely should not be passing this context around to things that will outlast the view that you got it from. http://developer.android.com/reference/android/view/View.html#getContext%28%29 Activities and Services both inherit from Context so you wouldn't need to use your global_context in those cases either. In what situations are you running into that you are using this global_context and don't have access to it through another way? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 2:53 PM, bob b...@coolfone.comze.com wrote: I can't load assets or resources without it. On Tuesday, August 28, 2012 2:24:12 PM UTC-5, Kristopher Micinski wrote: you shouldn't be passing the context all over the place, you should be getting by the methods defined for the specific activities, services, etc.. Why are you passing it around so often? P.s., *no*, it won't always be the same. kris On Tue, Aug 28, 2012 at 3:17 PM, bob b...@coolfone.comze.com wrote: It is getting very cumbersome having to pass a Context object all over when I'm pretty sure it never should change. Is this so bad? public class MyApplication extends Application { public static Context global_context; @Override public void onCreate() { global_context = this; super.onCreate(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] detect weather incoming call fron landline number or mobile number
A N K ! T wrote: Sorry, no api to detect this. Aashish kumar wrote: Anyone help me ,how to detect wether the incoming call from landline number or moblie number, is there any API for it. There are perhaps online services that will look up a number for you and return information about it. Some might have a Web Services or RESTful API. If such services exists they likely charge money. Whether any of such services can distinguish landline from cellphone calls is another question. When I call you with my Google Voice account, you cannot tell if I'm calling from a landline or cell phone or some third way. That's because I could use any of those ways and you will see the same number in your Caller ID. So your question is not generally solvable. -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
To load assets or resources you need to use the Application context... I read that and realized this was wrong... I meant to say that as long as you are only loading assets or resources then you would be perfectly fine using the application context (but you don't need to if you have another way to get a context). The application context should not be used for anything having to do with UI. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:14 PM, Justin Anderson magouyaw...@gmail.comwrote: To load assets or resources you need to use the Application context... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Handler or (Local) BroadcastReceiver
You could do both, if you abstract out the javascript-to-java calls in your HTML5's javascript - Create a javascript class in your HTML5 that implements a certain set of methods that define all the necessary javascript-to-java calls (abstraction). Let's call it 'CallToJava'. - On Android, register a javascript-interface; let's call this javascript object 'AndroidJS'. - In your HTML5's javascript, test if AndroidJS is defined or not. - If not, you're running on iOS. Implement/instantiate a CallToJava instance that uses URL interception for calling back into Java. - If it is defined, you're running on Android. Implement/instantiate a CallToJava instance that uses direct calls to the 'AndroidJS' javascript-interface. In the rest of your HTML5's javascript, use the instantiated CallToJava's methods to call back into your native iOS or Android code. As for in which threads javascript-to-java callbacks run: My experience is that callbacks into the javascript-interface is done on a WebViewCore thread, not the main UI thread. Use a Handler to post back to the main UI-thread if that is necessary. If in doubt, try it in the debugger and see which thread is being used. About the Broadcaster's onReceive: To handle longer running operations, look at Marks' *WakefullIntentService *(just google it) :-). On Tuesday, August 28, 2012 12:45:13 PM UTC-4, Lieuwe wrote: Hi, I am working on a fairly complex bit of code. I would like your input to understand which (if any at all) of the above classes I should use. The short description is that I have an Activity that displays local HTML5 within a WebView. The WebView utilises a WebViewClient which intercepts URL requests from the HTML5 implementation (I realise that on Android the HTML5/javascript implementation can directly call native code but unfortunately the HTML5 needs to be x-platform (i.e. run on iOS) so I am forced to communicate through intercepting URL's that are being loaded). The application also has a separate Thread that I use to communicate with an external server across the network. 1: When the native Android code wants to do a javascript call in the WebView object, does this need to be done via the main application thread or could for instance the external server Thread do a WebView.loadURL(javascript:..) directly? 2: Is the HTML5/javascript implementation run by the main thread? In other words, is the WebViewClient.shouldOverrideUrlLoading() called by the main application thread? 3: I implemented PUSH notifications within the application and I am currently using a BroadCastReceiver in my Activity to receive broadcast messages from the cloud messaging IntentService I added. As the Activity already contains a Broadcastreceiver - should the external server Thread (in case the answer to 1 is yes) and the WebViewClient (in case the answer to 2 is no) also send a broadcast message to report to the Activity or should I implement an additional message Handler? - on a sidenote .. I just read that I cannot perform timeconsuming actions from the BroadcastReceiver.onReceive() method. (apparently not even open pop-up dialogs although that is exactly what I do and works fine on both the simulator and a range of real devices) ... what is the solution here? Hope I explained the situation clear enough :) Cheers, Lieuwe -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Connection reset by peer?
Selam wrote: I have got a same error. Did you solve this problem? bob: What does it mean when you try to form a Bluetooth connection on Android and you get this message? java.io.IOException: Connection reset by peer There are as many solutions for this as there are situations where it occurs. It means the server hung up. Why does a server hang up? That could be for a zillion reasons. Perhaps the server received a hangup instruction. Perhaps it had a bug. Perhaps it rebooted. Each different reason requires a different response (possibly no response at all). Your question is like asking someone in the doctor's office, You have a headache? I have a headache, too. How'd you solve yours? Their answer might not help you if they have migraines and you have a brain tumor. -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
On Tue, Aug 28, 2012 at 5:10 PM, Romain Guy romain...@android.com wrote: Sounds like a bug, please file a report with an apk or a sample project that reproduces the issue and I'll fix it. Posted as http://code.google.com/p/android/issues/detail?id=36788 Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
Activities and Services both inherit from Context so you wouldn't need to use your global_context in those cases either. In what situations are you running into that you are using this global_context and don't have access to it through another way? Same thing here as with views... You should not be passing around these contexts to things that will outlast the activity or service. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:19 PM, Justin Anderson magouyaw...@gmail.comwrote: To load assets or resources you need to use the Application context... I read that and realized this was wrong... I meant to say that as long as you are only loading assets or resources then you would be perfectly fine using the application context (but you don't need to if you have another way to get a context). The application context should not be used for anything having to do with UI. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:14 PM, Justin Anderson magouyaw...@gmail.comwrote: To load assets or resources you need to use the Application context... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
As long as *global_context *is an Application object, it is 'alive' as long as the (DalvikVM) process is alive (and vice-versa). As long as this context is only used to load assets/resources, this should be fine. Having such a global context (*application *context would be a better word) could be handy for deep calls, where you want to avoid passing a context object down the call stack as a parameter just to load a simple string-resource, for example. On Tuesday, August 28, 2012 5:29:22 PM UTC-4, MagouyaWare wrote: Activities and Services both inherit from Context so you wouldn't need to use your global_context in those cases either. In what situations are you running into that you are using this global_context and don't have access to it through another way? Same thing here as with views... You should not be passing around these contexts to things that will outlast the activity or service. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:19 PM, Justin Anderson magou...@gmail.comjavascript: wrote: To load assets or resources you need to use the Application context... I read that and realized this was wrong... I meant to say that as long as you are only loading assets or resources then you would be perfectly fine using the application context (but you don't need to if you have another way to get a context). The application context should not be used for anything having to do with UI. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:14 PM, Justin Anderson magou...@gmail.comjavascript: wrote: To load assets or resources you need to use the Application context... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here : http://developer.android.com/guide/topics/graphics/hardware-accel.html) but it doesn't work : content stay inside the viewpager. But by specifying it in the manifest as you say it works very well! And given the application, it does not pose any problems to do without hardware acceleration. Again, thank you very much Mark! Le mardi 28 août 2012 23:09:38 UTC+2, Mark Murphy (a Commons Guy) a écrit : On Tue, Aug 28, 2012 at 8:54 AM, Thesalan thes...@gmail.com javascript: wrote: The project is attached to this post, at this lighter version (like we can found here https://gist.github.com/8cbe094bb7a783e37ad1) I repeat : this works greats on emulator and older devices, but not on my HTC One X with last OTA (Android 4.0.4) and Nexus S with CyanogenMod 10 (Android 4.1.1) I can reproduce your problem. It appears to be tied to hardware acceleration, insofar as if I add android:hardwareAccelerated=false to the activity, things work on hardware where it failed before (and also fails if I set the value explicity to true). Since the issues of clipping and hardware acceleration are beyond my area of expertise, I can't explain why this is the case. Rather than disable hardware acceleration for the whole activity, you could experiment with disabling it just for the ViewPager itself. And, of course, if we're lucky, somebody who understands more about this area will chime in and explain where things are going wrong. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Connection reset by peer?
No, I don't think I ever figured that out fully. I've seen a lot of Bluetooth weirdness. I'd recommend connecting to a Bluetooth 4.0 dongle and using the Windows Bluetooth drivers (not WIDCOMM). On Tuesday, August 28, 2012 8:55:47 AM UTC-5, Selam@oğlu wrote: Hello, I have got a same error. Did you solve this problem? 2012/8/17 bob b...@coolfone.comze.com javascript:: What does it mean when you try to form a Bluetooth connection on Android and you get this message? java.io.IOException: Connection reset by peer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı Teknopalas RFID Software Solutions / Software Assistant İstanbul Üni. Bil. Müh. 4. Sınıf Istanbul University Computer Engineering #4 http://selametoglu.blogspot.com/ http://appworld.blackberry.com/webstore/vendor/14117 (for BlackBerry Applications) https://slideme.org/user/barboonia (for Android Applications) +90 537 279 6412 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ICS: White screen while changing visibility on Webview
I see WebView flash white on 3.0 - 4.0 (inclusive) if GPU acceleration is on. This happens even if the WebView's Android background as well as body background are set to black. Disabling GPU acceleration in the manifest fixed the issue for me. This appears to be fixed in the official 4.1.1 (Galaxy Nexus), where GPU accel can be kept on, and the white flash does not happen. -- K 2012/8/29 Marina Cuello marina.ear...@gmail.com Hi to all! I have a little app with a layout that it's something like this: FrameLayout FrameLayout ImageView/ ProgressBar/ /FrameLayout LinearLayout WebView/ /LinearLayout /FrameLayout I initially set the ImageView (kind of a place-holder) and the ProgressBar visibility to VISIBLE and the WebView's one to INVISIBLE. Then I call loadUrl on the WebView. When the page finishes loading (I use both onPageFinished and the detection of certain redirect on shouldOverrideUrlLoading on a custom WebViewClient) I finally set the visibility on the WebView to VISIBLE. Well, it works well on Android devices previous to Ice Cream Sandwich, but it seems like the WebView flashes to white before showing. I searched around for ideas and tried several combinations like letting the WebView as VISIBLE too and just hiding the place-holders, hiding them with GONE instead of INVISIBLE, replacing the image with a transparent one, and perhaps some others I already forgot. I'm testing with a Motorola Xoom recently (officially) updated to ICS; a couple weeks ago it had Honeycomb and the app worked just fine. Anyone had any similar problem or could think of any other way I can try? Thanks! Marina -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
2012/8/29 Thesalan thesa...@gmail.com Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here : http://developer.android.com/guide/topics/graphics/hardware-accel.html) but it doesn't work : content stay inside the viewpager. You can't force hardware accel off with setLayertType if it's already been set to enabled elsewhere (in the manifest, or I suppose in your ROM). Going the other way (software - GPU) is possible. -- K -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
2012/8/29 Justin Anderson magouyaw...@gmail.com To load assets or resources you need to use the Application context... I read that and realized this was wrong... I meant to say that as long as you are only loading assets or resources then you would be perfectly fine using the application context Not necessarily - contexts sometimes get nested (wrapped) as other contexts with theme customizations applied in the process. Just to give an example, loading an item for a ListView inside a dialog on 2.* will produce wrong colors if you don't use a wrapped context / inflater. Another place where context / theme wrapping takes place is the action bar code. Yet another example: if an app sets themes on its activities dynamically, it's entirely possible to have the (let's pick one) dark theme in the application context, and a dynamically set light theme in an activity. Loading textviews with the wrong one will result in unreadable text. -- K (but you don't need to if you have another way to get a context). The application context should not be used for anything having to do with UI. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:14 PM, Justin Anderson magouyaw...@gmail.comwrote: To load assets or resources you need to use the Application context... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] global_context
Not necessarily - contexts sometimes get nested (wrapped) as other contexts with theme customizations applied in the process. Just to give an example, loading an item for a ListView inside a dialog on 2.* will produce wrong colors if you don't use a wrapped context / inflater. Another place where context / theme wrapping takes place is the action bar code. Yet another example: if an app sets themes on its activities dynamically, it's entirely possible to have the (let's pick one) dark theme in the application context, and a dynamically set light theme in an activity. Loading textviews with the wrong one will result in unreadable text. Good points... I have never done these things and was unaware of these cases. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 4:07 PM, Kostya Vasilyev kmans...@gmail.com wrote: 2012/8/29 Justin Anderson magouyaw...@gmail.com To load assets or resources you need to use the Application context... I read that and realized this was wrong... I meant to say that as long as you are only loading assets or resources then you would be perfectly fine using the application context Not necessarily - contexts sometimes get nested (wrapped) as other contexts with theme customizations applied in the process. Just to give an example, loading an item for a ListView inside a dialog on 2.* will produce wrong colors if you don't use a wrapped context / inflater. Another place where context / theme wrapping takes place is the action bar code. Yet another example: if an app sets themes on its activities dynamically, it's entirely possible to have the (let's pick one) dark theme in the application context, and a dynamically set light theme in an activity. Loading textviews with the wrong one will result in unreadable text. -- K (but you don't need to if you have another way to get a context). The application context should not be used for anything having to do with UI. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Aug 28, 2012 at 3:14 PM, Justin Anderson magouyaw...@gmail.comwrote: To load assets or resources you need to use the Application context... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview text size
Use your own layout... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 27, 2012 at 9:39 PM, RAM ramon26c...@gmail.com wrote: how to resize the font size of a listview/gridview text -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Ok, thank you for the precision! Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev a écrit : 2012/8/29 Thesalan thes...@gmail.com javascript: Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here : http://developer.android.com/guide/topics/graphics/hardware-accel.html) but it doesn't work : content stay inside the viewpager. You can't force hardware accel off with setLayertType if it's already been set to enabled elsewhere (in the manifest, or I suppose in your ROM). Going the other way (software - GPU) is possible. -- K -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Kostya, you are wrong :) setLayerType() always lets you go back to software. It doesn't let you go to hardware if the app is not hardware accelerated. The whole point of setLayerType(SOFTWARE) is to be able to selectively disable hardware acceleration for small parts of the app (to work around missing features or compatibility issues.) On Wed, Aug 29, 2012 at 12:02 AM, Kostya Vasilyev kmans...@gmail.com wrote: 2012/8/29 Thesalan thesa...@gmail.com Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here : http://developer.android.com/guide/topics/graphics/hardware-accel.html) but it doesn't work : content stay inside the viewpager. You can't force hardware accel off with setLayertType if it's already been set to enabled elsewhere (in the manifest, or I suppose in your ROM). Going the other way (software - GPU) is possible. -- K -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null) always works, no matter how or if hardware acceleration is enabled. On Tuesday, August 28, 2012 3:18:18 PM UTC-7, Thesalan wrote: Ok, thank you for the precision! Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev a écrit : 2012/8/29 Thesalan thes...@gmail.com Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here : http://developer.android.com/guide/topics/graphics/hardware-accel.html) but it doesn't work : content stay inside the viewpager. You can't force hardware accel off with setLayertType if it's already been set to enabled elsewhere (in the manifest, or I suppose in your ROM). Going the other way (software - GPU) is possible. -- K -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Ok thanks! But when I do it on the ViewPager, the clipping stay... I will try again tomorrow, it's late for me here ;) Thanks again! Le mercredi 29 août 2012 00:23:03 UTC+2, Romain Guy (Google) a écrit : Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null) always works, no matter how or if hardware acceleration is enabled. On Tuesday, August 28, 2012 3:18:18 PM UTC-7, Thesalan wrote: Ok, thank you for the precision! Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev a écrit : 2012/8/29 Thesalan thes...@gmail.com Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here : http://developer.android.com/guide/topics/graphics/hardware-accel.html) but it doesn't work : content stay inside the viewpager. You can't force hardware accel off with setLayertType if it's already been set to enabled elsewhere (in the manifest, or I suppose in your ROM). Going the other way (software - GPU) is possible. -- K -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ViewPager and setClipChildren(false)
Thanks for clarifying, I stand corrected. -- K 2012/8/29 Romain Guy romain...@android.com Kostya, you are wrong :) setLayerType() always lets you go back to software. It doesn't let you go to hardware if the app is not hardware accelerated. The whole point of setLayerType(SOFTWARE) is to be able to selectively disable hardware acceleration for small parts of the app (to work around missing features or compatibility issues.) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] TableRow in list view Postion
below solution will fetch data from SharedPrefrence and will coloured(below instead of changing colour am putting background image) the Required Table Row as per the requirement try { String[] color=getFromPrefs();//you can use your own logic TableRow ActiveItem = (TableRow) convertView.findViewById(R.id.tbldata); for (String strColour:color) { String [] arr=null; arr=strColour.split(-); int a=Integer.parseInt(arr[0]); int b=Integer.parseInt(uid[position]); if(a==b) { ActiveItem.setBackgroundResource(R.drawable.topbg1); break; } else { ActiveItem.setBackgroundResource(R.drawable.message); } } } catch(Exception e) { String s=Rahul; } I fail to see how anyone other than yourself would have been able to come up with an answer like this based on your initial question... As a reminder your initial question was this: how to find the particular table row TableLayout from the ListView Please sugest Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 27, 2012 at 10:17 PM, Rahul Kaushik rahulkaushi...@gmail.comwrote: below solution will fetch data from SharedPrefrence and will coloured(below instead of changing colour am putting background image) the Required Table Row as per the requirement -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I need help
running mac os x 10.5.8 with eclipse juno which may be the whole problem in the first place, after going into my utilities to check java preferences, I see two java apps j2se 5.0 and 1.4.2 now its for me to figure out how to get those android packages to interact with my eclipse program.please help -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: I need help
Errol wrote: running mac os x 10.5.8 with eclipse [sic] juno [sic] which may be the whole problem in the first place, after going into my utilities to check java [sic] preferences, I see two java [sic] apps j2se 5.0 and 1.4.2 now its [sic] for me to figure out how to get those android [sic] packages to interact with my eclipse [sic] program. [sic] please help Eclipse is not the problem. What utilities did you go into? Are you referring to the menu entry Eclipse/Preferences/Java/Installed JREs? Java 5 is obsolete. Upgrade to Java 6 or 7. Follow Eclipse's instructions for making the new JRE (JDK, in your case) one of the Installed JREs. I use Eclipse for Android work and I've installed the Java SE 6 that is the MacOS X default - well, actually, Eclipse installed it for me when I installed Eclipse. What Android packages are you trying to get to interact with Eclipse, and what do you mean exactly by interact? Did you download the Android Development Kit (ADK) and associated tools as instructed on the Android web site? Did you download and install the Eclipse Android plugin as instructed on the Android web site? -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ViewPager and setClipChildren(false)
Thesalan - Calling setLayerType() on just the View will work, but you have to do it on the correct view. In this case, the issue that doesn't work with hardware acceleration is the parent ViewGroup clipping its children, so the PagerContainer in the example is the view that you need to call it on, not the ViewPager itself. If you modify PagerContainer.java in the gist like so: private void init() { setClipChildren(false); setLayerType(View.LAYER_TYPE_SOFTWARE, null); } You should be able to enable hardware acceleration in your manifest and the pager code will still work as expected. I will update the gist example when I have a spare moment with some discussion, and I have starred the issue Mark created (you should do the same). Cheers, Dave Smith @devunwired On Monday, August 27, 2012 2:29:20 AM UTC-6, Thesalan wrote: Hi! I started Android development last week, and I have a problem with a code on some devices : I have to develop an application with a specific controller like a horizontal wheel. To do this, I want to use the ViewPager, with setClipChildren(false) to extend the view. I based on the following code : https://gist.github.com/8cbe094bb7a783e37ad1 The result looks like this : https://lh4.googleusercontent.com/-DjFOnG7O0wY/UDstWN3AE2I/AfE/yWpndOBTWIA/s1600/emulator.png The ViewPager here is just on Item4, and with setClipChildren(false) we can see the other item. This works greats on emulator (tested on API 7 to 16) and some devices! But I encounter some problems on more recent devices, like HTC One X (Android 4.0.4) and a Nexus S (CM10 - Android 4.1.1) : the ViewPager doesn't really extended! Just the current item is shown, and when you are sliding, the next item is shown : https://lh3.googleusercontent.com/-clS7voj3rLk/UDsvfP1HnhI/AfM/K8uMV_9PLFA/s1600/onex_current.png When sliding : https://lh5.googleusercontent.com/-3tYaKu_Oz7w/UDsvnljXJ0I/AfU/JEaCZolThJ4/s1600/onex_sliding.png Anybody else already encounter this problem? I think is an optimization on these devices, but how can I bypass this? Thanks in advance! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is certificate pinning possible to do with a WebView?
Not via an explicit https connection, but using a WebView, can I make it do certificate pinning? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MapFragment
I made a little library, mashing up the LocalActivityManager-based solutions for the MapFragment problem: https://github.com/coreform/android-tandemactivities -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: I need help
I was referring to utilities folder in my application directory also after trying to install jdk7u6 it returned a javascript error I am using leopard so I guess there is no getting around that if I need a later version osx, due to the fact that this is the latest version for my system I suppose if eclipse had installed the java package for me then I would have no problems with getting the android sdk manager to run, but for me this is not the case I believe that I followed the instructions correctly, and could be wrong so I will try to get jdk 6 or better installed before crying for more help I want to get to the part of installing the android packages right after I install the adt plugin and restart eclipse, but I didn't get the dialog to run after restart (interact - for lack of a better word) thanks On Tue, Aug 28, 2012 at 7:21 PM, Lew lewbl...@gmail.com wrote: Errol wrote: running mac os x 10.5.8 with eclipse [sic] juno [sic] which may be the whole problem in the first place, after going into my utilities to check java [sic] preferences, I see two java [sic] apps j2se 5.0 and 1.4.2 now its [sic] for me to figure out how to get those android [sic] packages to interact with my eclipse [sic] program. [sic] please help Eclipse is not the problem. What utilities did you go into? Are you referring to the menu entry Eclipse/Preferences/Java/Installed JREs? Java 5 is obsolete. Upgrade to Java 6 or 7. Follow Eclipse's instructions for making the new JRE (JDK, in your case) one of the Installed JREs. I use Eclipse for Android work and I've installed the Java SE 6 that is the MacOS X default - well, actually, Eclipse installed it for me when I installed Eclipse. What Android packages are you trying to get to interact with Eclipse, and what do you mean exactly by interact? Did you download the Android Development Kit (ADK) and associated tools as instructed on the Android web site? Did you download and install the Eclipse Android plugin as instructed on the Android web site? -- Lew -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ICS Camera vs JB Camera
I have noticed that JB Camera APK uses more CPU than ICS Camera. Do you guys see the difference? Is there any difference with respect to application? I see atleast 25% higher CPU usage in JB Camera Application. Any points would be appreciated. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ICS Camera vs JB Camera
I have noticed that JB Camera APK uses more CPU than ICS Camera. Do you guys see the difference? Is there any difference with respect to application? I see atleast 25% higher CPU usage in JB Camera Application. Any points would be appreciated. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Play registeration payment fail
Hello guys, I'm trying to register Google Play developer by using google wallet payment but it keeps fail. I have entered in my credit card number correctly (i.e. 512X [without spaces]), the CVS number (3 digit numbers at the back of your card), and expiry date as well. I don't understand what have I entered incorrectly, or perhaps, is it possible to make payment using paypal? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google Play registeration payment fail
Phone your card issuer, your may have to answer a security question. On Wednesday, August 29, 2012 1:47:05 AM UTC+1, Mr Jason wrote: Hello guys, I'm trying to register Google Play developer by using google wallet payment but it keeps fail. I have entered in my credit card number correctly (i.e. 512X [without spaces]), the CVS number (3 digit numbers at the back of your card), and expiry date as well. I don't understand what have I entered incorrectly, or perhaps, is it possible to make payment using paypal? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.
Thanks Nikolay the Google Play services seems half implemented to me :-( I'm already asking for the Google Play permission, I don't really want to also be asking for AccountManager access just to find out some kind of identity for the person that has purchased the item. I don't even need a global identity, I just need an identity unique to my app. re: OAuth2 on Android - isn't that already available? http://code.google.com/p/google-api-java-client/wiki/OAuth2#Android William On Tuesday, August 28, 2012 3:38:02 PM UTC+10, Nikolay Elenkov wrote: On Tue, Aug 28, 2012 at 1:53 PM, William Ferguson william.f...@gmail.com javascript: wrote: I *will* be authenticating to AppEngine, but to do so via a web service you need to pass that auth along with the http request, which means you need to gather it on the Android device first, which leads back to the top. Or did I miss something? Right. You can either get only the email (Google account) from AccountManager or use the email to get an authentication token for a Google service, such as GAE. (this needs yet more permissions). If you pass the auth token, the GAE User service can extract the identity from it so you don't need to pass identity info separately. The tricky part here is that the authentication that currently works (ClientLogin with the 'ah' service name) is currently deprecated, and the library to get the new-style (OAuth2) token has not yet been released (Google Play Services). That said, it should work fine with ClientLogin for now (deprecation period is 1 year). -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] imac g5 ppc 12,1
I guess that I am short of luck running the jdk 6 app. I don't seem to be able to get anything better than j2se 5.0 and 1.4.2, because that's the best that leopard can do for me so, I'll cut my losses and go within the app dev com to deal with xcode, and their sdk.. I've even tried installing earlier versions of eclipse, but it won't let me get to the android sdk manager to install the packages after the adt and gpe plugins -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] camera
Hi guys, I am trying to learn android hardware programming. an example of camera programming, I took from a book, which is as listed bellow. However unfortunately I am geting an error. a process stops unexpectdly. the pb I guess as per to what is shown by the log cat, is due to a pb of connecting to the camera service. guys I need your help, thank you! - program package com.example.chapter7_hardware; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.PixelFormat; import android.hardware.Camera; import android.hardware.Camera.PictureCallback; import android.hardware.Camera.ShutterCallback; import android.os.Bundle; import android.provider.MediaStore.Images; import android.app.Activity; import android.content.Intent; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.view.Window; import android.view.WindowManager; import android.widget.Button; import android.widget.Toast; import android.support.v4.app.NavUtils; public class CameraApplication extends Activity implements SurfaceHolder.Callback{ private static final String TAG = cookbook.hardware; private LayoutInflater mInflater = null; Camera mCamera; byte[] tempdata; boolean mPreviewRunning = false; private SurfaceHolder mSurfaceHolder; private SurfaceView mSurfaceView; Button takepicture; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // getWindow().setFormat(PixelFormat.TRANSLUCENT); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_camera_application); mSurfaceView = (SurfaceView) findViewById(R.id.surface); mSurfaceHolder = mSurfaceView.getHolder(); mSurfaceHolder.addCallback(this); mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); mInflater = LayoutInflater.from(this); View overView = mInflater.inflate(R.layout.cameraoverlay, null); this.addContentView(overView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); takepicture = (Button) findViewById(R.id.button1); takepicture.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub mCamera.takePicture(mShutterCallback, mPictureCallback, mjpeg); } }); } ShutterCallback mShutterCallback = new ShutterCallback(){ @Override public void onShutter(){} }; PictureCallback mPictureCallback = new PictureCallback(){ @Override public void onPictureTaken(byte[] data, Camera c){} }; PictureCallback mjpeg = new PictureCallback(){ public void onPictureTaken(byte[] data, Camera c){ if (data != null){ tempdata = data; done(); } } }; void done() { Bitmap bm = BitmapFactory.decodeByteArray(tempdata, 0, tempdata.length); String url = Images.Media.insertImage(getContentResolver(), bm, null, null); bm.recycle(); Bundle bundle = new Bundle(); if (url != null){ bundle.putString(url, url); Intent mIntent = new Intent(); mIntent.putExtras(bundle); setResult(RESULT_OK, mIntent); } else { Toast.makeText(this, Picture can not be saved, Toast.LENGTH_LONG).show(); } finish(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_camera_application, menu); return true; } @Override public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { // TODO Auto-generated method stub Log.e(TAG, surfaceChanged); try{ if (mPreviewRunning){ mCamera.stopPreview(); mPreviewRunning = false; } Camera.Parameters p = mCamera.getParameters(); p.setPreviewSize(w, h); mCamera.setParameters(p); mCamera.setPreviewDisplay(holder);
Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.
On Wed, Aug 29, 2012 at 10:35 AM, William Ferguson william.ferguson...@gmail.com wrote: Thanks Nikolay the Google Play services seems half implemented to me :-( AFAIK, it is not available yet, are you referring to the docs? https://developers.google.com/android/google-play-services/ I'm already asking for the Google Play permission, I don't really want to also be asking for AccountManager access just to find out some kind of identity for the person that has purchased the item. I don't even need a global identity, I just need an identity unique to my app. I see what you mean: users seem to be easily spooked by AccountManager permissions, which is unfortunate because using the AccountManager is actually better for them (no need to enter a password). On ICS you can get the email through the user profile, but that also requires permissions (which are, IMHO, even scarier). Details: http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address/2175688#2175688 Short of having users specify their address/name when starting your app or making a purchase, the only other alternative is to link with some 'social' app (FB, etc.) and (try to) get their identity from there, but that's another can of worms. re: OAuth2 on Android - isn't that already available? http://code.google.com/p/google-api-java-client/wiki/OAuth2#Android Yes, but only sort of. Now it depends on the Google services framework which is part of the firmware and has different versions on different devices. Additionally, not all OAuth2 scopes are supported, and the permission screen can be cryptic (Do you want to allow access to app X to data of scope 'https://blah.foo.bar/somedata', or some such). Google Pay Services will be part of Google Play and updated automatically, so most devices should get the same implementation. It it said to have a better account chooser and other UI/usability improvements. Not sure why they are delaying though, it was announced a while back as 'coming soon'. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Get cellular signal frequency?
Hi all, Is there any API which returns the cellular signal frequency? I found SignalStrength class, which returns the stregth, in db, but it doesnt return the frequency. Does anybody know if its possible to get this info? Thanks! -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get cellular signal frequency?
I don't think this is exposed through RIL. Why do you need to know it? kris On Tue, Aug 28, 2012 at 10:26 PM, Felipe Silveira webfel...@gmail.com wrote: Hi all, Is there any API which returns the cellular signal frequency? I found SignalStrength class, which returns the stregth, in db, but it doesnt return the frequency. Does anybody know if its possible to get this info? Thanks! -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Google Play registeration payment fail
hi ...can any one please please help me out regarding reset password in lock application... My requirement is that i have a sqlite database with a string value as that is default password. In main activity of xml when we enter the default password it goes to subactivity which is used for reset password .so when we close the emulator(switch off/on) it should be reset password instead of default password. Thanks , Sravanthi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview text size
Just complementing... use your own layout for the list itens. On Tue, Aug 28, 2012 at 7:15 PM, Justin Anderson magouyaw...@gmail.comwrote: Use your own layout... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 27, 2012 at 9:39 PM, RAM ramon26c...@gmail.com wrote: how to resize the font size of a listview/gridview text -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.
the Google Play services seems half implemented to me :-( AFAIK, it is not available yet, are you referring to the docs? https://developers.google.com/android/google-play-services/ No. Perhaps I misunderstood one of the GoogleIO sessions. They were referring to in-app billing and Google Play Services in the same breath. It appeared to be a rebranding of billing as Google Play Services. I was actually referring to in-app billing. The example is all locally hosted, but the doco in the example keeps reminding you that sections of this should be hosted on your own server (eg signature verification and management of unmanaged items), but as soon as you try the 2nd of those you run into this exact question of user identity. SO it kind of looks half baked to me. I was expecting the purchased event to contain some kind of user identity as well as transaction identity. re: OAuth2 on Android - isn't that already available? http://code.google.com/p/google-api-java-client/wiki/OAuth2#Android Yes, but only sort of. Now it depends on the Google services framework which is part of the firmware and has different versions on different devices. Additionally, not all OAuth2 scopes are supported, and the permission screen can be cryptic (Do you want to allow access to app X to data of scope 'https://blah.foo.bar/somedata', or some such). Google Pay Services will be part of Google Play and updated automatically, so most devices should get the same implementation. It it said to have a better account chooser and other UI/usability improvements. Not sure why they are delaying though, it was announced a while back as 'coming soon'. Hmm .. I also couldn't see from the details that using Google Play Services requires any extra permissions. It doesn't seem to have an account chooser, but that doesn't mean that the user will choose the same account with which they made the purchase. And it would seem weird anyway, since they just selected their account when making a purchase and now I'll have to ask them to select their account again? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get cellular signal frequency?
I need this in an application which helps choose which external antenna type is indicated for each area. It is related to the signal frequency... Thanks! On Tue, Aug 28, 2012 at 11:31 PM, Kristopher Micinski krismicin...@gmail.com wrote: I don't think this is exposed through RIL. Why do you need to know it? kris On Tue, Aug 28, 2012 at 10:26 PM, Felipe Silveira webfel...@gmail.com wrote: Hi all, Is there any API which returns the cellular signal frequency? I found SignalStrength class, which returns the stregth, in db, but it doesnt return the frequency. Does anybody know if its possible to get this info? Thanks! -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] USB Host hardware requirements?
Hi All, I have a USB based sensor that would draw about 300mA and would like to use it with my Android phone. I have tried to play around with the API's and write a small application that would just list out the devices that were connected to the USB bus. A small code snippet that I am trying to use to print out the connected devices is: * EditText lsusbText = (EditText) findViewById(R.id.lsusbTextID); lsusbText.setText(); Log.i(TAG, Querying USB devices); UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); HashMapString, UsbDevice deviceList = manager.getDeviceList(); IteratorUsbDevice deviceIterator = deviceList.values().iterator(); while(deviceIterator.hasNext()){ UsbDevice device = deviceIterator.next(); //your code lsusbText.append(device.getDeviceName()); } My manifest has: uses-feature android:name=android.hardware.usb.host / intent-filter action android:name=android.hardware.usb.action.USB_DEVICE_ATTACHED / /intent-filter * I noticed that the results are not showing any devices connected. After researching a bit and poking around in the forums, it seems that only specific hardware devices support USB Host mode. I have a Samsung Nexus S phone, and am inclined to believe that this phone does not support the USB host mode? I also tried plugging in a mouse via an OTG adapter, but the USB mouse didn't receive power after it was plugged in. The Android API's also suggest this: Note: Support for USB host and accessory modes are ultimately dependant on the device's hardware, regardless of platform level. Is there a listing of the Android powered devices that support USB host mode? Also, out of curiosity, why is there a hardware requirement for USB host? Is it the specific type of USB connector that the phone has (Micro-A vs Micro-B)? Is it something related to the USB Bus power? Any information regarding the hardware requirements, which devices currently support this, etc would be great. I also found that there is a libusb port to Android, which would allow access at a lower level. However, this would potentially still require the hardware to support the USB host mode. Additionally, I have seen things about a kernel mod required. I'm guessing the kernel stuff was for older image releases, and that Android 4.1 has this kernel mod built in. I unfortunately found that the documentation for WiFi direct is similarly ambiguous in that although WiFi direct is something that is enabled and available for use in the API, the hardware may not support it. However, I haven't found any documentation which tells developers which devices support/don't support the functionality. Thanks in advance, Kiran -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get cellular signal frequency?
Well, I don't know how to do it in the API, but that's probably me being too lazy to look through the telephony classes, It *is* possible to do so, and I beieve it must be exposed through the RIL.. http://android.stackexchange.com/questions/23572/how-to-tell-current-frequency-band kris On Tue, Aug 28, 2012 at 10:45 PM, Felipe Silveira webfel...@gmail.com wrote: I need this in an application which helps choose which external antenna type is indicated for each area. It is related to the signal frequency... Thanks! On Tue, Aug 28, 2012 at 11:31 PM, Kristopher Micinski krismicin...@gmail.com wrote: I don't think this is exposed through RIL. Why do you need to know it? kris On Tue, Aug 28, 2012 at 10:26 PM, Felipe Silveira webfel...@gmail.com wrote: Hi all, Is there any API which returns the cellular signal frequency? I found SignalStrength class, which returns the stregth, in db, but it doesnt return the frequency. Does anybody know if its possible to get this info? Thanks! -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira http://www.felipesilveira.com.br - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.
On Wed, Aug 29, 2012 at 11:39 AM, William Ferguson william.ferguson...@gmail.com wrote: the Google Play services seems half implemented to me :-( AFAIK, it is not available yet, are you referring to the docs? https://developers.google.com/android/google-play-services/ No. Perhaps I misunderstood one of the GoogleIO sessions. They were referring to in-app billing and Google Play Services in the same breath. It appeared to be a rebranding of billing as Google Play Services. I was actually referring to in-app billing. The example is all locally hosted, but the doco in the example keeps reminding you that sections of this should be hosted on your own server (eg signature verification and management of unmanaged items), but as soon as you try the 2nd of those you run into this exact question of user identity. SO it kind of looks half baked to me. I was expecting the purchased event to contain some kind of user identity as well as transaction identity. I see. In that case, yes, the IAB API is both clunky and missing obvious things (like getting a list of items and their prices so you can display it in your app, among other things). It's been over a year now, and all that has changed is the addition of subscriptions. Not sure if we can expect improvement... Hmm .. I also couldn't see from the details that using Google Play Services requires any extra permissions. It probably connects to the Play Client via IPC like the current billing service, which has practically all possible permissions. It doesn't seem to have an account chooser, but that doesn't mean that the user will choose the same account with which they made the purchase. And it would seem weird anyway, since they just selected their account when making a purchase and now I'll have to ask them to select their account again? You only need to have them choose once and you can cache it, but not too user friendly indeed. We can only hope that the actual implementation will somehow take care of this, but I don't see it in the API. BTW, the 'account chooser' is this: https://developers.google.com/android/google-play-services/reference/com/google/android/gms/common/AccountPicker -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 14 Topics
i have my Laptop away, i cant send u but its the Code but its calling that class again and again. The last method. The last method. On Aug 28, 2012 8:39 PM, android-developers@googlegroups.com wrote: Today's Topic Summary Group: http://groups.google.com/group/android-developers/topics - I need help #1396fd17d4585edb_group_thread_0 [3 Updates] - MapFragment #1396fd17d4585edb_group_thread_1 [1 Update] - Is certificate pinning possible to do with a WebView?#1396fd17d4585edb_group_thread_2[1 Update] - ViewPager and setClipChildren(false)#1396fd17d4585edb_group_thread_3[4 Updates] - TableRow in list view Postion #1396fd17d4585edb_group_thread_4 [1 Update] - detect weather incoming call fron landline number or mobile number#1396fd17d4585edb_group_thread_5[2 Updates] - Use of shapes for background #1396fd17d4585edb_group_thread_6 [1 Update] - Android custom view (very basic) #1396fd17d4585edb_group_thread_7[1 Update] - Are there any official Google sponsored training seminars/classes, etc? #1396fd17d4585edb_group_thread_8 [2 Updates] - ACRA #1396fd17d4585edb_group_thread_9 [1 Update] - Getting mapview as image #1396fd17d4585edb_group_thread_10 [1 Update] - need to allow user to draw a region on Google map#1396fd17d4585edb_group_thread_11[2 Updates] - how to set two spinners with different strings and icons?#1396fd17d4585edb_group_thread_12[3 Updates] - how to .setText of a String with different colours?#1396fd17d4585edb_group_thread_13[2 Updates] I need helphttp://groups.google.com/group/android-developers/t/1d612207df4f3055 Errol r3whitme...@gmail.com Aug 28 03:51PM -0700 running mac os x 10.5.8 with eclipse juno which may be the whole problem in the first place, after going into my utilities to check java preferences, I see two java apps j2se 5.0 and 1.4.2 now its for me to figure out how to get those android packages to interact with my eclipse program.please help Lew lewbl...@gmail.com Aug 28 04:21PM -0700 Errol wrote: java [sic] preferences, I see two java [sic] apps j2se 5.0 and 1.4.2 now its [sic] for me to figure out how to get those android [sic] packages to interact with my eclipse [sic] program. [sic] please help Eclipse is not the problem. What utilities did you go into? Are you referring to the menu entry Eclipse/Preferences/Java/Installed JREs? Java 5 is obsolete. Upgrade to Java 6 or 7. Follow Eclipse's instructions for making the new JRE (JDK, in your case) one of the Installed JREs. I use Eclipse for Android work and I've installed the Java SE 6 that is the MacOS X default - well, actually, Eclipse installed it for me when I installed Eclipse. What Android packages are you trying to get to interact with Eclipse, and what do you mean exactly by interact? Did you download the Android Development Kit (ADK) and associated tools as instructed on the Android web site? Did you download and install the Eclipse Android plugin as instructed on the Android web site? -- Lew Errol Raymond r3whitme...@gmail.com Aug 28 08:29PM -0400 I was referring to utilities folder in my application directory also after trying to install jdk7u6 it returned a javascript error I am using leopard so I guess there is no getting around that if I need a later version osx, due to the fact that this is the latest version for my system I suppose if eclipse had installed the java package for me then I would have no problems with getting the android sdk manager to run, but for me this is not the case I believe that I followed the instructions correctly, and could be wrong so I will try to get jdk 6 or better installed before crying for more help I want to get to the part of installing the android packages right after I install the adt plugin and restart eclipse, but I didn't get the dialog to run after restart (interact - for lack of a better word) thanks MapFragmenthttp://groups.google.com/group/android-developers/t/29f133be089b6d9e metal mikey coref...@gmail.com Aug 28 05:03PM -0700 I made a little library, mashing up the LocalActivityManager-based solutions for the MapFragment problem: https://github.com/coreform/android-tandemactivities Is certificate pinning possible to do with a WebView?http://groups.google.com/group/android-developers/t/1382d351f295e35d paladin quoti...@gmail.com Aug 28 04:50PM -0700 Not via an explicit https connection, but using a WebView, can I make it do certificate pinning? ViewPager and setClipChildren(false)http://groups.google.com/group/android-developers/t/448111c54706a508 Romain Guy (Google) romain...@android.com Aug 28 03:23PM -0700 Thesalan, it's incorrect.
[android-developers] Re: JellyBean problem on Long click when context menu and android:autolink= all
Hi Please let me know asap, I am stuck. On Aug 28, 1:32 pm, Jason Sesso djse...@gmail.com wrote: It seems that you. Need to add the onlongclick method. I just did this recently. Ill get you an example in awhile. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JellyBean problem on Long click when context menu and android:autolink= all
Please post the solution asap i am stuck. On Aug 28, 1:32 pm, Jason Sesso djse...@gmail.com wrote: It seems that you. Need to add the onlongclick method. I just did this recently. Ill get you an example in awhile. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get cellular signal frequency?
On Tue, Aug 28, 2012 at 10:52:46PM -0400, Kristopher Micinski wrote: On Tue, Aug 28, 2012 at 10:45 PM, Felipe Silveira webfel...@gmail.com wrote: I need this in an application which helps choose which external antenna type is indicated for each area. It is related to the signal frequency... Well, I don't know how to do it in the API, but that's probably me being too lazy to look through the telephony classes, I, on the other hand, got a degree in electronics, with a specialty in telecommunications. Cellular systems, both the old analog and the current digital cellular, work in specific frequency RANGES. The exact frequency you will use at any given time is determined when you either initiate a call and the local cell tower assigns you a frequency, or you're handed off from one tower to another, and the new tower assigns it. In other words, it changes frequently, and is something you don't control. As for the type of antenna, the last time I checked, that'd be vertically polarized (and it's NOT based on the frequency---it's the type of antenna used on cell towers---if you use horizontal polarization, and the tower's antenna is vertical (or any other mis-match in polarization), you lose about 25 dB. That's bad...that's VERY bad. If you need an external antenna, buy one designed and certified to work with your cellular service. You're not talking about amateur radio, where experimenting is not only ok, it's normal ... you're talking about the cellular provider's network, where it most definitely is not. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | This 'telephone' has too many spooky1...@gmail.com | shortcomings to be seriously considered Running Mac OS X Lion | as a means of communication. The device ICBM / Hurricane: | is inherently of no value to us. 30.44406N 86.59909W| (Western Union internal memo, 1876) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get cellular signal frequency?
That's worth mentioning, generally the stats reported by telephony hardware are highly nominal at best and will change or fluctuate quite a bit depending on the protocol, etc... (I also have an EE degree, and can attest to most hardware being kind of flakey..) kris On Wed, Aug 29, 2012 at 1:01 AM, Jim Graham spooky1...@gmail.com wrote: On Tue, Aug 28, 2012 at 10:52:46PM -0400, Kristopher Micinski wrote: On Tue, Aug 28, 2012 at 10:45 PM, Felipe Silveira webfel...@gmail.com wrote: I need this in an application which helps choose which external antenna type is indicated for each area. It is related to the signal frequency... Well, I don't know how to do it in the API, but that's probably me being too lazy to look through the telephony classes, I, on the other hand, got a degree in electronics, with a specialty in telecommunications. Cellular systems, both the old analog and the current digital cellular, work in specific frequency RANGES. The exact frequency you will use at any given time is determined when you either initiate a call and the local cell tower assigns you a frequency, or you're handed off from one tower to another, and the new tower assigns it. In other words, it changes frequently, and is something you don't control. As for the type of antenna, the last time I checked, that'd be vertically polarized (and it's NOT based on the frequency---it's the type of antenna used on cell towers---if you use horizontal polarization, and the tower's antenna is vertical (or any other mis-match in polarization), you lose about 25 dB. That's bad...that's VERY bad. If you need an external antenna, buy one designed and certified to work with your cellular service. You're not talking about amateur radio, where experimenting is not only ok, it's normal ... you're talking about the cellular provider's network, where it most definitely is not. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | This 'telephone' has too many spooky1...@gmail.com | shortcomings to be seriously considered Running Mac OS X Lion | as a means of communication. The device ICBM / Hurricane: | is inherently of no value to us. 30.44406N 86.59909W| (Western Union internal memo, 1876) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best way to do a refresh?
I am writing a single-activity Android app that accesses data from various places on the internet and displays it on the screen. This data can change over time. I need to give the user the option to do a manual refresh when he chooses, in order to get the latest values. I have it set up as an option on the options menu when the user clicks the Menu button on the handset. But I think my implementation is faulty. Right now I have it set up as an intent to launch the activity again, so that it will automatically retrieve the latest values. The problem is that does not terminate the previous activity. So when the user pushes the escape button, they are back on the previous execution of the activity, which is the same app with the old data. Is there some way to terminate the old activity and then launch it again? Or is there a better way to do a refresh? Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get cellular signal frequency?
On Wed, Aug 29, 2012 at 01:04:23AM -0400, Kristopher Micinski wrote: That's worth mentioning, generally the stats reported by telephony hardware are highly nominal at best and will change or fluctuate quite a bit depending on the protocol, etc... (I also have an EE degree, and can attest to most hardware being kind of flakey..) Yeah, that's also often true. But the utter uselessness of trying to switch antennas every single time the cell tower in use tells the phone to switch frequencies make it a moot point (not to mention trying to design multiple antennas that have that tight of a frequency range... something we generally leave to the receiver's front end). :-) Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into waveguide with remaining eye. Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ACRA
On Tue, Aug 28, 2012 at 3:46 PM, bob b...@coolfone.comze.com wrote: Can someone help me understand how ACRA works? I know you don't grasp this concept, but once again: this has nothing to do with this list. If you want help with some 3rd Party Library, try the website of said library. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Best way to do a refresh?
On Wed, Aug 29, 2012 at 12:11 AM, Jungle Jim jjjungle...@gmail.com wrote: Is there some way to terminate the old activity and then launch it again? There is, you would call finish() on the current Activity before starting the new one, but this is very silly. Or is there a better way to do a refresh? When the user hits the refresh option, instead of restarting the Activity, simply cal whatever method the Activity calls when it starts up to do the initial refresh. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en