[android-developers] Re: SSL from Android

2012-08-20 Thread jcpalmer
Doing a little recycling, but I have found that I can produce the broken pipe exception on a 1.6 Developer Phone (G1). Am connecting fine both http & https. The problem occurs on the first connection after the phone was brought back from "sleep". Redoing gets it working again. Does not repr

[android-developers] Can TLSv1 be turned off on a server?

2012-03-14 Thread jcpalmer
One can debate the importance of TLSv1 being exploited, but HTTP Servers like Jetty now let you turn off protocols. This leads me to question in the subject. Asked another way, can all / any of the Android devices out there do TLSv1.1 or TLSv1.2? My impression of an Android device is that it

[android-developers] Re: Replacement for java.security.CodeSource

2011-10-28 Thread jcpalmer
aded impl to match. Everything works, but I feel I should be adding this check before going to production. Am I now looking closer to the right place? On Oct 28, 4:30 pm, jcpalmer wrote: > Noticed in the java.security.CodeSource java doc online that the class > overview says: > "Le

[android-developers] Replacement for java.security.CodeSource

2011-10-28 Thread jcpalmer
Noticed in the java.security.CodeSource java doc online that the class overview says: "Legacy security code; do not use. " Has something changed? Is not in my aging disk version of the doc (should upgrade but that is not the point) -- You received this message because you are subscribed to the

[android-developers] Win r10 installer JDK detection

2011-03-18 Thread jcpalmer
It's been a while since I have been working on the Android part of my product (in the final stretch!) Have a re-built system as of 02-11, with a 64 bit JDK & also a 32 bit JRE to run Jetty in a service wrapper. C:\Program Files\Java>dir Volume in drive C has no label. Volume Serial Number is 48

[android-developers] Drawing Focus Highlight in Custom Widget

2009-07-06 Thread jcpalmer
I have made a custom widget, very similar to JTable in Swing. It is not editable, and all data is replaced at once, allowing easy checking for the widest item in each column & custom col sizing at replace time. It is a subclass of LinearLayout, filled with re-usable TableRow Objects, sub-classed

[android-developers] Re: ScrollView changs the behavior of the layout even when it's not active.

2009-07-03 Thread jcpalmer
You might try setFillViewport(true), although I never got it to do anything. As an alternative, I would suggest always having the buttons at the bottom, and only scrolling the rest of the view. It is not exactly what you want, but at least you only need one of them. Something like: public clas

[android-developers] Re: Package access for SQLiteDatabase methods

2009-07-02 Thread jcpalmer
Looking at SQLiteDatabase's locking, better to bypass execSQL(): public int executeUpdate(String sql) throws SQLException { lock(); try { native_execSQL(sql); return (int) lastChangeCount(); } catch (SQLiteDatabaseCorruptException e) { onCorruption(); t

[android-developers] Re: Package access for SQLiteDatabase methods

2009-07-02 Thread jcpalmer
Alternatively, I would be satisfied if the java.sql.Statement method, int executeUpdate(String sql) was implemented, keeping the above methods package access. public int executeUpdate(String sql) throws SQLException { execSQL(sql); return (int) lastChangeCount(); } --~--~-~--~

[android-developers] Package access for SQLiteDatabase methods

2009-07-02 Thread jcpalmer
I was wondering why the native lastChangeCount() & lastInsertRow() methods of SQLiteDatabase are Package access? I have my own interface as to what a database should do, that does not presume it is SQL Based, e.g. MIDP's RecordStore. For Android, I am reusing the class written for the javax.sql

[android-developers] Re: How to know whether a table already exist in database?

2009-06-01 Thread jcpalmer
If your program wants to directly know without the side-effect of actually creating the table use something like: public boolean doesTblExist(String tblName){ Cursor rs = null; try{ rs = conn.rawQuery("SELECT * FROM " + tblName + " WHERE 1=0", null ); r

[android-developers] Re: Saving Cookie to Database

2009-06-01 Thread jcpalmer
A cookie can be represented as a String. Wouldn't be easier to store this String as a member of your Activity, and stored onSaveInstanceState() ? Then get it back onCreate(). Simple is a relative term. Yes, it can absolutely be done with a database, but not easier than above. --~--~-~-

[android-developers] Re: SampleView in a Layout?

2009-05-30 Thread jcpalmer
Chris, Sub-Classing View is not going to work. You need to subclass ViewGroup. There are many predefined already to choose from. Here is a LinearLayout Example. private class sampleViewGroup extends LinearLayout{ private final Button button1; private final Button button2; private fi

[android-developers] Re: Using TabHost with Dynamically built (pre-existing Views)

2009-05-26 Thread jcpalmer
Filed issue regarding clearAllTabs() http://code.google.com/p/android/issues/detail?id=2772 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

[android-developers] Re: Using TabHost with Dynamically built (pre-existing Views)

2009-05-26 Thread jcpalmer
Mark, thanks that worked!! For thread recycling, I will put the final classes at the end. Notes: - You need to shift mTabContent down by setting margins. Used a hard-coded 65. Could not find a Static for this value. - Found a bug when I implemented my removeTab() method. You cannot ju

[android-developers] Using TabHost with Dynamically built (pre-existing Views)

2009-05-25 Thread jcpalmer
I have a remove assistant app, which allows customers to perform a subset of functions of a desktop application, untethered. Results are communicated back & forth via messages left at a license server. In order to have a single source for the logic of the assistant, yet run on multiple platforms