[android-developers] adb devices cannot see Motorola
I used to develop on Motorola Droid when it was on Android 2.0 using Lenovo WIndows 7. I could list the device, launch app, debug, etc. Later I moved to Nexus One. I did all the same normal development activities. Now, when I want to switch back to Droid. adb does not see Droid which is connected through USB. I can see the SD Card through Explorer, if USB Debugging is not turned on. Once USB Debugging is turned on, adb cannot see the device. Nor the Eclipse DDMS. I tried installing the newest driver from Motorola, rebooted both the device and the laptop several times, killed adb server and restarted many times. Still the same issue. Can Motorola Droid and Nexus One drivers live together? Am I missing any steps? How do I uninstall Nexus One and reinstall 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: Filter for crapps (crap apps)
You don't have to pay 10 bucks, there is a free app that does that, it's called AppBrain, and it also lets you do web installs and syncing. On Jun 22, 4:16 pm, McDanish bennymcandr...@gmail.com wrote: Does anyone know if there is some sort of filter funktion, either in Andoid Market itself or in/as an app? I am SO tired of flipping through all those weird and for me totally useless View pictures when you end a call and others telling me that those jap girls are so cute and for real men. I am too old to change horse in the middle of the stream ;=) So a filter would be nice, either by the name of the app (JOON APPS, sowallpaper or the likes) or by the website of the origin. If it is not possible, I would be willing to pay 10 bucks for a filter like that on Android Market - are you listening, developers??? ;=) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Easy and fast XML Parser?
DOM consumes memory and creates load of object (for big XML files), but DOM is easy to work with. SAX is event driven, but programming modell is awkward. There is pull XML parser in android though - like SAX but you are in control. But usually you like to have you objects out of XML - so you will need kind of databinding tool (unfortunately there is not one in android) XStream is easy to use, but not really small. I decided to use JSON in my apps, and wrote small databinding library: http://github.com/ko5tik/jsonserializer It works well on even relatively big JSON files (highscore lists with 1000 entries ) On Jul 13, 4:42 am, Streets Of Boston flyingdutc...@gmail.com wrote: I myself use the android.sax.* classes and the org.xmlpull.v1.XmlPullParserFactory that's configured to use the org.xmlpull.v1.sax2.Driver class for the actual hard work. (I wrapped some extra classes of my own around these (android.sax.*) to better track the the current context (i.e. which element the pull- parser is currently handling) of the parsing) On Jul 12, 3:30 pm, Siva siva.d...@gmail.com wrote: Can anyone tell me the easy and fastest XML Parser? I need guide/sample code... please help 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] Approach to cache large amount of Textual and audio data in Android application
Hi: We are supposed to cache textual and audio data in our application until device is booted or maximum of two days, whichever happens earlier. To get a perspective on data to be cached, note that we are to store about 200 text headers containing around 10 fields, each of length 30 bytes and about 20 sound files each about a minute long. We are getting the textual data by parsing XMLs and then we keep them in ArrayLists. The sound files are directly written inside the app storage using File I/O (and not on SDcard or Apps Cache directory). This application is to be run on devices running Android 1.5 or later. I understand, and please correct me if I am wrong, that we can cache the files either on SDcard or inside the application or inside applications Cache directory. I have the following questions regarding how do we approach Caching? 1. Should we persist the textual data in applications SQLite database or should we use Java Serialization mechanism and persist the List objects(which constitute Serializable components) inside the application? 2. Where should we write the text data /sound files - inside application, cache or SD card? 3. Can all of these be saved to applications cache directory? How big can the cache directory grow? 4. Can we specify a time span to Android Runtime for which a cache is maintained? Or would we have to do this manually? Please help and advise. 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: IP infringements on the Market
It doesn't matter if the patent could stand up in court or not. Defending would cost you thousands of dollars. And if you're an indie dev, you're pretty much defenseless. Patents (and especially software patents) have long lost their original purpose of protecting inventors and became a tool for destroying your competition (and preventing any to grow). Not to mention many cases of obvious blackmail. But back to the topic. If you're bothered by all the crap apps infringing copyrights of others, then why not send an email to IP holder (eg. Disney) to let them know about it? It's not that big of an effort and maybe it would work. Cheers On Jul 13, 1:56 am, Indicator Veritatis mej1...@yahoo.com wrote: I can understand his reluctance to face a lawsuit, but I cannot believe that patent could stand a court challenge. The feature is too obvious: the only way they could have met the requirement for non- obviousness would be if they had a particular WAY to display it, and that was was novel and non-obvious. But then all the developer you mentioned has to do is show that his way is different enough. On Jul 12, 12:29 pm, Gene R. gurur...@gmail.com wrote: There have been instances of the rights holder threatening the developer directly (ie. bypassing Google entirely). About 3-4 months ago, some patent IP company notified one of the developers of a caller ID app that they had a patent on displaying location information of the caller id. The developer was forced to pull his app or face a lawsuit. While this is an extreme case, as Mark suggested earlier, it is more than likely up to the rights holder to assert their rights. Those developers that knowingly infringe are playing a game of russian roulette; however, I have noticed most of the infringing apps appear to be out of China or some other asian country... that alone may dissuade the rights holder from pursing it. Gene On Jul 10, 6:23 am, michael michael.d.peder...@googlemail.com wrote: Hi again, Doing so may well violate their DMCA safe harbor provisions and open them up to big-ticket lawsuits. I suspect that they are best served by following the DMCA rules, which requires takedown notices by the rights holders (e.g., Disney). I didn't think of that but good point. I agree that probably the best way to act against infringement problems is to notify copyright holders. Speaking for myself, the problem is not big enough for me to go through all that trouble. I guess it is just a downside of a free market that we will have to live with. Cheers, Michael. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: adb devices cannot see Motorola
I have the same problem on WIndows 7 Professional 64bits. I installed drivers before for HTC Magic, and HTC Evo, those work fine. Looking at http://community.developer.motorola.com/t5/Android-App-Development-for/x64-Bit-windows-driver-for-A855-Droid/m-p/6121 may be we have to delete the previous drivers and install motorola driver. I'll update as soon I try again. -f4 On Jul 13, 12:14 am, qwesthead qwesth...@gmail.com wrote: I used to develop on Motorola Droid when it was on Android 2.0 using Lenovo WIndows 7. I could list the device, launch app, debug, etc. Later I moved to Nexus One. I did all the same normal development activities. Now, when I want to switch back to Droid. adb does not see Droid which is connected through USB. I can see the SD Card through Explorer, if USB Debugging is not turned on. Once USB Debugging is turned on, adb cannot see the device. Nor the Eclipse DDMS. I tried installing the newest driver from Motorola, rebooted both the device and the laptop several times, killed adb server and restarted many times. Still the same issue. Can Motorola Droid and Nexus One drivers live together? Am I missing any steps? How do I uninstall Nexus One and reinstall 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: Intercepting the Android phone dialer
Thank you very much for helping me out! Kinda got this to work. To intercept the call completely, you have to set the priority to -1 like this: intent-filter android:priority=-1 action android:name=android.intent.action.NEW_OUTGOING_CALL / category android:name=android.intent.category.DEFAULT / /intent-filter And also, you'll need to set the PROCESS_OUTGOING_CALLS permission: uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS / There's no way (that I know of) to test it in the emulator. I have to have a friend to install the app in his phone and test it out for me. It works for him, my app will intercept the phone number sent by the dialer and it'll never do the actual call. The problem is that my friend will NEVER make a call unless he uninstall my app. I want people to have an option to call using my app or the dialer itself. Right now, my app is a BroadcastReceiver class. So, it'll ALWAYS listen to the NEW_OUTGOING_CALL intent passively. I'm thinking about making my app a background service instead of a broadcast receiver, maybe that'll work? I believe that's how SipDroid does it. It's getting late now and I need to sleep. I'll probably have some time tomorrow or so to research more about it and I'll post my findings here if I find a correct way to do it. On Jul 12, 11:28 am, Denis Souza denis.so...@gmail.com wrote: You can declare a BroadcastReceiver to for the NEW_OUTGOING_CALL intent such as: intent-filter android:priority=1 action android:name=android.intent.action.NEW_OUTGOING_CALL / category android:name=android.intent.category.DEFAULT / /intent-filter That would intercept an outgoing call after it's dialed. More on this:http://developer.android.com/reference/android/content/Intent.html#AC... I don't know how you would actually make the call go through a SIP connection but I guess this is a good start. There's an open source project called Sipdroid that does exactly that. Maybe you can take a look at their source code to see how it's done. On Jul 12, 3:46 am, Randall randallnori...@gmail.com wrote: I'd like to know this as well. Did you find out how to do it, yet? On Jun 30, 1:41 pm, Jaap jaap.hait...@gmail.com wrote: Maybe I did not explain myself well. What I want is somebody to use the defaultphoneapplication on Android but when the call button is pressed my application gets thenumberand no call is being placed. Jaap On Jun 26, 10:30 pm, Jaap jaap.hait...@gmail.com wrote: Hi, There are some programs to make calls via SIP with android. Nice thing is that they work transparently. That is you can use the standard androidphonedialerbut the call goes via SIP. How can you use the androiddialerto do this? Thanks Jaap -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Manually create links
Is there any way to manually create phone links on certain strings? The autolink keeps highlighting zip codes as phone links. 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: Easy and fast XML Parser?
I've had the best luck with SAX. It's the fastest I found and I use it in my application that handles very large XML files and it does the job very quickly. I think I saw a tutorial on anddev.org about how to implement SAX in your application, but any tutorial on the net (desktop or mobile - doesn't matter) will help. On Jul 12, 2:30 pm, Siva siva.d...@gmail.com wrote: Can anyone tell me the easy and fastest XML Parser? I need guide/sample code... please help 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] Attach debugger to a process running in the emulator via eclipse.
Hi, Is there some way to attach debugger to a process running in the emulator via eclipse? I am trying to debug the following scenario. 1.) Kill a process via pressing the red terminate button from Debug perspective in eclipse. 2.) Relaunch the app in emulator. When the app is relaunched in step 2.), I want to step through the debugger. I am unable to figure out a way to attach debugger to a process running in the emulator. I would really appreciate any pointers regarding this. Thanks a lot, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Attach debugger to a process running in the emulator via eclipse.
Is debugging enabled in your application's manifest? You can only debug applications that are marked for debugging. -- Kostya 13.07.2010 11:44, MB пишет: Hi, Is there some way to attach debugger to a process running in the emulator via eclipse? I am trying to debug the following scenario. 1.) Kill a process via pressing the red terminate button from Debug perspective in eclipse. 2.) Relaunch the app in emulator. When the app is relaunched in step 2.), I want to step through the debugger. I am unable to figure out a way to attach debugger to a process running in the emulator. I would really appreciate any pointers regarding this. Thanks a lot, --MB. -- Kostya Vasilev -- 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] Force an Application to be alive
Hi All, I am writing an application to do fileobservation which can be done. Is there any way I can make the application to run in the background without killing it? Unless user restart the phone. Is there any way to do it? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Force an Application to be alive
I read the reference and come across this. You can try if it works for you. http://developer.android.com/reference/android/Manifest.permission.html#PERSISTENT_ACTIVITY sincerely yolilla -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Request for improved App Widget functionality
I see a lot of requests for things like animations and EditText functionality within AppWidgets, which are currently either not supported or very difficult to do, hence created an enhancement request in the Android Code. http://code.google.com/p/android/issues/detail?id=9580 Please star this issue if you have been affected by this and/or would like to see improvements. I see AppWidgets as one of the great differentiators over the iPhone, and believe that Google should keep ahead of the curve on this. Cheers James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Iphone like album cover
any one has such experience? On Jul 8, 5:03 pm, CMF manf...@gmail.com wrote: anyone has experience on developing iphone like album cover with a set of images? or there is already an api in android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to play audio from sd card?
As prachi's answer implies, you need to be in the prepared state when calling setDataSource(). The other way to get there is to call MediaPlayer.create(). Both result in the prepared state. Likewise, you need to make sure the path you give to setDataSource() is exactly correct. The best way to do this, instead of hardcoding the reference to '/sdcard/', is to use android.os.Environment.getExternalStorageDirectory() (q.v.). On Jul 11, 9:37 pm, Siva siva.d...@gmail.com wrote: Hi friends/experts, I need to download audio from web server and I need to save into device memory. Then, I need to play that audio from my application. I know, how to play audio if that is available in res/raw folder. But, I can't able to play audio from SD Card... I am getting following error: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported Can any help me on this. I need this very urgent... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 play audio from sd card?
Rather, I misread prachi's answer:( The correct description of what state it must be in is rather different: since setDataSource() IS what moves the MediaPlayer from the Idle to the Initialized state, you should not use create(), you should use prepared(), and in the order prachi said: setDataSource() first, and only after, even immediately after, call prepare(). You will get an illegal state exception if setDataSource() is called in any but the Idle state. You ARE in the Idle state when you call setDataSource(), aren't you? On Jul 13, 1:02 am, Indicator Veritatis mej1...@yahoo.com wrote: As prachi's answer implies, you need to be in the prepared state when calling setDataSource(). The other way to get there is to call MediaPlayer.create(). Both result in the prepared state. Likewise, you need to make sure the path you give to setDataSource() is exactly correct. The best way to do this, instead of hardcoding the reference to '/sdcard/', is to use android.os.Environment.getExternalStorageDirectory() (q.v.). On Jul 11, 9:37 pm, Siva siva.d...@gmail.com wrote: Hi friends/experts, I need to download audio from web server and I need to save into device memory. Then, I need to play that audio from my application. I know, how to play audio if that is available in res/raw folder. But, I can't able to play audio from SD Card... I am getting following error: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported Can any help me on this. I need this very urgent... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sending and reveiving mails in emulator
Hi, I tried, but I am not able to get it to work. I don't used the Account sync options this time. I created a new device, checket whether I have internet connection and started the Email app. I have to enter my username and password. Then I have 2 Options: Next or Manual Setup. If I choose Next the emulator is not able to connect to the server. I tried Manual Setup, choosed IMAP and edited everything correct (server: imap.gmail.com, SSL, port 995 - also tried using no SSL). The app checks the incoming server settings for many seconds and then the error Unable to open connection to server occurs. I think it could be a bug/issue that should be fixed... I don't know: should I give up or try to get it to work. But I think I've done my steps correct. I can't believe that this is my fault... Thank you very much! -Danny Schimke On Jul 12, 5:00 pm, Sean Hodges seanhodge...@googlemail.com wrote: Don't use the Accounts sync settings to set up the Email app. Those settings are for the Google apps (GMail, Maps, Contacts, etc), not the Email app. Open the Email app and press the Menu button on your emulator, then select Account settings. The Server settings section is at the bottom of the list. On Mon, Jul 12, 2010 at 2:46 PM,DannySchimke danny.schi...@googlemail.com wrote: Hi, IMAP dont work too. I successfully added my Gmail account (Settings Accounts sync Add Account) using server m.google.com. When I start the email app the specified Gmail account is used by it, but I have no chance to edit the Settings for using pop3 or imap (I can change the settings for incoming messages but it does not work, I have to use m.gmail.com without further information to keep the Email app using my account). I tried to send an message but the mail stays in the outgoing directory... I also cannot see my labels and (new) messages in the emulator. In the web I found no solution for this or a similar issue... I tried using SDK 7 and 8! -DannySchimke On Jul 12, 2:51 pm,DannySchimkedanny.schi...@googlemail.com wrote: Hi Sean, first: thank you for supporting me! Some information: In the Eclipse preferences and the Additional Emulator Command Line Options of my project I added the -http-proxyhttp://proxy:3128; property, because I'am behind a proxy. 1. started the emulator device 2. opened the web browser and try to go to http://www.ebay.de; for example - it worked 3. opened Email app and entered email address and password for my Gmail account - clicked Manual setup 4. selected POP3 as account type 5. changed POP3 server to pop.gmail.com and changed security type to SSL (port 995) 6. clicked Next to finish configuration of my mail account - got an error Setup could not finish - Unable to open connection to server When I returne to the browser and try to open a website it does not load... I have to restart the emulator to get (re)access to the internet. IMAP in my Google Mail is activated I'll try to configure via IMAP and give response ;-) Thanks, -DannySchimke On Jul 12, 12:09 pm, Sean Hodges seanhodge...@googlemail.com wrote: I'll take that as a BUMP :) Have you seen this thread?http://www.mail-archive.com/android-port...@googlegroups.com/msg06255... How have you set up your GMail account in the Email app? IMAP? Can you connect to the Web OK using the emulator browser? On Mon, Jul 12, 2010 at 10:55 AM,DannySchimke danny.schi...@googlemail.com wrote: No idea? Thanks a lot! -DannySchimke On Jul 9, 8:38 am,DannySchimkedanny.schi...@googlemail.com wrote: Hello, I configured my gmail account successfully in the emulator. My goal is to respond to incoming messages in the mail account from my own application - for example display notification. I am using the standard mail application that comes with the emulator. I tried to receive mails from my account, but it does not work, there are no conversations in the standard mail application. I can't send and reveive messages from inside the emulator. Why? Thank you very much! -DannySchimke -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are
[android-developers] Re: Android libraries
Thanks Xavier, I'm not sure that I was seeing a refresh problem. Repeated F5 refreshes, on both the library and app project had no effect. On the other hand, I did not have auto refresh set on that machine (I was working on two different machines and only set the option on one) so maybe there's some subtle difference between auto-refresh and F5. In any event, I've now set the global option. I'll let you know if the problem recurs. A related question, too: I'm stuck with a few warning messages in one of my library files. This is bad enough on it's own (my dev style is generally a zero warnings tolerated) but it's worse because Eclipse shows multiple copies of each warning; one for each open app that is using the library. Is there any way to educate Eclipse to treat all mentions of the library as the same? Re shipping in binary form... that's really a pity. It defeats one of the major reasons to use libraries. Any plans to fix this in the future? I'll reply to Mark's message in a moment. Perhaps some merge between Android libraries and his parcels would work well for everyone? David On Jul 12, 9:12 pm, Xavier Ducrohet x...@android.com wrote: On Mon, Jul 12, 2010 at 2:16 AM, deg d...@degel.com wrote: 1) With both projects open in Eclipse, sometimes I make a change to source in the library and rebuild. The .class file gets rebuilt in the library project's bin directory, but not in the bin directory of the main app. This problem persists across multiple builds, and is only fixed when I hit it with a heavy sledgehammer -- cleaning all, or breaking and redoing the library dependency. Once fixed, it behaves ok, at least for many hours. This is a refresh issue. Eclipse doesn't realize that the source in the library and the main project are the same (because linked folder could link to anything), so editing the library source is considered an external modifications for the version in the main project. The fix is not to clean the projects but to refresh them. The best fix is to set your workspace to automatically refresh (in preferences under General Workspace). 2) The key reason I've divided the project into a library and main app is that we need to ship the library portion to 3rd-party developers. But, it looks like there is no way to ship an Android library, except as as source files. How can we ship an Android component to other developers in a binary form? (Source shipments are unacceptable, because of management security concerns). This is not possible at the moment. The reason libraries are handled at the source level is that the R class in the library must be created with all the resources (of the main project + all libraries). Xav -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android libraries
Thanks Mark! Your parcels look VERY interesting. I'll check if I can use them in my admittedly complex app structure. David On Jul 12, 9:17 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jul 12, 2010 at 5:16 AM, deg d...@degel.com wrote: 2) The key reason I've divided the project into a library and main app is that we need to ship the library portion to 3rd-party developers. But, it looks like there is no way to ship an Android library, except as as source files. How can we ship an Android component to other developers in a binary form? (Source shipments are unacceptable, because of management security concerns). FWIW, you could try converting it into a parcel: http://andparcel.com This is still a work-in-progress -- for example, I have some Windows-related bugs to work on tomorrow for the parcel command-line program. However, it allows you to create reusable components where your Java code can be shipped in binary form. Resources still have to be shipped as source, though, as that is unavoidable. -- 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: Force an Application to be alive
Ok will try. Thanks. On Jul 13, 3:54 pm, y 00o00o0o0o000o00o0o0o yszhou4t...@gmail.com wrote: I read the reference and come across this. You can try if it works for you. http://developer.android.com/reference/android/Manifest.permission.ht... sincerely yolilla -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ProgressDialog: Progress indicator not centered if no title/text is passed as parameter
When calling progressDialog = ProgressDialog.show(this, null, null, true); usually the developers wants to only show the progress indication image, and usually would it expect to be centered within the window (at least from regular UI design point of view). However, the image is too far left, it seems that some padding/margin on the right hand side is still being calculated in for (optional) text on the right, although we're not passing any text as parameter. Screenshot: http://android.googlecode.com/issues/attachment?aid=8651271940249741441name=progressIndicator.pngtoken=2d27341b454c113d649fed256b6cc6f9inline=1 I created a feature request for it at: http://code.google.com/p/android/issues/detail?id=9697 So we don't need to create a custom dialog only in order to have the progress indicator being centered by default. The only way to achieve a progress dialog with just a progress indicator image centered in the middle now is by writing a custom dialog, which I now did. But is there any other way or parameter I might have overlooked that I could apply to the standard progress dialog? Please let me know your idea. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Glitch in Eclipse SDK - Can't select Build Target
I believe I have found a glitch in the Eclipse Android SDK. I use my netbook for Android development and have noticed that when I try to create a new project, the Build Target section of the New Android Project dialog is unusable because of the small screen size. My netbook's screen resolution is 1366x768 and you can see what I mean in my screenshot here: http://imagebin.org/105099. Does anyone have any suggestion on how to go about getting this fixed? Eclipse + Android is impossible to use on my netbook because of this bug. (Because the Build target cannot be set, I cannot progress through the dialog to create the project). I'm limited to developing in geany and compiling manually for now. Thanks, Aaron -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mount USB Drive
Hi All, I want my application to automatically mount the phone into USB storage drive if USB cable is connected. Is there code to do it? I tried searching but couldn't find any info on it. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: LDAP connection error
Ah, that's it ! After deleting the http:// of the hostname i got a connection. Thank you very much :) But, on to the next problem. After connecting to the LDAP directory I want to login/bind a user to it. That's the code for the binding: public boolean login(String name, String password) { LDAPConnection connection = new LDAPConnection(); String dn = uid=+name+,OU=employe,OU=user,DC=xyz; try { connection.connect(dc1.xyz, 80); connection.bind(dn, password); return true; } catch (LDAPException e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; } However I get following error: 07-13 11:06:45.908: WARN/System.err(673): LDAPException(resultCode=84 (decoding error), errorMessage='The connection to server dc1.xyz:80 was closed while waiting for a response to a bind request SimpleBindRequest(dn='uid=TP,OU=employe,OU=user,DC=xyz'): Unable to read or decode an LDAP message: Invalid value length of 80 for an ASN. 1 integer element. Integer element values must have a length between 1 and 4 bytes.com.unboundid.asn1.ASN1Exception: Invalid value length of 80 for an ASN.1 integer element. Integer element values must have a length between 1 and 4 bytes.') 07-13 11:06:45.928: WARN/System.err(673): at com.unboundid.ldap.sdk.SimpleBindRequest.handleResponse(SimpleBindRequest.java: 522) 07-13 11:06:45.928: WARN/System.err(673): at com.unboundid.ldap.sdk.SimpleBindRequest.process(SimpleBindRequest.java: 428) 07-13 11:06:45.928: WARN/System.err(673): at com.unboundid.ldap.sdk.LDAPConnection.bind(LDAPConnection.java:1688) 07-13 11:06:45.938: WARN/System.err(673): at com.unboundid.ldap.sdk.LDAPConnection.bind(LDAPConnection.java:1651) 07-13 11:06:45.938: WARN/System.err(673): at com.myApplication.de.login.login(login.java:54) 07-13 11:06:45.948: WARN/System.err(673): at com.myApplication.de.login$1.onClick(login.java:31) 07-13 11:06:45.948: WARN/System.err(673): at android.view.View.performClick(View.java:2408) 07-13 11:06:45.958: WARN/System.err(673): at android.view.View $PerformClick.run(View.java:8816) 07-13 11:06:45.958: WARN/System.err(673): at android.os.Handler.handleCallback(Handler.java:587) 07-13 11:06:45.968: WARN/System.err(673): at android.os.Handler.dispatchMessage(Handler.java:92) 07-13 11:06:45.968: WARN/System.err(673): at android.os.Looper.loop(Looper.java:123) 07-13 11:06:45.978: WARN/System.err(673): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-13 11:06:45.978: WARN/System.err(673): at java.lang.reflect.Method.invokeNative(Native Method) 07-13 11:06:45.988: WARN/System.err(673): at java.lang.reflect.Method.invoke(Method.java:521) 07-13 11:06:45.988: WARN/System.err(673): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 07-13 11:06:45.998: WARN/System.err(673): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-13 11:06:45.998: WARN/System.err(673): at dalvik.system.NativeStart.main(Native Method) Any ideas ? On 12 Jul., 20:33, Neil neil.a.wil...@directorymanager.org wrote: It looks like when you're creating theLDAPconnection, you're supplying a hostname of http://dc1.xyz; and a port of 80. A hostname should simply be a resolvable name and not a URL (e.g., just dc1.xyz). However, it also looks like you're supplying information for a web server rather than a directory server. I would recommend checking your code to ensure that you're actually trying to connect to anLDAPserver and make sure that you just put in the hostname rather than a URL. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Sending and reveiving mails in emulator
On Tue, Jul 13, 2010 at 9:13 AM, Danny Schimke danny.schi...@googlemail.com wrote: Hi, I tried, but I am not able to get it to work. I don't used the Account sync options this time. I created a new device, checket whether I have internet connection and started the Email app. I have to enter my username and password. Then I have 2 Options: Next or Manual Setup. If I choose Next the emulator is not able to connect to the server. I tried Manual Setup, choosed IMAP and edited everything correct (server: imap.gmail.com, SSL, port 995 - also tried using no SSL). The app checks the incoming server settings for many seconds and then the error Unable to open connection to server occurs. I just tested this myself. I entered my email address and password into the Email app and clicked Next, it successfully connected to my GMail account and displayed my inbox. I didn't need to click Manual Setup or change any server settings. My only suggestion is that you might have a firewall running on your PC that is blocking the emulator from accessing certain ports. Try turning any firewall software off on your machine as a test (and remember to check your router/switch settings too). If you are still having a problem then you might be looking at a bug, make sure you have the latest version of the emulator in case it has since been resolved. I think it could be a bug/issue that should be fixed... I don't know: should I give up or try to get it to work. But I think I've done my steps correct. I can't believe that this is my fault... If you believe you have discovered a bug/issue, you should report it. Go to http://b.android.com and log your issue there. I ran a quick search on the issue list for any existing bugs and didn't find any, but have a look yourself in case I missed one. Thank you very much! No problem :) -Danny Schimke On Jul 12, 5:00 pm, Sean Hodges seanhodge...@googlemail.com wrote: Don't use the Accounts sync settings to set up the Email app. Those settings are for the Google apps (GMail, Maps, Contacts, etc), not the Email app. Open the Email app and press the Menu button on your emulator, then select Account settings. The Server settings section is at the bottom of the list. On Mon, Jul 12, 2010 at 2:46 PM,DannySchimke danny.schi...@googlemail.com wrote: Hi, IMAP dont work too. I successfully added my Gmail account (Settings Accounts sync Add Account) using server m.google.com. When I start the email app the specified Gmail account is used by it, but I have no chance to edit the Settings for using pop3 or imap (I can change the settings for incoming messages but it does not work, I have to use m.gmail.com without further information to keep the Email app using my account). I tried to send an message but the mail stays in the outgoing directory... I also cannot see my labels and (new) messages in the emulator. In the web I found no solution for this or a similar issue... I tried using SDK 7 and 8! -DannySchimke On Jul 12, 2:51 pm,DannySchimkedanny.schi...@googlemail.com wrote: Hi Sean, first: thank you for supporting me! Some information: In the Eclipse preferences and the Additional Emulator Command Line Options of my project I added the -http-proxyhttp://proxy:3128; property, because I'am behind a proxy. 1. started the emulator device 2. opened the web browser and try to go to http://www.ebay.de; for example - it worked 3. opened Email app and entered email address and password for my Gmail account - clicked Manual setup 4. selected POP3 as account type 5. changed POP3 server to pop.gmail.com and changed security type to SSL (port 995) 6. clicked Next to finish configuration of my mail account - got an error Setup could not finish - Unable to open connection to server When I returne to the browser and try to open a website it does not load... I have to restart the emulator to get (re)access to the internet. IMAP in my Google Mail is activated I'll try to configure via IMAP and give response ;-) Thanks, -DannySchimke On Jul 12, 12:09 pm, Sean Hodges seanhodge...@googlemail.com wrote: I'll take that as a BUMP :) Have you seen this thread?http://www.mail-archive.com/android-port...@googlegroups.com/msg06255... How have you set up your GMail account in the Email app? IMAP? Can you connect to the Web OK using the emulator browser? On Mon, Jul 12, 2010 at 10:55 AM,DannySchimke danny.schi...@googlemail.com wrote: No idea? Thanks a lot! -DannySchimke On Jul 9, 8:38 am,DannySchimkedanny.schi...@googlemail.com wrote: Hello, I configured my gmail account successfully in the emulator. My goal is to respond to incoming messages in the mail account from my own application - for example display notification. I am using the standard mail application that comes with the emulator. I tried to receive mails from my account,
[android-developers] Re: App Inventor
My initial reaction to this is slight annoyance. I feel undermined! Us developers spend hours, days, weeks, getting to grips with the technologies Android offers and then Google makes these things available to any old non-programmer. I'm hoping it isn't as easy to use as it makes out. Or am I missing the point? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to return to root activity after the task is cleared?
Hi everyone. I have a app with 2 activities, A B A has a button that launches a new intent for B. When at B I press home, then launch app again, B is resumed with onResume(). But if after I press home, I use something like taskiller to clear tasks, then I launch app again, it still shows B, but onCreate() is called. What I want for the second situation is for the app to start A instead of B. How can that be done? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App Inventor
Neliz, don't worry. No silver bullets exists. There will be always significant limitations and it will be easy for simple tasks an unusable for anything more advanced. What I didn't catch is what is output of this app? Is it Eclipse project? Or APK with huge runtime? Unfortunately I have 1.6 device so I can't play with this app. Tom On Tue, Jul 13, 2010 at 11:39 AM, Neilz neilhorn...@gmail.com wrote: My initial reaction to this is slight annoyance. I feel undermined! Us developers spend hours, days, weeks, getting to grips with the technologies Android offers and then Google makes these things available to any old non-programmer. I'm hoping it isn't as easy to use as it makes out. Or am I missing the point? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- --- Tom Hubalek (tom.huba...@gmail.com), http://android.hubalek.net, http://blog.hubalek.net/ http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek http://twitter.com/thubalek, http://twitter.com/android_dev_tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Button Long Click to increase Numeric Text View
Thanks for the response. But I forgot to mention the part that: I want the numeric to increase, say 1 value pr 1/2 sec, while I hold down the button. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] custom cursor adapter
Hello All, I am developing application in which I am using List view and for that list I am using a cursor adapter. I have an sqlite file in assets/databases which is used for reading data and create database. I created database. For cursor adapter I am getting cursor from this database. Here is my code import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; /** * @author Renuka A. * */ public class DataBaseHelper extends SQLiteOpenHelper{ //The Android's default system path of your application database. private static String DB_PATH = /data/data/com.praumtech.names4baby/databases/; private static String DB_NAME = newdata; private static String DB_FILE_NAME = newdata.sqlite; private SQLiteDatabase _database; public static int ALL_NAMES = 0; public static int FAVORITE_NAME = 1; private String FAVORITE_TABLE = favmaster; private String NAME_MASTER_TABLE = namemaster; private final Context _context; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public DataBaseHelper(Context context) { super(context, DB_NAME, null, 1); _context = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws IOException{ boolean dbExist = checkDataBase(); Log.d(Exception, checkDataBase +dbExist); if(dbExist){ //do nothing - database already exist try { String myPath = DB_PATH + DB_NAME; _database = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE); Log.d(Exception, create database to open databse ); } catch (Exception e) { e.printStackTrace(); } }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); Log.d(Exception, in copy database of cretae ); try { _context.openOrCreateDatabase(DB_NAME, 0, null); copyDataBase(); } catch (IOException e) { throw new Error(Error copying database); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); //checkDB = _context.openOrCreateDatabase(DB_NAME, null, SQLiteDatabase.OPEN_READWRITE); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transfering bytestream. * */ private void copyDataBase() throws IOException{ try { //Open your local db as the input stream Log.d(Exception, in copy database +_context.getAssets().list(databases).length); String[] str = _context.getAssets().list(databases); /*for(int i = 0 ; i str.length; i++){ Log.d(Exception, i +i+ +str[i]); }*/ InputStream myInput = _context.getAssets().open(databases/+DB_FILE_NAME); //Log.d(Exception, in copy database +myInput.available()); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //Log.d(Exception, in copy database output file +myOutput.toString()); //transfer bytes from the inputfile to the outputfile byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer))0){ myOutput.write(buffer, 0, length); } //Close the streams myOutput.flush(); myOutput.close();
[android-developers] Support ECIES encryption?
Hello. Does Java API of Android support the ECIES encryption? If it is, can anyone inform the reference or sample code for it? Regards, Ricos. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] main screen and dialog box on that screen
I have to used to alertdialog box. On Mon, Jul 12, 2010 at 9:07 PM, TreKing treking...@gmail.com wrote: On Mon, Jul 12, 2010 at 5:59 AM, Narendra Bagade bagadenaren...@gmail.com wrote: Can anyone help me on this? You may want to elaborate on your use case. What's the point of the dialog? Why do you need to keep both dialog and window active? Can you use a notification instead? - TreKing - Chicago transit tracking app for Android-powered devices http://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 -- Regards, Narendra B 9422785229, Nagpur. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: custom cursor adapter
I got the solution. I was happening because cursor adapter should has _id column in table it is using. if we use Database(SQLite) in Android Applications, it is better to add a column named _id to all tables to use CursorAdapter. Or you need to write sql state select member_id as _id from member _table where . to get Cursor. You can find this matter at Android Developer Sitehttp://developer.android.com/intl/ja/reference/android/widget/CursorAdapter.html Adapter that exposes data from a Cursor to a ListView widget. The Cursor must include a column named _id or this class will not work. On Tue, Jul 13, 2010 at 3:27 PM, Renuka Deshpande renukanil.deshpa...@gmail.com wrote: Hello All, I am developing application in which I am using List view and for that list I am using a cursor adapter. I have an sqlite file in assets/databases which is used for reading data and create database. I created database. For cursor adapter I am getting cursor from this database. Here is my code import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; /** * @author Renuka A. * */ public class DataBaseHelper extends SQLiteOpenHelper{ //The Android's default system path of your application database. private static String DB_PATH = /data/data/com.praumtech.names4baby/databases/; private static String DB_NAME = newdata; private static String DB_FILE_NAME = newdata.sqlite; private SQLiteDatabase _database; public static int ALL_NAMES = 0; public static int FAVORITE_NAME = 1; private String FAVORITE_TABLE = favmaster; private String NAME_MASTER_TABLE = namemaster; private final Context _context; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public DataBaseHelper(Context context) { super(context, DB_NAME, null, 1); _context = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws IOException{ boolean dbExist = checkDataBase(); Log.d(Exception, checkDataBase +dbExist); if(dbExist){ //do nothing - database already exist try { String myPath = DB_PATH + DB_NAME; _database = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE); Log.d(Exception, create database to open databse ); } catch (Exception e) { e.printStackTrace(); } }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); Log.d(Exception, in copy database of cretae ); try { _context.openOrCreateDatabase(DB_NAME, 0, null); copyDataBase(); } catch (IOException e) { throw new Error(Error copying database); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ SQLiteDatabase checkDB = null; try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); //checkDB = _context.openOrCreateDatabase(DB_NAME, null, SQLiteDatabase.OPEN_READWRITE); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false; } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transfering bytestream. * */ private void copyDataBase() throws IOException{ try { //Open your local db as the input stream Log.d(Exception, in copy database +_context.getAssets().list(databases).length); String[] str = _context.getAssets().list(databases); /*for(int i = 0 ; i str.length; i++){ Log.d(Exception, i +i+ +str[i]); }*/ InputStream myInput =
[android-developers] Re: Force an Application to be alive
I believe you might want to use a service. http://developer.android.com/reference/android/app/Service.html On Jul 13, 3:49 am, perumal316 perumal...@gmail.com wrote: Hi All, I am writing an application to do fileobservation which can be done. Is there any way I can make the application to run in the background without killing it? Unless user restart the phone. Is there any way to do it? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 contacts (again)
Is it possible to create a generic android application that uses contacts (though a contentResolver) that will run on all android versions 1.5 ? I have backward compatibility issues where f.i. my HTC Hero which is upgraded to Android 2.1 is not able to use the People.CONTENT_URI even though this is meant to be deprecated - not unsupported! If I include the new API style ContactsContract.Contacts.CONTENT_URI (with or without a check on the Build.SDK_VERSION to alternatively load the old style URI - similar to the Businesscard example - http://developer.android.com/resources/samples/BusinessCard/index.html) I would still have to set up Eclipse to use the Android 2.1 libraries. Would this application still run on an Android 1.5 device if I keep the minsdkversion in the manifest at 3? I would like to avoid having to branch my application, create 2 eclipse projects and release 2 different applications. Any advice on this? Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Button Long Click to increase Numeric Text View
I do something similar... onLongClick - Start a thread/timer in Timer/Thread - increment value, reschedule timer onTouchListener.OnTouch() - detect MotionEvent.ACTION_UP and stop the timer Hope that helps, sounds like you're on the right track. On Jul 13, 5:48 am, Kris Skarbø kris.ska...@gmail.com wrote: Thanks for the response. But I forgot to mention the part that: I want the numeric to increase, say 1 value pr 1/2 sec, while I hold down the button. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Support ECIES encryption?
I don't think it's natively supported... But there's some sample java code here: http://www.flexiprovider.de/examples/ExampleECIES.html Might not help, I think they use 3rd party libraries, but perhaps it's a good place to get started. On Jul 13, 5:58 am, ricos rigc8...@gmail.com wrote: Hello. Does Java API of Android support the ECIES encryption? If it is, can anyone inform the reference or sample code for it? Regards, Ricos. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Force an Application to be alive
On Tue, Jul 13, 2010 at 3:49 AM, perumal316 perumal...@gmail.com wrote: I am writing an application to do fileobservation which can be done. Is there any way I can make the application to run in the background without killing it? No, sorry. Anything can be killed by the user or the operating system. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming 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
Re: [android-developers] Mount USB Drive
On Tue, Jul 13, 2010 at 5:09 AM, perumal316 perumal...@gmail.com wrote: I want my application to automatically mount the phone into USB storage drive if USB cable is connected. Is there code to do it? I tried searching but couldn't find any info on it. I am not aware of any public APIs for that, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming 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: IP infringements on the Market
Dipu, For example I took a picture of a globe and edited the image and put it as an app icon. Strictly speaking that could be a problem unless the original globe image is available to you under some free license. I was in the exact same situation, wanting a globe image for one of my app icons. I purchased a license to use one (in this case the cheapest I could find was from graphicriver.net). I similarly purchase licenses for other images from stock image web sites, and they generally do not come cheap in comparison to the revenues generated from my apps. I have copied icons that come with the simulator and modified them and bundled with my app. I don't know about the legality of that but I doubt that google would bother about it. For my next game app I am getting tempted to put some Disney characters. Are these actions violating any laws? That would likely be a copyright violation. As I mentioned earlier, I asked Disney for permission to use Disney characters in my apps and they outright refused. So as far as I can tell, there is no way for small developers to legally use Disney content in their apps. These are my pet projects. I cannot afford to dig much into these concerns. It will be great if someone in this forum tell me some general guidelines. I completely understand that, I find that it takes substantial efforts to get these matters right. The only guideline I can offer is that unless you explicitly have a licence to use the graphics you want, you are likely to infringe on some copyright. That said, many developers don't seem to care and the risk doesn't seem to be great. The problem, in my view, is developers who consistently and very obviously violate copyrights, e.g. by basing an entire game on a Disney theme, and by doing so gain unfair competitive advantages. Cheers, Michael. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Radar View
Hi, i want to display a radar view on my app using gps i found this piece of code /* Intent i = new Intent(com.google.android.radar.SHOW_RADAR); i.putExtra(latitude, 37.422f); i.putExtra(longitude, -122.084f); startActivity(i);*/ but i doesn't realldy work with me,is there any library/pack to add? i'll be grateful for your help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Force an Application to be alive
However you might be able to set up a broadcast receiver for different system events that would at least restart your service in case its down. For example listening to the boot, phone being plugged into power, etc.. Nadav On Jul 13, 7:44 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 13, 2010 at 3:49 AM, perumal316 perumal...@gmail.com wrote: I am writing an application to do fileobservation which can be done. Is there any way I can make the application to run in the background without killing it? No, sorry. Anything can be killed by the user or the operating system. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming 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
Re: [android-developers] How can i make contacts backups to vcard file?
On Mon, Jul 12, 2010 at 3:56 AM, Bin Dou doubin...@gmail.com wrote: How can i make contacts backups to vcard file through programming? Get a list of contracts. Convert each contact to vcard format. Save all the data you converted. Do all this through programming. If you want a better answer than that you'll have to ask a better question. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to read calendar
On Mon, Jul 12, 2010 at 11:34 AM, Chrystian Vieyra chrys.vie...@gmail.comwrote: http://developer.android.com/reference/java/util/Calendar.html I sincerely hope you're being sarcastic ... - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Changing Main/Launch activity
I think I already know the answer to this, but I just wanted to confirm (I think no horrible ramifications): Are there any ramifications to changing the MAIN/LAUNCHER tags in the manifest to a different activity? See example below: (original manifest segment) --- activity android:name=.MyAppMain android:label=@string/app_name android:theme=@android:style/ Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.MySecondActivity android:label=@string/numbertwo android:theme=@android:style/Theme.NoTitleBar /activity (new manifest segment) activity android:name=.MyAppMain android:label=@string/app_name android:theme=@android:style/ Theme.NoTitleBar /activity activity android:name=.MySecondActivity android:label=@string/numbertwo android:theme=@android:style/Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity Thanks, Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to disconnect the incomming call
i have done this ,,now am trying to make conference of two calls...does nybody know how to do this, On Sun, Jul 11, 2010 at 12:18 AM, Denzil Ferreira (dferreira) lizned.arier...@gmail.com wrote: So that means that we can't make a call manager? Like incoming call - voicemail / reject call automatically and such? On Jul 9, 4:49 pm, Matt matthew.quig...@gmail.com wrote: That seems like something that the Android OS would NOT want an application to be able to do. So I doubt it's possible. On Jul 9, 6:30 am, A N K ! T ankit.awasth...@gmail.com wrote: hey am trying to disconnect the incomming call can anybody help me in this .. -- Thanks 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Ankit Awasthi Bangalore Contact No.: 07676955989 E-mail: ankit.awasth...@gmail.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] calling open method from service
thanks i got the error and solved it too.. On Fri, Jul 9, 2010 at 11:42 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jul 8, 2010 at 3:26 AM, A N K ! T ankit.awasth...@gmail.com wrote: hey all... am new in android developement,am trying to call open(); method for database to open...from on create of service but its showing runtime error.. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your error. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Ankit Awasthi Bangalore Contact No.: 07676955989 E-mail: ankit.awasth...@gmail.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] Launch an Activity Form a Service
i'd like to Launch an Activity Form a Service. I know that this is not best practice for android however i am creating an application that is just a service and the first time it runs the user needs to accept some terms and conditions (this is the activity i need to launch). Can any one help me some code to do this? Is it possible? 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] how to merge two calls(conferencing) by coding.....and how to make my application in front then the dialer screen(OEM)
am not getting how to do these two task... how to merge two calls(conferencing) by coding. and how to make my application in front then the dialer screen(OEM) -- Thanks Regards Ankit Awasthi Bangalore Contact No.: 07676955989 E-mail: ankit.awasth...@gmail.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: Mount USB Drive
I do not know how to do it but it must be possible since apps like DoubleTwist can do this. On Jul 13, 11:09 am, perumal316 perumal...@gmail.com wrote: Hi All, I want my application to automatically mount the phone into USB storage drive if USB cable is connected. Is there code to do it? I tried searching but couldn't find any info on it. Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launch an Activity Form a Service
On Tue, Jul 13, 2010 at 9:15 AM, Boozel boozelcl...@gmail.com wrote: i'd like to Launch an Activity Form a Service. I know that this is not best practice for android however i am creating an application that is just a service and the first time it runs the user needs to accept some terms and conditions (this is the activity i need to launch). What do you think is going to cause the service to run in the first place? Can any one help me some code to do this? Is it possible? You can call startActivity() from a Service. However, you are going to get a lot of one-star ratings on the Market if you just pop up a set of terms and conditions unannounced. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming 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
Re: [android-developers] change image onConfigurationChanged
If i use setContentView in onConfigurationChanged it works but i have to get all views from layout again. Any other ideas ? On Mon, Jul 12, 2010 at 4:46 PM, Martin Obreshkov manig...@gmail.comwrote: Nothing happens still the image from portrait view is shown On Mon, Jul 12, 2010 at 4:41 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jul 12, 2010 at 9:31 AM, Martin Obreshkov manig...@gmail.com wrote: @Override public void onConfigurationChanged(Configuration conf) { super.onConfigurationChanged(conf); mImageView.setImageDrawable(getResources().getDrawable(mBackgroundDrawableId)); } On a whim, try mImageView.setImageResource(mBackgroundDrawableId); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Running an application that is not installed on Android
I'm trying to load and run an Android application that is not installed, so I have been reading Android source code to find if it will help me to do it. What I reached some calls that I think might do the jop: new Instrumentation().newApplication(Class, Context) and to create an ApplicationContext there is ApplicationContextObject.init(Resources, ActivityThread) to get Resources I used DexClassLoader to load the not installed .apk next I want to create an ActivityThread object and the code is there is huge and I enter into lots of other classes and get lost would someone help me and say if I'm going in the right way? and if so how to create ActivityThread? I fear that there would be a simple solution that I can't see -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hiding apps with bluetooth permissions from Android 1.5 and 1.6
Actually even though pre 2.0 devices don't support bluetooth fully - you can make your apps backward compatible. Which of course my apps are. It's a mistake by Google to now filter them from the market for 1.5 and 1.6 devices. The apps require the bluetooth permissions - they do not require the bluetooth feature. There is a difference. It seems now the requires feature option is being introduced into the manifest for 2.2 an assumption is being made that apps that require the permission also require the feature... So if your app happens to support some bluetooth function for users with android 2+ you have also just managed to loose 50% of users because they can no longer see your app. Btw this only happens for updated apps, if you already have an app on the market it will be ok until you update it. On Jul 13, 5:24 am, DonFrench dcfre...@gmail.com wrote: I guess the lack of API support for Bluetooth is the reason Google doesn't show Bluetooth-capable apps for pre-2.0 devices? Out of curiosity, what are you doing to get around the lack of Bluetooth support in the APIs prior to 2.0? On Jul 10, 5:33 am, Joe samuel.law...@gmail.com wrote: Hi I released updates of my apps yesterday and they are being hidden from android 1.5 and 1.6 phones. This is due to a Market bug which hides apps with bluetooth permissions from android 1.5 and 1.6. Come on Google fix the market. We spend countless hours making are apps work on ALL android versions and now you do this... This issue has been raised since June, but has only affected me since i made an update to the market yesterday. I am now have annoyed customers and i am missing out on what 50% of users because of the flakey market... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I find unneeded permission?
Actually, I can imagine two very common cases: 1) Code or even functionality is changed in an application, possibly in some minor way. The developer does not realize that he has removed the last SDK call using a permission. The permission lingers on in the manifest. It doesn't do much harm, but add minor bloat and maybe scares aways some users. 2) A developer adds a new feature, and does not realize that a permission is needed. Best case, he catches this immediately when testing, but still wastes time and annoyance on an extra compile/ deploy/test cycle. It seems that it would not be too hard to annotate the SDK and and a static permissions check to the build cycle. I can imagine pathological cases, but this should catch 99% of the problems. David On Jul 12, 9:39 pm, TreKing treking...@gmail.com wrote: On Sat, Jul 10, 2010 at 2:26 PM, deg d...@degel.com wrote: (I know that I can remove all permissions and then repeatedly test each code path, reinstating each missing permission that causes the app to malfunction. But, surely, there is a better way!) Actually, I really doubt it. You'd need some tool to evaluate your code, see what SDK functions you are using, and validate that you have the associated permissions, if any. I'm not aware of any such tool nor any reason to make one, save for rare instances like this. --- -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a new account type for using exsiting providers
On Mon, Jul 12, 2010 at 3:25 AM, MG manigu...@tataelxsi.co.in wrote: I want to create a new account type for gmail. I, personally, have no idea what this means or what you're trying to do. You may want to elaborate your question to get a good response. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Block Text
On Mon, Jul 12, 2010 at 3:54 PM, ranjan ar ranjan@gmail.com wrote: I want to block incoming and outgoing Text (as well as email). Don't know for sure, but I doubt this is possible. Also, this: mContext=this; is just silly. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL ES libraries
I looked around for info on this in the group but couldn't find any... so far in my OpenGL programming I've just done everything directly, but I was curious if anyone had written any wrapper libraries for it besides min3d. Min3d is great (or is getting there) but it's GPL'd, making it unsuitable for a commercial product (if my understanding of the license is correct). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gift apps page for android
On Mon, Jul 12, 2010 at 5:40 PM, papagato das...@delartepr.com wrote: Exits a Gift Page to pay for apps aand sent the app to my friends?? Nope. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Block Text
I'm not exactly sure why you would want to do this... What are you doing with calls? Maybe you can get away with turning off/disabling all radios? (I don't know how feasible this is). Maybe you just want to block the notifications, and not the actual messages? On Jul 12, 4:54 pm, ranjan ar ranjan@gmail.com wrote: Hello, I want to block incoming and outgoing Text (as well as email). I am using the broadcast receiver that is not blocking the text but its blocking the outgoing calls. Can some one help me. Thank you. Here is the piece of code that blocks the SMS. - public void onReceive(Context context, Intent intent) { mContext=this; String actionType = intent.getAction(); if ((actionType.equals(Intent.ACTION_SEND))) { setResultData(null); // I tried with abortBroadcast(); this didn't work either } } --- My androidmanifest has all the permissions required. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] drawing lines on top of a image view
I am trying to put a background image and draw on top of that screen. I assumed activity will have a on draw method, but it does not have. it seems i need to use surfaceview. Can I put a surfaceview on top of the image view and make it transparent ? any example/tutorial i can refer to ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] RadioGroup
On Mon, Jul 12, 2010 at 11:18 PM, perumal316 perumal...@gmail.com wrote: Any idea how to resolve this? Not based on the little information you've posted. In particular nothing happens is not really useful information. Provide more details on how you've set this up, what you've seen by debugging, and what you've tried thus far. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] drawing lines on top of a image view
Could you explain a bit more ? If I 'm not getting you wrong.. Then just set android:background property for the root Layout in your xml. On Tue, Jul 13, 2010 at 8:53 PM, Jags jag...@gmail.com wrote: I am trying to put a background image and draw on top of that screen. I assumed activity will have a on draw method, but it does not have. it seems i need to use surfaceview. Can I put a surfaceview on top of the image view and make it transparent ? any example/tutorial i can refer to ? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Thanks for Cooperating! Anil Kukreti Network transforms ideas to reality. 09312646623 Linked In : http://in.linkedin.com/in/anilkukreti Skype Id : anil.kleward -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] RadioGroup
use the setChecked(boolean) method for particular radiobutton which you want to get selected on clicking submit button On Tue, Jul 13, 2010 at 9:48 AM, perumal316 perumal...@gmail.com wrote: Hi All, In my application I have a RadioGroup within which has 2 RadioButtons Then I have another 'submit' button. Upon clicking submit button I want to do tasks based on which button is selected in the RadioGroup. I can do this when there is no RadioGroup involved and there are only 2 buttons but with RadioGroup nothing happens when I click submit button. Any idea how to resolve 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks for Cooperating! Anil Kukreti Network transforms ideas to reality. 09312646623 Linked In : http://in.linkedin.com/in/anilkukreti Skype Id : anil.kleward -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Bounce animation
Can someone please comment on this? Also, when height of one vertical list item is increased, it should result in the slide animation of the rest of the items in the list view (basically other items should slide down). I have noticed that list view does not support this, but any other suggestions on what is the best approach to achieve this? Thanks, Sandy On Jul 12, 5:38 pm, Sandy snarr...@gmail.com wrote: I've noticed that in froyo on nexus 1, app menu thumbnail list can be scrolled up and down and, as it's scrolled, the applications roll up into a 3D cube instead of disappearing from the screen. Once the bottom of the application thumbnail list is hit, the screen bounces off similar to the iPhone functionality. Is the bounce effect at the boundaries of the list available on a vertical ListView? If not, is it easy to customize this in on vertical lists? Thanks, Sandy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: multiple mapviews
On Tue, Jul 13, 2010 at 12:31 AM, rukiman ruksh...@optushome.com.au wrote: Any way I can implement this? Idea: Override onDraw() on the MapView (or Activity, or wherever), set the parameters you need (location, zoom level) to draw scaled down, draw to a canvas or bitmap, scale up, draw again to a new canvas or bitmap, then stitch the two together somehow. Fill in the specific, more complicated details from there =). - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] main screen and dialog box on that screen
On Tue, Jul 13, 2010 at 5:06 AM, Narendra Bagade bagadenaren...@gmail.comwrote: I have to used to alertdialog box. OK. Yet you have not provided any more information to help us help you. Good luck. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Easy and fast XML Parser?
The choice between SAX and DOM is partly one of simplicity vs speed/ compactness, and partly a matter of what sort of consumption model you have. If you're only going to scan through the XML once, and you know what data you want, and it's pretty well formed (you know precisely what order elements will be in, etc) then SAX is good. If you need to keep referring to the data, or you need to extract data from documents that may be a bit disordered (with elements in varying order, extraneous elements, etc) then DOM is a lot simpler. But, yes, DOM does take up a fair amount of storage -- no hard numbers but I'd guess easily 20-50 times the size of the XML file. On Jul 12, 6:51 pm, Indicator Veritatis mej1...@yahoo.com wrote: SAX is faster than DOM. Easier too, if you don't mind viewing everything as event driven. Rumor has it there is something faster, but I am not convinced it is anything more than rumor. But do a Google search xml parser sax dom faster and see if you think Piccolo or NanoXML are worth checking out. I would stick with SAX though, until these newer ones have been reviewed and proven not to have major omissions and bugs. Besides: SAX and DOM are already in Android. If you choose one of the others, even Apache's Betwixt or Xerces, you will have to include it as an extra Jar in your build. On Jul 12, 12:30 pm, Siva siva.d...@gmail.com wrote: Can anyone tell me the easy and fastest XML Parser? I need guide/sample code... please help 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: Newbie befuddlement -- wrong text in HelloWorld type app
Being a veteran, I figured it was some sort of stupid error. But also being a veteran I knew that you can muddle around for a long time before you figure out such things. (It would help if the text were more like This is the default text for application .) On Jul 12, 11:43 pm, Frank Weiss fewe...@gmail.com wrote: Congratulations! I think most veteran programmers have had similar experiences with their first Android application. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: App launching
Perfect ! Thanks very much Brad. Currently when my javascript modules send out messages, my app intercepts them manipulates them and then returns them to the open socket that the javascript was writing to. Would this be possible in Android? I will play with what you are suggesting below and see how it goes. Thanks again On Jul 12, 8:20 pm, Brad Gies rbg...@gmail.com wrote: Yes, you can read pages stored on the phone: I'm using index.html here. Put it into your assets folder : webView = (WebView) spinnerView.findViewById(R.id.spinnerviewwebview); webView.getSettings().setJavaScriptEnabled(true); webView.addJavascriptInterface(new AndroidBridge(), android); webView.setVerticalScrollBarEnabled(false); webView.setWebChromeClient(new WebChromeClient() { public void onConsoleMessage(String message, int lineNumber, String sourceID) { } }); webView.loadUrl(file:///android_asset/index.html); The above also sets the WebView up to use Javascript. On 12/07/2010 2:10 PM, kypriakos wrote: In this case below, the URL can only be public and remote? I could not read a page stored locally on the phone - or is storing files locally not an option? Uri uri = Uri.parse(http://www.example.com;); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); Thanks On Jul 12, 3:21 pm, Mark Murphymmur...@commonsware.com wrote: On Mon, Jul 12, 2010 at 3:10 PM, kypriakosdemet...@ece.neu.edu wrote: Instead of launching a UI I was wondering if I could have a process monitor the execution of a javascript in the emulator's browser and read in the output data. Is it possible to execute a local javascript file using the phone's browser? You can use WebView, but only from an Activity. If you want to embed a Javascript interpreter, you can consider Rhino. -- 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 -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://www.bgies.comhttp://www.bistroblurb.comhttp://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: drawing lines on top of a image view
If you want to draw on top of an ImageView, I would extend it and override it's onDraw method. This provides you a [relative] canvas to draw on. Just be sure to call super.onDraw() if you want the image to show up also. On Jul 13, 11:23 am, Jags jag...@gmail.com wrote: I am trying to put a background image and draw on top of that screen. I assumed activity will have a on draw method, but it does not have. it seems i need to use surfaceview. Can I put a surfaceview on top of the image view and make it transparent ? any example/tutorial i can refer to ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hiding apps with bluetooth permissions from Android 1.5 and 1.6
I posted on this week or so ago, guess it will affect more and more developers with time. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Newbie befuddlement -- wrong text in HelloWorld type app
Hah... I agree... but I would add this Hello World (change in strings.xml) I'm also one of the many veteran programmers that came from other languages that struggled with that message for a couple of hours... (more than once actually). On 13/07/2010 9:34 AM, DanH wrote: Being a veteran, I figured it was some sort of stupid error. But also being a veteran I knew that you can muddle around for a long time before you figure out such things. (It would help if the text were more like This is the default text for application .) On Jul 12, 11:43 pm, Frank Weissfewe...@gmail.com wrote: Congratulations! I think most veteran programmers have had similar experiences with their first Android application. -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://www.bgies.com http://www.bistroblurb.com http://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 disconnect the incomming call
On Jul 13, 2:13 pm, A N K ! T ankit.awasth...@gmail.com wrote: i have done this And how did you manage that ? This question comes up very regularly on here so I'm sure many people are interested. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 libraries
On Tue, Jul 13, 2010 at 1:33 AM, deg d...@degel.com wrote: A related question, too: I'm stuck with a few warning messages in one of my library files. This is bad enough on it's own (my dev style is generally a zero warnings tolerated) but it's worse because Eclipse shows multiple copies of each warning; one for each open app that is using the library. Is there any way to educate Eclipse to treat all mentions of the library as the same? Not with the current implementation (linked folders). I haven't found anything (yet?) that allows me to do what I want without creating a linked folder in the main project. JDT is not flexible enough for this. Re shipping in binary form... that's really a pity. It defeats one of the major reasons to use libraries. Any plans to fix this in the future? We don't have any plan at this time, but I hope to look into it later this year. I'll reply to Mark's message in a moment. Perhaps some merge between Android libraries and his parcels would work well for everyone? This is a possibility. Xav -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Glitch in Eclipse SDK - Can't select Build Target
This was fixed already. Make sure to update to the last ADT. Xav On Tue, Jul 13, 2010 at 2:09 AM, AS aurillia...@gmail.com wrote: I believe I have found a glitch in the Eclipse Android SDK. I use my netbook for Android development and have noticed that when I try to create a new project, the Build Target section of the New Android Project dialog is unusable because of the small screen size. My netbook's screen resolution is 1366x768 and you can see what I mean in my screenshot here: http://imagebin.org/105099. Does anyone have any suggestion on how to go about getting this fixed? Eclipse + Android is impossible to use on my netbook because of this bug. (Because the Build target cannot be set, I cannot progress through the dialog to create the project). I'm limited to developing in geany and compiling manually for now. Thanks, Aaron -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Launch an Activity Form a Service
its a service packaged as a .jar so it can be included in other peoples applications so they will start it and it only needs to pop up once in the life on the app. What is the first parameter i must give to the initial intent deceleration? i've tried this: Intent test = new Intent(,TsandCs.class); can you suggest a better way to do this? thanks On Jul 13, 3:21 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 13, 2010 at 9:15 AM, Boozel boozelcl...@gmail.com wrote: i'd like to Launch an Activity Form a Service. I know that this is not best practice for android however i am creating an application that is just a service and the first time it runs the user needs to accept some terms and conditions (this is the activity i need to launch). What do you think is going to cause the service to run in the first place? Can any one help me some code to do this? Is it possible? You can call startActivity() from a Service. However, you are going to get a lot of one-star ratings on the Market if you just pop up a set of terms and conditions unannounced. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming 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
Re: [android-developers] Re: App launching
You can use the WebChrome to do almost anything you want with Javascript. Sorry, I wasn't clear on exactly what you wanted to do, but here is stripped down version of one my Android Bridge Classes. Each function is called from Javascript. I should have also included the index.html file, so I added it below. Just compare the function names in the Bridge, and you will get the idea... Oh, probably should have also mentioned that your .css and .js files also go into the assets folder.. Of course.. most of the function names are my own functions.. so change to yours : private class AndroidBridge { public void sendResults(final String arg) { if (handler != null) { HotSharedFunctions sharedFunctions = new HotSharedFunctions(); sharedFunctions.SendMessage(handler, BistroSharedStatic.MESSAGE_LOCATION_CHOSEN, 0, 0, arg); sharedFunctions = null; } } public void getParams(final int cellHeight, final int numberOfValues, final int wrapperTop) { scrollCellHeight = cellHeight; numValues = numberOfValues; divTop = wrapperTop; setupTimer(); } public void readyForJavascript(final String arg) { webView.loadUrl(javascript:SpinningWheel.addSlot( + valuesString + , 'center', 2);); webView.loadUrl(javascript:SpinningWheel.setPosition(0, 2);); if (sdkVersion 5) { webView.loadUrl(javascript:getSpinnerValues(1);); } else { webView.loadUrl(javascript:getSpinnerValues(0);); } } } INDEX.HTML html head meta http-equiv=Content-Type content=text/html; charset=utf-8 / link rel=stylesheet href=spinningwheel.css type=text/css media=all / script type=text/javascript src=spinningwheel.js?v=1.4/script title/title script type=text/javascript function getData() { var results = SpinningWheel.getSelectedValues(); window.android.sendResults(results.values.join(' ') ); } function getSpinnerValues(lowerSDKVersion) { var cellHeight = SpinningWheel.cellHeight; if (lowerSDKVersion == 1) { SpinningWheel.swSlotWrapper.style.height = (cellHeight * 16); } var numberofValues SpinningWheel.slotData[0].length; var wrapperTop = SpinningWheel.swSlotWrapper.style.top; window.android.getParams(cellHeight, numberofValues, wrapperTop); } function notifyAndroid() { window.android.readyForJavascript(''); } /script /head body onload=javascript:notifyAndroid()/body /html On 13/07/2010 9:43 AM, kypriakos wrote: Perfect ! Thanks very much Brad. Currently when my javascript modules send out messages, my app intercepts them manipulates them and then returns them to the open socket that the javascript was writing to. Would this be possible in Android? I will play with what you are suggesting below and see how it goes. Thanks again On Jul 12, 8:20 pm, Brad Giesrbg...@gmail.com wrote: Yes, you can read pages stored on the phone: I'm using index.html here. Put it into your assets folder : webView = (WebView) spinnerView.findViewById(R.id.spinnerviewwebview); webView.getSettings().setJavaScriptEnabled(true); webView.addJavascriptInterface(new AndroidBridge(), android); webView.setVerticalScrollBarEnabled(false); webView.setWebChromeClient(new WebChromeClient() { public void onConsoleMessage(String message, int lineNumber, String sourceID) { } }); webView.loadUrl(file:///android_asset/index.html); The above also sets the WebView up to use Javascript. On 12/07/2010 2:10 PM, kypriakos wrote: In this case below, the URL can only be public and remote? I could not read a page stored locally on the phone - or is storing files locally not an option? Uri uri = Uri.parse(http://www.example.com;); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); Thanks On Jul 12, 3:21 pm, Mark Murphymmur...@commonsware.comwrote: On Mon, Jul 12, 2010 at 3:10 PM, kypriakosdemet...@ece.neu.eduwrote: Instead of launching a UI I was wondering if I could have a process monitor the execution of a javascript in the emulator's browser and read in the output data. Is it possible to execute a local javascript file using the phone's browser? You can use WebView, but only from an Activity. If you want to embed a Javascript interpreter, you can consider Rhino. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
[android-developers] Fixing a performance issue on a financial calculator program
I am writing a financial calculator and part of my code is printing out an amortization table for 25 - 30 years. Some times there can be up to 2000 rows on the page. Here is my code to do this part: - void updateAmort(){ Debug.startMethodTracing(amort); tl.removeAllViews(); int loops = myMortgage.getLoops(); int j=0; ArrayListString[] tribbleList = myMortgage.getAmort(); for (int i=0;iloops;i=i+k){ String[] tribble = (String[]) tribbleList.get(i); TableRow junk =new TableRow (this); tl.addView(junk, j); for (int f=0;f6;f++) { TextView junk2 = new TextView (this); junk2.setText(tribble[f]); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); Float width = metrics.density*82; int pixelsint = width.intValue(); if (f==3) { junk2.setClickable(true); } junk2.setWidth(pixelsint); junk2.setTextSize(1, 9); junk2.setTypeface(Typeface.MONOSPACE); junk2.setTextColor(Color.BLACK); junk.addView(junk2); } j++; } Debug.stopMethodTracing(); } } -- I wasn't sure whether to attach my trace file. I can if anyone is interested. What I was hoping was now that I have learned a bunch about the android system I am trying to tighten up my performance. Can anyone offer some hints on how this code can be executed quicker? The data is in an ArrayList of Strings and I just print them out one by one. Should I try to add them as the person scrolls down? Any other ways to make it more user friendly...I saw a mention of a progress bar in my looking in the android development site..should I add one of those? Any other comments for someone who hasn't coded since Protel was king?? Connie -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Radar View
On Tue, Jul 13, 2010 at 7:57 AM, ENSI nouha.khy...@gmail.com wrote: i found this piece of code Found where? On the floor? In your pocket? Between the sofa cushions? /* Intent i = new Intent(com.google.android.radar.SHOW_RADAR); i.putExtra(latitude, 37.422f); i.putExtra(longitude, -122.084f); startActivity(i);*/ but i doesn't realldy work with me,is there any library/pack to add? Did this piece of code you found come commented out? Because that would be my first clue that is does not work. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Changing Main/Launch activity
On Tue, Jul 13, 2010 at 8:08 AM, Justin jtgi...@gmail.com wrote: Are there any ramifications to changing the MAIN/LAUNCHER tags in the manifest to a different activity? I *think* I remember seeing people post about issues where they removed or renamed the main activity and the launcher icons failed to load the app because they were trying to reference the old activity, which no longer existed. If yours is still there, just no longer the main, I guess worst case would be that the launch icons continue to load the old activity. If it were me, I would tell my users to uninstall the previous version of the app just in case. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Launch an Activity Form a Service
Intent i = new Intent( Intent.ACTION_MAIN ); // don't think main is necessary actually :) i.setComponentName( new ComponentName( pkgname, activityclassname ) ); i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); i.addFlags( Intent.FLAG_FROM_BACKGROUND); try { startActivity( i ); } catch ( ActivityNotFoundException e ) { } If the user has just left an app via Home, you might find it takes 5 seconds for your activity to appear. An Android bug I logged about 9 months ago, grouse grouse :) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Launch an Activity Form a Service
sorry i realized i dont need a first parameter. When i run the app though i get an error that says No Activity found to handle intent i know this is a manifest problem my is shown below, ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.packagename android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.BbClient android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity service android:name=.BbService/ activity android:name=.TsandCs/activity /application /manifest i read one of your older posts here http://www.mail-archive.com/android-beginn...@googlegroups.com/msg10539.html how exactly would i apply that to this mainfest. Thank you for your help, your support is great. On Jul 13, 7:00 pm, Boozel boozelcl...@gmail.com wrote: its a service packaged as a .jar so it can be included in other peoples applications so they will start it and it only needs to pop up once in the life on the app. What is the first parameter i must give to the initial intent deceleration? i've tried this: Intent test = new Intent(,TsandCs.class); can you suggest a better way to do this? thanks On Jul 13, 3:21 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 13, 2010 at 9:15 AM, Boozel boozelcl...@gmail.com wrote: i'd like to Launch an Activity Form a Service. I know that this is not best practice for android however i am creating an application that is just a service and the first time it runs the user needs to accept some terms and conditions (this is the activity i need to launch). What do you think is going to cause the service to run in the first place? Can any one help me some code to do this? Is it possible? You can call startActivity() from a Service. However, you are going to get a lot of one-star ratings on the Market if you just pop up a set of terms and conditions unannounced. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming 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] how to check if the current thread is in the ui thread?
Hi, I have a situation where i want to show a dialog. However, the code that calls the method to show the dialog can be running either in the ui thread or not. How can i find if the current thread is running in the ui thread or not? thanks guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How can I find unneeded permission?
On Tue, Jul 13, 2010 at 9:00 AM, deg d...@degel.com wrote: Actually, I can imagine two very common cases: 1) Code or even functionality is changed in an application, possibly in some minor way. The developer does not realize that he has removed the last SDK call using a permission. The permission lingers on in the manifest. It doesn't do much harm, but add minor bloat and maybe scares aways some users. I wouldn't call this common since if you're removing permissions you're likely removing features / functionality which relied on said permission, which is not very likely. 2) A developer adds a new feature, and does not realize that a permission is needed. Best case, he catches this immediately when testing, but still wastes time and annoyance on an extra compile/ deploy/test cycle. You answered your own question. If you're adding a new feature, I would hope you're testing it. Odds are you don't just do one compile / deploy test cycle for any feature you add, so one more to catch a permission you forgot to add, like any other programming error you catch while debugging, is negligible. You'd run into a permission required exception almost immediately while testing and you fix it right then and there. It seems that it would not be too hard to annotate the SDK and and a static permissions check to the build cycle. I really don't think the time it would take to make this happen is worth it versus how much time it would actually save. You seem to think it is, so you are welcome to grab the source code and modify it to make this happen. Good luck. - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] RadioGroup
You mean you want to fire some action based on which RadioButton is Clicked rite... If that is the case use *isChecked() method* in your Button.ONclick ListenerHope it helps Regards Chethan On Tue, Jul 13, 2010 at 9:01 PM, anil kukreti success.anil...@gmail.comwrote: use the setChecked(boolean) method for particular radiobutton which you want to get selected on clicking submit button On Tue, Jul 13, 2010 at 9:48 AM, perumal316 perumal...@gmail.com wrote: Hi All, In my application I have a RadioGroup within which has 2 RadioButtons Then I have another 'submit' button. Upon clicking submit button I want to do tasks based on which button is selected in the RadioGroup. I can do this when there is no RadioGroup involved and there are only 2 buttons but with RadioGroup nothing happens when I click submit button. Any idea how to resolve 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks for Cooperating! Anil Kukreti Network transforms ideas to reality. 09312646623 Linked In : http://in.linkedin.com/in/anilkukreti Skype Id : anil.kleward -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] how to check if the current thread is in the ui thread?
On Tue, Jul 13, 2010 at 1:38 PM, guich guiha...@gmail.com wrote: I have a situation where i want to show a dialog. However, the code that calls the method to show the dialog can be running either in the ui thread or not. How can i find if the current thread is running in the ui thread or not? Actually, for that case, you may as well just wrap it in a Runnable and call runOnUiThread(): runOnUiThread(new Runnable() { public void run() { // launch your dialog here } }); This will ensure that the code runs on the UI thread, regardless of whether you are on the UI thread or not. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming 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] Can Android 2.X connect to 3G and Wifi data networks simultaneously?
We have an application where we'd like to use the Wifi connection on a local network (intranet) with no Internet connectivity, and use the 3G connection simultaneously as the data connection to the internet. To summarize: - We need to connect to two distinct networks at the same time - We need data traffic to be properly routed to the appropriate network based on its IP address - We need both radios (Wifi and 3G) on and active This can easily be done on the iPhone, but not sure if it can be done on the Android. Any info/insights welcomed. Rick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fixing a performance issue on a financial calculator program
On Tue, Jul 13, 2010 at 1:21 PM, Connie Walsh connie.walshc...@gmail.com wrote: I am writing a financial calculator and part of my code is printing out an amortization table for 25 - 30 years. Some times there can be up to 2000 rows on the page. Here is my code to do this part: Ack! Should I try to add them as the person scrolls down? You should use a ListView. This will automatically handle scrolling, will let you recycle your rows to minimize memory consumption, will only process the rows presently visible to increase execution speed, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming 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
Re: [android-developers] Can Android 2.X connect to 3G and Wifi data networks simultaneously?
On Tue, Jul 13, 2010 at 2:01 PM, RickB rick.bullo...@comcast.net wrote: We have an application where we'd like to use the Wifi connection on a local network (intranet) with no Internet connectivity, and use the 3G connection simultaneously as the data connection to the internet. Like the WiFi hotspot built into Android 2.2. To summarize: - We need to connect to two distinct networks at the same time - We need data traffic to be properly routed to the appropriate network based on its IP address - We need both radios (Wifi and 3G) on and active This can easily be done on the iPhone, but not sure if it can be done on the Android. Any info/insights welcomed. AFAIK, at the SDK level, Android only supports one active connection at a time. Custom firmware can clearly arrange for multi-radio support, as the WiFi hotspot in 2.2 demonstrates. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming 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
Re: [android-developers] Memory Info
Check out this link http://developer.android.com/reference/android/app/ActivityManager.MemoryInfo.html it gives you memory info of the device. Regards Chethan On Mon, Jul 12, 2010 at 4:18 PM, aparna aparnakakkar2...@gmail.com wrote: Hello, How can I fetch the memory Information(physical and storage) from mobile device. I didn't get any API's.. Plz help 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: App launching
Hi Brad, What is the data source to your spinner? Or that is not necessary? I guess because I cannot see what is before this code segment I was curious how you use that. Also, I am not familiar with the AndroidBridge() - is that part of the standard API? Thanks On Jul 12, 8:20 pm, Brad Gies rbg...@gmail.com wrote: Yes, you can read pages stored on the phone: I'm using index.html here. Put it into your assets folder : webView = (WebView) spinnerView.findViewById(R.id.spinnerviewwebview); webView.getSettings().setJavaScriptEnabled(true); webView.addJavascriptInterface(new AndroidBridge(), android); webView.setVerticalScrollBarEnabled(false); webView.setWebChromeClient(new WebChromeClient() { public void onConsoleMessage(String message, int lineNumber, String sourceID) { } }); webView.loadUrl(file:///android_asset/index.html); The above also sets the WebView up to use Javascript. On 12/07/2010 2:10 PM, kypriakos wrote: In this case below, the URL can only be public and remote? I could not read a page stored locally on the phone - or is storing files locally not an option? Uri uri = Uri.parse(http://www.example.com;); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); Thanks On Jul 12, 3:21 pm, Mark Murphymmur...@commonsware.com wrote: On Mon, Jul 12, 2010 at 3:10 PM, kypriakosdemet...@ece.neu.edu wrote: Instead of launching a UI I was wondering if I could have a process monitor the execution of a javascript in the emulator's browser and read in the output data. Is it possible to execute a local javascript file using the phone's browser? You can use WebView, but only from an Activity. If you want to embed a Javascript interpreter, you can consider Rhino. -- 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 -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://www.bgies.comhttp://www.bistroblurb.comhttp://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Changing Main/Launch activity
On Tue, Jul 13, 2010 at 12:58 PM, Greg Pasquariello g...@pasq.net wrote: See the attached document. Which has what to do with the OP's post? - TreKing - Chicago transit tracking app for Android-powered devices http://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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to check if the current thread is in the ui thread?
Thanks, i'll try it. regards guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Launch an Activity Form a Service
It now gives this error Unable to find explicit activity class {com.example.test/ TsandCs.class}; have you declared this activity in your AndroidManifest.xml? here is the code i used try{ Intent i = new Intent( Intent.ACTION_MAIN ); Log.d( LOG_TAG,onCreate - 3 ); i.setComponent( new ComponentName( com.example.test, TsandCs.class ) ); Log.d( LOG_TAG,onCreate - 4 ); i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); i.addFlags( Intent.FLAG_FROM_BACKGROUND); Log.d( LOG_TAG,onCreate - 5 ); startActivity( i ); Log.d( LOG_TAG,onCreate - 6 ); } and my manifest is shown in the other post. ant ideas? On Jul 13, 7:33 pm, Pent tas...@dinglisch.net wrote: Intent i = new Intent( Intent.ACTION_MAIN ); // don't think main is necessary actually :) i.setComponentName( new ComponentName( pkgname, activityclassname ) ); i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); i.addFlags( Intent.FLAG_FROM_BACKGROUND); try { startActivity( i );} catch ( ActivityNotFoundException e ) { } If the user has just left an app via Home, you might find it takes 5 seconds for your activity to appear. An Android bug I logged about 9 months ago, grouse grouse :) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Changing Main/Launch activity
You will break any shortcuts that have been made to that activity (or other explicit intents that have been made to it, though for main/launcher a shortcut is by far the most common case). On Tue, Jul 13, 2010 at 6:08 AM, Justin jtgi...@gmail.com wrote: I think I already know the answer to this, but I just wanted to confirm (I think no horrible ramifications): Are there any ramifications to changing the MAIN/LAUNCHER tags in the manifest to a different activity? See example below: (original manifest segment) --- activity android:name=.MyAppMain android:label=@string/app_name android:theme=@android:style/ Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.MySecondActivity android:label=@string/numbertwo android:theme=@android:style/Theme.NoTitleBar /activity (new manifest segment) activity android:name=.MyAppMain android:label=@string/app_name android:theme=@android:style/ Theme.NoTitleBar /activity activity android:name=.MySecondActivity android:label=@string/numbertwo android:theme=@android:style/Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity Thanks, Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] problems with the old and new Contact API
here's a few things i couldn't figure out and could find anyone else posting them in the discussion: 1. In the new API ContactsContract.AggregationExceptions table does not really work for me: when I try to insert a row into the table, it gives me this error: 07-13 14:20:09.399: ERROR/X(3074): java.lang.UnsupportedOperationException: URI: content://com.android.contacts/aggregation_exceptions, calling user: my code here: ContentValues values = new ContentValues(); values.put(AggregationExceptions.RAW_CONTACT_ID1, String.valueOf(oldRawContactId)); values.put(AggregationExceptions.RAW_CONTACT_ID2, String.valueOf(newRawContactId)); values.put(AggregationExceptions.TYPE, AggregationExceptions.TYPE_KEEP_TOGETHER); mContentResolver.insert(AggregationExceptions.CONTENT_URI, values); and I'm sure the two raw contact id exists. 2. in the old API: when I create a group in Contact book, the name of the group is not shown(or not shown correctly) here's the code: ContentValues values = new ContentValues(); values.put(Contacts.Groups.SHOULD_SYNC, 1); values.put(Contacts.Groups.SYSTEM_ID, mGroupID); values.put(Contacts.Groups.NAME, mGroupTitle); mContentResolver.insert(Contacts.Groups.CONTENT_URI, values); 3. in the old API: when I insert a custom IM contact method for a contact, the data is inserted and shown correctly, but user cannot edit the contact using the default contact app any more. If I remove the contact method, user can edit the contact again. here's the code for inserting the contact method: ContentValues values = new ContentValues(); values.put(ContactMethods.PERSON_ID, newContactId); values.put(ContactMethods.KIND, Contacts.KIND_IM); values.put(ContactMethods.TYPE, ContactMethods.TYPE_CUSTOM); values.put(ContactMethods.AUX_DATA, ContactMethods.encodeCustomImProtocol(MYIM_PROTOCOL)); values.put(ContactMethods.DATA, buddyId); values.put(ContactMethods.ISPRIMARY, 0); values.put(ContactMethods.LABEL, IM_LABEL); mContentResolver.insert(ContactMethods.CONTENT_URI, values); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Launch an Activity Form a Service
you want to start activity from a service rite So you can just do this. Intent intent = new Intent(*Your Service Class Name.this*, *Activity You Want to Go.class*); startActivity(intent); MAke sure you have added the activity in your Manifest. regards Chethan On Tue, Jul 13, 2010 at 11:52 PM, Boozel boozelcl...@gmail.com wrote: It now gives this error Unable to find explicit activity class {com.example.test/ TsandCs.class}; have you declared this activity in your AndroidManifest.xml? here is the code i used try{ Intent i = new Intent( Intent.ACTION_MAIN ); Log.d( LOG_TAG,onCreate - 3 ); i.setComponent( new ComponentName( com.example.test, TsandCs.class ) ); Log.d( LOG_TAG,onCreate - 4 ); i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); i.addFlags( Intent.FLAG_FROM_BACKGROUND); Log.d( LOG_TAG,onCreate - 5 ); startActivity( i ); Log.d( LOG_TAG,onCreate - 6 ); } and my manifest is shown in the other post. ant ideas? On Jul 13, 7:33 pm, Pent tas...@dinglisch.net wrote: Intent i = new Intent( Intent.ACTION_MAIN ); // don't think main is necessary actually :) i.setComponentName( new ComponentName( pkgname, activityclassname ) ); i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); i.addFlags( Intent.FLAG_FROM_BACKGROUND); try { startActivity( i );} catch ( ActivityNotFoundException e ) { } If the user has just left an app via Home, you might find it takes 5 seconds for your activity to appear. An Android bug I logged about 9 months ago, grouse grouse :) Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. 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