[android-beginners] Loading database file error after decrypting

2010-06-18 Thread Aplit
I am currently working on a project which encrypts a SQLite database file before uploading to a fileserver. It uses AES/CBC/NoPadding algorithm in encrypting and decrypting binary input through a user's secretKey. After downloading (InputStream) the data and decrypting it, loading the database is

[android-beginners] Dalvick VM trigger

2010-06-18 Thread zaheer ahmad
hi, when i run the android browser, i see a trigger from Dalvick VM to clear cache. Is it a normal cleanup indication or a serious low memory indication? If its a serious condition, how to trace out the memory allocated to the VM and why its running out of it. Thanks in advance, Zaheer #1

[android-beginners] Re: Your feedback on Samples/Tutorials/Articles

2010-06-18 Thread lawrizy
Hi, In your following example: /resources/samples/ApiDemos/src/com/example/ android/apis/graphics/Compass.html your example code doesn't follow the recommendation of your documentation (about using getOrientation(), getRotationMatrix and remapCoordinateSystem). And it will be useful, if you give

[android-beginners] Re: Dalvick VM trigger

2010-06-18 Thread zaheer ahmad
Ignore my question, ClearCache is actually an api call from the browser app which is tunneled to the thread.. On Fri, Jun 18, 2010 at 1:12 PM, zaheer ahmad zaheer@gmail.com wrote: hi, when i run the android browser, i see a trigger from Dalvick VM to clear cache. Is it a normal cleanup

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Mikey
Well, thanks - that seems to have done the trick, but now I am getting another error with another method - maybe you can tell me if you do things differently here as well? public boolean isPermanent(String screen_name) { boolean output = false; try {

[android-beginners] Re: Emulator Unable to Access Location

2010-06-18 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM Jake Colman wrote: My emulator is running Android 1.6. And the Maps appplication is ignoring the fix. :-( MM FWIW, my 1.6 emulator works just fine with Maps. As before: start MM Maps, push a location from the emulator, and

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Justin Anderson
So what is the error and where is it occurring? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jun

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Mikey
The error is an IllegalStateException and as it is happening in this daemon thread I have no idea where it is occurring. It is very weird as my application has gone well past the point where it is using this query, and I have a breakpoint on the catch block that is not reached. Very

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Justin Anderson
Perhaps this will help: http://stackoverflow.com/questions/2398209/how-to-handle-in-code-illegalstateexception-on-cursor BTW, I fond this by googling Android IllegalStateException daemon -- There are only 10 types of people in

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Mikey
Thanks, I had already seen this article, but I am not really sure how I can call Activity methods in my DbAdapter, and I don't really want to return a cursor to my Activity - I just thought you may have some more magic code that would fix my problems ;o) I will let you know how I get on... On

[android-beginners] Getting text of dynamically created radio buttons

2010-06-18 Thread Maxood
How can i retrieve the text of a dynamically created radio button selected by the user? Here's my code: RadioGroup radiogroup = (RadioGroup) findViewById(R.id.rdbGp1); // layout params to use when adding each radio button LinearLayout.LayoutParams layoutParams = new

Re: [android-beginners] Getting text of dynamically created radio buttons

2010-06-18 Thread Mikey
I have taken a look at the API reference, and getText() looks like it might be what you need... On 18 Jun 2010, at 15:11, Maxood wrote: How can i retrieve the text of a dynamically created radio button selected by the user? Here's my code: RadioGroup radiogroup = (RadioGroup)

[android-beginners] Comparing data retrieved from SQL query

2010-06-18 Thread Tollas
I am retrieving data from a SQL query. The data retrieves fine. If I place the data in a TextView field, I see the text. When I try to compare it in an IF statement, however, the statement sees the data as false, even if it should be true. If I set the variable to a good value (not getting data

[android-beginners] Widget Background For One Cell Widget

2010-06-18 Thread Jake Colman
I'm looking for a simple widget background that can be used for a one cell widget. The background that I found, which are scaleable, have huge margins so that there is not enough usable space when its sized at one cell. Barring a specific answer to this question, how does one create a

Re: [android-beginners] Comparing data retrieved from SQL query

2010-06-18 Thread Justin Anderson
You cannot use == for comparing strings. You have to use the equals method: if (queryString.equals(text)) //do stuff -- There are only 10 types of people in the world... Those who know binary and those who don't.

Re: [android-beginners] Widget Background For One Cell Widget

2010-06-18 Thread Justin Anderson
Use a program like photoshop and create a .png file... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On

[android-beginners] Re: Comparing data retrieved from SQL query

2010-06-18 Thread Tollas
Worked great! Thanks! On Jun 18, 11:12 am, Justin Anderson janderson@gmail.com wrote: You cannot use == for comparing strings.  You have to use the equals method: if (queryString.equals(text))      //do stuff -- There

Re: [android-beginners] Re: Emulator Unable to Access Location

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 8:42 AM, Jake Colman col...@ppllc.com wrote: This is really odd.  I started from scratch using a new computer (a Ubuntu virtualbox guest under WinXP).  I downloaded the SDK, created an AVD, started Maps and pushed a location.  Maps still says temporarily unable to

[android-beginners] Using a ContentProvider with ItemizedOverlay?

2010-06-18 Thread Raymond Rodgers
Is there a way of using a ContentProvider with ItemizedOverlay? I don't seem to see anything for setting an adapter, and it seems to me that this would be an ideal way to display overlay items... If not directly, then it's no big deal; I'm already planning on working around this issue, but I

[android-beginners] Re: Emulator Unable to Access Location

2010-06-18 Thread davemac
So your app is getting the lat/long from DDMS, but you're not seeing any maps displayed? Maps come from the Google API over the Internet. Is there a chance that you don't have networking available to your emulator? Other than location, does the browser function correctly? I'm also at a loss as to