Re: [android-developers] ArrayIndexOutOfBoundsException when decrypting file

2014-06-12 Thread gnugu
only when I decrypt binary file AND that only happens random. Same file can be decrypted and on the second/third/random attempt it throws an error. Any ideas what that might be? Thanks. On Tuesday, June 10, 2014 1:59:16 AM UTC-7, Nikolay Elenkov wrote: On Sat, Jun 7, 2014 at 6:52 AM, gnugu rho

Re: [android-developers] ArrayIndexOutOfBoundsException when decrypting file

2014-06-12 Thread gnugu
NOTE: By 'text' in the post above I mean a short data from sql db. In which case I use doFinal(data) and am not using cipher streams at all. On Thursday, June 12, 2014 9:44:35 AM UTC-7, gnugu wrote: Hi Nikolay, Thanks for your response. I have tried _cipher = Cipher.getInstance

Re: [android-developers] ArrayIndexOutOfBoundsException when decrypting file

2014-06-12 Thread gnugu
, gnugu wrote: NOTE: By 'text' in the post above I mean a short data from sql db. In which case I use doFinal(data) and am not using cipher streams at all. On Thursday, June 12, 2014 9:44:35 AM UTC-7, gnugu wrote: Hi Nikolay, Thanks for your response. I have tried _cipher = Cipher.getInstance

Re: [android-developers] ArrayIndexOutOfBoundsException when decrypting file

