[android-developers] Re: sqlite in webview

2009-11-09 Thread jotobjects
Not clear what you are asking. Do you have an android.webkit.WebView view? What doesn't work? Could post a small example of what doesn't work? On Nov 9, 8:57 am, Julian Avram wrote: > I saw that the browser in sdk2.0 has sqlite support however it doesn't > seem to work in webview (at least for

[android-developers] Re: Invoke call from background service

2009-11-09 Thread jotobjects
Why do you need a result? There is a tartActivity(intent) method you can use. What does it mean to start an activity from a process that is not visible as in this case? Does it interrupt the user and is that desirable and/or allowed? On Nov 9, 7:41 am, michael wrote: > Hello, > > Anyone could

[android-developers] Re: Dev Tools Documentation?

2009-11-10 Thread jotobjects
On Nov 9, 5:59 pm, polyclefsoftware wrote: > These tools don't do a whole lot of good if we don't > know how to use them and there's no documentation. Hey who need documentation? It's more productive for several hundred thousand developers to read the source and reverse engineer how things ar

[android-developers] Re: Invoke call from background service

2009-11-10 Thread jotobjects
tegories={test.foobar.123} flags=0x1000 } W/dalvikvm( 898): threadid=17: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 898): Uncaught handler: thread Thread-9 exiting due to uncaught exception E/AndroidRuntime( 898): android.content.ActivityNotFoundException: On No

[android-developers] Re: Invoke call from background service

2009-11-10 Thread jotobjects
uiring the DEFAULT category for the Intent filter to match? android.intent.category.DEFAULT On Nov 10, 12:22 pm, jotobjects wrote: > I did a little experimenting.  It is possible to start and activity > from a service and the activity does interrupt the user and hide the > previ

[android-developers] Re: Map is not displaying even the settings are correct

2009-11-11 Thread jotobjects
Did you register the debug API key that you are using in the emulator following the documentation instructions? On Nov 10, 9:49 pm, naveenballa wrote: > i am running the mapdemo application in the samples of SDK. > i have set the MAP api key and set the permissions(INTERNET, FINE, > COARSE) > Th

[android-developers] Re: Map is not displaying even the settings are correct

2009-11-12 Thread jotobjects
On Nov 12, 1:04 pm, TreKing wrote: > I think you have to set up a new debug key on each machine you use. > I jump back and forth between my desktop and laptop and I have a separate > debug key for each. > So on whichever machine you're not seeing tiles on, run through the process > to get a debu

[android-developers] Re: service multiple time ?

2009-11-13 Thread jotobjects
The service is only started once unless the system has to kill the process to reclaim memory. You have to call startService() or bindService() to start the service. The API docs for android.app.Service answer all these questions. On Nov 13, 5:13 am, Shrenik Vikam wrote: > how to check that the

[android-developers] Re: Start Activity from Service

2009-11-13 Thread jotobjects
See this thread on how to do it - http://groups.google.com/group/android-developers/browse_thread/thread/697948e2960ca471/54e7f1b02e5c8595 It is considered bad behavior to do this though because you may hijack the screen from another application and the user probably won't like that. Use the not

[android-developers] Re: Map is not displaying even the settings are correct

2009-11-13 Thread jotobjects
t; > i have also done getting separate API key for my PC > then also it's displaying only tiles. > can you give any other reason? > > On Nov 13, 3:43 am, jotobjects wrote: > > > On Nov 12, 1:04 pm, TreKing wrote: > > > > I think you have to set up a new debu

[android-developers] Re: Task life cycle and activity launch mode question(s)

2009-11-16 Thread jotobjects
Your understanding of single top is not what is described in the documentation. There can be multiple instances of a SingleTop activity. You might want SingleTask for your main acitivy if I follow your description. http://developer.android.com/guide/topics/fundamentals.html#lmodes http://develop

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread jotobjects
On Oct 13, 8:09 pm, EboMike wrote: > Task killers aside, what about if the OS decides to stop a process > because memory is low? Say an app has an alarm set to happen in 2 > hours, and the user decides to run Google Maps for a minute. Android > might kill said app because memory runs low. Ten mi

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread jotobjects
On Oct 15, 3:07 pm, Dianne Hackborn wrote: > What these programs are doing is using the API that is tended to force stop > -everything- about the application: stop all services, cancel all alarms, > remove all notifications, etc.  This is all working as intended, the apps > are just abusing this

[android-developers] Re: Pass Data Between Activities: HashMap of WeakReferences to Objects

2009-11-17 Thread jotobjects
The suggestion that you quoted is to use a counter or timestamp that you are sure is unique. In general hashCode() is not a unique key so your code is probably not what you want to do. The suggestion in the FAQ is kind of odd really. The referenced object could be cleared at any point by GC, eve

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-18 Thread jotobjects
On Nov 17, 7:54 pm, String wrote: > On Nov 17, 7:43 pm, Dianne Hackborn wrote: > > > I will probably make this API a no-op, since it violates the principle of > > one app not being able to break another app > > +1 > > Especially with the Running Services UI in 2.0, I'd suggest this is > the bes

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-18 Thread jotobjects
On Nov 17, 4:05 pm, Dianne Hackborn wrote: > 2.0 includes a UI showing you which -services- are running and the resources > they are using.  This is what you really care about Don't you care just as much about Activities that have threads running the background? Two more questions about all th

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-18 Thread jotobjects
On Nov 18, 9:53 am, Dianne Hackborn wrote: > On Wed, Nov 18, 2009 at 8:27 AM, jotobjects wrote: > > Don't you care just as much about Activities that have threads running > > the background? > > No, the system can freely kill those processes when it needs memory.  Thus

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-18 Thread jotobjects
On Nov 18, 1:55 pm, Cédric Berger wrote: > I meant not when the user requested it, but when the system went > really too low on memory : as I understand the system  may eventually > have to kill some services (even if it is not a full "force stop") ? > (And if not, what happens when it is reall

[android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread jotobjects
On Nov 20, 6:04 am, JasonMP wrote: > > if my autoincrements skips numbers then I can get an error trying to > update a row that doesn't exist. > What if you delete a row later? That will cause a gap. Are you sure that will never happen? In general transaction aborts may result in rows that w

[android-developers] Re: Samsung Moment (SPH-M900) - Application crashing

2009-11-20 Thread jotobjects
On Nov 20, 5:30 am, Don wrote: > Anyway, i was able to tidy up the code and remove the bug. But still, > there really should be no differences like this on various android > devices (unless they are at diffenet firmware versions, of course). > I don't know if you can count on onCreate completi

[android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread jotobjects
On Nov 20, 11:00 am, JasonMP wrote: > The issue came up b/c when i do delete rows i get gaps.  gaps were bad > for my code :).  I'm not sure I understand what a general transaction > abort is.  Is this something that happens often? There is no such thing as a "general transaction abort". Sorry

[android-developers] Re: Reusing intents with notification/pending intents

2009-11-21 Thread jotobjects
Can you show us the code you used to create the PendingIntent? On Nov 21, 7:04 am, jsdf wrote: > Does anyone have suggestions on this? > I appreciate the help! > > On Nov 19, 5:38 pm, jsdf wrote: > > > Hi all, > > A quick question (for those who know the answer, anyway): > > > In my app, user st

[android-developers] Re: Geo Fix Still Not Working in 1.6

2009-11-21 Thread jotobjects
coordinate through telnet but LastKnownLocation is returning null, m > using android 1.6 eclipse window vista, am i doing anything wrong in > Java code, can please send me java code. is it require any changes in > menifest except permission. i have tried with all permissions. > Thanks

[android-developers] dumpsys arguments

2009-11-21 Thread jotobjects
Does anyone know where the various arguments to "shell dumpsys" are listed? Four variations I have found are: dumpsys dumpsys activity dumpsys activity service dumpsys activity.services The last two are similar but not identical. I suppose there are other valid arguments -- You received this

[android-developers] Re: Nested Table layout not showing

2009-11-25 Thread jotobjects
How are you actually inflating this layout in a View? This seems to be a normal table layout. Is there some reason you can't or don't want to use an xml layout file for this? See following example - http://developer.android.com/guide/topics/ui/layout-objects.html#tablelayout On Nov 25, 1:00 am

[android-developers] Re: Background Service is not working.

2009-11-25 Thread jotobjects
On Nov 25, 5:25 am, "saify.zeenwala" wrote: > put ur code in onstart() instead of oncreate() > becuase ur on create will get call only once through out the life cycle of > service. > onStart() is never called if the service is started with bindService (). Not clear from docs if onCreate() or o

[android-developers] Re: Nested Table layout not showing

2009-11-25 Thread jotobjects
I'm not sure what is wrong with the > code below, but i fixed it just now. I'm now using a LinearLayout instead of > the nested tabel, and it shows fine. Still strange that the cocde below > didn't do what i expected. > > Regards, > > Patrick > > 2009/11/2

[android-developers] Re: fwd: get the file path from a URI instance

2009-11-28 Thread jotobjects
On Nov 17, 7:06 am, Streets Of Boston wrote: > When using openInputStream on the content-resolver, the returned input- > stream is not as 'flexible' as a FileInputStream. For example, > FileInputStreams can be retried if something goes wrong. The one > returned by openInputStream can not. What

[android-developers] Re: Best way to prevent duplicate Activity

2009-11-30 Thread jotobjects
You will have to wrap that static count checking and incrementing in a block that is synchronized on the class. But a more android-ish way to ensure only one instance of the Activity is to set android:launchMode to "SingleTask" and use the FLAG_ACTIVITY_NEW_TASK flag in the intent. On Nov 30, 11:

[android-developers] Re: call an activity of another package

2009-11-30 Thread jotobjects
Looks like you are telling it that class SharedApp2 is in package aexp.share.sharedapp1 - which is probably not correct. Can you include the exception stack for the error in your post? On Nov 30, 3:40 pm, dane131 wrote: > hallo, > > i have an activity named SharedApp1 in the  aexp.share.shareda

[android-developers] Re: getLastKnownLocation *again*

2009-12-02 Thread jotobjects
requestLocationUpdates() docs say - "It may take a while to receive the most recent location. If an immediate location is required, applications may use the getLastKnownLocation(String) method." You could verify that getLastKnownLocation(providerName) returns the same Location as the argument to

[android-developers] Re: ActivityGroup and subactivities Lifetime.

2009-12-03 Thread jotobjects
This is a followup question. The docs for LocalActivityManager.startActivity() say - "If the current activity uses a non-multiple launch mode (such as singleTop), or the Intent has the FLAG_ACTIVITY_SINGLE_TOP flag set, then the current activity will remain running and its Activity.onNewIntent()

[android-developers] Context for layout view

2009-12-03 Thread jotobjects
I am getting an error creating a MapView with a layout file. The app has two activities with different layout files. The main activity launched from Home is not a MapAcitivity. It starts the second activity (MapActivity). The error occurs in onCreate() for the first Activity in setContentView(R

[android-developers] Re: Context for layout view

2009-12-03 Thread jotobjects
> TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > On Thu, Dec 3, 2009 at 3:13 PM, jotobjects wrote: > > I am getting an error creating a MapView with a layout file.  The

[android-developers] Re: Context for layout view

2009-12-03 Thread jotobjects
hicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > On Thu, Dec 3, 2009 at 4:55 PM, jotobjects wrote: > > How do you "set the correct layout for the correct activity"?  Is > > there something to pu

[android-developers] Re: ActivityGroup and subactivities Lifetime.

2009-12-04 Thread jotobjects
e TAB1 activity was finished and re- created. My understanding is that SingleTop launch mode in this method means re- use the previous Activity even if it is not on top regardless of the Intent. > > > On Thu, Dec 3, 2009 at 12:21 PM, jotobjects wrote: &g

[android-developers] Re: Context for layout view

2009-12-04 Thread jotobjects
n the first attempt and post that information. On Dec 3, 4:11 pm, jotobjects wrote: > Thanks.  I'll see if I can replicate the problem in a simple example > (the case I have has a lot of other stuff in it) and post that when I > get a chance. > > On Dec 3, 3:49 pm, TreKing

[android-developers] Re: Memory usage problem - leak?

2009-12-04 Thread jotobjects
On Dec 4, 9:33 am, Romain Guy wrote: > From your observations it seems like the split() method works in a > similar way and causes you to keep a reference to the original > response data. You can try to fix this by replacing your fields[*] > statements with new String(fields[*]). This will creat

[android-developers] Re: how to know if the device is to be powered off

2009-12-04 Thread jotobjects
Ultimately it is not a good design to require log off. What if the user goes into a building where there is no reception and it is not possible to contact the server? On Dec 4, 12:33 am, Zhihong GUO wrote: > Hi All, > > My application want to know the device is to be power off, so that it can >

[android-developers] Re: how to know if the device is to be powered off

2009-12-04 Thread jotobjects
Or drops it in the swimming pool. Or the Server crashes. We could go on... On Dec 4, 12:07 pm, Dianne Hackborn wrote: > Or just pull out the battery!  This probably happens more than you would > think. > > > > On Fri, Dec 4, 2009 at 11:48 AM, jotobjects wrote: > > Ult

[android-developers] Re: activity lifecycle

2009-12-05 Thread jotobjects
The activity is destroyed. This doesn't mean the process is killed. There could be other components in the same application using that process. Also the platform may keep the process around for a variety of reasons, including the fact that starting processes is expensive. On Dec 5, 11:41 am, dan

[android-developers] Re: Context for layout view

2009-12-05 Thread jotobjects
. I do not know of a workaround other than renaming the layout files back to their original values. The problem appears to be due to some kind of platform caching that persists even if the application is removed. Is there a bug already filed for this problem? On Dec 4, 9:43 am, jotobjects wrote

[android-developers] Re: Context for layout view

2009-12-05 Thread jotobjects
e resources without recompiling the > Java code, your compiled Java code will use the previously inlined > static field and not the new one. So if you rename resources, simply > perform a clean build of your project :) > > > > On Sat, Dec 5, 2009 at 10:09 PM, jotobjects wrote:

[android-developers] Re: Context for layout view

2009-12-05 Thread jotobjects
Hm. Let's see the Java code has not changed. What creates the correspondence between the R.layout values and the actual layout files? The inlining is irrelevant isn't it? > > > > On Sat, Dec 5, 2009 at 10:09 PM, jotobjects wrote: > > I did replicate this problem.  I

[android-developers] Re: Context for layout view

2009-12-06 Thread jotobjects
ng on the alphabetic order. On Dec 5, 11:51 pm, jotobjects wrote: > On Dec 5, 10:15 pm, Romain Guy wrote: > > > The platform does not cache layout ids. It looks like your resources > > were recompiled but not the source code. Resources are compiled to > > generate static

[android-developers] Re: Context for layout view

2009-12-06 Thread jotobjects
And finally I have confirmed that Romain Guy is completely right and it is an inlining problem. Java seems to be pretty confident that "final" really means "final" and in this case it is not really final if we recompile the generated R classes those final values change! Anyway the whole thing is

[android-developers] Re: Context for layout view

2009-12-07 Thread jotobjects
his point. Thoughts about the tradeoffs? On Dec 6, 12:28 am, jotobjects wrote: > And finally I have confirmed that Romain Guy is completely right and > it is an inlining problem.  Java seems to be pretty confident that > "final" really means "final" and in this

[android-developers] apikey for MapView

2009-09-25 Thread jotobjects
The MapView add-on sample uses an apparently dummy apikey in the layout xml that looks like this - android:apiKey="apisamples" That doesn't look like the kind of apikey you get when you register for the Android Maps API. The sample application is built and signed with the debug certifica

[android-developers] MapsDemo sample app mysterious menu

2009-09-26 Thread jotobjects
The add-on MapsDemo sample app has an Options Menu, but the menu is not defined in the sample code. Also there is no menu resource directory. If you create your own subclass of MapActivity there is no menu. Where does the menu in the MapsDemo sample app come from (where is it defined)? --~--~---

[android-developers] Re: Modal dialog

2010-01-19 Thread jotobjects
Looks like there is enough material to make a FAQ, something like "Pseudo Modal Dialog Pattern" http://developer.android.com/resources/faq/commontasks.html On Jan 18, 12:19 pm, Dianne Hackborn wrote: > On Mon, Jan 18, 2010 at 10:47 AM, guiha...@gmail.com > wrote: > > > IMHO, i think that Google

[android-developers] Re: Best way to launch Messaging app via intent

2010-01-19 Thread jotobjects
On Jan 17, 4:42 pm, Steve wrote: > Is there a more appropriate forum to make requests for Android > platform enhancements? Yes, add a feature request here - http://code.google.com/p/android/issues/entry?template=Developer%20defect%20report Bear in mind the followup might not be what you want

[android-developers] Re: JDBC Driver for SQLiteDatabase

2010-01-19 Thread jotobjects
eck out the JDBC driver I started myself for > precisely this reason: > > http://code.google.com/p/sqldroid/ > > It's a relatively simple implementation but does its job: offer jdbc > access to android sqlite db. > > And thanks for all the constructive feedback! > Kris >

[android-developers] Re: Service within a Thread? Thread within a Service?

2010-01-19 Thread jotobjects
I don't think it will accomplish anything to start a service in a thread. That doesn't make the service run in the thread where it is started. So you are down to one of the options you are considering. Ti si also possible to start a service in a separate process but it still should not block on i

[android-developers] Re: Service within a Thread? Thread within a Service?

2010-01-19 Thread jotobjects
Ouch! You can't do blocking operations in the event loop thread of either an Activity or a Service without the component becoming non- responsive. You can't send messages to an Activity by broadcasting a message because an Activity is not a BroadcastReceiver. You can run one foreground Activity

[android-developers] Re: Understanding how the Final keyword in Android Works

2010-01-20 Thread jotobjects
"builder" is a local variable in scope of the onCreate method and is used in the anonymous inner class (new OnClickListener). Java keeps a copy of that local variable inside the listener object so Final ensures that the copy is consistent - you are not allowed to assign builder to some other value

[android-developers] Re: Deleting all files

2010-01-20 Thread jotobjects
Maybe java.io.File.isDirectory() and java.io.File..list() if you can figure out what you want to delete by looking at filenames. On Jan 20, 2:32 pm, Kevin Duffey wrote: > Not sure of other ways, but couldn't you use some sort of preference check > for a new flag the update only knows about, if i

[android-developers] Re: Broadcast Receiver and Remote Service

2010-01-20 Thread jotobjects
Hi Natalie - Not sure what you mean by service you "spawned onto its own thread". In any case, it looks like the Service is going to be pretty busy in that while(1) loop so it is not too surprising that it is not available to process the showMessage call. :) Yes they are two different threads.

[android-developers] Re: Broadcast Receiver and Remote Service

2010-01-20 Thread jotobjects
through the Handlers?  Or am I > missing something?  Maybe the example you posted will clear all this > up though, I'll look at that now.  :) > > On Jan 20, 3:24 pm, jotobjects wrote: > > > Hi Natalie - > > > Not sure what you mean by service you "spawned onto it

[android-developers] Re: Broadcast Receiver and Remote Service

2010-01-20 Thread jotobjects
s.  Since I'll never have > more than one application binding to my service, I think I'm just > going to abandon the service approach and try the approach in the > example jotobjects posted - I can't see any reason that having it as a > service is useful, but am I missing som

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-21 Thread jotobjects
On Jan 21, 12:09 pm, Nathan wrote: > I put a transaction > around a long series of small updates and it was reduced to a few > seconds.  This was a situation where you would think a transaction > would improve correctness, but degrade performance slightly. That is not so surprising since with

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-22 Thread jotobjects
wrap these operations inside a ContentProvider. On Jan 21, 5:42 pm, Nathan wrote: > On Jan 21, 4:22 pm, jotobjects wrote: > > > > > It doesn't make any sense to me that you have to turn locking on > > (whatever that means) if you are using transactions.   > >

[android-developers] Re: JDBC Driver for SQLiteDatabase

2010-01-22 Thread jotobjects
There are a number of open source JDBC drivers for SQLLite out there already (including the one already built into Android). On Jan 21, 10:22 pm, Elliott Hughes wrote: > On Jan 12, 1:53 pm, jotobjects wrote: > > > > > On Jan 11, 9:14 pm, Elliott Hughes wrote: > > >

[android-developers] Re: Understanding how the Final keyword in Android Works

2010-01-24 Thread jotobjects
On Jan 20, 10:49 am, Burk Hufnagel wrote: > Tim, > > This is not an Android thing, it's a Java thing. Because the anonymous > instance of OnClickListener can exist after the onCreate method > completes its execution, you have to declare that builder is final > otherwise it will be cleaned up with

[android-developers] Re: Launching the correct activity on resume

2010-01-24 Thread jotobjects
Hm. The difference between task state and activity stack is not easy to grasp (for me). You always start a new activity-stack when you return to Home as I understand it. At any point you can switch to another task by long-pressing Home to get the recent task list. If Activity1 and Activity2 ar

[android-developers] Re: uses-library

2010-01-25 Thread jotobjects
ASFAIK Android manifest and java.lang.System.loadLibrary () are not related. Manifest references a pre- installed Java jar (hence that Java package name) that the application uses. System.loadLibrary loads a native (usally written in C) shared library (e.g., a dll on Windoze or a .so on linux).

[android-developers] Re: Launching the correct activity on resume

2010-01-25 Thread jotobjects
ight add). > > Just wanted to post and say that my issues seem to be resolved thanks > to this new (if a bit cumbersome) development process of doing a full > apk build. Thanks again for all the help! > > On Jan 24, 10:58 pm, String wrote: > > > On Jan 25, 12

