[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 d

[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 fro

[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 a

[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 subse

[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 wrote: > Could the source be a starting point for > you?http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=tre.

[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 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 the bitmap you want to

[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 gr

[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.. (I know it is better to load resources in a separate thread, i'm woking on i

[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 GLSurfaceV

[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 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 the widget f

[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 usi

[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 (IOExcep

[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 address

[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 availabl

[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 an

[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 wrote: > That's great guys, thanks a lot! > > On May 18, 9:09 am, MrChaz wrote: > > > Take a look at the Canvas method

[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 wrote: > oops, I found the list > here.http://groups.google.com/group/android-developers/msg/a5247467151f5e3a > > On 5月18日, 下午5時32分, Gerald wrote

[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 emula

[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 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 reinstall' to ins

[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] Re: INSTALL_PARSE_FAILED_NO_CERTIFICATES error

2009-05-18 Thread allstars
Hi Majjunatha it works thanks On May 18, 7:52 pm, Manjunatha M wrote: > 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 wrote: > > > hello world > > > recently i have been using sdk1.5 to develop m

[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 Google

[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: *javax.net.ssl.S

[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 / a

[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!" wrote:

[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:

[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 = (color&0x00FF); int green = (color&0xFF00)<<

[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 67419

[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 class.

[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 generates

[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 synchronized

[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.os

[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] Commit default.properties?

2009-05-18 Thread Jack C. Holt
I'm using the 1.5_r1 SDK. I notice that there is a generated file called "default.properties" in the root directory of my project. The comment inside the file says that it is GENERATED by Android Tools, yet the comment also says "This file must be checked in Version Control Systems." Is this a

[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 visib

[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 are

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

2009-05-18 Thread Marco Nelissen
On Mon, May 18, 2009 at 6:39 AM, Matt Williams 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? > Would I be be

[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. --~--~-~--~~~---

[android-developers] -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 inclu

[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 wrote: > > Hi all, > > I have ListActivity to show a custom lis

[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 proce

[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 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 of resourc

[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 MessageQueue.IdleHandle

[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 round

[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 messag

[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 contact

[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 of

[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 --- http://schemas.android.com/apk/res/ android" android:minWidth="74dip" android:minHeight="72dip" android:updatePeriodMillis="2160" android:initialLayout="@layout/widget_word" android:

[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 e

[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 > > > Another problem: a user can run a lot of applications in > > the background. When a user

[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 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 >> >> > A

[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 wrote: > > OK, thanks, but how does this looks i

[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 > > That's correct. > > On

[android-developers] Re: Dynamic Widget Size

2009-05-18 Thread guruk
thanks.. i will have a look on that now :) again.. BIG Thanks for your Help. You answer quit fast on my questions and also you work with examples.. thats really great and pro work ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Dynamic Widget Size

2009-05-18 Thread guruk
but its a pitty that I have to create TWO different configure activities also http://schemas.android.com/apk/res/ android" android:minWidth="74dip" android:minHeight="72dip" android:updatePeriodMillis="2160" android:initialLayout="@layout/widget_word" android:configure="co

[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 t

[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 com.maulinpathare.solitaire

[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 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 15:25:04.427emulator[32237

[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 Intent

[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 o

[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 slo

[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 wrote: > I have just st

[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: ..but I get an error within x

[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(); surfaceHolder

[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 wa

[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 a

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

2009-05-18 Thread Devomat
Up On 11 Mai, 14:23, Devomat 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 now G1 (white)

[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 ru

[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 wrote: > Has anyone else faced issue with geocoding on android 1.5? --~--~-~--~~~---~--~~ You received this message be

[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 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 screen to a serie

[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. T

[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 fut

[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(). Th

[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

[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, S

[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 reenableKeyguar

[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 wrote: > Once again: the ability to mount the SD card as a drive as nothing t

[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-d

[android-developers] wifi startScan() return fail in ActivityInstrumentationTestCase

2009-05-18 Thread redstock
Hi, Currently, i am writting an instrumentation test case to test wifi APIs. I inherit my test case from ActivityInstrumentationTestCase. But there is one problem I have run into that execution of startScan() in test case always return fail after wifi is turned on, but turn on/ off (call setWifiE

[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 driv

[android-developers] Re: UNLOCK Screen lock programatically

2009-05-18 Thread andrew
I have use KeyguardManager.KeyguardLock to do lock and unlock. But I found that if unlock the screen,the HOME key can still work,is there any way to disabled the HOME key? Just like the in-call screen,when it is shown,the HOME key can not work,and in the log,you can see "Ignoring home key..."

[android-developers] regarding the floating point on G1 Google phone

2009-05-18 Thread Yin
Hi all, I have been searching about the floating point support on G1 phone (aka the HTC Dream phone) for a few hours. So far, my conclusion is that the ARM-based Qualcomm MSM7201 CPU does not have VFP (floating point coprocessor) and therefore floating point calculations have to be done via soft

[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] floating point support on G1 phone

2009-05-18 Thread Yin
Hi all, I have been searching about the floating point support on G1 phone (aka the HTC Dream phone) for a few hours. So far, my conclusion is that the ARM-based Qualcomm MSM7201 CPU does not have VFP (floating point coprocessor) and therefore floating point calculations have to be done via soft

  1   2   >