[android-developers] Re: Geo command

2009-05-17 Thread Mark Murphy
Anyone can help me on this? I installed android sdk 1.5, but in no where I can find the geo command. Where should I get one? You need to telnet into the emulator: telnet localhost 5554 And there you can run the geo command: geo fix [lon] [lat] -- Mark Murphy (a Commons Guy)

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

2009-05-17 Thread Dianne Hackborn
For the second question, you'll either want to define an abstract action in an intent-filter for the service and use that as the intent you bind to (typically the action is the name of the desired interface for binding to services), or create an explicit ComponentName with the package name + class

[android-developers] Re: Drawing on the incoming call screen

2009-05-17 Thread Dianne Hackborn
No, you can't draw directly on it. On Fri, May 15, 2009 at 5:55 PM, GT burlysk...@gmail.com wrote: Is it possible to draw on the incoming call screen? I know that a few of the whitepages apps do it, but I would like to know how. Thank you for your time -- Dianne Hackborn Android

[android-developers] How to set some lists in one layout?

2009-05-17 Thread daehoon
How to set a few lists in one layout include their own data from DB? here is source code about set list in Android guide. List id is @android:list why the id must be android:list?, may I use my own id? If I can, how to set lists to main layout including their own data (title)? Cursor

[android-developers] Re: Drawing on the incoming call screen

2009-05-17 Thread iPaul Pro
Perhaps you could try launching an activity with a transparent background, strategically positioned, that fires when an incoming call is received. It will have the same UI effect. I assume that this is the way other apps achieve this feature. On May 15, 8:55 pm, GT burlysk...@gmail.com wrote:

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Mark Murphy
How to set a few lists in one layout include their own data from DB? Use multiple ListView widgets in the layout. Either have one handled by ListActivity and you handle the other(s), or handle all of them yourself. It's not that hard. here is source code about set list in Android guide. List

[android-developers] Re: How to handle tall dialogs

2009-05-17 Thread Thomas
Yes, that will work. And indeed it is a much bette approach than my initial solution. Thank you very much... Regards Thomas On 17 Mai, 05:37, Marco Nelissen marc...@android.com wrote: You could try using a different layout for landscape mode, where instead of: label textfield label

[android-developers] trouble with Contacts groups

2009-05-17 Thread Thomas
Hi group. I want to be able to have persons that are synced wih Google, still are not visible by default. My idea is to have then in a special group but not in the system group Contacts. This is what I do: I create a Contacts group as follows: Uri uri = Contacts.Groups.CONTENT_URI;

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
Can you show me a simple ex.? Actually I don't know how to use multiple ListView widget. If this is two lists in main xml. ListView android:id=@android:id/list1 android:layout_width=fill_parent android:layout_height=wrap_content / ListView

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Mark Murphy
Can you show me a simple ex.? Not readily. I do not know of an example with multiple ListViews, since that is an uncommon UI pattern. If this is two lists in main xml. ListView android:id=@android:id/list1 android:layout_width=fill_parent

[android-developers] Re: NullPointerException : String imageFileName = myFile.imageFileName.toString(); when imageFileName is null

2009-05-17 Thread Mariano Kamp
You need to paste a bigger code sample then. The question would be then how comes that imageFileName is null? You need to paste at least the part where a value should have been assigned to it. On Sun, May 17, 2009 at 6:21 AM, chrispix chris...@gmail.com wrote: Can you explain how it worked up

[android-developers] A suggested way to deal with long running tasks across context switches.

2009-05-17 Thread Parakoos
I was excited to see the introduction of the AsyncTask. Anything to make the division of UI / Background work easier is good in my book. What bugged me was that I couldn’t see a way to keep a long running process alive during a context switch e.g. a layout orientation change. As far as I could

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
If I write list ids like that I can't show list where I want to.I have to separate id to two ListView . ls1.setAdapter(notes); ls2.setAdapter(notes); this is not working. I should set list with setListAdapter, but ListView does not support setListAdaper. ls1.setListAdapter(notes);//The

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Mark Murphy
If I write list ids like that I can't show list where I want to. Yes, you can. ListViews work like any other widgets. I have to separate id to two ListView . Correct. That is what I wrote. ls1.setAdapter(notes); ls2.setAdapter(notes); this is not working. It should. I should

[android-developers] Re: Errors on Windows 7