[android-developers] Re: How to Change the Android APN Settings Programmetically ??.

2010-01-26 Thread jotobjects
I think you should do the insert without the _id value (actually I think it is uppercase "_ID"). The insert method returns a URI with the new ID appended. You can use that new URI in a call to the update method that works just like the insert method. On Jan 25, 1:55 am, Silent Warrior wrote: >

[android-developers] Re: Cant get data from my service

2010-01-26 Thread jotobjects
That queue has grown larger while the > Android was asleep. > > Does this seem reasonable to your understanding? > > On Mon, Jan 25, 2010 at 12:49 PM, jotobjects wrote: > > > On Jan 25, 5:54 am, Robert Woodruff wrote: > > > I want the Service to remain active even

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-26 Thread jotobjects
Thanks for that report. Did your transaction test also have the enable locking set? That may have had a worst case exclusive locking effect (SQLite does not use exclusive write locks until commit time normally). FAQs 5 and 6 at this link provide more info - http://www.sqlite.org/faq.html#q5 Ho

[android-developers] Re: SIP development on Android

2010-01-27 Thread jotobjects
See this link about emulator IP address: http://developer.android.com/intl/fr/guide/developing/tools/emulator.html#networkaddresses And see this link about network redirecting: http://developer.android.com/intl/fr/guide/developing/tools/emulator.html#redirections Thanks for sharing this informa

