[android-developers] Re: how to save a streaming into SD card?
I'm afraid you can't at app level. On Oct 9, 12:02 pm, Charlie88 charliel...@gmail.com wrote: hi cindy, Do you know how can I save a streaming video from the position the MediaPlayer is currently playing? Because since the streaming is already playing, I assume all the connection is fine. Can I use some shortcut commands to save the current playing streaming video? Thanks. Charlie On Oct 9, 11:53 am, cindy ypu01...@yahoo.com wrote: you can open a file, and write the content to file. On Oct 8, 8:42 pm, Charlie88 charliel...@gmail.com wrote: Anyone know the mechanism of saving streaming in Android? Is it related to the network condition? And how should I specify the path of the file in SD card in my saving command? Thanks.- 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
Re: [android-developers] HTML5 is not working in WebView
I would like to first verify my webview have the correct setting. In general, to work with HTML5 what options need to be turn on besides enableJavaScript? Thanks Mark Murphy wrote: On Wed, Oct 6, 2010 at 12:06 PM, rovi rovix...@gmail.com wrote: I wrote several simple HTML5 apps which all works on Android browser, but the webview in my activity doesn't work. I have enable javascript in webview setting. Is there anything setting needed for HTML5 to work? HTML5 is a broad concept. Could you be more specific? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Follow up for the active install count problem
On Oct 8, 12:26 pm, TreKing treking...@gmail.com wrote: fabrizio.giud...@tidalwave.it wrote: and maybe the count would fix itself with new upgrades... No. It gets better, but it's not fixed by any means. I pumped out an update shortly after the supposed fix - I've gone up 20% from the lowest point but have another 20% to go if it's to go back to normal. Please explain to me how exactly you know what normal is given that the stat has a long reputation for being inaccurate over the past few months. :-) Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: WebView class from android supports xhtml, html4, html5 ?
As I know, WebView (1.6 or above) supports XHTML and html4. If you merely want to display text mixed with images, you can write a html4 page. Hope it will help you. :-D On Oct 8, 11:09 pm, Lidia lidyp...@yahoo.com wrote: Hello, Does anyone know if the WebView class from android supports xhtml, html4, html5 for all platforms (from 1.5 to 2.2)? I need to use an internal browser in my app from which to open a sample page that contains some images. What is the best way to develop this pages, to make compatibbble for all phones? Has onyone idea? Thank you Lidia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Creating a .jar Library
Android project aren't meant to export jars from source code. The documentation makes this clear. They export raw source which gets compiled directly by dependent projects. If you want to add a jar file, I think you'll have to do arrange for Eclipse to pick up a static jar from a different project with manual configuration. On Oct 8, 5:39 pm, JoeSchmoe rthompson.dtisoft@gmail.com wrote: Do I have to do anything special to create a .jar library with Android? I'm simply creating an Android Project and then doing Export Jar. I'm able to do Add External Jar and I can compile fine. When I run, the classes are unresolved so I crash. (null exception...) I tried exporting as a Runnable Jar, but the Finish button is greyed out. Perhaps I need to create a different project to use a runnable jar? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?
Just curious. Are you all using anything other than the Google Checkout interface to track sales? I'm using a paid app called Android Market Report. It hasn't been particularly great, but it does show the net sales for each day/week/ month. http://www.appbrain.com/app/android-market-report/com.wugland.marketreport On Oct 8, 4:08 pm, Tom / HyperBees tomek.ml...@gmail.com wrote: 75% up but overall, partially because of Feint partially because of new countries. I'll look into the details (per app per country per day) over the weekend. On Oct 8, 11:32 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Sorry, I take that back. There was one attempted sale in those 6 hours that failed with The authorization of the customer's credit card failed. I see a lot of those in bunches, also. On Oct 9, 6:28 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, it is very strange. No sales again for 6 hours, and these 6 hours is when my app sells the most, as it's the afternoon/evening in the US. I can't prove that something is wrong, but it certainly is mind-boggling. On Oct 9, 12:55 am, JonFHancock jonfhanc...@gmail.com wrote: Another relatively slow day so far. My app was showing in the market (for me at least), but I unpublished and republished for good measure. We'll see... On Oct 8, 6:29 am, Zsolt Vasvari zvasv...@gmail.com wrote: I just unpublushed and republished it and it showed up immediately. WTF On Oct 8, 9:24 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I can find my app if I search for it, but not if I just list the apps in my category. On Oct 8, 8:58 pm, String sterling.ud...@googlemail.com wrote: On Oct 8, 7:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. You might want to see if your app is visible in the Market. My top app has suddenly vanished, from both my G1 and N1, for no readily apparent reason. I think the Market is going through one of its usual periods of instability. String- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- 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] printing key codes
hi plz tell me how can i print key codes of keys pressed in phone. actually i want to know which keys are pressed when i run my activity,so i want them to be print. i only find key event class but it is already taking a key codei want to print that key code which is pressed. plz help me thanks Rachana -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why doesn't the polygons get filled?
I can draw polygons with canvas.drawVertices, but I can not fill them. I have set Paint.Style.FILL on the paint object,but the polygon doesn't get filled. Why doesn't the polygon get filled? This is my code: mLinePaint2 = new Paint(); mLinePaint2.setARGB(255, 255, 0, 0); mLinePaint2.setStyle(Paint.Style.FILL); canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts, 0, null, 0, null, 0, null, 0, 0, mLinePaint2); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] scrollbar image not appearing properly
Hi All, I am setting a drawable to scrollbar of a list view.But scrollbar image is not appearing properly.It appears strecthed. I tried to use 9 patch image.But still same problem. Anybody ahs used image to scrollbar successfully? Please help. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] scrollbar image not appearing properly
I am setting a drawable to scrollbar of a list view.But scrollbar image is not appearing properly.It appears strecthed. I tried to use 9 patch image.But still same problem. Anybody ahs used image to scrollbar successfully? Please help. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Unable to sign jar
It seems that it's a bug in Eclipse. I use 3.5. Besides the corrupted apk, my eclipse started behaving quite weird (like remembering the contents of the manifest file of a project I removed and also erased from my hard disk). Anyway, I erased the instance of eclipse from my hard drive, reconfigured it and things went back to normal again. Unfortunately I don't know how to reproduce it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to send data to server while recording
Here is my inspiration source: http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Build System
Hi All, Can anybody give me some idea how build is happening in Android. Its a huge one to go through by each and every make file. I want remove many of the components and add few more ... I want to know clearly that how build(not how build) meas steps happeing inside build by makefiles wise... help me Thanks, Bujji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is it possible
yes, it will work fine On Sat, Oct 9, 2010 at 8:27 AM, Jatin D Patel depo.ja...@gmail.com wrote: I have developed an android app which calls the web service which runs smoothly on my emulator. Will the same appl work if i installed the same application on android mobile device and call the webservice. (server running on my laptop) -- Thanks, Jatin D N Patel Masters, Computer Sci. Suny Binghamton Univ, NY. You Got To Think HIGH to RISE. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: where to browse the source code of Android
On Sat, Oct 9, 2010 at 12:32 AM, cindy ypu01...@yahoo.com wrote: one more silly question, if I know I want to view a class, such as MediaPlayer, how could I find it for those git files? Oh, for that, I tend to go to Google Code Search: http://www.google.com/codesearch Add package:android to your search query, and it will restrict your search to things related to Android, including the open source code. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unable to sign jar
It might have worked out to just clean your app. On Oct 9, 3:43 am, Ali Chousein ali.chous...@gmail.com wrote: It seems that it's a bug in Eclipse. I use 3.5. Besides the corrupted apk, my eclipse started behaving quite weird (like remembering the contents of the manifest file of a project I removed and also erased from my hard disk). Anyway, I erased the instance of eclipse from my hard drive, reconfigured it and things went back to normal again. Unfortunately I don't know how to reproduce it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to convert xml to svg in Android
Isn't svg based on xml ? From what little I understand, yes. Examine the file with a source browser and see if it looks OK. On Oct 8, 11:01 pm, 大风 jindafeng2...@gmail.com wrote: Now I just parse the svg file the same way as xml file , in order to get some information and the draw the picture on the Android by myself , I can parse xml file but failed in svg file , Isn't svg based on xml ? On Oct 8, 11:43 pm, DanH danhi...@ieee.org wrote: If at all possible you should use a utility to convert the SVG to some other format before loading it onto the phone. On Oct 8, 9:11 am, 大风 jindafeng2...@gmail.com wrote: So I want to write it myself, there are already apps that implement it but no source code. On Oct 8, 9:15 pm, jamesc jame...@gmail.com wrote: Android doesn't currently have SVG support:http://developer.android.com/guide/appendix/media-formats.html On Oct 8, 1:03 pm, 大风 jindafeng2...@gmail.com wrote: Well,Now I want to parse the svg file in Android.What do I need to do? On Oct 8, 7:06 pm, DanH danhi...@ieee.org wrote: Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What's on earth the SAX Parser changes between 2.1 and 2.2
Thanks, frank, I have found the cause of my problem, you can refer my blog post for more detail: http://mmmyddd.freeshell.net/blog/Computer/Android/saxcompatibility On Thu, Oct 7, 2010 at 11:58 PM, Frank Weiss fewe...@gmail.com wrote: The bug report sheds no more light on the problem than you did. I've used the same SAX parser code on 2.1 as on 2.2 without issues. I suspect there's either an issue in your default handler code or in the XML being read. Have you tried to step through the code on 2.1-update1? Did you implement the characters callback correctly? Did you look at the changes in the library code, as the bug report suggested? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AppWidget on receive method and documentation
Hi, I use an AlarmManager to refresh my widget view (the view not the data displayed which are managed by the standard updatePeriodMillis). The AlarmManager is configured to work with RTC. The documentation indicates : Set the alarm type to either ELAPSED_REALTIME or RTC, which will only deliver the alarm when the device is awake. Then set updatePeriodMillis to zero (0). I check that but my method continue to be called even if my screen is OFF (device awake). What's the issue ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 with Shared Prefs.
Thank you very much. That makes perfect sense. I'll give it a try later. On Oct 8, 6:46 pm, Kostya Vasilyev kmans...@gmail.com wrote: Don't call edit() multiple times. Every call to edit() creates a new change session, so you're changing the value but not committing the change, and then starting a new changeset and committing it with no new values. -- Kostya Vasilyev --http://kmansoft.wordpress.com 09.10.2010 2:36 пользователь JoelDuggan joeldug...@gmail.com написал: Hey there all, I'm having a problem that i don't know how to resolve. I have a broadcast receiver catching a call from the system. I need this receiver to set a flag so that the next time my app runs it can do something different. I am trying to do this with a shared pref but it is not working. In the receiver I do: SharedPreferences sharedPreferences = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); sharedPreferences.edit().putBoolean(changed, true); sharedPreferences.edit().commit(); Then when i start my app I check like so: sharedPreferences = getSharedPreferences(PREFS_NAME, MODE_PRIVATE); if (sharedPreferences.getBoolean(changed, false)){ hasChanged = true; sharedPreferences.edit().putBoolean(changed, false); sharedPreferences.edit().commit(); } This does not work. If I download the file from the emulator after the receiver has triggered it is empty. It exists but there is no key value pair. What am I doing wrong? Is there a better way to flag my app to run differently on next startup? Any 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AppWidget on receive method and documentation
Override onStartCommand() or onStart() in your AppWidgetProvider and figure out what Intent is being used to update the AppWidgetProvider. That should help you narrow down the source (your alarm or the built-in updatePeriodMillis alarm). On Sat, Oct 9, 2010 at 10:45 AM, arnouf arnaud.far...@gmail.com wrote: Hi, I use an AlarmManager to refresh my widget view (the view not the data displayed which are managed by the standard updatePeriodMillis). The AlarmManager is configured to work with RTC. The documentation indicates : Set the alarm type to either ELAPSED_REALTIME or RTC, which will only deliver the alarm when the device is awake. Then set updatePeriodMillis to zero (0). I check that but my method continue to be called even if my screen is OFF (device awake). What's the issue ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to save a streaming into SD card?
hi 097, which task do you mean I can't do at app level? Charlie On Oct 9, 2:22 pm, 097 sphinxdw...@gmail.com wrote: I'm afraid you can't at app level. On Oct 9, 12:02 pm, Charlie88 charliel...@gmail.com wrote: hi cindy, Do you know how can I save a streaming video from the position the MediaPlayer is currently playing? Because since the streaming is already playing, I assume all the connection is fine. Can I use some shortcut commands to save the current playing streaming video? Thanks. Charlie On Oct 9, 11:53 am, cindy ypu01...@yahoo.com wrote: you can open a file, and write the content to file. On Oct 8, 8:42 pm, Charlie88 charliel...@gmail.com wrote: Anyone know the mechanism of saving streaming in Android? Is it related to the network condition? And how should I specify the path of the file in SD card in my saving command? Thanks.- Hide quoted text - - Show quoted text -- 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] How to get .apk create date
Hi, Is there an api to programmatically get the .apk create date/time? Thanks, jb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ListSelector on GridView
Hi, Did you get a solution ? I have the same problem... Thanks, Antoine On 25 août, 05:42, fr4gus fggar...@gmail.com wrote: Hi all, I'm trying to use a custom listSelector on aGridView. When I use the default listSelector, I see that it modifies the size of my items so the listSelector display correctly. The listSelectoris bigger than my items: See how when using the default selecto, it make grid items to be resized. Above thegridviewI have a LinearLayout with 4 of the same images(ImageView) theGridViewcontains. http://twitpic.com/2hxkjh I wanted a custom listSelector, not as bigger as the default (that makes my items smaller), but bigger enough to simulate a border on them without overlap my items content. I'm, not sure if this is an expected behavior, but when I set the listSelector with my own image, I see theselectorbeing fit to my items size. At least my items won't get resized http://twitpic.com/2hxlni Any ideas of how to set aselectorthat doesn't get resized? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 setting focus
I have an app where the user is entering some data via an EditText control. This is done by alternating between 2 pages each of which obtains one piece of data. When I start, I create the first page and make it active by calling the setContentView for the activity. I also set the focus into the EditText control on this page. When I do that, I am able to bring up the soft keyboard and type text into the control. I then press a 'Next' button, which brings up the second page. I create this page which has another EditText control, and make it active by calling the setContentView. Once again, this works correctly, and I am able to enter text into the control. When I press the 'Next' button again, the first page is then make active again (I am reusing the origonal page, and do not recreate it). However, when I do this, I can no longer type text with the soft keyboard and have it go into the EditText control. The control shows a blinking cursor as if it has focus, but if I type on the soft keyboard, nothing happens, except I get the following errors in LogCat: 10-09 17:28:52.722: ERROR/MediaPlayerService(30): error: -2 10-09 17:28:52.722: ERROR/MediaPlayer(52): Unable to to create media player 10-09 17:28:52.722: WARN/AudioService(52): MediaPlayer IOException: java.io.IOException: setDataSource failed.: status=0x8000 Note that if I don't bring up the soft keyboard and use the hardware keyboard instead, everything seems to work correctly. Obviously, I am doing something wrong here, but I cannot figure out what. Can anyone give me a clue as what is happening here? 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] Transaction Mechanism
Hi, Is there any article/paper that describes the transaction mechanism, why it is needed and how it works? eg: the ActivityManagerService class -E -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Transaction Mechanism
On Sat, Oct 9, 2010 at 1:36 PM, Tez earlencefe...@gmail.com wrote: Is there any article/paper that describes the transaction mechanism, why it is needed and how it works? eg: the ActivityManagerService class There is no ActivityManagerService class in the Android SDK. If your questions are regarding the firmware, please visit one of the Google Groups on the Discussion tab at: http://source.android.com -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?
@Jon You could give mopapp.com a try. They use Checkout API to get the data and present it in a very Analytics-like way. The service is in beta, I'm testing it at the moment. My first impression is they are quite accurate (I'm about to start data validation) and analytical tools are good. Support is also above average. Great feature is that they are able to combine sales from other markets (app store, handango etc.) too. Analytical dashboard works fine on handset's browser. I'm willing to pay for this. I'm not affiliated with mopapp in any way :) I found them by accident on CrunchBase. There is also an app called Checkout Check by Polyclef Software it didn't work for me but I know it works fine for others. Hope it helps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get .apk create date
PackageManager.getPackageInfo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: No Texting While driving .....
Simply put, you want to find velocity, v. From the accelerometer you can get dv/dt, which you can integrate to get v. From the GPS you can get the location, x, and dx/dt is also v. So you have two versions of v, one that is fast but tends to drift (from the accelerometer) and one that is slow but steady. This is a perfect use-case for the Kalman filter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Market misery !!
I am so upset !! It is not enough that the just-in category is flooded by bigboobs finders crap-apps all the time so that the exposition time of any decent app is a mere couple of hours but now after patiently waiting a week before launching my new update, it does not even appear in the just-in category !!! I'm promoting my app all I can on my blog, myspace, facebook, twitter, tumblr and all, but the best exposition tool should normally be the market !! [Actual question] So how long between two updates to be sure to show up in the just in category ? Beside : I'm buying a mac mini this very week-end and starts porting my apps to iphone and if these ports works well on webos and iphone, I think i'll just quit this information black hole that is the Android platform !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market misery !!
On 10/9/10 20:46 , Yahel wrote: I'm promoting my app all I can on my blog, myspace, facebook, twitter, tumblr and all, but the best exposition tool should normally be the market !! Don't expect that. The market is just an easy way for people to install your app, but the critical promotion will only come from you and the mentioned tools. -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth Service registration in Android
Hi All Anybody please respond to my question about the bluetooth service registration and connection with the Bluegiga access server. On Fri, Oct 8, 2010 at 12:10 PM, Ajmer singh ajmer.si...@evontech.comwrote: Hi I am working on a Android app that require a Bluetooth Access Server that try to Discover the Application on Android phone and once connected send the Ads back to the phone. However the access server is not able to discover the Service that i have registered using the BluetoothAdapter listenUsingRfcommWithServiceRecord(BlueToothFriendFinder,MY_UUID ), Please let me know either i have sucessfully register the Bluetooth service or not,Please let me know if anyone has work on this before. Below is the Code packet that i am using : private class AcceptThread extends Thread { private final BluetoothServerSocket mmServerSocket; public AcceptThread() { BluetoothServerSocket tmp = null; try { UUID MY_UUID = UUID.fromString(fa87c0d0-afac-11de-8a39-0800200c9a66); tmp = mBluetoothAdapter.listenUsingRfcommWithServiceRecord(BlueToothFriendFinder,MY_UUID ); } catch (IOException e) { } mmServerSocket = tmp; } public void run() { BluetoothSocket socket = null; while (true) { try { Log.v(Working ,Server Register...); socket = mmServerSocket.accept(); bluetoothFinder.runOnUiThread(new Runnable() { public void run() { Toast.makeText(bluetoothFinder, Connected Connected Conect, Toast.LENGTH_SHORT).show(); } }); } catch (IOException e) { break; } if (socket != null) { manageConnectedSocket(socket); try { mmServerSocket.close(); } catch (IOException e) { e.printStackTrace(); } break; } } } -- *Thanks and Regards Ajmer Singh* -- Thanks and Regards Ajmer Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Market misery !!
On Oct 9, 11:46 am, Yahel kaye...@gmail.com wrote: I am so upset !! You must be new here. but the best exposition tool should normally be the market !! As Fabrizio indicates, not any longer. Same applies to iTunes store, we hear. That's why you see publishers/devs move away from native to mobile web app development, where ever it makes the slightest sense. [Actual question] So how long between two updates to be sure to show up in the just in category ? I think it was twelve days; I've never gone below a couple of weeks to a month and the release popped to the top of the list. Not that it matters much anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: No Texting While driving .....
The Location object returned by the GPS location service often has a speed property set on it as well. On Oct 9, 2:41 pm, Bret Foreman bret.fore...@gmail.com wrote: Simply put, you want to find velocity, v. From the accelerometer you can get dv/dt, which you can integrate to get v. From the GPS you can get the location, x, and dx/dt is also v. So you have two versions of v, one that is fast but tends to drift (from the accelerometer) and one that is slow but steady. This is a perfect use-case for the Kalman filter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AppWidget on receive method and documentation
2Mark: Ummm. AppWidgetProvider is a subclass of BroadcastReceiver, not Service. As such, it has no onStartCommand or onStart. You're probably thinking of onReceive - ditto for that. 2Arnouf: Another reason might be that something else is keeping the device awake. Might be worthwhile to dump wakelocks in adb. Or else it might be the setting to keep screen on while plugged in, which is often enabled for debugging. -- Kostya 09.10.2010 19:00, Mark Murphy пишет: Override onStartCommand() or onStart() in your AppWidgetProvider and figure out what Intent is being used to update the AppWidgetProvider. That should help you narrow down the source (your alarm or the built-in updatePeriodMillis alarm). On Sat, Oct 9, 2010 at 10:45 AM, arnoufarnaud.far...@gmail.com wrote: Hi, I use an AlarmManager to refresh my widget view (the view not the data displayed which are managed by the standard updatePeriodMillis). The AlarmManager is configured to work with RTC. The documentation indicates : Set the alarm type to either ELAPSED_REALTIME or RTC, which will only deliver the alarm when the device is awake. Then set updatePeriodMillis to zero (0). I check that but my method continue to be called even if my screen is OFF (device awake). What's the issue ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Market misery !!
I also had a very unpleasant experience today while uploading the latest update to my application. Here is my app: http://www.cyrket.com/p/android/org.kman.WifiManager/ And this is well, something else: http://www.cyrket.com/p/android/cn.wangmeng.wifi/ The similarity is striking: same icons, same supplemental artwork and dialog layout. But the main window has a slightly different layout, and there have to be differences in the code to support this. I'm not sure what to make of it - is it just imitation, or did someone decompile my app and make some changes? Any thoughts on what seems more likely? -- Kostya 10.10.2010 0:00, JP пишет: On Oct 9, 11:46 am, Yahelkaye...@gmail.com wrote: I am so upset !! You must be new here. but the best exposition tool should normally be the market !! As Fabrizio indicates, not any longer. Same applies to iTunes store, we hear. That's why you see publishers/devs move away from native to mobile web app development, where ever it makes the slightest sense. [Actual question] So how long between two updates to be sure to show up in the just in category ? I think it was twelve days; I've never gone below a couple of weeks to a month and the release popped to the top of the list. Not that it matters much anymore. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Slow initial showing/drawing of Activities when using own Theme
Thank you Dianne, I'll make sure to use the inheritance. But why is it so much faster when not inheriting, not using 'parent=android:Theme'? When using style-inheritance properly: In the beginning i also thought that my code was the slow part in starting up and preventing a quick initial drawing of the activity's content-view. However, I put tons of timing statements in (e.g. i time the onCreate begins and ends and the system's calls to onResume, onStart, onPostResume, etc). All the timing statements indicate that onCreate finishes timely, onPostCreate, onResume, etc. are all called and finished in a timely manner. I see the last timing statement (log of 'onCreateStartTime- System.currentMillis()') in my onResume() implementation in the log, which appears quickly, in a timely manner. Then the activity just sits there for 0.5 - 2 seconds showing the theme's background without the activity's content. After the 0.5 - 2 seconds, the content shows up. I just can't figure out what happens between after the call to onResume and the appearance of the activity's content and why it is slow, even for an activity with hardly any content (a few text- fields, that's all, no large intent-data either). Thanks! On Oct 8, 7:05 pm, Dianne Hackborn hack...@android.com wrote: First, a theme MUST inherit from one of the standard ones. If it doesn't, some things won't work now, some things will break in the future, etc. When an app is being launched for the first time, a preview of it is first shown by constructing a window with the theme from its manifest and showing that. The delay from when that empty window is shown until the actual app is faded in is the time it is taking your app to launch. If you want to reduce that, you need to profile and optimize your app's launch time. On Fri, Oct 8, 2010 at 3:50 PM, Streets Of Boston flyingdutc...@gmail.comwrote: When i create an activity that uses a custom-theme, e.g. android:theme=@style/MyLogonTheme. I create my theme in styles.xml: style name=MyLogonTheme parent=android:Theme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style (note that i have a few more themes and plenty more styles in styles.xml, but they are not in use for this particular activity). When the activity is started brand new (e.g. after the process has just started), it starts VERY slowly: 1. The background (windowBackground) appears quickly, in a timely manner and the activity's 'setContentView' is called almost immediately in the onCreate. 2. However, the activity's content-view (setContentView) finally shows up 0.5 - 2 seconds later (depending on the speed of the phone)! When i remove the 'parent' from MyLogonTheme's definition: style name=MyLogonTheme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style Both the background and the content-view appear quickly! Somehow, including the inheritance from the android:Theme slows things down quite considerably. Why is this the case? Is there a way around it? I looked at the log... no special output that may indicate something... it is just slow. BTW: If i do remove the parent=android:Theme part, things do load/show quickly, but i get quite a few warnings in the log. The warnings complain about layout_height is missing and some ColorStateList with TypedValue (0x2/0x1010059 a=-1) can not be found. They are just warnings... i see no other side effects. If i specify the parent=android:Theme, I don't get these warnings. Can I just remove the parent=android:Theme part and live with the warnings? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.- 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: Market misery !!
Some of the companies I've seen move away from writing full native apps still get listed in the app stores by writing a launcher app. The launcher app just shows the web site in a WebView and lets them get listed in the app stores. On Oct 9, 4:00 pm, JP joachim.pfeif...@gmail.com wrote: On Oct 9, 11:46 am, Yahel kaye...@gmail.com wrote: I am so upset !! You must be new here. but the best exposition tool should normally be the market !! As Fabrizio indicates, not any longer. Same applies to iTunes store, we hear. That's why you see publishers/devs move away from native to mobile web app development, where ever it makes the slightest sense. [Actual question] So how long between two updates to be sure to show up in the just in category ? I think it was twelve days; I've never gone below a couple of weeks to a month and the release popped to the top of the list. Not that it matters much anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Slow initial showing/drawing of Activities when using own Theme
You could try Traceview and see where the time is going: http://developer.android.com/guide/developing/tools/traceview.html On Sat, Oct 9, 2010 at 5:32 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, I'll make sure to use the inheritance. But why is it so much faster when not inheriting, not using 'parent=android:Theme'? When using style-inheritance properly: In the beginning i also thought that my code was the slow part in starting up and preventing a quick initial drawing of the activity's content-view. However, I put tons of timing statements in (e.g. i time the onCreate begins and ends and the system's calls to onResume, onStart, onPostResume, etc). All the timing statements indicate that onCreate finishes timely, onPostCreate, onResume, etc. are all called and finished in a timely manner. I see the last timing statement (log of 'onCreateStartTime- System.currentMillis()') in my onResume() implementation in the log, which appears quickly, in a timely manner. Then the activity just sits there for 0.5 - 2 seconds showing the theme's background without the activity's content. After the 0.5 - 2 seconds, the content shows up. I just can't figure out what happens between after the call to onResume and the appearance of the activity's content and why it is slow, even for an activity with hardly any content (a few text- fields, that's all, no large intent-data either). Thanks! On Oct 8, 7:05 pm, Dianne Hackborn hack...@android.com wrote: First, a theme MUST inherit from one of the standard ones. If it doesn't, some things won't work now, some things will break in the future, etc. When an app is being launched for the first time, a preview of it is first shown by constructing a window with the theme from its manifest and showing that. The delay from when that empty window is shown until the actual app is faded in is the time it is taking your app to launch. If you want to reduce that, you need to profile and optimize your app's launch time. On Fri, Oct 8, 2010 at 3:50 PM, Streets Of Boston flyingdutc...@gmail.comwrote: When i create an activity that uses a custom-theme, e.g. android:theme=@style/MyLogonTheme. I create my theme in styles.xml: style name=MyLogonTheme parent=android:Theme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style (note that i have a few more themes and plenty more styles in styles.xml, but they are not in use for this particular activity). When the activity is started brand new (e.g. after the process has just started), it starts VERY slowly: 1. The background (windowBackground) appears quickly, in a timely manner and the activity's 'setContentView' is called almost immediately in the onCreate. 2. However, the activity's content-view (setContentView) finally shows up 0.5 - 2 seconds later (depending on the speed of the phone)! When i remove the 'parent' from MyLogonTheme's definition: style name=MyLogonTheme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style Both the background and the content-view appear quickly! Somehow, including the inheritance from the android:Theme slows things down quite considerably. Why is this the case? Is there a way around it? I looked at the log... no special output that may indicate something... it is just slow. BTW: If i do remove the parent=android:Theme part, things do load/show quickly, but i get quite a few warnings in the log. The warnings complain about layout_height is missing and some ColorStateList with TypedValue (0x2/0x1010059 a=-1) can not be found. They are just warnings... i see no other side effects. If i specify the parent=android:Theme, I don't get these warnings. Can I just remove the parent=android:Theme part and live with the warnings? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.- 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
Re: [android-developers] Re: Market misery !!
It's been a while since i read the Developer Distribution Agreement, but I'm pretty sure that is this explicitly forbidden in the Android Market. Of course, whether it's enforced (or even enforcible) is another matter. Tom. On 9 October 2010 22:32, Lance Nanek lna...@gmail.com wrote: Some of the companies I've seen move away from writing full native apps still get listed in the app stores by writing a launcher app. The launcher app just shows the web site in a WebView and lets them get listed in the app stores. On Oct 9, 4:00 pm, JP joachim.pfeif...@gmail.com wrote: On Oct 9, 11:46 am, Yahel kaye...@gmail.com wrote: I am so upset !! You must be new here. but the best exposition tool should normally be the market !! As Fabrizio indicates, not any longer. Same applies to iTunes store, we hear. That's why you see publishers/devs move away from native to mobile web app development, where ever it makes the slightest sense. [Actual question] So how long between two updates to be sure to show up in the just in category ? I think it was twelve days; I've never gone below a couple of weeks to a month and the release popped to the top of the list. Not that it matters much anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Exception every time I launch the application
Ya I got that much from the exception, But in which XML ? I could not figure that out that is why I have provided the xml files On Oct 9, 4:00 am, DanH danhi...@ieee.org wrote: Speak of the devil! (Just had this problem myself.) Read carefully the first few lines in yourexceptionstack: Binary XML file line #25: You must supply a layout_height attribute. On Oct 8, 4:42 pm, Pankaj pankajiit...@gmail.com wrote: Hi all, I get anexceptioneverytimeIlaunchtheapplication. Here is the stacktrace for theexception 10-01 14:49:35.321: WARN/WindowManager(61):Exceptionwhen adding starting window 10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_height attribute. 10-01 14:49:35.321: WARN/WindowManager(61): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java: 3468) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3547) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java: 1265) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java: 1191) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.rInflate(LayoutInflater.java:620) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java: 2153) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java: 2207) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java: 1395) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java: 818) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.server.WindowManagerService $H.handleMessage(WindowManagerService.java:8794) 10-01 14:49:35.321: WARN/WindowManager(61): at android.os.Handler.dispatchMessage(Handler.java:99) 10-01 14:49:35.321: WARN/WindowManager(61): at android.os.Looper.loop(Looper.java:123) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.server.WindowManagerService $WMThread.run(WindowManagerService.java:531) I am also posting the XML files I'm using. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/arw_layout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/arw_logo android:layout_width=30px android:layout_height=40px android:layout_alignParentRight=true / LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=center android:layout_alignParentLeft=true TextView android:id=@+id/arw_left android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/ arw_left android:textSize=25sp android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center_vertical / TextView android:id=@+id/arw_title android:layout_width=wrap_content android:layout_height=wrap_content android:minEms=10 android:text=@string/arw_title android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center / TextView android:id=@+id/arw_right android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/ arw_right android:textSize=25sp android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center_vertical / /LinearLayout /RelativeLayout ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle gradient android:startColor=#FF493538 android:centerColor=#FF00 android:endColor=#FF00 android:angle=270 / /shape ?xml
Re: [android-developers] Re: Exception every time I launch the application
I would guess it's the first one, and might be caused by having the namespace declaration on the inner linear layout. You only need the xmlns at the top level. If this doesn't help, look for a layout XML file with missing size around line 25, as the message indicates. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.10.2010 2:01 пользователь Pankaj pankajiit...@gmail.com написал: Ya I got that much from the exception, But in which XML ? I could not figure that out that is why I have provided the xml files On Oct 9, 4:00 am, DanH danhi...@ieee.org wrote: Speak of the devil! (Just had this problem mys... I get anexceptioneverytimeIlaunchtheapplication. Here is the stacktrace for theexception 10-01 14:49:35.321: WARN/WindowManager(61):Exceptionwhen adding starting window 10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: ... I get it only when Ilaunchthe app. After that while browsing through different activities no suchexceptionoccurs -- You received this message because you are subsc... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Tutor for project
Hit youtube. There's heaps of good tutorials/presentations on there ranging from hello world to Romain Guy's List View lectures. Ed On Oct 8, 5:31 am, Mike karl mike.d.k...@gmail.com wrote: Looking for some teaching on a simple calculator app please send rates to mike.d.k...@gmail.com should only be a couple hour job I'm a fast leaner -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Audio in a call
I want to run audio in call duration, which hear from both sides, is there any way to do this ??? please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Audio in a call
On Sat, Oct 9, 2010 at 8:02 PM, mohammad Rukab mohammad.ru...@gmail.com wrote: I want to run audio in call duration, which hear from both sides, is there any way to do this ??? Not really. My understanding is that if the device is in speakerphone mode, you can mux in audio that will be heard through the speaker and will get picked up by the microphone. However, there is no real access to the in-call audio at this time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Exception every time I launch the application
This exception doesn't occur until the problem layout is actually loaded, meaning if it occurs before the first screen comes up it's the layout for the first screen. And the exception is raised when setContentView is done with the problem layout ID. If you step through your code you'll likely see it blow up when setContentView is being done for your first screen. On Oct 9, 5:01 pm, Pankaj pankajiit...@gmail.com wrote: Ya I got that much from the exception, But in which XML ? I could not figure that out that is why I have provided the xml files On Oct 9, 4:00 am, DanH danhi...@ieee.org wrote: Speak of the devil! (Just had this problem myself.) Read carefully the first few lines in yourexceptionstack: Binary XML file line #25: You must supply a layout_height attribute. On Oct 8, 4:42 pm, Pankaj pankajiit...@gmail.com wrote: Hi all, I get anexceptioneverytimeIlaunchtheapplication. Here is the stacktrace for theexception 10-01 14:49:35.321: WARN/WindowManager(61):Exceptionwhen adding starting window 10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_height attribute. 10-01 14:49:35.321: WARN/WindowManager(61): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java: 3468) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3547) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java: 1265) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java: 1191) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.rInflate(LayoutInflater.java:620) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java: 2153) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java: 2207) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java: 1395) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java: 818) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.server.WindowManagerService $H.handleMessage(WindowManagerService.java:8794) 10-01 14:49:35.321: WARN/WindowManager(61): at android.os.Handler.dispatchMessage(Handler.java:99) 10-01 14:49:35.321: WARN/WindowManager(61): at android.os.Looper.loop(Looper.java:123) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.server.WindowManagerService $WMThread.run(WindowManagerService.java:531) I am also posting the XML files I'm using. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/arw_layout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/arw_logo android:layout_width=30px android:layout_height=40px android:layout_alignParentRight=true / LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=center android:layout_alignParentLeft=true TextView android:id=@+id/arw_left android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/ arw_left android:textSize=25sp android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center_vertical / TextView android:id=@+id/arw_title android:layout_width=wrap_content android:layout_height=wrap_content android:minEms=10 android:text=@string/arw_title android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center / TextView android:id=@+id/arw_right android:layout_width=wrap_content
[android-developers] Re: Exception every time I launch the application
Also keep in mind that one occasionally slips up (or Eclipse slips up) and the project is not rebuilt before running. Or you can simply forget which XML is which. Try rebuilding, and verify for yourself which XML is being used for which screen. On Oct 9, 5:01 pm, Pankaj pankajiit...@gmail.com wrote: Ya I got that much from the exception, But in which XML ? I could not figure that out that is why I have provided the xml files On Oct 9, 4:00 am, DanH danhi...@ieee.org wrote: Speak of the devil! (Just had this problem myself.) Read carefully the first few lines in yourexceptionstack: Binary XML file line #25: You must supply a layout_height attribute. On Oct 8, 4:42 pm, Pankaj pankajiit...@gmail.com wrote: Hi all, I get anexceptioneverytimeIlaunchtheapplication. Here is the stacktrace for theexception 10-01 14:49:35.321: WARN/WindowManager(61):Exceptionwhen adding starting window 10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_height attribute. 10-01 14:49:35.321: WARN/WindowManager(61): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java: 3468) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3547) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java: 1265) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java: 1191) 10-01 14:49:35.321: WARN/WindowManager(61): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.rInflate(LayoutInflater.java:620) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 10-01 14:49:35.321: WARN/WindowManager(61): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java: 2153) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java: 2207) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java: 1395) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java: 818) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.server.WindowManagerService $H.handleMessage(WindowManagerService.java:8794) 10-01 14:49:35.321: WARN/WindowManager(61): at android.os.Handler.dispatchMessage(Handler.java:99) 10-01 14:49:35.321: WARN/WindowManager(61): at android.os.Looper.loop(Looper.java:123) 10-01 14:49:35.321: WARN/WindowManager(61): at com.android.server.WindowManagerService $WMThread.run(WindowManagerService.java:531) I am also posting the XML files I'm using. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/arw_layout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/arw_logo android:layout_width=30px android:layout_height=40px android:layout_alignParentRight=true / LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=center android:layout_alignParentLeft=true TextView android:id=@+id/arw_left android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/ arw_left android:textSize=25sp android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center_vertical / TextView android:id=@+id/arw_title android:layout_width=wrap_content android:layout_height=wrap_content android:minEms=10 android:text=@string/arw_title android:paddingLeft=10dp android:paddingRight=10dp android:gravity=center / TextView android:id=@+id/arw_right android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/ arw_right android:textSize=25sp android:paddingLeft=10dp
[android-developers] Re: Market misery !!
Sure, and that's been a major nuisance ever since the first of it's kind. I believe BoA took that honor, wayback. I am referring to fully functional, for-mobile apps that emphasize dynamic web app development over native. On Oct 9, 2:32 pm, Lance Nanek lna...@gmail.com wrote: Some of the companies I've seen move away from writing full native apps still get listed in the app stores by writing a launcher app. The launcher app just shows the web site in a WebView and lets them get listed in the app stores. On Oct 9, 4:00 pm, JP joachim.pfeif...@gmail.com wrote: On Oct 9, 11:46 am, Yahel kaye...@gmail.com wrote: I am so upset !! You must be new here. but the best exposition tool should normally be the market !! As Fabrizio indicates, not any longer. Same applies to iTunes store, we hear. That's why you see publishers/devs move away from native to mobile web app development, where ever it makes the slightest sense. [Actual question] So how long between two updates to be sure to show up in the just in category ? I think it was twelve days; I've never gone below a couple of weeks to a month and the release popped to the top of the list. Not that it matters much anymore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding Gallery3D application
i want find the documentation about Gallery3D source too.please help me if any. On 9月16日, 下午9时59分, Girish H T htgir...@gmail.com wrote: Hello all, I was going through the code on Gallery3D from cooliris. Is there any detailed level documentation that is available on internet ? I want details like how the application accesses 3D libraries sitting @ native side using android frame work. What is the corresponding framework i need to refer for Gallery3D ? Please give me some details. Regards Girish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Slow initial showing/drawing of Activities when using own Theme
Thank you, Mark. I'll try that one out. Still wondering why i don't see this slow down at all when not using theme-inheritance... :) But, who knows, not noticing the slow down may just be perception, because things could happen in a somewhat different order. On Oct 9, 5:36 pm, Mark Murphy mmur...@commonsware.com wrote: You could try Traceview and see where the time is going: http://developer.android.com/guide/developing/tools/traceview.html On Sat, Oct 9, 2010 at 5:32 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, I'll make sure to use the inheritance. But why is it so much faster when not inheriting, not using 'parent=android:Theme'? When using style-inheritance properly: In the beginning i also thought that my code was the slow part in starting up and preventing a quick initial drawing of the activity's content-view. However, I put tons of timing statements in (e.g. i time the onCreate begins and ends and the system's calls to onResume, onStart, onPostResume, etc). All the timing statements indicate that onCreate finishes timely, onPostCreate, onResume, etc. are all called and finished in a timely manner. I see the last timing statement (log of 'onCreateStartTime- System.currentMillis()') in my onResume() implementation in the log, which appears quickly, in a timely manner. Then the activity just sits there for 0.5 - 2 seconds showing the theme's background without the activity's content. After the 0.5 - 2 seconds, the content shows up. I just can't figure out what happens between after the call to onResume and the appearance of the activity's content and why it is slow, even for an activity with hardly any content (a few text- fields, that's all, no large intent-data either). Thanks! On Oct 8, 7:05 pm, Dianne Hackborn hack...@android.com wrote: First, a theme MUST inherit from one of the standard ones. If it doesn't, some things won't work now, some things will break in the future, etc. When an app is being launched for the first time, a preview of it is first shown by constructing a window with the theme from its manifest and showing that. The delay from when that empty window is shown until the actual app is faded in is the time it is taking your app to launch. If you want to reduce that, you need to profile and optimize your app's launch time. On Fri, Oct 8, 2010 at 3:50 PM, Streets Of Boston flyingdutc...@gmail.comwrote: When i create an activity that uses a custom-theme, e.g. android:theme=@style/MyLogonTheme. I create my theme in styles.xml: style name=MyLogonTheme parent=android:Theme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style (note that i have a few more themes and plenty more styles in styles.xml, but they are not in use for this particular activity). When the activity is started brand new (e.g. after the process has just started), it starts VERY slowly: 1. The background (windowBackground) appears quickly, in a timely manner and the activity's 'setContentView' is called almost immediately in the onCreate. 2. However, the activity's content-view (setContentView) finally shows up 0.5 - 2 seconds later (depending on the speed of the phone)! When i remove the 'parent' from MyLogonTheme's definition: style name=MyLogonTheme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style Both the background and the content-view appear quickly! Somehow, including the inheritance from the android:Theme slows things down quite considerably. Why is this the case? Is there a way around it? I looked at the log... no special output that may indicate something... it is just slow. BTW: If i do remove the parent=android:Theme part, things do load/show quickly, but i get quite a few warnings in the log. The warnings complain about layout_height is missing and some ColorStateList with TypedValue (0x2/0x1010059 a=-1) can not be found. They are just warnings... i see no other side effects. If i specify the parent=android:Theme, I don't get these warnings. Can I just remove the parent=android:Theme part and live with the warnings? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] Re: Follow up for the active install count problem
On Sat, Oct 9, 2010 at 1:34 AM, Doug beafd...@gmail.com wrote: Please explain to me how exactly you know what normal is given that the stat has a long reputation for being inaccurate over the past few months. :-) I'm going for what the numbers were before this whole fiasco started and we started seeing the numbers plummeting. Truly normal would be matching Google Checkout, but I doubt that will ever happen (if it even ever did before). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] QuickContact works fine on 2.2 but not on 2.1
I have a ListView where I want to show the QuickContact (like in the default Contacts android app when you click on the photo of a contact). It works fine on my Nexus One 2.2 or the emulator with avd 2.2, but doesn't work on my Samsung Galaxy S 2.1update1 or emulator 2.1. On 2.1, I'm getting the error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act= com.android.contacts.action.QUICK_CONTACT dat=content://contacts/people/2177 This is the call in the code: public final void onItemClick(final AdapterView? parent, final View view, final int position, final long id) { ContactSummary summary = (ContactSummary) parent.getItemAtPosition(position); // Quick Contact Badge ContentValues values = new ContentValues(); values.put(Contacts.People.NAME, summary.formattedName); Uri uri = getContentResolver().insert(Contacts.People.CONTENT_URI, values); ContactsContract.QuickContact.showQuickContact(this.getApplicationContext(), view, uri, ContactsContract.QuickContact.MODE_MEDIUM, null); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Checkbox are not getting selected
On Fri, Oct 8, 2010 at 10:32 PM, pramod.deore deore.pramo...@gmail.comwrote: but now I don't have reference to checkBox, then how to check whether it is selected or not? Look at the documentation for ListView ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en