2009-05-17 Thread Al Sutton
I've just run my own tests with the Google 1.5_r1 SDK and Win 7 RC 32 bit and it worked without any problems and without the need to use compatibility mode. I used a clean fresh install of Win 7 RC from the DVD and unzipped the SDK downloaded from Googles site. Maybe something you've

[android-developers] Re: Install Android on Windows XP

2009-05-17 Thread Pierre Bonnefoy
The link you used can no longuer work with the new version of the sdk because the parameters to pass to the emulator when you launch it have changed. Basically, what was described could work (the other methods described in the answers requires that you install eclipse, which is not mandatory if

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
How do we get data from DB to the list?If I use setListAdapter I can get data from DB like this : Cursor notesCursor = mDbHelper.fetchAllNotes(); startManagingCursor(notesCursor); String[] from = new String[]{NotesDbAdapter.KEY_TITLE}; int[] to = new int[]{R.id.text1};

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

2009-05-17 Thread scorpio
Hi, I added third party jar.It builds, but when executed showing java.lang.verifyerror, what shall I do. Shall I unzip the jar, and include all java classes that I needed. I feel its an option, any other better option is there. What may be the exact reason for this error Thanks Nithin On May

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Mark Murphy
How do we get data from DB to the list?If I use setListAdapter I can get data from DB like this : Cursor notesCursor = mDbHelper.fetchAllNotes(); startManagingCursor(notesCursor); String[] from = new String[]{NotesDbAdapter.KEY_TITLE}; int[] to = new

[android-developers] 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-17 Thread RodgerWilko!
Hi, Has anyone else had this or know a solution? I've just upgraded to sdk 1.5 and i'm trying to pump in fake gps co- orindates using ddms and a gpx file on an application/emulator running on the old sdk 1.1. When I press the play button the emulator dose not recieve the GPS updates which i've

[android-developers] Market countries - how are they determined ?

2009-05-17 Thread kiu
In the android market the countries where your app should be published can be selected. How is the country determined ? Where the device was bought ? Which country SIM is inserted ? Which GSM network it is currently connected to ? Which country was specified in the google account ? Simon

[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-17 Thread RodgerWilko!
Ok - this was a strange one. My application used the SD-card to access data and the emulators virtual SD-card had a lock on it (indicated by a directory with a .lock extension) .. so the application was not recieving the updates as it could not access the data on the SD-card .. I removed the

[android-developers] Re: AChartEngine - a charting framework for Android applications

2009-05-17 Thread Dan Dromereschi
Hi, The newly released version of AChartEngine (0.3.0) supports the features that you have requested: * vertical X axis charts (only horizontal X axis charts were supported previously) - available for the bar, line, area, time and scatter charts * text on top of the chart value (or on the

[android-developers] Help : H324m compilation flags ( play from file recording into file )

2009-05-17 Thread srinu gorle
Hi All, i would like to test 2wayEngine with 324 supprot in opencore with all flags combinations . But i have failed to compile the 2Wayengine code with the follwing flags PV_PLAY_FROM_FILE_SUPPORT, PV_RECORD_TO_FILE_SUPPORT. i enabled these flags in the /engines/2way/test/build/local.mk even i

[android-developers] Re: 'Take a picture' intent on 1.5

2009-05-17 Thread fala70
did you solve ? I've same problem On 5 Mag, 00:24, BoD bodl...@gmail.com wrote: Anyone? Thanks for your help! BoD On May 4, 12:46 am, BoD bodl...@gmail.com wrote: Hi! Following this old thread:http://groups.google.com/group/android-developers/browse_thread/threa... and this

[android-developers] Re: EditText for App.Widget

2009-05-17 Thread Mr.No
No, there is no EditText for the HomeScreen Widget On 14 Mai, 14:14, pMay eniak.i...@googlemail.com wrote: It doesnt work with 1.5? On May 6, 10:32 am, Mr.No f.hi...@arcor.de wrote: Hello, in which Android-SDK version their will be a EditText for the App.Widget?

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

2009-05-17 Thread dev_rob
I now have the TestInterface.aidl in both eclipse projects and project 2 (the service project) is added to project 1's build path. I declared the service in the manifest-file with: service android:name=.TestStringService android:exported=true android:process=:remote

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

2009-05-17 Thread Dianne Hackborn
Er... you are sure that both .apks have different package names? Anyway it sounds like whatever problem you have has nothing to do with services themselves, but just getting both apps installed at the same time? On Sun, May 17, 2009 at 7:35 AM, dev_rob robwiene...@googlemail.com wrote: I now

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

2009-05-17 Thread g1port.com
Hi guys, For a 2D game programming, I'm trying to learn about loading an image file for all states of a game character (simply a walking soldier lets say) and simply animate it. I think this classic method is called as sprite imaging that you load whole image of all states of the

[android-developers] Re: A suggested way to deal with long running tasks across context switches.

2009-05-17 Thread Dianne Hackborn
Async task doesn't take a Context, so I think you are making this more complicated than it needs to be. You can just propagate an active AsyncTask through onRetainNonConfigurationInstance() as long as the object doesn't have any ties to the current activity -- so basically make sure it is static

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

2009-05-17 Thread dev_rob
I think it's rather a problem with namespaces. And the package names in both projects are indeed identical! But as (one of my original questions) both projects have to contain the TestInterface.aidl the package names must be the same, because otherwise there is a different package name in

[android-developers] Fastest way to load images

2009-05-17 Thread The Savage Killer
Hey, I'm currently developing a game, and I need to know the best way to reference its sprites for drawing. Right now I have a pretty simple runnable thread that starts after the application starts, so it doesn't hang, and loads up every drawable to a variable. Like so; new

[android-developers] Re: video play error

2009-05-17 Thread Marco Nelissen
On Sat, May 16, 2009 at 9:51 PM, Nithin Varamballi nithi...@gmail.com wrote: Thanks for reply...           But i tried another video i e test.mp4 through sdcard... But it works fine May emulator support all .mp4 files...? Not really, for two reasons. First of all, mp4 is a container

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

2009-05-17 Thread schwiz
take a look at this reference http://developer.android.com/guide/topics/resources/available-resources.html and take a look through some of the tutorials here http://www.anddev.org/ On May 17, 10:23 am, g1port.com gmt...@gmail.com wrote:         Hi guys,         For a 2D game programming, I'm

[android-developers] SoftKeyboard Example Problem

2009-05-17 Thread BlackLight
Hello. I'm trying to understand how SoftKeyboard example from sdk 1.5 works. I made apk and installed it on emulator 1.5. I see only default keyboard (Android Keyboard). Please, give me some information (url?) to read more about custom softkeyboards. Thanks.

[android-developers] Re: SoftKeyboard Example Problem

2009-05-17 Thread Menny
If you run the sample in 1.5 SDK in the emulator, you'll be able to use it by enabling it in Settings-Localetext. Then go to any text-box, and do long press on it, till a context menu will open up. Select from this menu Input method, and select the new soft keyboard. On May 17, 6:56 pm,

[android-developers] trouble with using keyboard-input to move things on screen, using requestFocus, OnKeyListener etc unsuccessfully.

2009-05-17 Thread klirr
package com.android.shmup; import android.app.Activity; import android.content.Context; import android.graphics.*; import android.os.Bundle; import android.view.View; import android.view.KeyEvent; import android.view.View.OnKeyListener; public class Shmup extends Activity { //GraphicsActivity {

[android-developers] Re: A suggested way to deal with long running tasks across context switches.

2009-05-17 Thread Romain Guy
Like Dianne said, an AsyncTask doesn't take a Context. If you are careful about what references you keep in the AsyncTask, there will be no problem at all. The implementation you link to has two issues in my opinion: it is not as easy and straightforward as AsyncTask, and you lose the ability to

[android-developers] What is Context for?

2009-05-17 Thread Makeable
I have just started on a new application that will use SQLite for persistance and Im a bit confused over the usage of a context when utilizing the SQLiteOpenHelper. I have a base class called Storable, which my models extend if they need to be persisted. i had intended to use a synchronized

[android-developers] The GIMP cannot digest the standard widget frames

2009-05-17 Thread JP
To paraphrase Chris Nesladek from his blog post: http://android-developers.blogspot.com/2009/04/widget-design-guidelines.html My designer and me have found that the GIMP does not correctly read the standard widget frames available for download here:

[android-developers] Re: Corrections in Docs

2009-05-17 Thread jtaylor
Sounds Good. + Juan On May 11, 3:17 pm, Marco Nelissen marc...@android.com wrote: On Mon, May 11, 2009 at 11:24 AM, jtaylor jatto@gmail.com wrote: Shouldn't there be a place outside of the Issues page, where one can report spelling errors that are in the docs and articles? File a bug

[android-developers] Re: Help: View Not Shown After TableLayout

2009-05-17 Thread efan
Yes, it works fine now after changed to height=wrap_content. Thanks to all replied. On May 16, 8:59 pm, Romain Guy romain...@google.com wrote: YourTableLayouthas height=fill_parent, it's therefore as tall as its parent, so there's no more room left on screen to show the TextView. On Sat,

[android-developers] Re: Frame-by-frame animation issue

2009-05-17 Thread steve_macleod
Thanks for the reply. I've been looking into this some more, and it looks views must be referenced from the thread in which they were inflated. Looks like I should be interacting with views from the main thread, and using a Handler object to interact with this thread from the worker thread. On

[android-developers] Re: trouble with using keyboard-input to move things on screen, using requestFocus, OnKeyListener etc unsuccessfully.

2009-05-17 Thread klirr
added setFocusable(true); but still doesn't work. package com.android.shmup; import android.app.Activity; import android.content.Context; import android.graphics.*; import android.os.Bundle; import android.view.View; import android.view.KeyEvent; import android.view.View.OnKeyListener; public

[android-developers] Re: trouble with using keyboard-input to move things on screen, using requestFocus, OnKeyListener etc unsuccessfully.

2009-05-17 Thread Romain Guy
I just tried by copy and pasting your source code in a new Android project using the Eclipse plugin and it works just fine. On Sun, May 17, 2009 at 1:38 PM, klirr haskell...@gmail.com wrote: added setFocusable(true); but still doesn't work. package com.android.shmup; import

[android-developers] Re: ( problem for experts ) update/refresh list problem

2009-05-17 Thread Adem KARAKOLLU
Any idea On Sun, May 17, 2009 at 5:13 AM, Adem KARAKOLLU karako...@gmail.com wrote: I have two cursor, one of them from contact content provider, other one from database. id fields are sycnhorinzed. i want to show them in same column with two row in list. i m think that i have to use

[android-developers] Re: Market countries - how are they determined ?

2009-05-17 Thread Raphael
The correct place to ask Market questions is http://www.google.com/support/forum/p/Android+Market R/ On Sun, May 17, 2009 at 4:27 AM, kiu sch...@googlemail.com wrote: In the android market the countries where your app should be published can be selected. How is the country determined ?

[android-developers] Null reference to ImageView from custom view

2009-05-17 Thread steve_macleod
Hi, I have the following xml layout: android.pacman.com.PacManMainView android:id=@+id/pacman_main_view android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:id=@+id/pacAnim android:src=@drawable/pac02

[android-developers] Null reference for ImageView

2009-05-17 Thread steve_macleod
Hi, I have the following xml layout: android.pacman.com.PacManMainView android:id=@+id/pacman_main_view android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:id=@+id/pacAnim android:src=@drawable/pac02

[android-developers] Module version conflicts between wlan module and Android kernel source

2009-05-17 Thread Jim Bray
Hi, I'm tinkering with building and installing Android from source. Basically I've got it down fairly well, but I seem to have run into a bit of a problem with the wlan module, probably from HTC. Having pulled the 2.6.27 kernel sources and built that with a .config pulled from the phone,

[android-developers] Re: Module version conflicts between wlan module and Android kernel source

2009-05-17 Thread Jeff Sharkey
The android-porting list might be a better place to ask this, as they deal with lower-level hardware. j On Sun, May 17, 2009 at 2:55 PM, Jim Bray jimsante...@gmail.com wrote: Hi,  I'm tinkering with building and installing Android from source. Basically I've got it down fairly well, but I

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

2009-05-17 Thread klirr
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 seem to scale at all since even for this little game it is quite slow. So what is the solution, to use openGL? that is what all games should? and then I should use frames

[android-developers] Re: Module version conflicts between wlan module and Android kernel source

2009-05-17 Thread Jim Bray
Thanks. I found an 'Android Linux Kernel Development' group I didn't know about. I'll try there. JB On May 17, 6:27 pm, Jeff Sharkey jshar...@android.com wrote: The android-porting list might be a better place to ask this, as they deal with lower-level hardware. j On Sun, May 17,

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread Marco Nelissen
I'm not 100% sure, but I don't think a SurfaceView can have child views (since it's not a ViewGroup). On Sun, May 17, 2009 at 2:53 PM, steve_macleod steven_macl...@hotmail.com wrote: Hi, I have the following xml layout: android.pacman.com.PacManMainView      

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread steve_macleod
Thanks for the reply. Ill look into this. What is the best way to get a reference to the ImageView from the custom view code, if this is the case? On 18 May, 00:19, Marco Nelissen marc...@android.com wrote: I'm not 100% sure, but I don't think a SurfaceView can have child views (since it's

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread Marco Nelissen
If this is indeed the case, then the ImageView isn't actually there, so you can't get a reference to it. On Sun, May 17, 2009 at 4:45 PM, steve_macleod steven_macl...@hotmail.com wrote: Thanks for the reply. Ill look into this. What is the best way to get a reference to the ImageView from

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

2009-05-17 Thread Marco Nelissen
If using OpenGL doesn't make sense for your game, check out SurfaceView. On Sun, May 17, 2009 at 4: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 seem to scale at all since

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread steve_macleod
So if I had: FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android.pacman.com.PacManMainView android:id=@+id/pacman_main_view android:layout_width=fill_parent

[android-developers] Re: Null reference for ImageView

2009-05-17 Thread Marco Nelissen
From PacManMainView, you would first get the parent view (the FrameLayout), and from there you can find the ImageView. On Sun, May 17, 2009 at 5:16 PM, steve_macleod steven_macl...@hotmail.com wrote: So if I had: FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android    

[android-developers] Throttling rate of messages to handler

2009-05-17 Thread al capwn
My app makes use of threads and uses handlers to send messages to the gui. The thread maintain a connection to a server and receive messages from it. The problem I'm having is that sometimes messages arrive really fast, and although the app doesn't anr, the UI freezes as it tries to cope with the

[android-developers] Efficiency question re:resources

2009-05-17 Thread James McMurray
Can anyone tell me which is more efficient: 1) Getting a resource id with getIdentifier(name, defType, package) or 2) doing a database lookup on a unique field Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

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

2009-05-17 Thread Dianne Hackborn
If you have give the .apks the same name, you can't have them both installed at the same time, because they are both effectively the same app. You can have classes in whatever namespace you want inside of the .apk (and even publish these in the manifest via fully qualified class names). On Sun,

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

2009-05-17 Thread Dianne Hackborn
Correct it wouldn't work, since there is a lot of careful dispatching code in the window manager that this sleep trick is actually relying on. There are many ways you can perform throttling, depending on your exact situation. For example: 1. Put a delay before you send a message, so if you get

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

2009-05-17 Thread Marco Nelissen
Your application/activity will be given a Context by the system. Use that. On Sun, May 17, 2009 at 10:36 AM, Makeable m...@makeable.co.uk wrote: I have just started on a new application that will use SQLite for persistance and Im a bit confused over the usage of a context when utilizing the

[android-developers] Re: SoftKeyboard Example Problem

2009-05-17 Thread BlackLight
Thank you. On May 17, 8:23 pm, Menny menn...@gmail.com wrote: If you run the sample in 1.5 SDK in the emulator, you'll be able to use it by enabling it in Settings-Localetext. Then go to any text-box, and do long press on it, till a context menu will open up. Select from this menu Input

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

2009-05-17 Thread Sheepz
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, E. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

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

2009-05-17 Thread Gulfam
Hi, I am trying to make user interface same like default sms composing ui screen but unable to make same like that. any one can share xml with me if he/she have developed or give me any idea how to do it. Thanks in advance, Gulfam --~--~-~--~~~---~--~~ You

[android-developers] Re: Diplay Logcats logs on console

2009-05-17 Thread Ruiming Li
You can try the following code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //If your layout is main.xml TextView tv = (TextView)findViewById(R.id.TextView01); tv.setText(Hello,

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
It's very helpful for me. Thanks for help.there is another problem I can display lists, but I don't know how to set onItemClickListener ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Efficiency question re:resources

2009-05-17 Thread Dianne Hackborn
I would guess possibly the former, but you should time them and see. (And avoid either of them for performance critical code, since they are both expensive.) On Sun, May 17, 2009 at 7:39 PM, James McMurray james.t.mcmur...@gmail.comwrote: Can anyone tell me which is more efficient: 1)