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)
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
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
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
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:
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
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
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;
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
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
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
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
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
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
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
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
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};
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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.
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,
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 {
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
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
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:
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
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,
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
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
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
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
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 ?
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
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
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,
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
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
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,
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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,
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.
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)
70 matches
Mail list logo