[android-developers] Re: VpnService and simple packet capture mechanism?

2012-05-16 Thread John B. Hansen
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

[android-developers] Re: READ/WRITE HISTORY BOOKMARKS permissions broken???

2009-11-24 Thread John B. Hansen
): // 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

[android-developers] READ/WRITE HISTORY BOOKMARKS permissions broken???

2009-10-09 Thread John B. Hansen
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

[android-developers] Re: READ/WRITE HISTORY BOOKMARKS permissions broken???

2009-10-09 Thread John B. Hansen
/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

[android-developers] Re: Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS

2009-10-09 Thread John B. Hansen
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

[android-developers] Re: READ/WRITE HISTORY BOOKMARKS permissions broken???

2009-10-09 Thread John B. Hansen
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

[android-developers] Re: Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...

2009-09-01 Thread John B. Hansen
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

[android-developers] Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...

2009-08-31 Thread John B. Hansen
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

[android-developers] How to Find and navigate to a string in a local WebView web page....

2009-06-29 Thread John B. Hansen
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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
(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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread John B. Hansen
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

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-30 Thread John B. Hansen
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

[android-developers] How to keep focus highlight on ExpandableList group....

2009-04-15 Thread John B. Hansen
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

[android-developers] How to find the Browser Home Page (URL)....

2009-04-06 Thread John B. Hansen
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

[android-developers] How to capture keydown on Home screen....

2009-04-02 Thread John B. Hansen
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

[android-developers] Re: How to capture keydown on Home screen....

2009-04-02 Thread John B. Hansen
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