[android-developers] Re: How to store date and time in database

2010-12-26 Thread pramod.deore
Thanks Kostya I think this one is better. Thanks once again. On Dec 27, 12:39 pm, Kostya Vasilyev wrote: > Kris & Pramod, > > With all due respect, there is a much easier way. > > Java date/time stamps are internally represented by "long" values, the > value being the number of milliseconds since

Re: [android-developers] RelativeLayout problems

2010-12-26 Thread Kostya Vasilyev
John, Two suggestions: 1 - When your app "suspends" like this, it means it's crashing, but hasn't quite crashed all the way yet, which is why there is no logcat output at that point. Click 'resume execution' in Eclipse, and again if necessary. You only get logcat output (and the close dialo

[android-developers] How to create a read-only memory-backed SQLite database?

2010-12-26 Thread Mark Carter
I want to create a read-only memory-backed SQLite database to which I "attach database" other SQLite db files. Usually I would use: SQLiteDatabase.create(null) to do this but, AFAICT this is writable because it uses SQLiteDatabase.CREATE_IF_NECESSARY. My current workaround is to create a db in i

Re: [android-developers] How to store date and time in database

2010-12-26 Thread Kostya Vasilyev
Kris & Pramod, With all due respect, there is a much easier way. Java date/time stamps are internally represented by "long" values, the value being the number of milliseconds since Jan. 1, 1970 GMT. SQLite natively supports long (64-bit) interger values (use INTEGER data type). So, for sto

[android-developers] Re: How to store date and time in database

2010-12-26 Thread Zsolt Vasvari
Store it simply as a long. On Dec 27, 2:21 pm, "pramod.deore" wrote: > Hi everyone, >            In my application I have 2 buttons one for  DatePickerand > one for Timepicker. Date piker gives me date in this format - > 12-27-2010  and time in - 11:48. Now I want to create table to store > these

Re: [android-developers] Re: How to go to Home screen..?

2010-12-26 Thread Abhilash baddam
Hi pent, Still i am getting the same problem even i have modified in manifest file with android:finishOnTaskLaunch="true" under each activity..But not not working.. actually initially my application has SplashScreen..the app started from where it was terminated..it's not starting f

[android-developers] Re: How to store date and time in database

2010-12-26 Thread pramod.deore
Thanks Kristopher for your reply. On Dec 27, 12:06 pm, Kristopher Micinski wrote: > http://sberka.blogspot.com/2009/07/date-time-sqlite-and-android.html > > That blog post should point you in the right direction. > > What you may really want to know is how SQLite handles date and time. > From wha

[android-developers] Re: Which JSON Parser is better

2010-12-26 Thread ko5tik
On Dec 26, 7:18 pm, Jonathan Foley wrote: > Are you aware of the jackson JSON library, its very fast and has nice > data binding APIs. Yes, I'm aware of it - but it comes with full (although small) can of worms and dependencies attached. Right now my games are 130KB and including just parser w

Re: [android-developers] How to store date and time in database

2010-12-26 Thread Kristopher Micinski
http://sberka.blogspot.com/2009/07/date-time-sqlite-and-android.html That blog post should point you in the right direction. What you may really want to know is how SQLite handles date and time. >From what I've encountered there is no "native" date/time handling in SQLite, but you can simply stor

[android-developers] How to store date and time in database

2010-12-26 Thread pramod.deore
Hi everyone, In my application I have 2 buttons one for DatePickerand one for Timepicker. Date piker gives me date in this format - 12-27-2010 and time in - 11:48. Now I want to create table to store these values. How to store date and time in android database? Thanks. -- You receive

[android-developers] Re: EditText not able to regain focus.

2010-12-26 Thread Andrew
No no, the method gets called. There might be a bug when adding focusable again. I know for sure .setFocusable gets called because the edittext becomes white again. On Dec 27, 1:08 am, praveena ankitha wrote: > write the code in check box .setOnCheckedChangeListener(...) method then > automatical

[android-developers] Re: Getting the Android Java source?

2010-12-26 Thread mine260309
Well, I only checkout the whole OS code, and everything is in it. Actually it's not too bad, since we can access whatever we want... On Dec 27, 12:03 pm, John Lussmyer wrote: > Is it possible to get just the source for the Android .jar files? > I don't want the whole bleeding OS, just the source

Re: [android-developers] EditText not able to regain focus.

2010-12-26 Thread praveena ankitha
write the code in check box .setOnCheckedChangeListener(...) method then automatically that textbox is chaged according to check box On Mon, Dec 27, 2010 at 11:13 AM, Andrew wrote: > if (isChecked) { >editText.setFocusable(false); >editText.setEnabled(false); >

[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-26 Thread Zsolt Vasvari
I completely realize that it's possible to do well with the SDK, but I still believe that the top layer apps should be built with the SDK if possible. Does the calculator compile with the SDK? On Dec 27, 11:39 am, Robert wrote: > Check out Alarm Clock Xtreme  by Irene Duke.   > http://alarmcloc

Re: [android-developers] Is this normal textview or webview?

2010-12-26 Thread TreKing
On Sun, Dec 26, 2010 at 8:41 PM, Mystique wrote: > Hi, how to achieve this listview? > Use the same layout and style as the picture. > Is it textview or webview? > Probably a listview. - TreKing

[android-developers] jar.libs.dir is the new external.libs.dir?

2010-12-26 Thread nick
I upgraded to ADT 8 and my projects wouldn't build with Ant any more , failing with a lot of class not found errors. I have a build.properties file with the following contents: external.libs.dir=../somedir/lib A quick grep for the rules files shows that 'external.libs.dir' is not used any more

[android-developers] EditText not able to regain focus.

2010-12-26 Thread Andrew
if (isChecked) { editText.setFocusable(false); editText.setEnabled(false); } else { editText.setEnabled(true); editText.setFocusable(true); } So this is called after a checkbox is clicked on. When it's checked the textbox

Re: [android-developers] RelativeLayout problems

2010-12-26 Thread Adarsh Pandey
I think you trying to use id which is not created : android:id="@id/SpinRate" try this android:id="@+id/SpinRate" On Mon, Dec 27, 2010 at 9:14 AM, John Lussmyer wrote: > I'm attempting a not-that-complex layout using RelativeLayout, and getting > a weird problem. > > When I set things up in a

Re: [android-developers] Getting the Android Java source?

2010-12-26 Thread John Lussmyer
Ahh, I just figured it out. You meant the logger output in the Debug view of Eclipse. logcat is completely empty. On Sun, Dec 26, 2010 at 8:54 PM, John Lussmyer wrote: > > > 2010/12/26 Muhammad Hakim > >> check the logcat >> >> >> > > While that statement may be helpful, I don't have the faintes

Re: [android-developers] Getting the Android Java source?

2010-12-26 Thread John Lussmyer
2010/12/26 Muhammad Hakim > check the logcat > > > While that statement may be helpful, I don't have the faintest idea what it means. -- 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

Re: [android-developers] Getting the Android Java source?

2010-12-26 Thread Muhammad Hakim
check the logcat On Mon, Dec 27, 2010 at 11:03 AM, John Lussmyer wrote: > Is it possible to get just the source for the Android .jar files? > I don't want the whole bleeding OS, just the source that will help me > figure out what's going wrong in my code when I get weird exceptions. > > Like, rig

[android-developers] Re: Buttons supported in notification expanded view?

2010-12-26 Thread mkmand
I am having same problem. Clicks on individual buttons work on HTC HD2 with Android 2.2 but not on mytouch 3g with Android 2.2.1. To solve the problem of launching just one intent - use a dummy class for default pending intent and use your required class for button's pending intent. On Dec 4, 6:2

[android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-26 Thread mkmand
I am stuck with same problem but in a more weird way, I am learning android by writing an app which will show a custom notification with buttons. Now, when I install this program on my HTC HD2 with Android 2.2, click on button on notification does the intended action but when I install same prog

Re: [android-developers] Help with Themes and Styles

2010-12-26 Thread Dianne Hackborn
You very very rarely would have different dimens values for mdpi, hdpi, etc. The point of them is to let you supply a value with units like "dp" that are automatically scaled for you based on the screen density. On Dec 26, 2010 10:46 AM, "Brill Pappin" wrote: > So I'm improving on the keyboard I

[android-developers] Getting the Android Java source?

2010-12-26 Thread John Lussmyer
Is it possible to get just the source for the Android .jar files? I don't want the whole bleeding OS, just the source that will help me figure out what's going wrong in my code when I get weird exceptions. Like, right now, this line of code: Button btn = new Button( context); is throwing: [2010

[android-developers] RelativeLayout problems

2010-12-26 Thread John Lussmyer
I'm attempting a not-that-complex layout using RelativeLayout, and getting a weird problem. When I set things up in a way that seems correct, I get: Thread [<3> main] (Suspended (exception IllegalStateException)) RelativeLayout$DependencyGraph.getSortedViews(View[], int...) line: 1260 Rel

[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-26 Thread Robert
Check out Alarm Clock Xtreme by Irene Duke. http://alarmclockxtreme.blogspot.com/ It is possible to do and do well with the SDK. On Dec 26, 7:32 pm, Zsolt Vasvari wrote: > I do understand where you are coming from, though.  It would be ideal > that top-layer apps, especially simple ones like

Re: [android-developers] Re: repeating a set of animation sequentially

2010-12-26 Thread John Lussmyer
It DOES have to run forever. On Sun, Dec 26, 2010 at 4:14 PM, Doug wrote: > On Dec 25, 7:37 am, John Lussmyer wrote: > > I've already found that RepeatMode/Count on an AnimationSet doesn't work. > > I may end up manually restarting it each time. It just seemed that > having > > an AnimationSeq

Re: [android-developers] Android Mouse/MotionEvent

2010-12-26 Thread vikram jain
make use of touch event for mouse event On Mon, Dec 27, 2010 at 1:21 AM, Ankur Avlani wrote: > Hi All, > > I am trying to build a server android, which will take keyboard and mouse > actions, and pass it on to the appropriate view. So far I am successful in > getting keyboard events. But I nee

[android-developers] Re: How to redirect GPS nmea from /dev/ttymxc to somewhere

2010-12-26 Thread nelsonchung
Hi all, I found that I need to implement other functions follow by gps.h in order to see the information of gps nmea. Here is the solution I described on my blog about how to fix gps nmea issue. http://nelsonchunglife.blogspot.com/2010/12/android-gps-porting-hal-code-try-to-fix.html Please let m

[android-developers] Is this normal textview or webview?

2010-12-26 Thread Mystique
Hi, how to achieve this listview? Is it textview or webview? http://172.31.254.241/www.android.com/market/data/screenshots/com.zenmobi.android.app.nfl.jetsnews0.png Regards, CJ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: Database Remote Access

2010-12-26 Thread Russell DuRoss
Amazon is starting a cloud based service - maybe that would help. Here's a link to get you started with info on it. http://mobileoffice.about.com/b/2010/12/12/expect-a-lot-more-mobile-cloud-apps-soon-amazon-intros-mobile-sdks-for-iphone-android.htm On Dec 23, 5:48 pm, kennedyximenes wrote: > Hi,

[android-developers] Re: AES in Gingerbread

2010-12-26 Thread nick
On Saturday, December 11, 2010 4:30:01 AM UTC+9, Steve Hugg wrote: > > More debugging on this issue... > > I am using this method to generate keys from a passphrase: > > KeyGenerator kgen = KeyGenerator.getInstance("AES", "BC"); > SecureRandom sr = SecureRandom.getInstance("SHA1PRNG", "Crypto"

[android-developers] Re: AES in Gingerbread

2010-12-26 Thread Tim
I have exactly the same problem. How did you handle this Steve? On Dec 11, 5:30 am, Steve Hugg wrote: > More debugging on this issue... > > I am using this method to generate keys from a passphrase: > >                 KeyGenerator kgen = KeyGenerator.getInstance("AES", "BC"); >                 S

Re: [android-developers] Drag and drop rearrange listview

2010-12-26 Thread Mark Murphy
On Sun, Dec 26, 2010 at 7:49 PM, Nikola wrote: > PS: i've looked over at commons TouchList but I am having problem with it, > it crashes on running. Step #1: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace that is generated when it "crashes o

[android-developers] Drag and drop rearrange listview

2010-12-26 Thread Nikola
Hi, Is there any library or something similar for implementing drag and drop rearrange listview. I would like to give user a way to sort items with dragging them to position. Thanks. PS: i've looked over at commons TouchList but I am having problem with it, it crashes on running. -- God is R

[android-developers] Re: ImageView Problem

2010-12-26 Thread ricardocunha
No, I´m trying to say when I put the src, the image is showing in the ADT, but hen I runnning show the exception: Binary XML file line #8: Error inflating class android.widget.ImageView On 26 dez, 22:28, 陈彧堃 wrote: > Did you forget to set the src of the imageview? > > On Sat, Dec 25, 2010 at 9:23

[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-26 Thread Zsolt Vasvari
I do understand where you are coming from, though. It would be ideal that top-layer apps, especially simple ones like an alarm clock, should be buildable with the public SDK. After all, how can you create a like replacement if you don't have access to the same APIs? On Dec 27, 5:26 am, "longingt

[android-developers] Re: Help with animation

2010-12-26 Thread Zsolt Vasvari
Thanks, will give it a try. On Dec 27, 8:01 am, Doug wrote: > On Dec 25, 1:51 am, Zsolt Vasvari wrote: > > > Thanks,  Doug.    I am basically trying to achieve the same effect > > that happens when you tap the More button on the new Market app when > > you want to see more of an apmp's descripti

Re: [android-developers] ImageView Problem

2010-12-26 Thread 陈彧堃
Did you forget to set the src of the imageview? On Sat, Dec 25, 2010 at 9:23 PM, ricardocunha wrote: > Hi Everybody, > > I have a simple doubt but, I don´t understand what is happening. > > I have a simple ImageView over a Linear Layout: > > > When I running this layout on a Activity the Emulato

[android-developers] Re: Phones with Large Internal Storage & EXTERNAL_CONTENT_URI

2010-12-26 Thread Doug
On Dec 25, 4:34 am, Tabman wrote: > Hi, > > Has anyone development experience with any of the following large > internal storage phones: > > Nexus Shttp://www.google.com/phone/detail/nexus-s > Droid 2 Globalhttp://www.google.com/phone/detail/droid-2-global-by-motorola > Samsung > Captivatehttp://

[android-developers] Re: repeating a set of animation sequentially

2010-12-26 Thread Doug
On Dec 25, 7:37 am, John Lussmyer wrote: > I've already found that RepeatMode/Count on an AnimationSet doesn't work. > I may end up manually restarting it each time.  It just seemed that having > an AnimationSequence was a pretty obvious function.  I'm surprised it > doesn't exist yet. Or you cou

[android-developers] Re: Help with animation

2010-12-26 Thread Doug
On Dec 25, 1:51 am, Zsolt Vasvari wrote: > Thanks,  Doug.    I am basically trying to achieve the same effect > that happens when you tap the More button on the new Market app when > you want to see more of an apmp's description.   Everything below the > description slides down smoothly revealing

Re: [android-developers] Re: How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread Kostya Vasilyev
It's also not very good to keep view references in the application because of their different lifetimes. A view is basically only good for as long as its Activity. The application object lives as long as the process, that is, much longer. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.12.

[android-developers] Re: Problem with AnimationDrawable

2010-12-26 Thread Joe D.
I am trying to load many frames into a animationDrawable and I'm running into similar problems. Can you post an example of your solution - "manually adding Bitmaps as frames, and then calling recycle() on them". Do you mean you completely bypassed animationDrawable and just displayed the bitm

[android-developers] Re: How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread jotobjects
On Dec 21, 2:30 pm, Tobiah wrote: > Can one Activity manipulate the Views of another? > Even with a class that is external to the Activity, > it seems that I need to pass a pointer to the View > in question around.  I have a subclass of Application > that I could use to keep the View pointers in

Re: [android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-26 Thread Mark Murphy
On Sun, Dec 26, 2010 at 4:26 PM, longingtoadopt.com wrote: > Would prefer not to have to - since I am on Windows Pick an application to "study and run" that builds with the Android SDK, then. Most, if not all, applications that are part of the Android firmware must be built as part of the firmwar

[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-26 Thread longingtoadopt.com
Would prefer not to have to - since I am on Windows On Sunday, December 26, 2010 1:02:55 AM UTC-6, Zsolt Vasvari wrote: > > Correct, you cannot compile these modules with the SDK alone. You > need to download the platform source and compile those. I don't know > the details. > > > -- You re

Re: [android-developers] Re: How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread Kostya Vasilyev
Or give the "other class" a Java interface reference for callbacks, while implementing the interface in the Android-aware code. 27.12.2010 0:00, Frank Weiss пишет: Or you could use the View-Adapter pattern. The adapter is responsible for the data model changes and informs the view to redraw v

Re: [android-developers] Re: How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread Frank Weiss
Or you could use the View-Adapter pattern. The adapter is responsible for the data model changes and informs the view to redraw via notifications. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-

[android-developers] Re: How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread Bret Foreman
Or you could register a receiver in one activity and post Intents from another. That's how I do it. -- 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] Android Mouse/MotionEvent

2010-12-26 Thread Ankur Avlani
Hi All, I am trying to build a server android, which will take keyboard and mouse actions, and pass it on to the appropriate view. So far I am successful in getting keyboard events. But I need some help in generating the mouse/motion events. Can someone throw some light on how will that work.

Re: [android-developers] How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread Toby
On 12/21/2010 2:47 PM, TreKing wrote: On Tue, Dec 21, 2010 at 4:30 PM, Tobiah mailto:t...@tobiah.org>> wrote: Will that work? Probably. Does it sound necessary? Not really. What are you trying to do? Why do you need to manipulate one Activity's views from another? This doesn't reall

Re: [android-developers] Help with Themes and Styles

2010-12-26 Thread Kostya Vasilyev
26.12.2010 21:11, Brill Pappin пишет: Thanks Kostya, I am actually using the various methods of providing different dimens to different devices, however the problem is that there are so many that I'm having trouble getting things right for all of them. What I need to be able to do is ask the

[android-developers] Re: Which JSON Parser is better

2010-12-26 Thread Jonathan Foley
Are you aware of the jackson JSON library, its very fast and has nice data binding APIs. Jonathan On Dec 26, 5:54 am, ko5tik wrote: > On Dec 25, 11:51 pm, DanH wrote: > > > Until you get up to **at least** 10K of JSON (maybe 1M, depending on > > the overall app size) there's no point in worr

Re: [android-developers] Help with Themes and Styles

2010-12-26 Thread Brill Pappin
Thanks Kostya, I am actually using the various methods of providing different dimens to different devices, however the problem is that there are so many that I'm having trouble getting things right for all of them. What I need to be able to do is ask the device what it thinks. Presumably that

Re: [android-developers] Help with Themes and Styles

2010-12-26 Thread Kostya Vasilyev
Brill, While I don't have a direct answer to your question (how to ask the system), you might want to look at "dimen" resources: http://developer.android.com/guide/topics/resources/more-resources.html#Dimension You can have res/values-ldpi/dimens.xml, res/values-hdpi/dimens.xml, etc., each w

Re: [android-developers] Visuals of all standard widgets?

2010-12-26 Thread John Lussmyer
On Sun, Dec 26, 2010 at 9:52 AM, Mark Murphy wrote: > On Sun, Dec 26, 2010 at 12:46 PM, John Lussmyer > wrote: > > Is there an examples page somewhere that shows what all the standard > widgets > > look like? > > It'd be nice to see them all on one page. > > Not all, but here are several: > > htt

Re: [android-developers] Visuals of all standard widgets?

2010-12-26 Thread Mark Murphy
On Sun, Dec 26, 2010 at 12:46 PM, John Lussmyer wrote: > Is there an examples page somewhere that shows what all the standard widgets > look like? > It'd be nice to see them all on one page. Not all, but here are several: http://developer.android.com/resources/tutorials/views/index.html > This

[android-developers] Visuals of all standard widgets?

2010-12-26 Thread John Lussmyer
Is there an examples page somewhere that shows what all the standard widgets look like? It'd be nice to see them all on one page. This would be especially helpful since Android seems to have come up with their own set of names for widgets. What they call a "Spinner", would be a ComboBox or DropDow

[android-developers] Help with Themes and Styles

2010-12-26 Thread Brill Pappin
So I'm improving on the keyboard I have in the Market. One of the biggest problems I need to resolve is that on a smaller devices ldpi and low end mdpi, the font on the keys is too large. now I'm fairly sure I can ask the system for the font size it suggests, but I'm unsure how to do that. Can

Re: [android-developers] Is a Vertical Seekbar possible?

2010-12-26 Thread peeyush varshney
You can have it.. you have to create cusom view ..there is no xml property.. On Sat, Dec 25, 2010 at 11:50 PM, John Lussmyer wrote: > I'd like to have a Seekbar oriented vertically, but I can't figure out how > to do it. > Is it possible? > > -- > You received this message because you are subscr

Re: [android-developers] Re: Suspicious TCP RST packets while device is sleeping.

2010-12-26 Thread GDroid
I've been seeing the same behavior myself. Can someone address this please? Thanks Guy -- 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,

[android-developers] Re: java.io.file.getfreespace()?

2010-12-26 Thread DanH
If it compiles OK but you get VerifyErrors on running, it usually means that you're running against a different version of the code than the one you compiled against. On Dec 26, 12:34 am, Keith Wiley wrote: > The Android reference for java.io.file lists the 1.6  apis, including > getfreespace().

[android-developers] Re: Which JSON Parser is better

2010-12-26 Thread DanH
The thing is, the standard JSON representations of data are about as compact as one can get in Java -- unlike XML where the representation is very inefficient. In order to read the JSON you'll create most of the objects used to represent it, so you'll churn through about the same amount of heap wh

[android-developers] PDF Format Conversion

2010-12-26 Thread Chirayu Dalwadi
How to store the data in database file of android phone in pdf format? -- 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 email to an

[android-developers] Re: My game, what do you think help me out

2010-12-26 Thread Nightwolf
Biker is hard to see on game background. Controls aren't very intuitive. It seems that releasing finger doesn't mean releasing throttle. If it's really the case then there should be some indication on the screen about current acceleration level. Texts in menus are somewhat hard to read. In fact eve

[android-developers] Re: Did sensor orientation change in SDK 2.3?

2010-12-26 Thread greg
I inserted a Log.d() in the ApiDemos/OS/Sensors application to confirm that the sensor data is inverted (not just the display of it) from SDK 2.2 to SDK 2.3. The orientation of the sensor data is correct in SDK 2.3 (i.e., +1 g of acceleration in the z direction due to the force from the table), bu

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-26 Thread Kostya Vasilyev
26.12.2010 14:32, MichaelF ?: Kostya, that's very well spotted: the android:minSdkVersion="4" /> tag does the thing (for some reason I neglected it). The alternative does it as well. Ok, cool. I should have thought of this sooner. Cheers, and thanks again, You are welcome. -- Kostya

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-26 Thread MichaelF
Kostya, that's very well spotted: the tag does the thing (for some reason I neglected it). The alternative does it as well. Cheers, and thanks again, Michael -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

[android-developers] Re: Which JSON Parser is better

2010-12-26 Thread ko5tik
On Dec 25, 11:51 pm, DanH wrote: > Until you get up to **at least** 10K of JSON (maybe 1M, depending on > the overall app size) there's no point in worrying about pull > parsing.  Reading and parsing the entire JSON file at once will > increase temporarily the amount of heap used, but it's hardl

[android-developers] Re: Documentation errors for LocationManager.requestSingleUpdate() ?

2010-12-26 Thread farble1670
don't have the answer, but wondering this myself. my guess is the same as yours ... the docs must be incorrect. On Dec 7, 9:02 pm, davemac wrote: > This is a new method in Android 2.3's LocationManager. It says > basically the same thing as what it says for requestLocationUpdates(), > except that

Re: [android-developers] Drawing text on a Bitmap (rather than Canvas)

2010-12-26 Thread Kostya Vasilyev
Michael, I just tied changing my code so it's exactly like what you posted, including the color scheme and how the Paint (font) object is constructed. Perfect again. Is your application perhaps running in 320x480 compatibility mode? That would explain what you're seeing. Make sure that you