[android-developers] Re: VpnService and simple packet capture mechanism?
Hi, I'm also interested in using the VpnService to intercept packets (not for capture but for other purposes). In this case I still want to use a tunnel but need to understand how to connect the other end of the tunnel to the device network stack so it funnels selected traffic through tunnel to the my service. My goal is to avoid rooting the device. I am pretty familiar with ToyVpn and the remote server program but its not obvious how to make the VPN tunnel local to the device. Any help appreciated. Thanks. John Hansen On Mar 28, 11:31 pm, Gaku taosoftware.g...@gmail.com wrote: Offcourse you can made non-root packet capture! see folowing url.https://play.google.com/store/apps/details?id=jp.co.taosoftware.andro... -- Gaku On Tuesday, February 7, 2012 7:45:24 AM UTC+9, mellery451 wrote: I'm considering the possibility of using the new android (4.0) VpnService interface to implement a non-root-required packet capture utility. Would it be possible to implement a VpnService such that each packet it received from the device could be written to a file for subsequent analysis and then simply sent on to the active network device for proper delivery? A normal VPN implementation would have a finite number of connections to a vpn server to which all packets should be written. In my case, I'd just want to send the packets along without the server to talk to. Is this feasible or would OS permissions prevent writing the packet to the active network? If it is possible, what APIs could I use to write to the network device(s)? Advice appreciated. -Mike Ellery -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: READ/WRITE HISTORY BOOKMARKS permissions broken???
I'm developing now for Android 2.0 and the Browser Bookmarks and history are working again (in the Emulator and on my Droid). I'm using the following permissions: uses-permission android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS / uses-permission android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS / To get the Browser bookmarks I used: // Get all the bookmark url's using the direct call (gives URL but no longer the title) mCursor = Browser.getAllBookmarks(getContentResolver()); To get the History (all visited URLs): // Use the standard Android call to get the visited URLs (includes Bookmarks) mCursor = Browser.getAllVisitedUrls(getContentResolver()); Note: the history includes the Bookmarks. jh jh On Oct 25, 9:38 am, Vamsee vkanak...@gmail.com wrote: On Oct 9, 9:37 pm, John B. Hansen jnahan...@gmail.com wrote: I've been using the following permissions since SDK 1.1: uses-permission android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS / uses-permission android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS / Now, while migrating to 1.6 I'm seeing two things that are surprising: 1. The 1.6 release notes are saying those permissions are new (have been added) http://developer.android.com/sdk/android-1.6.html#api-changes 2. I'm getting the following warnings in Logcat and my activities that use them are crashing: My app is using the same persmissions too, and I'm having a similar problem - the weird thing is, the app works fine in a 1.6-based avd. But it won't work on the actual device (ADP1 running 1.6 images from HTC) - gives security exceptions saying that the app needs READ_HISTORY_BOOKMARKS permissions, though they were (both read/write permssions) already present in the manifest file. I can confirm this is happening for others too, as people are complaining that it's been force closing on them ever since the 1.6 OTA update happend. Did you happen to find a fix for this, by any chance? TIA, Vamsee. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] READ/WRITE HISTORY BOOKMARKS permissions broken???
I've been using the following permissions since SDK 1.1: uses-permission android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS / uses-permission android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS / Now, while migrating to 1.6 I'm seeing two things that are surprising: 1. The 1.6 release notes are saying those permissions are new (have been added) http://developer.android.com/sdk/android-1.6.html#api-changes 2. I'm getting the following warnings in Logcat and my activities that use them are crashing: 10-09 09:11:40.476: WARN/PackageManager(74): Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS in package com.jbheng 10-09 09:11:40.476: WARN/PackageManager(74): Unknown permission com.android.browser.permission.WRITE_HISTORY_BOOKMARKS in package com.jbheng Is this broke or did I miss something in the 1.6 release notes Any help appreciatedjh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: READ/WRITE HISTORY BOOKMARKS permissions broken???
Here is the message I'm seeing when the activity crashes (which is strange because I still have those exact permissions requested in my manifest): 10-09 09:42:05.616: INFO/ActivityManager(74): Starting activity: Intent { cmp=com.jbheng/.BookmarkInfo (has extras) } 2 10-09 09:42:06.126: WARN/ActivityManager(74): Activity pause timeout for HistoryRecord{433b9ad0 com.jbheng/.KeyDirector} 3 10-09 09:42:06.236: WARN/InputManagerService(74): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub $pr...@43376078 (uid=10004 pid=16398) 4 10-09 09:42:06.316: INFO/ActivityManager(74): Start proc com.android.browser for content provider com.android.browser/.BrowserProvider: pid=16597 uid=10003 gids={3003} 5 10-09 09:42:06.406: INFO/dalvikvm(16597): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 6 10-09 09:42:06.426: INFO/dalvikvm(16597): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=42) 7 10-09 09:42:06.696: INFO/ActivityThread(16597): Publishing provider browser: com.android.browser.BrowserProvider 8 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): Writing exception to parcel 9 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): java.lang.SecurityException: Permission Denial: reading com.android.browser.BrowserProvider uri content://browser/bookmarks from pid=16398, uid=10004 requires com.android.browser.permission.READ_HISTORY_BOOKMARKS 10 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:222) 11 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.content.ContentProvider$Transport.bulkQuery (ContentProvider.java:115) 12 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:97) 13 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.os.Binder.execTransact(Binder.java:287) 14 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at dalvik.system.NativeStart.run(Native Method) 15 10-09 09:42:07.026: DEBUG/AndroidRuntime(16398): Shutting down VM 16 10-09 09:42:07.026: WARN/dalvikvm(16398): threadid=3: thread exiting with uncaught exception (group=0x4001da28) 17 10-09 09:42:07.036: ERROR/AndroidRuntime(16398): Uncaught handler: thread main exiting due to uncaught exception 18 10-09 09:42:07.106: INFO/DumpStateReceiver(74): Added state dump to 1 crashes 19 10-09 09:42:07.126: INFO/ActivityManager(74): Process com.android.settings (pid 16423) has died. 20 10-09 09:42:07.326: ERROR/AndroidRuntime(16398): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.jbheng/com.jbheng.BookmarkInfo}: java.lang.SecurityException: Permission Denial: reading com.android.browser.BrowserProvider uri content://browser/bookmarks from pid=16398, uid=10004 requires com.android.browser.permission.READ_HISTORY_BOOKMARKS On Oct 9, 9:37 am, John B. Hansen jnahan...@gmail.com wrote: I've been using the following permissions since SDK 1.1: uses-permission android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS / uses-permission android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS / Now, while migrating to 1.6 I'm seeing two things that are surprising: 1. The 1.6 release notes are saying those permissions are new (have been added) http://developer.android.com/sdk/android-1.6.html#api-changes 2. I'm getting the following warnings in Logcat and my activities that use them are crashing: 10-09 09:11:40.476: WARN/PackageManager(74): Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS in package com.jbheng 10-09 09:11:40.476: WARN/PackageManager(74): Unknown permission com.android.browser.permission.WRITE_HISTORY_BOOKMARKS in package com.jbheng Is this broke or did I miss something in the 1.6 release notes Any help appreciatedjh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS
Bill, You're not alone. I'm seeing this also in my App and just submitted a post for it this morning. http://groups.google.com/group/android-developers/browse_thread/thread/5c2e9db971caa683/882b43b8201a2c02?lnk=gstq=READ_HISTORY_BOOKMARKS#882b43b8201a2c02 jh On Oct 8, 12:44 am, Bill billnap...@gmail.com wrote: I'm getting reports from users about force closes in my app after the donut OTA. One of them was kind enough to send me a logcat which included these two gems (right after he installed it from market): 10-02 15:56:35.708 D/PackageManager( 71): New package installed in / data/app/com.billnapier.android.livebookmarks.apk 10-02 15:56:35.708 W/PackageManager( 71): Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKSin package com.billnapier.android.livebookmarks 10-02 15:56:35.708 W/PackageManager( 71): Unknown permission android.permission.READ_HISTORY_BOOKMARKSin package com.billnapier.android.livebookmarks The second one makes sense, since that name has gone away. But I can't figure out why the first one would show up, since that permission should exist on the phone. anybody got any clues? I can't reproduce this on my phone, so it's kinda hard to debug. :) Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: READ/WRITE HISTORY BOOKMARKS permissions broken???
I tried instead to use the following permissions but got the same result/crashes/messages: uses-permission android:name=android.permission.READ_HISTORY_BOOKMARKS / uses-permission android:name=android.permission.WRITE_HISTORY_BOOKMARKS / If I knew that Read/Write History Bookmarks would no longer be supported I could remove the features and proceed with my 1.6 release (obviously I'd prefer not to do that). But, right now I'm limbo and its holding up my release. jh On Oct 9, 9:46 am, John B. Hansen jnahan...@gmail.com wrote: Here is the message I'm seeing when the activity crashes (which is strange because I still have those exact permissions requested in my manifest): 10-09 09:42:05.616: INFO/ActivityManager(74): Starting activity: Intent { cmp=com.jbheng/.BookmarkInfo (has extras) } 2 10-09 09:42:06.126: WARN/ActivityManager(74): Activity pause timeout for HistoryRecord{433b9ad0 com.jbheng/.KeyDirector} 3 10-09 09:42:06.236: WARN/InputManagerService(74): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub $pr...@43376078 (uid=10004 pid=16398) 4 10-09 09:42:06.316: INFO/ActivityManager(74): Start proc com.android.browser for content provider com.android.browser/.BrowserProvider: pid=16597 uid=10003 gids={3003} 5 10-09 09:42:06.406: INFO/dalvikvm(16597): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 6 10-09 09:42:06.426: INFO/dalvikvm(16597): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=42) 7 10-09 09:42:06.696: INFO/ActivityThread(16597): Publishing provider browser: com.android.browser.BrowserProvider 8 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): Writing exception to parcel 9 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): java.lang.SecurityException: Permission Denial: reading com.android.browser.BrowserProvider uri content://browser/bookmarks from pid=16398, uid=10004 requi res com.android.browser.permission.READ_HISTORY_BOOKMARKS 10 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.content.ContentProvider$Transport.enforceReadPermission (ContentProvider.java:222) 11 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.content.ContentProvider$Transport.bulkQuery (ContentProvider.java:115) 12 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:97) 13 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at android.os.Binder.execTransact(Binder.java:287) 14 10-09 09:42:06.896: ERROR/DatabaseUtils(16597): at dalvik.system.NativeStart.run(Native Method) 15 10-09 09:42:07.026: DEBUG/AndroidRuntime(16398): Shutting down VM 16 10-09 09:42:07.026: WARN/dalvikvm(16398): threadid=3: thread exiting with uncaught exception (group=0x4001da28) 17 10-09 09:42:07.036: ERROR/AndroidRuntime(16398): Uncaught handler: thread main exiting due to uncaught exception 18 10-09 09:42:07.106: INFO/DumpStateReceiver(74): Added state dump to 1 crashes 19 10-09 09:42:07.126: INFO/ActivityManager(74): Process com.android.settings (pid 16423) has died. 20 10-09 09:42:07.326: ERROR/AndroidRuntime(16398): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.jbheng/com.jbheng.BookmarkInfo}: java.lang.SecurityException: Permission Denial: re ading com.android.browser.BrowserProvider uri content://browser/bookmarks from pid=16398, uid=10004 requires com.android.browser.permission.READ_HISTORY_BOOKMARKS On Oct 9, 9:37 am, John B. Hansen jnahan...@gmail.com wrote: I've been using the following permissions since SDK 1.1: uses-permission android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS / uses-permission android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS / Now, while migrating to 1.6 I'm seeing two things that are surprising: 1. The 1.6 release notes are saying those permissions are new (have been added) http://developer.android.com/sdk/android-1.6.html#api-changes 2. I'm getting the following warnings in Logcat and my activities that use them are crashing: 10-09 09:11:40.476: WARN/PackageManager(74): Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKSin package com.jbheng 10-09 09:11:40.476: WARN/PackageManager(74): Unknown permission com.android.browser.permission.WRITE_HISTORY_BOOKMARKS in package com.jbheng Is this broke or did I miss something in the 1.6 release notes Any help appreciatedjh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...
To workaround this problem, I've had to re-provision one of my old machines with Ubuntu Intrepid (8.10). Its slower but it works fine. For now, I cannot do Android development in Ubuntu Jaunty (9.04). On Aug 31, 9:07 pm, John B. Hansen jnahan...@gmail.com wrote: I just updated my Ubuntu Linux box to Jaunty (9.04). Initially, I had same problem everyone else has on Jaunty i.e. adb doesn't see thedevice: http://groups.google.com/group/android-developers/browse_thread/threa... I followed the instructions and 'adb devices' lists mydevicejust fine nowbut Eclipse/ADT won't load my app or run it on thedevice. Every attempt at execution runs on the Emulator. I get the following message in the console: [2009-08-31 21:01:39 - KeyDirector] Automatic Target Mode: Preferred AVD 'avd15' is not available. Launching new emulator. Anyone have ideas on what might have caused this? I tried deleting and re-building the 'avd15' but it didn't help. Any help appreciatedjh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...
I just updated my Ubuntu Linux box to Jaunty (9.04). Initially, I had same problem everyone else has on Jaunty i.e. adb doesn't see the device: http://groups.google.com/group/android-developers/browse_thread/thread/1c55ed426623e2b8/f30418ededf58677?lnk=gstq=jaunty+usb+problem#f30418ededf58677 I followed the instructions and 'adb devices' lists my device just fine nowbut Eclipse/ADT won't load my app or run it on the device. Every attempt at execution runs on the Emulator. I get the following message in the console: [2009-08-31 21:01:39 - KeyDirector] Automatic Target Mode: Preferred AVD 'avd15' is not available. Launching new emulator. Anyone have ideas on what might have caused this? I tried deleting and re-building the 'avd15' but it didn't help. Any help appreciatedjh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to Find and navigate to a string in a local WebView web page....
Hi, I'm using WebView (quite successfully I might add) on Documents in my SDCARD but I want to provide a page search to reposition the browser to the first occurrence of a query string on the page. This is the typical 'ctrl-f' browser behavior. But as far as I can tell, WebView doesn't support that. How do I do that? I looked at using searchManager with local search but it seemed to be passing back strings instead of re-positioning within a page as I require. Any help appreciated. Thanks. jh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote: Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote: Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh On May 1, 6:31 am, John B. Hansen jnahan...@gmail.com wrote: Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted (I thought Organize-Imports would do that automatically for me? but apparently not?). Anyway, I'm cleaning up the files using this method and it works for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks for the assistance. jh On Apr 30, 7:07 pm, John B. Hansen jnahan...@gmail.com wrote: Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
I also checked and the 'gen' dir is in my java source build path. Its still not working. jh On Apr 30, 2:54 pm, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1
Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and my migrated projects don't work? jh On Apr 30, 5:24 pm, Xavier Ducrohet x...@android.com wrote: Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggestions. I'm stopped. jh On Apr 28, 10:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with1.5SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and recheck build target Android1.1 then I can seeR.java which is generated at gen folder. try this. On Apr 27, 10:46 pm, hc honch...@gmail.com wrote: Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for1.5SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error 1 On Apr 27, 9:05 pm, Satya Komatineni satya.komatin...@gmail.com wrote: considering thatR.javais a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to1.5SDK pre, together with the ADT. I followed the instruction to select Android1.5as target by right clicking on the project, PreferencesAndroid. In this window there are 3 options, Android 1.1 Android1.5 Google APIs I selected Android1.5and Apply, clicked OK. Application compiled nicely. If I go back to the same Preferences and select Android 1.1, Apply, I can no longer compile my application successfully. I get hundreds of the same error Rcannotberesolved Then I try to open this project in another computer that I have not updated the SDK yet. I get the same error. Can anyone help to solve this? I'm trapped until the new SDK is out. -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to keep focus highlight on ExpandableList group....
I'm using an ExpandableListActivity and notice that whenever I select a group item (to expand or collapse it), it highlights briefly and then quickly un-highlights. For my application, I want the group items to remain highlighted. I've tried requestFocus() and several other things but nothing is working. Anyone know how to keep a selected group item (after expand or collapse) highlighted and focused? Any help appreciated. jh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to find the Browser Home Page (URL)....
I need to get the browsers default Home Page URL in a string so I can direct Browser activities that I'm launching. Couldn't find that in the documentation (or perhaps I missed it). Is there a getter for this? Is it under System Settings somewhere? Any help appreciated. Thx. jh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to capture keydown on Home screen....
Hi all, Seems like when the user is on HOME screen and presses an alphabetic key, a Contacts search is started. For my application, I want to do something different with key presses. How do I capture those key presses? Do I have to write a new HOME application (which seems like overkill)? Or, can I capture a keyEvent in a BroadcastReciever? jh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 capture keydown on Home screen....
OK, Thanks Romain. I will consider the Home Screen approachjh On Apr 2, 9:31 am, Romain Guy romain...@google.com wrote: You cannotcapturekeyevents on Home without writing a new Home screen. On Thu, Apr 2, 2009 at 8:31 AM, John B. Hansen jnahan...@gmail.com wrote: Hi all, Seems like when the user is on HOME screen and presses an alphabetickey, a Contacts search is started. For my application, I want to do something different withkey presses. How do Icapturethosekeypresses? Do I have to write a new HOME application (which seems like overkill)? Or, can Icapturea keyEvent in a BroadcastReciever? jh -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---