On 4/15/11, [email protected]
<[email protected]> wrote:
> =============================================================================
> Today's Topic Summary
> =============================================================================
>
> Group: [email protected]
> Url: http://groups.google.com/group/android-developers/topics
>
>   - SQLite Open failed [1 Update]
>     http://groups.google.com/group/android-developers/t/e5a8961d41cfbe0d
>   - How to force use only gprs even though wifi is available [1 Update]
>     http://groups.google.com/group/android-developers/t/baeef4661dc6c9eb
>   - Android Debugger is DOG Slow [3 Updates]
>     http://groups.google.com/group/android-developers/t/7356e22bdf8c9745
>   - Small button that sets something to default - what should it look like?
> [4 Updates]
>     http://groups.google.com/group/android-developers/t/728dfaf6155598e0
>   - help for encryption of sd card storage? [1 Update]
>     http://groups.google.com/group/android-developers/t/bd53a35e25a846da
>   - Running application on Dell Streak emulator [2 Updates]
>     http://groups.google.com/group/android-developers/t/cac17cce3f7d0ad0
>   - String to Float Performance Ideas [7 Updates]
>     http://groups.google.com/group/android-developers/t/c0cf802af81c22f4
>   - Android Apps, move apps into phone's memory, or switch them into
> external memory. [1 Update]
>     http://groups.google.com/group/android-developers/t/b87eecb6909cacf4
>   - Are dialogs supposed to be modal? [1 Update]
>     http://groups.google.com/group/android-developers/t/15a90b08831c3307
>   - How do I get getResources() to work in another class? [1 Update]
>     http://groups.google.com/group/android-developers/t/5c2ed4e901217718
>   - in app purchase question for RESTORE_TRANSACTIONS [1 Update]
>     http://groups.google.com/group/android-developers/t/408ec3205bbb4256
>
>
> =============================================================================
> Topic: SQLite Open failed
> Url: http://groups.google.com/group/android-developers/t/e5a8961d41cfbe0d
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Zsolt Vasvari <[email protected]>
> Date: Apr 14 10:53PM -0700
> Url: http://groups.google.com/group/android-developers/msg/18195d0ede9f692f
>
> Out of thousands of users, one is getting the followiing error
> suddenly:
>
> I/Database( 9312): sqlite returned: error code = 14, msg = cannot open
> file at source line 25467
> E/Database( 9312): sqlite3_open_v2("/data/data/com.mycom.package/
> databases/My Bookback", &handle, 2, NULL) failed
> Caused by: android.database.sqlite.SQLiteException: unable to open
> database file
>       at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
>       at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:
> 1921)
>       at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
> 883)
>
>
> Alll I can see is that error code 14 is simply a CANNOT_OPEN
>
> Anybody has any ideas what could be causing this?  This is lady who
> just migrated to a new phone (Captivate) -- I seriously doubt she
> messed around with the ROM or anything.
>
>
>
> =============================================================================
> Topic: How to force use only gprs even though wifi is available
> Url: http://groups.google.com/group/android-developers/t/baeef4661dc6c9eb
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: kiran <[email protected]>
> Date: Apr 14 10:18PM -0700
> Url: http://groups.google.com/group/android-developers/msg/ace945502e707ae9
>
> Yes you are right, But thing is my application itself making wifi on.
> Is it not possible to on wifi and gprs at a time?
>
>
>
>
>
> =============================================================================
> Topic: Android Debugger is DOG Slow
> Url: http://groups.google.com/group/android-developers/t/7356e22bdf8c9745
> =============================================================================
>
> ---------- 1 of 3 ----------
> From: Eric <[email protected]>
> Date: Apr 14 08:01PM -0700
> Url: http://groups.google.com/group/android-developers/msg/98c8eee078ff43c5
>
> When I run my app in the debugger, via a USB cable, it is completely
> and utterly unusably slow.  I have 2.3.3 installed on my NexusOne.
> How does Google expect us to work with a complete crap environment
> like this?
>
> - Eric
>
>
> ---------- 2 of 3 ----------
> From: TreKing <[email protected]>
> Date: Apr 14 10:22PM -0500
> Url: http://groups.google.com/group/android-developers/msg/e4516f830a13c724
>
>
>> I have 2.3.3 installed on my NexusOne. How does Google expect us to work
>> with a complete crap environment like this?
>
> I have a Nexus One with 2.3.3 installed as well and it runs just fine for
> me.
> A very real possibility is that the "complete crap environment" is your own.
> It would be hard to tell, though, from the complete lack of information in
> your post. "It's slow" doesn't tell us much.
>
> The tools developers are on this group and very active. It's far more useful
> to provide a detailed explanation of the issue you're having, including all
> the relevant variables (OS, Eclipse version, ADT version, any logs, etc,
> etc), with a polite request for help.
>
> And if you do have useful feedback to share, then you would go here:
> https://sites.google.com/a/android.com/tools/feedback
>
> <ass> I mean, how do you expect to get help with a complete crap post like
> this? =P </ass>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
> ---------- 3 of 3 ----------
> From: Zsolt Vasvari <[email protected]>
> Date: Apr 14 09:45PM -0700
> Url: http://groups.google.com/group/android-developers/msg/6589ff25e10c5801
>
> My Nexus One 2.3.3 has NO speed issues with debuggiing.
>
>
>
>
> =============================================================================
> Topic: Small button that sets something to default - what should it look
> like?
> Url: http://groups.google.com/group/android-developers/t/728dfaf6155598e0
> =============================================================================
>
> ---------- 1 of 4 ----------
> From: B Lyon <[email protected]>
> Date: Apr 14 09:58PM -0400
> Url: http://groups.google.com/group/android-developers/msg/f3dfe53b242bec63
>
> I'm adding a small additional button to the *Preference things
> (CheckBox, ColorPicker,Slider)  that will set that value to the
> default.  I don't think there's enough room to put the word "Default"
> on it.  Do you think that there's some image/icon that most folks
> might realize means "set back default'?  I guess I can try the shorter
> word "Reset"... or is there some other best practice that you think
> might be more appropriate?
>
> thx
>
>
> ---------- 2 of 4 ----------
> From: TreKing <[email protected]>
> Date: Apr 14 09:52PM -0500
> Url: http://groups.google.com/group/android-developers/msg/9c8ef68946f35c0b
>
>
>> Do you think that there's some image/icon that most folks might realize
>> means "set back default'?
>
> http://www.google.com/search?q=reset+icon&hl=en&prmd=ivns&source=lnms&tbm=isch&ei=r7KnTcLtLo22tgfah4neBw&sa=X&oi=mode_link&ct=mode&cd=2&ved=0CA4Q_AUoAQ&biw=1223&bih=1001
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
> ---------- 3 of 4 ----------
> From: B Lyon <[email protected]>
> Date: Apr 14 11:21PM -0400
> Url: http://groups.google.com/group/android-developers/msg/cb6204134f15fe96
>
> yeah - thx.  I guess I was curious about opinions because I hadn't
> come across something that did not have a word in it - like"Reset" or
> something - which isn't very big, I guess and can be readably squeezed
> onto a small button just as easily as any kind of non-textual image.
>
> Some kind of "back arrow" would probably be interpreted as a
> navigation action initially (but it's subjective) ... and I think most
> folks wouldn't know how to interpret a "refresh" thing, which is what
> I was also initially considering.
>
> Again - I'm thinking of the most blatant thing that is as unambiguous
> as possible when someone is first seeing the screen, and the word
> "Reset" is probably good enough for that for something very small...
> and "Default" would be only two more characters anyway
>
> or maybe that "road sign on approach to Doxford International" is the way to
> go
>
>
>
>
> ---------- 4 of 4 ----------
> From: TreKing <[email protected]>
> Date: Apr 14 10:34PM -0500
> Url: http://groups.google.com/group/android-developers/msg/6bbe0d71302ecb0a
>
>> which is what I was also initially considering.
>> Again - I'm thinking of the most blatant thing that is as unambiguous as
>> possible when someone is first seeing the screen
>
>
> I think you're over thinking this. Not every action has a clear, obvious
> visual representation. And you cannot predict what any given individual's
> personal experience will lead to associate with a given icon. You might see
> "refresh", I might see "back", someone else might see "undo", or whatever.
>
> Ultimately, it doesn't matter. There is always some learning going on with a
> new app and learning what an icon does is usually fairly straightforward.
>
> I don't know the details of your app, but assuming you don't do "refreshing"
> anywhere else or use the same icon if you do use "refresh" somewhere else,
> it's very easy for the user to figure out that your icon is for reseting. It
> might help if it's initially disabled then becomes enabled on first action.
>
> 1 - Start activity, all defaults, reset disabled
> 2 - I do something, reset button with "refresh" icon is enabled
> 3 - Out of curiosity I press the button - the screen resets and the button
> is disabled again.
> 3b - Optionally post a toast that says "Reset to Defaults"
> 4 - I just learned that this icon is for reseting the things on this screen.
> 5 - I will now associate that icon with reset. The need for the icon to be
> the "most blatant and unambiguous" has evaporated just like that.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>
> =============================================================================
> Topic: help for encryption of sd card storage?
> Url: http://groups.google.com/group/android-developers/t/bd53a35e25a846da
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Nikolay Elenkov <[email protected]>
> Date: Apr 15 11:01AM +0900
> Url: http://groups.google.com/group/android-developers/msg/26ae2e4620af4a66
>
>> internal memory.
>> However based on your description of how external installed apps work
>> (with
>> an encrypted file system) I'm now doubting that understanding :)
>
> You already got an answer, but if you want to explore, just run
> 'mount' in a shell.
> Then you can examine the contents of each app's directory (every app is
> mounted
> on a separate mount point)
>
>
>
> =============================================================================
> Topic: Running application on Dell Streak emulator
> Url: http://groups.google.com/group/android-developers/t/cac17cce3f7d0ad0
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Manish Garg <[email protected]>
> Date: Apr 14 02:58PM -0700
> Url: http://groups.google.com/group/android-developers/msg/3cb99add507dde6f
>
> Hi All,
>
> I need to run my application on Dell streak, I am not able to find out
> any emulator to test it. My application is working good on 2.2
> emulator but on Dell Streak, application is not occupying complete
> screen and some portion of the screen is appearing as black.
>
> I am not able to reproduce same thing on 2.2 emulator.
>
> If someone know any emualtor specific to Dell Streak or some other way
> to test application for Dell Streak, then please let me know.
>
> Thanks & Regards,
> Manish
>
>
> ---------- 2 of 2 ----------
> From: lbendlin <[email protected]>
> Date: Apr 14 06:39PM -0700
> Url: http://groups.google.com/group/android-developers/msg/580fb3927fce52c4
>
> check your manifest file
>
> <supports-screens android:smallScreens="true"
>             android:normalScreens="true" android:largeScreens="true"
>             android:anyDensity="true" />
>
>
>
> =============================================================================
> Topic: String to Float Performance Ideas
> Url: http://groups.google.com/group/android-developers/t/c0cf802af81c22f4
> =============================================================================
>
> ---------- 1 of 7 ----------
> From: Paul <[email protected]>
> Date: Apr 14 04:47PM -0700
> Url: http://groups.google.com/group/android-developers/msg/13f08e8b02f913e7
>
> OK, have stripped the FloatingPointParser bare, but can't run it as
> the native method, parseFltImpl() is throwing an
> UnsatisfiedLinkError...
>
> Maybe a silly question, but any ideas what to do from here?
>
>
>
> ---------- 2 of 7 ----------
> From: Mark Murphy <[email protected]>
> Date: Apr 14 08:02PM -0400
> Url: http://groups.google.com/group/android-developers/msg/9e4b9b659418f647
>
>> the native method, parseFltImpl() is throwing an
>> UnsatisfiedLinkError...
>
>> Maybe a silly question, but any ideas what to do from here?
>
> Start from scratch, as Gaz Davidson did here:
>
> http://bitplane.net/2010/08/java-float-fast-parser/
>
> Or, as the last comment on that blog post indicates, grab the latest
> code from Harmony and try it.
>
> Or, roll your own String->Float using JNI and the NDK.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
>
> ---------- 3 of 7 ----------
> From: ip332 <[email protected]>
> Date: Apr 14 05:04PM -0700
> Url: http://groups.google.com/group/android-developers/msg/6cd06fb40e03ca79
>
> Here is a simple class to convert a string in from "1234.4567" into a
> floating point.
> It doesn't support hexadecimal or 1E23 notations but it is here to
> show the idea
> ===================================
> public class String2Float {
>       final int max_exp = 38;
>       final int max_str_len = 20;
>       float [] values;
>       char [] buffer;
>
>       public String2Float() {
>               buffer = new char [max_str_len + 1];
>               values = new float [max_exp + 1];
>               values[ 0 ] = 1;
>               for( int i = 1; i < max_exp; i++ ) {
>                       values[ i ] = values[ i - 1 ] * 10;
>               }
>       }
>
>       public float Value(String str) {
>               int len = str.length();
>               if( len > max_str_len )
>                       len = max_str_len; // ToDo: add proper error handling
>               // extract all characters into the local buffer
>               str.getChars(0, len - 1, buffer, 0);
>               // find decimal point
>               int point_idx = len;
>               for( int i = 0; i < len; i++ ) {
>                       if( buffer[i] == '.' ) {
>                               point_idx = i;
>                               break;
>                       }
>               }
>               // process all digits before the decimal point
>               float res = 0;
>               for( int i = 0; i < point_idx ; i++ ) {
>                       int digit = buffer[i] - '0';
>                       float value = digit * values[point_idx - i - 1];
>                       res += value;
>               }
>               // process all digits after the decimal point
>               for( int i = point_idx + 1; i < len; i++ ) {
>                       int digit = buffer[i] - '0';
>                       float value = digit / values[i - point_idx];
>                       res += value;
>               }
>               return res;
>       }
> }
>
>
>
>
> ---------- 4 of 7 ----------
> From: ip332 <[email protected]>
> Date: Apr 14 05:05PM -0700
> Url: http://groups.google.com/group/android-developers/msg/87c13c9f7f4590ed
>
> public class String2Float {
>       final int max_exp = 38;
>       final int max_str_len = 20;
>       float [] values;
>       char [] buffer;
>
>       public String2Float() {
>               buffer = new char [max_str_len + 1];
>               values = new float [max_exp + 1];
>               values[ 0 ] = 1;
>               for( int i = 1; i < max_exp; i++ ) {
>                       values[ i ] = values[ i - 1 ] * 10;
>               }
>       }
>
>       public float Value(String str) {
>               int len = str.length();
>               if( len > max_str_len )
>                       len = max_str_len; // ToDo: add proper error handling
>               // extract all characters into the local buffer
>               str.getChars(0, len - 1, buffer, 0);
>               // find decimal point
>               int point_idx = len;
>               for( int i = 0; i < len; i++ ) {
>                       if( buffer[i] == '.' ) {
>                               point_idx = i;
>                               break;
>                       }
>               }
>               // process all digits before the decimal point
>               float res = 0;
>               for( int i = 0; i < point_idx ; i++ ) {
>                       int digit = buffer[i] - '0';
>                       float value = digit * values[point_idx - i - 1];
>                       res += value;
>               }
>               // process all digits after the decimal point
>               for( int i = point_idx + 1; i < len; i++ ) {
>                       int digit = buffer[i] - '0';
>                       float value = digit / values[i - point_idx];
>                       res += value;
>               }
>               return res;
>       }
> }
>
>
>
>
> ---------- 5 of 7 ----------
> From: ip332 <[email protected]>
> Date: Apr 14 05:16PM -0700
> Url: http://groups.google.com/group/android-developers/msg/7a8e1e0ffa1163e5
>
> Sorry about double posting :(
> BTW the performance of this method is about 10 times better.
>
>
> ---------- 6 of 7 ----------
> From: lbendlin <[email protected]>
> Date: Apr 14 05:22PM -0700
> Url: http://groups.google.com/group/android-developers/msg/dcb2c6911118268d
>
> Is a SQLite database not appropriate in such a scenario? You'd get the
> conversion for free...
>
>
> ---------- 7 of 7 ----------
> From: Paul <[email protected]>
> Date: Apr 14 05:37PM -0700
> Url: http://groups.google.com/group/android-developers/msg/66e0ed593c81427f
>
> I'd be interested to see how an SQLite implementation could work - you
> could define each SVG document in a table, and then each shape from
> that document in a second table, but where it would start to get
> complicated would be that each shape each shape type has unique
> properties.  For instance, for the SVG Path shape, it can be made up
> of any number of instructions, along with other meta data.  For the
> SVG Circle shape, there are no instructions, but different meta data
> fields.
>
> Essentially you'd need to have something like:
>
> Document (1toM) -> Shapes (1to1) -> (Path (1toM) -> Instructions |
> Circle | Line | etc etc for all shapes)
>
> A simpler layout would be just:
>
> Document (1toM) -> Shapes
>
> Where you store the raw XML that defines each shape in the Shapes
> table, but then you still need to parse that XML, leaving the same
> issue.
>
> Any suggestions?
>
>
>
>
> =============================================================================
> Topic: Android Apps, move apps into phone's memory, or switch them into
> external memory.
> Url: http://groups.google.com/group/android-developers/t/b87eecb6909cacf4
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: TreKing <[email protected]>
> Date: Apr 14 07:22PM -0500
> Url: http://groups.google.com/group/android-developers/msg/d46ded6138bb3b25
>
> On Thu, Apr 14, 2011 at 6:58 PM, sblantipodi
>
>> I can't find this info in the doc, so I asked here,
>
> You didn't state that you even tried looking. Since this information is
> readily available, I could only assume you had not.
>
>
>> If you don't want to answer, simply save posts and time ;)
>
> If I didn't want to answer, I wouldn't, but I did, so I did.
> If you can find the answer in the docs, simply save posts and time ;)
>
> Try this: http://developer.android.com/search.html#q=sdcard&t=0
>  <http://developer.android.com/search.html#q=sdcard&t=0>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>
> =============================================================================
> Topic: Are dialogs supposed to be modal?
> Url: http://groups.google.com/group/android-developers/t/15a90b08831c3307
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: TreKing <[email protected]>
> Date: Apr 14 05:10PM -0500
> Url: http://groups.google.com/group/android-developers/msg/7bb913deaba9745c
>
> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
>
>> I guess it is possible to quick fast enough to beat the system. May be you
>> need to set a variable to detect this.
>
> Or just disable the second button before showing the dialog, as it states in
> the post linked to.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>
> =============================================================================
> Topic: How do I get getResources() to work in another class?
> Url: http://groups.google.com/group/android-developers/t/5c2ed4e901217718
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Joao Braga <[email protected]>
> Date: Apr 14 06:25PM -0300
> Url: http://groups.google.com/group/android-developers/msg/e94ea104d16f7aa5
>
> I'll post my example.
> I'm creating a Bitmap object based on a PNG files in my resources.
>
>
> private Resources res = getResources();
> Bitmap bmp = BitmapFactory.decodeResource(res, R.drawable.image);
>
>
>
>
> 2011/4/14 Digeridoo <[email protected]>
>
>
>
>
> =============================================================================
> Topic: in app purchase question for RESTORE_TRANSACTIONS
> Url: http://groups.google.com/group/android-developers/t/408ec3205bbb4256
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Andrei <[email protected]>
> Date: Apr 14 11:40AM -0700
> Url: http://groups.google.com/group/android-developers/msg/124d3957aba6dc27
>
> For a managed item, how do I get order number for item
> that was once purchased and the app is installed on new device
> Thanks
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
Sent from my mobile device

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to