2014-06-12 Thread gnugu
If I could only type properly. It should read: *It always only fails at the END OF input stream.* On Thursday, June 12, 2014 10:32:45 AM UTC-7, gnugu wrote: NOTE2: When decrypting the file using public void encryptDecrypt(InputStream input, OutputStream output) { final int

[android-developers] Does anybody know how to use session cookies with Volley?

2013-05-19 Thread gnugu
Hi, I'm using the new com.android.volley library. I need to attach a session cookie when doing a request. Does anybody know how to deal with this in Volley? Thanks. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Multiple Users support on emulator (API level 17)

2012-11-15 Thread gnugu
Hi, I would like to test the behaviour of my app that stores data on sdcard on Android 4.2 with multiple users enabled. I have created AVD, based it on Nexus7 device with the target Google APIs - API Level 17. Inside Settings under Device there is no Users section. Does emulator not support

[android-developers] Pickers vs Spinners (design choice question)

2012-04-05 Thread gnugu
Hi All, I can't find dedicated group to design discussions that would be open for questions one might have after reading Android Design guide lineshttp://developer.android.com/design/index.html . So, here it is: There are date, time and number pickers. There is no a lose picker that would let

[android-developers] Quick question about Quick Actions

2012-01-31 Thread gnugu
Hi, I don't see Quick Actions metaphor over at Android Design guide ( http://developer.android.com/design/index.html). Is that metaphor not being endorsed? Has it been de-favoured in favour of Multi-panel Layouts, Swipe Views and Action Bar? So instead of having Quick Actions on item in a list

Re: [android-developers] Quick question about Quick Actions

2012-01-31 Thread gnugu
I noticed that too. I guess, they are going away from Quick Actions. Thanks Mark. -- 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

[android-developers] Does Quick Search Box on Froyo (2.2) limit the number of suggestions?

2010-10-13 Thread gnugu
Hi, I have an app that integrates with Quick Search Box. In suggestions (when my app's search is selected) it only shows up to 50 results even if there is plenty more. Is this some sort of limitation in QSB in Froyo? Did Froyo change the way we should integrate with QSB? Thanks. -- You

[android-developers] Re: Does Quick Search Box on Froyo (2.2) limit the number of suggestions?

2010-10-13 Thread gnugu
And here is the answer: class SuggestionsAdapter extends ResourceCursorAdapter { private static final int QUERY_LIMIT = 50; On Oct 13, 9:06 am, gnugu rho...@gmail.com wrote: Hi, I have an app that integrates with Quick Search Box. In suggestions (when my app's search is selected

[android-developers] Re: Does Quick Search Box on Froyo (2.2) limit the number of suggestions?

2010-10-13 Thread gnugu
Here is some more info: http://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_PARAMETER_LIMIT Question is how exactly do I ignore it?? On Oct 13, 3:12 pm, gnugu rho...@gmail.com wrote: And here is the answer: class SuggestionsAdapter extends ResourceCursorAdapter

[android-developers] Re: Eclipse Helios running SLOW

2010-09-14 Thread gnugu
Hi, same problem here. I don't have JAX-WS proposals in ContentAssist-Advanced. I only have Java Proposals (Task-Focused) and SWT Template Proposals and Template Proposals. Any suggestion? Thanks. On Aug 6, 8:14 am, Evan Ruff evan.r...@gmail.com wrote: Hey guys, Just upgraded to 3.6 after

[android-developers] Re: Eclipse Helios running SLOW

2010-09-14 Thread gnugu
Did a bit of looking around and found that I don't have any of the JAX- WS plugins installed at all in my Eclipse. I also noticed that it only happens when I expect code assist on Android based classes. Could it be ADT? On Sep 14, 9:06 am, gnugu rho...@gmail.com wrote: Hi, same problem here

[android-developers] Re: Populating custom layout from xml resource.

2010-08-09 Thread gnugu
) while parsing the XML? Thanks. On Aug 8, 5:41 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Aug 8, 2010 at 8:00 PM, gnugu rho...@gmail.com wrote: as I stated in my original post I already have created custom layout with and ImageView and two TextViews. The question at hand is: How

[android-developers] Re: Populating custom layout from xml resource.

2010-08-09 Thread gnugu
And one more question. If I define my own plain XML resource like in my post above, what about the localization? Would I put the xml file in values and later values-DE and it would work just like with the strings? On Aug 9, 7:37 am, gnugu rho...@gmail.com wrote: Hi Mark, thanks for your

[android-developers] Re: Populating custom layout from xml resource.

2010-08-09 Thread gnugu
Great Mark, thank you! I didn't know that one can do xml-de. I thought that only values could be localized. I'll try to put it together and post the solution here for others. Thank you again! On Aug 9, 7:47 am, Mark Murphy mmur...@commonsware.com wrote: On Mon, Aug 9, 2010 at 10:41 AM, gnugu

[android-developers] Re: Populating custom layout from xml resource.

2010-08-09 Thread gnugu
wire it up like so: this.setListAdapter(ListMenuArrayAdapter.createFromResource(this, R.xml.main_screen_actions)); I hope somebody will find that useful. On Aug 9, 7:53 am, gnugu rho...@gmail.com wrote: Great Mark, thank you! I didn't know that one can do xml-de. I thought that only values could

[android-developers] Populating custom layout from xml resource.

2010-08-08 Thread gnugu
Hello, I have created a custom list item layout just like in this article http://developer.android.com/resources/articles/layout-tricks-efficiency.html. Each list item has icon, title and summary. I would like to declare an xml resource that would provide data for that list. Just like you use

[android-developers] Re: Populating custom layout from xml resource.

2010-08-08 Thread gnugu
, how can I define the content in XML resource? On Aug 8, 2:53 pm, Joseph Earl joseph.w.e...@gmail.com wrote: Create a custom layout with an ImageView and two TextViews. On Aug 8, 7:07 pm, gnugu rho...@gmail.com wrote: Hello, I have created a custom list item layout just like

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-13 Thread gnugu
and coming and got FileNotFound error in every subsequent attempt. It will show the picture in blurry mode and come back for more data to sharpen it? Something like that. So now I have a security hole :( On Apr 12, 11:22 am, Mark Murphy mmur...@commonsware.com wrote: gnugu wrote: Indeed that line

[android-developers] How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
Hi, I have a ContentProvider that serves an image to default built in image viewer. Ever since Android 2.1 the built in image viewer throws FileNotFound into the log. I also find this in the log: 04-12 09:28:54.066: ERROR/UriTexture(11541): Unable to load image from URI

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
12, 9:39 am, gnugu rho...@gmail.com wrote: Hi, I have a ContentProvider that serves an image to default built in image viewer. Ever since Android 2.1 the built in image viewer throws FileNotFound into the log. I also find this in the log: 04-12 09:28:54.066: ERROR/UriTexture(11541): Unable

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
the exception is thrown * throw new FileNotFoundException(msg); } else { DatabaseUtils.readExceptionFromParcel(reply, msg, code); } } Does anybody know whatint code = reply.readInt(); is for? Why is it returning 1? On Apr 12, 10:37 am, gnugu rho...@gmail.com wrote: Here

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
...@commonsware.com wrote: gnugu wrote: It fails in DatabaseUtils method: public static void readExceptionWithFileNotFoundExceptionFromParcel(         Parcel reply) throws FileNotFoundException {     int code = reply.readInt();     if (code == 0) return;     String msg = reply.readString

[android-developers] Can't pass image to default image viewer since 2.1 upgrade.

2010-04-07 Thread gnugu
Hi, The following works fine on 2.1 emulator. It does NOT work on a 2.1 device :(. I pull encrypted image from my storage and want to show it using a default built in image viewer. For that I have built my own ImageProvider class. Here is how I invoke it: // pass data to image provider

[android-developers] Re: ItemizedOverlay.onTap() imprecise?

2010-02-16 Thread gnugu
) { return true; } return false; } On Feb 15, 3:50 pm, gnugu rho...@gmail.com wrote: Hello, I'm using Google maps. I put the markers on map and my inheritedItemizedOverlayoverrides onTap() method. Markers are 32x32 images

[android-developers] ItemizedOverlay.onTap() imprecise?

2010-02-15 Thread gnugu
Hello, I'm using Google maps. I put the markers on map and my inherited ItemizedOverlay overrides onTap() method. Markers are 32x32 images. However, I can tap quite a bit away from the marker and still receive the event. This becomes a problem when markers are close to each other. Anybody knows

[android-developers] Re: simple web search based on location

2010-02-03 Thread gnugu
I too have the same experience. Can someone from Google confirm this being a bug??? On Jan 27, 9:08 am, Sunny menon1...@gmail.com wrote: Adding to my email below, let me share with you what I am trying to do and the results I get:- ListAddress wfList = gc.getFromLocationName(sb.toString(),5 )

[android-developers] Re: simple web search based on location

2010-02-03 Thread gnugu
John, regarding your suggestion http://code.google.com/apis/ajaxsearch/documentation/#fonje. What map key would I use? As far as I know it tied to a domain name. Any suggestions? On Feb 3, 1:12 pm, gnugu rho...@gmail.com wrote: I too have the same experience. Can someone from Google confirm

[android-developers] Re: How to search for a location on MapView?

2010-02-03 Thread gnugu
(); } } On Feb 2, 3:14 pm, gnugu rho...@gmail.com wrote: Got it!http://developer.android.com/reference/android/location/Geocoder.html... On Feb 2, 3:03 pm, Rastislav Hodul rho...@gmail.com wrote: Thanks. I'm looking at it, but can't see any example of search. Rastio Hodul

[android-developers] Re: simple web search based on location

2010-02-03 Thread gnugu
(); } } On Feb 3, 1:25 pm, gnugu rho...@gmail.com wrote: John, regarding your suggestionhttp://code.google.com/apis/ajaxsearch/documentation/#fonje. What map key would I use? As far as I know it tied to a domain name. Any suggestions? On Feb 3, 1:12 pm, gnugu rho...@gmail.com

[android-developers] How to search for a location on MapView?

2010-02-02 Thread gnugu
Hi, I'm adding MapView to my app and I would like the user to be able to search for location just like in Google Maps app. Is there any way to do it? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread gnugu
, gnugu rho...@gmail.com wrote: Hi, I'm adding MapView to my app and I would like the user to be able to search for location just like in Google Maps app. Is there any way to do it? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread gnugu
2, 2:09 pm, gnugu rho...@gmail.com wrote: Or better yet, would it be possible to invoke Google Maps from my application, do the search there and have it return lat/lng back to me? When user clicks on a search result several options like Show on Map/ GetDirections etc a re presented. Could I

[android-developers] Re: How to search for a location on MapView?

2010-02-02 Thread gnugu
. Rastio Hodul rho...@gmail.com 2010/2/2 Rogério de Souza Moraes rogerio.so...@gmail.com: Hi, did you looked at the code MJAndroid? Download it at http://examples.oreilly.com/9780596521509/ It's a good example for you! Regards, Rogerio 2010/2/2 gnugu rho...@gmail.com Ok

[android-developers] Re: How to write ContentProvider for content not stored in a file nor DB?

2010-01-08 Thread gnugu
(or ContentResolver.openInputStream which calls it). However, if you just need to pass a blob of decrypted data, you can pass that as a blob in one of the Cursor columns.  No need for it to hit the filesystem at all. On Jan 7, 4:37 pm, gnugu rho...@gmail.com wrote: Data is encrypted and stored

[android-developers] Re: Difference between ImageView.setImageBitmap() and RemoteView.setImageViewBitmap() ????

