[android-developers] Re: Can't dispatch DDM chunk 48454c4f

2008-03-23 Thread Rahul
Hi all, I am also getting the same error message: ActivityManager: Can't dispatch DDM chunk 48454c4f What is this error and why does it occur? Thanks Rahul On Feb 17, 5:05 am, Surj <[EMAIL PROTECTED]> wrote: > Yep, Just been getting the same message in trying to get the samples > to run. Must

[android-developers] Re: getAttributes() returns null

2008-03-23 Thread Greg Fodor
It also looks like someone (ahem Google) is not doing any unit testing. On Feb 28, 9:39 am, baldmountain <[EMAIL PROTECTED]> wrote: > Looks like someone should file a bug. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[android-developers] Re: Query People.CONTENT_URI by ID, return sql exception (very simple code with exception)

2008-03-23 Thread Diego Pino
If what you really want is to retrieve contact with id=1, you should provide an URI like "content://android.provider.people/1". People.CONTENT_URI provides you the first part of the URI ("content:// android.provider.people"). Then, you just need to add which ID you want with something like this:

[android-developers] Intent not received

2008-03-23 Thread chris
Hi I have a little problem with intents and intentreceiver I have an application that stay at top and a service running in the background. I'm trying to broadcast an intent from the service to the activity. i'm broadcasting the intent from the service with this code : Log.i(TAG,"Message : USER_

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread MobileBen
Hello. This is my main class, which helps to displays data out of a database in list format. It also handles a "ADD"and a "Delete" Button: /** * A list view example where the * data for the list comes from an array of strings. */ public class TeaTime extends ListActivity { private

[android-developers] Fascinating website.

2008-03-23 Thread Perky Perks
http://jesusjewish.com Really interesting stuff. --~--~-~--~~~---~--~~ 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: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
For Logcat, if you use Eclipse, you can go to Window -> Show View -> Other and find it under Android. There's also a viewer that comes with the sdk if you don't use eclipse. On Mar 23, 2:19 pm, MobileBen <[EMAIL PROTECTED]> wrote: > Hello. > > This is my main class, which helps to displays data o

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
I looked through this code. I didn't try to run it since it looks like I'd need your layout xml as well. I'm pretty sure something in your onCreate of TeaTime is causing this due to what your error says (Unable to resume activity). The stack trace might tell you where the problem is in your code,

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread MobileBen
Thx again for your help. I will check this. Nevertheless here are my XML files: main.xml: http://schemas.android.com/apk/res/android";> and tea_add.xml: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layo

[android-developers] Emulator crashing constantly on Windows Vista

2008-03-23 Thread [EMAIL PROTECTED]
Hi! I updated to the latest release of the Android SDK, and since the emulator and adb.exe crashes, every now and then abruptly. Any inputs. Regards Nitin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: PackageManager.installPackage() ?

2008-03-23 Thread Ben Dodson
Well it looks like I jumped the gun.. no, I haven't yet been able to launch an activity from my data folder. I can load classes from them with the PathClassLoader, but can't call an activity. I think I need to somehow create a new Context with my PathClassLoader as the ClassLoader. Then use this c

[android-developers] Re: how to catch map zoom event??

2008-03-23 Thread cirion
Bump. On Mar 19, 2:52 am, Wael Shaban <[EMAIL PROTECTED]> wrote: > Thanks very much for your helpful info. > But, I found map view handles thezoomdialog andzoomchange listener > without giving me any method to register my OnZoomChangedListener! > > Did you know how to override the one used by map

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
Could you also give me the source for TeaDB? I have a suspicion that might be where the problem is. On Mar 23, 2:42 pm, MobileBen <[EMAIL PROTECTED]> wrote: > Thx again for your help. I will check this. > Nevertheless here are my XML files: > > main.xml: > > > android:id="@+id/b

[android-developers] Re: How to update the UI from a timer

2008-03-23 Thread MobileBen
Hey. I have the same problem updating the Timer. I tried now for hours but I don't get it. Can you perhaps tell me how you solved the problem. Can you perhaps send me some code? Thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread MobileBen
Here it is. Thank you again for your help. I appreciate that. I still didn't find the solution :( public class TeaDB { public static final String KEY_NAME="name"; public static final String KEY_BREWTIME="brewTime"; public static final String KEY_ROWID="_id"; /** * Database

[android-developers] Re: Emulator crashing constantly on Windows Vista

2008-03-23 Thread derekjay
Hi Nitin, How much free memory do you have on your machine? The emulator can use upwards of 200Mb, so if your system memory is only 512Mb you may struggle. Regards, Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] Re: A Question on SQLite

2008-03-23 Thread Megha Joshi
Hi, All databases, SQLite and others, are stored on the device in /data/data/* */databases. You may also load external database files to /sdcard directory and them from there. Thanks, Megha On 3/22/08, KEN <[EMAIL PROTECTED]> wrote: > > > Hello Guys: > > I have a question about Android's SQLite

[android-developers] Re: PackageManager.installPackage() ?

2008-03-23 Thread [EMAIL PROTECTED]
http://code.google.com/android/devel/bblocks-manifest.html "Every Activity must have an tag in the manifest whether it is exposed to the world or intended for use only within its own package. If an Activity has no matching tag in the manifest, you won't be able to launch it." On Mar 23, 3:17 pm

[android-developers] Re: Media Sample Apps

2008-03-23 Thread fry
Hi Megha, Glad to hear about the fixed bug with recorded files, hope the bugfix version of SDK (without broken API :)) would appear before the contests deadline. For the duration - I call it in this way: videoView.setVideoPath("/the_path/videosample2.3gp"); int videoDuration = videoView.getDurat

