[android-developers] Re: Background for hi-res 512x512 app icon?
On Nov 18, 6:27 am, Zsolt Vasvari zvasv...@gmail.com wrote: I just upscaled my normal icon alpha channel and all and had no problem uploading it... It'll take the upload, sure, but it renders it on a black background (at least it did mine). String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Backup of APK to SDCard.. Astro file manager does it...
Non-forward-locked APKs are just stored in /data/app, and can be copied the same as any other file. If an app is forward-locked - what the Market calls copy protected - it's kept in a different dir with system-level privs. Which means that you need a rooted device to get at it... but this is the major hole that forward-locking has had from the beginning. String On Nov 18, 6:24 am, Zsolt Vasvari zvasv...@gmail.com wrote: I was wondering about the exact same thing ; actually this very topic made me finally integrate LVL. What stops the user from using Astro to back up my paid app, get a refund and then restore it? On Nov 18, 5:44 am, David Orriss Jr codethou...@gmail.com wrote: Anyone have any idea how this would work or what APIs would be used? I've had people say that root is required, but Astro doesn't seem to need that. Anyone have a code snip to show how this works? -- David Orriss Jr. My blog:http://www.codethought.com/blog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 512x512 high res icon required?
On Nov 17, 10:58 pm, Zsolt Vasvari zvasv...@gmail.com wrote: So did any of you actually create a 512x512 icon? I had to upsize my 72x72 icon to 512x512 just to be able to upload my update. WTF? I was fortunate in that I'd already created 512px icons for a different market. But yeah, definitely pretty damn annoying that this is suddenly *required* with no advance notice. I also dispute the whole notion of a 512px icon. By definition, an icon is a simple image which looks good at a small size. Even if you have the source graphics, an icon which works well at 48px is likely to look stupid when upsized to 512px. /grumble String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Background for hi-res 512x512 app icon?
Yes, it just ignores the alpha channel and that is why transparent pixels or black. I'll just add a white background for now. On Nov 18, 9:14 am, String sterling.ud...@googlemail.com wrote: On Nov 18, 6:27 am, Zsolt Vasvari zvasv...@gmail.com wrote: I just upscaled my normal icon alpha channel and all and had no problem uploading it... It'll take the upload, sure, but it renders it on a black background (at least it did mine). String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 display pdf file from network in own activity EOM
Thanks in advance Shrenik vikam. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 512x512 high res icon required?
I(We) want to know a guideline and it should be documented asap. - just a high res icon? with black background? white? - high res image with some additional graphic enhancement compared to normal(low res) icon? - image with some texts? - like an ads banner? and also want to know an usage of this high res icon. ymst -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Project association with an emulator(s)
I have followed exactly the same steps you have mentioned. Lets say i goto run-run configurations and run project1 on AVD_1, the project runs on the specified target i.e. AVD_1 Now, i goto run-run configurations and run project2 on AVD_2, the project runs on the specified target i.e. AVD_2 When i see the AVD's (AVD_1 and AVD_2), both are running the same application !! Hence, i verified the target for project1 and found that Project1's target in run-run configuration gets changed to AVD_2 whereas it should have remained AVD_1 which i had previously specified ! What could be the reason behind this ?? I am using android sdk 2.2 for windows ! Is there a problem with emulator version. I had read somewhere that m3 doesn't support multiple instances as both listen to the same port whereas version - m5 does !! Is there a way to find the version of the emulator ? Do i need to download emulator m5 ? Is there a document which explains how to configure emulator m5 with the android application we run ? Thanks, Adithya. On Nov 17, 11:30 pm, A. Elk lancaster.dambust...@gmail.com wrote: This tells me what steps you've taken. Why are you trying to do this? What you are actually doing is connecting two different devices to your workstation and then trying to run project A on device1 and project B on device2. No reason why you can't do this. You should use the Run Configuration dialog. From the main menu, select Run Run Configurations... and put together a run configuration for each project, complete with the AVD target you want to use. On Nov 14, 7:45 am, adithya 24adit...@gmail.com wrote: Hi, I have developed two projects. In the first one i send messages and in the second one i receive them. I have also created two emulator instances. What i was trying to do was associate a single project with a single emulator by going to : sendProject - run config - selecting the AVD (AVD1) For the second project i did the same receiveProject - run config - selecting the AVD (AVD2) ..then after sending the message when i checked the AVD2 screen it threw an error !! I went back and checked the run config for both the projects and found that both were pointing to the second AVD2 !! What could be the reason behind this ? Thanks, Adithya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 512x512 high res icon required?
You forgot to mention the required 1024 'feature' image as well, whatever the hell that is! On Nov 17, 2:39 pm, ymst a...@gmail.com wrote: I've noticed that app's update/publish screen on Developer Console suddenly requires High Resolution Application Icon which is 512x512 24bpp jpeg/png. are there any official info about this? ymst stackrmobile.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] Latest Glib on Android
Hi all, I want to use Latest Glib for my application in Android. As the already available glib-version for android is 2.13 very old. i want the latest stable version (like 2.24 or so..) Can anybody help me to set up glib in Android Thanks, Bujji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Project association with an emulator(s)
That is exactly what i have done. I ran project A by run-run configurations - target - AVD1 and the application was running on AVD1 I ran project B by run-run configurations - target - AVD2 and the application was running on AVD2 But i found that both the applications were running the same application ! I verified this by going back to the run configurations of project A and noticed that the target had shifted to AVD2 whereas it should have stayed on AVD1 project B 's target was still pointing to AVD2. What could be the reason behind this strange behavior ? Currently ,i am using android sdk 2.2 windows. I read somewhere that emulator version m3 doesn't support multiple instances because all run on the same adb port !! How do i find out the version of my emulator ? Do i need to download version m5 to make my work ?? Is there a document to configure the emulator to run with the new emulator as i am using the emulator supplied by the sdk. Thanks, Adithya. On Nov 17, 11:30 pm, A. Elk lancaster.dambust...@gmail.com wrote: This tells me what steps you've taken. Why are you trying to do this? What you are actually doing is connecting two different devices to your workstation and then trying to run project A on device1 and project B on device2. No reason why you can't do this. You should use the Run Configuration dialog. From the main menu, select Run Run Configurations... and put together a run configuration for each project, complete with the AVD target you want to use. On Nov 14, 7:45 am, adithya 24adit...@gmail.com wrote: Hi, I have developed two projects. In the first one i send messages and in the second one i receive them. I have also created two emulator instances. What i was trying to do was associate a single project with a single emulator by going to : sendProject - run config - selecting the AVD (AVD1) For the second project i did the same receiveProject - run config - selecting the AVD (AVD2) ..then after sending the message when i checked the AVD2 screen it threw an error !! I went back and checked the run config for both the projects and found that both were pointing to the second AVD2 !! What could be the reason behind this ? Thanks, Adithya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Project association with an emulator(s)
That is exactly what i have done. I ran project A by run-run configurations - target - AVD1 and the application was running on AVD1 I ran project B by run-run configurations - target - AVD2 and the application was running on AVD2 But i found that both the applications were running the same application ! I verified this by going back to the run configurations of project A and noticed that the target had shifted to AVD2 whereas it should have stayed on AVD1 project B 's target was still pointing to AVD2. What could be the reason behind this strange behavior ? Currently ,i am using android sdk 2.2 windows. I read somewhere that emulator version m3 doesn't support multiple instances because all run on the same adb port !! How do i find out the version of my emulator ? Do i need to download version m5 to make my work ?? Is there a document to configure the emulator to run with the new emulator as i am using the emulator supplied by the sdk. Thanks, Adithya. On Nov 17, 11:30 pm, A. Elk lancaster.dambust...@gmail.com wrote: This tells me what steps you've taken. Why are you trying to do this? What you are actually doing is connecting two different devices to your workstation and then trying to run project A on device1 and project B on device2. No reason why you can't do this. You should use the Run Configuration dialog. From the main menu, select Run Run Configurations... and put together a run configuration for each project, complete with the AVD target you want to use. On Nov 14, 7:45 am, adithya 24adit...@gmail.com wrote: Hi, I have developed two projects. In the first one i send messages and in the second one i receive them. I have also created two emulator instances. What i was trying to do was associate a single project with a single emulator by going to : sendProject - run config - selecting the AVD (AVD1) For the second project i did the same receiveProject - run config - selecting the AVD (AVD2) ..then after sending the message when i checked the AVD2 screen it threw an error !! I went back and checked the run config for both the projects and found that both were pointing to the second AVD2 !! What could be the reason behind this ? Thanks, Adithya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Guidelines on using Webview to render UI - getting approval for Market
On 18 November 2010 08:23, Rukksi holmesr...@gmail.com wrote: Hi, I'd like to use a webview to render teh whole UI by pointing it to an external site - basically point it to mob.mysite.com. Are there rules regarding this regarding getting approval for the Android market? There's no requirement to get any approval. Do however expect lot of negative comments and 1 star rates for doing this. Especially if you also plan to incorporate ads -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to manage severla bitrmap for a ListView avoiding OutOfMemory?
Thanks Victor, for your answer, but the adapter alone doesn't solve my problem. The softreference is cleared, by definition, when the system needs memory, not when then objects looses all the references. Thanks to Streets of Boston too, I haven't thounght about your solution with LinkedHashMap, overriding removeEldestEntry() to limit the cache-size. It' very interesting as solution. I'm going to try quickly. I will inform you about the result. Thanks to all. On 17 Nov, 20:37, Streets Of Boston flyingdutc...@gmail.com wrote: Use a LinkedHashmap for a cache and implement the method 'removeEldestEntry(...)' appropriately to limit the cache-size. If the LinkedHashmap cache contains your image, code the 'getView(...)' of your list-adapter to immediately assign the (thumbnail) image to the image-view. If the LinkedHashmap cache does not contain your image, code the 'getView(...)' to assign a temporary 'loading...' placeholder to the image-view and start (asynchronously) loading the missing thumbnail. When the thumbnail is loaded, add it to the cache. When the cache changes and/or the list stops scrolling (see List13.java from the APIDemos as an example), replace any temporary 'loading...' placeholder with the newly loaded image(s). On Nov 17, 8:50 am, Paolo brand...@gmail.com wrote: Hi there! I have to manage several Bitmap in a ListView where each row is composed by one thumbnail and one textview. This ListView can be very long, over 500 rows... There are two problems I have to solve: 1) it is better if I cache all the bitmaps, maybe using SoftReferences in a HashMap. I've tried this way, but I noticed a strange behavior with the SoftReferences. It seems that the GC clean them too fast. Why? 2) In order to implement the cache correctly I'd also like to understand which is the best practice you suggest me to realize a image lazy loading. For example... I'm thinking to load all the data for first and then to load only the thumbnails, but only those really visible on the device screen at the and of the scroll action. Thanks in advance. Paolo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Guidelines on using Webview to render UI - getting approval for Market
On Nov 18, 9:31 am, Marcin Orlowski webnet.andr...@gmail.com wrote: Do however expect lot of negative comments and 1 star rates for doing this. Not necessarily - it all depends on how it's done. Last I checked, for example, EverNote was using a webview to implement their native Android app, and it has 12457 ratings with an average of 4.08 stars. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SystemFeatureTest.java file location
Hi, I am not able to find the file SystemFeaturesTest.java in android cts code. This is as part of CtsAppTestCases.apk which is built out of the source located in cts/tests/tests/app/src/android/app/cts/ folder. But i could not locate the file'SystemFeatureTest.java' in above path. Nor in android git http://android.git.kernel.org/?p=platform/cts.git;a=tree;f=tests/tests/app/src/android/app/cts;h=705cafa55bbf503f41f788d3b7dfc89dbcfdce40;hb=HEAD Could someone help me to locate it? Thanks Regards, Channa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Background for hi-res 512x512 app icon?
On Nov 18, 8:27 am, webmonkey webmonke...@gmail.com wrote: I'll just add a white background for now. That's what I've done. My working assumption is that these new assets are for the long-discussed web Market, and Google's strong preference is for white backgrounds on their web pages. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 512x512 high res icon required?
I also dispute the whole notion of a 512px icon. By definition, an icon is a simple image which looks good at a small size. Even if you have the source graphics, an icon which works well at 48px is likely to look stupid when upsized to 512px. /grumble Perhaps this will help: http://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGIcons/XHIGIcons.html#//apple_ref/doc/uid/2967-SW1 ;-) Mac OS X applications have had 512x512 icons this since Snow Leopard and some are quite amazing. http://www.cultofmac.com/icon-porn-feast-your-eyes-on-snow-leopards-beautiful-icons/15764 Although I am not sure if the hi-res icon for the Market is used in the same way because it does not have an alpha channel On Nov 18, 9:25 am, String sterling.ud...@googlemail.com wrote: On Nov 17, 10:58 pm, Zsolt Vasvari zvasv...@gmail.com wrote: So did any of you actually create a 512x512 icon? I had to upsize my 72x72 icon to 512x512 just to be able to upload my update. WTF? I was fortunate in that I'd already created 512px icons for a different market. But yeah, definitely pretty damn annoying that this is suddenly *required* with no advance notice. I also dispute the whole notion of a 512px icon. By definition, an icon is a simple image which looks good at a small size. Even if you have the source graphics, an icon which works well at 48px is likely to look stupid when upsized to 512px. /grumble String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 wake up a thread with the TERMINATED state?
Could you try call Thread.run(). I did as you and works fine. This is my example: if(this.getState().equals(Thread.State.NEW)){ start(); } else if(this.getState().equals(Thread.State.TERMINATED)) { this.run(); } All operation I do in Thread class. On 17 Лис, 21:27, Kumar Bibek coomar@gmail.com wrote: You cannot wake a dead thread. You can only resume a thread if it's in wait/blocked statehttp://www.roseindia.net/java/thread/life-cycle-of-threads.shtml On Thu, Nov 18, 2010 at 12:55 AM, MobileVisuals eyv...@astralvisuals.comwrote: I have a thread in my app. Before it has been started, it has the thread state NEW. I can then start it without problems. The user can then start another app and then swith back to may app. onResume() and onPostResume() then gets called in the activity and surfaceCreated() gets called in the SurfaceView. The thread then has the thread state TERMINATED. I want to wake it up now, but I can not start it, because I get IllegalThreadStateException then. This is because the thread has been started before. I have tried other ways of waking it up, like interrupt (), but it doesn't work. So how can I wake up the thread, so my application can start functioning again? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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] flash stopped with exclamation mark..
Android 2.2 (froyo) is updated for GallxyS 2 days ago. so i just try to make it updated on the webpage to play. whenever i did, it just stoped with play button? or exclamation mark. what i did is following. In main activity, webview = new Webview(this); webview.loadUrl(file:///android_asset/flash.swf); webview.getSettings().setPluginsEnagled(true); setCeontentView(webview); and XML file is nothing changed from startup. Did i something wrong for the flash player? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: flash stopped with exclamation mark..
Additionally, is there any limitation of memory size for the swf file? On 11월18일, 오후6시53분, choi devmc...@gmail.com wrote: Android 2.2 (froyo) is updated for GallxyS 2 days ago. so i just try to make it updated on the webpage to play. whenever i did, it just stoped with play button? or exclamation mark. what i did is following. In main activity, webview = new Webview(this); webview.loadUrl(file:///android_asset/flash.swf); webview.getSettings().setPluginsEnagled(true); setCeontentView(webview); and XML file is nothing changed from startup. Did i something wrong for the flash player? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ConnectionPoolTimeoutException with DefaultHttpClient / ThreadSafeClientConnManager
You also can use next params: ConnPerRoute connPerRoute = new ConnPerRouteBean(CONNECTION_PER_ROUTE); ConnManagerParams.setMaxConnectionsPerRoute(params, connPerRoute); Where CONNECTION_PER_ROUTE is number of simultanious connections to the same host On 18 Лис, 01:13, ernestw ernest...@gmail.com wrote: Hmmm. I wouldn't use that solution. With Keep-alive you never explicitly close your connections - consumeContent merely reads everything in the response input/error stream and connections are automatically closed when they are idle. Increasing the maximum connections per route only gives you more connections to stall in the same way before running into the same problem. It's possible the server will timeout and close those connections before you exhaust your local connection max but realize you're now tying up somebody else's resources. Ernest On Nov 17, 3:05 pm, Eurig Jones eurigjo...@gmail.com wrote: My thinking was - If there is no obvious close method anywhere, and all examples I've seen of the HttpClient do not mention a close/finish type method then you would assume that it just handles it for you! Looks like that is not always the case, at least in a timely fashion. Thanks ernestw I'll have a look at consumeContent, but I got around the issue another way which I documented in a blog post:http://androidisland.blogspot.com/2010/11/httpclient-and-connectionpo... Regards, Eurig Jones On Nov 17, 3:02 pm, ernestw ernest...@gmail.com wrote: I've run into a similar issue which was solved by making sure to always call consumeContent on the HttpEntity contained in the HttpResponse object (regardless of the response code). HttpClient tries to use keep-alive; if you don't consume every request before they are returned to the ThreadSafeClientConnManager, you're left with an open connection that isn't expecting to service a new request. If you *really* wanted to, you could grab the ClientConnectionManager from the DefaultHttpClient and call closeIdleConnections. I highly suggest that you attempt to properly consume HttpEntity objects before using closeIdleConnections though. Ernest Woo Woo Games http://www.woogames.com On Nov 14, 5:37 pm, Eurig Jones eurigjo...@gmail.com wrote: I'm having an issue with the HttpClient. It is throwing this exception quite consistently after 3 requests to the same location... 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): fetch() sending failed to url http://...myUrl... 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolBy Route.java: 353) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.conn.tsccm.ConnPoolByRoute $1.getPoolEntry(ConnPoolByRoute.java:238) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager $1.getConnection(ThreadSafeClientConnManager.java:175) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDi rector.java: 325) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j ava: 555) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j ava: 487) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j ava: 465) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.net.HttpCall.fetch(HttpCall.java:111) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.net.HttpCall.fetch(HttpCall.java:132) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.net.HttpCall.post(HttpCall.java:102) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.net.ServerCall.registerGoogle(ServerCall.java: 91) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.activity.RegisterGActivity $RegisterTask.doInBackground(RegisterGActivity.java:201) 11-14
[android-developers] Re: Adding separators to a ListView
Hi Kostya. It's making sense to me now, thanks for the tip. The only thing I need to know now: I need to pass my List a Collection of custom objects, not a Cursor. So for example I have a standard object with getName(), I want to pass a List of these and the name element is what appears on the list item. Is your code suitable for this, or would I need a completely different type of Adapter? On Nov 16, 11:02 pm, Kostya Vasilyev kmans...@gmail.com wrote: This won't work right - you still want to get clicks on the data portion of a layout that starts a new group. Developers ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Resetting a value weekly
You could use a remote service. I guess that would be better compared to an activity. There maybe a better solution available using Broadcast Receivers but haven't looked into it. On Wed, Nov 17, 2010 at 9:25 AM, drewin drew.nguye...@gmail.com wrote: I want to reset a counter every week in an app that I'm writing at 2 am every Saturday. I've read that a Handler, not a Timer, should be used for updating a UI on a time, but is this also true for weekly events? I hope my question is clear... -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] start Activity in reciver class
Hi all, this is vinod i have been saving problem while i am starting Activity in reciver so i would know this is the way or not for start activity in reciver regards vinod -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: cannot click on suggestion of AutoCompleteTextView
bump for information, here is the adapter i use for the AutocompleteTextView : import java.io.InputStream; import android.content.ContentResolver; import android.content.ContentUris; import android.content.Context; import android.database.Cursor; import android.graphics.BitmapFactory; import android.net.Uri; import android.provider.ContactsContract; import android.provider.ContactsContract.Contacts; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import android.widget.Filterable; import android.widget.ImageView; import android.widget.TextView; public class ContactListAdapter extends CursorAdapter implements Filterable { public static final String[] PEOPLE_PROJECTION = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME }; private ContentResolver mContent; public ContactListAdapter(Context context, Cursor c) { super(context, c); mContent = context.getContentResolver(); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { View v = LayoutInflater.from(context).inflate(R.layout.player_item_autocomplete, null); TextView name = (TextView) v.findViewById(R.id.playerName); name.setText(cursor.getString(1)); Uri contactPhotoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, cursor.getLong(0)); InputStream image_stream = Contacts.openContactPhotoInputStream(mContent, contactPhotoUri); if (image_stream != null) { ImageView badge = (ImageView) v.findViewById(R.id.playerPhoto); badge.setImageBitmap(BitmapFactory.decodeStream(image_stream)); } return v; } @Override public void bindView(View view, Context context, Cursor cursor) { TextView name = (TextView) view.findViewById(R.id.playerName); name.setText(cursor.getString(1)); Uri contactPhotoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, cursor.getLong(0)); InputStream image_stream = Contacts.openContactPhotoInputStream(mContent, contactPhotoUri); if (image_stream != null) { ImageView badge = (ImageView) view.findViewById(R.id.playerPhoto); badge.setImageBitmap(BitmapFactory.decodeStream(image_stream)); } } @Override public String convertToString(Cursor cursor) { return cursor.getString(1); } @Override public Cursor runQueryOnBackgroundThread(CharSequence constraint) { if (getFilterQueryProvider() != null) { return getFilterQueryProvider().runQuery(constraint); } StringBuilder buffer = null; String[] args = null; if (constraint != null) { buffer = new StringBuilder(); buffer.append(UPPER(); buffer.append(ContactsContract.Contacts.DISPLAY_NAME); buffer.append() GLOB ?); args = new String[] { constraint.toString().toUpperCase() + * }; } return mContent.query(ContactsContract.Contacts.CONTENT_URI, ContactListAdapter.PEOPLE_PROJECTION, buffer == null ? null : buffer.toString(), args, ContactsContract.Contacts.DISPLAY_NAME + COLLATE LOCALIZED ASC); } } On Nov 17, 5:36 pm, Christophe christophe.lebesner...@gmail.com wrote: Hello, I have an AutoCompleteTextView with suggest the name of the people in the contact list. I display a custom view with the photo and the name of the contact in the suggestion. It works perfectly, except nothing happen when I click on one of the suggested item ... The view that I use : LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_height=wrap_content android:minHeight=58dip android:layout_width=fill_parent android:orientation=horizontal android:gravity=center_vertical android:focusable=true android:background=@android:drawable/list_selector_background android:clickable=true ImageView android:layout_height=54dip android:layout_marginLeft=2dip android:layout_marginRight=14dip android:layout_width=54dip android:id=@+id/playerPhoto android:src=@drawable/contact_picture/ImageView TextView android:layout_width=fill_parent android:textAppearance=?android:attr/textAppearanceMedium android:maxLines=1 android:ellipsize=end android:layout_weight=1 android:layout_height=fill_parent android:id=@+id/playerName android:text=name android:layout_gravity=center_vertical
[android-developers] changes to Android Market
Hello, Sorry to disturbing you, but everybody got a message from Android Market about the changes. It says: A “feature” graphic, landscape aspect ratio, 1024 x 500 (required). What is a feature graphic? I googled it but didn't find any example. Evi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 overlap
Hi I had created a custom view as gallery item. My custom view contains an image view and a textview. I want textview to be below of imageview but it overlaps. Please how to do this Custom_view.xml ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget28 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/imageview01 android:layout_width=96px android:layout_height=86px android:layout_alignParentTop=true android:layout_alignParentLeft=true /ImageView TextView android:id=@+id/textview01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_below=@+id/imageview01 /TextView /RelativeLayout Gallery.java package com.android.rss; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.os.Bundle; import android.view.ContextMenu; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.ContextMenu.ContextMenuInfo; import android.view.ViewGroup.LayoutParams; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.AdapterView.OnItemClickListener; public class Gallery1 extends Activity { private class viewHolder{ private TextView text; private ImageView image; } Gallery g ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gallery_1); // Reference the Gallery view g = (Gallery) findViewById(R.id.gallery); // Set the adapter to our custom adapter (below) g.setAdapter(new ImageAdapter(this)); // Set a item click listener, and just Toast the clicked position g.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View v, int position, long id) { Toast.makeText(Gallery1.this, you have selected : + position, Toast.LENGTH_SHORT).show(); } }); // We also want to show context menu for longpressed items in the gallery registerForContextMenu(g); } @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { menu.add(testing); } @Override public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); Toast.makeText(this, Longpress: + info.position, Toast.LENGTH_SHORT).show(); return true; } public class ImageAdapter extends BaseAdapter { int mGalleryItemBackground; private LayoutInflater mInflater; public ImageAdapter(Context c) { mContext = c; mInflater = LayoutInflater.from(c); // See res/values/attrs.xml for the declare-styleable that defines // Gallery1. TypedArray a = obtainStyledAttributes(R.styleable.Gallery1); mGalleryItemBackground = a.getResourceId( R.styleable.Gallery1_android_galleryItemBackground, 0); a.recycle(); } public int getCount() { return mImageIds.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { viewHolder viewholder= new viewHolder(); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) mContext .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView=inflater.inflate(R.layout.main, null,true); viewholder.image = (ImageView)convertView.findViewById(R.id.imageview01); viewholder.text = (TextView)convertView.findViewById(R.id.textview01); convertView.setTag(viewholder); } else{ viewholder= (viewHolder)convertView.getTag(); } convertView.setLayoutParams(new Gallery.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); viewholder.image.setImageResource(mImageIds[position]); //viewholder.image.setScaleType(ImageView.ScaleType.FIT_XY); viewholder.image.setLayoutParams(new RelativeLayout.LayoutParams(136, 88)); viewholder.text.setLayoutParams(new
[android-developers] how to increase camera resolution??
I run my application with camera functionality implemented in an android-powered phone, but the camera image I got always has small resolution. It seems by default, the android camera resolution is small (e.g. 640*410), how to increase the resolution (e.g. to 1024 * 768), I use the following code to implement the camera part: Intent i = new Intent(android.media.action.IMAGE_CAPTURE); File photo=new File(Environment.getExternalStorageDirectory(), 123.jpg); i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo)); startActivityForResult(i, 1); any suggestions on 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
Re: [android-developers] Re: 512x512 high res icon required?
On Thu, Nov 18, 2010 at 9:16 AM, MrChaz mrchazmob...@gmail.com wrote: You forgot to mention the required 1024 'feature' image as well, whatever the hell that is! The featured 1024 is in case your app gets featured, obviously... you are right, I am guessing. The whole thing must be a quiet (half of the internet is talking about it) move to enable existing apps for Google TV. Polishing things is a worthy cause - just look how focused and successful Apple is with such strategy. Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] view overlap
May be parent container of ur custom view is not allowing your textview to get below the imageview , increase the height of parent container and check , check by giving marginTop (though it might not be the right soln) On Thu, Nov 18, 2010 at 4:02 PM, Shalini coolcool.shal...@gmail.com wrote: Hi I had created a custom view as gallery item. My custom view contains an image view and a textview. I want textview to be below of imageview but it overlaps. Please how to do this Custom_view.xml ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget28 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/imageview01 android:layout_width=96px android:layout_height=86px android:layout_alignParentTop=true android:layout_alignParentLeft=true /ImageView TextView android:id=@+id/textview01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_below=@+id/imageview01 /TextView /RelativeLayout Gallery.java package com.android.rss; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.os.Bundle; import android.view.ContextMenu; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.ContextMenu.ContextMenuInfo; import android.view.ViewGroup.LayoutParams; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.AdapterView.OnItemClickListener; public class Gallery1 extends Activity { private class viewHolder{ private TextView text; private ImageView image; } Gallery g ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gallery_1); // Reference the Gallery view g = (Gallery) findViewById(R.id.gallery); // Set the adapter to our custom adapter (below) g.setAdapter(new ImageAdapter(this)); // Set a item click listener, and just Toast the clicked position g.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View v, int position, long id) { Toast.makeText(Gallery1.this, you have selected : + position, Toast.LENGTH_SHORT).show(); } }); // We also want to show context menu for longpressed items in the gallery registerForContextMenu(g); } @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { menu.add(testing); } @Override public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); Toast.makeText(this, Longpress: + info.position, Toast.LENGTH_SHORT).show(); return true; } public class ImageAdapter extends BaseAdapter { int mGalleryItemBackground; private LayoutInflater mInflater; public ImageAdapter(Context c) { mContext = c; mInflater = LayoutInflater.from(c); // See res/values/attrs.xml for the declare-styleable that defines // Gallery1. TypedArray a = obtainStyledAttributes(R.styleable.Gallery1); mGalleryItemBackground = a.getResourceId( R.styleable.Gallery1_android_galleryItemBackground, 0); a.recycle(); } public int getCount() { return mImageIds.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { viewHolder viewholder= new viewHolder(); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) mContext .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView=inflater.inflate(R.layout.main, null,true); viewholder.image = (ImageView)convertView.findViewById(R.id.imageview01); viewholder.text = (TextView)convertView.findViewById(R.id.textview01); convertView.setTag(viewholder); } else{ viewholder= (viewHolder)convertView.getTag(); } convertView.setLayoutParams(new Gallery.LayoutParams(LayoutParams.WRAP_CONTENT,
[android-developers] Re: Problem with UI Thread which hangs up
Hi, Below is the link which shows how my UI looks: http://i56.tinypic.com/6p89q8.jpg You can see those articles now. Article are coming from RSS of blog. So i m making question more simpler: I wrote code this way as follows: (Im giving code in short) public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.articleslist); dialog = ProgressDialog.show(Articles.this, ,Loading. Please wait..., true); new InsertDataTask().execute(this); } private class InsertDataTask extends AsyncTaskContext, Void, ArrayList { private Context context; protected Cursor doInBackground(final Context... args){ //fetch all the data from db and out it in ArrayList and return it } protected void onPostExecute(final ArrayList c){ //now here is inserted for loop for rendering those articles in UI tablev = findViewById(R.id.articleslist); for(){ tr = new TableRow(context); tr.setLayoutParams(new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); tr.setClickable(true); tr.setFocusable(true); // code now create textviews and imageviews and insert those image into tr //Finally the tr is inserted into table tablev.addView(tr); } } When i execute the code. Because that for loop takes 2/3 seconds to render the UI. My UI gets hangs for those 2/3 seconds I think you are clear now On Nov 16, 6:45 pm, Kumar Bibek coomar@gmail.com wrote: Alternate colors: Listview can handle that. Couldn't understand much from what you have explained, but I am sure, there's something wrong you are doing. Please be a bit more elaborate on what exactly are you doing and what is not working. What's an article by the way. On Tue, Nov 16, 2010 at 7:11 PM, umakantpatil umakantpat...@gmail.comwrote: Hi all, I have to draw list of 30 articles. I tired using list view but there was some problem as I wanted to user alternate colors like first is white and 2nd is blue where as again 3rd is white and 4th is blue and it goes on.. So I decided to have scrollview and table into it. I set the view using setcontentview which shows loading dialog. then in aysnc task's doInBackground method i fetch all articles into the object and then in onPostExecute I run a for loop on the object and in each loop i make table row insert article and then insert row into table. and then dismiss loading dialog box. As i have tabular view in my app and If i remove loading dialog box. While the UI is rendered if someone clicks on other tab. UI is hanged up, After loading all table rows It goes to other tab. Can some one help me with this ? Even after using asynctask why this happens ? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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] Feature graphics image quality. o_O
As title, I have just spended time to upload the feature graphic requested by android market (1024x500 pixel), I have uploaded it and o_O Hey, have you seen how it is ugly? The image looks terribly compressed once uploaded, why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Adding separators to a ListView
Neil, If your data is sitting in an in-memory collection, you can still use my pattern, and in fact it's even easier. Derive your adapter from BaseAdapter, override getViewTypeCount, getItemViewType, and getView. Make a small change to isNewGroup, and get the previous data item from the in-memory data structure (for data key comparison). For efficiency, I recommend you use an array to hold your data objects, as that allows direct access to elements by index. -- Kostya 18.11.2010 13:10, Neilz пишет: Hi Kostya. It's making sense to me now, thanks for the tip. The only thing I need to know now: I need to pass my List a Collection of custom objects, not a Cursor. So for example I have a standard object with getName(), I want to pass a List of these and the name element is what appears on the list item. Is your code suitable for this, or would I need a completely different type of Adapter? On Nov 16, 11:02 pm, Kostya Vasilyevkmans...@gmail.com wrote: This won't work right - you still want to get clicks on the data portion of a layout that starts a new group. Developers ... -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Best Design for Android App
Matt, - how essential is phone in your scenario? - I mean does it have to be essential in routing of messages to the server? What I mean is that you could simply open cheapo account at some commercial SMS gateway and it would give you a mobile number to send messages to and from plus an API. If you need to notify a mobile user, do it separately to the main interaction above, as this part will be less reliable. Daniel On Wed, Nov 17, 2010 at 9:27 PM, Matt smid...@gmail.com wrote: Of course :) I am proposing to use the Android as an sms gateway between a phone and my server. Pretty simple: a txt is sent to my phone, the phone receives it and sends it off to my server, the server responds to the phone, which responds to the original sender. I'd like to know if Android can handle many of these requests in a short period of time (say one a minute at peak) and if this process is reliable (i.e. where in the process could something go wrong and mess it up, like a failed http post to my server). I understand much of this might have to do with the phone's hardware and signal strength, but let's assume that I am using a standard Droid and have great signal. Thanks for your help, Matt On Nov 17, 1:50 am, Doug beafd...@gmail.com wrote: On Nov 12, 8:12 am, Matt smid...@gmail.com wrote: I'm developing an app that has one essential requirement: intercept an incoming text message and send it off to an application on a remote server. ... but I am worried about android's ability to process many of these requests in a short time period. I need my app to be able to handle many of these intercepted messages every minute. Would you mind sharing why you are expecting so many incoming SMS message to be processed so frequently? SMS isn't really designed to work this way, and end users certainly wouldn't expect this kind of behavior under normal circumstances. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Some coding errors from a novice
Hi James, whenever you add a new image, u should remember that, u have to add the same image in res folder - drawable (3 category) right same image to add these 3 category. otherwise i wont display image and its error should be No resources found. U can't edit the R.java, it will be build implicitly.Once ,after u created any modification need to change layout u should clear all before whatever u built. (project - clear all) then go to file and select Build all I hope it wil work fine. Thanks and Regards Student -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Some coding errors from a novice
Not true. It's enough to have images only in res/drawable to satisfy resource dependencies. This probably won't look good, and require alternate resources in res/drawable-hdpi-v4 and res/drawable-ldpi-v4, but that's another matter entirely. 2OP: You *never* edit R.java yourself. To add images, put them into the folder in Eclipse. This triggers a rebuild, which automatically updates R.java to include the new resource ID. You should also take a look at this: http://developer.android.com/guide/topics/resources/index.html -- Kostya 18.11.2010 15:30, student пишет: Hi James, whenever you add a new image, u should remember that, u have to add the same image in res folder - drawable (3 category) right same image to add these 3 category. otherwise i wont display image and its error should be No resources found. U can't edit the R.java, it will be build implicitly.Once ,after u created any modification need to change layout u should clear all before whatever u built. (project - clear all) then go to file and select Build all I hope it wil work fine. Thanks and Regards Student -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Transactions
Hi, I am trying to find out, how to store data in a local DB and remotely over HTTP in one transaction. Does exist any native mechanism in Android phone for transactional behavior? Thx Honza -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 make a trial version which starts a limited amount of times?
On Nov 17, 9:57 am, MobileVisuals eyv...@astralvisuals.com wrote: I see, so do you know the best way to make a time limited trial? I assume that the License Verification Library (LVL) should not be used for this? I would not make a time-limited trial (that was kind of my point). With the way the Android market works (and the demographics of its users), it is not really well suited to these kind of apps. I would look to limit the functionality/choice in your trial app instead. I can see that you do wallpapers; you could for instance offer a basic variant for free that does not permit any (or very little) tweaking of your wallpaper settings. Or put in ads whenever the settings are changed - whichever solution seems to fit best with your strategy. Our apps has sold best when there is no trial version available, so the consumer only has the option of buying the complete version. This approach has been successful on Playnow, we've had 2 apps which have been number one their sales chart. The Android market is a very different beast, for better and worse. But I assume that this approach is more difficult on Android market, since there are so may free products available? Visibility is an issue on the market. There's a reason that most of the success stories on the market were either early arrivals to Android or big names (e.g. Rovio). Or is it possible to sell good on Android market without having a trial version? I think you misunderstand the purpose of a trial version in the context of the Android market. Keep in mind that the Android Market already implements a default time- limited trial version of your app - ANY user can download your app and return it within 24-48 hours practically for free. Do people really need more than 24 hours to determine whether they want to buy your app? I think that it is a very rare app where this would be the case. Obviously, seeing a high return percentage on your app is not be nice, but why spend effort implementing something which already exists in the Android market? I would reformulate your question into a better one (from my point of view on what occurs in the Android Market): is it possible to sell well on the Android Market without having an established fanbase? If you have a killer app, maybe. For the vast majority of apps, it would take brilliant and/or massively unscrupulous (sadly a lot of that around too) marketing effort to generate sales. What a trial version is for is to spearhead your marketing effort. You want to put something on the market that makes people say Man this is awesome - telling all their friends about it and rating it 5* - more downloads - hopefully sales of your other products. What you are most likely to get from a time-limited trial on the Android market is a WTF doesn't this work anymore? and more angry users rating your trial with 1 star. Marking your app as a time-limited trial is not going to change that substantially. Assume that anything you write to promote your app can and will be misunderstood (for some users, it seems you should just assume that they can't/won't read anything you write). Regards, Michael A. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Transactions
On Thu, Nov 18, 2010 at 1:05 PM, biokys mulle...@gmail.com wrote: Hi, I am trying to find out, how to store data in a local DB and remotely over HTTP in one transaction. Does exist any native mechanism in Android phone for transactional behavior? Thx Honza Honza, Short answer is: I don't think so. In order to achieve this, you would need to look at Distributed Transaction Coordinators, if you require full transactionality. Java EE has JTA (Java Transaction API) but it's not present on mobile platforms. To achieve this it relies on few very crucial things: - JDBC 2.0 drivers for each data source you need in your distributed transaction that actually implements XADataSource and XADataConnection - JEE Application Server Android API mentions XADataSource and XAConnection, just have a look at javax.sql.DataSource documentation, but there is nothing else. I am pretty sure that SQLite does not support such mechanisms, but I could be wrong. You can try doing it the garage way: db.beginTransaction(); try { //send data to SQLite //send data to external service db.setTransactionSuccessful(); } catch (SQLException) { //error in DB: contact the server to revert the commit and hope it will do it } catch (IOException) { //error with the external server, and you have no guarantee, whether it has been written or not } finally { db.endTransaction(); } As you can see, you can have guarantees only about the internal SQLite database. As soon as you involve network in your transaction, things get orders of magnitude more complicated. I am not sure, how strict are your requirements on transactionality. You could also implement some timer on your server that is transactionally persisted to a DBMS on that server, so that crash + restart or network outage would not cause it disappear. They you would revert any uncommitted transactions after some timeout. That gets you somwhere, but I am pretty sure it will break in some scenarios. -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem using cancel method from a Toast in Main UI Thread
On Tue, Nov 16, 2010 at 3:35 AM, Maxime maxx...@gmail.com wrote: I want to cancel a Toast to show the next one. Searching Google brings up a post from this very group: http://www.mail-archive.com/android-developers@googlegroups.com/msg68660.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 512x512 high res icon required?
There wasn't much notice, but there was an email that came from Android Market Support that gave a maintenance window and a list of changes to the market. I was also lucky enough to have designed my icon at 1024x1024, which I then downsize for antialiasing. As for my other apps, I guess I'll have to redo them. Slightly annoying, sure. But then, they are doing this to help us market our apps, so I can't complain too much ;) Warren On Nov 18, 4:35 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 9:16 AM, MrChaz mrchazmob...@gmail.com wrote: You forgot to mention the required 1024 'feature' image as well, whatever the hell that is! The featured 1024 is in case your app gets featured, obviously... you are right, I am guessing. The whole thing must be a quiet (half of the internet is talking about it) move to enable existing apps for Google TV. Polishing things is a worthy cause - just look how focused and successful Apple is with such strategy. Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Transactions
Hi Daniel, thx for your post my goal is to make data sharing among any users so they can store their information locally in SQLite (in case of no network connection) and when they want, they can synchronize these datas with central datastore (Google app engine). so i assume, that transactional behavior is not crucial in this case, but can be handy. Honza On 18 lis, 14:47, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 1:05 PM, biokys mulle...@gmail.com wrote: Hi, I am trying to find out, how to store data in a local DB and remotely over HTTP in one transaction. Does exist any native mechanism in Android phone for transactional behavior? Thx Honza Honza, Short answer is: I don't think so. In order to achieve this, you would need to look at Distributed Transaction Coordinators, if you require full transactionality. Java EE has JTA (Java Transaction API) but it's not present on mobile platforms. To achieve this it relies on few very crucial things: - JDBC 2.0 drivers for each data source you need in your distributed transaction that actually implements XADataSource and XADataConnection - JEE Application Server Android API mentions XADataSource and XAConnection, just have a look at javax.sql.DataSource documentation, but there is nothing else. I am pretty sure that SQLite does not support such mechanisms, but I could be wrong. You can try doing it the garage way: db.beginTransaction(); try { //send data to SQLite //send data to external service db.setTransactionSuccessful(); } catch (SQLException) { //error in DB: contact the server to revert the commit and hope it will do it } catch (IOException) { //error with the external server, and you have no guarantee, whether it has been written or not } finally { db.endTransaction(); } As you can see, you can have guarantees only about the internal SQLite database. As soon as you involve network in your transaction, things get orders of magnitude more complicated. I am not sure, how strict are your requirements on transactionality. You could also implement some timer on your server that is transactionally persisted to a DBMS on that server, so that crash + restart or network outage would not cause it disappear. They you would revert any uncommitted transactions after some timeout. That gets you somwhere, but I am pretty sure it will break in some scenarios. -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView row control
Hi at all, there is a method for knows what rows are currently displayed in a ListView? I would like to use it for free memory. Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] power down handler
I have to handle power down event in my service, but so far I couldn't find how to receive power down event...Do I need to implement broadcast receiver functionality in my service? I would appreciate some pointers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] reading sound stream to speakers
Is there a way to read the signal being sent to the speakers / headphones? I would like to perform actions based on the music playing through the speakers. I could write my own media player so that I have direct access to the sound stream, but that seams like overkill. It would be much better if I could allow the user to choose any media player and have my app use the audio output as it's input. Is this possible? I haven't found anything about it so far. Thanks, Warren -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListView row control
18.11.2010 17:20, pedr0 пишет: Hi at all, there is a method for knows what rows are currently displayed in a ListView? I would like to use it for free memory. Thanks a lot. See AdapterView: getFirstVisiblePosition, getLastVisiblePosition -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Transactions
On Thu, Nov 18, 2010 at 2:13 PM, biokys mulle...@gmail.com wrote: Hi Daniel, thx for your post my goal is to make data sharing among any users so they can store their information locally in SQLite (in case of no network connection) and when they want, they can synchronize these datas with central datastore (Google app engine). so i assume, that transactional behavior is not crucial in this case, but can be handy. Honza Hey Honza, That is true, you don't need a transaction that would span both interactions. It would be 2 separate transactions, or to be precise 1 local transaction and server upload would be the best effort kind of thing, with the assumption that it will eventually work at some point in the future (could be quite distant future in terms of transactions). All you have to do is to have some sort of time stamp attached to the data in both places and the server routine will ask only mobile for the data since its latest time stamp. -- Daniel On 18 lis, 14:47, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 1:05 PM, biokys mulle...@gmail.com wrote: Hi, I am trying to find out, how to store data in a local DB and remotely over HTTP in one transaction. Does exist any native mechanism in Android phone for transactional behavior? Thx Honza Honza, Short answer is: I don't think so. In order to achieve this, you would need to look at Distributed Transaction Coordinators, if you require full transactionality. Java EE has JTA (Java Transaction API) but it's not present on mobile platforms. To achieve this it relies on few very crucial things: - JDBC 2.0 drivers for each data source you need in your distributed transaction that actually implements XADataSource and XADataConnection - JEE Application Server Android API mentions XADataSource and XAConnection, just have a look at javax.sql.DataSource documentation, but there is nothing else. I am pretty sure that SQLite does not support such mechanisms, but I could be wrong. You can try doing it the garage way: db.beginTransaction(); try { //send data to SQLite //send data to external service db.setTransactionSuccessful(); } catch (SQLException) { //error in DB: contact the server to revert the commit and hope it will do it } catch (IOException) { //error with the external server, and you have no guarantee, whether it has been written or not } finally { db.endTransaction(); } As you can see, you can have guarantees only about the internal SQLite database. As soon as you involve network in your transaction, things get orders of magnitude more complicated. I am not sure, how strict are your requirements on transactionality. You could also implement some timer on your server that is transactionally persisted to a DBMS on that server, so that crash + restart or network outage would not cause it disappear. They you would revert any uncommitted transactions after some timeout. That gets you somwhere, but I am pretty sure it will break in some scenarios. -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android ARM Direct SD Card I/O
On Tue, Nov 16, 2010 at 3:47 AM, meconin meco...@gmail.com wrote: I need to directly read/write a file on sd card without cache. What does without cache mean? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView row control
Thanks Kostya!It works! On 18 Nov, 15:26, Kostya Vasilyev kmans...@gmail.com wrote: 18.11.2010 17:20, pedr0 пишет: Hi at all, there is a method for knows what rows are currently displayed in a ListView? I would like to use it for free memory. Thanks a lot. See AdapterView: getFirstVisiblePosition, getLastVisiblePosition -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] power down handler
On Thu, Nov 18, 2010 at 9:23 AM, chcat vlyamt...@gmail.com wrote: I have to handle power down event in my service, but so far I couldn't find how to receive power down event...Do I need to implement broadcast receiver functionality in my service? I would appreciate some pointers. You will need a BroadcastReceiver to watch for the ACTION_SHUTDOWN system broadcast: http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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] Re: cannot click on suggestion of AutoCompleteTextView
It work if I use a TextView instead of my custo layout (see my first post). Don't ask me why. So I cheated and set the picture of the contact as the background of the text view. The newView method now look like this : @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { float density = context.getResources().getDisplayMetrics().density; TextView name = new TextView(context); name.setText(cursor.getString(1)); name.setTag(cursor.getLong(0)); name.setGravity(Gravity.CENTER_VERTICAL); name.setTextColor(Color.BLACK); name.setTextSize(19); name.setHeight((int) (54 * density)); Uri contactPhotoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, cursor.getLong(0)); InputStream image_stream = Contacts.openContactPhotoInputStream(mContent, contactPhotoUri); Drawable avatar; if (image_stream != null) { Bitmap b = BitmapFactory.decodeStream(image_stream); avatar = new BitmapDrawable(b); } else { avatar = context.getResources().getDrawable(R.drawable.contact_picture); } avatar.setBounds(0, 0, (int) (54 * density), (int) (54 * density)); name.setCompoundDrawablePadding((int) (3 * density)); name.setCompoundDrawables(avatar, null, null, null); return name; } Also the code in bindView is not needed (don't know why there is 2 methods newView and bindView ...) @Override public void bindView(View view, Context context, Cursor cursor) { // already done in newView } So if you want a autocompletetextView which autocomplete on the name of the contacts and disply their photo you can use this : Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, ContactListAdapter.PEOPLE_PROJECTION, null, null, ContactsContract.Contacts.DISPLAY_NAME + COLLATE LOCALIZED ASC); ContactListAdapter adapter = new ContactListAdapter(this, cursor); AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.AutoCompleteTextView); textView.setAdapter(adapter); On Nov 18, 11:29 am, Christophe christophe.lebesner...@gmail.com wrote: bump for information, here is the adapter i use for the AutocompleteTextView : import java.io.InputStream; import android.content.ContentResolver; import android.content.ContentUris; import android.content.Context; import android.database.Cursor; import android.graphics.BitmapFactory; import android.net.Uri; import android.provider.ContactsContract; import android.provider.ContactsContract.Contacts; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import android.widget.Filterable; import android.widget.ImageView; import android.widget.TextView; public class ContactListAdapter extends CursorAdapter implements Filterable { public static final String[] PEOPLE_PROJECTION = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME }; private ContentResolver mContent; public ContactListAdapter(Context context, Cursor c) { super(context, c); mContent = context.getContentResolver(); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { View v = LayoutInflater.from(context).inflate(R.layout.player_item_autocomplete, null); TextView name = (TextView) v.findViewById(R.id.playerName); name.setText(cursor.getString(1)); Uri contactPhotoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, cursor.getLong(0)); InputStream image_stream = Contacts.openContactPhotoInputStream(mContent, contactPhotoUri); if (image_stream != null) { ImageView badge = (ImageView) v.findViewById(R.id.playerPhoto); badge.setImageBitmap(BitmapFactory.decodeStream(image_stream)); } return v; } @Override public void bindView(View view, Context context, Cursor cursor) { TextView name = (TextView) view.findViewById(R.id.playerName); name.setText(cursor.getString(1)); Uri contactPhotoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, cursor.getLong(0)); InputStream image_stream = Contacts.openContactPhotoInputStream(mContent, contactPhotoUri); if (image_stream != null) { ImageView badge = (ImageView) view.findViewById(R.id.playerPhoto); badge.setImageBitmap(BitmapFactory.decodeStream(image_stream)); } } @Override public String convertToString(Cursor cursor) { return cursor.getString(1); } @Override public Cursor runQueryOnBackgroundThread(CharSequence constraint) { if (getFilterQueryProvider() != null) { return
[android-developers] Re: 512x512 high res icon required?
well, that's great, but it would be better to know what we are suppose to put in these pictures (icon feature) and where it is going to be used BEFORE making it mandatory. On Nov 18, 2:48 pm, Warren warrenba...@gmail.com wrote: There wasn't much notice, but there was an email that came from Android Market Support that gave a maintenance window and a list of changes to the market. I was also lucky enough to have designed my icon at 1024x1024, which I then downsize for antialiasing. As for my other apps, I guess I'll have to redo them. Slightly annoying, sure. But then, they are doing this to help us market our apps, so I can't complain too much ;) Warren On Nov 18, 4:35 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 9:16 AM, MrChaz mrchazmob...@gmail.com wrote: You forgot to mention the required 1024 'feature' image as well, whatever the hell that is! The featured 1024 is in case your app gets featured, obviously... you are right, I am guessing. The whole thing must be a quiet (half of the internet is talking about it) move to enable existing apps for Google TV. Polishing things is a worthy cause - just look how focused and successful Apple is with such strategy. Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 ARM Direct SD Card I/O
Have you looked at fcntl ? @TreKing without cache means that the OS does not read the file into the cache to improve subsequent reading operations. Sometimes you don't want this. On Nov 18, 3:33 pm, TreKing treking...@gmail.com wrote: On Tue, Nov 16, 2010 at 3:47 AM, meconin meco...@gmail.com wrote: I need to directly read/write a file on sd card without cache. What does without cache mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Transactions
Now it looks much easier for me, thx a lot Honza On 18 lis, 15:29, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 2:13 PM, biokys mulle...@gmail.com wrote: Hi Daniel, thx for your post my goal is to make data sharing among any users so they can store their information locally in SQLite (in case of no network connection) and when they want, they can synchronize these datas with central datastore (Google app engine). so i assume, that transactional behavior is not crucial in this case, but can be handy. Honza Hey Honza, That is true, you don't need a transaction that would span both interactions. It would be 2 separate transactions, or to be precise 1 local transaction and server upload would be the best effort kind of thing, with the assumption that it will eventually work at some point in the future (could be quite distant future in terms of transactions). All you have to do is to have some sort of time stamp attached to the data in both places and the server routine will ask only mobile for the data since its latest time stamp. -- Daniel On 18 lis, 14:47, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 1:05 PM, biokys mulle...@gmail.com wrote: Hi, I am trying to find out, how to store data in a local DB and remotely over HTTP in one transaction. Does exist any native mechanism in Android phone for transactional behavior? Thx Honza Honza, Short answer is: I don't think so. In order to achieve this, you would need to look at Distributed Transaction Coordinators, if you require full transactionality. Java EE has JTA (Java Transaction API) but it's not present on mobile platforms. To achieve this it relies on few very crucial things: - JDBC 2.0 drivers for each data source you need in your distributed transaction that actually implements XADataSource and XADataConnection - JEE Application Server Android API mentions XADataSource and XAConnection, just have a look at javax.sql.DataSource documentation, but there is nothing else. I am pretty sure that SQLite does not support such mechanisms, but I could be wrong. You can try doing it the garage way: db.beginTransaction(); try { //send data to SQLite //send data to external service db.setTransactionSuccessful(); } catch (SQLException) { //error in DB: contact the server to revert the commit and hope it will do it } catch (IOException) { //error with the external server, and you have no guarantee, whether it has been written or not } finally { db.endTransaction(); } As you can see, you can have guarantees only about the internal SQLite database. As soon as you involve network in your transaction, things get orders of magnitude more complicated. I am not sure, how strict are your requirements on transactionality. You could also implement some timer on your server that is transactionally persisted to a DBMS on that server, so that crash + restart or network outage would not cause it disappear. They you would revert any uncommitted transactions after some timeout. That gets you somwhere, but I am pretty sure it will break in some scenarios. -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Recorded message
Is it possible to play a recorded message when making a phone call. I mean to call a contact and when the call is answered to play immediately a recorded message. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Issue loading native libraries (i.e. System.load()/dlopen) on my Nexus One after FRG83 System update
On Wed, Nov 17, 2010 at 7:24 AM, Piyush Khanna piyushkhann...@gmail.comwrote: Hi, I am an Android app developer, and I have purchased a Nexus One device which I use to continuously test my developed Android applications. Background: - One of the applications I developed uses a native shared library (e.g. myNativeLib.so). Only my application loads uses this native library. I had developed this app before Android NDK came out. I pack my native library into my apk's 'assets' folder, and during my application start- up, I extract this native library from my package's assets folder to my app private directory (i.e. assets - /data/data/myappprocess/ myNativeLib.so). Then I use System.load() API in my application to dynamically load this native library. Does your library depends on a system library that was not exposed through the NDK? If so, this behaviour is to be expected. Otherwise, this is strange. Problem: This application was developed during Android 1.5 (i.e. cupcake) days {I didn't have the Nexus One then}. The above procedure has been working without any problems right from Android 1.5 to Android 2.2 (i.e. Froyo). I have also tested the same on my Nexus One for Android 2.1 (i.e. Eclair) and Android 2.2. The problem began the moment I recently upgraded my Nexus One to Android 2.2.1 via the FRG83 system update. Now, whenever I try to load my native library, I get the following error: D/dalvikvm( 3653): Trying to load lib /data/data/myappprocess/ mynativelib.so some address I/dalvikvm( 3653): Unable to dlopen(/data/data/myappprocess/ mynativelib.so): Cannot load library: link_image[1995]: failed to link mynativelib.so I believe there should be an error message from the linker just before that which indicates what the problem with your library is (e.g. missing symbol or library dependency). Can you look at it? What I have Tried: -- 1. I tried my application using Android 2.2 SDK (emulator)...it works, no issues. 2. I checked out the latest froyo android2.2.1 source code from Android open-source, built tested my application + native lib using the latest froyo source...it built ran, no issues. This should've taken care of any changes in the native code dependencies between Android 2.2 Android 2.2.1 3. I even checked Android 2.2.1 source code for dalvik (java System Runtime classes) + bionic (linker dlopen sources) between Android 2.2 Android 2.2.1 (using source checked out from Android open-source), but couldn't find anything consequential 4. I am unable to return my Nexus One to Android 2.2 :( I'm now confused...is the open-sourced-code for Android 2.2.1 different from what's available on Nexus One? What can I do to make my application work on Nexus One? The FRG83 image does not correspond 100% to the content of the Android open-source tree, but the most likely reason for the difference might be that you are running a user build on the Nexus, while you built a user-debug or eng build from the source tree. They have a few differences related to security which might explain the issue. It's hard to tell without more information. For the record, can you dump the dynamic section and dynamic symbol table from your shared library? --- --- Device: Nexus One Carrier: Airtel Country / Language: India/en OS / build number (if applicable): Android 2.2.1 / FRG83 --- -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: ConnectionPoolTimeoutException with DefaultHttpClient / ThreadSafeClientConnManager
Thanks ernestw. You're probably right, but I'm going to have a closer look and monitor the connections. @victor. I've come across the connections per route params as well, and specifying them won't make any difference in this case as that does not effect how the connections are closed. On Nov 18, 9:59 am, viktor victor.scherb...@gmail.com wrote: You also can use next params: ConnPerRoute connPerRoute = new ConnPerRouteBean(CONNECTION_PER_ROUTE); ConnManagerParams.setMaxConnectionsPerRoute(params, connPerRoute); Where CONNECTION_PER_ROUTE is number of simultanious connections to the same host On 18 Лис, 01:13, ernestw ernest...@gmail.com wrote: Hmmm. I wouldn't use that solution. With Keep-alive you never explicitly close your connections - consumeContent merely reads everything in the response input/error stream and connections are automatically closed when they are idle. Increasing the maximum connections per route only gives you more connections to stall in the same way before running into the same problem. It's possible the server will timeout and close those connections before you exhaust your local connection max but realize you're now tying up somebody else's resources. Ernest On Nov 17, 3:05 pm, Eurig Jones eurigjo...@gmail.com wrote: My thinking was - If there is no obvious close method anywhere, and all examples I've seen of the HttpClient do not mention a close/finish type method then you would assume that it just handles it for you! Looks like that is not always the case, at least in a timely fashion. Thanks ernestw I'll have a look at consumeContent, but I got around the issue another way which I documented in a blog post:http://androidisland.blogspot.com/2010/11/httpclient-and-connectionpo... Regards, Eurig Jones On Nov 17, 3:02 pm, ernestw ernest...@gmail.com wrote: I've run into a similar issue which was solved by making sure to always call consumeContent on the HttpEntity contained in the HttpResponse object (regardless of the response code). HttpClient tries to use keep-alive; if you don't consume every request before they are returned to the ThreadSafeClientConnManager, you're left with an open connection that isn't expecting to service a new request. If you *really* wanted to, you could grab the ClientConnectionManager from the DefaultHttpClient and call closeIdleConnections. I highly suggest that you attempt to properly consume HttpEntity objects before using closeIdleConnections though. Ernest Woo Woo Games http://www.woogames.com On Nov 14, 5:37 pm, Eurig Jones eurigjo...@gmail.com wrote: I'm having an issue with the HttpClient. It is throwing this exception quite consistently after 3 requests to the same location... 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): fetch() sending failed to url http://...myUrl... 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolBy Route.java: 353) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.conn.tsccm.ConnPoolByRoute $1.getPoolEntry(ConnPoolByRoute.java:238) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager $1.getConnection(ThreadSafeClientConnManager.java:175) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDi rector.java: 325) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j ava: 555) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j ava: 487) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j ava: 465) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.net.HttpCall.fetch(HttpCall.java:111) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at chesspresso.client.android.net.HttpCall.fetch(HttpCall.java:132) 11-14 22:27:37.299: INFO/ chesspresso.client.android.net.HttpCall(29152): at
[android-developers] Backup in Android
Hi All, Im trying to do the backing up of my application's data into the Google Servers.. For doing this i've implemented a BackupAgent in my code and i i included this in the Android Manifest file and Meta-data after registered my Application's package with the Android Backup Service. When i run the application to do the backup this is not performing the backup.. Im using Nexus one device(connected to WIFI also) . Could any one please let me know why it is not calling my BackupAgent's onBackup() or even onCreate() methods?? Am i missing some thing, to include in the Android manifest file or some where in the program?? I've tried the example given in the SDK samples.. But no use.. Thanks in advance for the information -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Recorded message
2010/11/18 ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com: Is it possible to play a recorded message when making a phone call. I mean to call a contact and when the call is answered to play immediately a recorded message. Android has no access to the in-call audio stream at this time. If the phone is in speakerphone mode, my understanding is that you can play a media file through the speakers, and that it may get picked up by the microphone and therefore go into the call. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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] Re: Access sensors' data directly
Thank you for your answer, Actually, I am using the HTC Desire and I just reach to 5Hz sampling rate with Java-API. But it is too low for me. Do know how to reach to 50Hz, it is not important whether by using standard API, JNI, or working on the my phone's kernel. Actually, It is also Ok for me, if I can reach to this performance just in my phone. Regards. Babak On Nov 17, 9:04 pm, ip332 iprile...@gmail.com wrote: Short answer: no, you can't read sensors directly. With some hacking steps and couple of weeks of hard work you might be able to duplicate Android's Sensors JNI with exactly the same (or even worse) performance which will work only on your super-rooted-hacked-one-of-a- kind phone. Why bother? With respect to the second question: yes, you can, but the maximum speed is device (driver) dependent and sometimes could be too high for the device. I mean that reading sensors is not the final goal and you need to keep some CPU to process that data, right? Anyway, you need to start from reading Android documentation:http://developer.android.com/reference/android/hardware/SensorManager..., android.hardware.Sensor, int) On Nov 13, 12:24 pm, babak bnade...@gmail.com wrote: Hello all, I am looking for a way to get sensors' data ( especially Accelerometer) directly without using Listener approach. Actually I need to have the data really fast!!! I can not find any way to read sensor data by myself. Anybody knows anything about it? Is it possible to read data with more than 50Hz? Regards, Babak -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Recorded message
Thnaks a lot Στις 18 Νοεμβρίου 2010 6:09 μ.μ., ο χρήστης Mark Murphy mmur...@commonsware.com έγραψε: 2010/11/18 ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com: Is it possible to play a recorded message when making a phone call. I mean to call a contact and when the call is answered to play immediately a recorded message. Android has no access to the in-call audio stream at this time. If the phone is in speakerphone mode, my understanding is that you can play a media file through the speakers, and that it may get picked up by the microphone and therefore go into the call. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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.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: Access sensors' data directly
50Hz is nowhere near the capacity of the CPU to handle sensor data. I've run 2000 Hz on an ARM-7 and still had cycles to spare for other tasks. You'll need to create your own (C-code) ISR which loads values into a circular buffer and then unload the buffer from the Java side, passing the pointer to the buffer via JNI. Of course, you will need to root the phone and rebuild the kernel and it will only ever work on rooted phones with your special kernel but it's totally doable. On Nov 18, 8:25 am, babak bnade...@gmail.com wrote: Thank you for your answer, Actually, I am using the HTC Desire and I just reach to 5Hz sampling rate with Java-API. But it is too low for me. Do know how to reach to 50Hz, it is not important whether by using standard API, JNI, or working on the my phone's kernel. Actually, It is also Ok for me, if I can reach to this performance just in my phone. Regards. Babak On Nov 17, 9:04 pm, ip332 iprile...@gmail.com wrote: Short answer: no, you can't read sensors directly. With some hacking steps and couple of weeks of hard work you might be able to duplicate Android's Sensors JNI with exactly the same (or even worse) performance which will work only on your super-rooted-hacked-one-of-a- kind phone. Why bother? With respect to the second question: yes, you can, but the maximum speed is device (driver) dependent and sometimes could be too high for the device. I mean that reading sensors is not the final goal and you need to keep some CPU to process that data, right? Anyway, you need to start from reading Android documentation:http://developer.android.com/reference/android/hardware/SensorManager..., android.hardware.Sensor, int) On Nov 13, 12:24 pm, babak bnade...@gmail.com wrote: Hello all, I am looking for a way to get sensors' data ( especially Accelerometer) directly without using Listener approach. Actually I need to have the data really fast!!! I can not find any way to read sensor data by myself. Anybody knows anything about it? Is it possible to read data with more than 50Hz? Regards, Babak -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Access sensors' data directly
Hey Bret, Thank you for your fast answer. Actually I never did it before. How should I start? Do you have any related document which helps me? Thank you in advance, On Nov 18, 5:42 pm, Bret Foreman bret.fore...@gmail.com wrote: 50Hz is nowhere near the capacity of the CPU to handle sensor data. I've run 2000 Hz on an ARM-7 and still had cycles to spare for other tasks. You'll need to create your own (C-code) ISR which loads values into a circular buffer and then unload the buffer from the Java side, passing the pointer to the buffer via JNI. Of course, you will need to root the phone and rebuild the kernel and it will only ever work on rooted phones with your special kernel but it's totally doable. On Nov 18, 8:25 am, babak bnade...@gmail.com wrote: Thank you for your answer, Actually, I am using the HTC Desire and I just reach to 5Hz sampling rate with Java-API. But it is too low for me. Do know how to reach to 50Hz, it is not important whether by using standard API, JNI, or working on the my phone's kernel. Actually, It is also Ok for me, if I can reach to this performance just in my phone. Regards. Babak On Nov 17, 9:04 pm, ip332 iprile...@gmail.com wrote: Short answer: no, you can't read sensors directly. With some hacking steps and couple of weeks of hard work you might be able to duplicate Android's Sensors JNI with exactly the same (or even worse) performance which will work only on your super-rooted-hacked-one-of-a- kind phone. Why bother? With respect to the second question: yes, you can, but the maximum speed is device (driver) dependent and sometimes could be too high for the device. I mean that reading sensors is not the final goal and you need to keep some CPU to process that data, right? Anyway, you need to start from reading Android documentation:http://developer.android.com/reference/android/hardware/SensorManager..., android.hardware.Sensor, int) On Nov 13, 12:24 pm, babak bnade...@gmail.com wrote: Hello all, I am looking for a way to get sensors' data ( especially Accelerometer) directly without using Listener approach. Actually I need to have the data really fast!!! I can not find any way to read sensor data by myself. Anybody knows anything about it? Is it possible to read data with more than 50Hz? Regards, Babak -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Access sensors' data directly
Hi All Exist some way that the application can make using dialer calls and that the source app is remains visible 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] Dialer Calls and app remains visible
Hi All Exist some way that the application can make using dialer calls and that the source app is remains visible 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
Re: [android-developers] Re: Access sensors' data directly
Hello I want to thank you if you stop this reave from all this email and my interesting not like that, please try and I thank you again. On Thu, Nov 18, 2010 at 6:17 PM, David Toledo dtole...@gmail.com wrote: Hi All Exist some way that the application can make using dialer calls and that the source app is remains visible 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kind regards Ali Al-Mosawy Vitingsgatan.11 Sweden ra...@thepeace.com +46(0)33153885 +46(0)708192592 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom Navigator app questions
wow, you're in a rush. I thought you had all year for this project! Google have spent man-years of development effort to build a Maps solution. Rather than waste the effort to re-engineer it yourself why don't you leverage it to your advantage instead and do something creative and interesting instead?. Here are some suggestions: - Build a custom overlay of the campus buildings and place them over the Google Maps versions, so that they pan and zoom nicely as the underlying map is manipulated. This will also stop worries about what will happen when you reach the end of your world. Add a menu option to center on the Campus and zoom appropriately so your users can always get back to a useful starting point. - Add a button to Turn on and off current location. - Look at capturing touch events on your buildings so that you could set them as destinations. - Use intents to launch Google Navigator when they have destinations to visit and give them walking directions from their current location. - Go round the campus and physically check GPS accuracy in the buildings. If you are lucky then it may be accurate enough to allow navigation within a building. Do intra-building directions. - Build a server-side app that records the trails of your users as they journey around campus. - Analyse the data to find out what are the most trafficked routes and see if you can suggest improvements to the College staff. - Build 'crowdsourced' feedback to show typical journey times and color the routes according to congestion. Build in a Manhunt or Zombie-type game where students can get points for photographing specific landmarks or finding each other etc. Do you really need more ideas? On Nov 17, 12:59 pm, Mikey mikeynic...@gmail.com wrote: bump. would like to start working on this again but don't know what direction to go! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Access sensors' data directly
babak, You are in the wrong discussion forum for this topic. You need to join the android-platform group where they talk about porting, drivers, special kernel builds, and so on. On Nov 18, 9:03 am, babak bnade...@gmail.com wrote: Hey Bret, Thank you for your fast answer. Actually I never did it before. How should I start? Do you have any related document which helps me? Thank you in advance, On Nov 18, 5:42 pm, Bret Foreman bret.fore...@gmail.com wrote: 50Hz is nowhere near the capacity of the CPU to handle sensor data. I've run 2000 Hz on an ARM-7 and still had cycles to spare for other tasks. You'll need to create your own (C-code) ISR which loads values into a circular buffer and then unload the buffer from the Java side, passing the pointer to the buffer via JNI. Of course, you will need to root the phone and rebuild the kernel and it will only ever work on rooted phones with your special kernel but it's totally doable. On Nov 18, 8:25 am, babak bnade...@gmail.com wrote: Thank you for your answer, Actually, I am using the HTC Desire and I just reach to 5Hz sampling rate with Java-API. But it is too low for me. Do know how to reach to 50Hz, it is not important whether by using standard API, JNI, or working on the my phone's kernel. Actually, It is also Ok for me, if I can reach to this performance just in my phone. Regards. Babak On Nov 17, 9:04 pm, ip332 iprile...@gmail.com wrote: Short answer: no, you can't read sensors directly. With some hacking steps and couple of weeks of hard work you might be able to duplicate Android's Sensors JNI with exactly the same (or even worse) performance which will work only on your super-rooted-hacked-one-of-a- kind phone. Why bother? With respect to the second question: yes, you can, but the maximum speed is device (driver) dependent and sometimes could be too high for the device. I mean that reading sensors is not the final goal and you need to keep some CPU to process that data, right? Anyway, you need to start from reading Android documentation:http://developer.android.com/reference/android/hardware/SensorManager..., android.hardware.Sensor, int) On Nov 13, 12:24 pm, babak bnade...@gmail.com wrote: Hello all, I am looking for a way to get sensors' data ( especially Accelerometer) directly without using Listener approach. Actually I need to have the data really fast!!! I can not find any way to read sensor data by myself. Anybody knows anything about it? Is it possible to read data with more than 50Hz? Regards, Babak -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Webview - Clearing cookies
I am trying to clear cookies using cookiemanager.setcookie , but somehow it doesn't seem to work. Anyone has any idea how to remove a cookie from a webview? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 onCreateDrawableState
I'm trying to create a small edit icon that changes state after an edit has been made. The icon has a white background when no edit has been made and changes to a yellow background once the user has made edits. This let's the user know that the underlying data, which comes from an online source, is dirty and needs to be sync'ed if they want to save their edits. So I'm really piggy-backing on the checked state and taking it to mean dirty in my app. On Nov 17, 11:38 pm, joebowbeer joe.bowb...@gmail.com wrote: Could you achieve the same result extending CompoundButton instead of ImageView? If so, it might be easier to do that. Though I'm not at all sure what you're trying to do. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ATT HTC ARIA - Can not install APK
I have been looking for 3 days on how to install an APK that I created with my SDK on my desktop. I was able to copy the APK from my desktop to my phone but now whenever I try to install the APK on my phone I get an message INSTALL BLOCKED For security, your phone is set to block installation of applications not source in android market. Is it possible to install a non market APK to my ARIA? Thanks, Néstor :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ATT HTC ARIA - Can not install APK
Option #1: Use the adb install command Option #2: If you are using Eclipse, set it up as a run target Option #3: Use the Sideload Wonder Machine: http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine On Thu, Nov 18, 2010 at 1:08 PM, Néstor rot...@gmail.com wrote: I have been looking for 3 days on how to install an APK that I created with my SDK on my desktop. I was able to copy the APK from my desktop to my phone but now whenever I try to install the APK on my phone I get an message INSTALL BLOCKED For security, your phone is set to block installation of applications not source in android market. Is it possible to install a non market APK to my ARIA? Thanks, Néstor :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy 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] New view for MediaController
Hi all, i want alter the MediaController layout. I created MediaControllerAdapter class what extends MediaController for i can do some changes in layout of the MediaController. I already tried add a new View but the android doesn't show the view. So I need the MediaController layout in xml to do some modifications. I already tried search the R file in android source code, but i don't have success. Somebody can give me some help? I tried to find some method to modify the View object, but i don't know how i do this... Best Regards, André Barbosa. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Using onCreateDrawableState
Bret, You can use a standard ImageButton, and a state-drawable that has a selector for android:state_selected. Then use setSelected(true) from your code. No custom component is necessary. -- Kostya 18.11.2010 20:59, Bret Foreman пишет: I'm trying to create a small edit icon that changes state after an edit has been made. The icon has a white background when no edit has been made and changes to a yellow background once the user has made edits. This let's the user know that the underlying data, which comes from an online source, is dirty and needs to be sync'ed if they want to save their edits. So I'm really piggy-backing on the checked state and taking it to mean dirty in my app. On Nov 17, 11:38 pm, joebowbeerjoe.bowb...@gmail.com wrote: Could you achieve the same result extending CompoundButton instead of ImageView? If so, it might be easier to do that. Though I'm not at all sure what you're trying to do. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What's a feature graphic supposed to contain? A list of features? Screenshots of features? (Why need screens then?)
So what exactly is a feature graphic... Thanks! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] start Activity in reciver class
On Thu, Nov 18, 2010 at 4:24 AM, bo yada...@gmail.com wrote: so i would know this is the way or not for start activity in reciver Is what the way? You haven't posted any useful information to help you. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What's a feature graphic supposed to contain? A list of features? Screenshots of features? (Why need screens then?)
Mmmm...it's a misterynobody knowsGoogle? On Thu, Nov 18, 2010 at 7:19 PM, niko20 nikolatesl...@yahoo.com wrote: So what exactly is a feature graphic... Thanks! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) 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
[android-developers] Re: What's a feature graphic supposed to contain? A list of features? Screenshots of features? (Why need screens then?)
Count me in, too, as someone interested in an explanation of this and the 512x512 icon (with no alpha??). Best I can tell is the feature graphic is used when an app gets featured by Google (not holding my breath...) - Patrick On Nov 18, 1:19 pm, niko20 nikolatesl...@yahoo.com wrote: So what exactly is a feature graphic... Thanks! -niko -- http://www.peculiar-games.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] Update information in contacts
Hi, I am trying to update information in Contacts database, phonenumber. Analyzing following code: public ArrayListPhone getPhoneNumbers(String id) { ArrayListPhone phones = new ArrayListPhone(); Cursor pCur = this.cr.query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, ContactsContract.CommonDataKinds.Phone.CONTACT_ID + = ?, new String[]{id}, null); while (pCur.moveToNext()) { phones.add(new Phone( pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)) , pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE)) )); } pCur.close(); return(phones); } I am trying to update info about record with id=1: Doc says that I could use getContentResolver.update(); So I want to use it like ContentResolver cr = getContentResolver(); final ContentValues values = new ContentValues(); values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, ); cr.update(ContactsContract.Contacts.CONTENT_URI, values, where, selectionArgs); Will this work and how to configure where and selectionArgs properly for doing this if it works? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Red spot in Moto Charm in EditText
How can I programmatically get rid of red spot that comes in Moto Charm when you start typing into EditText? 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: Custom Navigator app questions
Sorry, I didn't mean to seem pushy or anything, I'm just under a lot of pressure from my director to be making steady progress. I will look into overlaying the google maps this weekend. Is this part of the MapView structure? As for the touch events on buildings, the whole point of this app is that incoming students don't know where the buildings are. Schedules are given that show the name and room number of the building. Thus, I had created a ListView with all the names of all the buildings, and was planning to have it route you to whatever building you chose. My idea for routing was to create a location node for each building, each crosswalk, everywhere the sidewalk splits or turns, etc. Then, when you hit navigate, it would center you to your nearest node, and it would know your goal node, and then it would be a find the shortest path between nodes. The reason I was going to do it this way was so that it would follow campus's sidewalks and walkways, which (correct me if I'm wrong) Google Navigator doesn't see. Doesn't the walking navigator only walk you along street sides? I really appreciate the feedback! Thanks for the ideas, I'll certainly mull them over when I hunker down with my laptop and droid this weekend. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom Navigator app questions
On Sun, Nov 14, 2010 at 8:05 PM, Mikey mikeynic...@gmail.com wrote: Here's my first issue. With this implementation, the user is able to pan the picture out of the screen or zoom out until it only takes up a pixel or two. Is there any better implementation that will not allow the user to pan beyond the borders of the image or zoom out past the image size? For zooming, determine the max and min zoom levels you want to allow and don't allow going past that. For panning, as the image is panned, detect when been moved as much as it can, then force the location back to that point. So if the left edge has been panned to the right farther than the left of the screen, force the left edge back to the left of the screen. Same idea for the other edges. My question is, since I'm using an ImageView to put the png in, how can I draw on this? Derive from ImageView, call super.onDraw() (or super.draw(), I forget), to do the default image drawing, then draw your circle as required. I've been searching around all day and it appears that Canvas would be the ideal way, since you can call drawCircle(x, y, radius, paint). However, I was unable to find a way to correlate an ImageView to a Canvas and back. The draw function gets a canvas - draw on that. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Developing custom component for android, example - CustomSpinner
Android CustomSpinner Component I've created a custom component which works like a lock of a safe. Component is an extention of ScrollView. It have ability to scroll inner views, but one an inner view always will be centered. After scrolling, the component will do own smooth scrolling to set spinner in a correct position. So if you use it, you can set some own views, set different backgrounds for any view, and for header and footer of CustomSpinner. Source you can find here: http://code.google.com/p/customspinner/ If someone have question how to create own components or how works mine component please answer, but be sure that you have read this: http://developer.android.com/guide/topics/ui/custom-components.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possibile to setup a short-cut key to an android application.
Hi all. Recently I was asked to add a short-key feature to an Android application which allow to directly launch an application. The short key can be back-button, or whatever any hard buttons. Thank in addvance. Regards, Bo Huang -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] view overlap
On Thu, Nov 18, 2010 at 4:32 AM, Shalini coolcool.shal...@gmail.com wrote: I want textview to be below of imageview but it overlaps. When using a RelativeLayout, you must specify what each child is laid out relative to. Otherwise the layout just stacks them, as you have seen. http://developer.android.com/resources/tutorials/views/hello-relativelayout.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Crash reports on Market
Anyone else having trouble getting Server error messages instead of their crash reports on AM? This didn't just start today after the recent updates -- I couldn't get them a couple days ago either. Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Comping Android APK from commandline (Win32)
Hi, I am trying to find a standalone toolset that can compile Android java project/source code to a finished APK. Is there such a thing? I am not having much success finding anything... Currently I compile using Eclipse, but I want a minimal and standalone automated build system. 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] What Intent for Browser without URL
I want to invoke the internet browser app without giving it a URL to open. I have tried a couple of things. What seems to work is this - Intent webIntent = new Intent(Intent.ACTION_MAIN); webIntent.addCategory(Intent.CATEGORY_LAUNCHER); webIntent.addCategory(Intent.CATEGORY_DEFAULT); webIntent.addCategory(Intent.CATEGORY_BROWSABLE); context.startActivity(webIntent); Is there another or better Intent to use? Is it good practice to use the Launcher Intent for an app in this way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Lib OCR para Android
Por favor, alguem saberia informar se existe alguma biblioteca OCR paa an adroid? -- Ray da Costa The best way to predict the future is to invent it. Alan Kay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What Intent for Browser without URL
That is a bogus Intent; it is just blind luck that it happens to only run into the browser as something that happens to match it, and you can't count on that doing what you want anywhere else. I don't believe there is a generic action to start the browser; you are supposed to start it by asking it to view a URI. On Thu, Nov 18, 2010 at 2:39 PM, jotobjects jotobje...@gmail.com wrote: I want to invoke the internet browser app without giving it a URL to open. I have tried a couple of things. What seems to work is this - Intent webIntent = new Intent(Intent.ACTION_MAIN); webIntent.addCategory(Intent.CATEGORY_LAUNCHER); webIntent.addCategory(Intent.CATEGORY_DEFAULT); webIntent.addCategory(Intent.CATEGORY_BROWSABLE); context.startActivity(webIntent); Is there another or better Intent to use? Is it good practice to use the Launcher Intent for an app in this way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth No Android
*Pessoal alguem tem alguma dica de como usar **Bluetooth* - Sem Fioshttp://www.google.com/aclk?sa=Lai=CV3Bwg67lTJanM4mPmQfT4-32B7bbsOQB5vLFtROm2Zu_RxABIPeMqxgoCVC549UgYM3w7oCsA8gBAakCOldfM3yZoz6qBB5P0HAgaQfb6BQz0FJwH-Oi2n8Bdfsdq5dsSXr1vOMnum=1sig=AGiWqtyTIPAbBcwiYR_K9Jx0CSNqIxm6fgadurl=http://www.motorola.com/consumers/v/index.jsp%3Fvgnextoid%3D6d41f3c734bab110VgnVCM108406b00aRCRD%26appInstanceName%3Ddefault%3FWT.srch%3D1%26WT.mc_id%3Dsrch_g_Brasil_bluetoothusb_1094 no andoid: Tem que instalar alguma coisa? * *Ray da Costa The best way to predict the future is to invent it. Alan Kay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Tab Layout
It seems that this place is the text below the since I kept it blank. On Nov 17, 5:13 pm, nikhil nik...@gmail.com wrote: Hello, I am using the tab layout for my app, I have everything set up but there is one minor issue and I am not able to figure out any solution for it. I referred to the android tab laout tutorial that google has provided and assigned separate images for each tab and for each state (selected or not). For some reason some space above the image remain blank, I have no clue where this space is coming from. I have no padding or any king of margin above the widget. I just want my image to fill up the tab completely with any space above it. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 512x512 high res icon required?
Yes, we really need to know the actual size of the graphic when it's viewed in order to figure out what to put in it. On my PC screen, 512x512 is HUGE and I could put a lot of detail in it, but if it gets shrunk down to a centimeter or two on a side on someone's tablet device, it's another story! Doug Gordon GHCS Software On Nov 18, 9:52 am, Christophe christophe.lebesner...@gmail.com wrote: well, that's great, but it would be better to know what we are suppose to put in these pictures (icon feature) and where it is going to be used BEFORE making it mandatory. On Nov 18, 2:48 pm, Warren warrenba...@gmail.com wrote: There wasn't much notice, but there was an email that came from Android Market Support that gave a maintenance window and a list of changes to the market. I was also lucky enough to have designed my icon at 1024x1024, which I then downsize for antialiasing. As for my other apps, I guess I'll have to redo them. Slightly annoying, sure. But then, they are doing this to help us market our apps, so I can't complain too much ;) Warren On Nov 18, 4:35 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Nov 18, 2010 at 9:16 AM, MrChaz mrchazmob...@gmail.com wrote: You forgot to mention the required 1024 'feature' image as well, whatever the hell that is! The featured 1024 is in case your app gets featured, obviously... you are right, I am guessing. The whole thing must be a quiet (half of the internet is talking about it) move to enable existing apps for Google TV. Polishing things is a worthy cause - just look how focused and successful Apple is with such strategy. Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth No Android
Friends anyone have any tips on how to use Bluetooth - Wireless in andoid: You have to install anything? Ray da Costa The best way to predict the future is to invent it. Alan Kay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Lib OCR para Android
Please inform anyone know if there is an adroid paa OCR library? 2010/11/18 Ray da Costa raydaco...@gmail.com -- Ray da Costa The best way to predict the future is to invent it. Alan Kay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Backup of APK to SDCard.. Astro file manager does it...
Yes, but we were told for a very long time not to use copy proctection. It would have been a nice gesture to actually tell us what it means -- that anybody with Astro Flie Manager can pirate our app. I was not aware of that and I was always in the belief that only rooted users could copy off the .apk. On Nov 18, 4:19 pm, String sterling.ud...@googlemail.com wrote: Non-forward-locked APKs are just stored in /data/app, and can be copied the same as any other file. If an app is forward-locked - what the Market calls copy protected - it's kept in a different dir with system-level privs. Which means that you need a rooted device to get at it... but this is the major hole that forward-locking has had from the beginning. String On Nov 18, 6:24 am, Zsolt Vasvari zvasv...@gmail.com wrote: I was wondering about the exact same thing ; actually this very topic made me finally integrate LVL. What stops the user from using Astro to back up my paid app, get a refund and then restore it? On Nov 18, 5:44 am, David Orriss Jr codethou...@gmail.com wrote: Anyone have any idea how this would work or what APIs would be used? I've had people say that root is required, but Astro doesn't seem to need that. Anyone have a code snip to show how this works? -- David Orriss Jr. My blog:http://www.codethought.com/blog- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Tab Layout
This is something that snagged me a while back. If you check the platform layout tab_indicator.xml (android.R.layout.tab_indicator) everything will become clear. It is easy enough to replace this layout with something similar. -Dan On Nov 18, 2:57 pm, nikhil nik...@gmail.com wrote: It seems that this place is the text below the since I kept it blank. On Nov 17, 5:13 pm, nikhil nik...@gmail.com wrote: Hello, I am using the tab layout for my app, I have everything set up but there is one minor issue and I am not able to figure out any solution for it. I referred to the android tab laout tutorial that google has provided and assigned separate images for each tab and for each state (selected or not). For some reason some space above the image remain blank, I have no clue where this space is coming from. I have no padding or any king of margin above the widget. I just want my image to fill up the tab completely with any space above it. Is this possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] xml for email app
Hi, Could anybody point me to the xml that gives a layout similar to the Android email app? Basically it's a list view, with 3 columns per row. The 1st and 3rd columns are fixed width, and the middle column expands to fill the view. I understand how to customize a list view, but I cannot figure out the xml required for those rows. Thanks, John -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebView Authentication help
Hello Everyone! I've created an application which loads a WebView. In order to login, the website requires basic authentication. When i try to access the website via the default browser, I get a pop up box prompting me to enter my user name and password. If I try to access the website via my application, I get error 401 and no pop up. I was wondering if someone could help me out? Thanks -Kyle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: xml for email app
http://stackoverflow.com/questions/2061970/android-help-with-xml-of-a-complex-row-in-a-listview This post at stackoverflow got me far enough to where I could figure the rest out. Basically had to stop using a linear layout and use relative instead. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en