2010-01-07 Thread gnugu
Jeff, I'm trying to create AssetFileDescriptor from byte array. Could you please provide some example how to create AssetFileDescriptor without writing into a file system? Thanks. On Dec 8 2009, 12:50 am, Jeff Sharkey jshar...@android.com wrote: One alternative you can use is

[android-developers] How to write ContentProvider for content not stored in a file nor DB?

2010-01-07 Thread gnugu
Hi, I'm writing a ContentProvider that will provide content that is not stored in a file or database. I understand hat I have to overwrite openAssetFile() method. My problem is that I don't know how to create AssetFileDescriptor from data in memory (byte array or stream). Can anybody please

[android-developers] Re: How to write ContentProvider for content not stored in a file nor DB?

2010-01-07 Thread gnugu
is stored. I'm fetching data from a web service in JSON format. I decided to encapsulate the interactions with the service, which is RESTful, as a ContentProvider for Android. It's working well, so far. I still need to integrate authentication. On Jan 7, 3:08 pm, gnugu rho...@gmail.com wrote: Hi

[android-developers] Re: BroadcastReceiver for incoming Gmail?

2010-01-02 Thread gnugu
http://www.openintents.org/en/node/121 On Jan 1, 10:43 am, Rames rame...@gmail.com wrote: Hi Gnugu,   Is it possible to launch theGmailapplication from by code in my application? Thanks, Rames.P. On Nov 29 2009, 2:10 am, gnugu rho...@gmail.com wrote: Here is how: 1. You need

[android-developers] How to develop for forward compatibility.

2009-12-10 Thread gnugu
I have an app that uses People provider. This is deprecated in version 2.0. I have built my application against API1.6 and set uses-sdk android:minSdkVersion=4 android:targetSdkVersion=4 / Everything was fine until I wanted to run the app on Android 2.0. Not only is People deprecated it actually

[android-developers] Re: How to develop for forward compatibility.

2009-12-10 Thread gnugu
Great that worked!! Thanks! Right click on the project - Debug as - Debug Configurations And then Android Application - Your app -Target and select Manual. Does anybody know the answer to this? 4. What devices will see such application on the Market? On Dec 10, 3:37 pm, Maps.Huge.Info (Maps

[android-developers] Re: BroadcastReceiver for incoming Gmail?

2009-11-28 Thread gnugu
needed at a time. HTH. On Nov 27, 8:56 am, Olivier orose...@mandriva.com wrote: gnugnu, did you get a solution ? On 8 nov, 20:55, gnugu rho...@gmail.com wrote: Thanks moneytoo for your answer. How does Google themselves put the notification on the status bar then? I'm sure

[android-developers] java.io.IOException: Unable to open sync connection!

2009-11-20 Thread gnugu
Hello, running Eclipse on Ubuntu 9.10, connected real HTC Dream which works just fine on another (Windows) machine. [2009-11-20 15:24:18 - ShoppingList]-- [2009-11-20 15:24:18 - ShoppingList]Android Launch! [2009-11-20 15:24:18 - ShoppingList]adb is running normally.

[android-developers] Re: java.io.IOException: Unable to open sync connection!

2009-11-20 Thread gnugu
My bad. I had it connected to the monitor USB. Connected to the computer USB and works fine. Underpowered? On Nov 20, 3:44 pm, gnugu rho...@gmail.com wrote: Hello, running Eclipse on Ubuntu 9.10, connected real HTC Dream which works just fine on another (Windows) machine. [2009-11-20 15:24

[android-developers] What happens when I send APK to a paying customer for testing?

2009-11-09 Thread gnugu
Hi, I have a customer who purchased my app from the Market. He discovered a bug which I'm working on fixing. I would like to send him an APK to test if the fix is proper. What happens if he installs my APK over the one from the Marked. Will he ever get the updates in the future? Thanks. --

[android-developers] Re: What happens when I send APK to a paying customer for testing?

2009-11-09 Thread gnugu
Diconnect, you answered while I was typing my above post. So which one is it than? What's the best way for me to use the client to test the paid for app without him losing later updates? On Nov 9, 10:56 am, gnugu rho...@gmail.com wrote: Hi Richard, thank you for your response. I do increase

[android-developers] Re: What happens when I send APK to a paying customer for testing?

2009-11-09 Thread gnugu
-element.h... -- RichardC On Nov 9, 6:22 pm, gnugu rho...@gmail.com wrote: Hi, I have a customer who purchased my app from the Market. He discovered a bug which I'm working on fixing. I would like to send him an APK to test if the fix is proper. What happens if he installs my APK over

[android-developers] Re: BroadcastReceiver for incoming Gmail?

2009-11-08 Thread gnugu
/detail?id=3668 On Nov 7, 11:06 pm, gnugu rho...@gmail.com wrote: Hello, Does anybody know how to setupBroadcastReceiver'saction and intent- filter so it can be invoked whenGmailis received? I thing CubeWorks does it, so it's not entirely impossible. Any help is welcome. Thank you

[android-developers] BroadcastReceiver for incoming Gmail?

2009-11-07 Thread gnugu
Hello, Does anybody know how to setup BroadcastReceiver's action and intent- filter so it can be invoked when Gmail is received? I thing CubeWorks does it, so it's not entirely impossible. Any help is welcome. Thank you! -- You received this message because you are subscribed to the Google

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-14 Thread gnugu
Greivin, If you had conditional compile you would have to compile two versions of your application anyway, wouldn't you? So your users would be equally confused as if you maintained two versions of the code. Maintaining two versions of the code isn't that confusing. In fact I personally think

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-14 Thread gnugu
- in this case the Deprecated classes are correctly designated in the API docs for 1.6. On Oct 14, 9:08 am, gnugu rho...@gmail.com wrote: Greivin, If you had conditional compile you would have to compile two versions of your application anyway, wouldn't you? So your users would be equally

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread gnugu
: If you set it to 3 it won't be installed on older devices.  I don't know enough about the dev tools to help with compiling problems there (especially without even seeing the error message). On Wed, Oct 7, 2009 at 10:18 AM, gnugu rho...@gmail.com wrote: Just to make sure I understand

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread gnugu
it. Some people may try to game the market and push regular updates just to benefit from that spike. However, many users hate constant updates, so expect lots of too many updates - uninstalled 1-star ratings. Besides, gaming the market is a dirty thing to do. -Mike On Oct 8, 11:38 am, gnugu

[android-developers] Should we still force our apps to API level 2?

2009-10-07 Thread gnugu
Hi, Google suggests in Dev Guide that we set the API level as low as possible to cover most of the devices. Somebody recently pointed out in my app that when they are typing in the password the automatic suggestions pop up making it annoying. I found out the solution, but is only available in

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-07 Thread gnugu
of devices left at API 2, though I really don't know any numbers, so it may not be that important.) On Wed, Oct 7, 2009 at 9:51 AM, gnugu rho...@gmail.com wrote: Hi, Google suggests in Dev Guide that we set the API level as low as possible to cover most of the devices. Somebody recently

[android-developers] Re: Application object life cycle.

2009-10-01 Thread gnugu
:58 PM, gnugu rho...@gmail.com wrote: Oh, also, when my process is killed while being in the background does coming back from gallery restart the process jumping directly to activity B? It's not in the documentation, that's why I need to ask here. Thanks. On Sep 30, 3:52 pm, Dianne

[android-developers] Application object life cycle.

2009-09-30 Thread gnugu
Hi, When I start my application I prompt the user for the password and use it to instantiate my data adapter object that I will need throughout the application. So I store it in Application object. My activity A prompts user for pwd, instantiates data adapter, sticks it to Application object and

[android-developers] Re: Application object life cycle.

2009-09-30 Thread gnugu
NOT be called. Thanks. On Sep 30, 3:52 pm, Dianne Hackborn hack...@android.com wrote: Yes your process can be killed at any time when it is in the background (and onTerminate is NOT called). On Wed, Sep 30, 2009 at 3:47 PM, gnugu rho...@gmail.com wrote: Hi, When I start my application I

[android-developers] Re: Application object life cycle.

2009-09-30 Thread gnugu
process can be killed at any time when it is in the background (and onTerminate is NOT called). On Wed, Sep 30, 2009 at 3:47 PM, gnugu rho...@gmail.com wrote: Hi, When I start my application I prompt the user for the password and use it to instantiate my data adapter object that I will need

[android-developers] Why does my EditText hint have different font spacing?

2009-09-01 Thread gnugu
Hi, my activity screen has 3 EditText's for changing the password. Somehow the hint on the oldPassword has different font spacing then the other two. I have not changed any properties of the EditText in the Activity code. I'm sure it's something obvious, I just don't see it. Thanks. Here is

[android-developers] Re: Why does my EditText hint have different font spacing?

2009-09-01 Thread gnugu
()); Still would like to know why that is. Is it a bug, or does android:password=true do more then just setting the transformation? On Sep 1, 9:12 am, gnugu rho...@gmail.com wrote: Hi, my activity screen has 3 EditText's for changing the password. Somehow the hint on the oldPassword has different

[android-developers] Re: How can I sort items in the ListView?

2009-08-28 Thread gnugu
. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 3:31 pm, gnugu rho...@gmail.com wrote: Hi, I cannot get

[android-developers] How can I sort items in the ListView?

2009-08-27 Thread gnugu
Hi, I cannot get the data from SqLite using ORDER BY because the data is encrypted, so the sort wouldn't work there. Is it possible to sort the items in the ListView? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Programming for performance.

2009-07-23 Thread gnugu
is the master key. Craig. On Jul 22, 11:59 am, gnugu rho...@gmail.com wrote: Hi Mark, Why? Encrypt the columns you need encrypted. Say you have a database with 100 notes. You use a password as a base for encryption key. You decide to change your password. Type in the old one and the new

[android-developers] Re: Programming for performance.

2009-07-23 Thread gnugu
;         } All you need to do when you read is to use a Map where you place notes that belong to a certain folder. You can have unlimited depth if you do that. On 22 Juli, 22:34, gnugu rho...@gmail.com wrote: Richard, thanks for suggestion. My notes are structured. The app allows