[android-developers] Re: PackageManager.installPackage() ?

2008-03-23 Thread Ben Dodson
Right, but is there a way to load these dynamically, given another manifest file? Can I edit my manifest file on the fly and inject the activities of the .apk I want to load? Or can I adjust the context I'm running in so the downloaded .apk's manifest is used instead of my own until it is removed

[android-developers] Re: How to update the UI from a timer

2008-03-23 Thread David
Take a look at android.os.Handler. I used this to update the GUI from another thread which should work for a Timer I would think. A ListActivity in my program needed the notifyDataSetChanged message from a thread supplying the data. Using and instance of Handler and calling post the data threa

[android-developers] Re: PackageManager.installPackage() ?

2008-03-23 Thread [EMAIL PROTECTED]
I guess package manager API is what you want, hackbod said is still under development. On Mar 23, 5:03 pm, Ben Dodson <[EMAIL PROTECTED]> wrote: > Right, but is there a way to load these dynamically, given another > manifest file? Can I edit my manifest file on the fly and inject the > activities

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
I have to admit, I don't know cursors that well, so I'm learning a bit here. I really think it has something to do with the call to startManagingCursor(myTeaCursor) that you make. I have gotten to where I get a SQLLiteException due I guess to some query not working. I've tried experimenting with

[android-developers] Re: Conversion to Dalvik format failed with error 2

2008-03-23 Thread Adriano Crestani
It can be found at /tools/ You can use the following command to convert your jar: dx --dex --output=gmedia.dex gdata-media-1.0.jar I'm just wondering how I add the output .dex file on the Android Eclipse project. Should it be placed under src directory? Regards, Adriano On Mar 23, 1:26 pm, n

[android-developers] LinearLayout, ScrollView, and gravity

