[android-developers] Re: Take an action when soft keyboard is launched
Hi Thomas, I think you can do this on the basis of parameters of onSizeChanged. void onSizeChanged (int w, int h, int oldw, int oldh) Parameters w Current width of this view. h Current height of this view. oldwOld width of this view. oldhOld height of this view. Thanks, AJ On Sep 30, 3:37 am, Thomas wrote: > Hi > > Thanks all for your answers. > > I put a code in the onSizeChanged(), but when this method is called > always when the view resizes. I'd like to know how I can discover > using this method if the virtualkeyboardis opened or not. > > I saw the InputMethodManager, but I didn't find how to use this class > for my purpose. > > Anyone can help me? > > Thanks again > > On Tue, Sep 29, 2009 at 7:51 AM, AJ wrote: > > > If your class is extending from an Activity then I don't know how to > > get that event. > > > But if your app has some class which is extending from View, then > > onSizeChanged() gets the control when ever your view gets shortened. > > > Like:- WebView get in Browser app > > > Thanks, > > AJ > > > On Sep 29, 2:34 pm, Mark Murphy wrote: > >> Gulfam wrote: > >> > I also want totakesome actions onsoftkeyboardappear and > >> > disappear. > >> > any one can help us how we can get appear and disappear events. > > >> There are no such events, short of detecting a window resize (and, off > >> the top of my head, I don't know how to do that). > > >> -- > >> Mark Murphy (a Commons > >> Guy)http://commonsware.com|http://twitter.com/commonsguy > > >> Android App Developer Books:http://commonsware.com/books.html > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android G1 Phone and Proxy Server
Do you force G1 phone to use a proxy server or run a proxy server in G1 phone? On Wed, Sep 30, 2009 at 4:42 PM, Isuru danagalle wrote: > Hi All, >Anybody knows how to setup proxy server in android?Ryt now I > have an app working without proxy server > When proxy is enabled application terminates.Anybody knows how to do proxy > settings in android G1 phone?? > > Thanks > Isuru > > > -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 G1 Phone and Proxy Server
Hi All, Anybody knows how to setup proxy server in android?Ryt now I have an app working without proxy server When proxy is enabled application terminates.Anybody knows how to do proxy settings in android G1 phone?? Thanks Isuru --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 manage 2 versions of the same app: a lite version and a full version?
If someone wants to add an option to aapt to rewrite the .apk to have a different package name than the one in the manifest, I'd love to review it. This is a little tricky -- you need to rewrite the manifest's components and such to also work with the new package -- but should be quite doable. And the nice thing for this kind of stuff is that you don't need to wait for it to ship on a device to use it. ;) On Tue, Sep 29, 2009 at 11:18 PM, mjc147 wrote: > > So if you have three different projects (each with their own package) > then you have three different generated R files. So the generic > project uses its own R.java and the pro project uses its own R.java > AND the R.java for the generic project. > > I'm not sure I understand the problem - maybe because I haven't tried > this out. Can someone please explain a specific example? > > On Sep 3, 4:41 pm, Datoh wrote: > > Hi, > > > > I want to use the same eclipse project to maintain only one source > > code (or two projects that refer to a generic project). > > My problem is that the names of the package have to be different on > > the market (eg: my.android.app.lite and my.android.app.pro). > > If the package names are differents, the generated java ressource > > files are differents (eg: my.android.app.lite.R.java and > > my.android.app.pro.R.java). > > So, the source files must point to differents R files according to the > > version (pro or lite) and I have to change all the import... > > > > Do you know how can I deal with that? > > > > Thanks, > > Cedric. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to manage 2 versions of the same app: a lite version and a full version?
So if you have three different projects (each with their own package) then you have three different generated R files. So the generic project uses its own R.java and the pro project uses its own R.java AND the R.java for the generic project. I'm not sure I understand the problem - maybe because I haven't tried this out. Can someone please explain a specific example? On Sep 3, 4:41 pm, Datoh wrote: > Hi, > > I want to use the same eclipse project to maintain only one source > code (or two projects that refer to a generic project). > My problem is that the names of the package have to be different on > the market (eg: my.android.app.lite and my.android.app.pro). > If the package names are differents, the generated java ressource > files are differents (eg: my.android.app.lite.R.java and > my.android.app.pro.R.java). > So, the source files must point to differents R files according to the > version (pro or lite) and I have to change all the import... > > Do you know how can I deal with that? > > Thanks, > Cedric. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Is it possible to upgrade HTC Magic G2 from 1.5-Cupcake to 1.6-Donut ?
Hi. Thank you for the quick reply. Im currently using released phone(HTC Magic G2)which is not a developer handset. Is there any lock for the firmware? Any response would be highly appreciated. Best Regards, Bindu On Tue, Sep 29, 2009 at 5:39 PM, Kasmoori Bindu wrote: > Hi, > I am currently using HTC Magic G2 H/W with Android 1.5 Cupcake; I am > planning to upgrade it to 1.6 Donut. Is it possible? if so, what is the > procedure to upgrade. I need this information urgently. > > Could anyone please respond. > > Thanks &Regards, > Bindu > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 add 3rd party package in android framework
Hi, please post these kinds of questions to android-porting; thanks. On Tue, Sep 29, 2009 at 10:33 PM, Rahul Bhagwat wrote: > > I have developed my java library package & I want to use this package > from other Android applications such as Gallery and Music. so I've put > this package under framework/base/core/java/com/ > also made entry of AIDL files in Android.mk file located at framework/ > base folder , > but java files in above locations are not getting compiled. But if i > put my package under framework/base/core/java/android folder then my > package is build successfully. But I do not want to change the name of > my package so I'm putting my package under com folder. > Pls suggest a way to solve above problem. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)
Crashing on unofficial builds is worse than crashing at startup on official builds? =P - Dan On Wed, Sep 30, 2009 at 1:49 AM, Pieter wrote: > > The problem is a little worse for us. Our app does runs fine on 1.6 in > the simulator, but we got complaints about crashes from people running > unofficial builds: > > java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable >at com.google.android.maps.MyLocationOverlay.getLocationDot > (MyLocationOverlay.java:180) >at com.google.android.maps.MyLocationOverlay.drawMyLocation > (MyLocationOverlay.java:561) >at com.google.android.maps.MyLocationOverlay.draw > (MyLocationOverlay.java:511) >at com.google.android.maps.OverlayBundle.draw > (OverlayBundle.java:45) >at com.google.android.maps.MapView.onDraw(MapView.java:476) > > Based on the exception trace it seems the MapView widget in > combination with the MyLocation overlay is bugged in some unofficial > 1.6 build(s) but work fine in 1.6 in the simulator. Already some > people gave bad ratings (and comments) in the shop because of this > bug, and undoubtedly will in ADC2. On the web, some more scattered > reports about this problem can be found, including: > > http://groups.google.com/group/android-developers/browse_thread/thread/43615742f462bbf1/eb170a84a0ff385e?#eb170a84a0ff385e > > On the one hand, these people try an application and it just crashes > so they are entitled to give bad ratings. On the other hand, they run > an unofficial build, so maybe they should take that into account. > > We just hope relatively few judges run these builds. We actually hope > the official 1.6 comes out sooner instead of later so some potential > judges already upgraded from an unofficial build to the official 1.6 > when they judge. > > Anyway, anyone who uses MyOverlay in their application suffers from > the same problem. > > Regards, > Pieter (SpecTrek). > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 submissions and Android 1.6 (Donut)
The problem is a little worse for us. Our app does runs fine on 1.6 in the simulator, but we got complaints about crashes from people running unofficial builds: java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable at com.google.android.maps.MyLocationOverlay.getLocationDot (MyLocationOverlay.java:180) at com.google.android.maps.MyLocationOverlay.drawMyLocation (MyLocationOverlay.java:561) at com.google.android.maps.MyLocationOverlay.draw (MyLocationOverlay.java:511) at com.google.android.maps.OverlayBundle.draw (OverlayBundle.java:45) at com.google.android.maps.MapView.onDraw(MapView.java:476) Based on the exception trace it seems the MapView widget in combination with the MyLocation overlay is bugged in some unofficial 1.6 build(s) but work fine in 1.6 in the simulator. Already some people gave bad ratings (and comments) in the shop because of this bug, and undoubtedly will in ADC2. On the web, some more scattered reports about this problem can be found, including: http://groups.google.com/group/android-developers/browse_thread/thread/43615742f462bbf1/eb170a84a0ff385e?#eb170a84a0ff385e On the one hand, these people try an application and it just crashes so they are entitled to give bad ratings. On the other hand, they run an unofficial build, so maybe they should take that into account. We just hope relatively few judges run these builds. We actually hope the official 1.6 comes out sooner instead of later so some potential judges already upgraded from an unofficial build to the official 1.6 when they judge. Anyway, anyone who uses MyOverlay in their application suffers from the same problem. Regards, Pieter (SpecTrek). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Mediastore Thumbnails not generated until Gallery app is launched ?
A side question : when we want to display a thumbnail which is not available, is there a way to ask for its generation programmatically ? On 30 sep, 07:38, Nivek wrote: > Is that normal that Images indexed in the MediaStore do not have > thumbnails generated until the Gallery app is launched and the user > actively navigates to the bucket where the image is stored ? > > I think it's quite odd as I thought thulbnails generation was part of > media indexing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Mediastore Thumbnails not generated until Gallery app is launched ?
Is that normal that Images indexed in the MediaStore do not have thumbnails generated until the Gallery app is launched and the user actively navigates to the bucket where the image is stored ? I think it's quite odd as I thought thulbnails generation was part of media indexing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: outgoing sms
yes you can add brodcast receiver to listen n show sms sent intent On Wed, Sep 30, 2009 at 10:33 AM, Nemat wrote: > > Hi, > > is it possibale to notify outgoing sms programmatically? > > Thanks > Nemat > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] documentation issue
When i search for Application in documentation it shows 2 entries which are not in English, but when they clicked it's all in English Application Fundamentals | Android Developers Application Fundamentals Anwendungsgrundlagen Fundamentos de las aplicaciones Principes de base des applications Concetti fondamentali sulle applicazioni ... developer.android.com developer.android.com/guide/topics/fundamentals.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to add 3rd party package in android framework
I have developed my java library package & I want to use this package from other Android applications such as Gallery and Music. so I've put this package under framework/base/core/java/com/ also made entry of AIDL files in Android.mk file located at framework/ base folder , but java files in above locations are not getting compiled. But if i put my package under framework/base/core/java/android folder then my package is build successfully. But I do not want to change the name of my package so I'm putting my package under com folder. Pls suggest a way to solve above problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Adding a JAR to my Android project?
Is there a way to add external JARs to an Android project? I have some code in an external JAR file that I want to use. I saw many references to doing this within Eclipse, but I don't have Eclipse. I assume there's some way to do it by editing AndroidManifest.xml? I couldn't find any description of how to do this other than using Eclipse. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: download layoutlib.jar
I want to simulate hardware keypress like end key, back and cancel key which can be done using IWindowManager class. I am using Android SDK 1.5, but I cannot find the class IWindowManager. How can I import IWindowManager to my application so that I can simulate hardware keypress. Is there any other way to simulate keypress. Thanks... On Sep 29, 10:43 pm, Xavier Ducrohet wrote: > layoutlib.jar is used by the Eclipse plug-ins and should NOT be used > by application developers. > > Xav > > > > On Tue, Sep 29, 2009 at 7:23 AM, Safy wrote: > > > Hi, > > > I cannot find IWindowManager class which is used to simulate > > keyEvent. > > > I searched google which says you need to import layoutlib.jar. I > > have tried to search the package in windows 1.5 SDK but could not find > > it. From where can I download the package ? > > > Thanks > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sending large files through webservice
Hi I am creating an application which does recording and I am storing it into a temporary storage. Now I want to read and send that file to a remote server via webservice. Can anybody tell me how can I do that. I tried reading and converting the files to byte[] but when I tried to send that byte[] via webservice I am getting a runtime exception ("Cannot serialize") Can anybody tell me how can I save the audio file to remote server. Thanks, Shobhit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] outgoing sms
Hi, is it possibale to notify outgoing sms programmatically? Thanks Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Signature matching problem
You have to sign it with the same certificate as the target app, so this generally means you will need to build the target app with the same cert as you use to build the instrumentation (or really usually the other way around, since someone is writing instrumentation for their own app). On Tue, Sep 29, 2009 at 8:49 PM, HandsomeboyIT wrote: > > Hi everyone, > I have written an Instrumentation class for testing some application. > I want to run some automation actions on Contacts activity (system > application). But I have "signature does not matching" problem when > start instrumentation. How can I run this instrumentation on system > application? > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to prematurely stop a long-running SQLite query?
Just imagine a dictionary where I want to search on the (english) description. So the word lengths can vary like in any other normal english text. Number of distinct words is probably a few hundred thousand. For a "deep" search I want to search the description using something like "LIKE '%mystring%'". So ignoring word boundaries. mystring may be one letter, a subword, a word or multiple words. The dictionary is read only. On Sep 29, 3:07 pm, bseib wrote: > Ok. > > Can you describe more about your set of words. Are they all single > words? how many distinct words are there? what is the distribution of > word lengths? or are they phrases rather than words? Will the size of > this list change? > > -broc > > On Sep 28, 11:17 pm, mjc147 wrote: > > > > > On Sep 28, 6:02 am, Broc Seib wrote: > > > > Perhaps aTriedata structure? > > > I can see how that would be useful when searching on prefixes, but > > what about when doing free text search? > > > Also, by "mechanism" I was thinking more along the lines of database, > > flat file (like a CSV) etc rather than logical data structure. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Signature matching problem
Hi everyone, I have written an Instrumentation class for testing some application. I want to run some automation actions on Contacts activity (system application). But I have "signature does not matching" problem when start instrumentation. How can I run this instrumentation on system 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: Focus MapView
Just found I should select the build target as Google APIs. No issue now. Thanks. Regards, Vivien On 9月30日, 上午11時15分, vivien wu wrote: > Hi, Liam, > > Could I know where did you implement the application whih uses > MapView ? > On SDK or on a real target ? > If you did it on SDK, how did you get the Google APIs Add-On since the > Google APIs add-on is not yet available for download. > If you did it on a real target, did your company license Google APIs > Add-On with Google ? > Thanks. > > Regards, > Vivien > > On 9月28日, 下午7時24分, Ne0 wrote: > > > > > Thanks, thought it would be simple, hadn't come accross MapController > > yet. Cheers. > > > Liam > > > On Sep 28, 12:21 pm, Mark Murphy wrote: > > > > Ne0 wrote: > > > > Hi, > > > > > Thought this might have been covered already, but i cant seem to find > > > > it anywhere. My app reads GPS positions from a file and overlays them > > > > on the mapView. All very simple stuff, but how to get the map view to > > > > go to and zoom in on a point? > > > > Given a MapView named "map": > > > > MapController mc=map.getController(); > > > > mc.animateTo(...); // where ... is your GeoPoint to move to > > > mc.setZoom(...); // where ... is the zoom level, 1-21 > > > > -- > > > Mark Murphy (a Commons > > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > > _Beginning Android_ from Apress Now Available!- 隱藏被引用文字 - > > > - 顯示被引用文字 -- 隱藏被引用文字 - > > - 顯示被引用文字 - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: does Android jvm unloads classes?
More likely it's because your process was killed. On Tue, Sep 29, 2009 at 7:39 PM, Andrei wrote: > > A static field which was initialized becomes null at some point. > Can it be because that class was unloaded and loaded again? > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Focus MapView
Hi, Liam, Could I know where did you implement the application whih uses MapView ? On SDK or on a real target ? If you did it on SDK, how did you get the Google APIs Add-On since the Google APIs add-on is not yet available for download. If you did it on a real target, did your company license Google APIs Add-On with Google ? Thanks. Regards, Vivien On 9月28日, 下午7時24分, Ne0 wrote: > Thanks, thought it would be simple, hadn't come accross MapController > yet. Cheers. > > Liam > > On Sep 28, 12:21 pm, Mark Murphy wrote: > > > > > Ne0 wrote: > > > Hi, > > > > Thought this might have been covered already, but i cant seem to find > > > it anywhere. My app reads GPS positions from a file and overlays them > > > on the mapView. All very simple stuff, but how to get the map view to > > > go to and zoom in on a point? > > > Given a MapView named "map": > > > MapController mc=map.getController(); > > > mc.animateTo(...); // where ... is your GeoPoint to move to > > mc.setZoom(...); // where ... is the zoom level, 1-21 > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > _Beginning Android_ from Apress Now Available!- 隱藏被引用文字 - > > - 顯示被引用文字 - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 rotate a drawable programmatically?
Bug posted, hopefully this is what you were looking for: http://code.google.com/p/android/issues/detail?id=4061 On Sep 28, 5:59 pm, Romain Guy wrote: > The fact that you cannot set from and toDegrees from code. > > > > > > On Mon, Sep 28, 2009 at 5:56 PM, Micah wrote: > > > A bug stating that you can't instantiate a RotateDrawable in Java and > > set it's fromDegrees and toDegrees? Or are you referring to something > > else that is a bug? > > > On Sep 28, 5:51 pm, Romain Guy wrote: > >> Oh wait, sorry, you can't. File a bug, I'll try to fix that asap. > > >> On Mon, Sep 28, 2009 at 5:47 PM, Micah wrote: > > >> > In my application I want to be able to rotate a view programmatically > >> > rather than via XML. I can easily create a drawable that > >> > references my Drawable, but I can not figure out how to do the same > >> > thing in Java. The problem is that many drawables in my scene can be > >> > displayed either vertically or horizontally and I do not want to have > >> > to create a separate rotate drawable for every drawable in my scene. > > >> > One thought I had was to instantiate a RotateDrawable in Java and then > >> > use that as the background for my view, but it does not appear that > >> > you can set the rotation of a RotateDrawable instantiated this way > >> > (you have to feed it XML to get it to be at all useful from what I can > >> > tell). > > >> > Another thought I had was to rotate the canvas, but I would like to be > >> > able to use the drawables as view backgrounds and I do not see a way > >> > to rotate the canvas before the background of a view is drawn and then > >> > revert it afterwards. > > >> > I also looked into creating some generic rotate drawable and then > >> > perhaps changing the drawable that it applies to, but that lead no > >> > where. > > >> > So, does anyone have any ideas about how I can rotate a drawable in > >> > code and then use that rotated drawable as a background? > > >> -- > >> Romain Guy > >> Android framework engineer > >> romain...@android.com > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
I have sent the file to you. Please check and help me to find out the problem in application signing process. I don't what exactly but I think when the application apk is signed, it's XML file in the package has change the header. So the installer can not parse the file for installing. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] does Android jvm unloads classes?
A static field which was initialized becomes null at some point. Can it be because that class was unloaded and loaded again? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
I have sent the file to you. Please check and help me to find out the problem in application signing process. I don't what exactly but I think when the application apk is signed, it's XML file in the package has change the header. So the installer can not parse the file for installing. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] New Activity from MapActivity
Hi all, I'm new in android programming. I started with the HelloMapView tutorial coz I interested in google map. I could not get a sample code that create new activity if user want to get detail from what user click on new activity (new layout). could you guys give me some advise. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble in Printing Unicode Male Character
Thanks Josh for your effort. And hoping to see correction in next release. On Mon, Sep 28, 2009 at 12:49 PM, j.hadley wrote: > > We have confirmed that the current shape for U+2642 in Droid Sans > Fallback is a bug. This will be corrected in the font and supplied for > a future release of Android. > > In the meantime, if you need a correct shape for that character, you > could obtain (e.g. purchase/license or create) a font that has the > correct form and use that as a private font (use > Typeface.createFromAsset in your app). > > > Josh > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] NumberFormat and comma as decimal separator
I have a program that allows users to enter decimal numbers. One user noted that my program requires that he use a period as the decimal separator even though in his country (Germany) they use the comma instead. No problem, I looked at my code and realized I was constructing a DecimalFormat directly instead of using NumberFormat.getInstance() and changed my code as follows: formatter = NumberFormat.getNumberInstance(); if (formatter instanceof DecimalFormat) { DecimalFormat format = (DecimalFormat)formatter; format.applyPattern(PATTERN); } I then was going to test it in the emulator and changed my locale to German. While the language changed there was no change to the number format and it still used the period as the decimal separator. Iterating over NumberFormat.getAvailableLocales() I can see that only English and Japan based countries are returned in the emulator and all those countries use the period not the comma. Any ideas on how can I test my changes to make sure they work? I can override the decimal separator which works fine for testing the display of numbers, unfortunately the keyboard won't allow me to enter a comma in a numeric field to test the parsing. My personal Android phone only supports English and French. I tried changing it to French but still get the period as the separator, feeling kind of stumped here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] radio buttons and editText fields
I'm trying to create a radio group in android 1.5 where the last radio button has an editText field next to it. What I'm having trouble with is getting that edit text field to appear next to the radio button that it applies to when the radio group changes to vertical orientation. I tried putting that radio button and editText together in a linear layout manager but that seemed to put the radio button into its own group. What is the best way to do this? Is there some example similar to what I'm doing that I can look at. 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] ADC2 submissions and Android 1.6 (Donut)
Hi All, Have a question about ADC2 submissions and Android 1.6 (Donut) We rigorously tested our submission (CubeWorks, http://www.cubeworksmobile.com) with Android 1.5 but it crashes on startup with 1.6 If the rumors are true and Donut does become available next week won't that make judging unfair since some judges may be using 1.6 The 1.6 SDK was made available on Sept 15 and the ADC2 submissions closed Aug 30th. Our trouble is being caused by the android.opengl.GLU.gluUnProject() method but I am sure there are other minor incompatibilities between the two versions. 09-17 01:52:04.569: ERROR/AndroidRuntime(796): java.lang.IllegalArgumentException: length - offset < n 09-17 01:52:04.569: ERROR/AndroidRuntime(796): at android.opengl.Matrix.multiplyMV(Native Method) 09-17 01:52:04.569: ERROR/AndroidRuntime(796): at android.opengl.GLU.gluUnProject(GLU.java:285) Any insight would be greatly appreciated. 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: How to build the aidl tool
Follow the regular directions for building the platform, which will also build the tools. Please post any further questions to android-porting. On Tue, Sep 29, 2009 at 4:10 PM, n179911 wrote: > > Hi, > > I get the android source. How can I build the aidl too that is part > of android (the one which generates java file from an aidl file)? > > > > -- 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] How to build the aidl tool
Hi, I get the android source. How can I build the aidl too that is part of android (the one which generates java file from an aidl file)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Take an action when soft keyboard is launched
Hi Thanks all for your answers. I put a code in the onSizeChanged(), but when this method is called always when the view resizes. I'd like to know how I can discover using this method if the virtual keyboard is opened or not. I saw the InputMethodManager, but I didn't find how to use this class for my purpose. Anyone can help me? Thanks again On Tue, Sep 29, 2009 at 7:51 AM, AJ wrote: > > If your class is extending from an Activity then I don't know how to > get that event. > > But if your app has some class which is extending from View, then > onSizeChanged() gets the control when ever your view gets shortened. > > Like:- WebView get in Browser app > > > Thanks, > AJ > > On Sep 29, 2:34 pm, Mark Murphy wrote: >> Gulfam wrote: >> > I also want to take some actions on soft keyboard appear and >> > disappear. >> > any one can help us how we can get appear and disappear events. >> >> There are no such events, short of detecting a window resize (and, off >> the top of my head, I don't know how to do that). >> >> -- >> Mark Murphy (a Commons >> Guy)http://commonsware.com|http://twitter.com/commonsguy >> >> Android App Developer Books:http://commonsware.com/books.html > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Start the CallLog Activity via Intent
I am really desperate right now. Does nobody know what I am doing wrong? On 28 Sep., 23:58, Matt wrote: > So it obviously cannot find an activity that can handle the Intent. > Does somebody know why? Wrong URI? Wrong action? > > On 28 Sep., 02:04, Matt wrote: > > > unfortunately that did not work either. > > > On 28 Sep., 00:29, iPaul Pro wrote: > > > > Intent i = new Intent(); > > > i.setAction(Intent.ACTION_CALL_BUTTON); > > > startActivity(i); > > > > Paul > > > > On Sep 25, 7:43 pm, Matt wrote: > > > > > Hi, > > > > > I have the following code in my application: > > > > > Intent i = new Intent(); > > > > i.setAction(Intent.ACTION_VIEW); > > > > i.setData(android.provider.CallLog.CONTENT_URI); > > > > startActivity(i); > > > > > I want to bring up the CallLog activity, but when I run my application > > > > I get an error, that the application has stopped unexpectedly. Why > > > > does this happen and how can I display the CallLog? Using > > > > > i.setData(android.provider.CallLog.Calls.CONTENT_URI); > > > > > does not give me an error, but brings up the dialer - not exactly what > > > > I want. ;-) I tried displaying the Contacts with > > > > > i.setData(android.provider.Contacts.People.CONTENT_URI); > > > > > and that works flawlessly. Any help is highly appreciated! > > > > > Best wishes, > > > > 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] TimerTasks getting suspended when the phone is plugged in.
I have an application running TimerTasks. The TimerTask takes a long time to run (up to 20 minutes). If the phone is plugged in or unplugged during that time, the timer task gets suspended for about 10 minutes, or sometimes longer. Has anyone see this, and is this intended behavior on the Android? Thanks. Richard Schilling Mobile Operating Systems Engineer Root Wireless --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Contact Photo in LiveFolder
I was hoping to include the photo for each contact in a live folder. I am using People.loadContactPhoto() to get a bitmap and am placing it into the content provider's result column for LiveFolders.ICON_BITMAP but I keep getting a NullPointerException. Any ideas? Should I not be doing this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] AudioTrack question
I have some questions about the AudioTrack class that I can't seem to answer by reading the class documentation. Is it possible to use the android.media.AudioTrack class in a non- blocking way? If so, what conditions must be true to ensure that the write() method doesnt block? How do the position marker notifications work? They seem to be measured in "frames", what is a frame? Where can I find documentation on frames? When the marker notification occurs, is the callback made from a thread that called write() or from some other thread? -Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: activity is destroyed when press home key
Hi, I just replied to the bug, but should say something here as well -- This is intentional behavior, since launching a single task activity means bringing it to the foreground, the stack is cleared so it can always receive the new intent. So for example Browser, which is one of the few single task activities -- if it is launched from somewhere with a new URI the root activity needs to be brought foreground to display it. The solution is simple: don't use single task. There are very very few places where this is actually appropriate, and those few cases are for this kind of special case behavior for the browser. On Mon, Sep 28, 2009 at 6:52 AM, Johan Schöring wrote: > > That's what the documentation says, but that's not what the > ActivityManager does. > > From what I can see, the problem lies in the following code: > > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/ActivityManagerService.java;h=a473db2740abe124b7867d0ea6313eb8c0ca7a7d;hb=5550ef48739a7bb16f80aa6b10e9c151b1438163#l > > The if-statement on line causes the activity stack to be cleared > if the launch mode is singleTask, regardless of the state of > FLAG_ACTIVITY_CLEAR_TOP... In my opinion, this is a bug, as the > documentation you quoted clearly says that the stack should be > preserved on a singleTask activity. > > I'm going to submit a patch for this, but I'm writing here so others > who find this thread know that this behaviour is not their fault but a > bug. > > // Johan > > > On Sep 24, 10:02 pm, "Justin (Google Employee)" > wrote: > > Fromhttp://developer.android.com/guide/topics/fundamentals.html#acttask > > > > "As noted above, there's never more than one instance of a > > "singleTask" or "singleInstance" activity, so that instance is > > expected to handle all new intents. A "singleInstance" activity is > > always at the top of the stack (since it is the only activity in the > > task), so it is always in position to handle the intent. However, a > > "singleTask" activity may or may not have other activities above it in > > the stack. If it does, it is not in position to handle the intent, and > > the intent is dropped. (Even though the intent is dropped, its arrival > > would have caused the task to come to the foreground, where it would > > remain.)" > > > > Cheers, > > Justin > > Android Team @ Google > > > > On Sep 24, 11:45 am, justinh wrote: > > > > > > > > > When users press on your icon again to "come back" they are launching > > > your activity, not the settings activity. Where do you start the > > > settings activity in your code? If it's outside of the onCreate/ > > > onStart/onResume methods then the user will have to repeat that action > > > to get back there. > > > > > On Sep 24, 2:58 am, play_net wrote: > > > > > > My manifest: > > > > > > > android:name="MainUI" android:screenOrientation="landscape" > > > > > android:configChanges="orientation|keyboardHidden" > > > > android:launchMode="singleTask"> > > > > > > > > > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > > > > > > > > > android:name=".view.Settings" android:configChanges="orientation| > > > > keyboardHidden"> > > > > > > > > > >I press program's icon to start my program,and then open the > > > > Settings activity through startActivityForResult(intent, SETTINGS). > > > > Now i press the home key and start my program through program's > > > > icon, at this time the Settings actitity will run OnDestroy() and be > > > > destroyed. I can't understand why Settings activity is be destroyed > > > > automatically? How can I make Settings activity still focus when > users > > > > come back. > > > > > > Thank all. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Update all the contacts belonging to one group
Dear Mark, your solution sounds really great but I discovered that it is just ... impossible to make some bulk operation on contacts (at least until release r3). I then optimized my code to update just what has to be updated. Thanks you by the way for your answer. C. On 28 sep, 14:19, Mark Murphy wrote: > cyril.at...@gmail.com wrote: > > I have an application that updates all the contacts belonging to a > > group, I currently do the following : > > -> Get the group id > > -> Get all the contacts id inside this group > > -> For each of them I am doing an update on thecontact=> This is > > really heavy and seems to take time in real phones while I expect it > > to be "instantaneous". > > > I am wondering if we can, in the ContentResolver.update() method > > specify a kind of join. > > For instance I'd like to do something like : > > UPDATE SET ="" FROM People p, > > GroupsMemberships gm WHERE p.person_id=gm.person_id and > > gm.group_id= > > > Does anyone know if it's possible or not? > > Not that I am aware of. Bear in mind that not all content providers will > be using a SQL database as the place of data storage. > > Since the contacts content provider does appear to use SQLite, rather > than iterating over your contacts, though, you could try the IN syntax > in the WHERE-style constraint: > > [WHERE] person_id IN (...) > > where ... is a comma-delimited set of values, or possibly even a > sub-select to get the IDs of the contacts to update. > > http://sqlite.org/lang_expr.html > > -- > 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] filtering items in a view based on a value selected in a spinner
Hi all, I have a quick question: I am trying to change the items in a list view based on a value that gets selected in a spinner that is in the same activity. Is there a quick way to do filtering on the list adapter data based on that value, or should I go the long way of changing my adapter implementation for easy filtering? Any suggestions are greatly appreciated. Thanks, Mihai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do I resize my application to a smaller one placing it on top left?
Sounds like crazy idea to me. On Sep 29, 6:41 am, Karthik P wrote: > Is there any way for me to resize an app to make it smaller and placing it > top left? I understand that there is a theme -> Dialog its possible to make > the window size smaller but is it possible for me to dictate the x, y, dx, > and dy where the dialog has to be placed? > > Karthik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: jsonarray as listview source
Ok, I don't get a BaseAdapter logic, I assume because I am not used to java. I found tons of examples on net (mostly for drawing pictures etc) but it make no sense to me. For example, list4 from sdk do something similar, but...where are they binding data? I see where data is set to custom class, but what actually returns data from BaseAdapter? GetView? Thanks for any clarification Adam On Sep 28, 8:15 pm, Mark Muphy wrote: > vorcigernix wrote: > > Hello, > > I made my application from various examples and sources, so now I have > > filled jsonarray and prepared listview (with custom rows formatting). > > Now I need to replace > > > ListAdapter myAdapter =(new ArrayAdapter > > (this,R.layout.rowlayout, R.id.TextView01, values)); > > > with my json array based adapter. All I found is some technique to > > iterate through all json records and construct string array. It sound > > like perverse to me, is it really necessary? > > Create your own adapter class from BaseAdapter, and you can traverse > your JSON however you want. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Need Android talent? Ask on HADO!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] Android on HTC Tattoo and FM receiver
I was looking at the specs of the new Android phone from HTC, the Tattoo, and it seems it will feature an FM radio receiver. I don't believe there is any API in the Android SDK to control and access the audio from such a receiver. Is there a way to develop an application that would use, play or record the FM stream? 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: Eclipse crashing after update to ADT 0.9.3 and SDK 1.6
Here is the log file content: http://pastebin.ca/1584740 On Sep 29, 1:19 pm, Xavier Ducrohet wrote: > can you post (or send me) the content of the Eclipse log file? It's > located inside your eclipse workspace (.metadata/.log) > > thanks > Xav > > > > On Tue, Sep 29, 2009 at 8:48 AM, JMichel wrote: > > > Hi, > > > I'm running Eclipse Ganymede on Ubuntu 9.04. I wanted to update to the > > newest Android SDK 1.6r1 from 1.5r3. The procedure that I followed is: > > > - Run Eclipse > > - Update every Eclipse components from the update manager (this > > updated ADT to version 0.9.3) > > - Restart Eclipse (Everything works fine) > > - Untar the Android SDK 1.6r1 > > - In Eclipse preference->Android, I selected the newly uncompressed > > folder containing Android SDK 1.6r1 > > - Click on OK > > - Eclipse runs some tasks and crashes > > > After this, whenever I try to run Eclipse again it brings an empty > > windows on screen and does nothing else. Is there a way to come back > > to the old SDK without starting Eclipse, with config files for > > instance? Other suggestions? > > > Thanks > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 kernel
Android 1.6 upgrades the Linux kernel from 2.6.27 to 2.6.29, FWIW. 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 Sep 29, 3:27 am, Cronix wrote: > Hi list, > I would like to know if we can use the kernel.org kernels to update > the android OS kernel for e.G. to 2.6.32-RC1 directly or if i need any > custom android kernel patches to get the kernel running for android? > > Greeetings Cronix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 using ksoap2 in Android
I've written a webservice client which uses ksoap2. When I run a test program from outside of Android everything works without a problem, however when I issue the SOAP requests from within Android then every 2nd request seems to fail, throwing the following error (copied from the Dalvik Debug Monitor): 09-29 18:35:22.116: ERROR/class com.garethwestern.android.SoapTest (790): unexpected type (position:END_DOCUMENT n...@1:0 in java.io.inputstreamrea...@437e73a8) When I step through the code from within the IDE everything seems to run ok until ksoap2 tries to parse the response, at which point the aforementioned error is thrown because the HTTP response is empty. Unfortunately the webservice is over HTTPS so I am unable to easily use something like fiddler or wireshark to check the exact responses and requests, but as mentioned it works without a problem outside Android, and every 2nd request without fail from within. Does anyone have any suggestions as to how I can debug this further? Thanks, Gareth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Run the same applications that are running J2ME
http://www.netmite.com/android/ I don't know how well this MIDP runner works, but it's worth a try :-) On Sep 29, 1:21 pm, Ray da Costa wrote: > A helping hand, I have an Android G2 and would like to run the same > applications that are running J2ME on my other cell E62. Is it possible? > What is the procedure? > > -- > Ray da Costa > "The best way to predict the future is to invent it." > Alan Kay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: put() in ResponseCache invoked with a wrong URI?
I will give it a try! Thanks Matt On Sep 19, 5:12 am, Matt Kanninen wrote: > To answer the question of how to get the full url, my work around was > to use conn.getURL() instead of the passed URI. So it would be: > > public CacheRequest put(URI uri, URLConnection conn) throws > IOException { > // TODO Auto-generated method stub > Log.i("DataLoader", "Put() " + conn.getURL); > return null; > } > > On Sep 18, 5:43 pm, Matt Kanninen wrote: > > > > > I am seeing the same thing. > > > On Aug 3, 12:27 am, Guitou wrote: > > > > Hi, > > > I extended ResponseCache as follow : > > > > public class DataLoader extends ResponseCache { > > > > @Override > > > public CacheResponse get(URI uri, String arg1, > > > Map> arg2) throws > > > IOException { > > > // TODO Auto-generated method stub > > > Log.i("DataLoader", "Get()" + uri); > > > return null; > > > } > > > > @Override > > > public CacheRequest put(URI uri, URLConnection conn) throws > > > IOException { > > > // TODO Auto-generated method stub > > > Log.i("DataLoader", "Put()" + uri); > > > return null; > > > } > > > > } > > > > I use this code to retrieve datas : > > > > ResponseCache.setDefault(new DataLoader()); > > > URI uri; > > > HttpURLConnection conn; > > > try { > > > uri = new > > > URI("http://www.google.com/intl/en_ALL/images/logo.gif";); > > > conn = > > > (HttpURLConnection)uri.toURL().openConnection(); > > > InputStream inputStream; > > > inputStream = conn.getInputStream(); > > > inputStream.close(); > > > } catch (MalformedURLException e1) { > > > // TODO Auto-generated catch block > > > e1.printStackTrace(); > > > } catch (IOException e1) { > > > // TODO Auto-generated catch block > > > e1.printStackTrace(); > > > } catch (URISyntaxException e1) { > > > // TODO Auto-generated catch block > > > e1.printStackTrace(); > > > } > > > > But when I look to my logs, the URI sent to the get() method is good > > > (http://www.google.com/intl/en_ALL/images/logo.gif) but in the put() > > > it does not give me the same URI but onlyhttp://www.google.com > > > Is that normal? > > > How to get the full url in put() ? > > > 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: 1.6 images for the ADP1 from HTC!
Hi - my experinces: Keiji Ariyama wrote: > I updated my ADP1 using recovery image. > The update process was succeeded. But an error message has been > displayed when system rebooted. > > LogCat messages are below. > [...] >> 06-21 09:53:35.347: ERROR/DatabaseUtils(152): >> java.lang.SecurityException: Permission Denial: writing >> com.google.android.providers.settings.GoogleSettingsProvider uri > > After all, I did factory reset. This problem was solved. > That's strange... > > Anyone have same situation? Not at all. My upgrade was exceedingly smooth. In fact, in retrospect I wasted a LOT of time making duplicate backups of all my data for no use: The upgrade (although it took a while) kept all my data and apps intact as far as I've been able to tell. Quick summary: The phone feels a lot snappier to use. Quite a few things look nicer (though I'm not convinced about the green stuff in Market). Even the bluetooth apps using undocumented APIs seem to work as before. So: it seems like an excellent improvement in my trusty old ADP1. Keep up the good work! / Jonas PS. There were a number of warning style messages in logcat with '...yaddayadda.trout.so' not found and similar, but as everything seems to work I assume they were not harmful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Anyone used performHapticFeedback()?
Got it, thanks Dianne, I will look into that API. 2009/9/30 Dianne Hackborn hack...@android.com > > If you are not giving feedback for a long press, I would not use it, since > that is currently the only kind of feedback it supports. Instead just use > the vibration API directly. This is what the standard soft keyboard does. > (We really need to add more types of feedback and move things to using this > API, but haven't had time yet.) > > -- > 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] More accessibility API questions
Hi, all. Still a bit confused about some things and am hoping to get a bit of help. As a brief reminder, I'm both new to Android development and totally blind. While it would make sense as a new developer to start simple, if the phone itself isn't accessible then "Hello, world" is fairly useless. :) So, unfortunately, I've had to dive into the deeper end and start writing a screen reader. Talkback was unfortunately too basic, and I think that what I've done so far is already better, but I may have run up against the limits of the API. Currently I've written a screen reader that lets me navigate the UI fairly well. Is there any more accessibility functionality than a stream of events to the accessibility service? And, if so, how would I use such a stream to accomplish the following use case? I enter the email application. The accessibility events my app receives provide me with a great deal of context, but not enough in some instances. For instance, when I'm setting up my IMAP account, I land on a field with the text "143". *I* know that this refers to the port number, but I don't see a way for my application to make this discoverable. There needs to be one of two things. Maybe either or bothh of these exist and I'm just missing them. 1. An AccessibilityEvent needs to dump the entire screen/window content to my application such that I can snag it and make it available to the user for review. I thought that was waat events with fullScreen=true were, but these only seem to contain window titles. 2. There needs to be a mechanism for accessing the widget hierarchy, complete with contents. I understand this is a security risk, but I'm not sure how to implement compelling acccessibility otherwise. Am I just missing something? Next, while most apps provide fairly useful AccessibilityEvents, WebKit falls down completely. That is, none of the events I receive have text, or are from classes other than WebView, WebDialog or something similar. Is this a known issue? Based on the debug logs of events I'm getting, I don't see how to make the browseer or any other WebKit apps accessible. Finally, I'm running into performance issues. Ideally, keystrokes should terminate speech such that typing isn't painfully slow. When typing into text areas, I can easily get 10-15 characters ahead of TTS. What I need is to install a listener that listens for keyboard input and flushes the TTS queue on any keypress. This will also allow for speech interruption, a feature available in most speech-based access solutions. Is it possible to do this, and if so, can someone point me to the relevant classes/interfaces? I'd also like to implement screen reader commands for reading statistics such as battery level/signal strength/message count, which requires implementing global hotkeys. As a new developer jumping in over his head by necessity, it isn't immediately obvious where to look for this. :) Thanks a bunch. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Soft Keyboard
As an update to the the code I showed above, I'm currently working with the following code. This seems to be behaving the way I would want it to. On a phone with a physical keyboard: - if keyboard is not hidden don't bring up the soft keyboard. - if the keyboard is hidden, need to do the SHOW_FORCED option which is handled in the ResultReceiver class. - depending on how you exit, it may leave the keyboard up - not desirable, so I might try to address this. On a phone without a physical keyboard: - SHOW_IMPLICIT seems to work nicely and the keyboard doesn't stay up when you exit the application. View.OnLongClickListener mLongClickListener = new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { softKeyboardResults rr = new softKeyboardResults(); Configuration config = MyView.this.getResources().getConfiguration (); if (config.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES) { InputMethodManager imm = (InputMethodManager) MyView.this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(MyView.this, InputMethodManager.SHOW_IMPLICIT, rr); } return false; } }; class softKeyboardResults extends ResultReceiver { public softKeyboardResults() { super(getHandler()); } @Override protected void onReceiveResult(int resultCode, Bundle resultData) { super.onReceiveResult(resultCode, resultData); switch (resultCode) { case InputMethodManager.RESULT_HIDDEN: case InputMethodManager.RESULT_SHOWN: case InputMethodManager.RESULT_UNCHANGED_SHOWN: break; case InputMethodManager.RESULT_UNCHANGED_HIDDEN: InputMethodManager imm = (InputMethodManager) MyView.this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(MyView.this, InputMethodManager.SHOW_FORCED); break; default: break; } } } Still testing Best Regards, Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Anyone used performHapticFeedback()?
On Tue, Sep 29, 2009 at 4:49 AM, James Webster wrote: > That works fine, although the vibrate is noticeably lower than that when > you type using Hero keyboard. Still, it works fine. It is probably using the vibrator API directly with its own vibration pattern. > I was debating about leaving it in the OnClickListener(), as that sort of > seemed more appropriate, it would be a notification that you had clicked the > button, but on second thoughts it is supposed to let you know you have > actually touched the screen, so the I'm now calling it in the ACTION_DOWN > event caught by OnTouch(). This now emulates the feedback behaviour of the > Hero soft keyboard. > > Dianne, I appreciate the UI consideration and have indeed made it optional. > > > However, the docs say that although they only provide built in actions for > the long press, it can be used for your own widgets also, so is adding it to > my own UI button presses really such a bad thing? > If you are not giving feedback for a long press, I would not use it, since that is currently the only kind of feedback it supports. Instead just use the vibration API directly. This is what the standard soft keyboard does. (We really need to add more types of feedback and move things to using this API, but haven't had time yet.) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ApplicationContext.java and Activity.java. Is ApplicationContext not used ?
ApplicationContext is private implementation. Activity takes care of the startActivity implementation for itself, since it wants the starting activity to be associated with the original activity (and ApplicationContext is just the most generic context, which doesn't know that it is an activity). On Tue, Sep 29, 2009 at 12:49 AM, amit wrote: > > hi, > > I was going through the code for Activity.java and ApplicationContext. > > Both these classes define many functions of Context Interface. Take > for example startActivity.java > > Activity Class has its own implementation of startActivity > ApplicationContext class also has an implemenetaion of startActivity. > > > Now there are 2 observations... > > Observation 1: Regarding ApplicationContext.java > > > /** > * Common implementation of Context API, which Activity and other > application > * classes inherit. > */ > @SuppressWarnings({"EmptyCatchBlock"}) > class ApplicationContext extends Context { > === > > So the comments imply that Activity class should actually use > ApplicaitonContext.java. Infact Activity Class should inherit > ApplicationContext class. > > Observation 2: Regarding Activity.java > > But if you look at class Hierarchy of Activity class, it goes as: > > Context ==> ContextWrapper ==> ContextThemeWrapper ==> Activity > > So nowhere do I find ApplicationContext. > > > Questions: > 1. Who uses ApplicationContext class? > 2. Does Activity class ever deal with ApplicationContext class (as > given in the javadoc comments of ApplicationContext.java). > > Thanks, > Amit > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Soft Keyboard
Jonas, that Hero app switcher comes not from long pressing the menu key, but from long pressing the *Home* key. Long pressing the Menu key does nothing, as others have noted. 2009/9/29 Jonas Beckman > > On HTC Hero, long-pressing-menu has a completely different default > behavior: it brings up an app switcher with the last six apps. This is > available in almost all applications and makes multitasking very > convenient. > > I develop on a Hero now and have to remind myself this is a non- > standard HTC thing. Fragmentation, indeed! Ordinary HTC users are > probably so used to this behavior they would consider Android phones > without it as broken. :-) > > On 25 Sep, 10:18, tauntz wrote: > > The problem with long-pressing-menu not working is this: HTC Hero. It > just > > does NOT work there with the default keyboard. > > I got also reports about people being not able to open the virtual > keyboard > > on their phones - I suggested them to try long-clicking the menu > (following > > Romain Guys suggestions) and I thought that everything is fine - till I > got > > my hands on HTC Hero - you can long-press the menu for 2 days in a row - > it > > still does not open the virtual keyboard there. > > > > The bottom line is that due to platform fragmentation there's no > "standard" > > way to bring up the keyboard - different platform implementations use a > > totally different concept for it. If you want to support such devices, > you > > could detect if a device is a HTC Hero/(or some other device that does > not > > use long-menu-press) and if it is, then use a different layout in your > app > > (eg display a button that brings up the virtual keyboard). Or do some > other > > ugly ugly hacks (I'll burn in hell for suggesting this, right?:P) > > > > Tauno > > > > > > > > On Thu, Sep 24, 2009 at 10:40 PM, Eric Carman > wrote: > > > > > Thank you both for your response. > > > > > If the application is written for Android 1.1, does this change > > > anything in regards to "and there is a keyboard selected and it allows > > > this"? I would think that in such an app, since it doesn't know about > > > soft keyboards, the system soft keyboard would be selected and would > > > allow this. But perhaps there is more to this. Are you possibly > > > suggesting that they've installed one of the alternate keyboards? That > > > would be interesting. > > > > > Again, this works on an emulator which I've defined to have no > > > keyboard, so that is encouraging. At least I think it helps to rule > > > out the caveat where the app isn't consuming the event, but I will > > > check this out to be sure as I do catch key events - just not long- > > > press menu ones, at least not intentionally. > > > > > I guess now I would need to know what to tell the user to look for on > > > their device such that they can get this functionality to work. > > > Assuming I can get them to contact me or bother to read my web site. > > > > > Would the "keyboard selected" refer to the Settings | Locale & Date | > > > Keyboard [Checked] option? > > > And then I guess I could refer them to the keyboard settings option > > > below that to investigate further. > > > > > Best Regards, > > > Eric > > > > > On Sep 24, 1:14 pm, Dianne Hackborn wrote: > > > > Long press menu forces the keyboard to be displayed, as long as the > app > > > > doesn't completely consume that key event, and there is a keyboard > > > selected > > > > and it allows this (the default behavior is to allow it). > > > > > > -- > > > > Dianne Hackborn > > > > Android framework engineer > > > > hack...@android.com > > > > > > Note: please don't send private questions to me, as I don't have time > to > > > > provide private support, and so won't reply to such e-mails. All > such > > > > questions should be posted on public forums, where I and others can > see > > > and > > > > answer them. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Soft Keyboard
That's very interesting. Its the first I've heard of a feature being tied to the long-press menu on a Hero. I don't have so I can't test it, but no one else had mentioned that it had an alternate behavior - just that it didn't bring up the keyboard. Is it possible that this feature is the result of an installed app or service on your phone? Is there a customization feature - perhaps in Settings | Locale & Date? I'm just curious at this point. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Extensible Apps with Scripting or Bytecode Downloading
Miguel Paraz wrote: > Hi, > I'm looking into a solution that needs apps to be dynamically > extensible. > > One way could be an extension language or scripting engine. I've seen > the Android Scripting Environment, but this needs the actual C > scripting engine (Python or Lua) running as a separate process. Only for those two languages, AFAIK, FWIW. > I > would like the runtime to be a Java app itself, like JavaScript using > Rhino (and not using a WebView). So, use Rhino. Or Beanshell. With some classes added to Android 1.5, I suspect Rhino will build from source without issues. Beanshell, at least the language core, builds from source without issues. I use it in a few book examples. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 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 -~--~~~~--~~--~--~---
[android-developers] Re: help with rawQuery statement
jerryfan2000 wrote: > Hi, > I have a very simple statement like below > > return conn.rawQuery("select date, sum(amount) from entries where > (date>='"+start+"' and date<='"+end+"') group by date",null); > > This statement works flawlessly in sqlite3 command line. However, it > returns nothing if I use it within rawQuery method. Is it a bug or I > am misusing rawQuery? Thanks. Try: conn.rawQuery("select date, sum(amount) from entries where (date>=? and date<=?) group by date", args); where args is a String[] containing your start and end values. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 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 -~--~~~~--~~--~--~---
[android-developers] Re: htc tattoo
The-Shadow wrote: > How do I get the HTC Tattoo phone? "The HTC Tattoo will be available in Europe first at the beginning of October, and will roll out in markets around the world in the following months." http://www.htc.com/www/press.aspx?id=110136&lang=1033 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 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 -~--~~~~--~~--~--~---
[android-developers] Re: download layoutlib.jar
layoutlib.jar is used by the Eclipse plug-ins and should NOT be used by application developers. Xav On Tue, Sep 29, 2009 at 7:23 AM, Safy wrote: > > Hi, > > I cannot find IWindowManager class which is used to simulate > keyEvent. > > I searched google which says you need to import layoutlib.jar. I > have tried to search the package in windows 1.5 SDK but could not find > it. From where can I download the package ? > > > Thanks > > > > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Launch date/time settings from widget
Hi I'm trying to open the date/time settings in responds to a click event in an app widget. My code looks like this: Intent AlarmClockIntent = new Intent (android.provider.Settings.ACTION_DATE_SETTINGS); AlarmClockIntent.addCategory(Intent.CATEGORY_LAUNCHER); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, AlarmClockIntent, 0); views.setOnClickPendingIntent(R.id.clockimage, pendingIntent); Unfortunately it doesn't work. But I have no problems opening the general settings with the almost identical code shown below: Intent AlarmClockIntent = new Intent (android.provider.Settings.ACTION_SETTINGS); AlarmClockIntent.addCategory(Intent.CATEGORY_LAUNCHER); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, AlarmClockIntent, 0); views.setOnClickPendingIntent(R.id.clockimage, pendingIntent); I would be happy if somebody could help me out and tell what i'm doing wrong :-) Thanks in advanced Best Regards, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Run the same applications that are running J2ME
A helping hand, I have an Android G2 and would like to run the same applications that are running J2ME on my other cell E62. Is it possible? What is the procedure? -- Ray da Costa "The best way to predict the future is to invent it." Alan Kay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 properly use PreferenceActivity.addPreferencesFromIntent(Intent)
Hi all! Does anyone know how to properly use the PreferenceActivity.addPreferencesFromIntent(Intent) method?! Android reference (http://developer.android.com/reference/android/ preference/PreferenceActivity.html) says: "To specify an Intent to query Activities that each have preferences, use addPreferencesFromIntent(Intent). Each Activity can specify meta-data in the manifest (via the key METADATA_KEY_PREFERENCES) that points to an XML resource. These XML resources will be inflated into a single preference hierarchy and shown by this activity" So I created a PreferenceActivity overriding onCreate() as follow: protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); addPreferencesFromIntent(new Intent("mypackage.MYKEY")); } Then, I added the following lines into the AndroidManifest file: ... and xml/settings.xml contains http://schemas.android.com/apk/res/ android" android:key="settings"> Now, all is showed and the CheckBoxPreference works fine but when I click to the EditTextPrefence the following exception occurs: "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application" ... It seems to be related to the dialog that should appear but that is never shown. Any ideas?! Thanks in advance, Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 tattoo
How do I get the HTC Tattoo phone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Accelerometer: Fixed Sample Rate Requirements
Hi there, I require the following in order to get my accelerometer based application to work: 1. a reliable sample rate of ~20Hz (can be faster - I can sub-sample) 2. a guarantee of service even when the phone goes to sleep I have coded up a background service to test the performance of the accelerometer. I use the SensorEventListener interface and record the timestamps of sensor events in the onSensorChanged() handler. I have noticed the following: - if I use a PARTIAL_WAKE_LOCK the device stops calling onSensorChanged() whenever the screen goes to sleep - if I use any other wake-lock the device stops calling onSensorChanged() when I press the power button - when the device is awake and onSensorChanged() is being called, I see a varied sample rate for SENSOR_DELAY_FASTEST (and this is without doing anything in the onSensorChanged() function, apart from setting a time-between-calls variable, i.e. no I/O) I should mention that my test device is an HTC Hero. So, my question: is it possible to achieve my requirements? Have I missed something? For example, is it possible to poll the sensor, waking up reliably using the AlarmManager? Many thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] download layoutlib.jar
Hi, I cannot find IWindowManager class which is used to simulate keyEvent. I searched google which says you need to import layoutlib.jar. I have tried to search the package in windows 1.5 SDK but could not find it. From where can I download the package ? 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 display list of images in ListView in android?
Hi All, I am new to android. I want to display the list of images using the ListView. The images which are displayed are decided at runtime according to server response. and also i want to embedd some text on this image(like match scoring chip). the number of images are not fix. Can anybody help me here? - Jitu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Mobile Developer Roles in Toronto
Android Developer role available in Downtown Toronto. Description: - Knowledge and experience of Google Android is essential - Knowledge of other contemporary mobile platforms such as Symbian, Windows Mobile (CE), Linux-mobile, BREW, or equivalent are also highly desirable - Very strong design and abstraction skills – as it relates to programming, development of re-usable components etc. - Experience in Multimedia / Wireless / Mobile Content / Mobile Gaming areas is also highly desirable William Coleman Technical Resource Specialist, TAL Technology TAL Group Inc. 69 Yonge Street, Suite 1100 Toronto, Ontario M5E 1K3 Tel:416 599 1825 ext. 257 Toll Free: 1-877-503-2464 ext. 257 Fax: 416-599-8251 E-mail: colem...@talgroup.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Using custom collection of words to be used as SoftKeyboard candidates
Did you consider to use MultiAutoCompleteView or AutoCompleteView ? Regards jim On 29 sep, 12:17, LambergaR wrote: > Hello all! > > Is there a way to use custom list of words as SoftKeyboard candidates? > Not to add them to user dictionary but to specify them specifically > for this application. > > Would appreciate any help! > > Thanks, > Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Soft Keyboard
On HTC Hero, long-pressing-menu has a completely different default behavior: it brings up an app switcher with the last six apps. This is available in almost all applications and makes multitasking very convenient. I develop on a Hero now and have to remind myself this is a non- standard HTC thing. Fragmentation, indeed! Ordinary HTC users are probably so used to this behavior they would consider Android phones without it as broken. :-) On 25 Sep, 10:18, tauntz wrote: > The problem with long-pressing-menu not working is this: HTC Hero. It just > does NOT work there with the default keyboard. > I got also reports about people being not able to open the virtual keyboard > on their phones - I suggested them to try long-clicking the menu (following > Romain Guys suggestions) and I thought that everything is fine - till I got > my hands on HTC Hero - you can long-press the menu for 2 days in a row - it > still does not open the virtual keyboard there. > > The bottom line is that due to platform fragmentation there's no "standard" > way to bring up the keyboard - different platform implementations use a > totally different concept for it. If you want to support such devices, you > could detect if a device is a HTC Hero/(or some other device that does not > use long-menu-press) and if it is, then use a different layout in your app > (eg display a button that brings up the virtual keyboard). Or do some other > ugly ugly hacks (I'll burn in hell for suggesting this, right?:P) > > Tauno > > > > On Thu, Sep 24, 2009 at 10:40 PM, Eric Carman wrote: > > > Thank you both for your response. > > > If the application is written for Android 1.1, does this change > > anything in regards to "and there is a keyboard selected and it allows > > this"? I would think that in such an app, since it doesn't know about > > soft keyboards, the system soft keyboard would be selected and would > > allow this. But perhaps there is more to this. Are you possibly > > suggesting that they've installed one of the alternate keyboards? That > > would be interesting. > > > Again, this works on an emulator which I've defined to have no > > keyboard, so that is encouraging. At least I think it helps to rule > > out the caveat where the app isn't consuming the event, but I will > > check this out to be sure as I do catch key events - just not long- > > press menu ones, at least not intentionally. > > > I guess now I would need to know what to tell the user to look for on > > their device such that they can get this functionality to work. > > Assuming I can get them to contact me or bother to read my web site. > > > Would the "keyboard selected" refer to the Settings | Locale & Date | > > Keyboard [Checked] option? > > And then I guess I could refer them to the keyboard settings option > > below that to investigate further. > > > Best Regards, > > Eric > > > On Sep 24, 1:14 pm, Dianne Hackborn wrote: > > > Long press menu forces the keyboard to be displayed, as long as the app > > > doesn't completely consume that key event, and there is a keyboard > > selected > > > and it allows this (the default behavior is to allow it). > > > > -- > > > 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] Android kernel
Hi list, I would like to know if we can use the kernel.org kernels to update the android OS kernel for e.G. to 2.6.32-RC1 directly or if i need any custom android kernel patches to get the kernel running for android? Greeetings Cronix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do some init operation immediately after install
There is a big database(15M) in my application, it is too big to download the apk if I publish the source database in myapp.apk. So I encode the db to binary files(300k). But the new problem is I should decode binary files and create the database(with data), this procedure take about several minutes, so I can NOT do this in SQLiteOpenHelper.onCreate(), this is too slow for user experience(though it is a one time procedure, it is still unacceptable). My application has NO main activity entry in launcher, the main entry is BroadcastReceiver.onReceive, the infomation should display to user immediately when receiving the broadcast, so I have no chance to display a several minutes "Initializing, please waiting..." UI. The best chance to create database and init data immediately after install, but how to do this, is there any broadcast? or is there any AndroidManifest attribute? pls 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: Soft Keyboard
On the HTC Hero, long-pressing-menu brings up an app switcher with the last six apps. This works in almost all applications and provides an alternative way to multi-task which is always available and quite convenient. Fragmentation, indeed! Ordinary HTC users would probably consider other phones broken if this functionality is missing. Personally, I develop on a Hero and have to keep reminding myself that this is not available to users on other phones. On 25 Sep, 10:18, tauntz wrote: > The problem with long-pressing-menu not working is this: HTC Hero. It just > does NOT work there with the default keyboard. > I got also reports about people being not able to open the virtual keyboard > on their phones - I suggested them to try long-clicking the menu (following > Romain Guys suggestions) and I thought that everything is fine - till I got > my hands on HTC Hero - you can long-press the menu for 2 days in a row - it > still does not open the virtual keyboard there. > > The bottom line is that due to platform fragmentation there's no "standard" > way to bring up the keyboard - different platform implementations use a > totally different concept for it. If you want to support such devices, you > could detect if a device is a HTC Hero/(or some other device that does not > use long-menu-press) and if it is, then use a different layout in your app > (eg display a button that brings up the virtual keyboard). Or do some other > ugly ugly hacks (I'll burn in hell for suggesting this, right?:P) > > Tauno > > > > On Thu, Sep 24, 2009 at 10:40 PM, Eric Carman wrote: > > > Thank you both for your response. > > > If the application is written for Android 1.1, does this change > > anything in regards to "and there is a keyboard selected and it allows > > this"? I would think that in such an app, since it doesn't know about > > soft keyboards, the system soft keyboard would be selected and would > > allow this. But perhaps there is more to this. Are you possibly > > suggesting that they've installed one of the alternate keyboards? That > > would be interesting. > > > Again, this works on an emulator which I've defined to have no > > keyboard, so that is encouraging. At least I think it helps to rule > > out the caveat where the app isn't consuming the event, but I will > > check this out to be sure as I do catch key events - just not long- > > press menu ones, at least not intentionally. > > > I guess now I would need to know what to tell the user to look for on > > their device such that they can get this functionality to work. > > Assuming I can get them to contact me or bother to read my web site. > > > Would the "keyboard selected" refer to the Settings | Locale & Date | > > Keyboard [Checked] option? > > And then I guess I could refer them to the keyboard settings option > > below that to investigate further. > > > Best Regards, > > Eric > > > On Sep 24, 1:14 pm, Dianne Hackborn wrote: > > > Long press menu forces the keyboard to be displayed, as long as the app > > > doesn't completely consume that key event, and there is a keyboard > > selected > > > and it allows this (the default behavior is to allow it). > > > > -- > > > 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] taking pictures without seeing the preview on screen
is it possible? I know that if I won't make the call to camera.StartPreview() it won't work... but is there anyway I can hide the preview? or at least make the phone show a blank screen? an example will be appreciated... 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 play music album?
There is no intent for playing an album On Tue, Sep 29, 2009 at 5:43 AM, extrapedestrian wrote: > > Anyone? > > On Sep 28, 12:07 pm, extrapedestrian > wrote: >> I have album id, how can I start activity to play album? >> >> I tried this: >> >> Uri album = ContentUris.withAppendedId >> (MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, id); >> Intent playalbum = new Intent(Intent.ACTION_VIEW, album); >> startActivity(playalbum); >> >> but its not working... > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Eclipse crashing after update to ADT 0.9.3 and SDK 1.6
can you post (or send me) the content of the Eclipse log file? It's located inside your eclipse workspace (.metadata/.log) thanks Xav On Tue, Sep 29, 2009 at 8:48 AM, JMichel wrote: > > Hi, > > I'm running Eclipse Ganymede on Ubuntu 9.04. I wanted to update to the > newest Android SDK 1.6r1 from 1.5r3. The procedure that I followed is: > > - Run Eclipse > - Update every Eclipse components from the update manager (this > updated ADT to version 0.9.3) > - Restart Eclipse (Everything works fine) > - Untar the Android SDK 1.6r1 > - In Eclipse preference->Android, I selected the newly uncompressed > folder containing Android SDK 1.6r1 > - Click on OK > - Eclipse runs some tasks and crashes > > After this, whenever I try to run Eclipse again it brings an empty > windows on screen and does nothing else. Is there a way to come back > to the old SDK without starting Eclipse, with config files for > instance? Other suggestions? > > Thanks > > > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Build APK file from command line...
just send me the unsigned one by email. On Tue, Sep 29, 2009 at 3:12 AM, Babyboo wrote: > > Ok Xavier, > I want to send the file-unsigned.apk and file-signed.apk to you. But I > don't know how to put it here or somewhere else that you can get it (I > don't have any repository account). Can I send the apk files to you by > email ??? > > On Sep 29, 12:01 pm, Xavier Ducrohet wrote: >> zipalign is only in the tools folder of SDK 1.6 >> >> I don't know why your apk doesn't work. can you give us the content of your >> apk? >> >> Xav >> >> On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT >> wrote: >> >> > And ... I don't know why I didn't find the zipalign tool in Andriod >> > SDK's tools follder or Java-bin folder... >> >> -- >> Xavier Ducrohet >> Android SDK Tech Lead >> Google Inc. > > > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: conference call
I haven't seen any Android SDK APIs which are supporting supplementary services. For being able to support such a functionality APIs like -- hold -- join -- switch have to be available. This functionality is supported on the lower level of the telephony support (look in the Android source frameworks/base/telephony...). That's why the current phone app is able to offer this functionality. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 29, 5:27 am, Nemat wrote: > Hi, > > is it possible to add an incoming call with current call to make it as > a conference call programmatically? > > Thanks in advance > Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Inject audio to microphone source during a call
I'm not 100% here, but pretty sure SpoofApp also allows for callerID Spoofing, which I would guess is VOIP to their hubs, and out from there... - Dan On Tue, Sep 29, 2009 at 12:54 PM, Chris Stratton wrote: > > On Sep 29, 12:32 pm, fritzZz wrote: > > Is possible to inject audio such as mp3 in the output of microphone > > streaming? > > Supposedly no, not even with platform changes, as the call audio > doesn't go through the linux part of the system but stays on the radio > side of the fence. > > > I've found an application : spoofApp that change the voice during a > > call. How is possible? > > Have you personally tested it? And verified that it is making a > direct phone call, and not going through someone's server somewhere? > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Inject audio to microphone source during a call
On Sep 29, 12:32 pm, fritzZz wrote: > Is possible to inject audio such as mp3 in the output of microphone > streaming? Supposedly no, not even with platform changes, as the call audio doesn't go through the linux part of the system but stays on the radio side of the fence. > I've found an application : spoofApp that change the voice during a > call. How is possible? Have you personally tested it? And verified that it is making a direct phone call, and not going through someone's server somewhere? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Now ADC2 judging has begun.
No problem here using Cyanogen with Apps2SD. Done probably 20-30 reviews. - Dan On Tue, Sep 29, 2009 at 12:43 PM, ander...@phdgaming.com < ander...@phdgaming.com> wrote: > > >>Short POLL: Do you face this issue, too [or not?] ? > > I've done about 40 app reviews - never a single problem for me. It > does take a few minutes to install though after the download > completes. > > I'm using the stock OS, latest update on my T-mobile G1. Could those > with the problem post details about their phone (ie. stock OS or > modified, amount of free space available, exact phone, etc) as well? > My guess off-hand is that the judging app makes sure an old program > doesn't exist before allowing a download - so it might be it doesn't > always work if one uses an OS that does SD-card app loading? > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Now ADC2 judging has begun.
>>Short POLL: Do you face this issue, too [or not?] ? I've done about 40 app reviews - never a single problem for me. It does take a few minutes to install though after the download completes. I'm using the stock OS, latest update on my T-mobile G1. Could those with the problem post details about their phone (ie. stock OS or modified, amount of free space available, exact phone, etc) as well? My guess off-hand is that the judging app makes sure an old program doesn't exist before allowing a download - so it might be it doesn't always work if one uses an OS that does SD-card app loading? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Now ADC2 judging has begun.
> Short POLL: Do you face this issue, too [or not?] ? I've got a Google ION (Magic sort of) and so far, 90% have downloaded directly out of the app. Perhaps a little more patience is in order. One thing that may affect my success. I usually do the judging app after business hours, so the market might be less busy. As for interest in judging, it seems to be waning. Here's the breakdown of hits on my 3 ADC2 entries: Day Hits 09/24 14 09/25 32 09/26 37 09/27 36 09/28 26 Sort of a classic bell curve, interest in judging seems to be in the decline with the height around day 3. Of course, it might just be my apps, they are US specific or the weekend. Time will tell. Any other results from the field? -John Coryat "What Zip Code?" "Radar 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: Extensible Apps with Scripting or Bytecode Downloading
Have you tried jRuby? JRuby 1.2 RC1 Released, Initial support for Android: http://www.infoq.com/news/2009/02/jruby12rc1-android-support On Sep 29, 8:14 am, Miguel Paraz wrote: > Hi, > I'm looking into a solution that needs apps to be dynamically > extensible. > > One way could be an extension language or scripting engine. I've seen > the Android Scripting Environment, but this needs the actual C > scripting engine (Python or Lua) running as a separate process. I > would like the runtime to be a Java app itself, like JavaScript using > Rhino (and not using a WebView). > > Another way is to download Java code dynamically. But, Android does > not support jar downloading and dynamic classloading, since these > bytecode class files are not used directly. > > So far there seems to be no solution - your thoughts? 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] Inject audio to microphone source during a call
Is possible to inject audio such as mp3 in the output of microphone streaming? I've found an application : spoofApp that change the voice during a call. How is possible? Please if it is possible paste some piece of code...thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: invoking the dialer multiple time
Anyone has solved? This is a bad limitation... On Jul 31, 11:09 pm, flohier wrote: > I was told to suggested to import the ITelephony.aidl file from the > kernel and invoke thecall() (or answerRingingCall() directly - which > is not elegant but seems to be an option. > > The problem I have trying this is to get a pointer to telephony > service form my activity: > > ITelephony sPhone = ITelephony.Stub.asInterface > (ServiceManager.checkService("phone")); > ITelephony phoneServ = getPhoneInterface(); > > This code does not work betcause the ServiceManager is not exposed by > the SDK so I don't know how to bind the aidl interface of ITelephony I > imported from the kernel. > > On Jul 29, 12:20 am, Ola wrote: > > > > > > So my question is: does anyone know how I could programmatically exit > > > thecalllog activity as ways to be able to submit another ACTION_CALL > > > intent ? > > > I am also interested in this same thing. I would like to > > programmatically exit the DialtactsActivity from my service and return > > to the home screen. > > > BR, > > //Ola > > > On Jul 26, 3:45 pm,flohier wrote: > > > > Dear All, > > > > I wrote an app that places an outgoingcallvia the ACTION_CALL > > > intent. > > > > After thecallis placed, the dialer enters thecalllog window and at > > > that point, my application cannot re-submit an outgoingcallwithout > > > having the user exit thecalllog activity. > > > > From the kernel source, InCallScreen.java shows implements the > > > delayedCleanupAfterDisconnect() method where one can read: > > > > . > > > > // If this is acallthat was initiated by the user, > > > and > > > // we're *not* in emergency mode, finish thecallby > > > // taking the user to theCallLog. > > > // Otherwise we simplycallfinish(), which will take > > > us > > > // back to wherever we came from. > > > if (mShowCallLogAfterDisconnect && ! > > > isPhoneStateRestricted()) { > > > if (VDBG) log("- ShowCallLog after > > > disconnect..."); > > > final Intent intent = PhoneApp.createCallLogIntent > > > (); > > > startActivity(intent); > > > // Even in this case we stillcallfinish() > > > (below), > > > // to make sure we don't stay in the activity > > > history. > > > } > > > > finish(); > > > > The mShowCallLogAfterDisconnect is a boolean also in InCallScreen.java > > > that reads: > > > > // Flag indicating whether or not we should bring up theCallLog > > > when > > > // exiting the in-callUI due to the Phone becoming idle. (This > > > is > > > // true if the most recently disconnectedCallwas initiated by > > > the > > > // user, or false if it was an incomingcall.) > > > // This flag is used by delayedCleanupAfterDisconnect(), and is > > > set by > > > // onDisconnect() (which is the only place that either posts a > > > // DELAYED_CLEANUP_AFTER_DISCONNECT event *or* calls > > > // delayedCleanupAfterDisconnect() directly.) > > > private boolean mShowCallLogAfterDisconnect; > > > > If I trust the comment properly, the dialer will enter thecalllog > > > activity unless we had an incomingcalltriggering InCallScreen. I > > > presume that by "callwas initiaited by the user" also means other > > > activity invoking ACTION_CALL. > > > > So my question is: does anyone know how I could programmatically exit > > > thecalllog activity as ways to be able to submit another ACTION_CALL > > > intent ? > > > > Thanks for any pointers or suggestions here.- 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: Now ADC2 judging has begun.
Good to read this, On Sep 25, 5:27 pm, Sheenmue wrote: > Several times I had to go back toADC2app because the > app to review wasn't downloading, other times the app was downloaded > but wasn't installed and in several occasionsdownloadprogress > stopped at 0% and I had tocanceland start again several times. > > I never had this kind of problems with Android Market. as it shows me i am not the only one. I found something in the help, but it doesn't really solve it (instructinos to cancel > goto market/my downloaded apps, and resart). Can Google see how many % are affected? An ADC2 judging app update would be _very_ helpful to get a solid base for judges. I posess a G, too and during my reviews I had only 2% working from the first time, 50% with 2 to 6 attempts and remaining ~48% with far too many cancel/download/cancel/download iterations, that really stops me from judging better. Short POLL: Do you face this issue, too [or not?] ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Now ADC2 judging has begun.
On Sep 27, 1:35 pm, dka wrote: > applications to review that just crashed - so what to do about > it? I then just skipped it, because I cannot really say, if its specific to me. Other bad ratings will do it and - even if all do think like me, and act the same - latest "q-gate" that it will not pass is the 2nd round. So my personal proposal just ignore and SKIP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Is it possible to update a widget from an Activity?
Thank you all, I have gotten this to work. Mark, I apologize, I didn't quite understand what you were saying, but now I do. I was able to get it working easily once I understood this. You can also update the app widget from any class in your application, like so: AppWidgetManager appWidgetManager = AppWidgetManager.getInstance (context); RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main); // Perform updates on the view appWidgetManager.updateAppWidget(new ComponentName(context, TheWidgetProvider.class), views); This was probably obvious, but I didn't understand it right away. You can call this from anywhere, assuming you have a context. Thank you all for helping me better understand something so simple. -John On Sep 27, 4:55 pm, Al wrote: > I update my widget from within my app, when I delete/add entries to a > list. To do this, I have a method (updateWidget) and a static String > (UPDATE_ACTION). My updateWidget() method sends a broadcast which is > received by the widget class and then calls onUpdate() with the > appropriate params: > > private void updateWidget() { > Intent i = new Intent(this, TVWidget.class); > i.setAction(TVWidget.UPDATE_ACTION); > sendBroadcast(i); > } > > In TVWidget class: > > @Override > public void onReceive(Context context, Intent intent) { > > String action = intent.getAction(); > > if (action != null && action.equals(UPDATE_ACTION)) { > final AppWidgetManager manager = > AppWidgetManager.getInstance > (context); > onUpdate(context, manager, > manager.getAppWidgetIds(new > ComponentName( > context, > TVWidget.class) > ) > ); > } > > else { > super.onReceive(context, intent); > } > } > > This seems to work fine. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Eclipse crashing after update to ADT 0.9.3 and SDK 1.6
Hi, I'm running Eclipse Ganymede on Ubuntu 9.04. I wanted to update to the newest Android SDK 1.6r1 from 1.5r3. The procedure that I followed is: - Run Eclipse - Update every Eclipse components from the update manager (this updated ADT to version 0.9.3) - Restart Eclipse (Everything works fine) - Untar the Android SDK 1.6r1 - In Eclipse preference->Android, I selected the newly uncompressed folder containing Android SDK 1.6r1 - Click on OK - Eclipse runs some tasks and crashes After this, whenever I try to run Eclipse again it brings an empty windows on screen and does nothing else. Is there a way to come back to the old SDK without starting Eclipse, with config files for instance? Other suggestions? 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] currently running applications
Is it possible to query, which applications are currently running on a device and especially which application the user is currently using? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Is it possible to upgrade HTC Magic G2 from 1.5-Cupcake to 1.6-Donut ?
Of course you can On Sep 29, 8:09 pm, Kasmoori Bindu wrote: > Hi, > I am currently using HTC Magic G2 H/W with Android 1.5 Cupcake; I am > planning to upgrade it to 1.6 Donut. Is it possible? if so, what is the > procedure to upgrade. I need this information urgently. > > Could anyone please respond. > > Thanks &Regards, > Bindu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 1.6 images for the ADP1 from HTC!
Hi I updated my ADP1 using recovery image. The update process was succeeded. But an error message has been displayed when system rebooted. LogCat messages are below. > 06-21 09:53:35.347: ERROR/DatabaseUtils(152): > java.lang.SecurityException: Permission Denial: writing > com.google.android.providers.settings.GoogleSettingsProvider uri > content://com.google.settings/partner from pid=219, uid=10050 requires > com.google.android.providers.settings.permission.WRITE_GSETTINGS > 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at > android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:276) > 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at > android.content.ContentProvider$Transport.insert(ContentProvider.java:139) > 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at > android.content.ContentProviderNative.onTransact(ContentProviderNative.java:125) > 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at > android.os.Binder.execTransact(Binder.java:287) > 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at > dalvik.system.NativeStart.run(Native Method) After all, I did factory reset. This problem was solved. That's strange... Anyone have same situation? -- Keiji Ariyama BoD wrote: > Maybe it has been announced already and I missed it, but just in case: > => http://developer.htc.com/adp.html ! > > BoD > > > -- Keiji, ml_andr...@c-lis.co.jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] UI background task
Here's scenario: 1. Client makes remote call to the service (returns void) and provides a callback object 2. Service executes some long running logic on the background thread and then uses callback object to trigger ether success or failure which (since these manipulate visual elements) execute in Activity#runOnUiThread block The scenario runs fine. The question is - can I use AsyncTask to make code less verbose (how?) and would be there any advantages in doing it that way? Or should I just get away from client callbacks alltogether and execute remote service calls retrofitted to return some value within AsyncTask#doInBackground? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: zipalign and Eclipse: Does Eclipse do this automatically?
Sorry, i did not read carefull enough. It's right there in the ADT section. I was scanning for the word 'Eclipse'. On Sep 29, 12:54 am, Xavier Ducrohet wrote: > Yes, in ADT 0.9.3. > > it's all explained > here:http://android-developers.blogspot.com/2009/09/zipalign-easy-optimiza... > > Xav > > On Mon, Sep 28, 2009 at 9:42 PM, Streets Of Boston > > wrote: > > > Question: > > Does Eclipse automatically zipalign? > > > In other words: If you use the Android 1.6 SDK, having it installed in > > Eclipse, and use Eclipse to sign your apk (right-click: Android Tools > > --> Export Signed Application Package), will your apk be zipaligned? > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ProgressDialog with a second thread - Screen Orientation and "back button". How to restore progress dialog?
If you want to keep your thread running after you press the home or back button, i'm afraid you'd have to use a service. When your activity is popped off the back-stack (e.g. pressing home), the OS could kill the process in which your activity is running and your thread will be terminated. As far as I know, there's no way around that. If you just want to keep the progress dialog up and running after keyboard changes and orientation changes, put the progress bar in a Dialog managed by the activity (showDialog(dialogID)). The activity then makes sure that the progress dialog is shown again after orientation change. On Sep 29, 3:11 am, Kacper86 wrote: > hi! > > first of all, i have to admit that i was wrong. when you set > Dialog#setCancelable(false), hit home button, rerun your app, then > your progress dialog does not always work. so i'm still stuck :/ > > @Broc Seib: > thank you for your response! you said that you terminate your thread > when gui thread is dead. however i just want to do the opposite - i > want my thread to be alive while gui is gone. and when gui is > restarted, it should still be able to receive messages from running > thread. do know if that can be achieved without creating service with > thread and binding to it? > > On Sep 28, 4:43 am, Broc Seib wrote: > > > > > I have built progress bars where I hay d a background thread that updated my > > Activity via callbacks (to do GUI updates in the UI thread). > > > I ended up using a WeakReference object to hold the callback pointer to my > > Activity. I have made the assumption (right or wrong) that my UI thread may > > be gone while my background thread still exists. I was experiencing some > > funky exceptions while testing my app -- I was rudely interrupting my > > application by pressing the back or home button in the middle of my > > background thread doing some non-GUI work. > > So when it is time for my background thread to report to my UI thread, if my > > WeakReference returns null, then I just silently exit my thread in the > > background, knowing my UI thread is gone. > > > Below is a canonical example demonstrating what I am doing. There may be > > more suitable solutions that I have not learned yet. > > -broc > > > package foo.example; > > > import java.lang.ref.WeakReference; > > > public class BackgroundThreadExample extends Thread { > > public interface Callback { > > public void onSomeBadEventUpdateGuiThread(Object stuff); > > public void onSomeGoodEventUpdateGuiThread(Object things); > > > } > > > private WeakReference weakCallback; > > private Object stuffYouCareAbout; > > public BackgroundThreadExample(Callback callback, Object stuffYouCareAbout) > > { > > super("myThreadName"); > > this.weakCallback = new WeakReference(callback); > > this.stuffYouCareAbout = stuffYouCareAbout;} > > > �...@override > > public void run() { > > // do background stuff > > boolean isGood = doStuff(this.stuffYouCareAbout); > > try { > > // inform our UI via callback. > > if ( isGood ) { > > getCallback().onSomeGoodEventUpdateGuiThread("was good");} else { > > > getCallback().onSomeBadEventUpdateGuiThread("was bad");} > > } > > > catch (MyWeakRefException e) { > > // our UI thread object is gone. bummer. > > // silently fall thru to exit this thread. > > > } > > } > > > private boolean doStuff(Object stuffYouCareAbout) { > > // some useful stuff might go here. > > return true;} > > > private Callback getCallback() throws MyWeakRefException { > > Callback callback = weakCallback.get(); > > if ( callback == null ) { > > throw new MyWeakRefException(); > > > } else { > > return callback; > > } > > } > > } > > On Sat, Sep 26, 2009 at 8:17 PM, Kacper86 wrote: > > > > Thank you for your response! It works great - now I can change the > > > orientation and the ProgressDialog works. And do have any ideas how to > > > solve the problem with user hitting "back" or "home" button? I found > > > that you may set your Dialog with Dialog#setCancelable(false). Then, > > > the user can only hit "home" button, and when he launches the app > > > again, ProgressDialog is still there! > > > > However, what should be done if I want Dialog that can be cancelable? > > > So that the user can cancel ProgressDialog, set something in the app > > > settings, hit "home" button, run sth else, and then relaunch my app to > > > check the progress? > > > > On Sep 26, 11:36 am, manoj wrote: > > > > You need to implement the method > > > > public void onConfigurationChanged(Configuration arg0) > > > > { > > > > super.onConfigurationChanged(arg0); > > > > } > > > > > in your activity. and in manifest file, you have to the statement > > > > android:configChanges="keyboardHidden|orientation" for that activity. > > > > > so when your screen orientation is changed, it wont call the onCreate > > > > () method again. > > > > > On Sep 26, 1:21 pm, Kacper86 wrote: > > > > > > Hi! > > > > > > I've created ProgressDialog with a second thread according to
[android-developers] Re: zipalign and Proguard
Thanks On Sep 28, 3:55 pm, Xavier Ducrohet wrote: > It's completely different. > > The only thing that zipalign does is align the location of the > uncompressed zip entries on 4 bytes by adding padding before them > (using the extra field of a zip entry). > > The content of the files inside the zip archive is not changed in > anyway (otherwise the signature would fail) > > Xav > > On Mon, Sep 28, 2009 at 1:28 PM, Fred Grott(Android Expert) > > > > wrote: > > > As you mightknow new to SDK 1.6 is the zipalign to align data > > resources for better and optimized performance and it gets used after > > apk is signed. > > > My question is how does this affect those who may be obfuscating their > > classes by using Proguard? > > > Will I stil be able to obfuscate the classes using Proguard? > > > Thanks > > -- > Xavier Ducrohet > Android Developer Tools Engineer > Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---