[android-developers] Re: Create database on sd card?

2009-11-22 Thread Jack C. Holt
ite /data/data/ org.example.koolapp/databases/mydb.sqlite A symbolic link is much smaller than the db and the SqlOpenHelper will now be able to find the db! Jack C. Holt Science Applications International Corporation twitter: hackeyflack On Oct 21, 1:29 pm, Mark Murphy wrote: > Markus wrote: &g

[android-developers] Re: webview tel: URLs

2009-06-08 Thread Jack C. Holt
Intent intent = new Intent (Intent.ACTION_VIEW, Uri.parse(url)); startActivity(intent); } This causes the Activity that is registered to handle each protocol type to automatically respond and load up. Jack C

[android-developers] Re: How to find the height of HTML content displayed in a webview

2009-05-27 Thread Jack C. Holt
Yes there does seem to be a problem with View.getContentHeight(). I developed a small app that demonstrates a problem with the value returned in portrait versus landscape mode. I only tested this in the emulator using 1.5. When I press Ctrl-F12 to switch orientation repeatedly, I get 0 in portr

[android-developers] Re: Commit default.properties?

2009-05-26 Thread Jack C. Holt
checked into your version control system. I believe it is never good to check in generated files. On May 18, 7:50 am, "Jack C. Holt" wrote: > I'm using the 1.5_r1 SDK.  I notice that there is a generated file > called "default.properties" in the root directory of my pro

[android-developers] Commit default.properties?

2009-05-18 Thread Jack C. Holt
I'm using the 1.5_r1 SDK. I notice that there is a generated file called "default.properties" in the root directory of my project. The comment inside the file says that it is GENERATED by Android Tools, yet the comment also says "This file must be checked in Version Control Systems." Is this a

[android-developers] Context Menu calling Activity.onMenuItemSelected() instead of Activity.onContextMenuItemSelected()

2009-04-14 Thread Jack C. Holt
I have a ListActivity that I have registered a context menu for by calling registerForContextMenu(getListView()). I have also overridden onCreateContextMenu() as follows: public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu,

[android-developers] Re: Jumping to #link after using loadDataWithBaseURL()

2009-01-13 Thread Jack C. Holt
Well, I now have the solution and it had nothing to do with requestFocusNodeHref() and a lot to do with using javascript. But I believe I was right about my code being in the call tree of loadDataWithBaseUrl(). What I had to do was turn on Javascript by using this code: WebSettings settings = we

[android-developers] Re: Jumping to #link after using loadDataWithBaseURL()

2009-01-13 Thread Jack C. Holt
Well, I'm either stumping everyone or have asked a stupid question ;^)... I think the problem may be that the call to loadDataWithBaseUrl() is within the WebView's webViewClient.shouldOverrideUrlLoading() method and therefore cannot run the javascript at that point. I'm now investigating using c

[android-developers] Re: Jumping to #link after using loadDataWithBaseURL()

2009-01-02 Thread Jack C. Holt
I have googled for strings like "WebView internal link", read the FAQs, and read the online docs for WebView, WebSettings, WebViewClient, WebChromeClent and still I have not been able to determine how to make the web pages I have generated (which contain internal links [i.e., tags]) jump to an in

[android-developers] Re: Jumping to #link after using loadDataWithBaseURL()

2009-01-01 Thread Jack C. Holt
e base URL and it made no difference. On Dec 31 2008, 5:49 pm, "Jack C. Holt" wrote: > I am loading some HTML into a WebView that contains internal links > (i.e., tags). > > How do I make the WebView jump to that location once the WebView is > loaded? --~--~-~--~---

[android-developers] Jumping to #link after using loadDataWithBaseURL()

2008-12-31 Thread Jack C. Holt
I am loading some HTML into a WebView that contains internal links (i.e., tags). How do I make the WebView jump to that location once the WebView is loaded? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt
Does this fall under the "Note About API Documentation" sticky post? i.e., since it isn't documented, don't use it? On Dec 4, 9:52 am, "Jack C. Holt" <[EMAIL PROTECTED]> wrote: > The online docs for ContentProvider/SQLiteDatabase.delete() do not > docume

[android-developers] Re: Cannot delete rows from sqlite database

2008-12-04 Thread Jack C. Holt
See http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction() On Nov 17, 3:28 pm, techvd <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having a strange issue deleting rows from a sqlite database. > Here's the code snippet: > >         mDb.beginTransaction(

[android-developers] ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt
The online docs for ContentProvider/SQLiteDatabase.delete() do not document the third parameter "String[] whereArgs". I assume that the idea is that the second parameter (the where clause) could contain replaceable parameters in the form of question marks (?) and the Strings contained in the wher