[android-developers] Re: How can I get Date/Time info from API level 21, when Date(), Calendar(), and SimpleDateFormat() all require API level 23.)
Ok I actually figured out the answer, after TWO DAYS of experimenting and getting ideas from Google searches. This is what works to get the date, and put it in a string I can use: In the XML file, I added this line to the TextClock definition: android:format12Hour="dd " of course, the format could be adjusted to any date/time info you want. And in the java file, put the info into astring with these three lines, placed appropriately: TextClock txtClock; txtClock = (TextClock) findViewById(R.id.txtClock); volText.setText(txtClock.getText()); ("volText" is a TextView elsewhere defined.) I'm rather amazed this information was so hard to find and put together from bits and pieces. Such needs/solutions should be clearly explained somewhere. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e3e94a97-d669-48a6-beff-948e8e5ec6f2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: How can I get Date/Time info from API level 21, when Date(), Calendar(), and SimpleDateFormat() all require API level 23.)
The TextClock Widget displays a string wtih the data I need; but then, how can I access that string's content? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7706b9d6-252c-47e0-a527-171e6b8188ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] How can I get Date/Time info from API level 21, when Date(), Calendar(), and SimpleDateFormat() all require API level 23.)
The title says it all. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/6ef63545-1100-49ad-bef5-4f830afbd772%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android Hotspot Sign in
Hi, I am a little bit confused to put Google Login into my hotspot login system, in order for android to show popup to hotspot sign in, I should block access to google domain, Yet, I should allow links to google to allow people to login to google account and accept permission, What have I done wrong? Helps appreciated, Regards, Tommy -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: [android-developers] improving gps lock time
Using the AGPS (wifi rather than Sat) will speed up the process a lot but less accurate. In most cases if going off a home wifi it is pretty accurate for me. I also notice if the user is OUTSIDE and the phone is not in the pocket the speed for SAT is pretty good (expect on my 1st gen droid and some other offshoots of the Moto Droid) You could grab the AGPS location during a splash screen and query the accuracy. If it is over X amount ( X being what you determine for meters) then you can call up the SAT service for the user. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of dashman Sent: Saturday, March 09, 2013 8:10 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] improving gps lock time ok - maybe there's other methods. i've seen apps decrease lock time by contacting NTP servers. Also apparently assisted gps helps - assisted gps just gets a wifi geo location - and just using that helps. i have a geo location also. i'm sure gps lock speeds can be decreased if you have an approx geo location...and maybe the precise time - i.e. know the sat positions etc. but maybe there's no public api for this - internally looks like android uses AGPS to speed up lock. -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android 4.2.1 and Wake Locks
Hi everyone, It seems that on my nexus 7 running android 4.2.1 the wake lock I have that on all other devices keeps the phone asleep and screen off to run a background service seems to wake the table up with the screen full bright. Why would it do this? I have a phone that is running 4.0.4 and it works correctly. Is there something I need to do differently? Below is the code for my wake lock: PowerManager pm1 = (PowerManager)context.getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl1 = pm1.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, x); wl1.acquire(3); Thanks in advance, Tommy -- 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 4.2.1 and Wake Locks
That appears to have worked. I'll be honest, I have no idea why or when that 2nd parameter got put in. As always, thank you mark for the advice! -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, January 01, 2013 1:14 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Android 4.2.1 and Wake Locks On Tue, Jan 1, 2013 at 12:29 PM, Tommy droi...@gmail.com wrote: It seems that on my nexus 7 running android 4.2.1 the wake lock I have that on all other devices keeps the phone asleep and screen off to run a background service seems to wake the table up with the screen full bright. Why would it do this? I have a phone that is running 4.0.4 and it works correctly. Is there something I need to do differently? Below is the code for my wake lock: PowerManager pm1 = (PowerManager)context.getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl1 = pm1.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, x); wl1.acquire(3); The combination of PARTIAL_WAKE_LOCK and ACQUIRE_CAUSES_WAKEUP is bizarre, IMHO. If you do not want the screen to turn on, get rid of ACQUIRE_CAUSES_WAKEUP. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.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 -- 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] Photoshop not appearing
I have a problem with Gimp not showing up but if I go to browse and open gimp.exe it works fine. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Friday, October 26, 2012 4:15 PM To: android-developers@googlegroups.com Subject: [android-developers] Photoshop not appearing Anyone else have trouble with Photoshop not appearing in the list of External programs when you try to edit an Android drawable from Eclipse? https://lh6.googleusercontent.com/-JPO9sSOhHQI/UIrvEm5JtZI/ADs/s-P3 zsJSydQ/s1600/Screen+Shot+2012-10-26+at+3.09.13+PM.png -- 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] Reuse a control
Hi, What I would like to do is create a table layout one time that displays all the data I need and has the code that controls what happens when elements inside the table are clicked. I then want to add this control to each of my activities that need to show this table. As of right now I have all the XML and all the code duplicated on each page that the table needs to be on. Is there a way to do this in Android? If so is there also a way to create one for each of the different screen sizes(small,normal,large,x-large)? If anyone could send some links to examples or if it is simple just briefly explain the steps I need to take to do something like this I would greatly appreciate it! I know with .net I could create a custom User control and design the UI and add the code then I could just add a reference to the control on any webpage I wanted it on. This kept the code clean and short and if I needed to make a change I only had to do it in one place. That is the functionality I am looking for. Thanks in Advance for any help/input, Tommy -- 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: Reuse a control
I found what i was looking for after modifying my search strings. I need to look into Compound Controls. On Monday, October 1, 2012 4:37:03 PM UTC-4, Tommy wrote: Hi, What I would like to do is create a table layout one time that displays all the data I need and has the code that controls what happens when elements inside the table are clicked. I then want to add this control to each of my activities that need to show this table. As of right now I have all the XML and all the code duplicated on each page that the table needs to be on. Is there a way to do this in Android? If so is there also a way to create one for each of the different screen sizes(small,normal,large,x-large)? If anyone could send some links to examples or if it is simple just briefly explain the steps I need to take to do something like this I would greatly appreciate it! I know with .net I could create a custom User control and design the UI and add the code then I could just add a reference to the control on any webpage I wanted it on. This kept the code clean and short and if I needed to make a change I only had to do it in one place. That is the functionality I am looking for. Thanks in Advance for any help/input, Tommy -- 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: Nexus 7 has no menu button?
Yeah what is the app name, I might have access to a nexus 7. I do have access to a 4.0 tablet that does not have any hard menu keys. I'd be happy to take a look and see if I can find the menu. I would consider myself an above average user who should be able to find the menu if it really is there hidden someplace J From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Francisco Marzoa Sent: Wednesday, September 19, 2012 5:46 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Nexus 7 has no menu button? What's your app? Is on Google play? On Sep 19, 2012 11:36 PM, Keith Wiley kbwi...@gmail.com wrote: Well, that's fair. I'm not denying the the current release is a little old and targets older SDKs. The app could certainly benefit from some sprucing up. However, I wanted to verify whether the app *should* essentially work on modern hardware given that some users were emailing me saying they didn't know how to access the menus. There's a big difference between saying I ought to update my app when I get a chance to keep things smooth and modern and saying the app is effectively broken on modern hardware and won't work until I release an emergency patch to get it going again. I was just trying to get a better picture of the circumstances. I *think* this discussion has cleared it up, and I *think* my app should be working on modern devices, albeit through an OS sidedoor meant as a temporary fix until older apps are updated. I'll have to try to find a Nexus to test it on myself to be absolutely certain of the circumstances. Thanks again. On Wednesday, September 19, 2012 2:27:36 PM UTC-7, Fran wrote: What Mark said is that you did things the standard way, users without hard menu button will see a soft one. But if you did it another way, it won't be shown. So you should update your app. On Sep 19, 2012 11:08 PM, Keith Wiley kbw...@gmail.com wrote: On Wednesday, September 19, 2012 1:58:42 PM UTC-7, bob wrote: Many of the latest Android devices have eliminated the hard menu key found on earlier hardware. Consequently, it's now the responsibility of app developers to include soft menu keys in their apps. Um, forgive me, but this response seems fundamentally at odds with Mark's initial response. Which response is closer to the correct answer? Is my app inherently broken on such devices or not? Thank you. -- 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 mailto:android-developers%2bunsubscr...@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] Re: Nexus 7 has no menu button?
On my Acer Iconia Tab I get the soft menu represented by 3 horizontal lines on the toolbar at the bottom that contains the time and battery information. So it defently shows even if there isn't a hard button for the menu. I will say from experience it took me a while to figure out what button was the menu button on this thing as it was my first tablet and I was accustomed to seeing the word MENU as a hard button on the phone itself. Seems like it might just be an Id10T error. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Francisco Marzoa Sent: Wednesday, September 19, 2012 6:37 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Nexus 7 has no menu button? Well, bear in mind that I was about to install the application just for helping you for free, so I am actually not interested on it enough to read the app description... Anyway I realized after writing my previous message that N7 has no phone at all, so that permission has no effect neither... so I installed the app and it actually SHOWS the menu soft button at bottom right as expected. May be some users are just special... On Sep 20, 2012 12:26 AM, Keith Wiley kbwi...@gmail.com wrote: OYE! We're off topic and this is a very common complaint. People butt heads with me over the permissions all. the. time. It's so frustrating. I do the best I can to explain these things up front on the Android Market (or Google Play [worst name ever]) but the Google Play interface is not amenable to disseminating this kind of information efficiently. For example, I offer an explanation for the various permissions right there on Google Play in the app description, but people don't read it anyway...and then they give me a hard time about the permissions even though I explained before they ever install the app! I can't stand it!!! :-D laughing-at-the-absurdity-of-the-situation The app is a spreadsheet. The ability to jump to the phone dialer was a specific user request (not even my idea) to enable users to tap phone numbers in spread sheets and jump to the dialer app to easy calling. It's really quite an intuitive concept when you think about it, I thought it was a fantastic suggestion from a user interfaced point of view, but you honestly would not believe how much grief I've gotten over it. On Wednesday, September 19, 2012 3:09:30 PM UTC-7, Fran wrote: Why it needs permission to call phone numbers? I rather like to try it on my N7, but no with such permission, indeed. On Sep 19, 2012 11:53 PM, Keith Wiley kbw...@gmail.com wrote: Shead Spreet Lite. I would also be curious about WildSpectra Mobile Lite. Since they are built in very similar ways (w.r.t. the basic OS framework and model) I expect their menu behavior to be similar such that verifying with either one should inform me about both...I presume. Thanks a bunch! On Wednesday, September 19, 2012 2:47:56 PM UTC-7, Fran wrote: What's your app? Is on Google play? On Sep 19, 2012 11:36 PM, Keith Wiley kbw...@gmail.com wrote: Well, that's fair. I'm not denying the the current release is a little old and targets older SDKs. The app could certainly benefit from some sprucing up. However, I wanted to verify whether the app *should* essentially work on modern hardware given that some users were emailing me saying they didn't know how to access the menus. There's a big difference between saying I ought to update my app when I get a chance to keep things smooth and modern and saying the app is effectively broken on modern hardware and won't work until I release an emergency patch to get it going again. I was just trying to get a better picture of the circumstances. I *think* this discussion has cleared it up, and I *think* my app should be working on modern devices, albeit through an OS sidedoor meant as a temporary fix until older apps are updated. I'll have to try to find a Nexus to test it on myself to be absolutely certain of the circumstances. Thanks again. On Wednesday, September 19, 2012 2:27:36 PM UTC-7, Fran wrote: What Mark said is that you did things the standard way, users without hard menu button will see a soft one. But if you did it another way, it won't be shown. So you should update your app. On Sep 19, 2012 11:08 PM, Keith Wiley kbw...@gmail.com wrote: On Wednesday, September 19, 2012 1:58:42 PM UTC-7, bob wrote: Many of the latest Android devices have eliminated the hard menu key found on earlier hardware. Consequently, it's now the responsibility of app developers to include soft menu keys in their apps. Um, forgive me, but this response seems fundamentally at odds with Mark's initial response. Which response is closer to the correct answer? Is my app inherently broken on such devices or not? Thank you. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
RE: [android-developers] School project help needed.
I had no concept of java or c++ I was a VB.net guy up until I needed to learn android. I just jumped right into Marks book as noted below and then started messing around with sample apps. If you have any programming background pickup up Java isn't hard as long as you know how to use google. If you get stuck, like I have in the past many times, ask a well thought out and detailed question to this forum and people WILL help, I have learned a lot from this forum. If you have 0 programming experience you might be in for a rough ride and you will want to make sure any project you come up with is rather basic or you may not have time to finish it. Learning how to design and layout your application is in my opinion the hardest part of android, but once you get it and figure it out it is smooth sailing from there. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Lew Sent: Wednesday, September 05, 2012 3:37 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] School project help needed. Kristopher Micinski wrote: I don't think that Android is a significantly new API or programming Compared to what? environment, and if you know Java (and even if you don't, but know C++ or something similar-ish well enough) will be very easy to pick up.. You elide over the difficulties. Java is more than a language, it's an environment, and that environment is quite different between Android and other platforms. For example, you could go through years of standard or enterprise Java programming without every defining a UI in XML. If this is new to you, it takes some getting used to, and no amount of Java or C++ knowledge is directly applicable. If you have a year of time to do so, I'd start by doing the following: - reading the developer guide - playing with a bunch of the sample apps - perhaps buying a copy of Mark Murphy's android book (the commonsware guide) if you find yourself needing more explained examples of the API, etc... You consider a year easy to pick up? I consider three days easy to pick up. A year seems on the long end of what it should take to be competent at Android programming. -- 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] Getting the google voice synthesizer
I don't think the source code is available. What exactly are you needing to change? From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Wednesday, August 29, 2012 5:48 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Getting the google voice synthesizer On Wed, Aug 29, 2012 at 3:31 PM, nikulau nmur...@gmail.com wrote: I need to edit a couple of things to de google voice synthesizer What is de google voice synthesizer? - 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 -- 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] scratching the surface
Here is a nice video tutorial. http://bit.ly/QvTjUv From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Justin Anderson Sent: Wednesday, August 01, 2012 1:55 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] scratching the surface Seriously... for a question like that... do a little homework. Step 1: Translate your question into searchable terms... maybe something like android glsurfaceview transparency Step 2: Type www.google.com in your browser's address bar Step 3: Search for the phrase you came up with in Step 1 Step 4: Figure it out on your own! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 1, 2012 at 11:44 AM, bob b...@coolfone.comze.com wrote: Is there any way to make a GLSurfaceView that isn't 100% opaque? -- 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 mailto:android-developers%2bunsubscr...@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] Re: Sending image from server to app
See how this works. I'm not sure of your process but if you can send the URL of the image to the phone so it knows where to download from you can then use the following example. http://www.helloandroid.com/tutorials/how-download-fileimage-url-your-device From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of RichardC Sent: Wednesday, August 01, 2012 2:41 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Sending image from server to app Server sends message hey look here is a new image, phone then pulls new image from server It's is easier to pull as the phone knows where to store the incoming image and can just restart the pull if/when the connection drops mid transfer. On Wednesday, August 1, 2012 7:35:01 PM UTC+1, Wolfgang wrote: Thanks for the response. I have already gone through GCM tutorials and accomplished sending messages. I've also accomplished establishing a HTTP connection and sending strings back and forth between the server and app. So now I want to send an image from my server to the app with a HTTP connection. GCM does not accomplish this. I hope this cleared up what I'm trying to do. Suggestions? Thanks, -W On Wednesday, August 1, 2012 2:29:32 PM UTC-4, RichardC wrote: Google Cloud Messaging for Android http://developer.android.com/guide/google/gcm/index.html On Wednesday, August 1, 2012 7:21:15 PM UTC+1, Wolfgang wrote: Hi guys, I'm currently trying to send an image from my server to the app. I can't seem to find any good resources on the subject. My server is written in VB. Any suggestions or good resources? Thanks, -W -- 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: Sending image from server to app
Cool. That is the example I used to get images off our server to the phone. Let me know if that works for you. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Wolfgang Sent: Wednesday, August 01, 2012 3:05 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Sending image from server to app Thanks for the replies. I'm sorry, I am attempting to pull from the server. I should have worded my question better. Tommy, I'll give that example a try. -W -- 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] scratching the surface
J From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Wednesday, August 01, 2012 3:40 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] scratching the surface This was the trick: setZOrderOnTop(true); By the way, excellent video. On Wednesday, August 1, 2012 1:19:34 PM UTC-5, Tommy wrote: Here is a nice video tutorial. http://bit.ly/QvTjUv From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Justin Anderson Sent: Wednesday, August 01, 2012 1:55 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] scratching the surface Seriously... for a question like that... do a little homework. Step 1: Translate your question into searchable terms... maybe something like android glsurfaceview transparency Step 2: Type www.google.com in your browser's address bar Step 3: Search for the phrase you came up with in Step 1 Step 4: Figure it out on your own! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 1, 2012 at 11:44 AM, bob b...@coolfone.comze.com wrote: Is there any way to make a GLSurfaceView that isn't 100% opaque? -- 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 mailto:android-developers%2bunsubscr...@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 -- 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] Search
Why not pass the text as extras to your search activity. Check out the first answer here http://stackoverflow.com/questions/2582690/android-passing-paramters-between -classes From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Tuesday, July 24, 2012 5:05 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Search On Tue, Jul 24, 2012 at 1:24 PM, Jagadeesh mjagadeeshb...@gmail.com wrote: In My application two expandible list views are there in other actvity i have search screen , when iam searching from search screen how to get those texts which contains in expandible list how can i get can any one give some guide lines to finish this. Your question is not very clear. - 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 -- 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: adb devices is showing the device as offline.what is reason? How can i switch the device from online - offline viceversa?
I usually just unplug the phone then re-connect it. That has always solved the problem for me. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Indicator Veritatis Sent: Monday, July 23, 2012 3:26 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: adb devices is showing the device as offline.what is reason? How can i switch the device from online - offline viceversa? You are right to be skeptical of the answers already give you. Clearly, adb is running. But what is not clear is whether or not adb has already got itself into a confused state. Although I have not had the exact same problem you report, I have been able to address similar problems by stopping and then restarting the adb server: that is what I do when I know the device is there, but adb devices does not report it. And although I cannot think of why it would make a difference, it seems to work more reliably if I do this as superuser (on my development system, which runs Linux) than if I do it as a regular user. Of course, that is not much help to you if you have to run a monkey over night. But it might at least help you narrow down what the problem is. On Wednesday, July 18, 2012 12:00:45 AM UTC-7, Sreedhar Reddy V wrote: Hi I connected My android ICS device to my windows PC using USB. I executed adb devices from my pc. The output --- List of devices attached id device --- After a long time of say 12 hours, i ran the same command adb devices from my pc. The output --- List of devices attached id offline --- I am not sure what went wrong. i did not even touch my pc, and my device. I made settings in my PC so that it will never sleep. I am running monkey scripts which wont make android device to lock as well. Many people said that ur device is offline because adbd deamon is not running on android device. But this is wrong, why because if adbd is not running then the device will not be listed at all. I came across adbd deamon process which will be running on my android device. For my device to get detected by adb(server on my pc) adbd must be running. I went to adb shell I stopped adbd using the command stop adbd This stopped my adbd deamon on android device.because adbd is stopped mt adb(server on my pc will not detect my device) Now adbd is not running, I execute the adb devices command the output is, list of devices with empty list. The output --- List of devices attached --- because the device it self is not detected i cannot log in to adb shell again to start adbd adbd deamon on my device. so I shutdown and rebooted my android device, this made my adbd deamon to run again. Now when i executed adb devices on my PC The output --- List of devices attached id device --- By seeing this output it is very clear that adbd deamon is running on device, because if adbd is not running then the device will not be listed at all. Now the question is? what is the reason for the device to go to offline? (i am very sure that adbd deamon not running is not at all a reason for this.) How can i switch the device from online - offline viceversa? I am very very thank full to any android expert who solve my confusion. -- 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: Service launch issues
You can't run an activity in the background. You can start the service, have it run its code and save that data. When my app first starts after boot it goes right into a service. When the service is done I create a notification icon. When the user clicks the notification it then loads the Activity. The activity then pulls in the info the service gathered from the SQLlite DB. If you are using eclipse, turn debug on in the mainifest, then flip over to debug view in eclipse and you should be able to see the logcat. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Cythes Sent: Friday, July 13, 2012 5:11 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Service launch issues Alright first thing is first, I dont have logcat since I am running it all out of my phone. I know there is a way to get logcat to run with phone tethering. Also sorry for the cross post it seemed at the time the topic was dead so I wanted to post it over here to get a second look. On Friday, July 13, 2012 4:58:28 PM UTC-4, Nobu Games wrote: http://stackoverflow.com/questions/11476906/service-launches-then-crashes If you feel like cross-posting your own questions then please take the advice of the guys over at Stackoverflow seriously and post the exception message / log cat / stack trace, too. It crashes after 30 seconds can have a billion different reasons. -- 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: Service launch issues
Activities have to run in the foreground. Services run in the background. Maybe we are just misunderstanding. What exactly do you want to run in the background? From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Cythes Sent: Friday, July 13, 2012 5:20 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Service launch issues I seem to be getting This isn't possible quite a bit. I know I'm not a genius at this stuff in fact I'm far from it but every time someone says that I have been finding usable workaround's. Please note this is not me being cocky. Just something I am noticing. On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote: Wait, I just realized something... you are wanting your activity to run in the background? AFAIK this isn't possible... why are you wanting to do this? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: http://stackoverflow.com/questions/11476906/service-launches-then-crashes If you feel like cross-posting your own questions then please take the advice of the guys over at Stackoverflow seriously and post the exception message / log cat / stack trace, too. It crashes after 30 seconds can have a billion different reasons. -- 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 mailto:android-developers%2bunsubscr...@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] Re: Service launch issues
If I were you assuming everything is working now and your app isn't crashing, I would put the code you want to run in the background into your service. If you need to save any data save it to a SQLlite database or xml file or whatever. I would then create a notification icon in the top menu of the phone. When the user clicks the icon have it launch your activity there. Inside your activity either in onResume or onStart have it pull the most recent data from you DB or xml file. Now when the user closes your app it will stil have the service running and the next time the enter the app your activity will refresh itself from the database or other file. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Cythes Sent: Friday, July 13, 2012 6:42 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Service launch issues Actually to be specific I am looking to make my main activity run from the service via intent. however if need be I can just take my code from the main activity, I can just put the code into the service. On Friday, July 13, 2012 5:39:22 PM UTC-4, Tommy wrote: Activities have to run in the foreground. Services run in the background. Maybe we are just misunderstanding. What exactly do you want to run in the background? From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Cythes Sent: Friday, July 13, 2012 5:20 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Service launch issues I seem to be getting This isn't possible quite a bit. I know I'm not a genius at this stuff in fact I'm far from it but every time someone says that I have been finding usable workaround's. Please note this is not me being cocky. Just something I am noticing. On Friday, July 13, 2012 5:04:25 PM UTC-4, MagouyaWare wrote: Wait, I just realized something... you are wanting your activity to run in the background? AFAIK this isn't possible... why are you wanting to do this? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 13, 2012 at 2:58 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: http://stackoverflow.com/questions/11476906/service-launches-then-crashes If you feel like cross-posting your own questions then please take the advice of the guys over at Stackoverflow seriously and post the exception message / log cat / stack trace, too. It crashes after 30 seconds can have a billion different reasons. -- 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 mailto:android-developers%2bunsubscr...@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 -- 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] Automated Email Setup Via XML
Hi all, I have done a bit of digging around on Google to try to find a way to auto generate an XML file that contains user info that will automatically setup their android phone to be used for Exchange/POP3. I just finished doing this for the iphone and it was pretty easy. I just used the .mobileconfig file as a template and replaced the needed values. The user then goes to the url I provide, it downloads the file and boom, they are set up. I can't seem to find anything about doing this on Android. Does anyone know how or does anyone have a link to a tutorial or example that explains how this is done? Thank you for your time, Tommy -- 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] AlarmManager not waiting to fire off alarm...
Hi everyone, I have a calendar feature in my app that the user will be able to select a day and time and set an event. My problem is if the date is the current date the alarmIntent fires off immediately, not waiting for the proper time. I have been running tests with it and I set the time for the current day and a few minutes in the future via a datePicker and a TimePicker. Below is my code. //Set Alarm alarmEvent = (AlarmManager)getSystemService(Context.ALARM_SERVICE); String ALARM_ACTION; ALARM_ACTION = EventAlarmReceiver.ACTION_EVENT_ALARM; Intent intentToFire = new Intent(ALARM_ACTION); Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_MONTH, dpEvent.getDayOfMonth()-1); cal.set(Calendar.MONTH, dpEvent.getMonth()); cal.set(Calendar.YEAR, dpEvent.getYear()); cal.set(Calendar.HOUR, tpAddEvent.getCurrentHour()); cal.set(Calendar.MINUTE, tpAddEvent.getCurrentMinute()); alarmEventIntent = PendingIntent.getBroadcast(this, 0, intentToFire, 0); int alarmType = AlarmManager.RTC_WAKEUP; long timeToNotify = cal.getTimeInMillis(); alarmEvent.set(alarmType, timeToNotify, alarmEventIntent); Now when I check the timeToNotify variable and use a website to convert the Millisecond time to regular time, it shows me the correct time that I set on the phone. I am confused as to why it fires off immediately. If I set the event for a day in the future it does not go off immediately. I will have to wait until tomorrow to verify that it does go off. Any help or input is greatly appreciated! Tommy -- 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: AlarmManager not waiting to fire off alarm...
tpAddEvent.getCurrentHour() returns 24 hour format. I updated Calendar.HOUR to Calendar.HOUR_OF_DAY but I have the same issue From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 02, 2012 5:51 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: AlarmManager not waiting to fire off alarm... Just an educated guess. The documentation about the get method states, that alarm dates in the past will be triggered immediately, which is your case. Following line might be the problem because of a possibly wrong 12 / 24 hour conversion: cal.set(Calendar.HOUR, tpAddEvent.getCurrentHour()); What does tpAddEvent return? Is it in hour of day format? Then you need to rewrite the line to cal.set(Calendar.HOUR_OF_DAY, tpAddEvent.getCurrentHour()); If it is in 12 hour format, then you must also set AM/PM on your calendar: cal.set(Calendar.AM_PM, tpAddEvent.isAM() ? Calendar.AM : Calendar.PM); -- 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: AlarmManager not waiting to fire off alarm...
If I don't it gives me the following day for some reason. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 02, 2012 6:43 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: AlarmManager not waiting to fire off alarm... Ok... another thing I just noticed: You are subtracting 1 day from your day of month, which would yield a date in the past. Is there a reason for that line of code: cal.set(Calendar.DAY_OF_MONTH, dpEvent.getDayOfMonth()-1); Maybe you confused that with the month. Months have the offset 0, not day of month. On Monday, July 2, 2012 5:31:32 PM UTC-5, Tommy wrote: tpAddEvent.getCurrentHour() returns 24 hour format. I updated Calendar.HOUR to Calendar.HOUR_OF_DAY but I have the same issue From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 02, 2012 5:51 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: AlarmManager not waiting to fire off alarm... Just an educated guess. The documentation about the get method states, that alarm dates in the past will be triggered immediately, which is your case. Following line might be the problem because of a possibly wrong 12 / 24 hour conversion: cal.set(Calendar.HOUR, tpAddEvent.getCurrentHour()); What does tpAddEvent return? Is it in hour of day format? Then you need to rewrite the line to cal.set(Calendar.HOUR_OF_DAY, tpAddEvent.getCurrentHour()); If it is in 12 hour format, then you must also set AM/PM on your calendar: cal.set(Calendar.AM_PM, tpAddEvent.isAM() ? Calendar.AM : Calendar.PM); -- 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] Re: AlarmManager not waiting to fire off alarm...
You know what. I must have been looking at the wrong variable when using getDayOfMonth. It seems to be working great now that I removed the - 1 after it. Sorry to have bothered everyone with such a dumb issue! Thanks for the help! I hate those 1d10T errors J From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 02, 2012 6:43 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: AlarmManager not waiting to fire off alarm... Ok... another thing I just noticed: You are subtracting 1 day from your day of month, which would yield a date in the past. Is there a reason for that line of code: cal.set(Calendar.DAY_OF_MONTH, dpEvent.getDayOfMonth()-1); Maybe you confused that with the month. Months have the offset 0, not day of month. On Monday, July 2, 2012 5:31:32 PM UTC-5, Tommy wrote: tpAddEvent.getCurrentHour() returns 24 hour format. I updated Calendar.HOUR to Calendar.HOUR_OF_DAY but I have the same issue From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 02, 2012 5:51 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: AlarmManager not waiting to fire off alarm... Just an educated guess. The documentation about the get method states, that alarm dates in the past will be triggered immediately, which is your case. Following line might be the problem because of a possibly wrong 12 / 24 hour conversion: cal.set(Calendar.HOUR, tpAddEvent.getCurrentHour()); What does tpAddEvent return? Is it in hour of day format? Then you need to rewrite the line to cal.set(Calendar.HOUR_OF_DAY, tpAddEvent.getCurrentHour()); If it is in 12 hour format, then you must also set AM/PM on your calendar: cal.set(Calendar.AM_PM, tpAddEvent.isAM() ? Calendar.AM : Calendar.PM); -- 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] Re: image show with zoom/pan
http://bit.ly/NqThF7 not that hard was it.. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of guich Sent: Monday, July 02, 2012 8:33 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: image show with zoom/pan nobody? -- 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] Android + asp.net Web Service (returns data set) + SQL Server
I have a few .net REST webservices that my app connects to. I just return back a comma separated string. Then I parse that and toss that data into variables on the phone. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Sunday, July 01, 2012 7:26 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Android + asp.net Web Service (returns data set) + SQL Server On Fri, Jun 29, 2012 at 1:53 PM, Yamil Font ya...@imfont.com wrote: I have gotten to the point where the web service returns the correct information but I am not sure how to translate that information and display it in my android app. It's your information, correct? You're in control of the format the web service presents it in, correct? So just connect to your web service (see URLConnection) read the data, parse it, and do what you will with it. - 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 -- 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] centering
Well if you are using a RelativeLayout you can do android:layout_centerInParent=true From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Thursday, June 21, 2012 4:36 PM To: android-developers@googlegroups.com Subject: [android-developers] centering This is probably an easy one, but I'm stumped. What is the best way to position a View object in the exact center of the screen? -- 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] Please Help...Android 4.0.3 WebView Crash...
Good Idea. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy Sent: Wednesday, June 20, 2012 6:37 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Please Help...Android 4.0.3 WebView Crash... On Wed, Jun 20, 2012 at 1:12 AM, Tommy Hartz droi...@gmail.com wrote: There is no force close. It just closes to the main home screen :: shrug :: Don't know what to tell you. If you can create a sample app that demonstrates this problem, upload the source somewhere. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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: Career for a Android Developer
LOL I get it, it's funny because it's a play on words!!! Hahahaha. I don't find myself giggling alone a lot and this was one of those times From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Wednesday, June 20, 2012 1:24 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Career for a Android Developer Here is some educational material about the salary structure https://www.google.com/search?q=celery+structurehl=enprmd=imvnstbm=isch; tbo=u -- 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: Help, eclipse does'nt show any errors, but app does'nt work on phone.
I too would recommend getting the feel for java and at least understand the basics of classes and syntax. Then I would recommend getting a Book Beginning Android by Mark L. Murphy the ISBN is 978-1-4302-2419-8 This book really helped me out and I only had a basic understanding of java, although I have had previous programming experience in VB. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Lars Sent: Wednesday, June 20, 2012 3:16 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Help, eclipse does'nt show any errors, but app does'nt work on phone. Thank you I really appreciate you post=) I just misunderstood the point of this forum. You know any beginner forums?(english or danish). Den onsdag den 20. juni 2012 21.08.36 UTC+2 skrev Nobu Games: Hey Lars, good to see that you want to learn programming at your young age and picked Android for doing your first few steps. It's a great choice for that, in my opinion. But you need to understand that this forum is not meant to answer beginner questions. We actually assume that you already know programming and especially Java by your heart. And all your questions here clearly show that you still have quite some way to go. You should try and find a beginners level Java forum where people are glad to help you out with your questions. But anyway, keep up your spirit. I think playing around with existing code samples is the way to go. On Wednesday, June 20, 2012 1:53:26 PM UTC-5, Lars wrote: Eclipse (of some reason) tells me to type them, or i will get errors. I'm very new at making apps(+ I do this in my free time I'am fifteen years old). All do is: I read in my book trying to type in eclipse, and then i try to get help from here. -- 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: Help, eclipse does'nt show any errors, but app does'nt work on phone.
If you have any question feel free to email me off list and I'll see what I can do to help you. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Lars Sent: Wednesday, June 20, 2012 3:33 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Help, eclipse does'nt show any errors, but app does'nt work on phone. That's okay dude:-) -- 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] Please Help...Android 4.0.3 WebView Crash...
Hi, On android 4.0.3 I have an Activity that contains a webview. This webview loads a Google Maps webpage that is stored on our servers. The Map is overlaid with a Radar. When I double tab to zoom in on the map my app crashes. It is crashing and gives me an error com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed! Does anyone have any idea why this is happening? It seems to work fine on my phones 2.3.3 and 2.3.4 as well as a few other devices that I have tried it on. The table however is the one giving me the issue. It is an Acer A200 Thank you for your time, Tommy -- 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] Please Help...Android 4.0.3 WebView Crash...
That's the weird part, it happens inside my app but I assume if it was a problem with my app it would happen on all devices. It seems like it might be a bug with WebView on 4.0.3 I was kind of hopeing someone else has seen the issue or knows about it. It only happens when I try to zoom in on the Google map that is inside the WebView. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, June 19, 2012 3:54 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Please Help...Android 4.0.3 WebView Crash... On Tue, Jun 19, 2012 at 1:47 PM, Tommy Hartz droi...@gmail.com wrote: When I double tab to zoom in on the map my app crashes. It is crashing and gives me an error com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed! Unless you decided to name your app com.android.launcher, this message is not from your app and may have nothing to do with your problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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] Please Help...Android 4.0.3 WebView Crash...
There is no force close. It just closes to the main home screen -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, June 19, 2012 6:14 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Please Help...Android 4.0.3 WebView Crash... If it is crashing (as in you get a Force Close-style dialog), there should be a Java stack trace at the end of your LogCat associated with that crash. On Tue, Jun 19, 2012 at 6:08 PM, Tommy Hartz droi...@gmail.com wrote: That's the weird part, it happens inside my app but I assume if it was a problem with my app it would happen on all devices. It seems like it might be a bug with WebView on 4.0.3 I was kind of hopeing someone else has seen the issue or knows about it. It only happens when I try to zoom in on the Google map that is inside the WebView. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, June 19, 2012 3:54 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Please Help...Android 4.0.3 WebView Crash... On Tue, Jun 19, 2012 at 1:47 PM, Tommy Hartz droi...@gmail.com wrote: When I double tab to zoom in on the map my app crashes. It is crashing and gives me an error com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed! Unless you decided to name your app com.android.launcher, this message is not from your app and may have nothing to do with your problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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 -- 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 3.7 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 -- 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 Maps Crash Insite WebView
Hi, On android 4.0.3 I have an Activity that contains a webview. This webview loads a Google Maps webpage that is stored on our servers. The Map is overlaid with a Radar. When I double tab to zoom in on the map my app crashes. It is crashing and gives me an error com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed! Does anyone have any idea why this is happening? It seems to work fine on my phones 2.3.3 and 2.3.4 as well as a few other devices that I have tried it on. The table however is the one giving me the issue. It is an Acer A200 Thank you for your time, Tommy -- 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 DPI problems
If I insert a picture will it come through on these posts? I am so confused as to why this isn't showing up correctly on phones that say they have a normal screen From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Dianne Hackborn Sent: Thursday, June 07, 2012 4:28 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Android DPI problems You shouldn't be thinking about dpi at all. You will currently encounter devices with only 5 densities: 120, 160, 213, 240, 320. Every device will have one of those densities; 217dpi and 220dpi are not valid densities. You will care about this pretty much only for your graphics, though the platform will scale your graphics if it does. This is also relevant for text sizes and units used in layouts, but in those cases you just use sp or dp units and it is taken care of for you. So for your layouts you should basically not care about densities at all, just do your layouts in dp units as if you were on a medium density screen and let the platform take care of it for you. I strongly discourage the use of other units like in and mm -- many devices do not report the correct true physical density, so you unfortunately can't count on them working correctly. Fortunately you shouldn't need to, because 99% of the time you want to be operating in density units not true dpi. On Thu, Jun 7, 2012 at 12:44 PM, Tommy Hartz droi...@gmail.com wrote: Hey everyone, I am a little confused on something. I have created multiple layouts for different screen sizes. The problem I run into is that on my HTC Inspire I have a normal screen with ~217dpi, on the droid X it reports to have a normal screen but it has ~220 dpi. When I run my app it pulls the right layout but the images on the screen have huge spaces in between them yet on my HTC everything appears how it should. How can I avoid this issue? It is incredibly frustrating. -- 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 mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] Android DPI problems
Hey everyone, I am a little confused on something. I have created multiple layouts for different screen sizes. The problem I run into is that on my HTC Inspire I have a normal screen with ~217dpi, on the droid X it reports to have a normal screen but it has ~220 dpi. When I run my app it pulls the right layout but the images on the screen have huge spaces in between them yet on my HTC everything appears how it should. How can I avoid this issue? It is incredibly frustrating. -- 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 DPI problems
Well all of my layouts are using dp to specify the width/height of the images. Is there a way I can get what density the screen reports back to android and drop it in a toast or something so I can see which of the 5 it is? The phone that really gives me the issue is the Droid X. The dimensions are nearly idendical as far as resolution but I guess the Droid X has a higher density than the HTC Inspire. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Dianne Hackborn Sent: Thursday, June 07, 2012 4:28 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Android DPI problems You shouldn't be thinking about dpi at all. You will currently encounter devices with only 5 densities: 120, 160, 213, 240, 320. Every device will have one of those densities; 217dpi and 220dpi are not valid densities. You will care about this pretty much only for your graphics, though the platform will scale your graphics if it does. This is also relevant for text sizes and units used in layouts, but in those cases you just use sp or dp units and it is taken care of for you. So for your layouts you should basically not care about densities at all, just do your layouts in dp units as if you were on a medium density screen and let the platform take care of it for you. I strongly discourage the use of other units like in and mm -- many devices do not report the correct true physical density, so you unfortunately can't count on them working correctly. Fortunately you shouldn't need to, because 99% of the time you want to be operating in density units not true dpi. On Thu, Jun 7, 2012 at 12:44 PM, Tommy Hartz droi...@gmail.com wrote: Hey everyone, I am a little confused on something. I have created multiple layouts for different screen sizes. The problem I run into is that on my HTC Inspire I have a normal screen with ~217dpi, on the droid X it reports to have a normal screen but it has ~220 dpi. When I run my app it pulls the right layout but the images on the screen have huge spaces in between them yet on my HTC everything appears how it should. How can I avoid this issue? It is incredibly frustrating. -- 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 mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] How to get value from string array?
I use a spinner that the choice of spinner comes from array A - I have did it while array B has corresponding value of A I hope to get the value from B when I use the spinner, how can I do so? I don't know how to relate two arrays :( 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
[android-developers] Any Thoughts on LiveCode runrev
I am not sure if this is the place to ask this but I thought some of you might have some input on the LiveCode RunRev software for mobile phone development. Is it any good? Is it worth putting in the time to learn how to use it or is it better to just use Eclipse for a pure android app and the other IDE's for say iphone and blackberry? Thanks for the input, Tommy -- 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 there a way to Bypass bluetooth and play directly through phone speakers
Hi, I was wondering if it is possible to play audio through the phone speakers while a Bluetooth headset is connected. It is important that this audio is played through the phone rather than the Bluetooth incase the Bluetooth is not in the persons ear. Thanks in advance, Tommy -- 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] Is there a way to Bypass bluetooth and play directly through phone speakers
Thanks, I will give this a try and see what happens. No one would happen to have any links to some examples that do work so I am not screwing around with stuff? I don't have a Bluetooth so I have to export the app, send it to a co-worker who has one then have them try to get the right conditions to happen for the sound to go off. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of vijay Badawadagi Sent: Monday, May 14, 2012 4:36 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Is there a way to Bypass bluetooth and play directly through phone speakers check Audio policy manager in Android, there is priority based routing changing that should help Thanks Vijay On Mon, May 14, 2012 at 3:23 PM, Tommy Hartz droi...@gmail.com wrote: Hi, I was wondering if it is possible to play audio through the phone speakers while a Bluetooth headset is connected. It is important that this audio is played through the phone rather than the Bluetooth incase the Bluetooth is not in the persons ear. Thanks in advance, Tommy -- 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 mailto:android-developers%2bunsubscr...@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] need help working with very large (photo) bitmaps
Jumping in kind of late here, but if memory is a huge deal couldn't you pass the image to a web service that will then handle all the manipulation then return the image URL, download it ,save it then clean up the file from the server via another REST request? And do this on images larger than X. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Jim Graham Sent: Wednesday, April 18, 2012 6:41 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] need help working with very large (photo) bitmaps On Wed, Apr 18, 2012 at 03:28:11PM -0700, Streets Of Boston wrote: The size of the JPG/PNG file has almost nothing to do with the size of the corresponding image in memory. Hopefully those who HAVE been saying that will read this. An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes). Yes, but you lose color detail...again, that goes directly against the entire objective of my app. For the goofy stuff, sure, RGB_565 is fine. But for photographic filters (solid color, graduated, split-field, fog, diffusion, etc. And given their semi-transparency, RGB_565 definitely isn't a fit for those bitmaps (which don't need to be full-sized until saving the photos with filters, and then there's only one bitmap with all of the combined filters).). An ARGB_ takes 4 bytes per pixel. This means a 5MPixel image will take 5M*2 = 10MByte in RAM when using RGB_565 or 5M*4=20MByte in RAM when using ARGB_. Hmm, here's a thought...is there a bitmap type that I missed, that has alpha values like ARGB_, but only uses 16-bit color? Those definitely don't need 24-bit color---only the actual photo needs 24-bit. I have an image editor in the market and I managed to process full-sized images, reverting back to RGB_565 when necessary. My image editor only applies *linear *filters. I.e. filters that modify every pixel in an image the same way, regardless of the pixel's position or its neighbors. This allows my app to chop up large images into smaller ones and deal with the smaller ones one by one. If not, i would need, at some point in time 2 copies of the image: The original and the modified. Can you point me to the right docs, tutorials, etc., to work out how to do that? Thanks, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| My spell checker eloped with a wiccan spooky1...@gmail.com| and I've not seen it since! Running FreeBSD 7.0 | ICBM / Hurricane: |(from news.admin.net-abuse.email) 30.44406N 86.59909W | 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] adb shell reboot hang, anyway to reboot?
Hi, I'm using Platform 4.0.3 (and the emulator coming with it). I tried to reboot to test BOOT_COMPLETED broadcast receiver so I need to reboot the emulator by command, NOT by clicking closing the emulator window. Is there anyway I can do it? I tried adb shell reboot but the emulator got hanged and never shutdown or receive input after the command. 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
RE: [android-developers] If statement help and text displaying on the screen
What about this? string PleaseEnter = (EditText)FindViewById(R.id.PleaseEnter).getText(); if(PleaseEnter.equals(1)){ tv.setText(PleaseEnter); }else if(PleaseEnter.equals(2)){ tv.setText(PleaseEnter); } -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Ma Sent: Thursday, February 23, 2012 2:44 PM To: Android Developers Subject: [android-developers] If statement help and text displaying on the screen I ran my code and in eclipse in the log it is showing under text the output as what my else statement is set to. I do not see this text on the screen. I am trying to compare a number to a number in my if statement. I have stated PleaseEnter as android:inputType=number in the layout. I have included some of the ways that I have tried to change my if statement to compare the values. I need help with 1. Having if statement validated to show what it needs to and 2. Have the output show on the screen. try PleaseEnter=(EditText)findViewById(R.id.PleaseEnter); { if (1.equals(PleaseEnter)) //(PleaseEnter.getText().equals(1)) //(PleaseEnter.equals(1)) { // tv.setText(This is the display 1); System.out.println(This is 1); } else if (PleaseEnter.equals(2)) System.out.println(This 2); else if (PleaseEnter.equals(3)) System.out.println(This 3); else System.out.println(That number is not recognized.); }} catch (Exception ex) -- 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: Windows 7 tablet
I just got the Acer Icona A200. It works GREAT with windows 7 and at 330$ is a great tablet. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Wednesday, February 22, 2012 10:14 AM To: Android Developers Subject: [android-developers] Re: Windows 7 tablet On Feb 21, 6:24 am, Kostya Vasilyev kmans...@gmail.com wrote: Don't almost all of them work? Some may require hacking the driver's inf file, some have official drivers. Out of the ones I have, Sony tablet S requires hacking, while Asus Tf101 has official drivers. I recommend the Sony over the Asus because of separate power and usb connectors. 21.02.2012 17:11 пользователь bob b...@coolfone.comze.com написал: Can someone recommend an Android tablet for me that definitely works for development on Windows 7? 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 I'm having trouble with the VIZIO tablet. Can you be specific about what hacking the inf file involves? 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] Re: Button for dynamic text
Why not connect the button click event to a function EX public void onClick(View v) { Toast.makeText(Num.this, stringFunction(),Toast.LENGTH_SHORT).show(); } Public string stringFunction(){ If(whatever){ Return = Hello; } } From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Wednesday, February 22, 2012 3:22 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Button for dynamic text On Wed, Feb 22, 2012 at 2:13 PM, Pram goodp...@gmail.com wrote: when I try to use return in my if statement that does not work the tv statements do not show anything on the screen when it is executed. The code in your original post is extremely hard to read. Try a smaller snippet that illustrates what you're talking about. Have you put in logging and used your debugger to step through and see what the code is doing? - 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 -- 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: Button for dynamic text
Copy and paste the code so I can see exactly what you have. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Pram Sent: Wednesday, February 22, 2012 5:47 PM To: Android Developers Subject: [android-developers] Re: Button for dynamic text At publicstring stringFunction(){ I am getting syntax error need ; to complete Field Decleration. On Feb 22, 3:39 pm, Tommy Hartz droi...@gmail.com wrote: Why not connect the button click event to a function EX public void onClick(View v) { Toast.makeText(Num.this, stringFunction(),Toast.LENGTH_SHORT).show(); } Public string stringFunction(){ If(whatever){ Return = Hello; } } From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Wednesday, February 22, 2012 3:22 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Button for dynamic text On Wed, Feb 22, 2012 at 2:13 PM, Pram goodp...@gmail.com wrote: when I try to use return in my if statement that does not work the tv statements do not show anything on the screen when it is executed. The code in your original post is extremely hard to read. Try a smaller snippet that illustrates what you're talking about. Have you put in logging and used your debugger to step through and see what the code is doing? -- -- - 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 athttp://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] SOAP on Android
I used KSOAP2 http://code.google.com/p/ksoap2-android/ it is pretty good. If you have the ability to go RESTful I would go that way. I converted all my services from SOAP to RESTful and it is noticeable more responsive. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Tuesday, February 21, 2012 3:40 PM To: Android Developers Subject: [android-developers] SOAP on Android Can someone point me towards a good example of how to use SOAP on Android? 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] Re : Save output data as XML
Just write to a file and save it as XML. http://stackoverflow.com/questions/1239026/how-to-create-a-file-in-android -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of vivek elangovan Sent: Tuesday, February 21, 2012 11:56 PM To: Android Developers Subject: [android-developers] Re : Save output data as XML Hi members, I want to develope an application where after entering the required input fields i want to save the output data as XML in my local (eg : memory card) . Is there any sample 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 -- 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] clearAnimation() Causes onAnimationEnd to fire Twice?? Please Help
Hi, I am trying to fade an ImageView Out, change the Image, then fade it back in. Here is the code I am using: private void fadeOut(){ AnimationSet myAnimationOut = new AnimationSet(true); myAnimationOut.setAnimationListener(new AnimationListener(){ @Override public void onAnimationEnd(Animation arg0) { currWeatherAdRotator.clearAnimation(); if(currAd == 0){ currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner2); currAd = 1; }else if(currAd == 1){ currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner3); currAd = 2; }else if(currAd == 2){ currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner4); currAd = 3; }else if(currAd == 3){ currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner1); currAd = 0; } fadeIn(); } @Override public void onAnimationRepeat(Animation arg0) { // TODO Auto-generated method stub } @Override public void onAnimationStart(Animation arg0) { // TODO Auto-generated method stub } }); It seems however that currWeatherAdRotator.clearAnimation(); causes this bit of code to run twice which messes up my sequence. If I remove currWeatherAdRotator.clearAnimation(); It creates a black flicker at the end of the animation. I have the fadeout feature set up on a timer that goes off every 15 seconds. I tried creating a new class that extends the ImageView (as I read was a work around) but when I do this I can't run my timers because I get an error when calling runOnUiThread. Basically I want to rotate through these image every 15 seconds continuously. Can someone please tell me how I can do this or what I am doing wrong? Thanks for your 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] Does anyone Use the SBA API for City Data?
Does anyone in this group use the SBA API for gathering city data? http://api.sba.gov/geodata/all_data_for_city_of/City/StateAbrev.xml ? I noticed this is now throwing an Internal server error 500. I have been unable to find any related posts on their site and was wondering if maybe any one else had any useful information about this. I use it to retrieve the county a certain city is in. Does anyone know of another way I could find this data out? I know this isn't exactly android related but I figured maybe someone else has either used these services or knows of another free service I can use to gather the county a city is located in. 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
RE: [android-developers] good videos
This works pretty good. http://code.google.com/p/androidscreencast/ -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Saturday, November 26, 2011 9:58 PM To: Android Developers Subject: [android-developers] good videos What can I use to make good videos of my Android games? I tried filming my tablet, but those videos are kind of low quality. -- 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] Default HttpTransportSE Timeout
Does anyone know the default timeout time for HttpTransportSE From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of ANKUR GOEL Sent: Wednesday, November 23, 2011 5:23 PM To: android-developers@googlegroups.com Subject: [android-developers] StackView of images how to achieve stack view for number of images horizantall scroll and i shud able to see the layers background when i move left to right one by one image should move -- 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: Extreme battery life
Have you considered a solar phone charger? http://www.rei.com/gear/feature/search/Google/solar%20charger?s_kwcid=TC|130 29|solar%20phone%20charger||S|e|8644334045cm_mmc=ps_google_CH-_-Category%20 -%20Nav%2fCom-_-Nav%2fCom_Solar_Charger_General-_-solar%20phone%20chargergc lid=CMzSxdazy6wCFQLj7QodmB--qA -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Bret Foreman Sent: Tuesday, November 22, 2011 6:22 PM To: Android Developers Subject: [android-developers] Re: Extreme battery life On Nov 22, 2:52 pm, Mark Murphy mmur...@commonsware.com wrote: If you want, give me an idea of what sort of device you'd want to be running, and I can try to find something roughly equivalent here in my Secret Mountain Lair. I'll charge it up, put it on airplane mode, and let it sit for a couple of weeks, and we'll see what the battery level dropped to, with the stock battery. You could run that test too, of course, if you have a spare device lying around. While it wouldn't include the drain from your app, it'd at least give you an idea as to whether or not there's a prayer of it working for four months. Mark, that would be very nice of you. If it turns out that Android truly stops the CPU then I'm in business...I can shop around for the lowest sleep-mode power model with the fattest extended life battery. If it turns out the CPU is still running in some fashion then I don't think any phone will work. -- 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: Extreme battery life
Ah ok well best of luck with your endeavor! -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Bret Foreman Sent: Tuesday, November 22, 2011 6:47 PM To: Android Developers Subject: [android-developers] Re: Extreme battery life On Nov 22, 3:33 pm, Tommy Hartz droi...@gmail.com wrote: Have you considered a solar phone charger? The environment is too dirty for a solar charger. It doesn't take much dust to cut the panel efficiency down to almost nothing. -- 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: Please Help with GPS Provider Switch
Well I am not using them at the same time. Here is my process. 1) Start with GPS, set timer for 30 seconds. If GPS has not got a location in that time my timer goes off and stops the GPS. I then request the Passive provider. I allow again 30 seconds for that. If nothing happens in 30 seconds the timer goes off, and starts my Network Provider. 2) Once the network provider gets called nothing happens it just sits there. 3) If I bypass the GPS and Passive the network provider works as it is suppose to. I am just trying to find out if I am doing something wrong or maybe there is a bug that screws the network provider up if the GPS provider has been requested and stopped before hand. Below is my original post with my code included: Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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] Best way to handle incoming call and Network connectivity
Hi everyone, I am trying to figure out the best way to handle this situation. My app will need to use the internet to check for certain things. Sometimes it is a multi part request, meaning I call one web service to get certain data pass it back to the phone and if needed call another web service. My question is what would be a good way to handle stopping these requests if a phone call comes in and it kills my network connectivity so I can avoid a force close? -- 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: Please Help with GPS Provider Switch
Good call I guess I could do all three at once then check to see which is more accurate. startNetwork does get called which is why its so why it is so weird. I though maybe I was doing some wrong. I'll give it a shot with all 3 and see what happens. Thanks for your time and input! -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of gjs Sent: Monday, November 21, 2011 9:22 PM To: Android Developers Subject: [android-developers] Re: Please Help with GPS Provider Switch Hi, Yes I understand what you are attempting, I was just suggesting doing all three at the same time in parallel , that way you'd have a results in 30 seconds or less not have to wait for up 90 seconds. And no I don't know why your network provider is no working, try adding some debug statement to see if startNetwork() is being called ok. Other suggestion is to use getLastKnownLocation(String). Regards On Nov 22, 5:00 am, Tommy Hartz droi...@gmail.com wrote: Well I am not using them at the same time. Here is my process. 1) Start with GPS, set timer for 30 seconds. If GPS has not got a location in that time my timer goes off and stops the GPS. I then request the Passive provider. I allow again 30 seconds for that. If nothing happens in 30 seconds the timer goes off, and starts my Network Provider. 2) Once the network provider gets called nothing happens it just sits there. 3) If I bypass the GPS and Passive the network provider works as it is suppose to. I am just trying to find out if I am doing something wrong or maybe there is a bug that screws the network provider up if the GPS provider has been requested and stopped before hand. Below is my original post with my code included: Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDE R, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDE R, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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 -- 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: Please Help with GPS Provider Switch
The timer is there to only allow it to check for 30 seconds. Once the 30 seconds are up if it hasn't got a location it cancels the GPS and tries the Passive, after 30 seconds it stops the passive and goes to network. The problem is once it gets to the network nothing happens. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Deepu George Jacob Sent: Saturday, November 19, 2011 11:07 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Please Help with GPS Provider Switch GPS never use timer it will automatically update At first check your is GPS enabled..It also done by programatically ... To check the location changed by using location.getSpeed(); location.getLatitude() some thing 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] Re: Please Help with GPS Provider Switch
Thanks for the link, but it doesn't really explain why the network provider isn't kicking in after trying the GPS and Passive providers. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of BelvCompSvs Sent: Thursday, November 17, 2011 11:50 PM To: Android Developers Subject: [android-developers] Re: Please Help with GPS Provider Switch http://www.youtube.com/watch?v=twmuBbC_oB8feature=player_embedded On Nov 16, 11:24 am, Tommy Hartz droi...@gmail.com wrote: Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDE R, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDE R, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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 -- 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] Please Help with GPS Provider Switch
Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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] Help with GPS Provider Switch
Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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] Help with GPS Provider Switch
Hey, Right now when trying to get a user location I start with the GPS Provider. I have a timer set for 30 seconds, If a location is not found in 30 seconds the timer goes off and stops that location request. When that happens I move to the Passive Provider. After 30 seconds if a location is not found I stop the location request and move to the Network Provider. My issue is that when the network provider gets called it never does anything. If I start with the network provider it goes off just fine and returns a location back to me. Below is the code I am trying to use: gpsTimer.schedule(new TimerTask(){ @Override public void run() { startPassive(); } }, 3); currentTimer = GPS; locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); private void startPassive(){ locationManager.removeUpdates(locationListener); //Now we want to try for a Passive Fix currentTimer = Passive; passiveTimer.schedule(new TimerTask(){ @Override public void run() { startNetwork(); } }, 3); Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener); private void startNetwork(){ locationManager.removeUpdates(locationListener); currentTimer = Network; Looper.prepare(); Looper.myLooper().quit(); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); any help or suggestions would be greatly appreciated. Thank so much 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] QR Code Question (the sort of barcode looking thing)
I was wondering how one gets the QR code(I think that's what its called) The sort of barcode looking thing that you can take a picture of and have it take you to the app on the market place. Is that provided for you by the market when you put your app up? Thanks for the help, Tommy -- 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] dev software
Why is it that I've now gone through 14 g1 devices and have had to basically self-teach myself about changing proprietary software on a open source device, as long as you don't touch the recovery image or put a custom or cooked ROM on the device? You may in fact void your carriers warranty, but as far as HTC is concerned? Ur manufactures warranty is well in tact! I'm so sick of the grey area and b.s. people talk about, but as a developer? HTC has no right to tell customers that warranties are voided when a user flashes adp software. Instead they have shutdown their adp1 website and denied the device exists! It's a bootloader/sim/hardware/software unlocked device and i got a test phone that was a g1 at one point, and adp1 software at another. But when I pressed *#*#checkin#*#* it updated and I happened to be without data coverage I then asked for a replacement an got a stock device, only to get a carrier based ROM phone And since then registered as a developer and still cannot purchase a true developer device!! Any comments? -- 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 detect nearby devices
I think you are going to have to go with Studio LFP. Checking an update say ever 5 or 10 minutes with GPS won't kill the battery that fast. Atleast with my application it doesn't just don't leave the GPS listener open. I set an alarm to go off every X minutes, first I try a course location (off 3g or wifi) if I can't get a location I try a fine location (off GPS) I have had the app run for 24 hours in the background checking every 5 minutes and didn't notice much of a difference from when it wasn't running. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of juankar Sent: Friday, October 07, 2011 3:00 PM To: Android Developers Subject: [android-developers] Re: How to detect nearby devices Wifi broadcast would be ideal, since it is less power-consuming than GPS, but is it possible to send a wifi broadcast from my application and other users with the same application can detect that broadcast and get the information from the emisor? If so, problem solved! If not, as Studio LFP said, my only idea in mind was updating (every 5 min, for example) with the latest location coordinates, upload to db, check for coords in range and then get the information from the users in range. However, that would obviously require having GPS turned on (or maybe not, if wifi or 3g can provide location coordinates) with the inherent battery draining :(. -- 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] Re: NFC Secure Element
On 9月19日, 下午5时20分, Rames P rame...@gmail.com wrote: Hi Fernando Miguélez Palomo Did you get the ROM working for Nexus S with NFC card emulation enabled? I so can you please share the rom? Your answer might be very useful to achieve a position in my carrer. Thanks Here is my Nexus S ROM of Card Emulation http://dl.dbank.com/c0wutpddbv .I modified the source code base on Fernando's.You can download and test it.Good Luck! -- 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: NFC Secure Element
hi all: Now i modified the download android source code 2.3.4 for card emulation like Fernando's diffs.I make the modified source code on my vmware+ubuntu success,make the sdk success,and make the download samsung kernal code success.But now how can i use these changes on my Nexus S phone?What can i do, step by step to make my Nexus S to be card emulation. Thanks for any help. tommy.yang -- 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] Arrays and android
Hi, I've been trying to create my first android app. Number of functions and the scripts complexity grow each time I try to finish it, but that is the way to learn how to develop an android app. I'm used to develop webpages using PHP and HTML. In my app I need an array that looks something like this: array('Age' - 1, 'Length' - 180). This is no problem with PHP, but I haven't found out how this can be done in android. Is it possible or am i constricted to using integers as indexes? And does anyone have an idea to how this can be accomlished if strings can't be used as indexes? -- Regards, Tommy -- 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: NFC Secure Element
Hi. Now i modified the source code like the nemik's diffs before for my Nexus S.But when i make the source code i got errors packages/apps/Nfc/src/com/android/nfc/NfcService.java:47: cannot find symbol symbol : class INfcSecureElement location: package android.nfc import android.nfc.INfcSecureElement; i think it's because i used the @hide methods.How can i find a way to make it work? Thanks for any tips. Regards tommy.yang -- 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: Can I use google weather api in commercial app?
LOL, Seriously if you people would just use GOOGLE and SEARCH for these question you will find an answer. http://www.google.com/support/forum/p/apps-apis/thread?tid=18820aa4b444f705 http://www.google.com/support/forum/p/apps-apis/thread?tid=18820aa4b444f705 hl=en hl=en http://stackoverflow.com/questions/5307831/weather-apis-for-android as it is unsupported you will need to either find the TERMS OF SERVICE PROVIDED BY GOOGLE OR CONTACT GOOGLE YOURSELF AND ASK. I am under the impression from a blog post that the Weather API if for Google Gadget Use ONLY No one in this forum is going to be able to answer the legal questions for you. I suggest you use the NOAA/NWS apis for your weather needs. (NDFD) http://www.weather.gov/xml/ And I for one have never got a bad response from TreKing, he is one of the few who usually answers my questions right the first time. Learn how to ask questions in forums and you won't have issues in the future my friend. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Wednesday, August 03, 2011 3:50 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Can I use google weather api in commercial app? Oh Jesus, here we go again. On Wed, Aug 3, 2011 at 2:39 PM, Abhishek Akhani abhishek.akh...@gmail.com wrote: If you know then reply I did know - I knew this post had nothing to do with Android ... so I replied ... don't be over-smart everywhere. I have no idea what over-smart means. Thank you? Why do you reply like this to every post?? I don't reply like this to every post. I reply to posts how I think they should be replied to. If a question has nothing to do with Android, then I state such in my reply. If a question is on topic I often try to help. Some people here seem to gloss over that fact ... You have some psychological problem or what? better you hire a psychiatrist Maybe, but psychiatrists are expensive. And I've already broken the bank on doctors trying to fix my bladder problems. Want to help me out? Buy my $3 app. If you don't the voices in my head will tell me where you live. - 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 -- 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] Storing Scaled Bitmap
Hello, any ideas on how i can store scaled bitmaps in an array, so I can pass them to a setListAdapter. 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] distance formula
http://tinyurl.com/3h259mn -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Friday, July 01, 2011 4:48 PM To: Android Developers Subject: [android-developers] distance formula what's the formula for the distance between two GPS coordinates? -- 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] distance formula
Lol you beat me to it L now I just feel like a copy cat From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Friday, July 01, 2011 4:56 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] distance formula On Fri, Jul 1, 2011 at 3:48 PM, bob b...@coolgroups.com wrote: what's the formula for the distance between two GPS coordinates? Dude: http://tinyurl.com/3zwsv6r - 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 -- 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] ANR when sending broadcast from service...Please help
Hi, I am slightly confused as to why I am receiving an ANR when trying to send a broadcast from a service. Here is what is happening. I have a service that goes off every X minutes. If this service finds a valid reason to alert me it sends a broadcast if(validAlert == true){ sendBroadcast(Alertbroadcast); Log.i(WeatherDog,Valid Alert. User Alerted.); stopSelf(); } Now it seems that everytime the sendBroadcast(Alertbroadcast) is hit I get an android ANR that pops up with the following in logcat: ANR in X.X Reason: Executing service x.x/ .MyService Now if I hit wait on the error that comes up I find that my broadcast receiver worked properly and display's the Icon and text it needs to display. Does anyone have any idea what could be the issue? I have other broadcast/receiver I use elsewhere in the app that work without flaw. -- 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: NFC P2P pattern: Receive first, via NPP, and respond after also via NPP
hi Cruz: I've successfully established a LLCP connection between a SCL3711 desktop reader (using nfcpy) and a Nexus S. I've also implemented NPP client and server support so I can send NDEF messages from the desktop and receive them on the Android, and vice-versa. Now i'm trying the same work like yours.I want to communication between my desktop reader and my Nexus S via the p2p.So could you help me some documents or some codes about the nfcpy. But I am struggling with the Android NFC API to accomplish something as simple as receiving a NPP message first, and then sending a response also via NPP. This is because the enableForegroundNdefPush() call has to be executed on the onResume() method and the NdefPushClient only sends the message if it is available as soon as the LLCP channel is established. In my use case the phone would be put next to my reader, which would trigger the establishment of a LLCP channel, and the reader would push an NDEF message. My application is launched, it is the only one that catches that specific intent, and produce a NDEF response based on the NDEF received and would push it to the reader via enableForegroundNdefPush(). But by now the LLCP channel is established, so the message does not get sent, and my application is processing the onNewIntent() method so I can't use enableForegroundNdefPush(). Am I doing something wrong? Surely this simple use case must be possible to implement. Thanks, André In your user case,Your Nexus S phone tap the desktop reader,the desktop reader send a NDEF message to the phone via the p2p,am i think right?In my activity,i have add a ndef filter,after i got the action of NfcAdapter.ACTION_NDEF_DISCOVERED,then Parcelable[] msgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); My code like this ,it can be possible to implement? Thanks for any help. tommy -- 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] career in android
U r sofa king retarded -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of jeniffer hills Sent: Thursday, June 16, 2011 1:31 PM To: Android Developers Subject: [android-developers] career in android hey ol!! well m doin engg wid cs deptt. n rcntly m done wid my 4th sem xams. few dayz back i hv learnt about android apps n also registerd for the same. Though i hv learnt dat in future android may achieve sm demand in the market. still i hv a cnfusion regardin d CAREER IN ANDROID as android apps r used only in cellphones. dere is no pc or laptop wch is based on android apps so far. i hv several ques in my mind like 1. is dere any career in android apps? 2. hw good it is frm career point of view? 3. cellphons r smthing wch will olwayz be in demand so r dere sufficient nmbr of cmpanies dat provide gadgets based on android apps? 4. in outside country, is android a good technology wch hav a good demand and future as well? 5. in a career for engg, wat is more imprtnt? a good programming skills or knowldge of sch apps. ladies n gentlements plz go thru my quries n help me out by tellin me ol ups n dwns of android apps n guiding me for selecting a crrct path for a good future carrer. -- 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] Re: Nexus S,how to exchange ndef data via p2p.
Hi Michael : Thanks for your answer about npp.Now i got it. Regards. tommy. -- 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: Nexus S,how to exchange ndef data via p2p.
Hi Michael : Thanks for your replys. No. The NPP happens on a higher layer of abstraction than the NFC-DEP. (The NFC-DEP is the NFC peer-to-peer data exchange protocol that knows initiators and targets.) The NPP sits on top of the LLCP and the LLCP sits on top of NFC-DEP. LLCP removes the restricition that the initiator always starts a connection. In fact both, initiators and targets, are equal on the LLCP layer. Both can listen on sockets and create new sockets. For NPP, the NPP server creates a listening LLCP socket and waits for pushed NDEF messages. The NPP client is invoked by the foreground NDEF push and sends NDEF messages to NPP servers. From your replys,i has some doubt about NPP.You mean the NPP server and NPP client both on the same NEXUS S phone?The NPP server get the NPP client pushed NDEF messages and then NPP server send the messages to anthor NEXUS S phone, can i think so? 3. If in question tow i'm right,the target(another Nexus S phone,or a nfc reader in my desktop) received the ndef data mMessage,and send a response to initiator,how can i got the ndef response. The NPP is one-way. You can't send a response to a received NDEF message. 4. In target terminal such as another Nexus s phone,how can i get the p2p inittiator pushed ndef data. Ndef myTag=Ndef.get(tag); myTag.connect(); if (myTag.isConnected()) { myTag.getNdefMessage(); } On the receiving device, the NDEF data should be delivered in an NDEF_DISCOVERED intent (or through the respective foreground dispatch). br, Michael Can i first delivered in one Nexus S phone NDEF_DISCOVERED intent,and received the NDEF messages.Then use the enableForegroundNdefPush to throw the messages back. Can i use this to alternate the questions how to get reponses above? by tommy -- 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] Nexus S,how to exchange ndef data via p2p.
Hi all: I have some questions about android2.3 NFC of p2p. 1. i send the ndef data by the enableForegroundNdefPush(this, mMessage)function in onResume,but how can i known that the mMessage is send over,can i got the notification or Intent? 2. As i know,in p2p module there have two parts,the initiator and the target.I think int the question one activity called enableForegroundNdefPush(this, mMessage) , it's initiator ,am is think right? 3. If in question tow i'm right,the target(another Nexus S phone,or a nfc reader in my desktop) received the ndef data mMessage,and send a response to initiator,how can i got the ndef response. 4. In target terminal such as another Nexus s phone,how can i get the p2p inittiator pushed ndef data. Ndef myTag=Ndef.get(tag); myTag.connect(); if (myTag.isConnected()) { myTag.getNdefMessage(); } Thanks for any hints. Tommy -- 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] Where to start from for Internet Radio on Android
This might help get you started There are additional links through this forum link that might be of more use than the actual thread linked here. http://stackoverflow.com/questions/1965784/streaming-audio-from-a-url-in-and roid-using-mediaplayer From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Friday, June 10, 2011 10:03 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Where to start from for Internet Radio on Android On Wed, Jun 8, 2011 at 6:12 AM, Mohammad mohamed...@gmail.com wrote: I need to develop an internet audio stream playback application. I do not know where to start from. My target is Android Froyo on TI's DM3730 Can somebody help or give me a pointer? Honestly, if you don't know where to start with an internet audio streaming app, you've probably bit off more than you can chew already. This is not a trivial undertaking. But you got to start somewhere and that would usually be with the basics: read the documentation and run through the samples. - 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 -- 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] Immediate need of .Net developer in Maimi FL
This isn't a job posting forum. Get out of here with this crap. Am I the only one who hates when people do this? From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Emraaz khan Sent: Wednesday, June 01, 2011 12:47 PM To: emr...@panzersolutions.com Subject: [android-developers] Immediate need of .Net developer in Maimi FL Hello, Hope you are doing well. I am a technical recruiter with Panzer Solutions LLC Software Implementing and IT consulting company located in CT. Please go through the Job Description and send me your updated resume with contact information. Please reply me @ emr...@panzersolutions.com Title :.NET developer Location :Miami,FL Duration :3-6 Months Contract Rate : $40/Hour on C2C ** MUST BE LOCAL TO FL OR NEAR BY MUST HAVES: 4+ years of .NET development 2+ years of SSRS C# .Net 3.5 or 4.0 Experience utilizing stored procedures Responsibilities: This person will be working on enhancements to a new claims system for Assurant Specialty Properties Warm Regards, Emraaz Khan, mailto:emr...@panzersolutions.com emr...@panzersolutions.com Direct: 203-813-2052 We respect your Online Privacy. This is not an unsolicited mail. Under Bill s.1618 Title III passed by the 105th U.S. Congress this mail cannot be considered Spam as long as we include Contact information and a method to be removed from our mailing list. If you are not interested in receiving our e-mails then please reply with a remove in the subject line and mention all the e-mail addresses to be removed with any e-mail addresses which might be diverting the e-mails to you. We are sorry for the inconvenience -- 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] Setting Time,Can i get any logs about it?
Hi all: On Android,if i setting the phone time,can i get any logs about it?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
[android-developers] Reusable code
Hi, I'm new to android development and I've (not unexpectedly) run into a smal problem. The answer is out there, but it has not been clear to me. I'm making an application with four activities. Activity one spawns the other three into a tabview. Each of these three activites use two methods that are common among them. For instance a method that analyzes a string. So far I have copied this method-code into each activity, but there must be a way to make such a method accessible to all three activities within this application? Or do I need to diveintoandroidbooks to understand why this isn't possible? -- Tommy -- 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: new to android
It would also help to have an understanding of Java or at least some type of OOP experience... If you have none I'd start with learning some basics of java and OOP. Or if you are a fast learner just go through the tutorials and examples. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Ali Chousein Sent: Wednesday, May 25, 2011 4:37 PM To: Android Developers Subject: [android-developers] Re: new to android http://developer.android.com/sdk/index.html Everything is explained on this web site. Good luck and enjoy 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] Re: Android app crashes when invoking getSystemService(LOCATION_SERVICE)
You are getting the null pointer b/c getLastKnownLocation has nothing to give... In this case you would need to call up the GPS listener... When it gets the current fix it will pop off its subroutine.. Inside there you can get the lat/lon do what you need to do with your button click then kill the GPS listener.. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy Sent: Thursday, May 05, 2011 3:29 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Android app crashes when invoking getSystemService(LOCATION_SERVICE) requestLocationUpdates() is asynchronous. It may take seconds or more for the location to be determined, depending on the location provider being used and the user's circumstances (e.g., is the user getting a GPS signal?). You cannot simply call getLastKnownLocation() immediately after calling requestLocationUpdates() and expect to get any value. Your whole premise (press a button, get a location) will only work if either: 1. You have location updates started early (e.g., onResume()), so by the time the user presses the button, you probably have a fix, or 2. Pressing the button triggers the request for the location, and it simply does not have an immediate effect, until the fix arrives On Thu, May 5, 2011 at 3:23 PM, Prayag Pathak prayag.d.pat...@gmail.com wrote: Hi Mark, Thanks for the answer. But still its not working. I included the code segment that updates the code. But still not working. Following is the code : LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener ll = new mylocationlistener(); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, ll); Location l = lm.getLastKnownLocation(lm.getProvider(LOCATION_SERVICE).getName()); Log.w(LocationTracker, The value of Location returned by getLastKnownLocation() is : + l.toString()); Log.d(Current Location, l.getLatitude() + ); Log.d(Current Location,l.getLongitude() + ); Toast.makeText(this, l.getLatitude() + + l.getLongitude(),Toast.LENGTH_LONG).show(); Regards, Prayag On May 5, 2:20 pm, Prayag Pathak prayag.d.pat...@gmail.com wrote: Hi guys, I am trying to get the latitude and longitude of the current location. Let me clarify, I dont want to implement a listener that will create an event when the location will be changed. I am trying to create an app that will record the current location on a button click event. Following is my code : hdLocMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Log.w(LocationTracker, The Location Manager is : +hdLocMgr.toString()); hdLocProvider = hdLocMgr.getBestProvider(hdCrit, true); location = hdLocMgr.getLastKnownLocation(hdLocProvider); dlat = location.getLatitude(); dlon = location.getLongitude(); Log.w(LocationTracker, The value of Latitude is : +dlat.toString()); The code gives a RunTimeException (caused by NullPointerException as stated in it). Kindly help me out in that. Regards, Prayag -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.4 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 -- 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] user interface
I have used on a while back called DroidDraw IT was alright It has been over 6 months since I last used it so maybe its been updated. Other than that I don't know. I used DroidDraw to get feel for how designs work then I just started doing it in the XML Mostly with the RelativeViewIts my favorite :) -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of bob Sent: Wednesday, April 27, 2011 12:24 PM To: Android Developers Subject: [android-developers] user interface What are some tools to help you design an android user interface? -- 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] Phone for development
I would HIGHLY recommend HTC.. THEY ARE BEAUTIFUL PHONES! One of my phones is the HTC Aria I use for development and my main personal phone.. Great phones. An example.. My wife threw a pair of paints at me as hard as she could (we were playing around she wasn't trying to kill me) but she didn't know my HTC was in my pocket. Well the pants missed me by a mile(probably b/c she is a girl J) and hit the oak bed back.. I heard the phone hit and just assumed the phone was trashed. It hit really hard. The only thing that happened was the case popped off. No cracks. no breaks. Phone still works like it did when it was knew.. I recommend HTC to anyone and everyone until they show me they don't deserve to be recommended. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Raghav Sood Sent: Wednesday, April 27, 2011 11:35 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Thanks Pepijn. That helps a lot. I'll most probably do with a HTC now. Thanks everyone. On Wed, Apr 27, 2011 at 8:45 PM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: On 27/04/2011 16:12, Raghav Sood wrote: Okay. I'll check that out. Still can someone suggest a reasonably priced android 2.2 or above phone? Thanks Since no one's giving you any advice I'll give it a try ;) The dev phones I use myself are Motorola Milestone XT720, HTC Desire, Samsung Galaxy S and a Google Nexus S; one for each OS revision. I know these are all high-end devices, but I can try to extrapolate my experience with those. Objectively, they're all fairly similar for development purposes. I don't use these phones for anything besides testing so I can't comment on any Android customizations each vendor might have made. Subjectively, I prefer the HTC the most in terms of feel and build quality. HTC seems to do a pretty good with their OS updates as well and they actually use OTA updates rather than requiring some buggy proprietary tool. If you stick with HTC the only model they seem to have in the 230 euro / Rp. 15000 price range is the wildfire. The wildfire is listed in Belgium at 229 euro and the wildfire S at 289 euro. The first one is a Froyo device, the second one Gingerbread. I don't know about the specific Samsung model you mentioned, but the Galaxy and Nexus are pretty good too FWIW. The only downsides to Samsung IMO is that you have to use Kies to perform upgrades which can be a pain and they feel rather flimsy, plasticy. The HTC has a sturdier feel to it. Hope this helps, Pepijn -- 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 mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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] Regarding Parsing From Server.
I use ASP.net Webservice to power my app. On the Andoid side I use Ksoap2 to consume the .net webservice then I parse the response back as needed using java on the android side. http://msdn.microsoft.com/en-us/library/t745kdsh.aspx (webservices) http://code.google.com/p/ksoap2-android/ (ksoap2) From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of TreKing Sent: Wednesday, April 27, 2011 1:01 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Regarding Parsing From Server. On Tue, Apr 26, 2011 at 3:43 AM, yogendra G yogi2...@gmail.com wrote: In my app have my own search bar,in tht if i enter anything like jobs- i shud get detail of tht jobs from my own server. So how can i do it 1 - Send a request to your own server. 2 - In your own server, send a response based on the request. 3 - In your app, handle the response. The details of this have nothing to do with Android. ,Any 1 get me sum links or code for it for any web services kind. Try Google and a spell-checker. - 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 -- 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] Phone for development
Here is engadgets review of the desire. http://www.engadget.com/2010/04/01/htc-desire-review/ Accoding the the last section called Wrap-up the first paragraph reads: The Desire is yet another fine piece of work from HTC - build quality is top notch as usual, and there's little to complain about the software except for the Flash performance. Some may argue that the Desire lacks freshness since the Nexus One's already shown it all, but we'd disagree - at the end of the day it's mainly about the software and http://www.engadget.com/2010/02/09/google-starts-live-phone-support-to-nexu s-one-owners/ service, plus the Desire is available from more carriers to begin with (outside the US, anyway). If I were looking into buy the phone given the review I wouldn't feel bad about buying it, but that's me. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Raghav Sood Sent: Wednesday, April 27, 2011 1:42 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Thanks. Is the Desire a good choice? On Wed, Apr 27, 2011 at 10:31 PM, Tommy droi...@gmail.com wrote: I would HIGHLY recommend HTC.. THEY ARE BEAUTIFUL PHONES! One of my phones is the HTC Aria I use for development and my main personal phone.. Great phones. An example.. My wife threw a pair of paints at me as hard as she could (we were playing around she wasn't trying to kill me) but she didn't know my HTC was in my pocket. Well the pants missed me by a mile(probably b/c she is a girl J) and hit the oak bed back.. I heard the phone hit and just assumed the phone was trashed. It hit really hard. The only thing that happened was the case popped off. No cracks. no breaks. Phone still works like it did when it was knew.. I recommend HTC to anyone and everyone until they show me they don't deserve to be recommended. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Raghav Sood Sent: Wednesday, April 27, 2011 11:35 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Thanks Pepijn. That helps a lot. I'll most probably do with a HTC now. Thanks everyone. On Wed, Apr 27, 2011 at 8:45 PM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: On 27/04/2011 16:12, Raghav Sood wrote: Okay. I'll check that out. Still can someone suggest a reasonably priced android 2.2 or above phone? Thanks Since no one's giving you any advice I'll give it a try ;) The dev phones I use myself are Motorola Milestone XT720, HTC Desire, Samsung Galaxy S and a Google Nexus S; one for each OS revision. I know these are all high-end devices, but I can try to extrapolate my experience with those. Objectively, they're all fairly similar for development purposes. I don't use these phones for anything besides testing so I can't comment on any Android customizations each vendor might have made. Subjectively, I prefer the HTC the most in terms of feel and build quality. HTC seems to do a pretty good with their OS updates as well and they actually use OTA updates rather than requiring some buggy proprietary tool. If you stick with HTC the only model they seem to have in the 230 euro / Rp. 15000 price range is the wildfire. The wildfire is listed in Belgium at 229 euro and the wildfire S at 289 euro. The first one is a Froyo device, the second one Gingerbread. I don't know about the specific Samsung model you mentioned, but the Galaxy and Nexus are pretty good too FWIW. The only downsides to Samsung IMO is that you have to use Kies to perform upgrades which can be a pain and they feel rather flimsy, plasticy. The HTC has a sturdier feel to it. Hope this helps, Pepijn -- 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 mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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 mailto:android-developers%2bunsubscr
RE: [android-developers] Phone for development
That's not a huge issue. You still have 220mb avail for running apps. my original droid usually runs with 64mb free and I don't notice any issues.. If you are worried about the ram have you tried ATK(Advanced Task Killer)? I love it personally and it does a great job at keeping things running especially if you set up the auto-kill feature every hour or so.. Have you considered buying a used phone off ebay? I don't know how it works in india but that would be all I could suggest on possibly finding a good price on another phone. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Raghav Sood Sent: Tuesday, April 26, 2011 1:10 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Hi, Thanks for the replies. I would love a Nexus phone but I am 13 years old and in india its a little expensive for me. My optimus works fine except it has started losing RAM very fast. When I switch it on there is 340 mb free but within 48 hours its down to 220mb. Any other phones you can suggest? Thanks On Tue, Apr 26, 2011 at 2:03 AM, Tommy droi...@gmail.com wrote: I have phones with ATT and you can use them to develop with. As long as you push your app via Eclipse. or Whats it. ADB that eclipse automates for you. What you CAN NOT do is copy the app to your sd card and install it that way. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Danny Pimienta Sent: Sunday, April 24, 2011 10:35 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Raghav, All devices work for development use except those on ATT because they disable to option to allow sideloading of apps. I personally still user a Nexus One as my developers phone since it's pure Google and it is supposed to get updates faster. On Sat, Apr 23, 2011 at 4:58 PM, Raghav Sood raghavs...@gmail.com wrote: Hi, I was thinking of buying a new phone for development and zeroed in on Samsung Galaxy Pro B7510 http://www.samsung.com/in/consumer/mobile-phone/mobile-phone/smartphone/GT- B7510LKAINU/index.idx?pagetype=prd_detail . I wanted to know if this is a good choice and if any of you have used it how is it? Also will it be better than my current Optimus P500? Thanks in advance -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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 mailto:android-developers%2bunsubscr...@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 mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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] Phone for development
Hm, That sucks about ATK not working very good for you.. I can't remember the last time I turned my phone off because of memory issues. Maybe someone else can give some suggestions on that. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Raghav Sood Sent: Tuesday, April 26, 2011 2:00 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Hi its 220 mb after 48 hrs. By the end of 5-6 days its down to 80mb and then the phone starts to hang frequently.Advanced Task killer doesn't help much. I did consider ebay but in India sometimes the used goods turn out to be barely working. If you could suggest a good android phone running atleast froyo for less than Rs. 15000 I would be happy. Any suggestions to speed my current phone up are welcome to. On Tue, Apr 26, 2011 at 11:21 PM, Tommy droi...@gmail.com wrote: That's not a huge issue. You still have 220mb avail for running apps. my original droid usually runs with 64mb free and I don't notice any issues.. If you are worried about the ram have you tried ATK(Advanced Task Killer)? I love it personally and it does a great job at keeping things running especially if you set up the auto-kill feature every hour or so.. Have you considered buying a used phone off ebay? I don't know how it works in india but that would be all I could suggest on possibly finding a good price on another phone. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Raghav Sood Sent: Tuesday, April 26, 2011 1:10 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Hi, Thanks for the replies. I would love a Nexus phone but I am 13 years old and in india its a little expensive for me. My optimus works fine except it has started losing RAM very fast. When I switch it on there is 340 mb free but within 48 hours its down to 220mb. Any other phones you can suggest? Thanks On Tue, Apr 26, 2011 at 2:03 AM, Tommy droi...@gmail.com wrote: I have phones with ATT and you can use them to develop with. As long as you push your app via Eclipse. or Whats it. ADB that eclipse automates for you. What you CAN NOT do is copy the app to your sd card and install it that way. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Danny Pimienta Sent: Sunday, April 24, 2011 10:35 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Raghav, All devices work for development use except those on ATT because they disable to option to allow sideloading of apps. I personally still user a Nexus One as my developers phone since it's pure Google and it is supposed to get updates faster. On Sat, Apr 23, 2011 at 4:58 PM, Raghav Sood raghavs...@gmail.com wrote: Hi, I was thinking of buying a new phone for development and zeroed in on Samsung Galaxy Pro B7510 http://www.samsung.com/in/consumer/mobile-phone/mobile-phone/smartphone/GT- B7510LKAINU/index.idx?pagetype=prd_detail . I wanted to know if this is a good choice and if any of you have used it how is it? Also will it be better than my current Optimus P500? Thanks in advance -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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 mailto:android-developers%2bunsubscr...@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 mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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
RE: [android-developers] Phone for development
I have phones with ATT and you can use them to develop with. As long as you push your app via Eclipse. or Whats it. ADB that eclipse automates for you. What you CAN NOT do is copy the app to your sd card and install it that way. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Danny Pimienta Sent: Sunday, April 24, 2011 10:35 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Phone for development Raghav, All devices work for development use except those on ATT because they disable to option to allow sideloading of apps. I personally still user a Nexus One as my developers phone since it's pure Google and it is supposed to get updates faster. On Sat, Apr 23, 2011 at 4:58 PM, Raghav Sood raghavs...@gmail.com wrote: Hi, I was thinking of buying a new phone for development and zeroed in on Samsung Galaxy Pro B7510 http://www.samsung.com/in/consumer/mobile-phone/mobile-phone/smartphone/GT- B7510LKAINU/index.idx?pagetype=prd_detail . I wanted to know if this is a good choice and if any of you have used it how is it? Also will it be better than my current Optimus P500? Thanks in advance -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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 mailto:android-developers%2bunsubscr...@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] Help in simple read/write applications.
I didn't think you could access app files between apps... Why not create a folder on the SD card and write the file there that way both apps have access? Maybe I am wrong about apps being able to access eachothers files other than with maybe custom providers? Maybe you could try using an Intent from App B to call an activity on App A that passes back the data you are looking for? -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of HarryP Sent: Monday, April 25, 2011 9:14 PM To: Android Developers Subject: [android-developers] Help in simple read/write applications. I am writing two applications A and B. A writes a string into a file and B has to read from the same file. Both are signed by the same key and have shared UIDs. App A runs fine, by writing a specified string into the file(stored in internal memory). But while running app B on the emulator, I get an error box which says that the application stopped unexpectedly. Can anyone help me in this direction? 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] Re: Timezone Question
Jake, I have a vb project that auto detects Time Zone and Day Light Savings Time.. I found these JS files online and they seem to work great.. TimeZoneDetection.js : //Provided by http://www.michaelapproved.com/articles/timezone-detect-and-ignore-daylight- saving-time-dst/ function TimezoneDetect() { var dtDate = new Date('1/1/' + (new Date()).getUTCFullYear()); var intOffset = 1; //set initial offset high so it is adjusted on the first attempt var intMonth; var intHoursUtc; var intHours; var intDaysMultiplyBy; //go through each month to find the lowest offset to account for DST for (intMonth = 0; intMonth 12; intMonth++) { //go to the next month dtDate.setUTCMonth(dtDate.getUTCMonth() + 1); //To ignore daylight saving time look for the lowest offset. //Since, during DST, the clock moves forward, it'll be a bigger number. if (intOffset (dtDate.getTimezoneOffset() * (-1))) { intOffset = (dtDate.getTimezoneOffset() * (-1)); } } return intOffset; } DSTDetection.js: // provided by http://www.michaelapproved.com/articles/daylight-saving-time-dst-detect/ //Find start and end of DST function DstDetect() { var dtDstDetect = new Date(); var dtDstStart = ''; var dtDstEnd = ''; var dtDstStartHold = ''; //Temp date hold var intYearDayCount = 732; //366 (include leap year) * 2 (for two years) var intHourOfYear = 1; var intDayOfYear; var intOffset = TimezoneDetect(); //Custom function. Make sure you include it. //Start from a year ago to make sure we include any previously starting DST dtDstDetect = new Date() dtDstDetect.setUTCFullYear(dtDstDetect.getUTCFullYear() - 1); dtDstDetect.setUTCHours(0, 0, 0, 0); //Going hour by hour through the year will detect DST with shorter code but that could result in 8760 //FOR loops and several seconds of script execution time. Longer code narrows this down a little. //Go one day at a time and find out approx time of DST and if there even is DST on this computer. //Also need to make sure we catch the most current start and end cycle. for (intDayOfYear = 1; intDayOfYear = intYearDayCount; intDayOfYear++) { dtDstDetect.setUTCDate(dtDstDetect.getUTCDate() + 1); if ((dtDstDetect.getTimezoneOffset() * (-1)) != intOffset dtDstStartHold == '') { dtDstStartHold = new Date(dtDstDetect); } if ((dtDstDetect.getTimezoneOffset() * (-1)) == intOffset dtDstStartHold != '') { dtDstStart = new Date(dtDstStartHold); dtDstEnd = new Date(dtDstDetect); dtDstStartHold = ''; //DST is being used in this timezone. Narrow the time down to the exact hour the change happens //Remove 48 hours (a few extra to be on safe side) from the start/end date and find the exact change point //Go hour by hour until a change in the timezone offset is detected. dtDstStart.setUTCHours(dtDstStart.getUTCHours() - 48); dtDstEnd.setUTCHours(dtDstEnd.getUTCHours() - 48); //First find when DST starts for (intHourOfYear = 1; intHourOfYear = 48; intHourOfYear++) { dtDstStart.setUTCHours(dtDstStart.getUTCHours() + 1); //If we found it then exit the loop. dtDstStart will have the correct value left in it. if ((dtDstStart.getTimezoneOffset() * (-1)) != intOffset) { break; } } //Now find out when DST ends for (intHourOfYear = 1; intHourOfYear = 48; intHourOfYear++) { dtDstEnd.setUTCHours(dtDstEnd.getUTCHours() + 1); //If we found it then exit the loop. dtDstEnd will have the correct value left in it. if ((dtDstEnd.getTimezoneOffset() * (-1)) != (intOffset + 60)) { break; } } //Check if DST is currently on for this time frame. If it is then return these values. //If not then keep going. The function will either return the last values collected //or another value that is currently in effect if ((new Date()).getTime() = dtDstStart.getTime() (new Date()).getTime() = dtDstEnd.getTime()) { return new Array(dtDstStart, dtDstEnd); } } } return new Array(dtDstStart, dtDstEnd); } Hopefully this will help your situation ? From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of String Sent: Saturday, April 23, 2011 11:41 AM To: android-developers@googlegroups.com Subject: [android-developers] Re: Timezone Question No offense, Bob (and I do mean that, I value your posts on this forum),