[android-developers] Re: How to make SMS composing UI same Like Default.

2009-05-18 Thread Mariano Kamp
Could the source be a starting point for you? http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=tree;f=res/layout;h=460b3fc45db10208f4383dc46eb9946b32105e29;hb=master On Mon, May 18, 2009 at 7:02 AM, Gulfam gulfa...@gmail.com wrote: Hi, I am trying to make user interface

[android-developers] Re: Null reference for ImageView

2009-05-18 Thread Dianne Hackborn
Like I said in your other thread, you probably don't want to be doing this. If I am to assume from your code-snippet that you have some kind of PacMan game, where the game is implemented in a SurfaceView and the PacMan is an ImageView... seriously, you don't want to do this. The purpose of

[android-developers] How to use setOnItemClickListener ?

2009-05-18 Thread daehoon
Hi everyone. how to get list id from onItemClickListener? ListView ls=(ListView)findViewById(R.id.list); ls.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View v, int position, long id) {

[android-developers] Why is Bitmap.Config.ARGB_4444 so slow to draw?

2009-05-18 Thread Robert Green
I'm doing performance tweaks for my new game and I seem to have come across something that isn't discussed much but I think is strange. I have a static background bitmap loaded as RGB_565 and it draws lightning fast to the SurfaceView. I then have all of the dynamic stuff, one of which is a

[android-developers] Re: How to make games faster? Using view and redraw is way to slow it seems.

2009-05-18 Thread Robert Green
SurfaceView all the way home. Draw your bitmaps that don't need transparency in RGB_565 and the rest in ARGB_. On May 17, 6:12 pm, klirr haskell...@gmail.com wrote: I have done a simple game where I draw on a View and use invalidate() to force onDraw to be called. This however doesn't

[android-developers] Re: Can you record a video of the screen?

2009-05-18 Thread Raphael
On Sun, May 17, 2009 at 9:17 PM, Sheepz eladk...@gmail.com wrote: I know you can use the ddms view in eclipse to take a snapshot of the screen, but can you somehow make a video like that? I don't think there's such a tool. If you want to make a video of your own app, use the emulator and some

[android-developers] how to stick two buttons together?

2009-05-18 Thread James ZH
Hi all, I have to buttons in a RelativeLayout, but even I set the layout_marginRight/layout_marginLeft to 0, these two button are still separated. pls check the code below, any comments? RelativeLayout xmlns:android= http://schemas.android.com/apk/res/android;

[android-developers] Re: Why is Bitmap.Config.ARGB_4444 so slow to draw?

2009-05-18 Thread Romain Guy
ARGB_ probably forces Skia to go through unoptimized code paths. This format is mostly useful to conserve memory but it kind of sucks if you care about quality. I tried to use it a few times in the Home application but I abandoned the idea because the loss of precision on each channel is way

[android-developers] Re: How to use setOnItemClickListener ?

2009-05-18 Thread Romain Guy
parent.getId() :) The parent argument here is the list itself. On Sun, May 17, 2009 at 11:18 PM, daehoon jeondaeh...@gmail.com wrote: Hi everyone. how to get list id from onItemClickListener?        ListView ls=(ListView)findViewById(R.id.list);        ls.setOnItemClickListener(new

[android-developers] Re: aidl remote service call namespace question

2009-05-18 Thread dev_rob
Hey Dianne, thanks a lot for your answer. The package names are the same, but not the app-names. The .apks are called New_RPC_Client.apk and New_RPC_Server.apk inside both apks the namespace/package name is de.roberlin.new_rpc This is the same in both apps, because the package has to be

[android-developers] Re: how to stick two buttons together?

2009-05-18 Thread Android Users
Its not the right way but try giving a -ve margin. --~--~-~--~~~---~--~~ 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 OS Modification

2009-05-18 Thread Alpesh
Hi, i have one question in my mind,pls help me to clear up my mind. Android is open source and freeware as well as java supported. so can we do Modifying Android's home screen and call screens to our own user-interface. Waiting for reply. :) Thanks Regards, Alpesh

[android-developers] Custom transitions for Activity in 1.5

2009-05-18 Thread android_dev
I have enabled Activity transitions on the emulator thru the SpareParts app. However, I would like to override the system default transitions for a specific activity in my app. I find that in 1.5, animation attributes can be set in the application theme. I have defined a custom animation theme

[android-developers] Re: How to use setOnItemClickListener ?

2009-05-18 Thread Daehoon Jeon
- -! sorry for such a stupid question. --~--~-~--~~~---~--~~ 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: Sprite imaging for 2D game programming

2009-05-18 Thread MrChaz
Take a look at the Canvas method drawBitmap() http://developer.android.com/reference/android/graphics/Canvas.html#drawBitmap(android.graphics.Bitmap,%20android.graphics.Rect,%20android.graphics.Rect,%20android.graphics.Paint) with that one you can specify the bitmap (the sprite sheet), the

[android-developers] Re: How to make SMS composing UI same Like Default.

2009-05-18 Thread Gulfam
Hi Mariano Kamp, Thank you v very much. Its great for me. I have started work on it and have 50% completed. thanks again Gulfam On May 18, 11:09 am, Mariano Kamp mariano.k...@gmail.com wrote: Could the source be a starting point for

[android-developers] Re: Smarter Monkey Needed

2009-05-18 Thread vrukesh
Kindly refer the documentation at http://developer.android.com/guide/developing/tools/monkey.html The flag --ignore-timeouts can help. It appears from the source code of Monkey that this flag is not implemented yet (or at least the flag does not seem to make any impact). Can anyone tell when

[android-developers] Re: Sprite imaging for 2D game programming

2009-05-18 Thread Genc
That's great guys, thanks a lot! On May 18, 9:09 am, MrChaz mrchazmob...@googlemail.com wrote: Take a look at the Canvas method drawBitmap() http://developer.android.com/reference/android/graphics/Canvas.html#d...) with that one you can specify the bitmap (the sprite sheet), the subset of

[android-developers] Re: Sending a data sms to an application port

2009-05-18 Thread Andreas Frey
Hello, is there no help around? Andreas --~--~-~--~~~---~--~~ 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

[android-developers] How to send a MessageBox when select a Menu item?

2009-05-18 Thread daehoon
hi`~ all I want to display an messagebox when select a menu item. The messagebox include a string , Ok button and Cancel button that I can choose one. public boolean onMenuItemSelected(int featureId, MenuItem item) { switch(item.getItemId()) { case INSERT_ID: //

[android-developers] Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread TjerkW
Somebody tested my game (see http://spacewarsgame.wordpress.com) on a real device, however occasionaly this exception is thrown when running the main game Activity. This activity loads a lot of resources in GamePainter.init. (I know it is better to load resources in a separate thread, i'm woking

[android-developers] What kind of views are supported by the AppWidget framework?

2009-05-18 Thread Gerald
Hi, I'm developing widgets for the home screen. By referencing several articles about this topic, it seems that not all views are supported by the widget framework, is that right? For example, AutoCompleteTextView and EditText cannot be used in the framework. I also tried my view with a

[android-developers] Re: What kind of views are supported by the AppWidget framework?

2009-05-18 Thread Gerald
oops, I found the list here. http://groups.google.com/group/android-developers/msg/a5247467151f5e3a On 5月18日, 下午5時32分, Gerald myq...@gmail.com wrote: Hi, I'm developing widgets for the home screen. By referencing several articles about this topic, it seems that not all views are supported by

[android-developers] finding dynamic classes:

2009-05-18 Thread Manjunatha M
Hi All, I have a query.. I am writing a app, which has sort of plugin framework. public abstract class AbstractService { public abstract AbstractService getInstance(String name); } i write some classes A, B, C which are derived from AbstractService. Now, How do i create the instances of A,

[android-developers] Android plugin for Eclipse

2009-05-18 Thread Paul Turchenko
HI. I'm trying to develop plugin for eclipse that should draw my custom view inflated from XML. Everything works fine until eclipse tries to instantiate any class from android.jar library. It fails with Runtime exception without any other helpful information (stub!). Any ideas why is it so?

[android-developers] Re: understanding the permission-group tag

2009-05-18 Thread Lutz Schönemann
Doesn't anybody know something about grouping permissions? The documentation does not explain that tag in depth. Lutz Am 14.05.2009 um 16:38 schrieb Lutz Schönemann: Hi, I need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using

[android-developers] Problem with Camera Picture display - Black screen on G1 :(

2009-05-18 Thread lori lori
Hello Everyone, Please help me in displaying picture taken from camera on G1 device. Camera preview display and canvas to draw picture should use the same surface holder (mHolder). Camera camera = Camera.open(); if (camera != null) { try { camera.setPreviewDisplay(mHolder); } catch

[android-developers] Re: Problem with Internet connection through emulator

2009-05-18 Thread Chronos
Unfortunately, this problem isn't solved :( In addition to the steps Gerald has taken already, we also: - provided the -http-proxy option at emulator start; still no success neither for the browser application, nor for our own application (which works perfectly without proxy) - tried IP

[android-developers] Headset Detection

2009-05-18 Thread Gerby
Hi, i hope somebody can help me. i have developed a service to detect a connected headset at the mobile using following constant http://developer.android.com/reference/android/content/Intent.html#ACTION_HEADSET_PLUG The definition of this constant defines two extra values which will be

[android-developers] Re: Null reference for ImageView

2009-05-18 Thread steve_macleod
Hi Dianne - yup knocking up a wee pacman game to learn android what gave it away? :) I was using standard drawables until I hit the issue of animating the drawables. Thats when I started looking at ImageViews. It was my understanding that I had to use an ImageView to achieve frame-by-frame

[android-developers] Re: Sprite imaging for 2D game programming

2009-05-18 Thread Ayan Afridi
I basically used one bitmap, and a call to canvas after a specified amount of time using a different drawing rectangle, and some canvas transformations On May 18, 4:18 am, Genc gmt...@gmail.com wrote: That's great guys, thanks a lot! On May 18, 9:09 am, MrChaz mrchazmob...@googlemail.com

[android-developers] Re: What kind of views are supported by the AppWidget framework?

2009-05-18 Thread Gerald
I have to use the GLSurfaceView to create a customized widget. Is there any workaround I can achieve it? Thank you Gerald On 5月18日, 下午6時01分, Gerald myq...@gmail.com wrote: oops, I found the list here.http://groups.google.com/group/android-developers/msg/a5247467151f5e3a On 5月18日, 下午5時32分,

[android-developers] INSTALL_PARSE_FAILED_NO_CERTIFICATES error

2009-05-18 Thread allstars
hello world recently i have been using sdk1.5 to develop my programs i use 'ant' to build my projects so i usually type 'ant reinstall' to install my app but now suddenly i got INSTALL_PARSE_FAILED_NO_CERTIFICATES error reinstall: [echo] Installing bin/TestDemo-debug.apk onto default

[android-developers] Re: INSTALL_PARSE_FAILED_NO_CERTIFICATES error

2009-05-18 Thread Manjunatha M
Plese try uninstalling the app with adb uninstall packagename and then re-install the app. On Mon, May 18, 2009 at 5:17 PM, allstars allstars@gmail.com wrote: hello world recently i have been using sdk1.5 to develop my programs i use 'ant' to build my projects so i usually type 'ant

[android-developers] How to determine a resource string is existing or not

2009-05-18 Thread aby
Hi, I want to determine a resource string is existing or not. Because other programs in my system will build this string, I need to check the string building is success or not. If fail, I would replace this string as other string. For example, if I want to get R.build.buildid String updated; if

[android-developers] Cupcake Geocoder getFromLocation Not Working

2009-05-18 Thread beachboy
In version 1.1 of Android I used the getFromLocation to my current location. On Cupcake this same function is returning null. Is this a bug or has this function been disabled? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Read Https page

2009-05-18 Thread Zeeshan Khan
HI, I wanna to read a web page in android, my server is tomcat where I am using .keystore to run tomcat on HTTPS. When I tried to read page using: *new BufferedReader(new InputStreamReader(new URL( https://192.168.1.6:8443/TestSSL.xml;).openStream()))* got following exception:

[android-developers] SDK 1.5 - where has aapt gone?

2009-05-18 Thread brian.schim...@googlemail.com
Hi there, I'm currently very confused about the 1.5 SDK. I used to call aapt.exe from my build script, but the new SDK does not contain aapt any more. Is there any replacement, or can I use on old version of aapt without getting into more problems? To be more precise, I was using autoandroid /

[android-developers] Re: Emulating GPS using DDMS on sdk 1.5 not working on an sdk 1.1 application run on a 1.1 sdk emulator

2009-05-18 Thread neoraptor
Hello RodgerWilko, I have a strange problem too. I can't access to GPS coordinates with the new sdk (1.5). The code works fine with sdk 1.1 (only on a standalone sdk). Could you give me some advices ? (DDMS is not working with the new SDK). Thank you. On May 17, 1:34 pm, RodgerWilko!

[android-developers] Understanding build.xml in SDK version 1.5 - where are the targets?

2009-05-18 Thread brian.schim...@googlemail.com
Hi there, I just tried to figure out the build.xml from the SDK 1.5. I used android update project an an existing project and got a very short build.xml. When I strip out all the comments, this is what's left: ?xml version=1.0 encoding=UTF-8? project name=com.webxells.ourproduct property

[android-developers] Using glColor4x

2009-05-18 Thread Alistair.
Anyone used glColor4x much? I am passing colours into a line draw rtn in the usual format '4 bytes: alpha, red, green, blue.' my call to to set the colour attempts to modify the RRGGBB parts into fixed format values. int red = (color0x00FF); int green = (color0xFF00)8;

[android-developers] problem in calling the number

2009-05-18 Thread PI9
Hello, I'm trying to dial and call a number automatically by launching one single program. On the emulator, everything works fine. On the devphone, the number is dialed but a message appears ..force to close when it's time for calling. Can someone help me understand ? Thanks in advance.

[android-developers] Re: SDK 1.5 - where has aapt gone?

2009-05-18 Thread Al Sutton
It's now in platforms\android-1.1\tools and platforms\android-1.5\tools (depending if you want to use the old or new version). Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number

[android-developers] Re: java.lang.VerifyError

2009-05-18 Thread Todd Sjolander
That error happens when the dalvik VM loads a class into memory. If you look into the log, you can find exactly what class is causing the problem. I had that problem recently and found that android.text.format.Time doesn't load for me. I think the only way around it is to avoid using the

[android-developers] Re: Android 1.5 SDK now available

2009-05-18 Thread teo2706
Hello Xavier, Are there any changes in the dx tool between android 1.5 - $ {android.home}\platforms\android-1.5\tools\lib\dx.jar and android 1.1 - ${android.home}\platforms\android-1.1\tools\lib\dx.jar? Based on my experience, I believe, there are some changes in the codes, that dx tool

[android-developers] Re: What is Context for?

2009-05-18 Thread Matt Williams
The application context itself is not available to the DBAdapter singleton. Am I simply taking the wrong approach in managing my applications access to the database? Would I be better off with using a content provider, for example? Is this the preferred method? Obviously, by using a

[android-developers] Custom Locale + Spare Parts

2009-05-18 Thread Donald_W
Hi, How can I get those 2 applications for my G1 dev phone? They weren't included in image provided by HTC. BR, Tomek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: problem when debugging android application with eclipse

2009-05-18 Thread Daliang Luo
Hi Raphael, I try what you have said tonight and it seems like eclipse has connected to emulator. And I can see the logs coming out, but eclipse still reminds me error: Exception in thread main java.lang.UnsatisfiedLinkError: android.os.process.setArgV0[Ljava/lang/String;]V at

[android-developers] Managed cursor loses position

2009-05-18 Thread Mariano Kamp
Hi, I have the issue that when a user moves away from my activity and comes back later I lost the position in my cursor. In onPause() cursor.getPostion() returns something = 0, in onResume() cursor.getPosition() returns -1. When skipping startManagingCursor() [1] it works as expected. How

[android-developers] Complex ListView Adapter

2009-05-18 Thread AusR
Hi all, I have ListActivity to show a custom list. The adapter for this list is a complex layout only known for each row at runtime depending on data gathered in a previous activity. The question I have is simple. I know it takes 4-6 seconds to prepare the adapter for the rows that will be

[android-developers] Postal Address from Phonebook

2009-05-18 Thread danielececil...@gmail.com
Hi, I try to find the postal address of a contact witch is saved in the phonebook. I know the name of this contact, but i don't know where i can find his postal address. Somebody can help me please :) --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: What is Context for?

2009-05-18 Thread Marco Nelissen
On Mon, May 18, 2009 at 6:39 AM, Matt Williams m...@makeable.co.uk wrote: The application context itself is not available to the DBAdapter singleton. Why not? Can't you pass it in when you create it? Am I simply taking the wrong approach in managing my applications access to the database?

[android-developers] Dynamic Widget Size

2009-05-18 Thread guruk
Hi, I define once in my /xml/widget.xml the minwidth. but what can i do when I need to inflate different sizes from my widget layouts for example. right now i have in my /xml/widget.xml android:minWidth=81dip android:minHeight=72dip for 1 one my 3 widgets thats fine, but the last 2

[android-developers] Re: Sending a data sms to an application port

2009-05-18 Thread Andreas Frey
Looks like I found a bug in the emulator. Receiving data sms on a special port on a developer phone works fine. Can anyone have a look at this and confirm this issue? I had an error in the manifest posted above. receiver android:name=.SMSReceiver intent-filter action

[android-developers] include-ing views into RelativeLayouts

2009-05-18 Thread Matthias
Hi, I have a problem with including a view hierarchy into a RelativeLayout: all layout parameters provided when including it are ignored, or at least not recognized properly. More precisely: I want to position the included hierarchy (root is a LinearLayout) below another LinearLayout in the

[android-developers] Re: Complex ListView Adapter

2009-05-18 Thread Romain Guy
Hi, ListView has an empty view feature. It's a special view that is shown automatically whenever the list is empty. Refer to the documentation or samples to see how to use it. It's very easy. On Mon, May 18, 2009 at 8:10 AM, AusR austinjr...@gmail.com wrote: Hi all, I have ListActivity to

[android-developers] Re: Installing the USB driver for HTC Magic on Vista

2009-05-18 Thread matica
I've now managed to get this working, it showed up in device manage under disk drives and also under USB controllers as a USB mass storage device. It was through here that I tried to update the driver with the one from the SDK which it said was not a compatible driver but going through this

[android-developers] Re: Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread Romain Guy
That means you ran out of memory :) On Mon, May 18, 2009 at 1:42 AM, TjerkW tje...@gmail.com wrote: Somebody tested my game (see http://spacewarsgame.wordpress.com) on a real device, however occasionaly this exception is thrown when running the main game Activity. This activity loads a lot

[android-developers] Re: Complex ListView Adapter

2009-05-18 Thread Jeff Sharkey
In this case, it sounds like the message queue doesn't get a chance to display the activity before it starts working on the AsyncTask. You'll probably want to delay starting the AsyncTask until just after the activity finishes loading and displaying to the user. Implement

[android-developers] Re: Dynamic Widget Size

2009-05-18 Thread Jeff Sharkey
The minimum width is used by the AppWidgetHost when deciding how to display your widget, and in the case of Launcher, it rounds those dimensions into exact cell sizes that it then reserves for you. This means for Launcher-inserted widgets you can't use more space than the exact cell size it

[android-developers] Re: Complex ListView Adapter

2009-05-18 Thread AusR
Yes, sorry I didn't not express that I had an empty 'layout' already defined which works fine if I don't setListAdapter. I think Jeff's explanation sounds like what is happening. I shall try your suggestions. Thanks. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Postal Address from Phonebook

2009-05-18 Thread Jeff Sharkey
You're probably looking for something like this: // First, find the CONTACT_ID of the person Uri filterUri = Uri.withAppendedPath(Contacts.People.CONTENT_FILTER_URI, Person Name); // TODO: read contactId from returned cursor // Then, query for postal contact methods on that person Uri

[android-developers] Re: Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread Tjerk Wolterink
I know, But sometimes it works.. Sometimes it doesnt. Why is that? Memory is fixed so that is strange. Another problem: a user can run a lot of applications in the background. When a user tries to run my game but my game runs out of memmory .. what should i do? How should i deal with this kind

[android-developers] Re: Dynamic Widget Size

2009-05-18 Thread guruk
OK, thanks, but how does this looks in practice let say i have a /xml/widget_word.xml --- appwidget-provider xmlns:android=http://schemas.android.com/apk/res/ android android:minWidth=74dip android:minHeight=72dip android:updatePeriodMillis=2160

[android-developers] Re: Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread Romain Guy
Another problem: a user can run a lot of applications in the background. When a user tries to run my game but my game runs out of memmory .. what should i do? How should i deal with this kind of situation? If your apps needs memory, Android will kill a background process. And your app is

[android-developers] Re: Complex ListView Adapter

2009-05-18 Thread AusR
Wow, thanks guys that worked!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread Tjerk Wolterink
Aha ok, so if this memmory is thrown it mean i really have to cut downon memory usage. Is that right? I have a lot of sprites and a lot fo gamesounds, which takes a lot of memory. 2009/5/18 Romain Guy romain...@google.com Another problem: a user can run a lot of applications in the

[android-developers] Re: Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread Romain Guy
That's correct. On Mon, May 18, 2009 at 9:53 AM, Tjerk Wolterink tje...@gmail.com wrote: Aha ok, so if this memmory is thrown it mean i really have to cut down on memory usage. Is that right? I have a lot of sprites and a lot fo gamesounds, which takes a lot of memory. 2009/5/18 Romain Guy

[android-developers] Re: Dynamic Widget Size

2009-05-18 Thread Jeff Sharkey
Yep, you'll have to define a BroadcastReceiver for each unique size. Here's an example forecast widget where I offer two different sizes: http://code.google.com/p/android-sky/source/browse/#svn/trunk/Sky j On Mon, May 18, 2009 at 9:46 AM, guruk ilovesi...@gmail.com wrote: OK, thanks, but

[android-developers] Re: Loading bitmap: java.lang.OutOfMemoryError: bitmap size

2009-05-18 Thread Tjerk Wolterink
But it's still strange that sometimes it works and sometimes it doesnt work.. hmmm.And another concern: future devices may have more / less memory. How do i deal with that? Can i check the maximum amount of memory? Or just stick to the 16mb limit? 2009/5/18 Romain Guy romain...@google.com

[android-developers] Re: Throttling rate of messages to handler

2009-05-18 Thread Al
Thanks for your reply Dianne. After googling a bit more around your suggestions, I came across wait () and notify() (methods I completely forgot about!). I've used an object shared by both threads and used synchronization along with wait and notify to throttle the sending. It's helped a lot and

[android-developers] canvas scroll

2009-05-18 Thread Maulin
I am writing a solitaire app. I use a canvas to draw everything on the screen. Sometimes a pile of cards will get big and extend below the bottom of the screen. I would like to make the canvas scrollable so the user can access those cards. Main Activity. Java: package

[android-developers] Re: SmsMananger.getDefault().sendTextMessage stopped working.

2009-05-18 Thread cocoaghost
See http://code.google.com/p/android/issues/detail?id=2660. On Apr 23, 7:50 am, z zhao.lu...@gmail.com wrote: I see this error on the command window whereemulator(port 5556) is launched: emulator:couldnotbind serversocketaddress 127.0.0.1:: Address already in use 2009-04-22

[android-developers] Retrieving data from a USSD command

2009-05-18 Thread Terence Eden
I want to call a USSD (http://en.wikipedia.org/wiki/USSD) command and have the reply returned as a String. I can make the device automatically dial the USSD - like so // String encodedHash = Uri.encode(#); String ussd = * + encodedHash + 105 + encodedHash; startActivityForResult(new

[android-developers] Emulator help

2009-05-18 Thread Christopher Marvel
Hi: I Installed the 1.5 SDK and Eclipse on a Mac. When I run my applications, I get [2009-05-16 23:33:44 - Emulator] 2009-05-16 23:33:44.002 emulator[20579:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use

[android-developers] Memory management in OpenGL ES / Red button handling

2009-05-18 Thread Vitaliy Borodovsky
Hi everyone, I am trying to find the way how to handle OpenGL ES memory correctly. After user press RED button, OpenGL context become lost, and I should reload all textures. Do I need to release old textures? How I should manage this situation at all? After 2nd return application become much

[android-developers] Re: What is Context for?

2009-05-18 Thread n5r11
You said any advice so here it comes.. Try looking at chapter 11 LaunchList example from Mark's Android Tutorials book source code: http://commonsware.com/AndTutorials/AndTutorials-0_9_5.zip I sure hope Mark is doing things the write way :) On 17 мај, 19:36, Makeable m...@makeable.co.uk wrote:

[android-developers] Is there an easy way to make EditText look like TextView but still behave like EditText?

2009-05-18 Thread Nikola Radosavljevic
Note: I had troubles posting to android-beginners group, so I came here hoping this will work. Hello there, I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this: EditText

[android-developers] Problem with returning from sleep mode.

2009-05-18 Thread ts
Returning from sleep causes game to run, but the screen doesn't update (on real (G1) device, but works fine on emulator) I'm using DView class that extends SurfaceView and implements SurfaceHolder.Callback, with constructor that contains : SurfaceHolder surfaceHolder = getHolder();

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-05-18 Thread Diptanshu Parui
Thanks Bill. Your suggestion worked for me. I had same problem as couple of other posters. WebView example from android's website was not working despite having the right permissions and no firewall issue. In fact, I tried a to do a HTTPGet into a TextView. That worked fine, but WebView example

[android-developers] Re: Installing the USB driver for HTC Magic on Vista

2009-05-18 Thread Bicycle Shorts
This is not an issue with Android, it is with Vista. Essentially this is the problem: Vista doesn't offer you the chance to update the driver. So, these are the steps I took: - Find the device in device manager (under Disk Drives). - Update Driver Software - Vista says I have the best driver

[android-developers] Re: Keyboard Backlight (G1) unavailable in Cupcake 1.5

2009-05-18 Thread Devomat
Up On 11 Mai, 14:23, Devomat mat.tu...@googlemail.com wrote: Hello, I need a function like: setKeyboardBacklight(boolean state) to switch off the keyboard backlight of the G1. The Cupcake 1.5 update do not allow permission.HARDWARE_TEST to import this function. This is ok, but

[android-developers] NullPointerException in ViewRoot.draw

2009-05-18 Thread Francois
Hello, I have a fairly complex application that I ported from Java. I am now debugging it. When I launch the code under Eclipse, I get a NullPointerException in ViewRoot.draw / ViewRoot.performTraversals / ViewRoot.handleMessage / ViewRoot(Handler).diwpatchMessage at random times when the code

[android-developers] Re: Geocoder not returning result

2009-05-18 Thread bearloveho...@gmail.com
hi, Create a new AVD which target is Google APIs 1.5 instead of Android 1.5 may solve this problem Regards, On May 15, 2:09 pm, Android Users androidmai...@gmail.com wrote: Has anyone else faced issue with geocoding on android 1.5? --~--~-~--~~~---~--~~ You

[android-developers] Re: Can you record a video of the screen?

2009-05-18 Thread Chia-I Wu
On May 18, 12:17 pm, Sheepz eladk...@gmail.com wrote: I know you can use the ddms view in eclipse to take a snapshot of the screen, but can you somehow make a video like that? thanks, For that purpose, I've wrote a simple tool called fbrec http://gitorious.org/fbrec/fbrec It can record the

[android-developers] SensorListener no longer useable, how does SensorEventListener work?

2009-05-18 Thread qLabs
Hello everyone, I have a problem registering a new Sensor Listener with the new SDK. Most of the code examples ive been reading are made with the old interface SensorListener that is now deprecated. We should use SensorEventListener now, and new methods with new signature like registerListener.

[android-developers] Re: Android and the Generic Bootstrapping Architecture authentification system

2009-05-18 Thread Bauer-Live
Hi Thierry, yes, it is possible to read the SIM. The problem is more: with which BSF are you going to bootstrap ? Also, Android's browser would have to get patched to make it respond to the NAF challenge. So for the moment, it is not very likely that this can handled yet, but it will in the

[android-developers] Android instrumentation class : what is the concept ?

2009-05-18 Thread sach...@gmail.com
Hi all, What is android instrumentation framework? how it uses junit tests in android? how to use it ? Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Unique identifier for phone

2009-05-18 Thread K-meister
Hi, I'm looking for a way to identify a phone by a unique string or number. That is, get a phone to give out a code which I can say is unique to that specific phone. The IMEI or IMSI would normally do (sim- specific rather than phone-specific is ok), but they require extra security privileges and

[android-developers] Cursor.moveToFirst() is taking up a lot of time

2009-05-18 Thread Sublimity Mobile Software
Hi, Currently i'm working on a database system for some applications. I need to do a lot of queries to load data from the database into the application. After being amazed how much time it took to do these queries on the database i found out that much time was consumed by cursor.MoveToFirst().

[android-developers] Can not receive multicast packets

2009-05-18 Thread Whino
Hi, I am tring to using UPnP on android. I can send multicast packets out, but I can not receive any multicast packets from other devices. There is a test program. http://www.zippyshare.com/v/75729607/file.html Can any one help me to check what problem is? Thanks.

[android-developers] Re: How to send a MessageBox when select a Menu item?

2009-05-18 Thread n5r11
There is an example like that in the ApiDemos (came with SDK 1.1, not 1.5 - don't know why?). Anyway, you should download SDK 1.1 and start ApiDemos in 1.1 emulator, and play around a little. There is a Dialog example in com.example.android.apis.app.AlertDialogSample.java, and here is the part of

[android-developers] get listview object from xml

2009-05-18 Thread sleith
hi all, i have a listview on xml, and i need to get it's object using findViewById, but i cannot find it in R.id need help . thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Shipping to Hong Kong

2009-05-18 Thread LeanAngel
Dear all, My company is interested in developing for Android and just about ready to sign up. However, I notice that Hong Kong (my office) is not on the list of international markets to which the G1 is stated to ship (ie US, UK, Germany, Japan, India, Canada, France, Taiwan, Spain, Australia,

[android-developers] Auto-IP is not supported

2009-05-18 Thread Whino
Dear all, Due to the DLNA specification, we have to support auto-IP when there is no DHCP server. dhcpcd is used by android and it supports auto-IP, but there are 2 designs inside framework make auto-IP not available. 1. wireless manager timeout is the same as default DHCP discover timeout.(30s)

[android-developers] Re: Screen/Pattern Lock application invocation

2009-05-18 Thread andrew
You can use the method disableKeyguard of KeyguardManager.KeyguardLock,in your program after it is locked. If the screen if locked,but you want you activtiy to display on top,you can use disableKeyguard to hide the locked screen,then if you have done something in your program,use reenableKeyguard

[android-developers] Re: Installing the USB driver for HTC Magic on Vista

2009-05-18 Thread lviggiano
I'm experiencing exatly what cberger is reporting. Raphael, after doing Settings Applications Development USB debugging, I still can't use adb. Typing adb devices, I get an emply list. On 16 Mag, 23:52, Raphael r...@android.com wrote: Once again: the ability to mount the SD card as a drive

[android-developers] Re: how can the contact be writen to SIM card?

2009-05-18 Thread zhanglei
I was told that I can use telephony to create SIM contacts, but I don’t know how to do. who can help me? Thanks in advance for your kind help. _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of 蓝思中 Sent: 2009年5月14日 18:25 To:

[android-developers] Re: Problem with SDK 1.5

2009-05-18 Thread qLabs
well the new signature of the registerListener is a bit tricky coz the only way to get a Sensor is by using the method getSensorList or getDefaultSensor. Ive been using both and i can't suceed registering the listener and i always get an error when i launch the program. here are what im trying to

[android-developers] Re: Installing the USB driver for HTC Magic on Vista

2009-05-18 Thread Bicycle Shorts
The problem is not with Android, it is with Vista. What I have found is that Vista will not let you override USB drivers with what you want. This is what I did: - Connected phone - drivers found automatically - Found phone in device manager (under disks) - Tried to manually search for new

  1   2   >