[android-developers] Re: Launching the correct activity on resume

2010-01-27 Thread jotobjects
On Jan 27, 2:13 am, ayanir wrote: > Hello, > > I have a similar problem when I open the application from the Market. > > if I go from Activity A (LAUNCHER) to B, press Home key and re open > the application from the Home screen icon it come back to Activity B > (the last Activity) as it should.

[android-developers] docs for shape xml syntax

2010-01-27 Thread jotobjects
Where is there information about the syntax of xml files. These can be used to define 2D graphics as I understand it. There are few spotty examples in the samples directory but that is all I have found. -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Re: ANDROID_ID always null on devices

2010-01-28 Thread jotobjects
The emulator always returns null. On Jan 28, 6:14 am, flsobral wrote: > Hello. > > I'm trying to get the ANDROID_ID on two different devices but it > always return null on both. > I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a > Motorola Milestone with firmware 2.0. > > I've been

[android-developers] Re: string to uppercase not working

2010-01-28 Thread jotobjects
Following up with Lance's correct answer. Try this String str = "f"; String strUpper = str.toUpperCase(Locale.*ENGLISH*); On Jan 28, 1:05 am, Lance Nanek wrote: > Strings are immutable in Java and cannot be changed. The toUpperCase > method returns a different String than it is passed. The Str

