[android-beginners] Re: Help with Activites
Thanks for the replies. Two more questions... 1) When the activity is started from the main activity, I would want the user to click a button to indicate they have finished, and to return to the initial activity again. What's the best way to ensure that the original one is displayed as before? 2) My original question was actually more directed towards the device, rather than from a programming point of view. I was wondering how, on the device, you can see what is running - like for example in Windows where you can see all the applications in the taskbar, or even the list of apps in the task manager. Does android have anything similar? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: I am trying to log my gps location to a website.
Usually you'll see it in the log files. I allways log the Exception message in addition to the stack trace so you always know what the problem is. If you use a function that needs a special permission you don't have in your AndroidManifest.xml it will throw a SecurityException. If you haven't enclosed the call to that function in a try-block this will cause to stop your application. So you'll see it w/o logging. Hope this helps Am 18.08.2009 um 20:27 schrieb cellurl: I figured it out. I forgot to add INTERNET to the androidManifest.xml file Q: In the future, how would I know that I need to add something to the manifest?? thanks jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is really locked in the HTC Magic?
Thanks Casper, But my doubt is what the 'lock' means. Only SIM-unlocked? 'Cause i can unlock that...Then i will have the same liberty as in the Dev Phone? On Tue, Aug 18, 2009 at 7:37 PM, Casper Bang casper.b...@gmail.com wrote: I was in the same situation, so I bought a Magic and installed another SPL (bootloader) as well as rooted it. With a stock Magic SPL you are unable to install unsigned Android images, as that's reserved for Google. But if you just want to develop simple Android/Java applications, you do not need this. My Magic came unlocked thankfully, but I reckon if you install a rooted Android image that won't be a problem anymore - but I could be wrong. /Casper On 18 Aug., 19:54, Rafa Perfeito rafa.perfe...@gmail.com wrote: Hey, Been thinkin of getting a device to get my apps on the actual road. I have the Dev Phone option (although its not shipped to Portugal..thanks google by the way...), but also the HTC Magic and soon the Samsung Galaxy. The Magic is locked, but what this really means? Only the SIM is locked? Do i have all the functionalities and developing opportunities as in the Dev Phone? Or is it hardware-locked? A little help from you device developers would be cool... Thanks Cheers -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is really locked in the HTC Magic?
I guess it depends of the context of the world 'lock'. Although the Scandinavian isn't, I believe most stock phones (certainly the carrier branded ones) would be SIM locked as well as firmware locked (can't flash an unsigned image). This would both be different from the ADP. So if you get your phone SIM unlocked you should be well underway. What I can not tell you is whether flashing new SPL and i.e. the Ion firmware (G2 ADP) onto the device would also take care of the SIM lock and save you some €, but I suppose you have nothing to lose by trying. But perhaps you should consult http://www.xda-developers.com/ /Casper On 19 Aug., 12:30, Rafa Perfeito rafa.perfe...@gmail.com wrote: Thanks Casper, But my doubt is what the 'lock' means. Only SIM-unlocked? 'Cause i can unlock that...Then i will have the same liberty as in the Dev Phone? On Tue, Aug 18, 2009 at 7:37 PM, Casper Bang casper.b...@gmail.com wrote: I was in the same situation, so I bought a Magic and installed another SPL (bootloader) as well as rooted it. With a stock Magic SPL you are unable to install unsigned Android images, as that's reserved for Google. But if you just want to develop simple Android/Java applications, you do not need this. My Magic came unlocked thankfully, but I reckon if you install a rooted Android image that won't be a problem anymore - but I could be wrong. /Casper On 18 Aug., 19:54, Rafa Perfeito rafa.perfe...@gmail.com wrote: Hey, Been thinkin of getting a device to get my apps on the actual road. I have the Dev Phone option (although its not shipped to Portugal..thanks google by the way...), but also the HTC Magic and soon the Samsung Galaxy. The Magic is locked, but what this really means? Only the SIM is locked? Do i have all the functionalities and developing opportunities as in the Dev Phone? Or is it hardware-locked? A little help from you device developers would be cool... Thanks Cheers -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is really locked in the HTC Magic?
What About Samsung i7500 as developer device. I think it is unlocked and readily available in many countres. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 19, 2009 at 4:58 PM, Casper Bang casper.b...@gmail.com wrote: I guess it depends of the context of the world 'lock'. Although the Scandinavian isn't, I believe most stock phones (certainly the carrier branded ones) would be SIM locked as well as firmware locked (can't flash an unsigned image). This would both be different from the ADP. So if you get your phone SIM unlocked you should be well underway. What I can not tell you is whether flashing new SPL and i.e. the Ion firmware (G2 ADP) onto the device would also take care of the SIM lock and save you some €, but I suppose you have nothing to lose by trying. But perhaps you should consult http://www.xda-developers.com/ /Casper On 19 Aug., 12:30, Rafa Perfeito rafa.perfe...@gmail.com wrote: Thanks Casper, But my doubt is what the 'lock' means. Only SIM-unlocked? 'Cause i can unlock that...Then i will have the same liberty as in the Dev Phone? On Tue, Aug 18, 2009 at 7:37 PM, Casper Bang casper.b...@gmail.com wrote: I was in the same situation, so I bought a Magic and installed another SPL (bootloader) as well as rooted it. With a stock Magic SPL you are unable to install unsigned Android images, as that's reserved for Google. But if you just want to develop simple Android/Java applications, you do not need this. My Magic came unlocked thankfully, but I reckon if you install a rooted Android image that won't be a problem anymore - but I could be wrong. /Casper On 18 Aug., 19:54, Rafa Perfeito rafa.perfe...@gmail.com wrote: Hey, Been thinkin of getting a device to get my apps on the actual road. I have the Dev Phone option (although its not shipped to Portugal..thanks google by the way...), but also the HTC Magic and soon the Samsung Galaxy. The Magic is locked, but what this really means? Only the SIM is locked? Do i have all the functionalities and developing opportunities as in the Dev Phone? Or is it hardware-locked? A little help from you device developers would be cool... Thanks Cheers -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is really locked in the HTC Magic?
Yeah i7500 is already available but still from a carrier, so its still locked... Casper, thanks for that, i will see if those phones compensate when compared with the Dev Phone 1. By the way, how did you got that firmware for the nem SPL? On Wed, Aug 19, 2009 at 12:01 PM, Atif Gulzar atif.gul...@gmail.com wrote: What About Samsung i7500 as developer device. I think it is unlocked and readily available in many countres. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 19, 2009 at 4:58 PM, Casper Bang casper.b...@gmail.comwrote: I guess it depends of the context of the world 'lock'. Although the Scandinavian isn't, I believe most stock phones (certainly the carrier branded ones) would be SIM locked as well as firmware locked (can't flash an unsigned image). This would both be different from the ADP. So if you get your phone SIM unlocked you should be well underway. What I can not tell you is whether flashing new SPL and i.e. the Ion firmware (G2 ADP) onto the device would also take care of the SIM lock and save you some €, but I suppose you have nothing to lose by trying. But perhaps you should consult http://www.xda-developers.com/ /Casper On 19 Aug., 12:30, Rafa Perfeito rafa.perfe...@gmail.com wrote: Thanks Casper, But my doubt is what the 'lock' means. Only SIM-unlocked? 'Cause i can unlock that...Then i will have the same liberty as in the Dev Phone? On Tue, Aug 18, 2009 at 7:37 PM, Casper Bang casper.b...@gmail.com wrote: I was in the same situation, so I bought a Magic and installed another SPL (bootloader) as well as rooted it. With a stock Magic SPL you are unable to install unsigned Android images, as that's reserved for Google. But if you just want to develop simple Android/Java applications, you do not need this. My Magic came unlocked thankfully, but I reckon if you install a rooted Android image that won't be a problem anymore - but I could be wrong. /Casper On 18 Aug., 19:54, Rafa Perfeito rafa.perfe...@gmail.com wrote: Hey, Been thinkin of getting a device to get my apps on the actual road. I have the Dev Phone option (although its not shipped to Portugal..thanks google by the way...), but also the HTC Magic and soon the Samsung Galaxy. The Magic is locked, but what this really means? Only the SIM is locked? Do i have all the functionalities and developing opportunities as in the Dev Phone? Or is it hardware-locked? A little help from you device developers would be cool... Thanks Cheers -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Does getLocationFromName actually work??
I've been trying to search university around a location but does not work as i though can somebody help out here??? -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is really locked in the HTC Magic?
The process is covered other places, potentially a bit controversial to post in detail in here. Note that you only need new SPL if you want to flash unsigned firmwares (like the ADP allows). If all you want to do is create programs and don't want to play around with alternative firmwares, then you won't really gain much except perhaps the ability to create especially powerful/rooted applications. /Casper On 19 Aug., 13:06, Rafa Perfeito rafa.perfe...@gmail.com wrote: Yeah i7500 is already available but still from a carrier, so its still locked... Casper, thanks for that, i will see if those phones compensate when compared with the Dev Phone 1. By the way, how did you got that firmware for the nem SPL? On Wed, Aug 19, 2009 at 12:01 PM, Atif Gulzar atif.gul...@gmail.com wrote: What About Samsung i7500 as developer device. I think it is unlocked and readily available in many countres. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 19, 2009 at 4:58 PM, Casper Bang casper.b...@gmail.comwrote: I guess it depends of the context of the world 'lock'. Although the Scandinavian isn't, I believe most stock phones (certainly the carrier branded ones) would be SIM locked as well as firmware locked (can't flash an unsigned image). This would both be different from the ADP. So if you get your phone SIM unlocked you should be well underway. What I can not tell you is whether flashing new SPL and i.e. the Ion firmware (G2 ADP) onto the device would also take care of the SIM lock and save you some €, but I suppose you have nothing to lose by trying. But perhaps you should consulthttp://www.xda-developers.com/ /Casper On 19 Aug., 12:30, Rafa Perfeito rafa.perfe...@gmail.com wrote: Thanks Casper, But my doubt is what the 'lock' means. Only SIM-unlocked? 'Cause i can unlock that...Then i will have the same liberty as in the Dev Phone? On Tue, Aug 18, 2009 at 7:37 PM, Casper Bang casper.b...@gmail.com wrote: I was in the same situation, so I bought a Magic and installed another SPL (bootloader) as well as rooted it. With a stock Magic SPL you are unable to install unsigned Android images, as that's reserved for Google. But if you just want to develop simple Android/Java applications, you do not need this. My Magic came unlocked thankfully, but I reckon if you install a rooted Android image that won't be a problem anymore - but I could be wrong. /Casper On 18 Aug., 19:54, Rafa Perfeito rafa.perfe...@gmail.com wrote: Hey, Been thinkin of getting a device to get my apps on the actual road. I have the Dev Phone option (although its not shipped to Portugal..thanks google by the way...), but also the HTC Magic and soon the Samsung Galaxy. The Magic is locked, but what this really means? Only the SIM is locked? Do i have all the functionalities and developing opportunities as in the Dev Phone? Or is it hardware-locked? A little help from you device developers would be cool... Thanks Cheers -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: why the alertdialog could not display ?
yjshi wrote: I am trying to display the dialog,but something is wrong when I do it.I use a timer to do something. I want to use a dialog to let the user konw, when the dialog is end. seekTask = new TimerTask() .. seekTask.cancel(); new AlertDialog.Builder(mContext) .setTitle(R.string.seek_task_end) .setPositiveButton(R.string.btn_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { d.dismiss(); } }) .show(); //Log.i(tag,message) the log could not display. It is unclear from the code from which thread you are launching the dialog. I suspect you can only open the dialog from the UI thread, and Timer/TimerTask runs on a background thread. If you look at adb logcat, DDMS, or the DDMS perspective in Eclipse, you may see a stack trace that will give you more clues. You may need to use Activity#runOnUiThread() or View#post() or a Handler or something to arrange to display the dialog from the UI thread. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Does getLocationFromName actually work??
Jose Ayerdis wrote: I've been trying to search university around a location but does not work as i though can somebody help out here??? A search of the Android SDK documentation does not turn up getLocationFromName(). Where do you see this method? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Barcode scanning?
Hi all Does anyone know if there's anything built in to Android for barcode scanning? If not, how would you go about implementing this - take a photo, send it off to a server and do image recognition there? thanks! Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Does getLocationFromName actually work??
GeoCoder Class has it here: http://developer.android.com/reference/android/location/Geocoder.html 2009/8/19 Mark Murphy mmur...@commonsware.com Jose Ayerdis wrote: I've been trying to search university around a location but does not work as i though can somebody help out here??? A search of the Android SDK documentation does not turn up getLocationFromName(). Where do you see this method? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Does getLocationFromName actually work??
Jose Ayerdis wrote: GeoCoder Class has it here: http://developer.android.com/reference/android/location/Geocoder.html Actually, Geocoder has getFromLocationName(), not getLocationFromName(), which is why I didn't find it in a search. I have not used this class personally, so I do not know the requirements to make it work, other than I am sure it needs the INTERNET permission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Barcode scanning?
Anna PS wrote: Does anyone know if there's anything built in to Android for barcode scanning? Not that I am aware of. If not, how would you go about implementing this - take a photo, send it off to a server and do image recognition there? Use a third-party component, like ZXing: http://code.google.com/p/zxing/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Does getLocationFromName actually work??
2009/8/19 Mark Murphy mmur...@commonsware.com Jose Ayerdis wrote: GeoCoder Class has it here: http://developer.android.com/reference/android/location/Geocoder.html Actually, Geocoder has getFromLocationName(), not getLocationFromName(), which is why I didn't find it in a search. I have not used this class personally, so I do not know the requirements to make it work, other than I am sure it needs the INTERNET permission. It is not a permission problem because i use the method getFromLocation method... so it work but the other i don't get why is not working or if i'm not using it as i should. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can't locate com.android.settings activity
Any input on this issue? Thanks, Jean-Sebastien - Reply message - From: jstoezel js.stoe...@gmail.com Date: Mon, Aug 17, 2009 6:19 PM Subject: [android-beginners] Can't locate com.android.settings activity To: Android Beginners android-beginners@googlegroups.com Hi, I'm trying to open the system's window (GPS enable window) using the following code. I get an exception saying the com.android.settings activity cannot be located. Any idea why this happens? Thanks, Jean ComponentName c = new ComponentName (com.android.settings,com.android.settings.SecuritySettings); // (com.android.settings,com.android.settings.SecuritySettings); Intent i = new Intent (Settings.ACTION_SECURITY_SETTINGS); i.addCategory(Intent.CATEGORY_LAUNCHER); i.setComponent(c); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Help with Activites
1) When an activity is started from another, to the best of my knowledge, the only way to get back to the original activity is to use the back button on the device (assuming the activity is not one you created). If the second activity is one you created, then you could probably place a button on it that simulates the behavior of the back button. 2) Android does not have anything built into the OS that allows you to see what is running. The only built-in way to switch between running applications is to launch it again they way it was initially launched. However, there are several apps that you can download that provide this functionality, and I am working on one myself. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Aug 19, 2009 at 2:06 AM, Neilz neilhorn...@googlemail.com wrote: Thanks for the replies. Two more questions... 1) When the activity is started from the main activity, I would want the user to click a button to indicate they have finished, and to return to the initial activity again. What's the best way to ensure that the original one is displayed as before? 2) My original question was actually more directed towards the device, rather than from a programming point of view. I was wondering how, on the device, you can see what is running - like for example in Windows where you can see all the applications in the taskbar, or even the list of apps in the task manager. Does android have anything similar? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can't locate com.android.settings activity
Jean-Sebastien Stoezel wrote: Any input on this issue? Try new Intent(Settings.ACTION_SECURITY_SETTINGS) instead, unless I am misunderstanding what activity you are trying to open. Settings is in android.provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cannot see my HTC Magic via DDMS to take screenshot
Back from holiday. Still not solved... :o( Same at home under Vista. And you? On Jul 31, 7:48 pm, NataliaPC natalia.pu...@gmail.com wrote: Hikidhermes Have you solved your problem? I've the same issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Cannot see my HTC Magic via DDMS to take screenshot
On your phone go to the settings/application and select development ( I am not sure what this would be in your language ..). The enable USB debugging. -- 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 Jun 24, 1:33 am, kidhermes kidher...@gmail.com wrote: Hello I'm new to Android and will start to develop on. But I can't connect my phone (HTC Magic, branded Swisscom in Switzerland) to my XP Eclipse + SDK 1.5r1. First I will simply take a few screenshot following this process:http://blog.digitaltinder.net/2009/06/how-to-take-android-screenshots/ Won't! I can run the emulator via Eclipse with a project, but when I plug my phone (debug mod on as requested), DDMS doesn't me any device. Empty. In my device manager on XP, I can see my phone as HTC Android Phone USB Device. And when I mount the drive, I can access to my sd card with all the application and files. Any advice(s)? A lot of thx in advance. Regards, Dom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Delete Note does not work in the Notepadv2 example
onCreateContextMenu() is being used for performing a long- clicked (at least 2 seconds) on the item. -- Jack Ha Open Source Development Center ・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 Aug 18, 12:06 am, Belik77 beli...@walla.co.il wrote: Hi all, I am new to android developing. I am very pleased with the tutorials that google add to the developer site. it is very clear and easy to learn. I am now going trough the Notepad Tutorial and I have problem with the second exercise. Notepadv2. after i have done all the steps, and run the application, i do not see the Delete Note menu item. I have only the Add Note menue item. (it does not work even in the Notepadv2Solution project!) Also, I do not understand why we use the method: public boolean onCreateContextMenu to add the Delete Note menu item whereas we used other method to add the Add Note menu item. I have tried to debug the application and noticed that basically the application does not enter into the public boolean onCreateContextMenu method and thus probably, it does not add the Delete Note menu item. Thanks allot for your help. Eli. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] getting the pictures taken with my program to appear in gallery
Hello I'm working through Mark Murphy's excellent books at commonsware.com. The camera application takes pictures nicely but they don't appear in the Gallery , nor can I attach them to emails. I've put photo.jpg in the right folder sdcard/DCIM/100MEDIA and they are visible in the Eclipse File explorer. Using the adb tool I can retrieve them and they look fine on my PC. What's wrong with these files? Anybody Know? John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: getting the pictures taken with my program to appear in gallery
jbrohan wrote: I'm working through Mark Murphy's excellent books at commonsware.com. Thanks! The camera application takes pictures nicely but they don't appear in the Gallery , nor can I attach them to emails. In terms of the Gallery, I believe that is handled via the MediaStore: http://developer.android.com/reference/android/provider/MediaStore.html However, I haven't used it. In terms of emails, if you are referring to sending the emails yourself programmatically, this should work: http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Barcode scanning?
Mark Murphy wrote: Anna PS wrote: Does anyone know if there's anything built in to Android for barcode scanning? Not that I am aware of. If not, how would you go about implementing this - take a photo, send it off to a server and do image recognition there? Use a third-party component, like ZXing: http://code.google.com/p/zxing/ I can recommend using the Barcode Scanner intent as described here: http://www.openintents.org/en/node/94 This is a lot more convenient than to put all that ZXing code in your own application. That's what I do in my price hunting app (Prisjakt) anyway and work pretty well. Best / Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Comparing different dates
How would I compare the current date against a date I've set to determine if today is before or after the set date? I've tried the following, but its not working Date endTime; { endTime = new Date(); endTime.setMonth(11); endTime.setYear(2009); } Date trialTime; { trialTime = new Date(); trialTime.getMonth(); trialTime.getYear(); } boolean test = endTime.before(trialTime); Any help is greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Need to implement Android for my website powered in PHP
Hi, I need to make mywebsite developed in PHP(Linux server, MySQL) in android. How can I do it? Can anyone tell me the steps for it? Thanks Kapil1728 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Portuguese localization?
Hey, Probably not because the first portuguese Android set to be released in here as its software totally in english (HTC Magic by TMN). On Wed, Aug 19, 2009 at 1:14 PM, Dominique dominique.ja...@gmail.comwrote: Hello I dont see Portuguese language in the locales: http://developer.android.com/sdk/android-1.5.html#locs It's not supported? Thx for the info. Regards, Dom -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK 2.0?
Bluefish wrote: Hello, i am a User of an HTC Hero device with Android 2.0(Donut) 1. Donut is not Android 2.0. 2. AFAIK, HTC Hero shipped with Android 1.5, plus extra HTC proprietary components, such as the HTC Sense UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Please Tell the Book to Purchase
Hi,Can you please guide me to take android book for Programming? -- Thank You, Pruthvi Raj G.R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android SDK 2.0?
Hello, i am a User of an HTC Hero device with Android 2.0(Donut) but there is no SDK available for this version of Android. Now i like to ask some questions: - When will the SDK be released. - Is there a beta of the SDK available? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Emulator Internet Issues as Stand-Alone
Heyho! I'm developing an App for School, and my teacher asked me if it is possible that he gets kind of an image to check the App out himself. Well, I can't lend him my precious Magic, and I don't want to let him struggle with installing the whole SDK. So what I did was, I kinda exported the Emulator as a stand-alone app. I specified via cmd all the necessary images. Actually, its working. Even my App is stored on there, and seems to work as well. But no internet. The Emulator itself HAS Internet, Google Maps and the Browser are working fine. But my MapView won't load anything, it just stays gray. And yes, permissions are set of course, and in my normal environment it works like a charm. Can anyone help me out? Greetz! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Emulator Proxy
I encounter some problem when starting emulator using -http-proxy C:\android-sdk-windows-1.5_r2\toolsemulator -avd android1 -http-proxy proxy.##.##.com:8080 -debug-proxy proxy_http_setup: creating http proxy service connecting to: proxy.##.##.com:8080 server name 'proxy.##.##.com' resolved to XX.XX.X.X:8080 proxy_http_setup: creating HTTP Proxy Service Footer is (len=2): ' ' however, I still cant use internet connection via emulator's browser. I also tried command below: ./adb shell sqlite3 /data/data/com.google.android.providers.settings/ databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,’ proxy.##.##.com:8080’);\” but seems had no effect at all, the problem remain. Can anyone help me on this issues? Thank you... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Problem with list view item selection
I have the same problem as this one http://groups.google.com/group/android-developers/browse_thread/thread/dc51240d83f03626/0c712084b5b16257?lnk=gstq=listview+button#0c712084b5b16257 but unfortunately there is no reply to this post. Anybody found a solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK 2.0?
Ah ok...i was always thinking that the Hero has Android 2.0... Then i can start learning :) On 19 Aug., 19:08, Mark Murphy mmur...@commonsware.com wrote: Bluefish wrote: Hello, i am a User of an HTC Hero device with Android 2.0(Donut) 1. Donut is not Android 2.0. 2. AFAIK, HTC Hero shipped with Android 1.5, plus extra HTC proprietary components, such as the HTC Sense UI. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: using pre-coded functionality
It seems that the whole Android source code is available. It would appear to be possible to download the phone Activity source code and do your best with that. Personally I'd like to look at the Camera project to see how all the bits work. If anyone has a few more words to explain how to get the source I'd be glad to hear it. http://source.android.com. indicates where the source is and the names of the packages. It looks quite straightforward, but I'm missing a couple of steps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK 2.0?
1. Donut is not Android 2.0. So what is 2.0? Eclair? What is the version correspondent to Donut then? On Wed, Aug 19, 2009 at 6:59 PM, Bluefish bluefisch...@gmail.com wrote: Ah ok...i was always thinking that the Hero has Android 2.0... Then i can start learning :) On 19 Aug., 19:08, Mark Murphy mmur...@commonsware.com wrote: Bluefish wrote: Hello, i am a User of an HTC Hero device with Android 2.0(Donut) 1. Donut is not Android 2.0. 2. AFAIK, HTC Hero shipped with Android 1.5, plus extra HTC proprietary components, such as the HTC Sense UI. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- Cumprimentos, Hugo Rafael Augusto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] problem runnin Hello World Programme
hi there, i m trying to run Hello World programme , problem i am facing is the following error when i run the programme : ERROR: Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner before this it was givin java nullpointerexception error . i've just formatted my mashine n b4 formatting i was not havin any problem in runnin the programme. Thanks in advance, Kapil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK 2.0?
Rafa Perfeito wrote: 1. Donut is not Android 2.0. So what is 2.0? Eclair? What is the version correspondent to Donut then? Neither Donut nor Eclair have been released, so there are no version numbers yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Emulator Proxy
There are some proxy-related fixes in Android SDK 1.5_r3, can you test with this and report if yourproblem still persists? If it does, can you start with the -debug-proxy option and show the output here? On Tue, Aug 18, 2009 at 6:20 PM, chengks99 chengk...@gmail.com wrote: I encounter some problem when starting emulator using -http-proxy C:\android-sdk-windows-1.5_r2\toolsemulator -avd android1 -http-proxy proxy.##.##.com:8080 -debug-proxy proxy_http_setup: creating http proxy service connecting to: proxy.##.##.com:8080 server name 'proxy.##.##.com' resolved to XX.XX.X.X:8080 proxy_http_setup: creating HTTP Proxy Service Footer is (len=2): ' ' however, I still cant use internet connection via emulator's browser. I also tried command below: ./adb shell sqlite3 /data/data/com.google.android.providers.settings/ databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,’ proxy.##.##.com:8080’);\” but seems had no effect at all, the problem remain. Can anyone help me on this issues? Thank you... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK 2.0?
Andrés G. Aragoneses wrote: Is Flash a proprietary component as well or is the plugin also included in Android? Flash is rather proprietary. It is not in the Android open source project. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView with addHeaderView Example?
Just in case anyone wants this in future, here is the solution to having a ListView with an addHeaderView enabled with a permanent TextView item at the top of list that doesn't move, even after you scroll through the list. If anyone has a better implementation please let me know as this doesn't extend ListActivity but just Activity. Cheers! ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/textHeader android:layout_width=fill_parent android:layout_height=wrap_content android:text=Text Header, Always on Top/ ListView android:id=@+id/listEntries android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout public class HelloListView extends Activity { private TextView th; private TextView tv; private ListView lv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); th = (TextView) findViewById(R.id.textHeader); lv = (ListView) findViewById(R.id.listEntries); tv = new TextView(this); tv.setText(Hello There! Stays at top of list); lv.addHeaderView(tv); lv.setAdapter(new ArrayAdapterString (this, android.R.layout.simple_list_item_1, COUNTRIES)); lv.setOnItemClickListener(new ItemClickedListener()); } private class ItemClickedListener implements OnItemClickListener { @Override public void onItemClick(AdapterView? arg0, View arg1, int position, long id) { String temp = arg0.getItemAtPosition(position).toString(); Toast.makeText(HelloListView.this, temp, Toast.LENGTH_SHORT).show (); } } static final String[] COUNTRIES = new String[] { Afghanistan, Albania, Algeria, American Samoa, Andorra, Angola, Anguilla, Antarctica, Antigua and Barbuda, Argentina }; } On 17 Aug, 16:33, Neil Chinniah nchinn...@googlemail.com wrote: Just in case anyone is interested I found a thread in one of the other groups that makes a reference to HeaderViewListAdapter:http://groups.google.com/group/android-developers/browse_thread/threa... With this I created the following, its far from perfect but at least it loads ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@+id/lvEntries android:layout_width=fill_parent android:layout_height=wrap_content / /LinearLayout public class HelloAddHeaderview extends Activity { private ListView lv; private TextView tv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lv = (ListView) findViewById(R.id.lvEntries); tv = new TextView(this); tv.setText(Hello There!); lv.addHeaderView(tv); lv.setAdapter(new ArrayAdapterString (this, android.R.layout.simple_list_item_1, COUNTRIES)); } static final String[] COUNTRIES = new String[] { Afghanistan, Albania, Algeria, American Samoa, Andorra, Angola, Anguilla, Antarctica, Antigua and Barbuda, Argentina, Armenia, Aruba, Australia, Austria, Azerbaijan }; } 2009/8/17 chinchin nchinn...@googlemail.com Hello, I'm trying to modify the HelloListView example to use addHeaderView or addFooterView. Unfortunately I am unable to get this working. Is anyone able to provide any help? Here is my code, thanks in advance. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/textDisplay android:layout_width=fill_parent android:layout_height=wrap_content android:text=Hello! / /LinearLayout public class HelloListView extends ListActivity { private TextView test; /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); test = (TextView) findViewById(R.id.textDisplay); getListView().addHeaderView(test);
[android-beginners] Re: Comparing different dates
The year specified in setYear() should be the year since 1900. That said, it should be 109 (2009-1900) instead of 2009. -- Jack Ha Open Source Development Center ・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 Aug 18, 5:01 pm, Stephen Lebed srle...@gmail.com wrote: How would I compare the current date against a date I've set to determine if today is before or after the set date? I've tried the following, but its not working Date endTime; { endTime = new Date(); endTime.setMonth(11); endTime.setYear(2009); } Date trialTime; { trialTime = new Date(); trialTime.getMonth(); trialTime.getYear(); } boolean test = endTime.before(trialTime); Any help is greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problem runnin Hello World Programme
It seems like you are running your program as Android JUnit Test as opposed to Android Application. -- Jack Ha Open Source Development Center ・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 Aug 19, 11:43 am, kapil kapil83...@gmail.com wrote: hi there, i m trying to run Hello World programme , problem i am facing is the following error when i run the programme : ERROR: Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner before this it was givin java nullpointerexception error . i've just formatted my mashine n b4 formatting i was not havin any problem in runnin the programme. Thanks in advance, Kapil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Need to implement Android for my website powered in PHP
Do you want your website to be hosted on the phone, or do you want to port your website functionality to an Android application, or do you want to access your website from an Android application? Yusuf Saib Android ·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 Aug 18, 11:04 pm, kapil1728 kapilcpk1...@gmail.com wrote: Hi, I need to make mywebsite developed in PHP(Linux server, MySQL) in android. How can I do it? Can anyone tell me the steps for it? Thanks Kapil1728 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android SDK 2.0?
Actually, Andy Rubin has now officially declared that: the Donut branch will be used for Android 1.6 releases the Eclair branch will be used for Android 2.0 releases http://www.reuters.com/article/internetNews/idUSTRE56U5XU20090801 http://www.reuters.com/article/internetNews/idUSTRE56U5XU20090801hope that helps On Wed, Aug 19, 2009 at 1:36 PM, Mark Murphy mmur...@commonsware.comwrote: Andrés G. Aragoneses wrote: Is Flash a proprietary component as well or is the plugin also included in Android? Flash is rather proprietary. It is not in the Android open source project. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Comparing different dates
Thanks, I didn't realise that! That explain the results I'm getting. Best, Stephen On Aug 19, 5:03 pm, Jack Ha jack...@t-mobile.com wrote: The year specified in setYear() should be the year since 1900. That said, it should be 109 (2009-1900) instead of 2009. -- Jack Ha Open Source Development Center ・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 Aug 18, 5:01 pm, Stephen Lebed srle...@gmail.com wrote: How would I compare the current date against a date I've set to determine if today is before or after the set date? I've tried the following, but its not working Date endTime; { endTime = new Date(); endTime.setMonth(11); endTime.setYear(2009); } Date trialTime; { trialTime = new Date(); trialTime.getMonth(); trialTime.getYear(); } boolean test = endTime.before(trialTime); Any help is greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: startActivity() crash...
Justin, The framework does a check on the permissions of the applications you are trying to start. In the case of how you are trying to start the activities the framework does not grant the permission. In general if you would be root or the owner of the calendar application (in this case its the system ) you get the permission granted right away to start the activity. In your case the check for the permission is not successful because of the wrong permission is passed down to the framework. I did not find out what permission you need in your case. But if you want to spend time investigating the framework code look at checkComponentPermission() in frameworks/base/services/java/com/ android/server/am/ActivityManagerService.java final int perm = checkComponentPermission(aInfo.permission, callingPid, callingUid, aInfo.exported ? -1 : aInfo.applicationInfo.uid); if (perm != PackageManager.PERMISSION_GRANTED) { if (resultRecord != null) { sendActivityResultLocked(-1, resultRecord, resultWho, requestCode, Activity.RESULT_CANCELED, null); } String msg = Permission Denial: starting + intent.toString() + from + callerApp + (pid= + callingPid + , uid= + callingUid + ) + requires + aInfo.permission; Log.w(TAG, msg); throw new SecurityException(msg); } By the way starting the calendar app in this way does not cause any exception Intent calendarIntent = new Intent() ; calendarIntent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT ); calendarIntent.setClassName (com.android.calendar,com.android.calendar.MonthActivity); -- 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 Aug 18, 8:23 pm, Tikoze janderson@gmail.com wrote: Any ideas on why my app doesn't have permissions to launch the Calendar app when it is running but it does have permissions to launch virtually any other running app This bug is driving me crazy! Thanks in advance for any pointers/suggestions Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Emulator Proxy
Hi, I don't exactly know why such things happen but you can try with different Primary Key valeues such as (101,111). In my case same thing was problem but once I change this the things are working pretty fine. Have a go check if you also get same things or not. Aslo while setting proxy use the ip address rather that name. Regards, Swapnil Dalal. On Aug 19, 6:20 am, chengks99 chengk...@gmail.com wrote: I encounter some problem when starting emulator using -http-proxy C:\android-sdk-windows-1.5_r2\toolsemulator -avd android1 -http-proxy proxy.##.##.com:8080 -debug-proxy proxy_http_setup: creating http proxy service connecting to: proxy.##.##.com:8080 server name 'proxy.##.##.com' resolved to XX.XX.X.X:8080 proxy_http_setup: creating HTTP Proxy Service Footer is (len=2): ' ' however, I still cant use internet connection via emulator's browser. I also tried command below: ./adb shell sqlite3 /data/data/com.google.android.providers.settings/ databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,’ proxy.##.##.com:8080’);\” but seems had no effect at all, the problem remain. Can anyone help me on this issues? Thank you... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---