2008-03-23 Thread cirion
Hello, In my Activity, I have a set of items to display. I'd like to display them starting at the bottom of the screen, growing upwards. If there are more items than fit on the screen, I want to be able to scroll through them. Here's my layout xml: http://schemas.android.com/apk/res/android";

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread MobileBen
Do you think that this is the problem of the error mentioned above? fillData() is just to get the names out of the Database and display them in a list on the screen. The problem is, that is also not really working. I am not sure at the moment if the method "callUpAllTeas" is really working. I t

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
Ok, problem solved, and it had nothing to do with startManagingCursor. Actually I think that was sort of a byproduct of the problem. Remove myDBHelper.close() after your fillData() call. That's what caused it. Now for the second problem is your SimpleCursorAdapter. You are providing it your layo

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
Oh, and I think if you are closing myDBHelper, perhaps that should go in onDestroy. On Mar 23, 5:39 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > Ok, problem solved, and it had nothing to do with startManagingCursor. > Actually I think that was sort of a byproduct of the problem. > > Remove myDBHelpe

[android-developers] Re: Receive an SMS (sms send +9998887777 hello)

2008-03-23 Thread Megha Joshi
Hi, The Android SDK does not include an inbuilt application to send and receive SMS at this time. That is why you don't see any log messages on sending SMS. If you want to see a log, or handle SMS messages you should create your own application. In the AndroidManifest.xml of your application set

[android-developers] Re: Is there any one building a chatroom in the android?

2008-03-23 Thread Megha Joshi
Hi, The SDK does not support iChat API, you could use the gtalkService APIs and the SMSMessage/SMSManager APIs to send and receive text messages. http://code.google.com/android/reference/android/telephony/gsm/package-summary.html http://code.google.com/android/reference/com/google/android/gtalkse

[android-developers] Re: Intent for Time

2008-03-23 Thread Megha Joshi
Hi, You can use the AlarmManager API's setRepeating() method to set a repeating alarm. Set the 'Interval' argument of the setRepeating() method to 1 hour (convert to milliseconds). http://code.google.com/android/reference/android/app/AlarmManager.html Sample code: http://code.google.com/android/s

[android-developers] Re: PackageManager.installPackage() ?

2008-03-23 Thread tu
I do think so! I think there is no way to register a manifest other than package manager API now. The nearest approach I got is the following: ActivityThread thread = ActivityThread.currentActivityThread(); PackageManager manager = this.getPackageManager(); PackageInfo info = manager

[android-developers] Re: Picture and Buttons for different screen size

2008-03-23 Thread Megha Joshi
Hi, You should use LinearLayout, and the layout_weight attribute of the LinearLayout.LayoutParams on your views to define who much space they occupy. For your case you could set the layout_weight of your picture view to 1 and the layout_weight of your button view to 0. http://code.google.com/andro

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread MobileBen
Hey. Does the SimpleCursorAdapter work at your version (second problem). How does your XML look like? I got the error "Your content must have Listview whose id attribute must be android.R.id.list" So I changed it in the XML but it shows up again? Greetings --~--~-~--~~~--

[android-developers] How to start another program in one android program?

2008-03-23 Thread Paul
Now I have a program named ATest, and i have a button in this program. I want to start another program CityListguide when i click the button in program ATest. I use the following exec() metohd, but it can't start the new program. The CityListguide program is stored in com.google.android.citylistg

[android-developers] Maps: Zoom to show multiple locations

2008-03-23 Thread goobnoob
I have a simple application in mind where I would like to zoom the map to show a collection of nearby points on a map. Is there a way to tell the map to zoom to show a range of lats longs, or a collection of locations? goob --~--~-~--~~~---~--~~ You received this

[android-developers] OpenGL Problems