[android-developers] Programming for performance.

2009-07-22 Thread gnugu
Hi, I'm working on an application where I want to save bunch of information in the XML file. I am not using MySQL because I want all the info to be encrypted and in one place. I don't know how this could be done in the data base. I was thinking that I would use DOM Document for my data adapter

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
it, On Wed, Jul 22, 2009 at 9:23 AM, gnugu rho...@gmail.com wrote: Hi, I'm working on an application where I want to save bunch of information in the XML file. I am not using MySQL because I want all the info to be encrypted and in one place. I don't know how this could be done in the data

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
Sorry, I mean SqLite and not MySQL. On Jul 22, 11:39 am, gnugu rho...@gmail.com wrote: Dianne, It is not reading and writing that's slow. I have a class that has Notes field (ArrayListNote). I wrote my test to create 1000 note objects and add it took 45 seconds. Because I can't get XML

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
-encrypt records one by one. Somehow I don't like that. May be I'm wrong and it will not be a problem. On Jul 22, 11:55 am, Mark Murphy mmur...@commonsware.com wrote: gnugu wrote: Because I can't get XML string out of DOM Document I can't use the Document as my storage for notes which leaves me

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
Mark, these are all very good points!!! You are absolutely correct that I'm going wrong way making normal use painful for twice in a life time task optimization. I'll take your points. Thanks for the advice. On Jul 22, 12:16 pm, Mark Murphy mmur...@commonsware.com wrote: gnugu wrote: Say

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
in your code is creating tons and tons of temporary objects.  Again the profiler should help a lot in tracking this down. On Wed, Jul 22, 2009 at 11:39 AM, gnugu rho...@gmail.com wrote: Dianne, It is not reading and writing that's slow. I have a class that has Notes field (ArrayListNote

[android-developers] What is android.database.sqlite.SQLiteProgram ?

2009-07-22 Thread gnugu
There is not much in the documentation. Thanks. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
the debugger attached always have a significant impact on performance. Always remember, once you say the word performance there should be a real device involved that is driving the work. On Wed, Jul 22, 2009 at 12:57 PM, gnugu rho...@gmail.com wrote: Just creating 1000 objects isn't

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
);                 buf.put(chars);                 buf.position(0);                 return buf.array();         } Pass each string in, and then pack the results from each call into your file. Richard Schilling Root Wireless On Jul 22, 12:57 pm, gnugu rho...@gmail.com wrote: Just creating 1000 objects

[android-developers] Re: Programming for performance.

2009-07-22 Thread gnugu
/ sessions/WritingRealTimeGamesAndroid.html). On Jul 22, 1:34 pm, gnugu rho...@gmail.com wrote: Richard, thanks for suggestion. My notes are structured. The app allows for the notes to be in the folders one level deep. That's why I opted for XML. I'll try to find out the presentation and post

[android-developers] How can I output XML Document as text?

2009-07-21 Thread gnugu
Hi, I have org.w3c.dom.Document that I want to save to file. I need to get the XML data out of it as string. How can be this done? I found the way to do it in Java, but Android doesn't seem to have the transformer. Thank you! --~--~-~--~~~---~--~~ You received