[android-developers] Pins for developers?
So I hear that Google gave away Android Pins at MWC. Any chance us lowly developers will be getting those pins? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NFC Concerns
I have my reservations about the NFC features on new phones. 1.) Does it read any NFC? Like say my Amex cards RDIF tag? 2.) The writer for the NFC chip in the phone does it write whatever I tell it to write? 3.) What is the security on this technology? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TTS User controlled
So I would say I am pretty much the office guru when it comes to TTS in Android Applications, I can enable, install and make it say pretty much whatever I want at this point. Someone in my office had the gale to ask me if I could make it stop talking as a setting and I said sure. Well This is where I am stuck. I know there is stop feature but that would mean putting stops all over my source code. And then I thought well I could make a conditional variable in the settings to my application. But that to would require several checkpoints all through out the source code. So I was looking around in the API trying to find a quick fix and can't seem to find any indicator other than that I will need lots of check points in the code. Does anyone know of a Global way to enable or disable TTS based on a user input. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon to Policy Android Market Place
Im sure worst case they could probably package there market with the kindle app somehow. On Jan 14, 10:32 am, TreKing treking...@gmail.com wrote: On Fri, Jan 7, 2011 at 12:52 AM, SoftWyer karl.w...@gmail.com wrote: Furthermore, unless Amazon can get their app pre-installed onto devices, then it's going to be limited. After all, not many people will know to go to the Market app to download another market app. Amazon is one of the most well-known websites out there with who-knows how many users. I'm sure they can get the word out to their user that that they can buy apps from their store, and you'll probably be able to do it right from a browser. . ----- 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
[android-developers] Re: HTML5 audio and video support
Are you using the inherit browser that comes with the phone or a third party browser like Opera? Since HTML5 is not standard across all browser it depends on which one you are using. On Jan 12, 10:21 am, ls02 agal...@audible.com wrote: I am trying to figure out of android (at least Froyo) has any audio and video HTML5 tag support in any form or shape. I read from many sources andhttp://www.html5test.comconfirms that although Android Web browser does support both tags it does not support any audio or video codecs which basically makes these tags not supported. At the same time I read in some references that some people may have found a workaround how to play audio inside a Web browser for instance by specifying mp3 file source for video tag. http://code.google.com/p/android/issues/detail?id=10546 I tried this on my Droid and no clip is played or displayed, only a placeholder is shown. Can someone point me to at least one working example (link to a page) that plays any sort of audio inside a Web browser on Android. If it is absolutely not possible to play audio via HTML5, is there any way to launch Android music player to play the mp3 link in some sort of hidden or minimized form so it does not take over entire screen and navigate user away from a Web page? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)
So clarify this once and for all. Unless I buy the phone as a developer phone, ie out of contract, the provider doesnt not have to give me access to be able to install out of market apps, ie my own developed apps unless they are on the market? On Jan 10, 10:05 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Jan 10, 2011 at 5:09 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jan 10, 2011 at 4:46 PM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Ok. So here is what I am trying to understand. I have an X10A from ATT. I can not develop on the phone because it doesn't allow me to install third party none market applications. You can still use adb to push app to the device, AFAIK. Yes. Full adb support most be there for it to be compatible. This allows all of the development tools to work. Being able to install non-Market apps through the UI is a completely different issue, and not covered by the CDD because it is not needed for development. -- 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
[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)
Dianne Thank you for your time in clearing up this matter. I now have clear understanding. Again thank you. On Jan 11, 1:11 pm, Dianne Hackborn hack...@android.com wrote: Your phrasing is confusing. The CDD *requires* that for a device to ship with Market it *must* have full ADB support. This is what you use to develop applications on a device: install them, debug them, and everything else involved with development. Being able to install non-Market apps as a *user* (not a *developer*) through the UI is a completely different issue, not covered by the CDD, and not impacting a developer who is developing apps on their device. You as a developer are perfectly capable of installing your own apps on any device that has Market. You will not be able to put those apps up on a web site for users to download outside of Market. Also developer phone != out of contract. In fact, developer phone is a bad term to use. Every Android phone with Market is a third party developer phone. There are a few phones that allow reflashing of their system images, which is intended for developers of the platform itself to be able to replace the entire firmware with their own build. Also these phones aren't only available out of contract; it is a decision that the manufacturer makes that is independent of how they sell it. (Google being the only one I believe doing this with the Nexus phones, and both models so far have been available with or without contract, because they are intended to be great for end users as much as being a tool for platform developers.) On Tue, Jan 11, 2011 at 6:39 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: So clarify this once and for all. Unless I buy the phone as a developer phone, ie out of contract, the provider doesnt not have to give me access to be able to install out of market apps, ie my own developed apps unless they are on the market? On Jan 10, 10:05 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Jan 10, 2011 at 5:09 PM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jan 10, 2011 at 4:46 PM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Ok. So here is what I am trying to understand. I have an X10A from ATT. I can not develop on the phone because it doesn't allow me to install third party none market applications. You can still use adb to push app to the device, AFAIK. Yes. Full adb support most be there for it to be compatible. This allows all of the development tools to work. Being able to install non-Market apps through the UI is a completely different issue, and not covered by the CDD because it is not needed for development. -- 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.comandroid-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
[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)
Sony Ericsson X10a as sold by ATT does not meet this standard I believe. On Jan 8, 3:25 pm, Dianne Hackborn hack...@android.com wrote: On Sat, Jan 8, 2011 at 8:34 AM, JP joachim.pfeif...@gmail.com wrote: On Jan 8, 7:57 am, Mark Murphy mmur...@commonsware.com wrote: Dev phones are for people devising alternative firmware. They are not necessary for ordinary Android SDK development. ... but sure are a good idea to have. We've seen a selection of dogs where USB drivers weren't available or LogCat wouldn't pick anything up because the device wouldn't provide any output on the USB port... I also like the presence of dev devices so scope can be established when writing proposals, along the line of ... tested on the Android reference devices Google Ion and Nexus One. It is required for a device to ship with Market that it full support development and debugging over USB. If you find a device with Market where this doesn't work, please let us know -- we aggressively pursue CDD incompatibilities to get them fixed (it is a requirement for someone to ship with Market to fix any such issues that are found). That said, yes the dev devices are partly there to be a benchmark for how that platform is expected to behave. (Though for most cases you can test against the base platform using the emulator as well.) I sometimes like to refer to them as Android reference devices. :) -- 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
[android-developers] Re: Does Market support installing multiple apks
What are these other APKs you are trying to DL? Are you taking about something like a speech engine? Or completely independent applications? On Jan 9, 11:41 pm, xeagle xeagle...@gmail.com wrote: Hi, My application contains several apks. I'd like upload my app to android Market. If user download my app, can all of these apks be installed? 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] Re: Google Nexus S - Please provide as DEV phone, asap :-)
Can you provide more details about CDD or confirm that the X10A as sold by ATT meets the CDD standard and is fully available for developer use with all features running. On Jan 10, 2:18 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Jan 10, 2011 at 6:27 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Sony Ericsson X10a as sold by ATT does not meet this standard I believe. The ATT devices don't have side-loading through the UI enabled. They still allow development (including installing) through ADB, and as I said if they didn't this would be a very large violation of the CDD. -- 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
[android-developers] Re: Google Nexus S - Please provide as DEV phone, asap :-)
Ok. So here is what I am trying to understand. I have an X10A from ATT. I can not develop on the phone because it doesn't allow me to install third party none market applications. If I try to root the phone it will remove the 3G and WIFI from functionality from the phone. At this point I am considering the need that I may need buy a new phone just for the soul purpose of being able to test the apps I'm developing. Am I wrong to think that there must be something that ATT can provide me with to root the phone so I can develop on it? On Jan 10, 4:38 pm, Kumar Bibek coomar@gmail.com wrote: CDD Details herehttp://source.android.com/compatibility/overview.html I believe it should be. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Tue, Jan 11, 2011 at 3:06 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Can you provide more details about CDD or confirm that the X10A as sold by ATT meets the CDD standard and is fully available for developer use with all features running. On Jan 10, 2:18 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Jan 10, 2011 at 6:27 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Sony Ericsson X10a as sold by ATT does not meet this standard I believe. The ATT devices don't have side-loading through the UI enabled. They still allow development (including installing) through ADB, and as I said if they didn't this would be a very large violation of the CDD. -- 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.comandroid-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
[android-developers] Re: Factory data reset - install app
Ummm, unless user backs up your app data I dont believe there is any way to actually auto install are factory reset. On Jan 6, 3:14 am, Hareef toar...@gmail.com wrote: Anyway to install App automatically when doing Factory Data Reset? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Prevent application - after Factory Data reset
Also maybe your app is the reason for the factory reset. IE Virus. On Jan 6, 3:14 am, Hareef toar...@gmail.com wrote: Factory Data reset will remove everything and uninstall the third party apps So, how can i prevent my app getting uninstalled? 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] Re: INSTALL_FAILED_MISSING_SHARED_LIBRARY
Try using different target version. On Jan 5, 8:28 am, Nitilaksha niti...@gmail.com wrote: Hello , **I was getting this error initialy when i tried to use google map api** [2011-01-05 18:01:40 - GApp_Map] -- [2011-01-05 18:01:40 - GApp_Map] Android Launch! [2011-01-05 18:01:40 - GApp_Map] adb is running normally. [2011-01-05 18:01:40 - GApp_Map] Performing com.diyamap.welcome activity launch [2011-01-05 18:01:40 - GApp_Map] Automatic Target Mode: launching new emulator with compatible AVD 'ADT' [2011-01-05 18:01:40 - GApp_Map] Launching a new emulator with Virtual Device 'ADT' [2011-01-05 18:01:57 - GApp_Map] New emulator found: emulator-5554 [2011-01-05 18:01:57 - GApp_Map] Waiting for HOME ('android.process.acore') to be launched... [2011-01-05 18:03:49 - GApp_Map] HOME is up on device 'emulator-5554' [2011-01-05 18:03:49 - GApp_Map] Uploading GApp_Map.apk onto device 'emulator-5554' [2011-01-05 18:03:51 - GApp_Map] Installing GApp_Map.apk... [2011-01-05 18:05:24 - GApp_Map] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2011-01-05 18:05:24 - GApp_Map] Please check logcat output for more details. [2011-01-05 18:05:24 - GApp_Map] Launch canceled! Later I changed the target(project properties) to Google API 9 to 8 but i am getting following errors :( [2011-01-05 18:11:14 - GApp_Map] -- [2011-01-05 18:11:14 - GApp_Map] Android Launch! [2011-01-05 18:11:14 - GApp_Map] adb is running normally. [2011-01-05 18:11:14 - GApp_Map] Performing com.diyamap.welcome activity launch [2011-01-05 18:11:14 - GApp_Map] Automatic Target Mode: launching new emulator with compatible AVD 'GA9' [2011-01-05 18:11:14 - GApp_Map] Launching a new emulator with Virtual Device 'GA9' [2011-01-05 18:11:27 - GApp_Map] New emulator found: emulator-5554 [2011-01-05 18:11:27 - GApp_Map] Waiting for HOME ('android.process.acore') to be launched... [2011-01-05 18:15:16 - GApp_Map] HOME is up on device 'emulator-5554' [2011-01-05 18:15:16 - GApp_Map] Uploading GApp_Map.apk onto device 'emulator-5554' [2011-01-05 18:15:17 - GApp_Map] Installing GApp_Map.apk... [2011-01-05 18:17:32 - GApp_Map] Failed to install GApp_Map.apk on device 'emulator-5554! [2011-01-05 18:17:32 - GApp_Map] (null) [2011-01-05 18:17:32 - GApp_Map] Launch canceled! Could anybody help me on this ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon to Policy Android Market Place
The almighty Amazon.com feels that is should police the Android Market for proper applications. On one hand I think this could be a good idea but on the other hand this feels took much like an Apple iOS development clone. With Amazon developing its own market place and limiting which apps can appear there you are guaranteed a visible market for your application. People who pursue amazon will know that your app may meet some sort of standard and may consider buying it. But just as good as that is, if Amazon is backed up with testing your application and like apple takes two weeks to reject your application based on some sort of merit what is to stop me from just uploading my application directly to the market place. ABSOLUTELY NOTHING. As someone who develops on both sides of the spectrum I don't see the implement of this Amazon App Market place as a good idea. I am curious as to other developers take on this and how many plan to actually develop to meet the amazon market guidelines. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android TTS sound braking
There is a feature that can allow you make sure the clips plays fully before termination. I can recall the method/function off the top of my head but I believe it was in the API. On Dec 28, 10:03 pm, Chandana Napagoda cnapag...@gmail.com wrote: HI, I have developed TTS based application, When playing it sound, if any other notification triggered, Then TTS playing with sound braking.( Ex: if SMS received TTS sound brake) What are condition which can occur such a issue? 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 For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Internal refresh of app
So I am working on an app that is memory intensive. Currently I can only go back and forth 18 times before my cause a critical memory crash. I have tried putting in onStop and onPause and releases onBack. Instead of releasing Process and threads, is there a way to quietly reset the app in memory without shutting the app down and completely restarting live on the screen, ie not make it look like a reboot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Internal refresh of app
ok. Would there be a way to track memory to determine where the leak is coming from? On Dec 22, 12:34 pm, Dianne Hackborn hack...@android.com wrote: You are almost certainly leaking memory. You need to fix the leaks. There are some blog posts and discussions on this list about fixing leaks. On Wed, Dec 22, 2010 at 7:16 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: So I am working on an app that is memory intensive. Currently I can only go back and forth 18 times before my cause a critical memory crash. I have tried putting in onStop and onPause and releases onBack. Instead of releasing Process and threads, is there a way to quietly reset the app in memory without shutting the app down and completely restarting live on the screen, ie not make it look like a reboot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Re: Internal refresh of app
Thanks Mark. I will do the track-allocations first. On Dec 22, 2:07 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Dec 22, 2010 at 1:44 PM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: ok. Would there be a way to track memory to determine where the leak is coming from? Use DDMS's track-allocations feature, or use DDMS to dump the heap to an HPROF file for analysis with Eclipse MAT. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onDestroy() and finish()
If you want to verify in theory that you app has shut down put a log into the onDestroy() and have it log that the processes are all terminated. Leon On Dec 21, 9:54 am, André pha...@hotmail.com wrote: I was using just this.finish(); in my app when exiting my app. But using ESTaskManager after closing my app I found that it's still running in the background. So I moved this.finish(); inside onDestroy. But program is still running. What am I doing wrong? I want it to fully close when it's closed. André -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cost effectiveness of JSON in Android
Thanks Brill. I will take this into consideration. On Dec 21, 12:42 am, Brill Pappin br...@pappin.ca wrote: I wouldn't be too hasty about removing the JSON. XML will cost you more in terms of resources and connecting directly to a database is likely also going to be more costly (although without seeing the actual implementation, I can't be sure of that). JSON is actually about as perfect as it gets for mobile devices... you could only get better by implementing your own protocol and even then your likely not going to save much. Also note that connecting directly to the database means that the database is exposed on the net in general and will present security problems. Although databases have security, they are not designed to ward off all the worms that are constantly probing a public address looking for a weak spot. You can deploy something like MongoDB (which presents it's data as JSON anyway) but it's not recommended. However, after rereading your post, I think you are attempting to put a web service between your app and the database. This is exactly how the rest of us will be doing it, but you don't need to get rid of JSON, in fact JSON is what 90% of the apps in the market will be using. If your asking how you build that web service, I recommend Jersey REST API as a good place to start. There are plenty of other frameworks out there for doing it though, so find one you like. - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cost effectiveness of JSON in Android
I am working on replacing JSON and direct connection to database. I know using direct connection to database is extremely costly in android since I need to call on much the java library to so. And the only replace for such costly processing would be to put the burden onto something else like a online website handling incoming data and sending outgoing results. I already have a though on how to implement this. But as for a replace of the JSON Objects I am not sure what options are available to me. Is there any thoughts on a substitution for JSON? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android TTS for Chinese
David, You dont need to wait for Android to support it per say. Depending on the engine used, you can have it speak in chinese. I am not sure if there is a chinese engine out there already but you could make it a requirement for your app like how the android tts engine checks for itself before the app starts. Then send the user to the market place to download the engine thus enabling the speaking component of your application. On Dec 6, 3:25 am, David Hu vistoda...@gmail.com wrote: Dear supporters, I'm an Android software engineer, who works in a Chinese company. I'm currently developing an application which need use TTS of Chinese, but TTS engine for Android platform only support English,French,German,Italian and Spanish. My question is when android TTS will support Chinese, do you have any plan? Thanks in advance! -- BR, -David 【座右铭:前进是你的舞步,奋斗是你的节拍;创造是你的音符,战斗是你的鼓点;和谐是你的共鸣,团结是你的交响;腾飞是你的前奏,辉煌是你的乐章。】 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to differentiate a tap event generated by system or by user
when you drop the phone? On Dec 6, 12:16 am, XC He schosnab...@gmail.com wrote: is there any tap event generated not by user's taping behavior? 2010/12/6 ankit ankit.ag...@gmail.com: Hi All, Urgently needed help on this. Actually i am recording and playing a sequence of events using getevent and sendevent class, now while playing the recorded events. Now while playing the recorded events i want to know if any new tap event is generated by user. So is there any way to differentiate a tap event generated by system or by user. Also is there any way to decode the raw data provide by the kernel to get this information. Any Kind of suggestions would be of great help to me.. Thanks in advance regards Ankit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How i can migrate my app from 1.5 to 1.6 api fast and safe???
that and if your building in eclipse make sure to change the lib to 1.6. Right click on project, properties, android, then select 1.6 On Dec 3, 9:41 am, Streets Of Boston flyingdutc...@gmail.com wrote: If you don't need/want to support 1.5 phones, just set the project's Android SDK version to 1.6 (api-level 4). Re-compile. That's it. On Dec 3, 6:51 am, saex elpablos...@gmail.com wrote: Hi, i am making a gigantic app for android, and i start doing it some moths ago for android 1.5, but now i know that some of the things i need for my app only can be done if you are programming for 1.6 api. there is a easy, fast and safe way to migrate my app from 1.5 to 1.6 without having to lose time? 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] Proposal to Market Place
As a developer I find it difficult to understanding ratings sometime. 1 to 5 is a good scale. But here is the problem with scale you can have people give you a five for the sake of giving you a five or a person give you one just because they want to be jerks. I would like to propose a change to the market rating system where a rate of 1 or 5 must include comments. If I am receiving a one due to technical problems or display problems I would want to know and not search my code for hours trying to find what may be the reason for the one rate. Also with the 5 I would like to know what is working so very good on my app that I could continue to use it in future developments. This way as we develop more apps we can get a better sense as what the rating really mean and the ppl who are rating the apps really think about them. 1 and 5 the extremes should require feedback as the 2 to 4 are mostly middle ground and could be left alone for the average jerk to rate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Free version to Paid version
pretty much thats the general method being used. One thing to consider is unpublishing the app and releasing a paid version in its place. But users may find that kinda a slap in the face. I would say do as your doing, add features to the app and call it app Plus and charge money for it. Remember though those feature need to be worth the price you apply to the app though. What you can do is remove features in an update to your free app and keep them in your paid version. On Dec 2, 3:42 pm, Brill Pappin br...@pappin.ca wrote: I've got a situation a lot of us do, where I have released a free version and now need to make a Paid version of the same app. As those who have tried will know, you can't change an app from Free to Paid (a silly feature of the Market). So, what I'm planning to do is release a Plus version that has more features. What are others doing to help direct users to their paid versions from their Free versions? I'n my case its an input method, so I have to be careful about how I tell the user about the paid version with more features. Comments? - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Binary sms?
All data is 0s and 1s. You can send an sms to the emulator using the simulator features in eclipse. Are you looking specifically to only send binary without a pre-established text? On Nov 26, 8:47 pm, vnv nikola1...@gmail.com wrote: Hi, is there a way to generate binary sms in emulator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best way to send data from Android Application to a Remote MySQL Database?
You can create an online page to handle data posts to your database. On Nov 29, 7:34 am, priya naral naral.pr...@gmail.com wrote: What is the best way to send data from Android Application to a Remote MySQL Database? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sony Ericsson LiveView™ m icro display SDK is released
Ba hum bug. Its not good for US developers as most of the Xperia line in the USA will not receive update to 2.1 until most likely well into the new year. On Nov 29, 3:40 am, Najat Baker najat.ba...@sonyericsson.com wrote: You can now download LiveView™ SDK here: http://developer.sonyericsson.com/wportal/devworld/downloads/download... And you can find LiveView™ micro display developer tutorial here: http://developer.sonyericsson.com/wportal/devworld/downloads/download... Best regards Najat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Scale a Drawable dinamically
You want to set dimensions via programmed settings like setWidth() and setHeight()? Or are you talking about something else. Can you elaborate as to the over all goal of this? On Nov 26, 12:33 pm, gato chlr dany...@gmail.com wrote: Hi, i have a drawable and i want to scale it programatically, does anybody know how to to it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoding in android, api key? emulator?
yes, the API is so that you can retrieve and interpret the data. Otherwise the system wont give you access. On Nov 23, 10:16 pm, Mel melaniejeanbren...@gmail.com wrote: I am trying to turn a latitude and longitude into an address (text only, I dont want to display it on a map) Do I need an Google Maps API key to do that? Will it ever work on the emulator or do I need a real device to test on? Thankyou. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: My app deleted from android market console
are you using the uses-features in your manifest? there are certain features the may not have your app appearing on certain devices. On Nov 24, 3:29 pm, TreKing treking...@gmail.com wrote: Try this:http://www.google.com/support/androidmarket/bin/request.py?contact_ty... ----- 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
[android-developers] Re: help me understand: upper case characters in layout file names are disallowed
It a language structure concept. You just have to build around it. Its kind of like saying why can i only pay with quarters into a vending machine if I have two dimes and a nickel. The structure of the machine is not designed to handle you dimes and nickels and this way the machine can process faster with less distractions. On Nov 21, 7:00 pm, Justin Collum jcol...@gmail.com wrote: I understand that these files map to R classes (generated). So I see why punctuation characters (most) are disallowed. But I can't for the life of me think of why main would be allowed but Main would not. Why not something like firstScreen? Is there something about generated files that I'm missing? Do caps screw them up somehow? I'd like to make a view named defineNewList or something along those lines. Annoying to have to use underscores: define_new_list. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android onClick seems to be blocking onFling
I think that onClick() is an Override event. I am not to familiar with your onFling but if its a user created class it will most likely remain dormant due to the the digitizer recognizing the onClick and not registering your onFling. On Nov 23, 8:17 am, CB cbu...@gmail.com wrote: I have an Activity that implements a Gesture Detector to catch the user fling input for navigation to other screens. That was working fine - but - I recently updated a class that derives from my BaseActivity to add an onClick function and now that click event seems to block the onFling from being hit. The onClick is tied to a TextView area (in a LinearLayout) I have on my screen. The resultsClick method is wired to the TextView using its onClick property in the XML layout. I've tried changing the return values in onSingleTapUp and onDown without luck. I've also tried adding log statements to all the functions below as well. None of them fire when I fling in the TextView area but they do on other areas of the screen. Maybe I am using the wrong search terms, but I couldn't seem to find an example that addressed this - yet I'm sure this problem has been solved before. public class DerivedActivity extends BaseActivity { ... /** * resultsClick - The user clicked on the Results area * @param v */ public void resultsClick(View v) { try { Log.i(this.toString(), resultsClick); startActivity(new Intent(this, Results_TabHost.class )); } catch (Exception e) { Log.e(this.toString(), Exception + e.toString()); } }// end resultsClick ... } Here is the base class that implements the GestureListener code public class BaseActivity extends ActivityGroup implements OnGestureListener { ... private static final int SWIPE_MIN_DISTANCE = 120; private static final int SWIPE_MAX_OFF_PATH = 250; private static final int SWIPE_THRESHOLD_VELOCITY = 200; public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { try { Log.i(this.toString(), onFling); // jump right out if not a swipe/fling if (Math.abs( e1.getY() - e2.getY() ) SWIPE_MAX_OFF_PATH) { return false; } // right to left swipe if (e1.getX() - e2.getX() SWIPE_MIN_DISTANCE Math.abs(velocityX) SWIPE_THRESHOLD_VELOCITY ) { Log.i(this.toString(), fling left); rightArrowClick(null); } else if (e2.getX() - e1.getX() SWIPE_MIN_DISTANCE Math.abs(velocityX) SWIPE_THRESHOLD_VELOCITY ) { Log.i(this.toString(), fling right); leftArrowClick(null); } } catch (Exception e) { Log.e(this.toString(), Exception + e.toString()); } return true; }// end onFling // These next methods we are required to have - even if unused - // in order for the Gesture Handling to work �...@override public boolean onTouchEvent(MotionEvent motionEvent) { if(this.gestureDetector.onTouchEvent(motionEvent)) { return true; } //no gesture detected, let Activity handle touch event return super.onTouchEvent(motionEvent); } �...@override public void onLongPress(MotionEvent e) { // Intentionally not handling - must be overridden by listener class } �...@override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { // Intentionally not handling - must be overridden by listener class // Intentionally returning true - per code examples return true; } �...@override public void onShowPress(MotionEvent e) { // Intentionally not handling - must be overridden by listener class } �...@override public boolean onSingleTapUp(MotionEvent e) { // Intentionally not handling - must be overridden by listener class // Intentionally returning true - per code examples return true; } �...@override public boolean onDown(MotionEvent e) { // Intentionally not handling - must be overridden by listener class // Intentionally returning true - per code examples return true; } ... } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Background error reporting on HttpPost
I am running a background service were data is posted to an online site that process the information to post to online database. The problem i am encountering is that with the data being posted if there is an error there is not immediate way for me to know. i am considering several options. First is having a handler on the website to send me and email that there was error parsing the data. But the problem here is that this has its own restriction with getting and receiving data. Also if the site is down there would be no immediate verifier for me. The idea would be that there is an critical fail post to the phone. I execute the connection and there is no problem and the data is passed to my parameter holder it then send the data to site. Data is processed and even though there is an error on the side of the side there is nothing to tell me so on the phone. I necessarily dont need the user to know that it failed but I need something phone side to tell me there is a problem. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Online Image in SimpleExpandableList
So the SimpleExpandabeListAdapter is text base only? So I would need to create new adapter style? On Nov 23, 1:51 am, Kumar Bibek coomar@gmail.com wrote: Well, for this you will have to write a custom adapter for your list view, since the adapter you are using cannot be directly used to show an image. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Thu, Nov 18, 2010 at 3:50 AM, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Here is the code I am using. Currently I get and Location to appear but image doesnt. mAdapter = new SimpleExpandableListAdapter( this, groupData, android.R.layout.simple_expandable_list_item_2, new String[] {IMAGE, NAME}, new int[] {R.id.image, android.R.id.text1 }, childData, android.R.layout.simple_expandable_list_item_2, new String[] {IMAGE, NAME, LOCATION }, new int[] {R.id.image, android.R.id.text1, android.R.id.text2 } ); Log.d(Leo's Tag, mAdapter.toString()); setListAdapter(mAdapter); So the IMAGE string is url to web address with a thumbnail size image. I think I am missing could to convert the URL into a image raw or an ImageView. If someone would be most kind and direct me in the proper direction to implement this or if someone knows how to convert online url to image and would share their code I would be most great full. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Re: Send GPS Location Details to Server
I have you considering sending this data to web site to process the data on the server? You say your are using HttpConnection, you can use the HTTPPost to post to the site and let the site do the work for you. Leonid Moreyn On Nov 18, 3:49 am, jagan reddy saimohanj...@gmail.com wrote: Hello All, I am developing a GPS application.. By using the windowsXP OS and eclips IDE I am able to get the Longitude and Latitude of the current Position I want to sent those details to server by using the Http connection and for that sending, I will use gprs connection in my device how to do this, I am in big confusion. Here one more thing that GPRS connection is not available at that time we need to sent a SMS to the server. Any body help me in this -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps doesn't show
The API key is the key assigned to you as a developer. You need to register your MD5 with google and they will assign you one. On Nov 23, 8:31 am, coy cawe...@gmail.com wrote: Tommy, Yes, it could be the problem. But what is the right API KEY? Moreover, I exported my app as a unsigned android app and then I pushed it to the phone. Is that the problem?? thanks :) On Nov 14, 9:57 pm, Tommy droi...@gmail.com wrote: Sounds like you don't have the right API key in. You need one for Developement and one for Production. So one for when you push it to the phone from Eclipse or whatever and one You use when you publish the application. That sounds like your issue right there. I had it happen to me where it shows the markers but it won't actually load the map tiles. Check that API key, if you don't have one you need one :) Hope that helps. Tommy Android Mobile Phone Application Developer Database Administrator .net Web Specialist -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of coy Sent: Sunday, November 14, 2010 4:08 PM To: Android Developers Subject: [android-developers]Mapsdoesn't show Hello, I have map in my android app. On emulator is everything OK. But on device (Motorola Droid) the map shows marker but doesn't show real map in background!! The conection is OK and I held the INTERNET permission in my manifest. What is causing this problem? Any idea? thnks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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
[android-developers] Online Image in SimpleExpandableList
Here is the code I am using. Currently I get and Location to appear but image doesnt. mAdapter = new SimpleExpandableListAdapter( this, groupData, android.R.layout.simple_expandable_list_item_2, new String[] {IMAGE, NAME}, new int[] {R.id.image, android.R.id.text1 }, childData, android.R.layout.simple_expandable_list_item_2, new String[] {IMAGE, NAME, LOCATION }, new int[] {R.id.image, android.R.id.text1, android.R.id.text2 } ); Log.d(Leo's Tag, mAdapter.toString()); setListAdapter(mAdapter); So the IMAGE string is url to web address with a thumbnail size image. I think I am missing could to convert the URL into a image raw or an ImageView. If someone would be most kind and direct me in the proper direction to implement this or if someone knows how to convert online url to image and would share their code I would be most great full. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ATT HTC ARIA - Can not install APK
You would most likely need to contact ATT. You need to either gain root access or get an unlock code from ATT. On Nov 18, 1:08 pm, Néstor rot...@gmail.com wrote: I have been looking for 3 days on how to install an APK that I created with my SDK on my desktop. I was able to copy the APK from my desktop to my phone but now whenever I try to install the APK on my phone I get an message INSTALL BLOCKED For security, your phone is set to block installation of applications not source in android market. Is it possible to install a non market APK to my ARIA? Thanks, Néstor :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 it possible to using a url image in ImageView
So here is my question. I am trying to use an online thumbnail. I can have looked around and have not found too much data on this. Can some provide me the simplest way to do this. Also If i implement a simpleExpandableListAdapter which is designed as a textView Adapter is there a way to force the image in? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android app naming policy
Are you trying to run the same app multiple times? What exactly is the result you are trying to achieve or verify? Leon Moreyn On Nov 19, 12:19 pm, vnv nikola1...@gmail.com wrote: Hi, I would like to run multiple instances of same application for dev purpose. How does app define it's name in the system, through which of the files is that configured. N. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ATT HTC ARIA - Can not install APK
Hm I develop for Sony Ericsson X10 and I still havent been able to get the adb to work for me. H maybe ATT is dropping its restrictions. On Nov 19, 11:18 am, Néstor rot...@gmail.com wrote: PROBLEM SOLVED!!! Yes, I am using Eclipse and I tried adb. I did not try sideload but I was able to install my applications. I was still searching for an answer to my problem when I read somewhere that a person had a similar problem and it was solved by changing his connection to another USB port. I did this and all my SDK was able to see my phone and when I ran my app on the SDK it ask me which device to use. I can not explain it but changing USB port was the solution for me. Thanks for your reply. Néstor :-) On Nov 18, 10:10 am, Mark Murphy mmur...@commonsware.com wrote: Option #1: Use the adb install command Option #2: If you are using Eclipse, set it up as a run target Option #3: Use the Sideload Wonder Machine: http://www.androidcentral.com/sideload-android-apps-all-you-want-side... On Thu, Nov 18, 2010 at 1:08 PM, Néstor rot...@gmail.com wrote: I have been looking for 3 days on how to install an APK that I created with my SDK on my desktop. I was able to copy the APK from my desktop to my phone but now whenever I try to install the APK on my phone I get an message INSTALL BLOCKED For security, your phone is set to block installation of applications not source in android market. Is it possible to install a non market APK to my ARIA? Thanks, Néstor :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market, specify products in Dollars instead of euros.
So here is my question to this. I have two places I can develop out of. I can develop out of Latvia and out of the USA. So if I was posting a new app in Latvia the currency would be LAT? And if I posted the app here in the USA the currency would be USD? On Nov 19, 11:28 am, sblantipodi perini.dav...@dpsoftware.org wrote: good suggestions, I have never thought about that. Thanks! On Nov 19, 4:15 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: Why I can't, is this a smart way to proceed? I believe the answe is: you can't. But, depending on how much you sell (in terms of money totals) you may want to consider forming LLC in US and then selling thru it. You would need to check couple of things with your local financial/fiscal advisor (i.e. to see if your law does not forbid anything like that or how taxes would look) but if you form it right and it right state, then it should pretty much work fine. But I'd just leave that idea if the only reason is currency - too much hassle and not much real benefits if you ask me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: make JPEG image has map
Im not sure of sample code for this, but here is how I would implement this. You dont necessarily need a map. An image view with a moving curses could be possible. You would set the location on the cursor in the image by using GPS location. You can receive lat and lon to your device. You would then convert those positions to X and Y respectively on your display. Then every time the location updates the cursor would move on your map. On Nov 22, 1:34 pm, sal suhailb...@gmail.com wrote: Hi Kostya, Thanks for ur concern. I dont want precision and reliabilty, I just want a source code of sample application which lets me draw image has a map and allow me to mark the location on the map. pointer to sample source code would be appreciated rgds Sal On Nov 20, 3:24 pm, Kostya Vasilyev kmans...@gmail.com wrote: Are you sure you can get high enough precision from GPS to make navigating within an apartment meaningful? Especially considering this is presumably indoors, i.e. with the roof blocking the view? Unless, of course, your apartment is the size of Taj Mahal :) I'd say - download one of applications that let you monitor GPS state, and see if your phone can provide enough precision and reliability. -- Kostya 20.11.2010 13:00, suhail ahmed ?: Hi guys i have a JPEG sketch of my apartment i wish to write android app which loads this JPEG file and behaves as a map to the user so that user can track is movement. I am really confused wheather JPEG file can be used as a map, if it can used as a map then please let me know how i can mark the movement of the user on that map Any sample code would be really appreciated -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: streaming mp4 from Internet
If this video is your video is stored locally on your computer. If its not video, ie you are trying to steam from Youtube or something like that that is streaming this video on the web then you will not be able to do so. You must have admin access to the video for it to be your video. MP4Box is tool to repair the video file before it reaches your device. You do not run the repair on the device because while Android are robust the battery need to repair small video will consume too large a portion of battery. On Nov 21, 4:20 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: what do you mean by this video is my video or not ?? and how to start MP4Box on device ?? On Nov 21, 10:55 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Nov 21, 2010 at 3:52 PM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote: but i tried it on areal device how can MP4Box added to fix this problem ?? You do not run MP4Box on the device. Either this is your video, or it is not. If it is your video, on your PC, run MP4Box on the video file, and arrange it so your device can download the repaired file. If this is not your video, you simply cannot play it streaming. You are welcome to download the video and play it locally. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anyone seeing mysterious application crashes lately?
I believe there was a recent sweep of the market. And i think there was also a market update. So this maybe some of the reasoning for this. On Nov 22, 4:45 pm, Jonas Petersson jonas.peters...@xms.se wrote: Hi Kostya, On 11/22/2010 09:00 PM, Kostya Vasilyev wrote: I've am seeing some pretty mysterious crash reports in the Market Console lately. [...] I am wondering if anyone else is seeing strange errors like these, and whether they can be caused by devices that have really low-quality firmware, either custom, or on devices that were not verified by Google. I've not seen your particular ones, but I certainly see odd stuff - like 6 months old versions of my free apps crashing on 1.0 firmware (seemingly G1) as well as on seemingly lab boards. Some of these apps are very much tailored for use ONLY in Sweden, but they still seem to originate from Spain, Russia, China and the like... My best guess is that there is a fair amount of people who just randomly rip apps from the Market and use them to monkey test their hardware/firmware with. Initially I was curious, I've given up to try to make sense of it. Sometimes their extreme test cases are actually somewhat useful - I've caught a few odd states (the last one was the system be unable to select an image - seems unlikely, but...) My few eurocents / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TTS not inheritable?
i have setup a basic TTS class to run for all files in a my app. When I pass items to synthesis speak the app crashes. I have tried many different ways of passing the variable changing returns and what not. I compiles every time but the app still crashes when the synthesis is suppose to occur. The only working solution I have found was to but the TTS engine and synthesis in each class of my application as needed. Is there a work around for this because otherwise I have lots of bulky useless code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-using the Android Call Log / Contacts and sms capabilities.
Hello developers/community. I am making an internet telephony application based on a proprietary protocol which connects to a web server for call setup. As with other telephony applications this app also has three basic requirements: The need for a call log, a contact book and the ability to send/receive messages. One option is for me to develop all these three capabilities from the scratch. Another possibility is to leverage upon the built-in capabilities of android and tie them up to my application using content resolvers and Intents. Let me explain my requirements below, and I welcome your comments regarding their technical feasibility: *A)) Call Log: * I would like to maintain the call log of my application with the android call log. This will make sure that the user has one view of all the calls that were made (cellular or internet). Is there a way to read/write/delete from the call log application from android? I believe this can be done using content resolvers. From the call log, if the user wishes to call back a customer (internet customer in my case) , then I wish to provide the user with an Intent Chooser. If the user selects by application, then the call will be made from my application and not a cellular call. How do I achieve this behavior ? If I listen to the ACTION_CALL intent, will my application be available in the intent chooser ? Or will android try to initiate a cellular call by default? *B)) Contact Book:* * * The customers can save the internet user's address in the contact book. There is an entry of a CUSTOM_PROTOCOL in the contact book of android. That is where the address of the user can be stored who is using my application. We already have choices of Yahoo, Gtalk and Skype in the contact book. Similarly, we can also have a custom protocol entry over there. But this is only half the issue. When the user selects the address of the custom protocol from the contact book, I wish to display a pop-up listing my application (maybe I can listen to the intent which is emitted). Now, if the user selects my application from the pop-up, I will make a call over the internet instead of the cellular world (my broadcast receiver will gain control). Again, I am not sure whether the above is possible and android will display the intent chooser from the contact book if my custom protocol field is selected. *C)) SMS capabilities:* When the user composes a SMS and tries to send it, I wish to intercept the outgoing SMS and provide the user a choice - to send the SMS using my application,or from android's native capabilities (GSM-SMS). I believe it is possible to listen to outgoing messages by registering a content observer on the SMS content resolver URI. However, I would like to know whether an INTENT is fired when the user tries to send a message ? It would make life much easier. Secondly, I want to re-use the android SMS storage for the messages received from my custom protocol over the internet. I wish to write to the android sms database (using its content resolver) for this. Thanks in advance With Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: A Question regarding Android system preferences: Settings.Secure
Any pointers for this question will be really helpful.. Thanks in advance Indodroid On Fri, May 21, 2010 at 11:31 AM, Android Development indodr...@gmail.comwrote: Hello, This is regarding the DATA_ROAMING property given here: http://developer.android.com/reference/android/provider/Settings.Secure.html#DATA_ROAMING What exactly does it mean to enable/disable data roaming ? If the user is roaming in the same access technology (say GSM), then handoffs will take place automatically. In which context is this property used ? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CursorAdapter notifyDataSetChanged doesn't work? What am I doing wrong?
I think for getting this callback, you need to call setNotifyOnChange(true). On 7/2/10, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 1, 2010 at 10:51 PM, Moto medicalsou...@gmail.com wrote: But not sure if design wise is good? Why doesn't notifyDataSetChanged() work? what's the difference on what I just did? requery() reloads the Cursor's data. notifyDataSetChanged() tells an Adapter's listeners that its data has changed. requery() on a Cursor will cause an attached CursorAdapter to call notifyDataSetChanged(), after having loaded in the new data. Calling notifyDataSetChanged() yourself, without actually having changed the data set, will not work. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Persistent Android Activities
What is the meaning of having a persistent activity ? There is a permission that can be used in the manifest: android.permission.PERSISTENT_ACTIVITY Does anyone know of any practical use case of having this permission in the application ? What can be done with it ? Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A Question regarding Android system preferences: Settings.Secure
Hello, This is regarding the DATA_ROAMING property given here: http://developer.android.com/reference/android/provider/Settings.Secure.html#DATA_ROAMING What exactly does it mean to enable/disable data roaming ? If the user is roaming in the same access technology (say GSM), then handoffs will take place automatically. In which context is this property used ? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: javax.xml.bind.annotation.XmlAccessType and Android
http://code.google.com/p/android/issues/detail?id=314 On Fri, Apr 2, 2010 at 10:46 AM, Nik nikhilpatil2...@gmail.com wrote: I'm getting the same error. In a different context though. I'm trying to include java classes created by JAXB's XJC (from XSD to Java) in my project. But the annotations generated by the XJC tool are not supported. Ultimately I want to marshal these classes into XML. Any suggestions? Workarounds? Or am I missing something? On Mar 12, 11:32 pm, mlevin marshall.le...@gmail.com wrote: Hi, I'm attempting to build an Android app that uses Amazon's EC2 API. They provide a JAR file that I can include into my app. The problem is that when I try to use some of their sample code, I get an error in Eclipse thatjavax.xml.bind.annotation.XmlAccessType is needed internally by some class. And when I attempt to add the JARs that contain that class to my project, I get the warning that I can't add these system classes to an Android project. So I take it that Android doesn't support some of this stuff. Any suggestions? I know that this can be done because there's an app on the market called Decaf that does use Amazon's EC2 API successfully. What do I need to add to my project to get this to work? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OutOfMemoryError: how best to transfer large video files into a byte array?
Select a fixed buffer size first. Then start writing the byte array to a file. Once the file size reaches the buffer size configured, copy that file to a temporary location (a temp file). Then transfer this temp file to the web server. Once transferred successfully, make sure to delete this temp file (by calling deleteOnExit() ) when the file was created. To make this work properly, there have to be 2 threads at work - the thread that is writing the byte array to a file and the thread that is doing the heavy duty stuff in the background - copy to the temp file location and finally upload it to a server etc. This heavy duty thread waits on a condition (waits for the file to reach the buffer size configured to start the transfer). I hope this makes sense...just sharing my thoughts aloud. Best Regards Indodroid. On Sat, Apr 10, 2010 at 12:19 AM, Anna Powell-Smith annapowellsm...@googlemail.com wrote: On 9 April 2010 19:35, Anna Powell-Smith annapowellsm...@googlemail.comwrote: On 9 April 2010 18:19, Gubatron gubat...@gmail.com wrote: I suppose when you say FilePart, you mean this org.apache.commons.httpclient.methods.multipart.FilePart I'm thinking along these lines after looking at that API (I haven't tested this) final File theFile = new File(yourFileLargerThan2Mb.ext); //Implement your own PartSource to feed your File PartSource partSource = new PartSource() { //this should return a buffered reader... right? public InputStream createInputStream() { return BufferedInputStream (new FileInputStream(theFile)); } //implement the other methods of the interface public String getFileName() { return theFile.getName(); } public long getLength() { return theFile.length();// although this might be how much is left on the stream, not sure. } } FilePart part = FilePart(theFileName, partSource); then use your part on your multipart request. Thanks. Constructing a FilePart from a File is actually as easy as this, I think - but do you think your method would provide some advantage? File temp_file = new File(Environment.getExternalStorageDirectory(), myfile.gif); FilePart vFile = new FilePart(fileupload, temp_file); As I say, this works for files of 50MB. The only reason I can't use it is that I can't construct a File object from an Android content Uri. I have to use an Android content Uri because that's what the video intent returns. Ah. If I could transform my content Uri into FileInputStream (will have to experiment) then I could use your method. I can convert a content Uri to an InputStream already, so it'll just be getting from an InputStream to a FileInputStream that might be the challenge. I'll experiment. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Configuring a DNS server IP address on android while using 3G
Hello, I wish to configure the IP address of the primary DNS server while using 3G access from an android application. This is because, the DNS server is part of a private infrastructure and I need the application to resolve domain names from this particular DNS server only. For WiFi access, I have found ways to do this (both from the WiFi Settings) and also programatically by using android.permission.WRITE_SETTINGS in my application and then using the System.Settings.WIFI_STATIC_DNS1 and System.Settings.WIFI_STATIC_DNS2 APIs. However, for 3G I have not found any such settings or APIs. How do we configure DNS servers for 3G access? This is an important point, as most 3G radio access systems use their own DNS servers in the infrastructure. Any workarounds? Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Using IPSec on Android
I managed to achieve this. Thanks. Indodroid. On Tue, Feb 9, 2010 at 3:46 PM, Android Development indodr...@gmail.comwrote: Hello, How do I establish IPSec Security Associations on Android ? Is there a standard API for doing so ? Or will I need to issue shell commands to achieve it ? Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using IPSec on Android
Hello, How do I establish IPSec Security Associations on Android ? Is there a standard API for doing so ? Or will I need to issue shell commands to achieve it ? Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: DNS Query
Thanks for this discussion Bob. Based on this discussion, I have implemented a DNS client at the application and tested it out too. It works well. On 2/4/10, Bob Kerns r...@acm.org wrote: Ah, this provides a lot more context -- but not all of it! Normally, this sort of thing is handled through DHCP or similar. I don't know if you have access to the server providing the information -- are you the carrier? To change the DNS resolution policies in any way, will require root access, and have global impact. Do you own these devices? Or are you developing an app for public consumption? The one (nearly) sure-fire way to do this, is to query the DNS server yourself, in the application. The (nearly) is because firewalls can intervene. I would urge you to avoid any sort of temporary change to the global DNS resolution. It's one thing if you have control over the device and pre-configure it for the users. But temporary changes to DNS configuration has a way of going bad when events happen in other than the expected order. And if you get two applications trying to impose THEIR will on an entire platform, it's a formula for chaos. I don't know how DNS resolution is configured on Android, but this may be useful: # getprop | grep dns [net.change]: [net.dnschange] [net.dnschange]: [878] [dhcp.eth0.dns1]: [] [dhcp.eth0.dns2]: [] [dhcp.eth0.dns3]: [] [dhcp.eth0.dns4]: [] [net.dns1]: [10.177.0.34] [net.rmnet0.dns1]: [10.177.0.34] [net.rmnet0.dns2]: [10.165.17.242] [net.dns1.161]: [10.177.0.34] [net.dns2.161]: [10.165.17.242] [net.dns2]: [10.165.17.242] [net.dns1.79]: [10.177.0.34] [net.dns2.79]: [10.165.17.242] [net.dns1.31939]: [] [net.dns2.31939]: [] # If you're connected via wifi, the dhcp.eth0.dns* entries are filled in instead; the above is with Wifi disabled. Still -- and I don't know the 3GPP protocols here, but if they're not deviating too much from how things were designed, any old DNS server should be able to supply you with the information. The DNS server you contact will, based on the domain requested, contact the appropriate DNS server and obtain the information, cache it, and relay it to the requester. Perhaps this is not suitable for this for some reason, but if so, realize the reason it's hard is because 3GPP is doing it wrong -- that is, using tools in ways they weren't intended. Maybe it's all worthwhile; I don't know, I'm just trying to give you helpful context and info, not technical judgments. Fun historical fact: In 39 days (March 15), it will be the 25th anniversary of the very first DNS registration, Symbolics.com. (The domain name was recently purchased). I worked at Symbolics from 1981-1987, so it's an occasion I remember well. On Feb 3, 11:07 pm, Android Development indodr...@gmail.com wrote: Bob, making a DNS query by the application is a standardized procedure of 3GPP (3rd generation partnership project). All Mobile devices need to query a DNS server installed in the VoIP network to find the address of the server which will process their requests. This DNS server is under the control of the VoIP service provider and provides the IP address of the VoIP server. Devices are pre-configured with the domain name of their home network ( atlanta.com for example). They need to find the IP address of the server on that domain by firing a DNS query. The DNS server's IP address is also a configurable parameter in all soft clients. My question was regarding this use case. This procedure is standardized as the DNS/DHCP procedure of discovering the outbound proxy server by the mobile client. With this background, if I need to query a DNS server installed on a given IP address on the network, is it technically feasible ? Or will the operating system automatically resolve the next hop based on the resolv.conf file (if it is configured there) if i try and send a request to atlanta.com? On Wed, Feb 3, 2010 at 10:55 PM, Bob Kerns r...@acm.org wrote: I didn't mean that to be harsh, BTW. Knowing that an approach is out in left field, and why, is useful information. Some of the most useful information you can get, as a beginner, since it narrows the focus of what you have to learn, a lot! On Feb 3, 9:21 am, Bob Kerns r...@acm.org wrote: Then you are doing something VERY strange. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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
Re: [android-developers] Re: DNS Query
What if the application requires to send a query to a DNS server installed at a particular IP address. how do i configure my DNS server in *hosts/**resolv**.**conf from the application ?* *** * On Wed, Feb 3, 2010 at 8:40 PM, Lewske Wada r...@run.sh wrote: Hi Radhika, radhika wrote: Hi All, Am a beginner in this area. I am trying to find out how a DNS query is sent from the android device. Am unable to locate the code. Can someone help me by showing me the code where a DNS query is sent. For example, may be from some application like browser? I believe you simply have to use InetAddress.getByName(String Host) ? Like I did use InetAddress's getLocalHost() in resetConnection() funcion in my local app? : http://run.sh/repos/Runftp/src/sh/run/Runftp/FtpConsoleText.java Anyway the Socket() automatically resolves the hostname when given. Ryu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
Re: [android-developers] Re: DNS Query
Bob, making a DNS query by the application is a standardized procedure of 3GPP (3rd generation partnership project). All Mobile devices need to query a DNS server installed in the VoIP network to find the address of the server which will process their requests. This DNS server is under the control of the VoIP service provider and provides the IP address of the VoIP server. Devices are pre-configured with the domain name of their home network ( atlanta.com for example). They need to find the IP address of the server on that domain by firing a DNS query. The DNS server's IP address is also a configurable parameter in all soft clients. My question was regarding this use case. This procedure is standardized as the DNS/DHCP procedure of discovering the outbound proxy server by the mobile client. With this background, if I need to query a DNS server installed on a given IP address on the network, is it technically feasible ? Or will the operating system automatically resolve the next hop based on the resolv.conf file (if it is configured there) if i try and send a request to atlanta.com? On Wed, Feb 3, 2010 at 10:55 PM, Bob Kerns r...@acm.org wrote: I didn't mean that to be harsh, BTW. Knowing that an approach is out in left field, and why, is useful information. Some of the most useful information you can get, as a beginner, since it narrows the focus of what you have to learn, a lot! On Feb 3, 9:21 am, Bob Kerns r...@acm.org wrote: Then you are doing something VERY strange. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
Re: [android-developers] Development on sip
your sip uri syntax is wrong. it should be sip:andr...@ip:port (u...@host:port format). On Mon, Feb 1, 2010 at 12:15 PM, Tony jituo...@gmail.com wrote: Is there anyone developing sip (libosip2) related Apps on android platform,I have tried my best to test my sip App , but finally failed as i didn't know how to spell the sip URIs, I tested the app on two emulators, one of them was used to be a server.and the other was used as a client. both of them can listening to each other successfully, but also both of them can not send message to each other , I set the sip URIs just as sip:android:10.0.2.2:5060 and excuted commmand redir add udp:5060:5060, is is right??? anyone experienced such case ??Help me. thank 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.comandroid-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
Re: [android-developers] Re: sdk setup.exe and windows 7
hi Xavier, These issues on the tracker are related to this probelem: http://code.google.com/p/android/issues/detail?id=3917 http://code.google.com/p/android/issues/detail?id=3917#c14and http://code.google.com/p/android/issues/detail?id=6041 On Sat, Jan 30, 2010 at 4:17 AM, Xavier Ducrohet x...@android.com wrote: You really shouldn't have to do that at all. If you have problem with SDK Setup.exe, it would be nice to launch it from the command line to see what the error output. We're improving this for the next version of the tools. Xav On Fri, Jan 29, 2010 at 2:43 AM, Android Development indodr...@gmail.com wrote: Set the ANDROID_SWT environment variable to the folder that contains the swt.jar file. It is located in the \tools\lib\x86_64 folder of your SDK installation. Best Regards Indodroid. On Thu, Jan 28, 2010 at 12:01 PM, Lambda Developer lambda.develo...@gmail.com wrote: hi, i have the same problem as Andrew Green. I am not being able to run android sdk setup.exe! java is properly installed on my windows 7. (latest version of JDK) what i think i have done is modified the environment variable PATH, and probably that is causing the trouble. i would be glad if someone could help me out! thanking you in advance, lambda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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.comandroid-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
[android-developers] Re: Picking a contact and returning to the parent activity.
Ok, i am able to start the Contacts application...and I pick a contact from there. Now this operation succeeds too (-1 Result Code). I use the following code: Intent i = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(i, PICK_CONTACT); I get a callback in the onActivityResult method which provides me with the data as an Intent as shown below: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if(resultCode==RESULT_OK) System.out.println(a contact was picked..); Uri uri = data.getData(); System.out.println(uri); } I want to access the details of the contact that was picked (Display name, phone numbers etc) . I get a URI from the data received from the Contacts application. What does this URI point to ? Will i need to execute a DB query to get the actual user data for the contact ? Kindly guide.. Help is appreciated. Thanks in advance Indodroid. On Fri, Jan 29, 2010 at 9:15 AM, Android Development indodr...@gmail.comwrote: Hello, I wish to re-use the Contacts application in a way to enable the user to pick a contact and return it to the parent activity (my application's activity). For achieving this, I want to inquire about the kind of Intent that will be needed to launch the contacts application. Intent i = new Intent(Intent.ACTION_GET_CONTENT, ???); startActivityForResult(.); What should be the second argument here ? In the deprecated Contacts API, I could use the following snippet, but not sure about ContactsContract: Intent i= new Intent(Intent.ACTION_GET_CONTENT,People.CONTENT_URI); startActivityForResult(i, reqCode); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: sdk setup.exe and windows 7
Set the ANDROID_SWT environment variable to the folder that contains the swt.jar file. It is located in the \tools\lib\x86_64 folder of your SDK installation. Best Regards Indodroid. On Thu, Jan 28, 2010 at 12:01 PM, Lambda Developer lambda.develo...@gmail.com wrote: hi, i have the same problem as Andrew Green. I am not being able to run android sdk setup.exe! java is properly installed on my windows 7. (latest version of JDK) what i think i have done is modified the environment variable PATH, and probably that is causing the trouble. i would be glad if someone could help me out! thanking you in advance, lambda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Re: Picking a contact and returning to the parent activity.
OkI have managed to do it. For the benefit of others who may be looking for the same thing, i am pasting the code below. In this code, i launch the contacts application, the user picks a contact and i display the username of the picked contact: import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; public final class ContactManager extends Activity { private final int PICK_CONTACT =1; /** * Called when the activity is first created. Responsible for initializing the UI. */ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.contacts_manager); Intent i = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(i, PICK_CONTACT); } private Cursor getContact(Uri uri) { // Run query Cursor c = managedQuery(uri, null, null, null, null); return c; } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Cursor c = getContact(data.getData()); if (c.moveToFirst()) { String name = c.getString(c.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME)); System.out.println(name); } } } Best Regards Indodroid On Fri, Jan 29, 2010 at 4:11 PM, Android Development indodr...@gmail.comwrote: Ok, i am able to start the Contacts application...and I pick a contact from there. Now this operation succeeds too (-1 Result Code). I use the following code: Intent i = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(i, PICK_CONTACT); I get a callback in the onActivityResult method which provides me with the data as an Intent as shown below: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if(resultCode==RESULT_OK) System.out.println(a contact was picked..); Uri uri = data.getData(); System.out.println(uri); } I want to access the details of the contact that was picked (Display name, phone numbers etc) . I get a URI from the data received from the Contacts application. What does this URI point to ? Will i need to execute a DB query to get the actual user data for the contact ? Kindly guide.. Help is appreciated. Thanks in advance Indodroid. On Fri, Jan 29, 2010 at 9:15 AM, Android Development indodr...@gmail.comwrote: Hello, I wish to re-use the Contacts application in a way to enable the user to pick a contact and return it to the parent activity (my application's activity). For achieving this, I want to inquire about the kind of Intent that will be needed to launch the contacts application. Intent i = new Intent(Intent.ACTION_GET_CONTENT, ???); startActivityForResult(.); What should be the second argument here ? In the deprecated Contacts API, I could use the following snippet, but not sure about ContactsContract: Intent i= new Intent(Intent.ACTION_GET_CONTENT,People.CONTENT_URI); startActivityForResult(i, reqCode); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Picking a contact and returning to the parent activity.
Hello, I wish to re-use the Contacts application in a way to enable the user to pick a contact and return it to the parent activity (my application's activity). For achieving this, I want to inquire about the kind of Intent that will be needed to launch the contacts application. Intent i = new Intent(Intent.ACTION_GET_CONTENT, ???); startActivityForResult(.); What should be the second argument here ? In the deprecated Contacts API, I could use the following snippet, but not sure about ContactsContract: Intent i= new Intent(Intent.ACTION_GET_CONTENT,People.CONTENT_URI); startActivityForResult(i, reqCode); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding ContactsContract
Hello, I wanted to inquire about the ContactsContract API family. I have one requirement: 1. I wish to store the Presence Status of the user which i receive over a custom protocol. I wish to re-use these APIs for this purpose: http://developer.android.com/reference/android/provider/ContactsContract.StatusUpdates.html and http://d.android.com/reference/android/provider/ContactsContract.StatusColumns.html Will i be able to see the updated presence status for a given user when i launch the contacts application in android after updating the user's status? Or will I need to write my own GUI to display it? Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding network connectivity on Android.
Thanks for the replies Mark. So, this means that the PDP context establishment and APN resolution is done by android OS automatically ? I simply have to re-use it at the application. On Mon, Jan 25, 2010 at 8:45 PM, Mark Murphy mmur...@commonsware.comwrote: Android Development wrote: 1. I cannot find a way to initiate a GPRS connection without having to use the browser. I want to send packets transparently. Just use sockets, or HttpClient, or whatever. You do not need to initiate a GPRS connection. 2. Is there no way for starting a GPRS connection, like the WiFiManager provides for WiFi connections? Just use sockets, or HttpClient, or whatever. You do not need to start a GPRS connection, as it is always on if it is available (i.e., not somehow disabled by the user) and WiFi is not active. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Re: Regarding network connectivity on Android.
Any feedback on this friends ? On Sun, Jan 24, 2010 at 11:11 AM, Android Development indodr...@gmail.comwrote: Hello, Problem Statement: -- I wish to achieve the following: 1. Create a GPRS connection from my application and get the assigned IP address. 2. Send and Receive data through this connection. I can find whether GPRS is in use using TelephonyManager's getNetworkType ( ) call. I can use the ConnectivityManager to find out the information on the active networks. However, my doubts are listed below: Doubts: 1. I cannot find a way to initiate a GPRS connection without having to use the browser. I want to send packets transparently. 2. Is there no way for starting a GPRS connection, like the WiFiManager provides for WiFi connections? 3. There is a method by the namegetSubtypehttp://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype()() in ConnectivityManager. Is the integer subtype returned here conform to the network type constant values of TelephonyManager ? If so, kindly confirm. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding network connectivity on Android.
Hello, Problem Statement: -- I wish to achieve the following: 1. Create a GPRS connection from my application and get the assigned IP address. 2. Send and Receive data through this connection. I can find whether GPRS is in use using TelephonyManager's getNetworkType ( ) call. I can use the ConnectivityManager to find out the information on the active networks. However, my doubts are listed below: Doubts: 1. I cannot find a way to initiate a GPRS connection without having to use the browser. I want to send packets transparently. 2. Is there no way for starting a GPRS connection, like the WiFiManager provides for WiFi connections? 3. There is a method by the namegetSubtypehttp://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype()() in ConnectivityManager. Is the integer subtype returned here conform to the network type constant values of TelephonyManager ? If so, kindly confirm. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Creating dialogs from a thread
You can also spawn an AsyncTask from the UI thread. Whenever it needs to show a dialog, this task can call publishProgress() method..that automatically runs on the UI Thread and the dialog can be shown in the onProgressUpdate method. On Fri, Jan 22, 2010 at 3:41 AM, Kevin Duffey andjar...@gmail.com wrote: Ah yes Streets.. that was what I was missing.. been a while since I dealt with UI threads. It's not that you have to run a thread on the UI.. you run a Runnable. The Runnable just defines run() method.. I forget now but I think basically it allows the UI thread to just call run() on your Runnable you pass in to run your UI code.. but it allows you to access the UI thread from outside of that thread (in another thread) so that any UI stuff you need to access or do is possible.. since it will now run on the UI thread. The reason you need to do this is that in a separate thread, and code you use that expects to use the UI in some way, will not be able to access the UI from a different thread. There is quite a bit of code that uses something like Thread.getContextLoader() and if that call is made while in a separate thread, it will fail if it's expecting to do some UI stuff. When you put that Runnable wraper of your UI code on the UI thread, the UI is available. On Thu, Jan 21, 2010 at 2:01 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Note that 'post' and 'runOnUiThread' takes a Runnable and it should *not* be a Thread (although that implements Runnable as well)! (Mis) using a Thread for this is not good. Just use a Runnable. Create a new instance of a Runnable and implement its 'public void run ()' method (see my example code in my previous post). On Jan 21, 4:50 pm, TreKing treking...@gmail.com wrote: On Thu, Jan 21, 2010 at 3:30 PM, Dirk Vranckaert dirkvrancka...@gmail.comwrote: It seems your solution does not work either. Um ... it should, I've used this technique repeatedly. Can you post the code you're using? As long as I'm doing it in a thread it doesn't work. Well, it depends on how you're running the thread. If you're posting it to the runOnUiThread() function, it should work. If you're starting it with Thread.start(), then yeah, that won't work. Again, some code would clarify. Altough what I tried next was setting the error message for the user in my catch clause. And right after the thread finished I handled the showing of the errors based on wheater some error message was set or not! I'm not sure I follow here. Thx for your help! (If you get me some advanced explanation on why dialogs cannot be created from within a thread plz let me know!) Probably because of the complexities of ensuring thread safety. If you could update the UI from any thread, you could run into various threading issues (deadlocks, race conditions, etc). If they core framework were designed to support this it would introduce more complexity and overhead to the system. Just a guess, but again, this is pretty standard behavior in GUI systems, so it's really something that's just accepted. ----- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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.comandroid-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
[android-developers] Understand Device deep sleep behavior and its affect on the application.
Hello, When the device goes to sleep, any activity that was in the foreground is paused. It is like someone has launched a black screen activity on top. Is this understanding correct ? I have some doubts on device sleep impact during the following scenarios: 1. If my device goes to sleep just when some AsyncTask was executing, what will happen ? Will the task execution stop and wait till the device turns back on ? Or will execution go on as usual ? Same question for Android Handlers. As per my understanding, when there is no Wake Lock, then the CPU will stop..and so will all scheduling services that use it. 2. The same question, if i have spawned a custom worker thread which was active..and the device slept. What will be the status of my worker thread ? 3. If the application had bound itself to a network interface (suppose an IP address obtained due to a WiFi connection)..and the device goes to sleep. Will this connection be lost if I do not take a WiFiLock ? 4. Affect of sleep behavior on an android service that is currently doing some work (downloading something or playing music) ? 5. Is it possible to test the deep sleep behavior using the Emulator to do some sanity testing for my application ? I could not find a way to do so. 6. In some of the use cases that i have, the screen can be turned off...however i want the CPU running for sometime after the screen is dark. For such scenarios, is the PARTIAL_WAKE_LOCKhttp://developer.android.com/reference/android/os/PowerManager.html#PARTIAL_WAKE_LOCK the best approach for me? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fetch IMSI or detect SIM change?
Did you get a solution to this issue? I also need the MSIN. On Mon, Nov 23, 2009 at 3:24 PM, vasanthmatrix vasanth.kanaka...@gmail.comwrote: Hi Roman, I'm trying to get the IMSI using TelephonyManager.getSubscriberId(), but all I'm getting is MCC(Mobile Country Code ),MNC(Mobile Network Code ) and not MSIN(Mobile Network Code ). Can you please help me with fetching the MSIN. Thanks, Vasanth On Oct 30, 11:50 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: Use TelephonyManager getSubscriberId() to get the IMSI Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 29, 10:59 pm, javame_android su...@saltriver.com wrote: Hi, I want to fetch the IMSI number so that I could keep it in memory and detect whenever SIM card changes. Is it actually possible? Is there anyone who can guide me a bit? Hope to get a positive reply soon. Regards Sunil- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Using the AlarmManager as a timing service.
Hello, I wanted to ask a question regarding the Alarm Manager. I have a requirements of setting long running timers in my application. The minimum duration for my timer is 1 hour...and the maximum may be for 4-5 days. This timer is supposed to run in the background, and when it fires/expires, i have to show something on the GUI. The timer can be re-scheduled once it fires based on user action. What is the best approach for scheduling such long running timers ? Should i make use of the Alarm Manager ? Or will it be an overkill ? As far as i know, alarms are retained even if the device goes to sleep and they wake up the device when the alarm goes off. I am thinking of using a simple Java TimerTask as an alternative to setting an alarm: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html. But i am not sure what will happen to the timer task if the device went to sleep while the task was running. What is the best approach here ? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using the AlarmManager as a timing service.
Yes Mark. The GUI wont be running when the alarm goes off. On receipt of the alarm, i want to start an activity. So, i think i will need to use alarm manager as the choice, as i want the device to wake up when the alarm goes off. On 1/19/10, Mark Murphy mmur...@commonsware.com wrote: Interesting Mark... is there no way to have something wake/start an app up when a condition occurs? Define condition. The OP was inquiring about time, which I would not call a condition. I was reading the blog on Screebl, it seemed like with the Location support they can activate based on the location or other conditions of the device. I wasn't under the impression that app was running all the time.. or that it might be a service running in the background? I do not know off the top of my head if and when GPS position changes will wake up the device. On a slightly different note, if you do run a service all the time, that basically either waits for a timer, or waits for some condition, such as a GPS location, does that drain battery much? The key to battery life is that you want the phone in sleep mode. Hence, depending on how the service is waiting, it may need to force the device to stay awake, which is awful for battery life. If you are interested in this subject, you really should watch Jeff Sharkey's Coding for Life...Battery Life, That Is presentation from the 2009 Google I/O conference. There's a YouTube video of it out there. I've not looked into the Location api, but it sounded like Location would send out a message that a service could listen for.. as if you could say when the location of this device is 'around' this location.. call me. Something like that? That certainly exists, but I have not experimented with it recently, let alone with the device in sleep mode. Again, the OP was inquiring about timers, so my reply was focused on timers. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to access USIM and ISIM
You should have the ISIM/USIM application loaded on your smart card for you to read it. On Wed, Nov 11, 2009 at 11:53 PM, neeloor2004 neeloor2...@googlemail.comwrote: Hi Is there any API to access ISIM ? If not how can I get it tthrough RIL, Please provide example code Neeloor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
Re: [android-developers] Activity and Interface
For passing stuff from Activity-A to Activity-B, use a bundle and pass it in the intent while starting the target activity. Intent intent = new Intent(ActivityA.class, ActivityB.class); intent.putExtra(name, myName); intent.putExtra(age, 24); startActivity(intent); From the target activity, retrieve the bundle and access the passed data. Bundle extras = intent.getExtras(); //get your stuff from the bundle. On Fri, Nov 20, 2009 at 4:52 AM, fala70 fal...@gmail.com wrote: I've a problem to solve about pass reference between objects Activity. Suppose follow situation with 3 class and 1 interface: I don't know how pass the reference of MyEvents (_engine) to ActivityB from ActivityA::StartActivityB() public interface MyEvents { public abstract void MakeThis(); } public class Engine implements Runnable, MyEvents { void Init(){ _th = new Thread(this); _th.start(); } public void run() { } void MakeThis(){ ... } } public class ActivityA extends Activty { Engine _engine; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); _engine = new Engine(); _engine.Init(); // start thread } void StartActivityB(){ Intent intent = new Intent(ActivityA.this, ActivityB.class); startActivity(intent); } } public class ActivityB extends Activty { MyEvents _myEvent; ActivityB(MyEvents myEvent){ _myEvent = myEvent; } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); _myEvent.MakeThis(); } } 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.comandroid-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
[android-developers] Re: Initiating a GPRS connection
Really need to find a way to do this guys. Help really appreciated. On Thu, Jan 7, 2010 at 6:13 PM, Android Development indodr...@gmail.comwrote: Hello, Any feedback on how to achieve this task? On 1/4/10, Android Development indodr...@gmail.com wrote: Hello, If I wish to initiate a GPRS data connection programatically through a configured access point on the device, how do I go about it ? Any ideas are appreciated. Thanks in advance Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Initiating a GPRS connection
Hello, Any feedback on how to achieve this task? On 1/4/10, Android Development indodr...@gmail.com wrote: Hello, If I wish to initiate a GPRS data connection programatically through a configured access point on the device, how do I go about it ? Any ideas are appreciated. Thanks in advance Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Broadcast Receiver works sometimes/sometimes not.
Hello, I wish to listen to android.intent.action.BOOT_COMPLETED. However i am not getting the broadcast intent, if i specify com.test.BootBroadcastReceiver in the manifest. When i change this value to simply BootBroadcastReceiver, then i am getting the broadcast intent. receiver android:name=BootBroadcastReceiver android:enabled=true intent-filter action android:name=android.intent.action.BOOT_COMPLETED / /intent-filter /receiver My package in the manifest file is: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.test and the BootBroadcastReceiver resides in this package. What is the reason behind this ? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding port re-directions on the android emulator.
Hello devs, I had the following query: The IP address of my development machine is 192.168.128.10. This machine is connected to a LAN. I wish to redirect all incoming packets on IP 192.168.128.10 and port 5060 to the emulator instance that runs on 10.0.2.15 For doing so, I have issued the following command: *redir add udp:5060:5060* Is this configuration sufficient ? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 port re-directions on the android emulator.
Thank you Upendra for the prompt reply. I will test this out now. Best Regards On Mon, Jan 4, 2010 at 2:30 PM, Upendra Chintala upendra.chint...@gmail.com wrote: Yes, that should be enough. Make sure that your doing this redirection on the correct emulator instance when you are running multiple emulator instances. Thanks, Upendra On Mon, Jan 4, 2010 at 2:20 PM, Android Development indodr...@gmail.comwrote: Hello devs, I had the following query: The IP address of my development machine is 192.168.128.10. This machine is connected to a LAN. I wish to redirect all incoming packets on IP 192.168.128.10 and port 5060 to the emulator instance that runs on 10.0.2.15 For doing so, I have issued the following command: *redir add udp:5060:5060* Is this configuration sufficient ? Thanks in advance Best Regards Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Upendra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Initiating a GPRS connection
Hello, If I wish to initiate a GPRS data connection programatically through a configured access point on the device, how do I go about it ? Any ideas are appreciated. Thanks in advance Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Listening to a video stream and rendering it on the screen
Hello Devs Any ideas regarding inline ? On Thu, Dec 31, 2009 at 12:19 PM, Android Development indodr...@gmail.comwrote: Hello, *My Cases:* 1. I have a RTP stack, using which i am receiving raw audio and video streams from the network. 2. Similarly, I will be sending audio and video streams towards the network using the same RTP stack. *Following are my questions/doubts:* For working with audio formats to realize cases-1 and 2, I can use the AudioTrack and AudioRecord APIs to play/record audio streams. However, for working with video formats to realize cases-1 and 2, are there any alternatives available similar to the Audio APIs ? If I receive a raw video stream from the network through my stack, and i wish to play it in real-time, how do I go about it ? Can i use the MediaController and MediaPlayer to render the video on a custom VideoRenderer activity (GUI) ? For video transmission, I am thinking of capturing the preview stream from the camera and transmitting it as Live video through my stack. *Problem Summary:* In short, I can find ways to encode and decode audio streams in android as well as encode video from the camera source. However, I dont know how to decode incoming video streams on android using its APIs. Inputs and suggestions appreciated and will be very helpful. If there is anything above that is conceptually incorrect, please let me know. Best Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 and VOIP
The biggest problem for supporting SIP based VoIP on android is the capability of the android media framework. As for example, if you refer to this table: http://developer.android.com/guide/appendix/media-formats.html..most of the media encoders are not present. There is no use for having only a decoder for codecs, as in a SIP based VoIP session, you will need both the encoder and the decoder for bidirectional SENDRECV streaming of media. Most SIP clients use SDP as a means of codec negotiation. Going by that table, we can only use AMR-NB for voice and H.263 for video in the SDP offer for a SIP based session. As a workaround, sipdroid uses its own G.711 and H.264 codec by making use of a native library and JNI calls. For SIP/VoIP, playing from a static resource on the device is hardly a requirement. On Mon, Jan 4, 2010 at 9:03 AM, JP joachim.pfeif...@gmail.com wrote: I've played with sipdroid a few months back. Like two minutes, because, as you found, it's not much more than a static front end of a fixed provider. Kindof useless. Basic UI aside, from memory, there were also plenty of elements missing to make it a viable SIP client. On Jan 2, 7:10 am, Ricardo Martins rpopp...@gmail.com wrote: The problem with sipdroid is that it's tied to pabxes.org. If you want to use on your local sip pbx (asterisk) you can't do it. jotobjects escreveu: Where was the announcement or rumor onVOIPfor google voice on android? Also, there areVOIPproducts using sipdroid that supposedly do this now. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
Re: [android-developers] Re: J2EE client on Android
Why don't you invoke some web service from the client which in turn talks to your EJB ? On Thu, Dec 3, 2009 at 6:33 AM, Bruce Xia bruce.xi...@gmail.com wrote: What I was trying to do is really to have an app client who can talk to EJB on server side. This is simply done by adding @EJB annotator in JEE but in Anroid package the ejb package is not included. This can probably be done thru RMI but if Android has native support it would be great. IF you have any example code for this or JMS client it would be helpful. On Wed, Dec 2, 2009 at 10:56 PM, Charlie Collins charlie.coll...@gmail.com wrote: Depends what you mean by J2EE client. A client could be just a web browser (Servlets and JSP are part of the JEE spec). You might mean more along the lines of a SOAP or JMS client or such though (which also can be done, not that they *should* be done, but can be). You need to clarify this quite a bit before anybody can really try to help you. On Dec 2, 2:55 am, Bruce Xia bruce.xi...@gmail.com wrote: is there a way to port or implement a J2EE client on android? Does anybody have example code please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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.comandroid-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
Re: [android-developers] Re: Regarding Audio and Video send/receive on Android.
Thanks Piyush.. I was using this framework for RTP handling as a workaround ! On Wed, Dec 30, 2009 at 2:00 PM, piyushn piyushn...@gmail.com wrote: you can use JRTP open source framework for RTP in android. https://jrtp.dev.java.net/ On Dec 29, 9:15 am, Android Development indodr...@gmail.com wrote: Any thoughts friends? On 12/28/09, Android Development indodr...@gmail.com wrote: Hello, Android provides a use-friendly API for playing and handling media (audio/video). However, I have the following requirements which i wish to realize with this framework : 1. My requirement is to have knowledge of the ports that the android media framework opens and uses for sending/receiving media streams. I use this information for signaling on the Session Description Protocol (SDP) that i add as a payload to SIP. Is it possible for me to get this information in the form of a RTP session from the framework ? (ports and address combination). *Use Case for this requirement:* If I initiate a multimedia call towards a peer, I will need to open my audio and video ports and start streaming media once the signaling is complete and successful. For successful streaming, the remote end needs to have knowledge of the ports I have opened for media as the streams are bi-directional and I will also need to receive media from the remote end.(sendrecv in SDP) . This is for the outgoing call. Similarly, for an incoming call, once the signaling succeeds, I will need to receive audio/video streams from the remote end and play them on the device (the remote end will send media to the ports that I had advertised in the SDP payload offer). 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.comandroid-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
[android-developers] Listening to a video stream and rendering it on the screen
Hello, *My Cases:* 1. I have a RTP stack, using which i am receiving raw audio and video streams from the network. 2. Similarly, I will be sending audio and video streams towards the network using the same RTP stack. *Following are my questions/doubts:* For working with audio formats to realize cases-1 and 2, I can use the AudioTrack and AudioRecord APIs to play/record audio streams. However, for working with video formats to realize cases-1 and 2, are there any alternatives available similar to the Audio APIs ? If I receive a raw video stream from the network through my stack, and i wish to play it in real-time, how do I go about it ? Can i use the MediaController and MediaPlayer to render the video on a custom VideoRenderer activity (GUI) ? For video transmission, I am thinking of capturing the preview stream from the camera and transmitting it as Live video through my stack. *Problem Summary:* In short, I can find ways to encode and decode audio streams in android as well as encode video from the camera source. However, I dont know how to decode incoming video streams on android using its APIs. Inputs and suggestions appreciated and will be very helpful. If there is anything above that is conceptually incorrect, please let me know. Best Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Audio and Video send/receive on Android.
Hello, Android provides a use-friendly API for playing and handling media (audio/video). However, I have the following requirements which i wish to realize with this framework : 1. My requirement is to have knowledge of the ports that the android media framework opens and uses for sending/receiving media streams. I use this information for signaling on the Session Description Protocol (SDP) that i add as a payload to SIP. Is it possible for me to get this information in the form of a RTP session from the framework ? (ports and address combination). *Use Case for this requirement:* If I initiate a multimedia call towards a peer, I will need to open my audio and video ports and start streaming media once the signaling is complete and successful. For successful streaming, the remote end needs to have knowledge of the ports I have opened for media as the streams are bi-directional and I will also need to receive media from the remote end.(sendrecv in SDP) . This is for the outgoing call. Similarly, for an incoming call, once the signaling succeeds, I will need to receive audio/video streams from the remote end and play them on the device (the remote end will send media to the ports that I had advertised in the SDP payload offer). Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding Audio and Video send/receive on Android.
Any thoughts friends? On 12/28/09, Android Development indodr...@gmail.com wrote: Hello, Android provides a use-friendly API for playing and handling media (audio/video). However, I have the following requirements which i wish to realize with this framework : 1. My requirement is to have knowledge of the ports that the android media framework opens and uses for sending/receiving media streams. I use this information for signaling on the Session Description Protocol (SDP) that i add as a payload to SIP. Is it possible for me to get this information in the form of a RTP session from the framework ? (ports and address combination). *Use Case for this requirement:* If I initiate a multimedia call towards a peer, I will need to open my audio and video ports and start streaming media once the signaling is complete and successful. For successful streaming, the remote end needs to have knowledge of the ports I have opened for media as the streams are bi-directional and I will also need to receive media from the remote end.(sendrecv in SDP) . This is for the outgoing call. Similarly, for an incoming call, once the signaling succeeds, I will need to receive audio/video streams from the remote end and play them on the device (the remote end will send media to the ports that I had advertised in the SDP payload offer). 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] Re: Regarding Audio and Video send/receive on Android.
Should the possibility of handling real-time audio and video streams by the application be a part of the roadmap for Android? This feature can be incorporated as an extension to the existing Media framework. Why I request for this feature, because this is the most basic requirement of any telephony application installed on Android that needs to put across a simple voice/video call. For now, I have managed a work-around for achieving this. But having an API at the framework layer would have greatly simplified development. Any feedback from the *Google team* on this feature request is appreciated. I can open an issue if needed. I am providing some practical applications that can be developed if this feature is available to support the above feature request: *1. **Customer Care Troubleshooting Application:* * * The user can directly connect to a customer care representative and explain their problem to the representative or even show the product under consideration by simply pointing their mobile device towards the product. This will significantly simplify and enhance the level of support the customer gets for their product. *2. Security/ Intelligence applications*: Security agencies in a corporate/government setup can establish a video call to a data center and stream live videos from their mobile handset cameras. *3. Remote learning:* Developing countries can use a remote learning application that uses a white board coupled with audio and video to impart eduction to children in remote areas. *4. Mobile Advertising: * Telecom operators currently provide Ringback tone applications to subscribers. The ringback is network generated, and controlled by a CRBT (Colored RingBack Tone) server. Telecom operators can offer their subscribers extra pre-paid credit if they agree to watch multimedia advertisements as a ringback every time an incoming call is received. These Ads can be rendered by an application that resides locally on the device. *5. Sports applications:* Football and Baseball matches can be streamed to the device in case the user happens to be on the move while the match is on. There will be no need for a TV tuning chip on the device for achieving this. I hope the feature request makes sense. Best Regards.. On Tue, Dec 29, 2009 at 10:02 AM, hongki park parkhongki.spr...@gmail.comwrote: I think your request is not supported at the framework layer. under the framework media. 2009/12/29 Android Development indodr...@gmail.com Any thoughts friends? On 12/28/09, Android Development indodr...@gmail.com wrote: Hello, Android provides a use-friendly API for playing and handling media (audio/video). However, I have the following requirements which i wish to realize with this framework : 1. My requirement is to have knowledge of the ports that the android media framework opens and uses for sending/receiving media streams. I use this information for signaling on the Session Description Protocol (SDP) that i add as a payload to SIP. Is it possible for me to get this information in the form of a RTP session from the framework ? (ports and address combination). *Use Case for this requirement:* If I initiate a multimedia call towards a peer, I will need to open my audio and video ports and start streaming media once the signaling is complete and successful. For successful streaming, the remote end needs to have knowledge of the ports I have opened for media as the streams are bi-directional and I will also need to receive media from the remote end.(sendrecv in SDP) . This is for the outgoing call. Similarly, for an incoming call, once the signaling succeeds, I will need to receive audio/video streams from the remote end and play them on the device (the remote end will send media to the ports that I had advertised in the SDP payload offer). 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.comandroid-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.comandroid-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
Re: [android-developers] Regarding SharedPreferences and my use-case.
Thanks for the clarifications Dianne. On Sat, Dec 26, 2009 at 11:56 PM, Dianne Hackborn hack...@android.comwrote: On Fri, Dec 25, 2009 at 10:14 PM, Android Development indodr...@gmail.com wrote: 1. Are these preferences shared across android applications or only within the given application ? I saw a note in the documentation that read: Note: currently this class does not support use across multiple processes. This will be added later. It is entirely per-application. This comment is in reference to accessing it from multiple processes in your application, if you do that. So i assume that this is not possible (across application interaction) but might be made possible in future releases ? Shared preferences are entirely by definition owned by the application, and will never be available to other applications. 2. Are there any best practices on what should be inserted in the SharedPreferences (if any) from a performance perspective (fast lookups) ? As little as possible? Not sure what else you are looking for here. The less there is, the faster it will be. 3. Is the data stored in SharedPreferences secure ? Can I store passwords, license keys etc in it ? They are stored on disk without encryption, but under your uid. You can decide how comfortable you are with the things you are storing. 4. Shared Preferences data becomes persistent once committed. What is the persistence scope ? Is the data persistent across application re-start ? It is persistent until the application's persistent data is erased -- i.e., device wiped, or app and data uninstalled. -- 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.comandroid-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
Re: [android-developers] A question regarding AsyncTasks
instance here is the magic word. On Tue, Dec 22, 2009 at 12:49 AM, Frank Weiss fewe...@gmail.com wrote: It was clear to me that the documentation meant the instance of AsyncTask cannot be executed again. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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
[android-developers] Regarding SharedPreferences and my use-case.
Hello, Shared Preferences are accessible to all clients (a single instance of the preferences). I wanted to understand the following: 1. Are these preferences shared across android applications or only within the given application ? I saw a note in the documentation that read: Note: currently this class does not support use across multiple processes. This will be added later. * * So i assume that this is not possible (across application interaction) but might be made possible in future releases ? 2. Are there any best practices on what should be inserted in the SharedPreferences (if any) from a performance perspective (fast lookups) ? 3. Is the data stored in SharedPreferences secure ? Can I store passwords, license keys etc in it ? Best Regards and Wishes for the New Year... Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding SharedPreferences and my use-case.
PS: forgot to add one more question to the trailing mail: 4. Shared Preferences data becomes persistent once committed. What is the persistence scope ? Is the data persistent across application re-start ? On Sat, Dec 26, 2009 at 11:44 AM, Android Development indodr...@gmail.comwrote: Hello, Shared Preferences are accessible to all clients (a single instance of the preferences). I wanted to understand the following: 1. Are these preferences shared across android applications or only within the given application ? I saw a note in the documentation that read: Note: currently this class does not support use across multiple processes. This will be added later. * * So i assume that this is not possible (across application interaction) but might be made possible in future releases ? 2. Are there any best practices on what should be inserted in the SharedPreferences (if any) from a performance perspective (fast lookups) ? 3. Is the data stored in SharedPreferences secure ? Can I store passwords, license keys etc in it ? Best Regards and Wishes for the New Year... Indodroid. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A question regarding AsyncTasks
Hello, In the documentation, I read that it is not possible for executing 2 Async Tasks. If execute is called again, it should throw an exception. The following is given under the heading of Threading Rules, and i quote: The task can be executed only once (an exception will be thrown if a second execution is attempted.) I wish to understand the meaning of this statement. Does this mean, that if i try and execute the same task twice (concurrently) when the first execution of the task was still going on...an exception will be thrown ? Will i need to wait for the completion of the first task, before i spawn a second task ? A possible use case: The user wishes to download a set of files. He clicks on the download button by providing the URL. When the first download is still going on, he wishes to download another file and provides another URL. Both these user actions are serviced by a DownloadTask, that extends the AysncTask. If i wish to change this default behavior, is there a configuration option ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A question regarding AsyncTasks
Thanks for the prompt response Agus. So, this means that the documentation needs to be updated ? On Mon, Dec 21, 2009 at 4:09 PM, Agus agus.sant...@gmail.com wrote: No you don't wait for the 1st to finish, just create another instance of AsyncTask. The implementation of AsyncTask uses pooled threads On Mon, Dec 21, 2009 at 2:23 AM, Android Development indodr...@gmail.comwrote: Hello, In the documentation, I read that it is not possible for executing 2 Async Tasks. If execute is called again, it should throw an exception. The following is given under the heading of Threading Rules, and i quote: The task can be executed only once (an exception will be thrown if a second execution is attempted.) I wish to understand the meaning of this statement. Does this mean, that if i try and execute the same task twice (concurrently) when the first execution of the task was still going on...an exception will be thrown ? Will i need to wait for the completion of the first task, before i spawn a second task ? A possible use case: The user wishes to download a set of files. He clicks on the download button by providing the URL. When the first download is still going on, he wishes to download another file and provides another URL. Both these user actions are serviced by a DownloadTask, that extends the AysncTask. If i wish to change this default behavior, is there a configuration option ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-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.comandroid-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
[android-developers] Android tracing gives me errors: Please help.
Hello, I created a SD card image and mounted it to the emulator. I could see it mounted on the emulator. Then, in my onCreate method, i made a call to Debug.startMethodTracing(myTrace); When i install the application on the emulator, i get an error as shown below Am i doing something wrong ? --- 10-07 11:36:32.671: ERROR/AndroidRuntime(925): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.client/com.client.MyClientActivity}: *java.lang.RuntimeException: file open failed* 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.os.Handler.dispatchMessage(Handler.java:99) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.os.Looper.loop(Looper.java:123) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.ActivityThread.main(ActivityThread.java:4203) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at java.lang.reflect.Method.invokeNative(Native Method) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at java.lang.reflect.Method.invoke(Method.java:521) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at dalvik.system.NativeStart.main(Native Method) *10-07 11:36:32.671: ERROR/AndroidRuntime(925): Caused by: java.lang.RuntimeException: file open failed* 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at dalvik.system.VMDebug.startMethodTracing(Native Method) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at dalvik.system.VMDebug.startMethodTracing(VMDebug.java:155) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.os.Debug.startMethodTracing(Debug.java:378) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.os.Debug.startMethodTracing(Debug.java:326) 10-07 11:36:32.671: ERROR/AndroidRuntime(925):* at com.client.MyClientActivity.onCreate(MyClientActivity.java:131)* 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) 10-07 11:36:32.671: ERROR/AndroidRuntime(925): ... 11 more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---