2008-03-23 Thread robi
List, I am trying to get some of the Android-GL (http://code.google.com/p/ android-gl/) examples to work in m5 by breaking them out into separate Android projects then updating the code. I thought I had fixed all the errors in the first tutorial but when I try to run the application Android does

[android-developers] misbehaving grid (not aligning properly with multi-line text and image)

2008-03-23 Thread Ken
Hi there, Please take a look at: http://kombadil.willflow.com/misbehaving_grid/ The grid starts out OK, but if you move around, the alignment is messed up. Any suggestions? Thanks! Ken P.S. I've attached the code below: - main.xml - http://schemas.android.com/apk/res/android";

[android-developers] Porting Android Apps to iPhone

2008-03-23 Thread hitsu_g
Has anyone developing for Android tried porting their apps to iPhone? Once the Challenge's deadline has fallen, I am planning on doing this and just wondering what others' experiences have been like. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Download photo from server

2008-03-23 Thread GUS
Hi folks, I need to download a .jpg photo from a webserver and then save it in a database. Does anyone knows where can I find a sample of downloading files trhu HTTP, and also a sample of serializating files to database? Thank You very much. Gustavo Avila virtualsite.com.br --~--~-~--~-

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread Dan U.
Yes, everything works. Not sure what you changed in your XML, but I am using the same one you posted for main.xml, although I don't think you need that TextView. On Mar 23, 7:06 pm, MobileBen <[EMAIL PROTECTED]> wrote: > Hey. > Does the SimpleCursorAdapter work at your version (second problem).

[android-developers] Re: Unable to resume activity:{...} Java.lang.Nullpointer exception

2008-03-23 Thread MobileBen
That's confusing. I didn't change sth! Can you perhaps send me all the files as a zip file to the following address, then I can compare again. [EMAIL PROTECTED] And thank you again for the time spending on that problem. You helped me a lot. Bye MobileBen --~--~-~--~~~---

[android-developers] Re: Log API names are cryptic

2008-03-23 Thread Bernard
Don't worry, you're not alone, I feel the same way of one letter method/variable/class names. As a side note, my previous work place worked with the VA's VistA EHR (not to be confused with Microsoft Vista). That monster is written in MUMPS. An archaic language that has no reserved keywords. Also,

[android-developers] Not able to connect in emulator behind proxy

2008-03-23 Thread [EMAIL PROTECTED]
Hello Freinds, I have set the proxy for my emulator through the command ./adb shell sqlite3 /data/data/com.google.android.providers.settings/ databases/settings.db "\"INSERT INTO system VALUES(99,'http_proxy',' [host_or_IP]:[port]');\"" my proxy is "proxy:8080". but still,I am not able to connect

[android-developers] Re: Maps: Zoom to show multiple locations

2008-03-23 Thread Peter Stevenson
goobnoob wrote: > I have a simple application in mind where I would like to zoom the map > to show a collection of nearby points on a map. Is there a way to > tell the map to zoom to show a range of lats longs, or a collection of > locations? > > goob > > > > This is some code that pull group

[android-developers] System Menu option issue

2008-03-23 Thread Arun
Is there a way to change the layout of the menu to be in a small font and size format.. Each item looks very big when the menu option is clicked. I am running out of time,..please any quick help is appreciated --~--~-~--~~~---~--~~ You received this message because

[android-developers] Validating XML file using XSD file

2008-03-23 Thread Adriano Crestani
Hi, Is it possible to validate XML files using a XSD file only with the available Android's classes? If it is, where can I find an example code? Thanks in advance :D Adriano Crestani --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-developers] Re: System Menu option issue

2008-03-23 Thread Esteem
you can add a comment to: http://code.google.com/p/android/issues/detail?id=403 :) On Mar 23, 10:26 pm, Arun <[EMAIL PROTECTED]> wrote: > Is there a way to change the layout of the menu to be in a small font > and size format.. > Each item looks very big when the menu option is clicked. > > I am

[android-developers] Input Text Without Deleting

2008-03-23 Thread hitsu_g
In Android's Contacts app, the EditText fields have default text that disappears as soon as you start typing, but when I use an EditText in my apps I have to delete the default text one character at a time before inputing my desired text! How can I add the Contact's functionality to my apps? Thank

[android-developers] How to step by step debug android apps by command line?

2008-03-23 Thread Eckel
We can set a break point and step by step debug apps by eclipse adt plugin, but without eclipse, how to step by step debug android apps by command line? Thanks, Eckel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "A