Re: [android-developers] Re: App Inventor to Market
Johnas, Time spent and number of launches are poor metrics for app quality. Maybe it makes some sense for games. But consider a car navigation app, or an Office document viewer - their use time/count is dependent on factors that have nothing to do with how much users like them. I have a data backup program on my phone that I liked well enough to pay for. Yet it runs in automatic mode just once a day and only for a few seconds. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 17.07.2010 3:41 пользователь Jonas Petersson jonas.peters...@xms.se написал: On 07/16/2010 05:35 PM, String wrote: On 16 July, 16:14, Maps.Huge.Info (Maps API Guru)cor.. +1 From my analysis, the key metric in market position is acceleration, not total downloads, c... Since this is all speculation, perhaps there is an even simpler method: It is obvious that the phone reports back what is still installed now and then (presumably when it looks for updates). To also report back how many times that application has been (manually) launched and/or number of seconds on screen since last report wouldn't be particularly hard to implement (though it probably would trigger a bit of paranoia). I'm not saying it DOES, but such stats might be a reasonably fair indication of actual popularity. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android as Desktop OS
Hi There, I dont know if this is a vorrect place, but i could not find my answers and i believe there and much more expertised people here, then anywhere else. I want my Desktop to boot to Android OS. I know it can be done and also some netbooks available with Android OS installed. Can some one please help me in how can i install Android OS to a Full Desktop Machine, and how i can i set it up boot to it. I would be thankful, if you could help me out. Thanks 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: Udp +Tcp connection in Android
Carlos Silva thanks for your answer. I sorry wasn't clearly enough. I want to open udp connection on android with a remote (pc) java server and after getting some packet to switch to tcp connection (open tcp connection between them) I have down it with pc java client and i wand to do it with android client. All the tutorial that I've found on the internet is for tcp connection only or udp only but never found some mixed between them and I not yet know android to know if it even possible... thanks. On Jul 16, 6:52 pm, Carlos Silva r3...@r3pek.org wrote: On Fri, Jul 16, 2010 at 16:46, xuxu shlomitmay...@gmail.com wrote: Hi, I'm newbie with android. I wanted to ask if there is a possibility to create udp connection and then change to tcp connection while the emulator is client and the server's code is java. all I found at the web is or tcp connection or udp but never a mixed between them. someone tried it before? That's not possible. Not in Java, nor in Android, not even in any OS. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Udp +Tcp connection in Android
AFAIK, there's not such thing as a UDP connection. However, if you've done this before in Java, what is the problem you are having doing it on Android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Seems Android Market statistics go wrong again
How annoying. Mine have dropped around 15%. And I'd just been boasting to my friends about a certain figure I'd reached - I'll have to do it all again in a month or so 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
Re: [android-developers] Re: Best way to logout each time the application/task goes to background
Why do you need to force the user to login again just because their personal workflow involved starting an activity in a different 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] How to uninstall application?
Hi, there I'm now implementing an app management tool, but I don't know how to uninstall an application using SDK? Could anyone tell me this? Thanks a lot Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: system lock up and restarts when I start and stop my app.
I had a similar situation with one of my apps, not identical but maybe close enough to be of help. I eventually tracked it down to a race condition between OpenGL and my own code. I fixed it by adding the Java volatile modifier to all variables accessed in the onDrawFrame handler. I don't know if your game uses OpenGL, but if it does, that's something to try. String On 17 July, 01:49, Marc gobl...@gmail.com wrote: I put a copy of the log here: http://www.catglo.com/log On Jul 16, 5:45 pm, Marc gobl...@gmail.com wrote: My device has a standard build. Its a t-mobile G1. I am only not using any extras. Just a basic 1.6 app. here is my log, I removed the lines which my program spits out. 07-16 17:39:09.097: INFO/ActivityManager(74): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.catglo.beginerflashlightpro/.BeginnerFlashlightPro } 07-16 17:39:09.218: INFO/ActivityManager(74): Start proc com.catglo.beginerflashlightpro for activity com.catglo.beginerflashlightpro/.BeginnerFlashlightPro: pid=626 uid=10034 gids={1015} 07-16 17:39:09.268: INFO/jdwp(626): received file descriptor 20 from ADB 07-16 17:39:09.768: DEBUG/ddm-heap(626): Got feature list request 07-16 17:39:11.648: DEBUG/dalvikvm(626): Trying to load lib /system/ lib/libsoundpool.so 0x0 07-16 17:39:12.067: DEBUG/dalvikvm(626): Added shared lib /system/lib/ libsoundpool.so 0x0 07-16 17:39:19.138: WARN/ActivityManager(74): Launch timeout has expired, giving up wake lock! 07-16 17:39:19.318: DEBUG/dalvikvm(626): GC freed 3074 objects / 228504 bytes in 3238ms 07-16 17:39:20.028: WARN/ActivityManager(74): Activity idle timeout for HistoryRecord{4350b710 com.catglo.beginerflashlightpro/.BeginnerFlashlightPro} 07-16 17:39:21.417: INFO/ActivityManager(74): Displayed activity com.catglo.beginerflashlightpro/.BeginnerFlashlightPro: 12253 ms (total 215427 ms) 07-16 17:39:24.968: INFO/ActivityManager(74): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.catglo.beginerflashlightpro/.BeginnerFlashlightPro } 07-16 17:39:35.098: WARN/ActivityManager(74): Launch timeout has expired, giving up wake lock! 07-16 17:39:36.228: WARN/ActivityManager(74): Activity idle timeout for HistoryRecord{4335a6e8 com.catglo.beginerflashlightpro/.BeginnerFlashlightPro} 07-16 17:39:44.067: INFO/ActivityManager(74): Displayed activity com.catglo.beginerflashlightpro/.BeginnerFlashlightPro: 18190 ms (total 18190 ms) 07-16 17:39:52.088: DEBUG/dalvikvm(137): GC freed 497 objects / 32488 bytes in 8807ms 07-16 17:40:05.768: WARN/WindowManager(74): Key dispatching timed out sending to com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro 07-16 17:40:05.968: WARN/WindowManager(74): Dispatch state: {{KeyEvent{action=0 code=4 repeat=0 meta=0 scancode=158 mFlags=8} to Window{433fbf20 com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro paused=false} @ 1279327200295 lw=Window{433fbf20 com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro paused=false} lb=android.os.binderpr...@4333e578 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{433fbf20 com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro paused=false}}} 07-16 17:40:05.978: WARN/WindowManager(74): Current state: {{KeyEvent{action=1 code=4 repeat=0 meta=0 scancode=158 mFlags=8} to Window{433fbf20 com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro paused=false} @ 1279327205972 lw=Window{433fbf20 com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro paused=false} lb=android.os.binderpr...@4333e578 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{433fbf20 com.catglo.beginerflashlightpro/ com.catglo.beginerflashlightpro.BeginnerFlashlightPro paused=false}}} 07-16 17:40:09.158: WARN/ActivityManager(74): Activity pause timeout for HistoryRecord{4335a6e8 com.catglo.beginerflashlightpro/.BeginnerFlashlightPro} 07-16 17:40:16.538: INFO/ActivityManager(74): ANR in process: com.catglo.beginerflashlightpro (last in com.catglo.beginerflashlightpro) 07-16 17:40:16.538: INFO/ActivityManager(74): Annotation: keyDispatchingTimedOut 07-16 17:40:16.538: INFO/ActivityManager(74): CPU usage: 07-16 17:40:16.538: INFO/ActivityManager(74): Load: 5.89 / 4.66 / 2.36 07-16 17:40:16.538: INFO/ActivityManager(74): CPU usage from 12672ms to 7421ms ago: 07-16 17:40:16.538: INFO/ActivityManager(74): system_server: 13% = 1% user + 11% kernel / faults: 759 minor 148 major 07-16 17:40:16.538: INFO/ActivityManager(74): com.catglo.beginerflashlightpro: 0% = 0% user + 0% kernel / faults: 142 minor 11 major 07-16 17:40:16.538:
[android-developers] startActivivityForResult and onResult From a view
I started an Activity from my view with startActivityForResult using ((Activity)getContext()).startActivityForResult(intent, xxx); but I don't receive the result in onActivityResult in the view (As expected) But I receive it in the activity of the view. Is there anyway that I can receive the result on my view? I need the result in my view -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 reporting wrong app size
Um, no. Copy protection doubles the size of the download - this is what the Market is reporting - but once installed, it doesn't take double space. Note, however, that the handset does still need the free RAM at install time to deal with the double-size APK. String On 16 July, 19:48, Bob Kerns r...@acm.org wrote: If you have copy protection turned on, your app actually DOES take 2x the .apk size when installed. This is just one of many drawbacks to the copy protection feature. On Jul 16, 7:27 am, H9kDroid htc@gmail.com wrote: On Jul 8, 4:47 am, Stephen Lebed srle...@gmail.com wrote: I've just released an update to my app and the apk file is 3.5mb on my system. It is reported as 3.5mb in the developer console. But in the market it is showing up as 7.02mb. I'm now getting comments that that app is too big and I feel people may not purchase it if they think it will take up 7mb of space. Is anyone else seeing this problem? I have the same problem, It reports the size exactly 2 times bigger then the size I uploaded just as your. And I cant find the app with my comment downloader, my old once works but not this new updated app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App Inventor to Market
Privet Kostya, On 07/17/2010 08:09 AM, Kostya Vasilyev wrote: Time spent and number of launches are poor metrics for app quality. Maybe it makes some sense for games. Well, quality is not at all what I was after, popularity more so. There certainly are apps that automatically start a service at boot time and perform their splendid task that will not show up at all for the measurement I suggested. But consider a car navigation app, or an Office document viewer - their use time/count is dependent on factors that have nothing to do with how much users like them. When compared to alternative applications for the same task, those indicators should still be quite relevant. Launching nav A more often or using it for longer than than nav app B clearly indicates that which one I prefer even though I have both installed. Part of the reason I brought it up is that I think it would be a good thing for the user to know about - a bit like the Battery stats, this would indicate whether an app is mostly just wasting storage space since I have not actually made any use of it for XXX days. The system could quite easily keep stats on this, but writing an app for it isn't that easy. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Blowfish cypher...
As subject... Is there a way to use blowfish cypher to encrypt a password using android? On JavaME I do it using Bouncy Castle, how to do it on android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best way to logout each time the application/task goes to background
Hello, I also do this, BUT I do not put it into every single activity. What I do is create a Handler at application level and a time check object. The handler fires every say 10 seconds and checks the time object. If it matches what I need I broadcast an event across my entire application. Each activity then registers whether or not they need to be notified of this broadcast, so they can take what ever action they require. Hope this helps. Regards Anthoni On Jul 17, 3:43 am, Zsolt Vasvari zvasv...@gmail.com wrote: 1) This is not the best option, at least not without option 2, as the user can still leave without having the opportunity to log out, for example to answer a call. 2) I do this, it's a bit of a pain as I need to check the timeout in every activity, and I have at least a couple of dozens. So it's a bit of a maintanence issue. I set my timeout to, I think, 10 seconds. Long enough, so if the user accidentally presses the home button, they can get back in quickly. On Jul 17, 3:40 am, Streets Of Boston flyingdutc...@gmail.com wrote: You have no control over the application and/or activity life cycle. This will make is very hard to determine when the user 'exits' the app. I would do this: 1. Consider an explicit 'log-out' option for your users. 2. Add a time-out to your login-sessions. Refresh the session (time- out) when the user interacts with your app/server. But when the user hasn't interacted with your app/server for a given amount of time, the user's session will have had a time-out and this then would require the user to login again. On Jul 16, 4:09 am, Kim D. kdame...@gmail.com wrote: Hello, I have an application which requires a login at the beginning (this is the first activity). When the user logs in, I keep his credentials in the application (I extended android.application to add a field called 'key'). I would like to clear this field from memory (from application instance) an go back to the login activity. I see the following possibilities: - Add a broadcast receiver to catch all possible event (call, click on menu, click on back, lock the phone ...) which clear the key field and launch the login activity - Use clearTaskOnLaunch for all activities except the login activity. But then until my application takes the focus again the key stays in the application object. (It seems it doesn't work with the go back button, maybe I need to use no history also) - Detect for each activity in all onPause or onStop events when application will leave the foreground to clear the key field and launch the login activity The best would be to have a kind of OnPause method at application level but I think it doesn't exist I would appreciate any help on this problem. ps: I already posted it once but never saw it on the discussions list. Cheers, Kim- 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] Re: App Inventor to Market
God Dag Jonas, When compared to alternative applications for the same task Right, but how do you come up with alternative applications, given the variety of apps? There are categories defined for Android Market apps, but they are quite broad. It would be possible to define more categories, but I sincerely hope there will be apps that don't fit any existing category. Even apps that seem to fit in the same category (say, social) can vary quite a bit in their usage patterns. Just playing Devil's advocate here. Like your idea for showing apps that haven't been used for a white. It's like IRL - if you find something you haven't needed for a few years, you can throw it away ;) -- Kostya 17.07.2010 11:46, Jonas Petersson пишет: Privet Kostya, On 07/17/2010 08:09 AM, Kostya Vasilyev wrote: Time spent and number of launches are poor metrics for app quality. Maybe it makes some sense for games. Well, quality is not at all what I was after, popularity more so. There certainly are apps that automatically start a service at boot time and perform their splendid task that will not show up at all for the measurement I suggested. But consider a car navigation app, or an Office document viewer - their use time/count is dependent on factors that have nothing to do with how much users like them. When compared to alternative applications for the same task, those indicators should still be quite relevant. Launching nav A more often or using it for longer than than nav app B clearly indicates that which one I prefer even though I have both installed. Part of the reason I brought it up is that I think it would be a good thing for the user to know about - a bit like the Battery stats, this would indicate whether an app is mostly just wasting storage space since I have not actually made any use of it for XXX days. The system could quite easily keep stats on this, but writing an app for it isn't that easy. Best / Jonas -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to let OpenCore can make files under AVI parser node folder
Dear Sir, I create aviparsernode folder by coping from MP4 parser node folder under /external/opencore/nodes/. But when I type make command under /external/opencore/build_config/opencore_dynamic/. The files under aviparsernode folder are not compilied. Does any one knows how to let OpenCore to make files under aviparsernode folder? Thanks! Best Regards, sunshine_uyl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 uninstall appl ication?
i am interest in this too 在 2010-7-17 下午2:07,Alex Xin xinxi...@gmail.com编写: Hi, there I'm now implementing an app management tool, but I don't know how to uninstall an application using SDK? Could anyone tell me this? Thanks a lot Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Forwarding ranges of ports to the Android emulator
Hi! I'm working on a C++ library which uses TCP to estabilish communications with the LAN. I've been able to use it without problems on a real device with Android, but I'm not able to use it on the emulator. I suppose it is because the emulator doesn't have access to my LAN. I read the documentation, and, as far as I can understand, it is necessary to forwards ports for incoming connections with the redir command. Unfortunately my library uses many different ports randomly, jumping from one to the other as threads are spawned. So, would it be possible to forward entire ranges of ports instead of single ports? Thanks for any advice! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App Inventor to Market
On 07/17/2010 10:48 AM, Kostya Vasilyev wrote: When compared to alternative applications for the same task Right, but how do you come up with alternative applications, given the variety of apps?[...] Yeah, it's hardly trivial, but hey, this is Google - if anyone can find relations in statistics, it's them... Also, for Google (Ad-based income) time on screen should be a very important factor. Hmm, there's another interesting thought: with AdMob being part of Google it would be easy to include shown ads in the popularity equation too - hardly fair, though. Like your idea for showing apps that haven't been used for a while. It's like IRL - if you find something you haven't needed for a few years, you can throw it away ;) Good to agree ;-). Time to lobby for a new feature... / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App Inventor to Market
That's a very high percentage compared to mine, obviously. But I since cannot see your apps here in Singapore, I can't even say what they do, so what I will say may or may not apply to you: for simpler apps, a high rating probably ensures that you will keep the app (favorite comment It does what it says). For an app like mine (a personal finance app) or games, in particular, there is really no way to know if it will suit your needs until you try it. Bottom line is that I am actually very satisfied that 40% of the people kept it installed and rated it 4.31, as shown on AppBrain today. What I am trying to say is that I really hope Google doesn't put too much weight on install percentage, as that would vary greatly across different types of apps. On Jul 17, 11:49 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: We have 68% for Radar Now! and 58% for What Zip Code? -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App Inventor to Market
Jonas, Still think it would work well for games / social apps, but for productivity apps it can actually be the opposite of what's intended. Consider two productivity apps, one of which helps get the same work done in half the time. Which one of them deserves a ratings boost? -- Kostya 17.07.2010 13:23, Jonas Petersson пишет: On 07/17/2010 10:48 AM, Kostya Vasilyev wrote: When compared to alternative applications for the same task Right, but how do you come up with alternative applications, given the variety of apps?[...] Yeah, it's hardly trivial, but hey, this is Google - if anyone can find relations in statistics, it's them... Also, for Google (Ad-based income) time on screen should be a very important factor. Hmm, there's another interesting thought: with AdMob being part of Google it would be easy to include shown ads in the popularity equation too - hardly fair, though. Like your idea for showing apps that haven't been used for a while. It's like IRL - if you find something you haven't needed for a few years, you can throw it away ;) Good to agree ;-). Time to lobby for a new feature... / Jonas -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: 回复: [android-developers] How to uninstall application?
I don't think you can uninstall an app without user confirmation. I found a couple of other posts about this that might be useful to you here: http://android.amberfog.com/?p=98 http://android.amberfog.com/?p=98 http://osdir.com/ml/AndroidDevelopers/2009-08/msg01409.html http://osdir.com/ml/AndroidDevelopers/2009-08/msg01409.htmlHope it helps! Yuvi 2010/7/17 Taoyi Guo taoyi@gmail.com i am interest in this too 在 2010-7-17 下午2:07,Alex Xin xinxi...@gmail.com编写: Hi, there I'm now implementing an app management tool, but I don't know how to uninstall an application using SDK? Could anyone tell me this? Thanks a lot Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.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
Re: [android-developers] Re: Seems Android Market statistics go wrong again
Yes. It dropped again about 15%! On Sat, Jul 17, 2010 at 9:59 AM, Neilz neilhorn...@gmail.com wrote: How annoying. Mine have dropped around 15%. And I'd just been boasting to my friends about a certain figure I'd reached - I'll have to do it all again in a month or so 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Best way to logout each time the application/task goes to background
@Frank weis: my application requires a high level of security, so if the user leaves it I don't want that someone else who would use the android mobile can open it without having to log in. Thanks for all your replies it helps a lot ! I think i will go for the timeout method. It's a good point that if the user clicks on home by mistake and wants to come back to the application in a short time period he doesn't need to log in again. Anthoni and Zsolt Vasvari can you describe a bit more your solutions please ? Thanks, Kim On Sat, Jul 17, 2010 at 10:42 AM, Anthoni anthoni.gard...@gmail.com wrote: Hello, I also do this, BUT I do not put it into every single activity. What I do is create a Handler at application level and a time check object. The handler fires every say 10 seconds and checks the time object. If it matches what I need I broadcast an event across my entire application. Each activity then registers whether or not they need to be notified of this broadcast, so they can take what ever action they require. Hope this helps. Regards Anthoni On Jul 17, 3:43 am, Zsolt Vasvari zvasv...@gmail.com wrote: 1) This is not the best option, at least not without option 2, as the user can still leave without having the opportunity to log out, for example to answer a call. 2) I do this, it's a bit of a pain as I need to check the timeout in every activity, and I have at least a couple of dozens. So it's a bit of a maintanence issue. I set my timeout to, I think, 10 seconds. Long enough, so if the user accidentally presses the home button, they can get back in quickly. On Jul 17, 3:40 am, Streets Of Boston flyingdutc...@gmail.com wrote: You have no control over the application and/or activity life cycle. This will make is very hard to determine when the user 'exits' the app. I would do this: 1. Consider an explicit 'log-out' option for your users. 2. Add a time-out to your login-sessions. Refresh the session (time- out) when the user interacts with your app/server. But when the user hasn't interacted with your app/server for a given amount of time, the user's session will have had a time-out and this then would require the user to login again. On Jul 16, 4:09 am, Kim D. kdame...@gmail.com wrote: Hello, I have an application which requires a login at the beginning (this is the first activity). When the user logs in, I keep his credentials in the application (I extended android.application to add a field called 'key'). I would like to clear this field from memory (from application instance) an go back to the login activity. I see the following possibilities: - Add a broadcast receiver to catch all possible event (call, click on menu, click on back, lock the phone ...) which clear the key field and launch the login activity - Use clearTaskOnLaunch for all activities except the login activity. But then until my application takes the focus again the key stays in the application object. (It seems it doesn't work with the go back button, maybe I need to use no history also) - Detect for each activity in all onPause or onStop events when application will leave the foreground to clear the key field and launch the login activity The best would be to have a kind of OnPause method at application level but I think it doesn't exist I would appreciate any help on this problem. ps: I already posted it once but never saw it on the discussions list. Cheers, Kim- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Blowfish cypher...
Hi, I used blowfish encryption on my android application. I don't know why but the blowfish encryption has been commented out on the bouncy castle library on android. So I had to take the bouncy castle sources and change the provider name from BC to BC2 and rename the package name into bouncycastle2. Otherwise since it was already on the android it was not possible to use it. Then I added this into my application as a new jar and it works fine ! Hope this helps, Kim On Sat, Jul 17, 2010 at 9:53 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: As subject... Is there a way to use blowfish cypher to encrypt a password using android? On JavaME I do it using Bouncy Castle, how to do it on android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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: Using back button in android.
Override it? 99 out of 100 times, that is a very bad idea. The users really do semi-intuitively expect Back to call finish() (not that they know this API) to make the current activity go away, taking them to the next one on the Activity Stack. So why do you want to do this? On Jul 15, 6:24 am, Ajmer Singh ajmersing...@gmail.com wrote: I am a new to android development I want to override the default back button operation in android,please let me know how i can do this in code. -- 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: progressive video play over https
But why even bother? If Dave Sparks tells us it is not supported, we really should be able to trust that he knows what he is talking about: take the hint from his email address domain! On Jul 15, 7:12 pm, Jenus Dong jenus.ne...@gmail.com wrote: try use media player to play the https url, find out. the manifest of media player should include the filter like, data android:scheme=http / data android:scheme=https / or some permission problem, anybody have more experience in this field? On Fri, Jul 16, 2010 at 5:02 AM, Dave Sparks davidspa...@android.comwrote: The media player currently does not support https. On Jul 13, 7:18 pm, zhao zhaoyang...@gmail.com wrote: I am trying to stream video over https from Android browser. If the video url is http, everything works fine. But when I switch the url to https, no video can be played. I tried 2 methods to stream over http/ https through Android browser. 1. Use html5 Video tag on browser (Android 2.0+ device) and call video.play( ) from javascript. - With Https url. Browser launches media player and the player displays alert dialog saying “Can’t play video”. I captured the client TCP traffic and found no SSL handshake between client and server. It looks like the player pops up the alert on any https link. - With Http url. Browser launches media player and the player can stream the video successfully. 2. Use direct link of html a tag on browser and click the link - With Https url. Browser downloads the video file without launching the player. The browser seems not try to load any https link in media player. - With Http url. Browser launches media player and the player can stream the video successfully. So the above tests make me think Android media player cannot play media from any https url. Is it the expected behavior? Can someone give me clues? Thanks for helping! Regards, Zhao -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App Inventor to Market
Kostya, On 07/17/2010 11:36 AM, Kostya Vasilyev wrote: Still think it would work well for games / social apps, but for productivity apps it can actually be the opposite of what's intended. Consider two productivity apps, one of which helps get the same work done in half the time. Which one of them deserves a ratings boost? Theoretically, this is indeed bad if you only measure on-screen time, but if we also assume that it is started once per task you have to do (and assume the number of task for a productivity type of app is endless) you will most likely compensate by launching it more times. However, in reality I suspect you would be unable to not notice everyone else ranting and raving about a productivity app that is twice as fast as what you are using and hence you would switch anyway... ;-) Still, we're talking mobile phones here (for now anyway), and I suspect there is time limit to how much you use it in a day (basically battery). You are unlikely to spend very much time producing Word documentsm Powerpoints and Excel sheets, right? As for my own type of productivity (coming back to the subject of the thread?), I'd just launch ConnectBot as I settle on the beach next to the pub in the morning, login to my work computer and keep coding all day, right? Cheers / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: OpenGL ES Java binding not supported on Nexus One + Android 2.2?
What does it do on the Emulator when building and running on Android version 2.2? Or on previous versions? On Jul 16, 8:11 am, devi prasad dpras...@gmail.com wrote: My Nexus One is updated with Android version 2.2 (build number FRF91). However, when I try to use the OpenGL ES Java binding, I see the following: D/libEGL (15206): loaded /system/lib/egl/libGLES_android.so D/libEGL (15206): loaded /system/lib/egl/libEGL_adreno200.so D/libEGL (15206): loaded /system/lib/egl/libGLESv1_CM_adreno200.so D/libEGL (15206): loaded /system/lib/egl/libGLESv2_adreno200.so E/libEGL (15206): called unimplemented OpenGL ES API E/libEGL (15206): called unimplemented OpenGL ES API The last two lines are frustrating. To state the obvious, I have set up my manifest file: uses-feature android:glEsVersion=0x0002/ uses-sdk android:minSdkVersion=8/ I use GLSurfaceView and have only one line in onDrawFrame: GLES20.glCreateShader(GLES20.GL_VERTEX_SHADER); What's that I'm really missing something here? dp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Udp +Tcp connection in Android
Actually, it is possible, but it would require custom code for both server and client dropping the UDP connection and starting up a corresponding TCP connection on agreed upon ports -- but why? The request sounds like it can only be based on a misunderstanding; not just of Android, but of network protocols. On Jul 16, 8:52 am, Carlos Silva r3...@r3pek.org wrote: On Fri, Jul 16, 2010 at 16:46, xuxu shlomitmay...@gmail.com wrote: Hi, I'm newbie with android. I wanted to ask if there is a possibility to create udp connection and then change to tcp connection while the emulator is client and the server's code is java. all I found at the web is or tcp connection or udp but never a mixed between them. someone tried it before? That's not possible. Not in Java, nor in Android, not even in any OS. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Need help - Android mkdir(/sdcard/) fails on Frayo
Which can be (should be) done with another method from the same android.os.Environment class, namely, getExternalStorageState(). Hence the sample code at http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory%28%29 using both. On Jul 16, 8:54 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jul 16, 2010 at 11:28 AM, Arun arun.tripa...@gmail.com wrote: I have an application that needs to write few logs files into the SDCARD. It used to work fine in Donut and Éclair builds, however, when tried on Frayo build it didn’t work. The File.mkdir(“/sdcard/file.txt”) API fails in the Java layer returning false. Never hard-wire paths like that -- use Environment.getExternalStorageDir(). You don't need to make that directory, since it already exists, so delete the mkdir() call. Also, make sure your Android 2.2 environment has an SD card (image if you are running this in the emulator). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 give a rubber-band/bounce effect to ListView (similar to iPhone)
Hi, I want a ListView to have rubber-band (or bounce) effect while scrolling. Just similar to iPhone lists. -- UD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Decent Android reference book?
You must have either an outdated, slow computer or a very bad network connection, if you find looking up faster in Java in a Nutshell (a fine book, though). I have had no such problem with the online reference, yet my connection is average DSL, my computer slightly below average memory and CPU speed. Also, I have to disagree that the online reference is not very good. True, I have found some APIs woefully underdocumented there, but I am very pleased with the amount of effort they put into documenting the most fundamental APIs -- though I went on record in one of these Google Android groups complaining about the strong appearance of contradiction in the reference concerning Activity Lifecycle. BTW: the Sun Java reference left many things not explained very well too, especially those changes Sun must have been embarrassed to make, such as deprecating Thread.stop(), Properties.save() or replacing AWT with Swing; they just could not bring themselves to admit that to explain the new ways well, they had to admit the faults of the old. An even more glaring failure to explain in the Java docs concerns the entire HTTP functionality of java.net: almost everyone uses the Apache classes for this instead -- with good reason. Apache's (org.apache.http) really is much better. So no, Java's online docs are not superior to Android's. They just have different faults. Once you get used to Android's online reference, which I hope you will, then you will see they are not so bad. This is a good thing, since there really is nothing else comparable. That said, there is one alternative I have long considered exploring: Motorola's documentation for their own spinoff of the Android SDK: Motodev Studio for Android. You might give that a try. Their documentation might please you more. On Jul 16, 5:17 am, DanH danhi...@ieee.org wrote: I've looked at the online reference and it's not very good. Cuter than the Sun Java stuff, but not as comprehensive and doesn't explain things very well. And it's a lot slower referencing an online reference than, say, looking up something in Java in a Nutshell. One thing that seems to be missing all around is images of the various widgets. One of the books (I forget which one -- don't have them here with me now) has virtually no images at all, while the other has precious few. As to the ... in 24 Hours books, I had to buy them sight-unseen, so I based my choices on newness and ratings. In many other such books about a quarter of the book is devoted to a basic reference -- enough to get me started -- but not with these. (And from browsing the messages here I'm guessing that many of the developers learned C++, if not Android, in 24 hours or less.) On Jul 16, 3:05 am, Indicator Veritatis mej1...@yahoo.com wrote: If you insist on using a screwdriver as a hammer, of course you will complain about the quality of the hammer: you ask about REFERENCE books, but neither of the books you cite are meant as reference books. As for why there is such a shortage of reference books, that is because the best reference is not a book, it is the online reference Google maintains athttp://developer.android.com. No book publishing cycle can possibly keep up fast enough to compete with that -- as a reference. The books are good for explaining things that references do not even try to include. The books on Android from Wrox, Manning , O'Reilly, Pragmatic Programmer's and yes, Commonware all do this. Besides: no book titled ...Development in 24 hours should be taken seriously. Even though the best of them really do cram an amazing amount of material in a mere 24 hours worth, 24 hours is simply unreasonably short: there is no way Android development could be taught in 24 hours. On Jul 15, 12:44 pm, DanH danhi...@ieee.org wrote: Is there one? I have Professional Android 2 Application Development by Meier and Teach Yourself Android Application Development in 24 Hours by Darcy/Conder. Both are mediocre at best. Neither is a decent REFERENCE, but rather they are basically structured as tutorials, without nothing in the way of reasonably comprehensive API documentation (which also, BTW, is woefully inadequate on the android.com site). And no sort of in-depth discussion of the structure of the system, so one could perhaps understand it rather than simply using the (inadequate) cookbooks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need help - videos won't show as thumbs
Hi there, I am trying to display videos form the emulated sdcard, but it seems that I have done something wrong because no video thumbs are displayed within my gridview... it would be great if someone could help me out, because I have no idea at the moment what I may have done wrong... Thank you in advance... Here is my code of the java file... package com.mobilevideoeditor.moved; import java.util.ArrayList; import android.app.Activity; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.VideoView; public class EditGalleryView extends Activity { Uri[] vidUris; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.videogrid); GridView vGrid=(GridView) findViewById(R.id.vgrid); vGrid.setAdapter(new VideoAdapter(this)); Uri uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; Log.d(EditGalleryView, uri:+uri); String[] projection = { MediaStore.Video.Media.DESCRIPTION, MediaStore.Video.Media.DATA }; Cursor c = this.managedQuery(uri, projection, null, null, MediaStore.Video.Media.DATE_ADDED); Log.d(EditGalleryView, vids available: +c.getCount()); ArrayListUri experimentVids = new ArrayListUri(); if (c.getCount() != 0) { c.moveToFirst(); experimentVids.add(Uri.parse(c.getString(1))); while (c.moveToNext()) { experimentVids.add(Uri.parse(c.getString(1))); } } Log.d(ClassName, experimentVids.length: +experimentVids.size()); if (experimentVids.size() != 0) { vidUris = new Uri[experimentVids.size()]; for (int i = 0; i experimentVids.size(); i++) { vidUris[i] = experimentVids.get(i); } Log.d(EditGalleryView, vidUris:+vidUris.length); } } public class VideoAdapter extends BaseAdapter { private Context mContext; public VideoAdapter(Context c) { mContext = c; } public int getCount() { //return mThumbIds.length; if(vidUris!=null){ return vidUris.length;} return 0; } public Object getItem(int position) { //return null; return position; } public long getItemId(int position) { //return 0; return position; } // create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { VideoView videoView; if (convertView == null) { // if it's not recycled, initialize some attributes videoView = new VideoView(mContext); videoView.setVideoURI(vidUris[position]); videoView.setLayoutParams(new GridView.LayoutParams(85, 85)); //videoView.setScaleType(VideoView.ScaleType.CENTER_CROP); videoView.setPadding(8, 8, 8, 8); } else { videoView = (VideoView) convertView; } // imageView.setImageResource(mThumbIds[position]); return videoView; } /* // references to our images private Integer[] mThumbIds = { R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_2, R.drawable.sample_6, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_1, };*/ } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Re: Seems Android Market statistics go wrong again
I have found this too, and it only appears to have affected my paid app. Would be nice to get some clarification about what is going on here? This has happened a couple of times this year already, but then it affected most of my apps. On Jul 17, 5:50 pm, Evgeny V evgen...@gmail.com wrote: Yes. It dropped again about 15%! On Sat, Jul 17, 2010 at 9:59 AM, Neilz neilhorn...@gmail.com wrote: How annoying. Mine have dropped around 15%. And I'd just been boasting to my friends about a certain figure I'd reached - I'll have to do it all again in a month or so 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.comandroid-developers%2Bunsubs cr...@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: Seems Android Market statistics go wrong again
Ah ok so the was the explanation all along: http://android-developers.blogspot.com/2010/07/market-statistics-adjustments.html Logically the total download figures would include refunds (since they still downloaded the app) but not failed payment transactions (because they never got to install the app in the first place). On Jul 17, 5:50 pm, Evgeny V evgen...@gmail.com wrote: Yes. It dropped again about 15%! On Sat, Jul 17, 2010 at 9:59 AM, Neilz neilhorn...@gmail.com wrote: How annoying. Mine have dropped around 15%. And I'd just been boasting to my friends about a certain figure I'd reached - I'll have to do it all again in a month or so 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.comandroid-developers%2Bunsubs cr...@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: Android as Desktop OS
You might try checking this page: http://code.google.com/p/live-android/ This is not exactly what you have asked, but trying to use using from a Bootable CD or USB device might give you an idea of how would it work on your desktop After this, try cheching on the project documentations/forums if somebody already installed it to the desktop from the bootable image. Andre On Jul 17, 3:15 am, vineet ma...@vineetyadav.com wrote: Hi There, I dont know if this is a vorrect place, but i could not find my answers and i believe there and much more expertised people here, then anywhere else. I want my Desktop to boot to Android OS. I know it can be done and also some netbooks available with Android OS installed. Can some one please help me in how can i install Android OS to a Full Desktop Machine, and how i can i set it up boot to it. I would be thankful, if you could help me out. Thanks 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: webkit, javascript, onclick, MotionEvent, event handlers not firing
When I say I worked for hours, I obviously do not mean coding for hours before testing every now and then, which would indeed be stupid. I meant lots and lots of change-compile-install-run cycles. setSupportZoom(false) seemed to be the last straw, after this change my event handlers would always fire. Why messing with Zoom you may ask... Well, I noticed that accidentally double-clicking on the screen had the effect of zooming out from my content (there were BTW discussions about disabling that default on StackOverflow too). After I disabled zoom support things appeared to start working in 2.1. However, after reading your message, I commented that line out, and... things still work :-) So you may be right -- can be something else I did... The whole setup is a bit complex, and it involves GestureDetector in a subclass of WebView, etc. The annoying thing had been that handler firing in response to clicking had been inconsistent; it always worked in 2.2, and in =2.1 it could work in the beginning and then stop working. Things DO work now, though, so I can make progress with the rest of the app :-) On Jul 16, 6:05 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I tried that and it seemed to have no effect. Are you sure it was settings.setSupportZoom(false); and not something else? If you tried for hours, how many other changes did you make? -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] view and subview
is there a way i can create a view and add some textviews into it ? programmatically ? any sample code ? 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: Decent Android reference book?
With Java in a Nutshell I can find, eg, String and scan the list of methods to refresh my memory of, say, all the options for indexOf in 10 seconds. With the online ref I it takes 5 seconds to open the link, 15 seconds to find String, 5 to scroll down to the method list, and then I still don't have a view of all the methods at once, so I spend another 5 seconds scrolling. That's at home, on a Saturday AM with a good link. At work, where I have to transit several servers and firewalls and fight everyone else's traffic it could take twice as long. Nutshell also has the nice class diagrams that are indispensable when, eg, trying to figure out how to open a file in a mode you don't usually use. Besides, I'm old school and I like the feel of a book. With regard to the quality of the Android documentation, I find many more items in Android's stuff listed with no/minimal description than I find in the Sun documentation. (I especially like the description of SQLiteMisuseException.) One place where the Qt stuff does a good job is having a single link to all members, including inherited members of a class. For classes as layered as the Android ones (which generally seem to be more layered than the Java base classes) this saves a lot of Easter egging. But I didn't come here to start an argument -- I just wanted to find a decent book. I'm still open to suggestions. (I agree that Sun screwed the pooch with regard to AWT and Swing, though the documentation was only a minor issue. But I could list a dozen ways that Sun screwed things up and didn't fix them when they could have, so we all pay for it.) On Jul 17, 6:10 am, Indicator Veritatis mej1...@yahoo.com wrote: You must have either an outdated, slow computer or a very bad network connection, if you find looking up faster in Java in a Nutshell (a fine book, though). I have had no such problem with the online reference, yet my connection is average DSL, my computer slightly below average memory and CPU speed. Also, I have to disagree that the online reference is not very good. True, I have found some APIs woefully underdocumented there, but I am very pleased with the amount of effort they put into documenting the most fundamental APIs -- though I went on record in one of these Google Android groups complaining about the strong appearance of contradiction in the reference concerning Activity Lifecycle. BTW: the Sun Java reference left many things not explained very well too, especially those changes Sun must have been embarrassed to make, such as deprecating Thread.stop(), Properties.save() or replacing AWT with Swing; they just could not bring themselves to admit that to explain the new ways well, they had to admit the faults of the old. An even more glaring failure to explain in the Java docs concerns the entire HTTP functionality of java.net: almost everyone uses the Apache classes for this instead -- with good reason. Apache's (org.apache.http) really is much better. So no, Java's online docs are not superior to Android's. They just have different faults. Once you get used to Android's online reference, which I hope you will, then you will see they are not so bad. This is a good thing, since there really is nothing else comparable. That said, there is one alternative I have long considered exploring: Motorola's documentation for their own spinoff of the Android SDK: Motodev Studio for Android. You might give that a try. Their documentation might please you more. On Jul 16, 5:17 am, DanH danhi...@ieee.org wrote: I've looked at the online reference and it's not very good. Cuter than the Sun Java stuff, but not as comprehensive and doesn't explain things very well. And it's a lot slower referencing an online reference than, say, looking up something in Java in a Nutshell. One thing that seems to be missing all around is images of the various widgets. One of the books (I forget which one -- don't have them here with me now) has virtually no images at all, while the other has precious few. As to the ... in 24 Hours books, I had to buy them sight-unseen, so I based my choices on newness and ratings. In many other such books about a quarter of the book is devoted to a basic reference -- enough to get me started -- but not with these. (And from browsing the messages here I'm guessing that many of the developers learned C++, if not Android, in 24 hours or less.) On Jul 16, 3:05 am, Indicator Veritatis mej1...@yahoo.com wrote: If you insist on using a screwdriver as a hammer, of course you will complain about the quality of the hammer: you ask about REFERENCE books, but neither of the books you cite are meant as reference books. As for why there is such a shortage of reference books, that is because the best reference is not a book, it is the online reference Google maintains athttp://developer.android.com. No book publishing cycle can possibly keep up fast enough
[android-developers] Transferring control from Non UI thread to Ui Thread
Hi I have started a service that works in background and i need to show a dialog box containing Yes and No buttons.But when i try to show the Dialog box from service it give me below exception and not even show dialog box. *Exception is here.java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() * Please help how can i do 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] Re: How to give a rubber-band/bounce effect to ListView (similar to iPhone)
I adapted the dynamics tutorial available here to a custom listview... I don't think you can do it with a normal listview. http://blogs.sonyericsson.com/developerworld/category/tutorials/3d-list/ Shawn McAllister On Jul 17, 6:47 am, UD udayan.warne...@gmail.com wrote: Hi, I want a ListView to have rubber-band (or bounce) effect while scrolling. Just similar to iPhone lists. -- UD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Screen Rotation
If you look at this tutorial I created at http://androidworkz.com/2010/07/06/source-code-imageview-flipper-sd-card-scanner/ there is an example of one way to save an array object to a file and to read it back in. I tried using SharedPreferences, etc as described in the docs and gave up because I couldn't get it to work and this solution I came up with works perfectly. This is essentially the basis of the method. It is simple to use... there are 2 functions. public void saveArray(String filename, String[] output_field) { try { FileOutputStream fos = new FileOutputStream(filename); GZIPOutputStream gzos = new GZIPOutputStream(fos); ObjectOutputStream out = new ObjectOutputStream(gzos); out.writeObject(output_field); out.flush(); out.close(); } catch (IOException e) { e.getStackTrace(); } } @SuppressWarnings(unchecked) public String[] loadArray(String filename) { try { FileInputStream fis = new FileInputStream(filename); GZIPInputStream gzis = new GZIPInputStream(fis); ObjectInputStream in = new ObjectInputStream(gzis); String[] read_field = (String[])in.readObject(); in.close(); return read_field; } catch (Exception e) { e.getStackTrace(); } return null; } You just call them like this. Save Array: saveArray(/sdcard/.mydata/data.dat, MyArray); Load Array: String[] MyArray = loadArray(/sdcard/.mydata/data.dat); If you want to use a different type such as a ListArray or whatever, you can just change the functions to use that type. I have found it works with any object that is Serializeable. Shawn McAllister On Jul 16, 12:09 am, 7H3LaughingMan austin.brk...@gmail.com wrote: I was working on implementing a more advanced list view then the standard one they teach you in basic tutorials, and I did find a great tutorial explaining how to create your own Adapter and such not.http://www.softwarepassion.com/android-series-custom-listview-items-a... I do have a working version of the tutorial and I am currently in the process of changing the list to suit my needs, but there are a few issues I am stumped on. If your run the tutorial code it creates a little progress dialog saying that it is retrieving data. In my application it is going to be fetching data from the internet and storing it in an ArrayList of custom objects. However if I where to rotate the screen the progress dialog pops up again, I have no clue on how to set it up so that when it rotates that it doesn't recreate everything and re-fetch the data and process it again. Any help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 unzip multiple files zipped in a zip file with individual name automatically?
Here you go. :) static Handler myHandler; ProgressDialog myProgress; public void unzipFile(File zipfile) { myProgress = ProgressDialog.show(getContext(), Extract Zip, Extracting Files..., true, false); File zipFile = zipfile; String directory = null; directory = zipFile.getParent(); directory = directory + /; myHandler = new Handler() { @Override public void handleMessage(Message msg) { // process incoming messages here switch (msg.what) { case 0: // update progress bar myProgress.setMessage( + (String) msg.obj); break; case 1: myProgress.cancel(); Toast toast = Toast.makeText(getContext(), Zip extracted successfully, Toast.LENGTH_SHORT); toast.show(); provider.refresh(); break; case 2: myProgress.cancel(); break; } super.handleMessage(msg); } }; Thread workthread = new Thread(new UnZip(zipFile, directory)); workthread.start(); } public class UnZip implements Runnable { File archive; String outputDir; public UnZip(File ziparchive, String directory) { archive = ziparchive; outputDir = directory; } public void log(String log) { Log.v(unzip, log); } @SuppressWarnings(unchecked) public void run() { Message msg; try { ZipFile zipfile = new ZipFile(archive); for (Enumeration e = zipfile.entries(); e.hasMoreElements();) { ZipEntry entry = (ZipEntry) e.nextElement(); msg = new Message(); msg.what = 0; msg.obj = Extracting + entry.getName(); myHandler.sendMessage(msg); unzipEntry(zipfile, entry, outputDir); } } catch (Exception e) { log(Error while extracting file + archive); } msg = new Message(); msg.what = 1; myHandler.sendMessage(msg); } @SuppressWarnings(unchecked) public void unzipArchive(File archive, String outputDir) { try { ZipFile zipfile = new ZipFile(archive); for (Enumeration e = zipfile.entries(); e.hasMoreElements();) { ZipEntry entry = (ZipEntry) e.nextElement(); unzipEntry(zipfile, entry, outputDir); } } catch (Exception e) { log(Error while extracting file + archive); } } private void unzipEntry(ZipFile zipfile, ZipEntry entry, String outputDir) throws IOException { if (entry.isDirectory()) { createDir(new File(outputDir, entry.getName())); return; } File outputFile = new File(outputDir, entry.getName()); if (!outputFile.getParentFile().exists()) { createDir(outputFile.getParentFile()); } log(Extracting: + entry); BufferedInputStream inputStream = new BufferedInputStream(zipfile .getInputStream(entry)); BufferedOutputStream outputStream = new BufferedOutputStream( new FileOutputStream(outputFile)); try { IOUtils.copy(inputStream, outputStream); } finally { outputStream.close(); inputStream.close(); } } private void createDir(File dir) { log(Creating dir + dir.getName()); if (!dir.mkdirs()) throw new RuntimeException(Can not create dir + dir); } } Shawn McAllister On Jul 15, 6:53 am, Mystique joven.ch...@gmail.com wrote: Hi, I'm starting out and trying to unzip a zip file back to source. I'm using this code, my source is call /mnt/sdcard/Out.zip to output /mnt/sdcard/Out.txt and it seems to work. Now, if I have many files in Out.zip how do I automatically unzip all files
[android-developers] Re: Using back button in android.
See http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html Shawn McAllister On Jul 15, 9:24 am, Ajmer Singh ajmersing...@gmail.com wrote: I am a new to android development I want to override the default back button operation in android,please let me know how i can do this in code. -- 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
Re: 回复: [android-developers] How to uninstall application?
Thanks for the reply! It's very useful. I have another question: How to export apk file of a selected package? 2010/7/17 YuviDroid yuvidr...@gmail.com I don't think you can uninstall an app without user confirmation. I found a couple of other posts about this that might be useful to you here: http://android.amberfog.com/?p=98 http://android.amberfog.com/?p=98 http://osdir.com/ml/AndroidDevelopers/2009-08/msg01409.html http://osdir.com/ml/AndroidDevelopers/2009-08/msg01409.htmlHope it helps! Yuvi 2010/7/17 Taoyi Guo taoyi@gmail.com i am interest in this too 在 2010-7-17 下午2:07,Alex Xin xinxi...@gmail.com编写: Hi, there I'm now implementing an app management tool, but I don't know how to uninstall an application using SDK? Could anyone tell me this? Thanks a lot Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.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.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: Activity's windows not full screen
In your AndroidManifest.xml in the application section you can specify the activity to have a dialog theme. This will create a similar effect to what you want... then you just style the views to get the appearance you want (width, height, etc). activity android:label=Activity android:name=.Activity android:theme=@android:style/Theme.Dialog/activity On Jul 14, 7:20 pm, Steevan sephirothl...@free.fr wrote: Hi :) How can i made an activity with a window not full screen ? Goal is to have a windows like this one :http://developer.android.com/guide/topics/ui/notifiers/toasts.html (Creating a Custom Toast View section), but i don't want to make a toast, because toast's life time is too short for what i want to do. 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: change scroll speed in gallery.
create a new view class that extends Gallery and override onFling(). Shawn McAllister On Jul 16, 8:42 am, mmkr manutd...@gmail.com wrote: Hi, Can i change the scroll speed in gallery view? i want a constant change in the gallery views irrespective of the speed the user flings it. 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: webkit, javascript, onclick, MotionEvent, event handlers not firing
I should have mentioned this little nugget: In the html, in the head section, try putting this in: meta name=viewport content=initial-scale=1.0, user-scalable=no / It stops automatic scaling and zooming. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Image viewers on android phones not always the best experience?
I just use an ImageView and resize the image before I display it. Here is my layout: ?xml version=1.0 encoding=utf-8? ImageView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/image android:layout_width=wrap_content android:layout_height=wrap_content android:scaleType=centerInside android:src=@drawable/wait / private Display display; /* in onCreate */ display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay(); /* add the image to the ImageView */ String[] myImageWithPath = /sdcard/DCIM/image.jpg; ImageView image = (ImageView)findViewById(R.id.image); image.setImageDrawable(getScaledDrawable(myImageWithPath)); private int getScreenWidth() { int width = display.getWidth(); return width; } private int getScreenHeight() { int height = display.getHeight(); return height; } private Drawable getScaledDrawable(String imagePath) { Bitmap scaledBitmap = null; BitmapFactory.Options options=new BitmapFactory.Options(); options.inSampleSize = 2; Bitmap origBitmap = BitmapFactory.decodeFile(imagePath, options); int oWidth = origBitmap.getWidth(); int oHeight = origBitmap.getHeight(); int screenwidth = getScreenWidth(); int screenheight = getScreenHeight(); /* Scale the image according to orientation */ if ((oWidth screenwidth) (oHeight screenheight)) { switch (display.getOrientation()) { case PORTRAIT: int factor = screenwidth / oWidth; int new_height = factor * oHeight; scaledBitmap = Bitmap.createScaledBitmap(origBitmap,screenwidth, new_height, true); break; case LANDSCAPE: factor = screenheight / oHeight; int new_width = factor * oWidth; scaledBitmap = Bitmap.createScaledBitmap(origBitmap,new_width, screenheight, true); break; } } else { /* Image doesn't need to be resized */ return Drawable.createFromPath(imagePath); } System.gc(); return new BitmapDrawable(getResources(), scaledBitmap); } On Jul 16, 4:08 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: You can do whatever you want to with webview. It's a browser, well sort of, and as such, a little css/html/JavaScript will do just about anything. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Udp +Tcp connection in Android
On Sat, Jul 17, 2010 at 11:40, Indicator Veritatis mej1...@yahoo.comwrote: Actually, it is possible, but it would require custom code for both server and client dropping the UDP connection and starting up a corresponding TCP connection on agreed upon ports -- but why? The request sounds like it can only be based on a misunderstanding; not just of Android, but of network protocols. From the first post, I thought he wanted to convert a UDP socket to a TCP socket, reusing it, and that's not possible. If he wants to have both, just open to socket connections, one TCP and other UDP and send/recevie whenever he wants/needs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App Inventor to Market
Have you considered looking at other options to the App Inventor such as our commercially proven MobiForms Developer - particularly for database orientated apps? At MobiForms we released the world's first rapid application development tool for Google Android smartphones nearly a year ago now. MobiForms is designed for novice and expert programmers alike. Additionally, apps developed for Android will also run on a range of other devices such as Windows Mobile without any additional work. This will never be possible with the Google App Inventor. We have just released our MobiForms Advanced Edition with Google Android support. This enables the creation of true offline store and forward apps with offline buffering and online synchronisation. This caters for situations in the real world where comms may be interrupted, but with this solution no data is lost. Ideal for creating business apps for field service, surveys, risk assessments etc. MobiForms offers one compact, easy, development and deployment solution. MobiForms totally replaces the need to learn Eclipse, the Android SDK, Java or XML. For more information have a look at our web site: http://www.mobiforms.com Nicolas wrote: Hi there, I have created an app with the app inventor and now I would like to upload the application to the android market. When I try this, I get the error Upload a valid APK. Anybody any idea how I can get around this? Cheers, Nico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: webkit, javascript, onclick, MotionEvent, event handlers not firing
Thank you. I hope your little nugget will also help when switching to higher screen resolutions, the screen density dance etc I think this will be another can of worms On Jul 17, 11:05 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I should have mentioned this little nugget: In the html, in the head section, try putting this in: meta name=viewport content=initial-scale=1.0, user-scalable=no / It stops automatic scaling and zooming. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I have a problem with android2.2 Launcher2.apk
hi,all I have a problem with android2.2 Launcher2.apk , I find it also on emulator . why I cant not move focus on launcher panel homebutton when use mouse roll down or down focus. after I do like this 1. adb pull Launcher2.apk from /system/app 2. delete Launcher2.apk from emulator 3. adb push Launcher2.apk in /system/app it will be ok like this ,I can move focus on this icon .like this image why ? please help me. when i make a system.imgit also like this problem. I must adb pull Launcher2.apk after adb push this apk , it can be work ok . or it can not move focus . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Udp +Tcp connection in Android
finally i understood xuxu's question, did i? On Jul 17, 8:28 am, Carlos Silva r3...@r3pek.org wrote: On Sat, Jul 17, 2010 at 11:40, Indicator Veritatis mej1...@yahoo.comwrote: Actually, it is possible, but it would require custom code for both server and client dropping the UDP connection and starting up a corresponding TCP connection on agreed upon ports -- but why? The request sounds like it can only be based on a misunderstanding; not just of Android, but of network protocols. From the first post, I thought he wanted to convert a UDP socket to a TCP socket, reusing it, and that's not possible. If he wants to have both, just open to socket connections, one TCP and other UDP and send/recevie whenever he wants/needs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: webkit, javascript, onclick, MotionEvent, event handlers not firing
Our app Radar Now! is currently on over 380,000 devices in the US, every single one available. It works regardless of screen density and treats every screen as if the width was 320px. The length is proportional to the pixels of the screen so that can vary but it is predictable. That's one of the really great things about webview, the screen reacts as expected regardless of device or screen density. While others may see webview as an abomination, I find it quite refreshing to know that when a new device or version of the OS is released, I can expect our app to behave in a manner that allows the user a good experience. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Decent Android reference book?
With Java in a Nutshell I can find, eg, String and scan the list of methods to refresh my memory of, say, all the options for indexOf in 10 seconds. If I need to refresh my memory on anything, I use the greatest resource that has ever been created for programmers, Google. No need for an outdated book to clog my shelves, if I want to know anything, I just key into Google something like: java options for indexOf and a dozen resources appear, as if by magic in a matter of seconds. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Read info from account gmail from hanset
Hi All Exist some way from read the info from account gmail from handset. I need using Gmail Sender and using the user and password from login handset and no want write in the application the user and password Example: GMailSender sender = new GMailSender(userReadAutomatically , passwordReadAutomatically ); sender.sendMail(subject, body, email_address_destintity, email); Thanks David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Force close dialog
Hi, In my app, i will be doing some multiple file upload to server. The app activity displays FORCE CLOSE dialog while server call is in progress. So, is it possible to manage the dialog from appearing. I will displaying proper messages to inform user the app is still running. Also is there is any execution time in Android? Thanks Veradis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need help - videos won't show as thumbs
Hey I just saw that I forgot s.th. within getCount(), so I changed it to public int getCount() { //return mThumbIds.length; if(vidUris!=null){ return vidUris.length;} return 0; } The thing now is that I still cannot see any videos displayed in my GridView, but I get a message saying: Sorry, but this video cannot be played! As I don't want to play the videos but only display them in the GridView like in an directory, do I maybe have to use MediaStore.Video.Thumbnails instead, which I just found when I googled a little...though I don't know what I should do with it in my code...if someone could help me out here, that would be really really great... Thanks On Sat, Jul 17, 2010 at 12:13 PM, kivy victoriasarabu...@gmail.com wrote: Hi there, I am trying to display videos form the emulated sdcard, but it seems that I have done something wrong because no video thumbs are displayed within my gridview... it would be great if someone could help me out, because I have no idea at the moment what I may have done wrong... Thank you in advance... Here is my code of the java file... package com.mobilevideoeditor.moved; import java.util.ArrayList; import android.app.Activity; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.VideoView; public class EditGalleryView extends Activity { Uri[] vidUris; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.videogrid); GridView vGrid=(GridView) findViewById(R.id.vgrid); vGrid.setAdapter(new VideoAdapter(this)); Uri uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; Log.d(EditGalleryView, uri:+uri); String[] projection = { MediaStore.Video.Media.DESCRIPTION, MediaStore.Video.Media.DATA }; Cursor c = this.managedQuery(uri, projection, null, null, MediaStore.Video.Media.DATE_ADDED); Log.d(EditGalleryView, vids available: +c.getCount()); ArrayListUri experimentVids = new ArrayListUri(); if (c.getCount() != 0) { c.moveToFirst(); experimentVids.add(Uri.parse(c.getString(1))); while (c.moveToNext()) { experimentVids.add(Uri.parse(c.getString(1))); } } Log.d(ClassName, experimentVids.length: +experimentVids.size()); if (experimentVids.size() != 0) { vidUris = new Uri[experimentVids.size()]; for (int i = 0; i experimentVids.size(); i++) { vidUris[i] = experimentVids.get(i); } Log.d(EditGalleryView, vidUris:+vidUris.length); } } public class VideoAdapter extends BaseAdapter { private Context mContext; public VideoAdapter(Context c) { mContext = c; } public int getCount() { //return mThumbIds.length; if(vidUris!=null){ return vidUris.length;} return 0; } public Object getItem(int position) { //return null; return position; } public long getItemId(int position) { //return 0; return position; } // create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { VideoView videoView; if (convertView == null) { // if it's not recycled, initialize some attributes videoView = new VideoView(mContext); videoView.setVideoURI(vidUris[position]); videoView.setLayoutParams(new GridView.LayoutParams(85, 85)); //videoView.setScaleType(VideoView.ScaleType.CENTER_CROP); videoView.setPadding(8, 8, 8, 8); } else { videoView = (VideoView) convertView; } // imageView.setImageResource(mThumbIds[position]); return
Re: [android-developers] Android Force close dialog
Veradis, You can't prevent the ANR/FC dialog from appearing, since it's there for a reason. But you can eliminate its cause - your application taking up time in the UI thread, making it unresponsive. Android provides an easy to use class to perform lengthy operations in a background thread, without tying up the UI thread. http://developer.android.com/reference/android/os/AsyncTask.html -- Kostya 17.07.2010 21:30, veradis пишет: Hi, In my app, i will be doing some multiple file upload to server. The app activity displays FORCE CLOSE dialog while server call is in progress. So, is it possible to manage the dialog from appearing. I will displaying proper messages to inform user the app is still running. Also is there is any execution time in Android? Thanks Veradis -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webkit, javascript, onclick, MotionEvent, event handlers not firing
Agreed. And yet, in my new app, I would love to use higher resolutions when available. This app will soon be hitting Market :-) On Jul 17, 12:57 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Our app Radar Now! is currently on over 380,000 devices in the US, every single one available. It works regardless of screen density and treats every screen as if the width was 320px. The length is proportional to the pixels of the screen so that can vary but it is predictable. That's one of the really great things about webview, the screen reacts as expected regardless of device or screen density. While others may see webview as an abomination, I find it quite refreshing to know that when a new device or version of the OS is released, I can expect our app to behave in a manner that allows the user a good experience. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 as Desktop OS
I think, Google Chrome is evolving to become a Desktop OS. Eventually, whether it is Desktop or Laptop or Palmtop or any MID (Mobile Internet Device), will have a thin OS served from Clouds with a wireless connectivity. Regards, Bala -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Transferring control from Non UI thread to Ui Thread
I think you should know that an Android service is not meant to interact with the user directly, as with a dialog. Aside from questioning why the user input is needed in the midst of the service and whether the entire background process needs to be performed in a service, here's what I'd recommend: Split the service into two or three parts. The first would be up to the point of requesting the user's choice, the other one or two would be the branches of the user choice. Use a notification (pending intent, handler) at the branch part (the Android way of having a service ask or provide information to the user). You can use a single service instead of several by using a state machine pattern (the service does different things depending on its state). hth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: startActivivityForResult and onResult From a view
What do you mean by a view? You are starting the new activity from your base activity's context. So, you will be receiving the result in your base actvity. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jul 17, 12:42 pm, Ramya S ramya.sriga...@gmail.com wrote: I started an Activity from my view with startActivityForResult using ((Activity)getContext()).startActivityForResult(intent, xxx); but I don't receive the result in onActivityResult in the view (As expected) But I receive it in the activity of the view. Is there anyway that I can receive the result on my view? I need the result in my view -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Changing the drop down MultiAutoCompleteTextView
What are the problems you are facing? It's pretty straight forward using the ResourceCursorAdapter. Please post your issues that you face, and may be some code snippets as well. That will help us understand your problems. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jul 17, 12:59 am, prakash Ramachandran prakashramachand...@gmail.com wrote: Dear Friends, I have a MultiAutoCompleteTextView in my layout, I have attached an array adapter of email address to the MultiAutoCompleteTextView . Now when a user types any letters in this view it will show a drop down with the matching email address to the letter typed. I wanted to modify the the drop down in such a way it also display's the Full name and email address one below the other . I tried using the ResourceCursorAdapter but could not get it to work. Any help is highly appreciated. Thanks, Prakash R -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: error: Error: No resource found that matches the given name ()
Use android:layout_above=@+id/flyobject instead. The + denotes forward lookup. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jul 16, 7:38 pm, zci_zr rui.zhan...@googlemail.com wrote: Hi i am new to android, I try to create layout so that I have background image, and have a ImageView with animation start from bottom right of screen and along with a TextView stay on top of this ImageView. (Hope my describe make sense). My problem is when I try use android:layout_above=@id/flyobject, the eclipse alway say: error: Error: No resource found that matches the given name (at 'layout_above' with value '@id/flyobject'). But as for sure I have defined flyobject, and I can find it's in my R class. I really need help ~~ Thanks here is my XML file: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:id=@+id/background android:src = @drawable/background android:layout_width=fill_parent android:layout_height=fill_parent android:scaleType=centerCrop / TextView android:id=@+id/flytext android:layout_width=wrap_content android:layout_height=wrap_content android:layout_above=@id/flyobject / ImageView android:id=@+id/flyobject android:src=@drawable/asteroid01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentBottom=true / /RelativeLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] If and How to get video thumbnails?
Hi, I am working on a video app. And I have created a GridView that shall display any video stored on the sdcard. Currently it only displays the name of the video file. I wanted to ask if and how it would be possible instead of showing only the name to also display thumbs (or a frame preview) of the videos ?!? I would be grateful for any help...thanks. I wanted to ask if and how it would be possible instead of showing only the name to also display thumbs (or a frame preview) of the videos ?!? I would be grateful for any help...thanks. This is the code I have used so far: package com.mobilevideoeditor.moved; import android.app.Activity; import android.content.Context; import android.database.Cursor; import android.os.Bundle; import android.provider.MediaStore; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.TextView; public class EditGalleryView extends Activity { private Cursor videocursor; private int video_column_index; int count; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.videogrid); init_phone_video_grid(); } private void init_phone_video_grid() { System.gc(); String[] proj = { MediaStore.Video.Media._ID, MediaStore.Video.Media.DISPLAY_NAME, MediaStore.Video.Media.DATA }; videocursor = managedQuery(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj, null, null, null); count = videocursor.getCount(); GridView vGrid=(GridView) findViewById(R.id.vgrid); vGrid.setAdapter(new VideoAdapter(this)); } public class VideoAdapter extends BaseAdapter { private Context vContext; public VideoAdapter(Context c) { vContext = c; } public int getCount() { //return mThumbIds.length; return count; } public Object getItem(int position) { //return null; return position; } public long getItemId(int position) { //return 0; return position; } // create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { System.gc(); TextView tv = new TextView(vContext.getApplicationContext()); String id = null; if (convertView == null) { video_column_index = videocursor.getColumnIndexOrThrow(MediaStore.Video.Media.DISPLAY_NAME); videocursor.moveToPosition(position); id = videocursor.getString(video_column_index); tv.setText(id); } else tv = (TextView) convertView; return tv; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Seems Android Market statistics go wrong again
No this is all apps, not just paid. Mine is free and down 15%. On Jul 17, 1:10 pm, Sam samuel.law...@gmail.com wrote: Ah ok so the was the explanation all along: http://android-developers.blogspot.com/2010/07/market-statistics-adju... Logically the total download figures would include refunds (since they still downloaded the app) but not failed payment transactions (because they never got to install the app in the first place). On Jul 17, 5:50 pm, Evgeny V evgen...@gmail.com wrote: Yes. It dropped again about 15%! On Sat, Jul 17, 2010 at 9:59 AM, Neilz neilhorn...@gmail.com wrote: How annoying. Mine have dropped around 15%. And I'd just been boasting to my friends about a certain figure I'd reached - I'll have to do it all again in a month or so 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.comandroid-developers%2Bunsubs cr...@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] Disabling Java formatting in the Eclipse editor
Is there a (simple) way to completely and utterly disable all Java formatting in the Eclipse editor? That is an Eclipse question, but I appreciate your indulgence because this problem is slowly driving me insane. I am spending a lot of time fixing code to make it look good again after it gets mangled by the automatic formatting. I thought I had removed all formatting keyboard shortcuts, but I missed something because my code keeps getting changed. I suspect the culprit to be the Source\Format menu option because that can be triggered by Alt-S-F which is very close to Alt-F- S, the File/Save command. So a little finger slip and ... bam! ... code mangled. Unfortunately, the mangling is not always done where I am looking (since it is applied to the entire file), so I don't always know to undo it. Is it possible to disable or remove a menu item? Although I have set up the formatting rules to do as little damage as possible, the rules are not flexible enough to cover everything. My last resort will be to change the Eclipse code itself, but ... blech. Thanks for any tips. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disabling Java formatting in the Eclipse editor
Look in settings... I believe you can disable it or at least change its key binding. Also Ctrl+S for saving ;) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 18.07.2010 2:24 пользователь A Curious Developer imdb...@yahoo.com написал: Is there a (simple) way to completely and utterly disable all Java formatting in the Eclipse editor? That is an Eclipse question, but I appreciate your indulgence because this problem is slowly driving me insane. I am spending a lot of time fixing code to make it look good again after it gets mangled by the automatic formatting. I thought I had removed all formatting keyboard shortcuts, but I missed something because my code keeps getting changed. I suspect the culprit to be the Source\Format menu option because that can be triggered by Alt-S-F which is very close to Alt-F- S, the File/Save command. So a little finger slip and ... bam! ... code mangled. Unfortunately, the mangling is not always done where I am looking (since it is applied to the entire file), so I don't always know to undo it. Is it possible to disable or remove a menu item? Although I have set up the formatting rules to do as little damage as possible, the rules are not flexible enough to cover everything. My last resort will be to change the Eclipse code itself, but ... blech. Thanks for any tips. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Disabling Java formatting in the Eclipse editor
Look in settings... I believe you can disable it or at least change its key binding. Thanks, I have got rid of most of them, but the menu shortcuts are still there and I don't know how to be rid of them. Also Ctrl+S for saving ;) I have been using that, and it seems to help (reduce the number of mysterious reformattings, I think), but old habits die hard. ;) Thanks for the suggestions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Which Android service path to choose for implementing a large upload?
I am trying to implement a RESTful API in which I have to upload files that are relatively large for a mobile platform. The upload could take anywhere from 30 seconds to 5 minutes. I would like my application to be completely usable while the upload takes place. I've been doing some research and I've come across a few methods from which I can't decide which is the correct solution to my problem. These are the two things I have come across. Using an IntentService -- handles the worker thread so I don't have to. Using my own type of Service-- still need to implement an AsyncTask to handle the large process. Implement an AsyncTask in a singleton file that would allow me to do all the work there but without using the service class. My question is which method is the best -- if one isn't listed but is a more apt solution to my problem then I would appreciate suggestions. After researching all these methods I am still also confused on one thing. Lets say I upload a 2MB files, but I want to know when it is done. For example, lets say I have a service that uploads an image and returns and imageID -- I need to be able to know when that service returns an imageID -- process that and then move on to the next upload until the rest are finished. As always, thanks in advance. EDIT: I forgot to specify that while uploading I want the app to be usable-- that means that I can switch activities and still have the same service run. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When are the overlays drawn on the map?
What I am trying to do - I am continuously getting a stream of lat/lng positions, I want to move a overlay item dynamically on the map based on the lat/lng in the stream. I am displaying the location of moving object dynamically on the map I am putting my whole code in a while(true) loop and trying to read the stream every 5 seconds and refresh the overlays on the map. But overlay items are not shown until the function (either oncreate, or any onclickeventhandler etc) is completed. For example, test code, I am adding a single test overlay item when ever the user clicks on a button. If I put a wait(200) after I add overlays and invalidate the map, the overlay is not displayed until the time has elapsed and the function is completed. Any ideas or suggestions? please let me know if you want me to explain the problem more -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When are the overlays drawn on the map?
What I am trying to do - I am continuously getting a stream of lat/lng positions, I want to move a overlay item dynamically on the map based on the lat/lng in the stream. I am displaying the location of moving object dynamically on the map I am putting my whole code in a while(true) loop and trying to read the stream every 5 seconds and refresh the overlays on the map. But overlay items are not shown until the function (either oncreate, or any onclickeventhandler etc) is completed. For example, test code, I am adding a single test overlay item when ever the user clicks on a button. If I put a wait(200) after I add overlays and invalidate the map, the overlay is not displayed until the time has elapsed and the function is completed. Any ideas or suggestions? please let me know if you want me to explain the problem more Thanks, -vk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Disabling Java formatting in the Eclipse editor
You might note that there are several different versions of Eclipse you can use, and they may have different formatting policies. I know the version I got with Websphere a year ago was far worse in this regard than the vanilla version I downloaded for use with Android. On Jul 17, 5:23 pm, A Curious Developer imdb...@yahoo.com wrote: Is there a (simple) way to completely and utterly disable all Java formatting in the Eclipse editor? That is an Eclipse question, but I appreciate your indulgence because this problem is slowly driving me insane. I am spending a lot of time fixing code to make it look good again after it gets mangled by the automatic formatting. I thought I had removed all formatting keyboard shortcuts, but I missed something because my code keeps getting changed. I suspect the culprit to be the Source\Format menu option because that can be triggered by Alt-S-F which is very close to Alt-F- S, the File/Save command. So a little finger slip and ... bam! ... code mangled. Unfortunately, the mangling is not always done where I am looking (since it is applied to the entire file), so I don't always know to undo it. Is it possible to disable or remove a menu item? Although I have set up the formatting rules to do as little damage as possible, the rules are not flexible enough to cover everything. My last resort will be to change the Eclipse code itself, but ... blech. Thanks for any tips. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] When are the overlays drawn on the map?
If the updates don't happen until the onCreate or onClickEventHandler methods return, first guess is you're misusing the UI thread. That is, the UI thread is busy in your while loop and can't get anything else done, like drawing the overlays. Welcome to UI programming! I strongly suggest you put you loop into an AsyncTask. and use its callback methods to update the UI. Read the docs carefully. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Which Android service path to choose for implementing a large upload?
My suggestion is to look at some sample code, like Romain Guy's PhotoStream. Although PhotoStream does a Flickr download instead of an upload, the application structure covers services, AsyncTask (albeit an early version thereof), notifications, etc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Transferring control from Non UI thread to Ui Thread
Try this: http://developer.android.com/intl/de/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29 On Jul 17, 6:33 am, Ajmer singh ajmer.si...@evontech.com wrote: Hi I have started a service that works in background and i need to show a dialog box containing Yes and No buttons.But when i try to show the Dialog box from service it give me below exception and not even show dialog box. *Exception is here.java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() * Please help how can i do 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] Re: Seems Android Market statistics go wrong again
In my case only the free one dropped, the paid one just shows the incorrect count as I said a few posts back, but it hasn't dropped per se. On Jul 18, 6:17 am, Neilz neilhorn...@gmail.com wrote: No this is all apps, not just paid. Mine is free and down 15%. On Jul 17, 1:10 pm, Sam samuel.law...@gmail.com wrote: Ah ok so the was the explanation all along: http://android-developers.blogspot.com/2010/07/market-statistics-adju... Logically the total download figures would include refunds (since they still downloaded the app) but not failed payment transactions (because they never got to install the app in the first place). On Jul 17, 5:50 pm, Evgeny V evgen...@gmail.com wrote: Yes. It dropped again about 15%! On Sat, Jul 17, 2010 at 9:59 AM, Neilz neilhorn...@gmail.com wrote: How annoying. Mine have dropped around 15%. And I'd just been boasting to my friends about a certain figure I'd reached - I'll have to do it all again in a month or so 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.comandroid-developers%2Bunsubs cr...@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: Disabling Java formatting in the Eclipse editor
Out of curiosity, what do you hate about the Java formatting. I rather like it myself. On Jul 17, 3:23 pm, A Curious Developer imdb...@yahoo.com wrote: Is there a (simple) way to completely and utterly disable all Java formatting in the Eclipse editor? That is an Eclipse question, but I appreciate your indulgence because this problem is slowly driving me insane. I am spending a lot of time fixing code to make it look good again after it gets mangled by the automatic formatting. I thought I had removed all formatting keyboard shortcuts, but I missed something because my code keeps getting changed. I suspect the culprit to be the Source\Format menu option because that can be triggered by Alt-S-F which is very close to Alt-F- S, the File/Save command. So a little finger slip and ... bam! ... code mangled. Unfortunately, the mangling is not always done where I am looking (since it is applied to the entire file), so I don't always know to undo it. Is it possible to disable or remove a menu item? Although I have set up the formatting rules to do as little damage as possible, the rules are not flexible enough to cover everything. My last resort will be to change the Eclipse code itself, but ... blech. Thanks for any tips. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Multi-point touch event
Hi everybody, does anyone can give me some example of enlarge and narrow of the picture by the Multi-point touch event.Thank you. 2010-07-18 fengcunhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using EmbossFilterMask
I'd like to have an embossed look on a bitmap image using its alpha channel. It seems that the EmbossFilterMask works great on drawables, like drawCircle, for instance. Is there a way to apply it to a bitmap like drawBitmap? Thanks, Stephen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Selection list cut off in AutoCompleteTextView in Dialog
I have a dialog window that covers 1/3 of the entire screen height and is displayed on top of my activity. The dialog holds two AutoCompleteTextView fields. The problem I'm facing is that when the user starts typing something into the AutoCompleteTextView, the list with all suggestions only shows up to the bottom end of the dialog, but doesn't go beyond that even the list is longer. It looks like it's cut off. (screenshot left) Only after I long-press an item from the suggestion list, the list will be shown in full length. (screenshot right) Screenhot is at: http://img704.imageshack.us/i/dialogdropdown.png/ How to fix this behaviour so that the list shows in full length right from the beginning, when the user starts typing something? Code-wise there's nothing special, all I do is: ArrayAdapterString adapter = new ArrayAdapterString(this.getContext(), R.layout.nav_route_autocomplete_row, locStrings); AutoCompleteTextView txtStartPos = (AutoCompleteTextView) findViewById(R.id.txtStartPos); txtStartPos.setAdapter(adapter); ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Font rendering problem?
Please see here: http://picasaweb.google.com/zvasvari/AndroidFontBug# I am rendering two lines of text, the only difference is the color. The red text looks obviously shorter and fatter, they are both 18sp in height. Is this a bug or am I doing something wrong? The style for the white text is item name=android:textSize18sp/item item name=android:textStylebold/item item name=android:textColor?android:attr/textColorPrimary/item For the red text it's the same size and style, but the color is a custom color resource (but basically it's pure red, as given by the last line): selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_enabled=false android:color=#50ff/ item android:state_window_focused=false android:color=#a0ff/ item android:state_pressed=true android:color=#ff00/ item android:state_selected=true android:color=#ff00/ item android:color=#/ !-- not selected -- /selector -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SIGSEGV on Droid X (libskia.so)
I'm getting logs like this from several Droid X users. Currently i got no idea how to fix it so i guess i'll remove support for Droid X alltogether. Any other suggestions? Btw. Android really needs a better way for dealing with bugs like this. This is the third time i got a bug that occurs on one device only. Even if you don't want to call it fragmentation it's still very annoying. I/DEBUG ( 1175): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 1175): Build fingerprint: 'verizon/shadow_vzw/cdma_shadow/ shadow:2.1-update1/VZW/13516:user/ota-rel-keys,release-keys' I/DEBUG ( 1175): signal 11 (SIGSEGV), fault addr 0004 I/DEBUG ( 1175): r0 0021 r1 00890270 r2 0008 r3 00890210 I/DEBUG ( 1175): r4 008902a0 r5 008902a0 r6 00890210 r7 000c4970 I/DEBUG ( 1175): r8 r9 10 fp 0017 I/DEBUG ( 1175): ip 0010 sp 482f6778 lr ac0ba214 pc ac0b8a24 cpsr 2050 I/DEBUG ( 1175): #00 pc 000b8a24 /system/lib/libskia.so I/DEBUG ( 1175): #01 pc 000ba210 /system/lib/libskia.so I/DEBUG ( 1175): #02 pc 000b40ac /system/lib/libskia.so I/DEBUG ( 1175): #03 pc 000b8670 /system/lib/libskia.so I/DEBUG ( 1175): #04 pc 0009efac /system/lib/libskia.so I/DEBUG ( 1175): #05 pc 000474d8 /system/lib/libskia.so I/DEBUG ( 1175): #06 pc 00084f8c /system/lib/libskia.so I/DEBUG ( 1175): I/DEBUG ( 1175): code around pc: I/DEBUG ( 1175): ac0b8a14 0a00022c e59d8014 e59d700c e5930004 I/DEBUG ( 1175): ac0b8a24 e598a004 e5914004 e598b008 e58da010 I/DEBUG ( 1175): ac0b8a34 e0544000 e597a070 42644000 43a09001 I/DEBUG ( 1175): I/DEBUG ( 1175): code around lr: I/DEBUG ( 1175): ac0ba204 e59d1008 e1a5 e1a02006 ebfff95c I/DEBUG ( 1175): ac0ba214 e595e038 e5957030 e3a01034 e024e791 I/DEBUG ( 1175): ac0ba224 e15e0004 2a12 e59e000c e350 I/DEBUG ( 1175): I/DEBUG ( 1175): stack: I/DEBUG ( 1175): 482f6738 0035f0b0 [heap] I/DEBUG ( 1175): 482f673c 0035f018 [heap] I/DEBUG ( 1175): 482f6740 01f4 I/DEBUG ( 1175): 482f6744 ac09c27c /system/lib/libskia.so I/DEBUG ( 1175): 482f6748 0258 I/DEBUG ( 1175): 482f674c 0035f010 [heap] I/DEBUG ( 1175): 482f6750 0035f0b8 [heap] I/DEBUG ( 1175): 482f6754 482f676c I/DEBUG ( 1175): 482f6758 0086e720 [heap] I/DEBUG ( 1175): 482f675c 008d3dc4 [heap] I/DEBUG ( 1175): 482f6760 001c I/DEBUG ( 1175): 482f6764 ac0b5668 /system/lib/libskia.so I/DEBUG ( 1175): 482f6768 0001 I/DEBUG ( 1175): 482f676c 482f6798 I/DEBUG ( 1175): 482f6770 df002777 I/DEBUG ( 1175): 482f6774 e3a070ad I/DEBUG ( 1175): #00 482f6778 I/DEBUG ( 1175): 482f677c I/DEBUG ( 1175): 482f6780 000c498c [heap] I/DEBUG ( 1175): 482f6784 000c4970 [heap] I/DEBUG ( 1175): 482f6788 I/DEBUG ( 1175): 482f678c I/DEBUG ( 1175): 482f6790 00890270 [heap] I/DEBUG ( 1175): 482f6794 0004 I/DEBUG ( 1175): 482f6798 0001 I/DEBUG ( 1175): 482f679c I/DEBUG ( 1175): 482f67a0 0002 I/DEBUG ( 1175): 482f67a4 0001 I/DEBUG ( 1175): 482f67a8 008d3c38 [heap] I/DEBUG ( 1175): 482f67ac 00890210 [heap] I/DEBUG ( 1175): 482f67b0 0020 I/DEBUG ( 1175): 482f67b4 0001 I/DEBUG ( 1175): 482f67b8 0090 I/DEBUG ( 1175): 482f67bc 0086e858 [heap] I/DEBUG ( 1175): 482f67c0 000c4970 [heap] I/DEBUG ( 1175): 482f67c4 0001 I/DEBUG ( 1175): 482f67c8 I/DEBUG ( 1175): 482f67cc I/DEBUG ( 1175): 482f67d0 I/DEBUG ( 1175): 482f67d4 008d3c38 [heap] I/DEBUG ( 1175): 482f67d8 000c4970 [heap] I/DEBUG ( 1175): 482f67dc I/DEBUG ( 1175): 482f67e0 I/DEBUG ( 1175): 482f67e4 008d3efc [heap] I/DEBUG ( 1175): 482f67e8 025c I/DEBUG ( 1175): 482f67ec I/DEBUG ( 1175): 482f67f0 d1d1 [heap] I/DEBUG ( 1175): 482f67f4 ac0ba214 /system/lib/libskia.so I/DEBUG ( 1175): #01 482f67f8 0001080b [heap] I/DEBUG ( 1175): 482f67fc 00358088 [heap] I/DEBUG ( 1175): 482f6800 008d3c38 [heap] I/DEBUG ( 1175): 482f6804 008d3c38 [heap] I/DEBUG ( 1175): 482f6808 000c4b88 [heap] I/DEBUG ( 1175): 482f680c I/DEBUG ( 1175): 482f6810 0035fc78 [heap] I/DEBUG ( 1175): 482f6814 ac09ef18 /system/lib/libskia.so I/DEBUG ( 1175): 482f6818 0015aa90 [heap] I/DEBUG ( 1175): 482f681c 000c4964 [heap] I/DEBUG ( 1175): 482f6820 008113c0 [heap] I/DEBUG ( 1175): 482f6824 000c4b50 [heap] I/DEBUG ( 1175): 482f6828 ac0b9ec8 /system/lib/libskia.so I/DEBUG ( 1175): 482f682c 00010008 [heap] I/DEBUG ( 1175): 482f6830 482f6918 I/DEBUG ( 1175):
[android-developers] XML Pull Parser Bugging Out
I am trying to create a Forum Parsing Application that uses the XML Pull Parser to grab the HTML and then go through it and parsing it for the specific data. I managed to create one that works however when I try to create another one that is used by another Activity in the same Application it gets stuck in a infinite loop. http://pastebin.com/8YciNjXL When I debug my code I traced it all the way down to Line 51... while (eventType != XmlPullParser.END_DOCUMENT) { Apparantly eventType gets forever stuck as 0, this is an almost exact copy of my other XML Pull Parser and I have no idea where I or it went wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] XML Pull Parser Bugging Out
You never request the next element to be read. Your loop should contain the following statement: eventType = xpp.next(); On Sat, Jul 17, 2010 at 9:51 PM, 7H3LaughingMan austin.brk...@gmail.com wrote: I am trying to create a Forum Parsing Application that uses the XML Pull Parser to grab the HTML and then go through it and parsing it for the specific data. I managed to create one that works however when I try to create another one that is used by another Activity in the same Application it gets stuck in a infinite loop. http://pastebin.com/8YciNjXL When I debug my code I traced it all the way down to Line 51... while (eventType != XmlPullParser.END_DOCUMENT) { Apparantly eventType gets forever stuck as 0, this is an almost exact copy of my other XML Pull Parser and I have no idea where I or it went wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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