[android-developers] How to control callers for my service?
Hi, all I have a apk which is a service. I want some apk can call my service's func, others can not. How can I get this done? use permission? thanks!! Bear --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: uninstall an application
Try: Uri packageURI = Uri.parse(package:+packageName); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); startActivity(uninstallIntent); But not for system package nemate...@gmail.com Hi I want to uninstall my application programmatically..is it possible? or Can we delete the apk file programmatically? or os there any way to uninstall the 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: uninstall an application
Anyone know how to trace or debug inputmethod service under Eclpse? I need step by step tracking. Thanks. Best Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
may somebody send me one, I really love 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: In-App purchasing
Well! I am still figuring out the way to publish the paid applications from the countries not listed in Android Market allowed for paid apps, and it seems inApp purchasing is a good technique. But is there any API we can use to process payment through google payment processors. On Mon, Oct 19, 2009 at 3:17 PM, NitroDesk gsuku...@gmail.com wrote: What you could do is create separate applications/packages in the market which once purchased an installed by the user, will unlock those features in the app. To make it seamless, you can include links in your app which will take the user to those specific packages within the android market. this way you comply and can still upsell. cheers -g On Oct 19, 8:00 am, Abdul Mateen abmat...@gmail.com wrote: Exactly, I am very interested in this payment processing. If anybody has any idea please post here about the payment processing. On Mon, Oct 19, 2009 at 8:23 PM, Anton Pirker an...@ignaz.at wrote: Hi Mark! Thanks for the link! I read it an this is the part that's interesting: 3.3 ... You may not collect future charges from users for copies of the Products that those users were initially allowed to download for free. This is not intended to prevent distribution of free trial versions of the Product with an “upsell” option to obtain the full version of the Product: Such free trials for Products are encouraged. However, if you want to collect fees after the free trial expires, you must collect all fees for the full version of the Product through the Payment Processor on the Market. In this Agreement, “free” means there are no charges or fees of any kind for use of the Product. All fees received by Developers for Products distributed via the Market must be processed by the Market’s Payment Processor. So I am allowed to charge for extra features in a free app as long as these fees are _processed by the Market’s Payment Processor._ And now the big question: how can I do just this? How do I talk to Googles Market Payment Processor from within my app? Thanks, Anton Mark Murphy wrote: Anton Pirker wrote: I have a android app that is for free. Now I want the users of my application to have the ability to buy extra features from within the application. I thought about something like this: -) user wants to have extra features. -) she clicks on the corresponding button -) she is prompted to enter some payment information (like credentials for paypal oder google checkout) -) if the payment is ok she is displayed a unlock-code -) she enters the unlock-code into the application -) she has more features in her app. If you are distributing through the Android Market, I recommend that you and your legal counsel review the Android Market Developer Distribution Agreement: http://www.android.com/us/developer-distribution-agreement.html There are many terms in there that pertain directly to the model you are describing. Similarly, if you are distributing through other channels, review their equivalent documents, to ensure that you are complying with their terms and conditions. If you are distributing the app yourself through your own Web site, you are welcome to do whatever you want in the area of in-app purchases, of course. -- DI(FH) Anton Pirker -- cross platform mobile software burggasse 123/53 a-1070 wien tel: +43 699 1234 0 456 skype: antonpirker http://anton-pirker.at- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
Did anyone get an invite? I was just wondering if anyone received a Wave invite? I've tried everywhere 2009/10/19 Joshua Scarsbrook jscarsbr...@gmail.com If there is another one left, i would like it. On 18/10/2009 8:37 a.m., AuthorityAction wrote: If there are any left, I would like one too! Thanks. On Oct 15, 10:41 pm, Kenneth Adam Millerkennethadammil...@gmail.com wrote: Who wants to be in Google wave? I have 16 invitations -- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent.(Calvin Coolidge) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Uninstall not working
Hi, Since a few days, we get an increasing number of reports of users that are unable to uninstall multiple of our applications. Often people give a 1 star rating in the market then, is it possible to fix this? Our users comments are for instance: Uninstalled it yet still appears as installed with buttons greyed out This has been uninstalled from my phone for about a month and the icon won't go away. I'll click it and its like I have it installed. Its a fun app until you decide to uninstall it. It then shows as installed in the market and seemingly a fixture. Can't get rid of it. This is for 3 different apps, and none of these apps have been forward- locked. We have told some users that emailed us already that they should try rebooting their phone because the market sometimes gets stuck, but that didn't help. Best regards, Swiss Codemonkey team. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Numeric-only soft keyboard
Hi Guys, How can I set numeric-only soft keyboard option for a text field? When I set the input-type to number it brings a soft keyboard which is actually a alpha-numeric one but already switched to numeric mode. What I want is a pure numeric soft keyboard with big numbers (no alphabets at all). I've already seen this in other applications and but don't know how to do it. I will appreciate any help or hint... Armond --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: KSoap - How to pass a dataset to a dotNet webservice?
Thats actually the first thing I tried. I passed in the ms soap version of the dataset but still didnt work. I think I only have one option and that is to build up the soap request (xml) manually and post it myself, removing teh need for KSoap. 2009/10/19 gjs garyjamessi...@gmail.com Hi again, You could reverse engineer this to some extent by generating a proxy for a client of the webservice then use ,something like wire shark to monitor/capture what is passed between the client and the webservice. I guess it might be an xml representation of the Dataset that gets passed. You can facilitate this if you have an instance of a Dataset by outputing/saving itself in XML format. This would all be done in a .net environment. After this you could work out what an android implementation of a client would need to pass and whether ksoap can help. As you probably know a ms Dataset is a heavy weight representation of a database or partial database including a schema definition, an object that cannot be 'instantiated' in java, which is generally used in a homogeneous .net environment. Webservices like a lot of other things suffer a Microsoft implementation and other open source implementations which are by (ms) design deliberately incompatible... Regards On Oct 19, 10:47 pm, Dave Gracie david.gra...@gmail.com wrote: I might try emailing the guy who did the android ksoap port directly. the second parameter is just the value of the parameter. My issue is what structure / format should that value be to correctly send a dataset. Thanks for the help. Dave 2009/10/19 konic nflous...@gmail.com You may try to ask this question directly to the android port of ksoap (http://code.google.com/p/ksoap2-android/) Next, if you look in ksoap2 docs (http://ksoap2.sourceforge.net/doc/ api/org/ksoap2/serialization/SoapObject.html http://ksoap2.sourceforge.net/doc/%0Aapi/org/ksoap2/serialization/Soa... ) you'll see that in fact second parameter in addProperty() is Object. On 19 окт, 04:56, Dave david.gra...@gmail.com wrote: Hi Thanks for the response. Its not an issue with the webservice as this works fine. the issue is with how I go about creating the ksoap parameter to be passed to the webservice. Simple types suck as strings, ints etc.. are fine. but the complex type of a dataset just isnt as straight forward. I just thought that someone may have had this problem with ksoap before. Thanks Dave On Oct 19, 7:45 am, gjs garyjamessi...@gmail.com wrote: Hi, I'd think your asking in the wrong forum, a (microsoft proprietary) Dataset object is usually associated with .net development. Where would your microsoft Dataset object be coming from for you to send it from an android device to a dotnet webservice ? Suggest you try more googling eg - http://www.blackberryforums.com/developer-forum/178964-25-00-someone-. .. http://osdir.com/ml/java.enhydra.ksoap/2003-07/msg9.html Regards On Oct 19, 6:47 am, Dave david.gra...@gmail.com wrote: Folks I know there are quite a few examples of accessing dotnet webservices that return a dataset. I cannot find any examples there the webservice method requires a dataset as a parameter. i.e. dotNet webservice: WebMethod() _ Public Function TestWS(ByVal ds As DataSet) As String Return ds.Tables.Count Tables in dataset End Function I have tried adding the parameter of xml string of the dataset by capturing the http post content of a dotNet web page and extracting the relevant section for the parameter without any success. This included the schema but neither having this there or not made any difference. I have also just tried creating a simple xml structure but still nothing. rpc.addProperty(ds,dst1f1blah/f1/t1/ds); If anyone has any ideas it would be appreciated, I really dont want to go down the route of creating the soap xml and posting it myself. Thanks in advance Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Memory leak or feature
So has anybody been able to test the sample app and found the leak. To me this seems a quite serious bug or I might have misunderstood some fundamental Android concept. But I doubt that it is desired behavior to leave Activities (or at least not its views) in memory when they are not used. -Mika On Oct 16, 12:11 pm, Mika mika.ristim...@tkk.fi wrote: Hi Dianne, This is what I assumed also. Do you have any ideas where the leak could be in the sample app that I posted? I also checked the music player app with meminfo and it behaves similarly leaving activities in memory even after the ui is closed and system_process and com.android.music processes are GCed from DDMS. I also tested with 1.1 SDK and Emulator and there everything works as presumed and no activities stay in memory after they are closed. -Mika On Oct 15, 7:56 pm, Dianne Hackborn hack...@android.com wrote: If you press back and let the system finish the activity, all references to it will be gone, so though your process is there after it GCs the resources (views etc) associated with the activity should be gone. If you still see them after you know the process has GCed, then you have a leak in your app. On Thu, Oct 15, 2009 at 7:57 AM, String sterling.ud...@googlemail.comwrote: On Oct 15, 3:08 pm, Mika mika.ristim...@tkk.fi wrote: So the problem is quite simple. I start a Service from an Activity, the user presses back, the Activity goes away and the Service stays running in the background. However the activity (and it's views) still stay in memory. Feature. It's central to the Android architecture that activities aren't killed by the system until their resources are needed elsewhere. The idea, I think, is that if the user goes back into your activity before that happens, it's ready and waiting. Some good discussion of it in this thread: http://groups.google.com/group/android-developers/browse_thread/threa... String -- 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] Is your Android app on Archos Market ?
If you have developed or if you are developing applications, and they are on the Android Market - Great! - But these apps are only available for devices that have contracts with Google. Archos, a major PMP manufacturer, launched its first device on 25th of September: the Archos 5 IT. Archos has a real community of fans who are waiting for applications for their devices. This device is the first of a long product line (the first Archos phone should be available soon too!). It's a new opportunity for your applications to find new fans! You can post your apps, for free, on the Archos Market called Appslib (http://www.appslib.com). Today, only free applications are available for distribution on AppsLib, but Archos promises the possibility to distribute your paid apps soon ! Don't wait : more applications, more users, more fans...and more revenue (soon)! Arnaud --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Dev Guide example for Audio recording doesn't work with SDK 1.6
I tried to record call from mic. when a phone call is initiated. I use the code from this link: http://dev.android.com/guide/topics/media/index.html But it seems it doesn't work any more, e.g. MediaStore.MediaColumns. does not have TIMESTAMP, I can not instantiate a ContentResolver object, etc. Is this bug in the documentation ? How can I report it ? Can anybody help me with new audio recording example. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Join .Net Community
Join .Net Community This group represents the Microsoft .Net community. All .net programmers all around the world are welcome here. In this group you'll find the latest releases of .Net related products, frameworks, Upgradation, technologies, IDEs etc. You also can share your experiences and problems you are facing. You can discuses about C#.Net, VB.net, ASP.Net and .Net frameworks, .net in other operating system etc. topics. http://www.dotnetcommunity.tk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Memory usage of an activity / thread
Memory usage is a big isue when programming for android. When I created the base of the application I'm currently building, I just tested the part (activity) that I just worked on. Last week the base was done so I could focus on other things, including performance. My application crashed (OutOfMemory) pretty fast when I - for example - first opened a MapActivity followed by an activity that uses the Camera and some Bitmaps/BitmapFactory. Now a week later I optimized much code and it doesnt crash that fast, but it still does. I started with a max of 2 pictures until crash, now I can make up to 15 pictures until it crashes. One thing that caught my eye was the threading of the application. Each time when I create a picture and return to my main activity, it creates a new thread (at least thats what the DDMS is showing me). Isn't this bad for memory usage? The way I call the main activity (Profile) from the picture activity (PreviewPicture). Intent detailIntent = Profile.mActivity.getIntent(); PreviewPicture.mActivity.startActivity(detailIntent); PreviewPicture.mActivity.finish(); Note: I use mActivity in PreviewPicture because this code is called from a dialog. This is very weird, because when I (re)open another activity like PreviewPicture the same way, it doesnt add a thread in the DDMS. Since BitmapFactory leaks memory I assume it will be very hard to completely remove the posiblilty of crashing by a OutOfMemoryException, but I want it to be as stable as possible. I hope you guys can 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: How can i bring an activity to foreground from background manually?
What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do ListView dynamic item growing?
Thanks @Guru OnScrollListner is a better choice. On 10月13日, 下午11时43分, Mark Murphy mmur...@commonsware.com wrote: wangxueming wrote: Now I want to make a ListView,with 20 items, Then when it scroll to the end, I get new data and add to the end of ListView dynamic. Just Like ListView in Android Market. You can try my EndlessAdapter for that: http://github.com/commonsguy/cwac-endless -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
One for me? Thanks. .g On Oct 16, 4:32 pm, budziq bud...@gmail.com wrote: Well. Who wouldn't want one ;)? I guess I'd like one too ;) On Oct 16, 4:02 pm, Carl Whalley carl.whal...@googlemail.com wrote: I'd love an invite too ... anyone ... thanks! On Oct 16, 2:26 pm, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Have any of you gotten an email yet? I swear I've sent them out... perhaps they're just nominations for a possible invite to google wave and not you know actual concrete invitations I don't know, but I'm guessing that you guys would still want it. Hahah :) I'm in class right now, but I'll review all you guys On Fri, Oct 16, 2009 at 7:40 AM, GSC greg.ch...@gmail.com wrote: If anyone else has an available invitiation, please send me one. Thanks On Oct 16, 7:31 am, ColletJb collet...@gmail.com wrote: I think there are no invitation left from Kenneth Adam Miller. But if anyone invited by him has invitation and can invite me, It would be great ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] problem in playing mp4 video file
Hi All I am trying to play a mp4 video file from remote url on my device. (File size = 5.7 MB) I am getting following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback Could anyone please let me know how to resolve this error? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any thing.For that what can i do. Can i bring the activity to foreground using notifications without clicking any button or do i need to use any other concept? On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote: Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TabWidget, TabSpec programmatically and refresh data within the tabs from onResume
hi there. I'm a newbie using android sdk. In my first application, I have a TabWidget which is defined into the xml. It can contains several tabs, created programmatically. The number of tabs depends of the data coming from a web service. I want to reload the data each time the application is displayed. To do that, I reimplemented the onResume on the activity. A background task is launched to preform the refresh of the data then, to recreate the tabs (into a runOnUiThread method). The problem here is I don't know if I have to recreate the tabs OR to refresh only the data of the views inside the tabs. For now, I recreate the tabs but I often got some exceptions and I'm pretty sure it is the wrong way to do that. For example, I leave the application with the second tab open, when I come back, the reload is perform and I got an exception. This exception is not there if I were on the first tab. I can try to clean the tabs or remove the views but I guess is weird to do that. So what is the best way to implement tabs and data refresh ? Thanks a lot! David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] E/AndroidRuntime( 321): java.lang.VerifyError: de.stefandahmen.android.TourList
Hi, i get following error, if i test my app on a real android phone. On the emulator, my app works fine. W/dalvikvm( 321): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 321): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 321): java.lang.VerifyError: de.stefandahmen.android.TourList E/AndroidRuntime( 321):at java.lang.Class.newInstanceImpl (Native Method) E/AndroidRuntime( 321):at java.lang.Class.newInstance (Class.java:1472) E/AndroidRuntime( 321):at android.app.Instrumentation.newActivity(Instrumentation.java:1097) E/AndroidRuntime( 321):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2186) E/AndroidRuntime( 321):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) E/AndroidRuntime( 321):at android.app.ActivityThread.access $1800(ActivityThread.java:112) E/AndroidRuntime( 321):at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1692) E/AndroidRuntime( 321):at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 321):at android.os.Looper.loop(Looper.java: 123) E/AndroidRuntime( 321):at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 321):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 321):at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 321):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 321):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) E/AndroidRuntime( 321):at dalvik.system.NativeStart.main (Native Method) I/Process ( 60): Sending signal. PID: 321 SIG: 3 I/dalvikvm( 321): threadid=7: reacting to signal 3 I/dalvikvm( 321): Wrote stack trace to '/data/anr/traces.txt' W/ActivityManager( 60): Launch timeout has expired, giving up wake lock! W/ActivityManager( 60): Activity idle timeout for HistoryRecord {43359428 {de.stefandahmen.android/de.stefandahmen.android.TourList}} Thanks for help, Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] stop camera click sound programmatically in android
hello.. I am using android's default camera to click images from within my app. I want to stop the click sound that it does on clicking an image. Is there a way to stop that click sound programtically? 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] Layout with all cells the same size
I'm trying to do something incredibly simple: I want a layout which evenly divides the space up among its children, so each child is the same size. I cannot figure out how to do this. LinearLayout appears to assign space to all of its children and then allocate the *remaining* space --- so a TextView with a label of LONG gets more space than a TextView with a label of I, even if it's not necessary. TableLayout... well, I can't figure out what rules TableLayout uses to assign its space. But I still get much the same effect, regardless of how I fiddle with shrinkColumns and stretchColumns. Does anyone know how I can do this? -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽⊂M),(V⊝M),(V,⌽V)⌽(V,V←1⎺1)⊝⊂M)' │ --- Conway's Game Of Life, in one line of APL --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Trouble with Ringtone.getTitle() in 1.6
We're seeing a problem with Ringtone.getTitle() in 1.6. Sporadically, getTitle() will return Unknown ringtone instead of the proper title. It seems to be timing-dependent, and is most likely to go wrong when we ask for the title of a tone twice in rapid succession. Here's a typical log, showing a success followed very rapidly by a failure: 10-20 10:50:41.799: INFO/Utils(902): titleForRingtone looking for uri content://media/external/audio/media/21 10-20 10:50:41.929: INFO/Utils(902): titleForRingtone got Papa's Got a Brand New Pigbag 10-20 10:50:42.079: INFO/Utils(902): titleForRingtone looking for uri content://media/external/audio/media/21 10-20 10:50:42.149: ERROR/PlayerDriver(51): Command PLAYER_PREPARE completed with an error or info PVMFErrResource 10-20 10:50:42.149: ERROR/MediaPlayer(902): error (1, -17) 10-20 10:50:42.149: WARN/PlayerDriver(51): PVMFInfoErrorHandlingComplete 10-20 10:50:42.159: ERROR/RingtoneManager(902): Failed to open ringtone content://media/external/audio/media/21 10-20 10:50:42.219: INFO/Utils(902): titleForRingtone got Unknown ringtone My guess is that the second attempt fails because the first attempt has not yet finished some cleanup task, closing down a media player or some such. My question is, how can I reliably know when the Ringtone is in a state where I can safely ask it for its title ? At the moment there is no solid way for my code to know when it is unsafe to ask, or even to know when getTitle has definitely failed. Any hints about what is going on here would be very welcome. Thanks, Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] modify active intentfilter
Let's say that I have a BroadcastReceiver that has already been registered, and I want to change its IntentFilter at that moment (add a new data authority for example). Is this at all possible? Or do I have to unregister it first, and then re-register it with the updated IntentFilter? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: E/AndroidRuntime( 321): java.lang.VerifyError: de.stefandahmen.android.TourList
Hi, my TourList.java is very small: //imports and package public class TourList extends ListActivity { File dir = Environment.getExternalStorageDirectory(); String[] fileList = dir.list(new FilenameFilter() { public boolean accept(File d, String name) { return name.endsWith(.gpx); } }); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tourlist); if (fileList.length0) setListAdapter(new ArrayAdapterString (this,android.R.layout.simple_list_item_1,fileList)); else Toast.makeText(getBaseContext(), Keine Tour vorhanden!, Toast.LENGTH_SHORT).show(); } public void onListItemClick (ListView lv, View v, int pos, long id) { Intent intent = new Intent(TourList.this, NavTrack.class); intent.putExtra(pos, pos); intent.putExtra(fileList, fileList); startActivity(intent); } } Where can there be an error? Or is it a problem, that i work with sdk 1.6 and the handy has sdk 1.5 installed?? But another app works fine on sdk 1.5 handy and 1.6 emulator?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] can I get a Google wave invitations?
Is someone can send me an invitation on Google wave? m.wongxm...@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: E/AndroidRuntime( 321): java.lang.VerifyError: de.stefandahmen.android.TourList
i have found the error... The NavTrack class includes the new TTS engine, which isnt included in the sdk 1.5 So the NavTrack class could not be compiled and in the onListItemClick function, the Intent couldnt find NavTrack.class Regards, Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problem in playing mp4 video file
The MediaPlayer / VideoView only support progressive streamable contents Following link helped me in figuring out the problem: http://groups.google.com/group/android-challenge/msg/114f11e31351840d Now I am getting another error playing another mp4 file: Command PLAYER_PREPARE completed with an error or info PVMFErrNoResources error (1, -15) Anyone having an idea please let me know. On Oct 20, 4:15 pm, loril...@gmail.com loril...@gmail.com wrote: Hi All I am trying to play amp4video file from remote url on my device. (File size = 5.7 MB) I am getting following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback Could anyone please let me know how to resolve this error? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: can I get a Google wave invitations?
Could I also please have one - vass...@gmail.com 2009/10/20 wongxming m.wongxm...@gmail.com Is someone can send me an invitation on Google wave? m.wongxm...@gmail.com -- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent.(Calvin Coolidge) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: can I get a Google wave invitations?
Hi, Can I also have one? agus.sant...@gmail.com Thanks On Tue, Oct 20, 2009 at 5:42 AM, vass one vass...@gmail.com wrote: Could I also please have one - vass...@gmail.com 2009/10/20 wongxming m.wongxm...@gmail.com Is someone can send me an invitation on Google wave? m.wongxm...@gmail.com -- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent.(Calvin Coolidge) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
One for me please. Thank you! On Tue, Oct 20, 2009 at 3:56 AM, Getto gige...@gmail.com wrote: One for me? Thanks. .g On Oct 16, 4:32 pm, budziq bud...@gmail.com wrote: Well. Who wouldn't want one ;)? I guess I'd like one too ;) On Oct 16, 4:02 pm, Carl Whalley carl.whal...@googlemail.com wrote: I'd love an invite too ... anyone ... thanks! On Oct 16, 2:26 pm, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Have any of you gotten an email yet? I swear I've sent them out... perhaps they're just nominations for a possible invite to google wave and not you know actual concrete invitations I don't know, but I'm guessing that you guys would still want it. Hahah :) I'm in class right now, but I'll review all you guys On Fri, Oct 16, 2009 at 7:40 AM, GSC greg.ch...@gmail.com wrote: If anyone else has an available invitiation, please send me one. Thanks On Oct 16, 7:31 am, ColletJb collet...@gmail.com wrote: I think there are no invitation left from Kenneth Adam Miller. But if anyone invited by him has invitation and can invite me, It would be great ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
Reread RichardC's reply. There's good reason to believe that the platform doesn't allow - indeed shouldn't allow - arbitrary apps to bring their activities to the foreground without user action. Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? I suggest you rethink your architecture to achieve your desired result without using this technique. For example: - update a database from a background service when the network action of interest occurs - update your activity's GUI from the database the next time the USER brings it to the foreground String On Oct 20, 12:17 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any thing.For that what can i do. Can i bring the activity to foreground using notifications without clicking any button or do i need to use any other concept? On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote: Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: can I get a Google wave invitations?
If anyone has an invite going spare, can I have one please? david.gra...@gmail.com Thanks Dave 2009/10/20 Agus agus.sant...@gmail.com Hi, Can I also have one? agus.sant...@gmail.com Thanks On Tue, Oct 20, 2009 at 5:42 AM, vass one vass...@gmail.com wrote: Could I also please have one - vass...@gmail.com 2009/10/20 wongxming m.wongxm...@gmail.com Is someone can send me an invitation on Google wave? m.wongxm...@gmail.com -- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent.(Calvin Coolidge) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Pass object from an activity to another?
serialize your Object to bytes using protobuffer and include the bytes in the intent's extras. On Fri, Oct 16, 2009 at 5:14 PM, Paul Turchenko paul.turche...@gmail.comwrote: Use Application class. On Oct 15, 10:44 pm, Sponge simon.hei...@gmail.com wrote: i think normaly by small objects to pass between activities ( like a string or an integer) i would also use the putExtras of the intent. But if you want to pass an own object of type ClassX i first tried to use the putExtras(Serializible myObject) and this works if you only want to display it, but if you want to change it in your data structure this doesn't work because it seems that there is a copy created of the object when it is passed in the intent, so if you change attributes of the object after passing it, there will be no change in your file structure. perhaps one solution would be to add an id to every object you create (like an integer) and pass this integer to get the object in the new activity or you realy make a static var where you store the object while passing it, but i dont realy like the static way. i use some activitys multiple times for diffenent objects to display so i cant just store everything in a static var because then it would be overwritten. On Oct 15, 8:50 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: Before you call startActivity with an Intent, first put extra into into it with Intent.putExtras: http://developer.android.com/reference/android/content/Intent.html#pu...) Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 15, 5:51 am, Long long...@gmail.com wrote: Hi, There is an activity which has an object. This activity(say A) starts another activity(say B). Can B use some object in A? Cheers. Long --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
use a service to capture that network events. On Mon, Oct 19, 2009 at 5:57 AM, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Temp storage for bitmap
Thanks for your reply, that's what I'm planing to do.My other question was where do I temporary store the image ? I can store it in EXTERNAL_CONTENT_URI, Context.getCacheDir() or Context.getFilesDir() ... But what's preferable and why ? (considering: deletion timing, permissions, locks, etc.) Personally, I would choose cache dir. On Tue, Oct 20, 2009 at 12:52 AM, Streets Of Boston flyingdutc...@gmail.com wrote: You can delete it while handling the onActivityResult (this method is called after your sub/child activity finishes). On Oct 14, 10:02 am, m_vitaly m_vit...@topixoft.com wrote: Ok, but what if I want to delete if after issuing startActivity, can I do this ? And where should I store it then ? On Oct 14, 4:20 am, Streets Of Boston flyingdutc...@gmail.com wrote: When you store it in the EXTERNAL_CONTENT_URI, your image can already be shared with every other app on the phone. When you added (inserted) the image, your result was a Uri. This Uri can be used by any other app to obtain your image. On Oct 13, 4:42 pm, m_vitaly m_vit...@topixoft.com wrote: My program creates a bitmap and successfully stores it on external storage (Images.Media.EXTERNAL_CONTENT_URI). The next option to implement is to share the image. I'm thinking about different way of doing it: 1. Save it as captured image (as before) and startActivity with Intent.ACTION_SEND intent with the saved image uri. 2. Save it in application's home directory (getFileStreamPath()), startActivityForResult as in 1. and I hope that I'll recieve a result when the message is sent. 3. Save it in some kind of temp/cache folder and don't bother about deleting it or delete it as in 2. Personally I prefer the second option. My questions are: Will it work with startActivityForResult() as in 2. ? Do I have access to temp/cache folder as in 3. ? If I do, Should I delete the file afterwards ? May be some flag for Intent.ACTION_SEND to delete the file afterwards ? Thanks.- Hide quoted text - - Show quoted text - -- Best regards, Vitaly Polonetsky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Layout with all cells the same size
Try setting the width of every child in your LinearLayout to 0, and their weights to 1. Tom On 20 Oct 2009 12:50, David Given d...@cowlark.com wrote: I'm trying to do something incredibly simple: I want a layout which evenly divides the space up among its children, so each child is the same size. I cannot figure out how to do this. LinearLayout appears to assign space to all of its children and then allocate the *remaining* space --- so a TextView with a label of LONG gets more space than a TextView with a label of I, even if it's not necessary. TableLayout... well, I can't figure out what rules TableLayout uses to assign its space. But I still get much the same effect, regardless of how I fiddle with shrinkColumns and stretchColumns. Does anyone know how I can do this? -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽⊂M),(V⊝M),(V,⌽V)⌽(V,V←1⎺1)⊝⊂M)' │ --- Conway's Game Of Life, in one line of APL --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: can I get a Google wave invitations?
me to please: inaki.s...@gmail.com Regards 2009/10/20 Dave Gracie david.gra...@gmail.com If anyone has an invite going spare, can I have one please? david.gra...@gmail.com Thanks Dave 2009/10/20 Agus agus.sant...@gmail.com Hi, Can I also have one? agus.sant...@gmail.com Thanks On Tue, Oct 20, 2009 at 5:42 AM, vass one vass...@gmail.com wrote: Could I also please have one - vass...@gmail.com 2009/10/20 wongxming m.wongxm...@gmail.com Is someone can send me an invitation on Google wave? m.wongxm...@gmail.com -- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent.(Calvin Coolidge) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HTC Hero does not support colored LEDs (SDK way) - What can developers do in these cases? [Follow up from android-platform]
[This is the follow up of a thread I have started in the android- platform group] Hello. I am the developer of a heavily used application (over 110.000 active installs) and got one problem with the Android platform. One of the features in my application uses the normal way of the Android SDK to display a LED notification with a selectable color. The color can be set by ledARGB flag in http://developer.android.com/reference/android/app/Notification.html. This had been working with the emulator, the HTC G1 and the HTC Magic (myTouch) but now users starting to report that the HTC Hero does not show up different colors. (although the charging LED for the HTC Hero is orange and the normal notification color is green) The same thing occurs for setting a vibrate pattern. (flag - vibrate in http://developer.android.com/reference/android/app/Notification.html) This does not work on the HTC Hero US. (it does work on the EU/GSM version of the Hero) Now I'm a bit worried that this list of basic SDK features not working on Android devices gets longer and longer. (I have heared from problems with alarms on the T-Mobile Pulse) How can we as developers handle such problems? How can we make sure that our applications do not net served to not supported devices by the Android market? Or how can we hide specific features from specific handsets? I am ware of the following manifest settings: http://developer.android.com/guide/topics/manifest/uses-feature-eleme... http://developer.android.com/guide/topics/manifest/uses-configuration... But they do not help me in these cases. I have tried to get some response by HTC but haven't gotten anything untill now. It would be great to hear some of your opinions. Regards --- JBQ answered: At this point in time this discussion is still somewhat off-topic in this group, since none of the compatibility stuff is exposed in the open. Android-developers might be a better place to discuss this. Those device-specific bugs are a definite concern, though, and we'll need to either tighten the compatibility requirements or document that those APIs aren't guaranteed to work on all devices. Thanks, JBQ My answer: You are right and I will start another topic in the Android-developers group. From my point of view it would be ok if there would be a possibility in the SDK (some methods) to get to know from code if the not guaranteed APIs are available on a specific device or not. So developers could hide features if the device does not allow them. But to be honest I'd like the first way more which means tightening the compatibility requirements. At the moment all developers can do is to exclude some devices from their support list because of being not 100% compatible with the Android SDK offered by the Android open source project. Regards and thank you for your answer JBQ. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 access Application public key ?
Hi everyone, I'm currently working on an application which need security features. My question is simple, if every application is signed by its developper, how can I access application public key ? (and private :p) Thanks for your help ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ADC2 Tea-Party2
Or will it start after Eclair (with 1.6 issues fixed and new bugs introduced) is deployed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? As soon as i receive network event can i create a new activity and destroy previous activity if at all it is not active. There should be some feasible design because android is handling incoming call indication .I think it is also handling similar type of problems. Please guide me in a right way. On Oct 20, 5:49 pm, String sterling.ud...@googlemail.com wrote: Reread RichardC's reply. There's good reason to believe that the platform doesn't allow - indeed shouldn't allow - arbitrary apps to bring their activities to the foreground without user action. Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? I suggest you rethink your architecture to achieve your desired result without using this technique. For example: - update a database from a background service when the network action of interest occurs - update your activity's GUI from the database the next time the USER brings it to the foreground String On Oct 20, 12:17 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any thing.For that what can i do. Can i bring the activity to foreground using notifications without clicking any button or do i need to use any other concept? On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote: Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google wave invitations...?
any else? i need one. thanks. On Oct 16, 11:41 am, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Who wants to be in Google wave? I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
RichardC and String are correct. You can't and shouldn't do this. Re-design your app so that the user does not need to push a GUI to the front at any possible given time. Also, your background service that waits in the background may have been killed by the Android OS due to low memory or low resource; It may not even be running when your network-event happens If you did manage to have your activity pop to the foreground without any user interaction and then put your app on the market, expect quite a few bad comments. Why the phone-dialer can get to the foreground automatically: It's a phone! Even the SMS and voice-mail notifications don't automatically show a UI. They show notifications. On Oct 20, 9:42 am, pink 444 pnk...@gmail.com wrote: Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? As soon as i receive network event can i create a new activity and destroy previous activity if at all it is not active. There should be some feasible design because android is handling incoming call indication .I think it is also handling similar type of problems. Please guide me in a right way. On Oct 20, 5:49 pm, String sterling.ud...@googlemail.com wrote: Reread RichardC's reply. There's good reason to believe that the platform doesn't allow - indeed shouldn't allow - arbitrary apps to bring their activities to the foreground without user action. Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? I suggest you rethink your architecture to achieve your desired result without using this technique. For example: - update a database from a background service when the network action of interest occurs - update your activity's GUI from the database the next time the USER brings it to the foreground String On Oct 20, 12:17 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any thing.For that what can i do. Can i bring the activity to foreground using notifications without clicking any button or do i need to use any other concept? On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote: Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html --
[android-developers] Re: Temp storage for bitmap
I had a similar issue with storing temporary images (saving color- corrected images). It turned out that storing a temp image (just plain binary data; a large array of int-s (ARGB)) on the SD-card was the fastest (still slow, though). Storing it on the phone, the cache (getCacheDir) or data (getFilesDir), was way slower (about 2 times for writing) than storing it on the SD-card. Note that i have a class-6 SD-card in my phone. Another reason to use the SD-card instead of the cache is the limited amount of phone-memory. Android will clear the cache when necessary, but stil I call Bitmap.getPixels a number of times on a *large* bitmap, using a temporary buffer, and write the contents of this buffer to a FileOutputStream that points to a temp file on the SD-card. If you have a *small* bitmap, just calling 'compres's using the PNG (no image- quality loss) is sufficient. Be sure to not assign an image extension (e.g .jpg or .png) to the name of this temporary file... it may show in the Gallery app :-) On Oct 20, 9:02 am, Vitaly Polonetsky topix...@gmail.com wrote: Thanks for your reply, that's what I'm planing to do.My other question was where do I temporary store the image ? I can store it in EXTERNAL_CONTENT_URI, Context.getCacheDir() or Context.getFilesDir() ... But what's preferable and why ? (considering: deletion timing, permissions, locks, etc.) Personally, I would choose cache dir. On Tue, Oct 20, 2009 at 12:52 AM, Streets Of Boston flyingdutc...@gmail.com wrote: You can delete it while handling the onActivityResult (this method is called after your sub/child activity finishes). On Oct 14, 10:02 am, m_vitaly m_vit...@topixoft.com wrote: Ok, but what if I want to delete if after issuing startActivity, can I do this ? And where should I store it then ? On Oct 14, 4:20 am, Streets Of Boston flyingdutc...@gmail.com wrote: When you store it in the EXTERNAL_CONTENT_URI, your image can already be shared with every other app on the phone. When you added (inserted) the image, your result was a Uri. This Uri can be used by any other app to obtain your image. On Oct 13, 4:42 pm, m_vitaly m_vit...@topixoft.com wrote: My program creates a bitmap and successfully stores it on external storage (Images.Media.EXTERNAL_CONTENT_URI). The next option to implement is to share the image. I'm thinking about different way of doing it: 1. Save it as captured image (as before) and startActivity with Intent.ACTION_SEND intent with the saved image uri. 2. Save it in application's home directory (getFileStreamPath()), startActivityForResult as in 1. and I hope that I'll recieve a result when the message is sent. 3. Save it in some kind of temp/cache folder and don't bother about deleting it or delete it as in 2. Personally I prefer the second option. My questions are: Will it work with startActivityForResult() as in 2. ? Do I have access to temp/cache folder as in 3. ? If I do, Should I delete the file afterwards ? May be some flag for Intent.ACTION_SEND to delete the file afterwards ? Thanks.- Hide quoted text - - Show quoted text - -- Best regards, Vitaly Polonetsky- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Multiple Screen Support, 1.5 and 1.6
Thanks, Lance. That works well. So currently if I want to handle compatibility for normal size or larger I have to launch and test my app in the HVGA emulator skin, the WVGA800, the WVGA854, and then launch the 1.5 emulator skin by itself, manually install my app from the command line and test it as well. When I first started Android development, I was a bit worried about how things would progress as new hardware configurations came out. I hope it doesn't get any more complicated than this. My guess is that most indie developers just don't have the time/resources to make their apps compatible across a wide range of hardware configurations. I'd be curious to know how many devs on this list are tackling multiple screen support for their apps. On Oct 19, 5:59 pm, Lance Nanek lna...@gmail.com wrote: I used the adb -e install command with the signed exported APK as an argument to install it on an emulator that was running using a 1.5 AVD in my case. Maybe you can use that as a workaround for the time being. Eclipse filtering out the 1.5 AVDs does sound troublesome if you want to test against both 1.5 and 1.6 regularly, though. I hope the market doesn't have the same problem handling the android:minSdkVersion=3 attribute when filtering which users get to see the update. On Oct 19, 5:12 pm, polyclefsoftware dja...@gmail.com wrote: Here's the problem I'm running into: I'm using a resource directory qualifier (e.g. res/drawable-hdpi/). Per the documentation's suggestion, I set the android:minSdkVersion to 3 and the android:targetSdkVersion to 4. In Eclipse, if I set the Project Build Target to Android 1.5, I get an error regarding the new resource directory (invalid resource directory name) and the project won't compile. If I set the Project Built Target to Android 1.6, it builds just fine, but then I can't run the app in the 1.5 emulator. On Oct 19, 2:11 pm, Lance Nanek lna...@gmail.com wrote: Wouldn't an update written using the 1.6 SDK still be available to users on 1.5 as long as you set the android:minSdkVersion attribute on the uses-sdk element in the manifest to 3? I know this works fine on the emulator with a 1.5 image, at least, since that is one of the tests I ran after adding smallscreenlayout directories to one of my apps. On Oct 19, 11:47 am, polyclefsoftware dja...@gmail.com wrote: So I'm trying to make sure my apps are compatible with the 1.6 SDK emulator skins WVGA800 and WVGA854. The Android Developers Blog post regarding this seems strange to me. The post talks about upgrading your app using the 1.6 SDK, then says this: Note that not all devices will be upgraded to Android 1.6 at the same time. There will be significant number of users still with Android 1.5 devices. To use the same apk to target Android 1.5 devices and Android 1.6 devices, build your apps using Android 1.5 SDK and test your apps on both Android 1.5 and 1.6 system images to make sure they continue to work well on both types of devices. Now resource directory qualifiers (e.g. res/drawable-mdpi/ or res/ layout-large) don't work with the 1.5 SDK. So right now as a dev I have the choice to either: 1) Update my apps with the 1.6 SDK so that they are compatible with the various 1.6 emulator skins and the various hardware configurations coming out. If I do this, the updates will not be available to those users that still have 1.5, which is a significant number of users. 2) Continue using the 1.5 SDK, without the available tools in 1.6, but try to somehow get my app to render properly in the various 1.6 emulator skins. Is this about right? Is anyone else dealing with this right now? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: HTC Hero does not support colored LEDs (SDK way) - What can developers do in these cases? [Follow up from android-platform]
HTC replied now that colored LEDs are NOT supported by the custom Android version installed on the HTC Hero. This confirmed my fear that HTC is breaking the funcionality of notifications offered in the Android SDK. From my point of view it is just a starting point of problems we will see with Android getting modified by device manufacturers. On 20 Okt., 15:36, code_android_festival_way festival.s...@googlemail.com wrote: [This is the follow up of a thread I have started in the android- platform group] Hello. I am the developer of a heavily used application (over 110.000 active installs) and got one problem with the Android platform. One of the features in my application uses the normal way of the Android SDK to display a LED notification with a selectable color. The color can be set by ledARGB flag inhttp://developer.android.com/reference/android/app/Notification.html. This had been working with the emulator, the HTC G1 and the HTC Magic (myTouch) but now users starting to report that the HTC Hero does not show up different colors. (although the charging LED for the HTC Hero is orange and the normal notification color is green) The same thing occurs for setting a vibrate pattern. (flag - vibrate inhttp://developer.android.com/reference/android/app/Notification.html) This does not work on the HTC Hero US. (it does work on the EU/GSM version of the Hero) Now I'm a bit worried that this list of basic SDK features not working on Android devices gets longer and longer. (I have heared from problems with alarms on the T-Mobile Pulse) How can we as developers handle such problems? How can we make sure that our applications do not net served to not supported devices by the Android market? Or how can we hide specific features from specific handsets? I am ware of the following manifest settings:http://developer.android.com/guide/topics/manifest/uses-feature-eleme...http://developer.android.com/guide/topics/manifest/uses-configuration... But they do not help me in these cases. I have tried to get some response by HTC but haven't gotten anything untill now. It would be great to hear some of your opinions. Regards --- JBQ answered: At this point in time this discussion is still somewhat off-topic in this group, since none of the compatibility stuff is exposed in the open. Android-developers might be a better place to discuss this. Those device-specific bugs are a definite concern, though, and we'll need to either tighten the compatibility requirements or document that those APIs aren't guaranteed to work on all devices. Thanks, JBQ My answer: You are right and I will start another topic in the Android-developers group. From my point of view it would be ok if there would be a possibility in the SDK (some methods) to get to know from code if the not guaranteed APIs are available on a specific device or not. So developers could hide features if the device does not allow them. But to be honest I'd like the first way more which means tightening the compatibility requirements. At the moment all developers can do is to exclude some devices from their support list because of being not 100% compatible with the Android SDK offered by the Android open source project. Regards and thank you for your answer JBQ. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiple Screen Support, 1.5 and 1.6
I took a crack at writing up the issue in Eclipse here: http://code.google.com/p/android/issues/detail?id=4303 On Oct 19, 5:12 pm, polyclefsoftware dja...@gmail.com wrote: Here's the problem I'm running into: I'm using a resource directory qualifier (e.g. res/drawable-hdpi/). Per the documentation's suggestion, I set the android:minSdkVersion to 3 and the android:targetSdkVersion to 4. In Eclipse, if I set the Project Build Target to Android 1.5, I get an error regarding the new resource directory (invalid resource directory name) and the project won't compile. If I set the Project Built Target to Android 1.6, it builds just fine, but then I can't run the app in the 1.5 emulator. On Oct 19, 2:11 pm, Lance Nanek lna...@gmail.com wrote: Wouldn't an update written using the 1.6 SDK still be available to users on 1.5 as long as you set the android:minSdkVersion attribute on the uses-sdk element in the manifest to 3? I know this works fine on the emulator with a 1.5 image, at least, since that is one of the tests I ran after adding small screen layout directories to one of my apps. On Oct 19, 11:47 am, polyclefsoftware dja...@gmail.com wrote: So I'm trying to make sure my apps are compatible with the 1.6 SDK emulator skins WVGA800 and WVGA854. The Android Developers Blog post regarding this seems strange to me. The post talks about upgrading your app using the 1.6 SDK, then says this: Note that not all devices will be upgraded to Android 1.6 at the same time. There will be significant number of users still with Android 1.5 devices. To use the same apk to target Android 1.5 devices and Android 1.6 devices, build your apps using Android 1.5 SDK and test your apps on both Android 1.5 and 1.6 system images to make sure they continue to work well on both types of devices. Now resource directory qualifiers (e.g. res/drawable-mdpi/ or res/ layout-large) don't work with the 1.5 SDK. So right now as a dev I have the choice to either: 1) Update my apps with the 1.6 SDK so that they are compatible with the various 1.6 emulator skins and the various hardware configurations coming out. If I do this, the updates will not be available to those users that still have 1.5, which is a significant number of users. 2) Continue using the 1.5 SDK, without the available tools in 1.6, but try to somehow get my app to render properly in the various 1.6 emulator skins. Is this about right? Is anyone else dealing with this right now? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] mapmode
how do I bind a key to changing the mode of the map 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] listview color
How do I get a box appear in a different color listview practically the first field is the title 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] icons
hello how do I make the icons display permanently without pressing menu?? not add.menu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problem to show unicode strings in TextView
My server side is using Struts (2.1.7). Strangely, the jsp, using struts tags, usually outputs ideally encoded message which can be displayed by Android’s TextView. Only when it comes to using struts’ “iterator” tag, then decimal unicode are sent to the client, which is fine for browser, but causing problem for Android’s TextView. To transfer the decimal Unicode into hexadecimal one is rather straight forward on the phone side, but this incurs the performance drop. A painful decision to take may be to change the server technology from Struts to Spring, hoping Spring is better than Struts, while Spring may bring other benefit. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: listview color
Create a custom listbox item: http://www.softwarepassion.com/?p=189 On 20 okt, 16:42, android darioamor...@gmail.com wrote: How do I get a box appear in a different color listview practically the first field is the title 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.os.Build.MANUFACTURER
Ok I see IMEI is not valid as a device identifier for Android devices. What do you guys suggest to use instead of the IMEI to identify the device? Is there any best practice in Android environment to do that? I'm asking because I also working on that part of my application right now. Thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Help! Trying to get Basic Auth working with WebView. setHttpAuthUsernamePassword?
Hi! Just one more discovery that in my opinion is probably a bug in the framework. When you call setHttpAuthUsernamePassword only the first call is stored. If you try override values for the same host and realm it will only return the first entered user. Even after restarts of the client. I even had clearCache(true) and that did not help. So if you need to update a value you must first call. WebViewDatabase.getInstance(this).clearHttpAuthUsernamePassword(); In my example you could as well skip the entire setHttpAuth/ getHttpAuth and pass the correct value but if you split the logic then it matters. BR Stoffe On Oct 15, 2:33 pm, Stoffe kristoffer.gronow...@gmail.com wrote: Hi Matt! @Override public void onCreate(Bundle savedInstanceState) { WebView webkit = (WebView) findViewById(R.id.web_view); webkit.setHttpAuthUsernamePassword(page.getHost(), realm, username, password); webkit.setWebViewClient( new WebViewClient() { @Override public void onReceivedHttpAuthRequest (WebView view, HttpAuthHandler handler, String host,String realm){ String[] up = view.getHttpAuthUsernamePassword(host, realm); if( up != null up.length == 2 ) { handler.proceed(up[0], up[1]); } else{ Log.d(WebAuth,Could not find user/pass for domain :+ host+ with realm = +realm); } } }); webkit.loadUrl(page.toString()); BR Stoffe On Oct 13, 12:17 am, Croccy22 matthew.bea...@gmail.com wrote: Hi all, I have a WebView in my layout which I want to display a web page in. However the webpage requires Basic Authentication. If I try to access this web page in the normal android browser, I get prompted for a username and password which then gets remembered and works for the site in future. I want to do the same thing in my application, but when I load the page into the webview it just comes straigt up with the Unauthorised message without prompting. I guess the prompting for Authentication is written in code in the android browser. Does anyone know how to inject a username and password into the WebView? I have done a search arond and found the setHttpAuthUsernamePassword (String host, String realm, String username, String password) Method, But can't seem to get it to work and I can't find anyone else who has either? Not sure if I am giving it the correc parameters as I'm a little confused by what is means as the Realm? I assumed that if the site was myhost.dyndns.org then the hostname would be myhost and the realm would be dyndns.org? This didn't seem to work. I also tried connecting by IP Address but that makes the Realm setting even more confusing? Any ideas on how I can get this working? Thanks, Matt. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 save my custom view's state
Hi, I have a custom View, what is the proper way of saving / restoring it's state after orientation change. I know I should implement onSaveStateInstatnce() and onRestoreInstanceState() methods, but how exactly (with which argumets) and when I should call 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] database question
Hey, I am working on a project for a belgium Tv Guide. Now I download a database (.db) file from a server to the sdcard to work with. In this database are 2 tabels, tvchannels and tvprograms. Now I can do several updates to the tvchannels table and i want to make a backup of this table to a lokal database file. How can i do that? I want to do this because I have to download a new database file every daye from the server and the channels that are choses are saved in the tvchannels database. I want to backup this database table and when the new database file (tvgids.db) is downloaded I want to replace the tvchannels database (from downloaded database file) with the backup from tvchannels.. Anyone has an idea? Thank you, Wouter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Text wrapping around image
anyone could help? On Oct 17, 10:15 am, focuser linto...@gmail.com wrote: Hi, I know this has been brought up before, but I couldn't find a solution yet. I'd like to get the similar layout on an Activity as this html fragment in a browser, basically making text wrapping around an image: img src=rainbow.gif align=left bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla I tried the following but no luck yet: - None of the current layouts supports this. - a TextView and using Html.fromHTML, but that doesn't seem to understand the align attribute -- No matter what align equals to, it just places the image in the same line of the first line of text, and never aligns multiple lines of text along side the image. Styles don't work either. - I looked up the doc of ImageSpan, but its verticalAlignment only supports bottom and baseline. Should I use baseline? I tried it but seems no effect, maybe I'm missing something? - A hack: using two TextView, one to the right of the image, and another below the image, and set the maxLines of the first TextView to be approximately the height of the image. But the problem is I couldn't get the *last visible character* for the text. I don't want to use WebView since it seems to be too much overhead for such a simple view. 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] Showing ellipsis in a TextView?
Hi, I have a normal TextView which has multiple lines. I set its max number of lines to 3. I'd like it to show an ellipsis at the end if the text is too long: TextView tv = new TextView(context); tv.setLines(tv); tv.setText(some really long text...); I tried the set ellipsis calls but it doesn't seem to do anything - the text appears the same way. How do we get this to work? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.os.Build.MANUFACTURER
I'm currently using ANDROID_ID but it looks like I need to switch it up to a custom one because of the Archos 5. I will probably be using a concatenation of a custom 3 letter designating the app, android.os.Build.PRODUCT and the ANDROID_ID. My assumption is that the ANDROID_ID will be unique for any like product. If it isn't then the OHA really needs to start cracking down on manufacturers and running the ID's like they do for MAC address's on network cards. On Tue, Oct 20, 2009 at 8:11 AM, Greivin Lopez greivin.lo...@gmail.comwrote: Ok I see IMEI is not valid as a device identifier for Android devices. What do you guys suggest to use instead of the IMEI to identify the device? Is there any best practice in Android environment to do that? I'm asking because I also working on that part of my application right now. Thanks for your help. -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: android.os.Build.MANUFACTURER
This is what I have been using for a unique phone id. Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID); On Oct 20, 10:11 am, Greivin Lopez greivin.lo...@gmail.com wrote: Ok I see IMEI is not valid as a device identifier for Android devices. What do you guys suggest to use instead of the IMEI to identify the device? Is there any best practice in Android environment to do that? I'm asking because I also working on that part of my application right now. Thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BitmapFactory.decodeStream sometimes returns null
I'm having a similar problem where BitmapFactory.decodeStream() is working reliably in the emulator, but the same app transferred to the phone is returning null everytime. Any ideas? Kevin Hooke On Oct 14, 5:10 pm, anthony.dahanne anthony.daha...@gmail.com wrote: Hello ! I'm experiencing exactly the same problem (working every time while debugging with breakpoints; sometimes failing while normally running), on Android 1.5 Did you solve this problem ? Anthony On Oct 3, 6:09 am, RoryD rory1doug...@gmail.com wrote: I have an activity which performs an image search, the results (URLs of thumbnails on the web) are rendered in a GridView. My GridView adapter class delegates creating the actual Bitmaps to an AsyncTask that loops to sequentially fetch the image content from each URL using HTTPClient, and creates the Bitmaps using: BitmapFactory.decodeStream(entity.getContent()). I found that the above method sometimes returns null silently instead of creating a Bitmap. The occurrences appear to correlate with larger stream sizes (I check this by logging entity.getContentLength()). However, if I put a breakpoint just prior to the decodeStream call then resume immediately every time I hit it (i.e. pause briefly on each iteration), the Bitmaps are created perfectly every time. All the images are quite small (most 10K), so the download decodeStream happens fairly quickly. There are never more than 10 images processed in one AsyncTask. Any ideas on what's going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
I don't understand why do you want to force to display your activity. Is this a must for your requirement? It would be better to display notification from a background service, clicking the notification will forward to your activity screen. On Tue, Oct 20, 2009 at 6:42 AM, pink 444 pnk...@gmail.com wrote: Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? As soon as i receive network event can i create a new activity and destroy previous activity if at all it is not active. There should be some feasible design because android is handling incoming call indication .I think it is also handling similar type of problems. Please guide me in a right way. On Oct 20, 5:49 pm, String sterling.ud...@googlemail.com wrote: Reread RichardC's reply. There's good reason to believe that the platform doesn't allow - indeed shouldn't allow - arbitrary apps to bring their activities to the foreground without user action. Even if the platform does allow it, I have to agree with RichardC that it's not a good idea. If the user has moved on from your activity to another, why do you know better than they that yours is more important? I suggest you rethink your architecture to achieve your desired result without using this technique. For example: - update a database from a background service when the network action of interest occurs - update your activity's GUI from the database the next time the USER brings it to the foreground String On Oct 20, 12:17 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any thing.For that what can i do. Can i bring the activity to foreground using notifications without clicking any button or do i need to use any other concept? On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote: Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp:// developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva
[android-developers] Re: How to get unique handset device id?
Is the value ANDROID_ID a globally unique id like the MAC address? reference: http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID On Mon, Oct 12, 2009 at 9:25 AM, Wayne Wenthin wa...@fuligin.com wrote: why not String Android_ID = System.getString(this.getContentResolver(), android.provider.Settings.System.ANDROID_ID); What would happen if I tried the suggested method on an Archos 5 which doesn't actually have a phone? On Mon, Oct 12, 2009 at 9:19 AM, Yusuf Saib (T-Mobile USA) yusuf.s...@t-mobile.com wrote: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId()http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId%28%29 Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 11, 9:23 pm, Agus agus.sant...@gmail.com wrote: How to get unique handset device id? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: android.os.Build.MANUFACTURER
That is what I was using also. But Mark Murphy picked up an Archos 5 and found that it does not return a 16 byte hex number like described in the SDK. This will no longer work for me if I can't expect the ID to be 16 bytes. My previous post explains how I am going to use the ID along with other non-unique values in an attempt to create a unique ID. I have to rewrite my backend also but that is pretty simple. On Tue, Oct 20, 2009 at 8:44 AM, junker37 junke...@gmail.com wrote: This is what I have been using for a unique phone id. Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID); On Oct 20, 10:11 am, Greivin Lopez greivin.lo...@gmail.com wrote: Ok I see IMEI is not valid as a device identifier for Android devices. What do you guys suggest to use instead of the IMEI to identify the device? Is there any best practice in Android environment to do that? I'm asking because I also working on that part of my application right now. Thanks for your help. -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: Showing ellipsis in a TextView?
I use this in my layout xml file: android:ellipsize=end android:singleLine=true And this works perfectly for text on 1 line.. On Oct 20, 5:42 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, I have a normal TextView which has multiple lines. I set its max number of lines to 3. I'd like it to show an ellipsis at the end if the text is too long: TextView tv = new TextView(context); tv.setLines(tv); tv.setText(some really long text...); I tried the set ellipsis calls but it doesn't seem to do anything - the text appears the same way. How do we get this to work? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to get unique handset device id?
It doesn't appear to be.The Archos 5 is only returning 4 bytes I believe. If someone that is more familiar with this could speak up it would be cool. I would assume that the ID's are governed by the OHA if they are truly unique. On Tue, Oct 20, 2009 at 8:49 AM, Agus agus.sant...@gmail.com wrote: Is the value ANDROID_ID a globally unique id like the MAC address? reference: http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID On Mon, Oct 12, 2009 at 9:25 AM, Wayne Wenthin wa...@fuligin.com wrote: why not String Android_ID = System.getString(this.getContentResolver(), android.provider.Settings.System.ANDROID_ID); What would happen if I tried the suggested method on an Archos 5 which doesn't actually have a phone? On Mon, Oct 12, 2009 at 9:19 AM, Yusuf Saib (T-Mobile USA) yusuf.s...@t-mobile.com wrote: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId()http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId%28%29 Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 11, 9:23 pm, Agus agus.sant...@gmail.com wrote: How to get unique handset device id? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.com -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: Showing ellipsis in a TextView?
Hi Wouter, Yes that does work for single line text, but not for multiline - checking from other posts here it seems like the ellipsis does not handle multiline text correctly? Thanks On Oct 20, 12:06 pm, Wouter wouterg...@gmail.com wrote: I use this in my layout xml file: android:ellipsize=end android:singleLine=true And this works perfectly for text on 1 line.. On Oct 20, 5:42 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, I have a normal TextView which has multiple lines. I set its max number of lines to 3. I'd like it to show an ellipsis at the end if the text is too long: TextView tv = new TextView(context); tv.setLines(tv); tv.setText(some really long text...); I tried the set ellipsis calls but it doesn't seem to do anything - the text appears the same way. How do we get this to work? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Showing ellipsis in a TextView?
Yes I have searched this also before and this also works for single line text so i think you have to use it this way.. Wouter On Oct 20, 6:23 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi Wouter, Yes that does work for single line text, but not for multiline - checking from other posts here it seems like the ellipsis does not handle multiline text correctly? Thanks On Oct 20, 12:06 pm, Wouter wouterg...@gmail.com wrote: I use this in my layout xml file: android:ellipsize=end android:singleLine=true And this works perfectly for text on 1 line.. On Oct 20, 5:42 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, I have a normal TextView which has multiple lines. I set its max number of lines to 3. I'd like it to show an ellipsis at the end if the text is too long: TextView tv = new TextView(context); tv.setLines(tv); tv.setText(some really long text...); I tried the set ellipsis calls but it doesn't seem to do anything - the text appears the same way. How do we get this to work? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] 3D MapView - Is it possible?
Is there a way to manipulate a MapView so it is given perspective? I.e. the Tiles at the bottom of the view are wider than those drawn at the top of the view? 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 make LinearLayout smooth scroll ing?
hi, i am a new android developer, and recently I was doing a horizontal scrolling menu. the follow is xml doc: com.kingkong.gallery.GalleryHorizontalView android:id=@+id/HorizontalScrollView01 android:layout_width=fill_parent android:scrollbars=none android:layout_height=wrap_content LinearLayout android:id=@+id/ourlayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent android:background=#ff /LinearLayout /com.kingkong.gallery.GalleryHorizontalView class GalleryHorizontalView is defined by myself, it is extends from HorizontalScrollView. in GalleryHorizontalView, I made the following changes ( changes in method onTouchEvent(MotionEvent ev) ): case MotionEvent.ACTION_MOVE: // x == ev.getX(); final int deltaX = (int) (mLastMotionX - x); mLastMotionX = x; // i want to let the child view's ( LinearLayout ) horizontal padding change,so change //the child view's x coordinate, x coordinate is change by deltaX; if (deltaX 0) { if (getScrollX() = 0) { getChildAt(0).scrollBy(deltaX, 0); } } else if (deltaX 0) { final int rightEdge = getWidth() - getPaddingRight(); final int availableToScroll = getChildAt(0).getRight() - getScrollX() - rightEdge; if (availableToScroll 0) { getChildAt(0).scrollBy(Math.min(availableToScroll, deltaX), 0); } } break; case MotionEvent.ACTION_UP: int menuItemWidth = 80; int temp = getChildAt(0).getScrollX(); int remainder = temp %menuItemWidth; int scrollToCoords = 0; // if temp 0 or temp == the child view's left coordinate, scrollToCoords =0; //scrollToCoords's value is x coordinate when the child view end its scrolling. //the follow calculation is to ensure that each option can be displayed properly if (temp 0 || temp == getChildAt(0).getLeft()) { scrollToCoords = 0; } else if (temp = getChildAt(0).getRight() / 2) { scrollToCoords = getChildAt(0).getWidth() / 2; } else if (temp getChildAt(0).getRight() temp getChildAt(0).getLeft()) { if (remainder == 0) { scrollToCoords = temp; } else { if (remainder menuItemWidth/2) { scrollToCoords = temp - remainder + menuItemWidth; } if (remainder = menuItemWidth/2) { scrollToCoords = temp - remainder; } } } float mDeltaX = mLastMotionX - x; mScroller.startScroll((int)mLastMotionX, 0, (int)x, 0, 1000); this.invalidate(); getChildAt(0).scrollBy((int) mDeltaX, 0); getChildAt(0).scrollTo(scrollToCoords, 0); i run my app after made this change,the child view LinearLayout can scroll with the order, but it looks like jump, not smooth scrolling, how can make the scroll smooth. thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Signing error when installing SDK into eclipse
I was installing the SDK today and it warned me that the package contained unsigned software... I followed installation instructions...is this normal? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hi
Hi I would like to join into this Google Android group. Please add me as a member into your group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.provider.Settings.System.AUTO_TIME
I fix it with uses-permission android:name=android.permission.WRITE_SETTINGS/ uses-permission in manifest file. On Oct 15, 9:15 pm, Hao reade...@gmail.com wrote: I am trying to use android.provider.Settings.System.getInt and putInt to enable and disable network time as follows: android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.AUTO_TIME, 1); However this does not seem to be working, does anyone have some advice on how I should do this? I am using SDK 1.6. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
I do want it! Thanks! God bless U,dear David On 10月16日, 上午11时44分, Guru gurudut...@gmail.com wrote: I want it.Thanks very much! On Fri, Oct 16, 2009 at 9:11 AM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Who wants to be in Google wave? I have 16 invitations -- Thanks and Regards Gurudutt P.S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
You cannot just bring your app into foreground. Its against android rules. You have to use notification mechanism to inform user about an event. Regards, Batosz On Tue, Oct 20, 2009 at 10:24 AM, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MyLocationOverlay causing crash in 1.6 (Donut)
I have seen exactly the same problem, but only reproducible in some phones with non standar builds. Anyway, they are 1.5 flavour. The same piece of code works perfectly in a 1.6 G1 Dev Phone. If you extend MyLocationOverview and overwrite the draw method it does not crash... anyway this is not a solution since my location is not displayed, but proves that this is the prblem. What I am very curious about is that Google Maps works fine in that phone. On Sep 28, 11:36 pm, CaptainSpam captains...@gmail.com wrote: Well, I suppose you do have a point. I just thought that 1.6's proper release was a bit more imminent. I'll check back once Donut's fully ready for prime time, then. Thanks! On Sep 26, 8:48 am, MrChaz mrchazmob...@googlemail.com wrote: Well if they will install a non-released version of the OS then that's to be expected. On Sep 25, 10:04 pm, CaptainSpam captains...@gmail.com wrote: Recently, two independent users with 1.6 (Donut) on their phones have informed me that my app crashes after it enters a MapView, just as soon as MyLocationOverlay obtains its first location fix. I have seen it do so with one of them, in fact. However, when I asked for a logcat, what they sent me seems to indicate the crash originated from an uncaught ClassCastException thrown from within MyLocationOverlay itself, not from my code. Worse, I tried running this on the 1.6 emulator and couldn't make it crash (I don't have 1.6 on my actual phone yet), so I am completely lost with this and unsure if it's something odd they were doing on their phones or something I will have to worry about when 1.6 gets rolled out to more people. One user has tried uninstalling/reinstalling the app numerous times, as well as disabling Dalvik-Cache, all to no avail. This app works perfectly on both 1.1 and 1.5 phones. I also tried recompiling the app explicitly using the 1.6 SDK, and it still crashed (as per the user I talked to). Is there anything I would need to consider with regards to MyLocationOverlay when upgrading to 1.6? Thanks in advance! -- Nicholas Killewald What follows is the logcat I received from one user (apologies for any formatting problems). I would provide a code snippet, but since the exception didn't come from my code, I'm not sure what I would need to paste. 09-22 11:38:16.106 I/ActivityManager( 158): Displayed activity net.exclaimindustries.geohashdroid/.MainMap: 2846 ms (total 2846 ms) 09-22 11:38:16.767 D/libgps ( 158): PDSM_PD_EVENT_BEGIN 09-22 11:38:16.767 D/GpsLocationProvider( 158): Acquiring wakelock 09-22 11:38:16.866 D/libgps ( 158): PDSM_PD_EVENT_COMM_BEGIN 09-22 11:38:16.876 D/libgps ( 158): calling sAGpsStatusCallback GPS_REQUEST_AGPS_DATA_CONN 09-22 11:38:16.916 D/libgps ( 158): qct_agps_data_conn_open: epc.tmobile.com 09-22 11:38:16.916 D/libgps ( 158): DeferredActionThread calling send_pdsm_atl_post_event PDSM_ATL_EVENT_OPEN_SUCCESS epc.tmobile.com 09-22 11:38:17.501 D/libgps ( 158): PDSM_PD_EVENT_COMM_CONNECTED 09-22 11:38:17.926 D/libgps ( 158): PDSM_PD_EVENT_GPS_BEGIN 09-22 11:38:18.336 D/libgps ( 158): PDSM_PD_EVENT_COMM_DONE 09-22 11:38:19.088 D/libgps ( 158): calling sAGpsStatusCallback GPS_RELEASE_AGPS_DATA_CONN 09-22 11:38:19.088 D/libgps ( 158): qct_agps_data_conn_closed 09-22 11:38:19.216 D/dalvikvm( 730): GC(0) freed 8209 objects / 611880 bytes in 109ms 09-22 11:38:19.966 D/NetworkLocationProvider( 158): getLocation(): falling back to cell 09-22 11:38:20.126 I/ActivityManager( 158): Start proc com.google.android.apps.maps:LocationFriendService for service com.google.android.apps.maps/ com.google.googlenav.friend.android.LocationFriendService: pid=750 uid=10025 gids={3003} 09-22 11:38:20.366 I/Maps.MyLocationOverlay( 730): Running deferred on first fix: net.exclaimindustries.geohashdroid.MainMap $initiallocationadjus...@439ec528 09-22 11:38:20.566 I/ActivityManager( 158): Process com.android.mms (pid 614) has died. 09-22 11:38:20.576 D/AndroidRuntime( 730): Shutting down VM 09-22 11:38:20.576 W/dalvikvm( 730): threadid=3: thread exiting with uncaught exception (group=0x4001e210) 09-22 11:38:20.576 E/AndroidRuntime( 730): Uncaught handler: thread main exiting due to uncaught exception 09-22 11:38:20.636 E/AndroidRuntime( 730): java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable 09-22 11:38:20.636 E/AndroidRuntime( 730): at com.google.android.maps.MyLocationOverlay.getLocationDot (MyLocationOverlay.java:180) 09-22 11:38:20.636 E/AndroidRuntime( 730): at com.google.android.maps.MyLocationOverlay.drawMyLocation (MyLocationOverlay.java:561) 09-22 11:38:20.636 E/AndroidRuntime( 730): at com.google.android.maps.MyLocationOverlay.draw(MyLocationOverlay.java: 511) 09-22 11:38:20.636 E/AndroidRuntime( 730): at
[android-developers] Place an icon in status bar (not notification)
Hi all, I want to place an icon in the status bar when my service is started. I know how to send notifications to the status bar, but what I want is to show only an icon at the right, like the WIFI icon when WIFI is on, the antenna icon when GoogleMaps is on, etc. My service will send notifications to the status bar when needed, but also I want the user to know that the service is running placing an icon at the right. Is that possible? Thanks, Adrián. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
Please and peace for somebody that give me one invitation for inigo.jimenez at gmail.com Thanks and best regards!! On 20 oct, 06:58, Desu Vinod Kumar vinny.s...@gmail.com wrote: HI I didnt get any invitation... On Tue, Oct 20, 2009 at 10:25 AM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: CODEMONKEY I sent you one On Sun, Oct 18, 2009 at 9:20 AM, CodeMonkey nimafa...@gmail.com wrote: I'll take one as well if you still have any left. Thanks in advance, On Oct 15, 11:41 pm, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Who wants to be in Google wave? I have 16 invitations -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09176147148 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] listview
Hai, i am new in android. My application is create the multiline listview.i.e the listview contains more than two lines.now i have a doubt about the listview.can we create the multiline in the listview.And also the spinner appear above the listview. suppose i click the listview all the contents appear in next screen. can we do that?can means give sample code (or)sample url for developing my 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: Google wave invitations...?
If there any invitation for me... inigo.jimenez at gmail.com please Thanks and best regards!! On 17 oct, 21:37, AuthorityAction authorityact...@gmail.com wrote: If there are any left, I would like one too! Thanks. On Oct 15, 10:41 pm, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Who wants to be inGooglewave? I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Booting Android on Samsung Star
And me too. Hopefully getting my Star this week and would like to give Andriod a go in the future- if it's possible. On Oct 13, 8:55 pm, Kashish Dhanjani kashi...@gmail.com wrote: Sounds awesome, please let me know if you meet with success. On Oct 4, 9:13 am, pushkal sharma pushkalsharm...@gmail.com wrote: I reacently boughtSamsungStar.I am planning to boot Android on SamsungStar.I wanted to know is it possible to boot Android on SamsungStar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I detect when outgoing call has been accepted
Hello everyone, I have seen, using search, that this question has been asked already in this forum, without answer. To ask again: How can I detect when outgoing call has been accepted ? I can detect when outgoing call has been started using BroadcastReceiver. I can detect when call has ended using PhoneStatusListener. But there is nothing more except this two notifications. Internal phone application detects this event, my HTC magic (running standard cupcake) vibrates shortly when other party accepts call. So is it possible to detect this event in 'cupcake' or 'donut'. If not where can I post feature request to android OS developers to include this notification in next API revision. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] simple game development
Hi all, I am new to development with android. I am a beginner. I have to develop games using android and opengl es. Please send me a simple game with step by step approach. please help me in this thanks regards, mallikarjuna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
I offer free virtual hugs to anyone that gives me one invitation to: inigo.jimenez at gmail.com Best Regards!! On 20 oct, 12:56, Getto gige...@gmail.com wrote: One for me? Thanks. .g On Oct 16, 4:32 pm, budziq bud...@gmail.com wrote: Well. Who wouldn't want one ;)? I guess I'd like one too ;) On Oct 16, 4:02 pm, Carl Whalley carl.whal...@googlemail.com wrote: I'd love an invite too ... anyone ... thanks! On Oct 16, 2:26 pm, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Have any of you gotten an email yet? I swear I've sent them out... perhaps they're just nominations for a possible invite to google wave and not you know actual concrete invitations I don't know, but I'm guessing that you guys would still want it. Hahah :) I'm in class right now, but I'll review all you guys On Fri, Oct 16, 2009 at 7:40 AM, GSC greg.ch...@gmail.com wrote: If anyone else has an available invitiation, please send me one. Thanks On Oct 16, 7:31 am, ColletJb collet...@gmail.com wrote: I think there are no invitation left from Kenneth Adam Miller. But if anyone invited by him has invitation and can invite me, It would be great ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
If someone still has one, could you please invite me? Thanks in advance! On Oct 16, 4:32 pm, budziq bud...@gmail.com wrote: Well. Who wouldn't want one ;)? I guess I'd like one too ;) On Oct 16, 4:02 pm, Carl Whalley carl.whal...@googlemail.com wrote: I'd love an invite too ... anyone ... thanks! On Oct 16, 2:26 pm, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Have any of you gotten an email yet? I swear I've sent them out... perhaps they're just nominations for a possible invite to google wave and not you know actual concrete invitations I don't know, but I'm guessing that you guys would still want it. Hahah :) I'm in class right now, but I'll review all you guys On Fri, Oct 16, 2009 at 7:40 AM, GSC greg.ch...@gmail.com wrote: If anyone else has an available invitiation, please send me one. Thanks On Oct 16, 7:31 am, ColletJb collet...@gmail.com wrote: I think there are no invitation left from Kenneth Adam Miller. But if anyone invited by him has invitation and can invite me, It would be great ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 draw 3D objects on a MapView
Hi, I have been able to draw a map using 'MapActivity' class. Am unable to render 3D graphics on the Map. Is there any way to draw something on the foreground with the Map as the background? Thank you, Anush --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
Please give me one :) Thanks, Alok. On Tue, Oct 20, 2009 at 7:26 PM, Gil glbrt.c...@gmail.com wrote: any else? i need one. thanks. On Oct 16, 11:41 am, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Who wants to be in Google wave? I have 16 invitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Activity launch timeout even with wakelock
Hi, I have the following code in Oncreate of my activity: static String linkUrl = http://www.google.com/;; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock (PowerManager.SCREEN_DIM_WAKE_LOCK, My Tag); wl.acquire(); try { URL connectURL = new URL(linkUrl); HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection(); DataInputStream dis = new DataInputStream (conn.getInputStream ()); byte[] data = new byte[1024]; int len = dis.read(data, 0, 1024); dataText = new String(data, 0, len); } catch(Exception e) { Log.e(TAG, Exception); return; } TextView bodyText = (EditText) findViewById (R.id.android_fetchtext); bodyText.setText(dataText); setContentView(R.layout.notes_fetch); wl.release(); } I declared the following permissions in manifest: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.WAKE_LOCK/ Here is my xml layout file: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content ListView android:id=@+id/android:fetchlist android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/android:fetchtext android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout Problem is, application goes to force close with following error: 10-19 22:11:49.404: DEBUG/FetchData(715): Entered OnCreate 10-19 22:11:49.413: DEBUG/FetchData(715): Set URL 10-19 22:11:49.435: DEBUG/FetchData(715): HttpURLConnection 10-19 22:11:49.464: DEBUG/FetchData(715): DIS 10-19 22:11:56.013: DEBUG/FetchData(715): Read 10-19 22:11:59.191: WARN/ActivityManager(574): Launch timeout has expired, giving up wake lock! -- 10-19 22:11:59.307: WARN/ActivityManager(574): Activity idle timeout for HistoryRecord{438d4478 com.android.demo.notepad3/.FetchData} --- 10-19 22:12:01.455: DEBUG/AndroidRuntime(715): Shutting down VM 10-19 22:12:01.455: WARN/dalvikvm(715): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 10-19 22:12:01.465: ERROR/AndroidRuntime(715): Uncaught handler: thread main exiting due to uncaught exception 10-19 22:12:01.834: ERROR/AndroidRuntime(715): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.android.demo.notepad3/com.android.demo.notepad3.FetchData}: java.lang.NullPointerException 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.os.Handler.dispatchMessage(Handler.java:99) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.os.Looper.loop(Looper.java:123) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.main(ActivityThread.java:4203) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at java.lang.reflect.Method.invokeNative(Native Method) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at java.lang.reflect.Method.invoke(Method.java:521) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at dalvik.system.NativeStart.main(Native Method) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): Caused by:
[android-developers] Devices information using Wifi API
Hi, I want to get the information of the devices that are connected to a Wifi Access point. Is there an API developed for that. Is it possible to retrieve the table information of the devices from a Wifi Access point? If yes then can somebody guide me how to go ahead with that. Thanks SD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google wave invitations...?
I'd love an invite to! Thanks by advance! On Oct 20, 12:56 pm, Getto gige...@gmail.com wrote: One for me? Thanks. .g On Oct 16, 4:32 pm, budziq bud...@gmail.com wrote: Well. Who wouldn't want one ;)? I guess I'd like one too ;) On Oct 16, 4:02 pm, Carl Whalley carl.whal...@googlemail.com wrote: I'd love an invite too ... anyone ... thanks! On Oct 16, 2:26 pm, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Have any of you gotten an email yet? I swear I've sent them out... perhaps they're just nominations for a possible invite to google wave and not you know actual concrete invitations I don't know, but I'm guessing that you guys would still want it. Hahah :) I'm in class right now, but I'll review all you guys On Fri, Oct 16, 2009 at 7:40 AM, GSC greg.ch...@gmail.com wrote: If anyone else has an available invitiation, please send me one. Thanks On Oct 16, 7:31 am, ColletJb collet...@gmail.com wrote: I think there are no invitation left from Kenneth Adam Miller. But if anyone invited by him has invitation and can invite me, It would be great ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Activity launch timeout even with wakelock
Hi, I have the following code in Oncreate of my activity: static String linkUrl = http://www.google.com/;; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock (PowerManager.SCREEN_DIM_WAKE_LOCK, My Tag); wl.acquire(); try { URL connectURL = new URL(linkUrl); HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection(); DataInputStream dis = new DataInputStream (conn.getInputStream ()); byte[] data = new byte[1024]; int len = dis.read(data, 0, 1024); dataText = new String(data, 0, len); } catch(Exception e) { Log.e(TAG, Exception); return; } TextView bodyText = (EditText) findViewById (R.id.android_fetchtext); bodyText.setText(dataText); setContentView(R.layout.notes_fetch); wl.release(); } I declared the following permissions in manifest: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.WAKE_LOCK/ Here is my xml layout file: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content ListView android:id=@+id/android:fetchlist android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/android:fetchtext android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout Problem is, application goes to force close with following error: 10-19 22:11:49.404: DEBUG/FetchData(715): Entered OnCreate 10-19 22:11:49.413: DEBUG/FetchData(715): Set URL 10-19 22:11:49.435: DEBUG/FetchData(715): HttpURLConnection 10-19 22:11:49.464: DEBUG/FetchData(715): DIS 10-19 22:11:56.013: DEBUG/FetchData(715): Read 10-19 22:11:59.191: WARN/ActivityManager(574): Launch timeout has expired, giving up wake lock! -- 10-19 22:11:59.307: WARN/ActivityManager(574): Activity idle timeout for HistoryRecord{438d4478 com.android.demo.notepad3/.FetchData} --- 10-19 22:12:01.455: DEBUG/AndroidRuntime(715): Shutting down VM 10-19 22:12:01.455: WARN/dalvikvm(715): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 10-19 22:12:01.465: ERROR/AndroidRuntime(715): Uncaught handler: thread main exiting due to uncaught exception 10-19 22:12:01.834: ERROR/AndroidRuntime(715): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.android.demo.notepad3/com.android.demo.notepad3.FetchData}: java.lang.NullPointerException 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.os.Handler.dispatchMessage(Handler.java:99) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.os.Looper.loop(Looper.java:123) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at android.app.ActivityThread.main(ActivityThread.java:4203) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at java.lang.reflect.Method.invokeNative(Native Method) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at java.lang.reflect.Method.invoke(Method.java:521) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): at dalvik.system.NativeStart.main(Native Method) 10-19 22:12:01.834: ERROR/AndroidRuntime(715): Caused by:
[android-developers] Re: simple game development
http://lmgtfy.com/?q=android+game+tutorial On Tue, Oct 20, 2009 at 6:24 AM, mallikarjuna ch mallikarjuna@gmail.com wrote: Hi all, I am new to development with android. I am a beginner. I have to develop games using android and opengl es. Please send me a simple game with step by step approach. please help me in this thanks regards, mallikarjuna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bring an activity to foreground from background manually?
Please, read this article before you do that: http://developer.android.com/guide/practices/design/seamlessness.html Regards, Bartosz On Tue, Oct 20, 2009 at 1:17 PM, pink 444 pnk...@gmail.com wrote: Thanks for your replay. But the thing here is if at all we click on the notification only intent will bring the Activity up. I want to bring the activity to foreground without clicking any thing.For that what can i do. Can i bring the activity to foreground using notifications without clicking any button or do i need to use any other concept? On Oct 20, 3:31 pm, Nithin nithin.war...@gmail.com wrote: Hi Shiva, try this, may help... whichever activity, that you want to put in the foreground, use an Intent, by setting this flag... intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); Thanks Nithin On Oct 20, 3:20 pm, pink 444 pnk...@gmail.com wrote: What i want to implement is i have a service which will wait on a socket for network events. On some network events service has to notify the application activity to update GUI elements. If at all my activity is not running how can i update GUI.At any i have to update GUI as soon as network events occurred. On Oct 20, 2:54 pm, RichardC richard.crit...@googlemail.com wrote: I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it). One of the reasons if I read about (on other platforms) for NOT implementing bring my app to the front and make it active right now is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 pnk...@gmail.com wrote: After studying some articles regarding notifications .I have understood something that after clicking on the notification only specified activities are activated or brought into foreground. But in my application i have to bring an activity as soon as a background event occurred. How can i implement that scenario using Notifications ? Thanks, -Siva. On Oct 20, 1:24 pm, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can u give me a working example for letting an activity to foreground using notifications. On Oct 19, 6:17 pm, RichardC richard.crit...@googlemail.com wrote: Notificationhttp://developer.android.com/reference/android/app/Notification.html -- RichardC On Oct 19, 1:57 pm, pink 444 pnk...@gmail.com wrote: Hai, In my application i wait on socket for network events.On some events i have to bring activity into foreground(make activity as running) if at all it is not in the foreground. How can i do this? Any suggestions would be appreciated highly. Thanks, -Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 3D MapView - Is it possible?
mscwd01 wrote: Is there a way to manipulate a MapView so it is given perspective? I.e. the Tiles at the bottom of the view are wider than those drawn at the top of the view? Not with Google Maps, no. I cannot speak for alternative map systems. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---