[android-developers] Re: sqlite multithreading

2010-01-28 Thread jotobjects
As the error message says, you have to call close(). Good practice is to wrap your use of the writable database in a try/catch block and call close in the finally block so that close never gets skipped for any reason. On Jan 28, 2:43 am, manigault wrote: > Hi all, i need to use the SqliteDataBas

[android-developers] Re: Testing location using network as location provider?

2010-01-28 Thread jotobjects
Do you know about the emulator console command "geo fix"? http://developer.android.com/intl/fr/guide/developing/tools/emulator.html#geo This works pretty well except it has been noted that there is apparently a rounding bug in the emulator console (which is not present in the DDMS setting). So y

[android-developers] Re: docs for shape xml syntax

2010-01-28 Thread jotobjects
Thanks - this sure looks like it might be useful if there was more documentation :( On Jan 28, 3:38 pm, Nerdrow wrote: > Not a lot of good, workable documentation about this.  This helped me > out a lot:http://escomic.net/217 > > On Jan 27, 3:59 pm, jotobjects wrote: > >

[android-developers] Re: ANDROID_ID always null on devices

2010-01-29 Thread jotobjects
On Jan 29, 5:44 am, "Mark Murphy" wrote: > > I am not aware of a permission needed for ANDROID_ID. If you wanted the > IMSI or IMEI, those would need a permission. > What permission is needed to show the IMSI or IMEI and how are those values accessed? What is the purpose of ANDROID_ID if those

[android-developers] Re: Activity, ListActivity and MapActivity.

2010-01-29 Thread jotobjects
You have to use MapActivity to use MapView On Jan 29, 6:16 am, ColletJb wrote: > Hi, > > I'm trying to develop an Activity using both ListView and MapView. > > Basically, the screen is spited into two parts, the first contains the > MapView, and the second one contains ListView. > > Should I use

[android-developers] Re: docs for shape xml syntax

2010-01-29 Thread jotobjects
wrote: > Docs for this would be awesome! > > Nedrow:  thanks for the link -- that was very helpful. > > Steve > > On Jan 28, 10:31 pm, jotobjects wrote: > > > Thanks - this sure looks like it might be useful if there was more > > documentation :( >

[android-developers] Re: Including jar files

2010-01-29 Thread jotobjects
Don't know about KSOAP but just put the jar files in your project lib directory. Two practical issues arise: (1) Including a bunch of jar files may increase the size of you application a lot; (2) If the jar files have dependencies on parts of the JSE API that are not part of Android you are SOL.

[android-developers] scrollHorizontal problem on TextView

2010-01-31 Thread jotobjects
I have run into a similar problem. Apparently focus is required to get ellipsize="marquee" or scrollHorizontal="true" to operate. I haven't found where that is documented? Can anyone point that out? Bigger problem is I have one line TextView and even giving it focus doesn't allow it to scroll.

[android-developers] Re: Is Possible implement Like Syntax in SQLiteQueryBuilder?

2010-01-31 Thread jotobjects
Syntax of LIKE expression - http://www.sqlite.org/lang_expr.html#like On Jan 31, 3:23 pm, David Toledo wrote: > No Understand. > > selectionArgs of your Query > How to fill selectionArgs > >  String selectionArgs[] = new String[] { "?A" }; > >  String columns[] = new String[] { MyContentProvider

[android-developers] TextView scrollHorizontally doesn't work

2010-02-01 Thread jotobjects
Is there a way to put a single line of static text into a TextView and allow the user to scroll over the part that is not initially visible? I have tried scrollHorizontally, but I get text that is truncated. This is the layout (that doesn't scroll). I tried setting in the layout and a

[android-developers] Re: docs for shape xml syntax

2010-02-02 Thread jotobjects
On Feb 2, 7:24 am, NoraBora wrote: > a little info here. > > http://developer.android.com/intl/fr/reference/android/graphics/drawa... > Yes, as mentioned in my post above most of the classes in android.graphics.drawable provide some information. You can get a long way with that plus some example

[android-developers] Re: executing a shell script from Android application

2010-02-02 Thread jotobjects
My "guess" is that adb is a development tool and probably not present on the device or available on the emulator at runtime. On Feb 2, 5:35 am, Asif k wrote: > same script I kept in the ubuntu desktop file system and executed with > the normal java code and work nicely... with same APIs > > In th

[android-developers] Re: activity cannot be resolved

2010-02-02 Thread jotobjects
Do you have a res/values/color.xml file with main_back_ground_color defined? Are you "cleaning" and rebuilding your project? It is necessary that bin and gen directories are recreated any time there is a change to resources such as colors.xml On Feb 2, 12:55 am, rakesh wrote: > int mainBackGrou

[android-developers] Re: TextView scrollHorizontally doesn't work

2010-02-02 Thread jotobjects
31 pm, Romain Guy wrote: > scrollHorizontally enables user scrolling for editable text fields. If > you want automatic scrolling, use android:ellipsis="marquee" > > > > On Mon, Feb 1, 2010 at 3:11 PM, jotobjects wrote: > > Is there a way to put a single line of st

[android-developers] Re: ANDROID_ID always null on devices

2010-02-02 Thread jotobjects
That's interesting. Is ANDROID_ID only null on the emulator because the market application is not available on the emulator? On Feb 2, 9:42 am, guich wrote: > Hi, > > Is there a way to populate the id without having to get into the > market? This sounds a very strange policy. Seems that google o

[android-developers] Re: executing a shell script from Android application

2010-02-03 Thread jotobjects
--- > #!/system/bin/sh > ls -a > netcfg > iwconfig > --- > > Hope u got my point. > > Thanks, > Asif > > On Feb 2, 10:20 pm, jotobjects wrote: > > > My "guess" is that adb is a development tool and probably not

[android-developers] Re: Forcibly using 3G or CDMA network even though wi-fi is available.

2010-02-03 Thread jotobjects
Why not add a feature request? Just talking about it here does not get it considered for future releases. http://code.google.com/p/android/issues/entry On Feb 2, 11:35 pm, Doug wrote: > Here's another one - it bit me just the other day. > > - I was at a restaurant that offered a free HotSpot.

[android-developers] Re: DOM, SAX or XMLPullParser ? Any suggestions ?

2010-02-06 Thread jotobjects
On Feb 5, 5:45 am, "Emre A. Yavuz" wrote: > Hi, > > We need to convert XML messages to a stream or string which can then be sent > via sockets. You can read one XML input with XmlPullParser (or DOM or SAX) and write it at the same time to another stream with XMLSerializer - see XmlPullParserFac

[android-developers] Re: TextView scrollHorizontally doesn't work

2010-02-06 Thread jotobjects
Sorry, that doesn't work either On Feb 1, 5:31 pm, Romain Guy wrote: > scrollHorizontally enables user scrolling for editable text fields. If > you want automatic scrolling, use android:ellipsis="marquee" Generating R.java / Manifest.java from the resources... ...\res\layout\main.xml:67: ERROR

[android-developers] Re: TextView scrollHorizontally doesn't work

2010-02-06 Thread jotobjects
this a documentation bug? On Feb 2, 9:40 am, jotobjects wrote: > Actually I have tried both marquee and scrollHorizontally.  There was > a previous topic that I responded to a couple of days ago with the > marquee layout code (that also doesn't work). > > http://groups.google

[android-developers] Re: Launching the correct activity on resume

2010-02-06 Thread jotobjects
It seems you are not going to get a call to onNewIntent() because in ayanir's example Activity A (the activity launched by the home screen) is not on top of the task stack. Apparently the market application is sending an intent for action.MAIN, category.LAUNCHER. Maybe you would need some kind of

[android-developers] Re: Binding list views to large data sets

2010-02-06 Thread jotobjects
It makes sense that getCount() on the cursor might involve reading all the rows even if it probably doesn't actually instantiate all the objects as Bob Kerns correctly points out. A work around is to do a seperate "select count(*)" with the same where clause but this is only an estimate of the num

[android-developers] Re: TextView scrollHorizontally doesn't work

2010-02-06 Thread jotobjects
here are two buttons in a RelativeLayout above this view. Why does this text marquee start scrolling and get focus initially? Here is what works: Adding the element child to the TextView or any other view doesn't seem to do anything. On Feb 6, 11:48 am, jotobjects wrote: > Tri

[android-developers] now there is an ant clean target

2010-02-06 Thread jotobjects
Good news that the build.xml ant script now comes with a built-in "clean" target. This is in 2.0.1. Not sure when this was added (it wasn't there in 1.5). This will remove a major source of confusion with resource id's as discussed in this old post. http://groups.google.com/group/android-develop

[android-developers] Re: Are processes kept alive when nothing is being done?

2010-02-09 Thread jotobjects
On Feb 8, 11:25 pm, Al Sutton wrote: > Thanks for the clarification Dianne. > > I'm guessing the confusion comes from people who (like me) are > familiar with the traditional Linux process model of when a process > has finished it dies What constituents "finished" for an Andorid application? T

[android-developers] Re: Are processes kept alive when nothing is being done?

2010-02-09 Thread jotobjects
On Feb 9, 12:45 am, Michael Elsdörfer wrote: > It would be possible though that a broken application still has active > threads around which are eating CPU cycles, correct? Empty processes have no application components. ASFIK the JVM is gone and all the runtime artifacts of the application ar

  1   2   3   4   >