I got the same illegal modifier for strSheikResp error from Eclipse
when I put it inside a function, but no error when I put it inside a
class but outside of a function.
static final String[] strSheikResp = new String[]{open sesame};
Where did you put the declaration?
Yusuf Saib
Do you mean you are able to ping the server from PCs on the same
subnet as the G1, but not able to access the website from the G1?
If so, can you see the website from the PCs? Are you entering the same
URI on the phone as on the PCs? Is it possible to look at the server
log to see if it sees an
For an Android to question whether its lives in a simulation, it could
detect the number of sensors (should be zero)
http://developer.android.com/reference/android/hardware/SensorManager.html
Or query various ids like the IMEI:
The Android emulator supports sending SMS, but not MMS. Sorry.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On May
Have you looked at androidchat? http://code.google.com/p/androidchat/
It is written for Android 1.0, which means it may need some
modification to be compatible with the Android 1.5 API.
You will find some more network client tutorials here:
http://www.androidnotes.com/android-tutorials/
What have you tried so far? Have you looked at
http://developer.android.com/guide/topics/media/index.html ?
There is also a tutorial, although the API may have changed a bit with
cupcake: http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/
Other problems people have encountered
To display Thai (or any alphabet that does not ship with your phone)
in your app, you need two things:
(1) put your strings in unicode, preferably not hard-coded in-place.
Read up on Java internationalization if you don't know about it.
(2) the font to be installed. My G2 doesn't seem to support
I will assume that you already know about application development in
general, and Android development in particular. If not, there are some
Android tutorials that can help you with those.
For shooting an object, your application will need to do three things:
1) listen for the user pressing a
This is the Canvas class I was referring to:
http://developer.android.com/reference/android/graphics/Canvas.html
That will be where you start with 2D graphics on Android.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author
You also need to set up the Run Configuration. One way to do this is
by right-clicking on the project in the left pane, and selecting Run
As - Run Configurations. In left side of the resultant popup dialog,
click on the little icon for new launch configuration (you will find
it above where it
You will mostly use the Canvas class:
http://developer.android.com/reference/android/graphics/Canvas.html
For one object to pass over another, you use drawing layers, which
Canvas supports.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are
Hi Janardhan, if you want a client and server both on the phone, use
an Activity for the former and Service for the latter. Otherwise, if
you want to the server to be accessible by any phone, then one way to
do this is to use Google's App Engine. Your client application can
then communicate with
It depends on how much common logic the different levels share. For
example, if on the first level the player is fighting green sprites on
low platforms, but blue sprites on green platforms, then just a set of
level-describing files will suffice. If there is a small amount of
level-specific
In fact Canvas is probably your best bet for a 2D game. It has all the
functions (such as drawing shapes, sprite and layers) that you should
need. OpenGL is more versatile and faster, but is much more work for
the developer, so I would recommend starting with Canvas.
Yusuf Saib
Android
·T· ·
Whatever book you get, make sure that it covers 1.5 (Cupcake), as the
APIs changed enough that it matters.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
Sun's online Java tutorial is also good. As you can imagine, opinions
vary.
The benefit of learning on the device is that if you find it more
interesting than learning on a PC, learning is easier. The drawback is
that the last two steps of the code/compile/run cycle take a little
longer. I
Start a ListActivity:
http://developer.android.com/reference/android/app/ListActivity.html
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of
Hello Pablo, you've come to the right place to ask this question.
Android uses the Java programming language. If you have not learned
Java yet, you may start here: http://java.sun.com/docs/books/tutorial/
If you are familiar with Java, you can learn about Android here:
Android does not support Push in the SDK. Internally, it has a push
feature called 'tickle', but that is not supported for third party
development.
Without knowing more about your app, I'm not sure a local webserver
will address your problem.
Yusuf Saib
Android
·T· · ·Mobile· stick together
There are any number of reasons that might not be working; it sounds
like your .so is not in the path. The other issue is that Android does
not use the usual glibc, but instead a replacement called 'bionic'.
If you are writing a native application, I would recommend looking
into the upcoming
Hello dear Android Beginners. There is a wonderful Android tutorial
over at FreshBrain at
https://freshbrain.org/group/building-applications-g1-mobile-phone-learning-path
. Disclaimer: T-Mobile played a role in making it available, thus its
wonderfulness.
FreshBrain describes itself as The
I have good news for you:
http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL
calls a number.
I also have bad news for you. The documentation at that link states,
Note: this Intent cannot be used to call emergency numbers.
Applications can dial emergency numbers using
The short answer is: yes, if you have access to the device bootloader
as well as device drivers that Android can use.
The other short answer (at no additional cost!) is: there is a
wonderful forum for precisely these questions:
http://groups.google.com/group/android-porting
Yusuf Saib
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: +
phoneNumber + ; + dtmfSequence));
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those
Ah, the inspiration and heartbreak of tutorials for a moving target.
The vagaries of coding on the bleeding edge of technology like a leaf
upon on the wind of our collective mind.
Where was I? Oh right, that API was removed, I think in 1.5. Now we
have openOrCreateDatabase:
The system requirements for the Android SDK on Windows are Windows XP
(32-bit) or Vista (32- or 64-bit). But to quote Henry Ford, Obstacles
are those frightful things you see when you take your eyes off your
goal. So to set ADBHOST or any environment variable on Windows NT,
follow the
Hello Dinesh, welcome to Android and good luck with your project and
your search for information. I recommend you ask your question at
http://groups.google.com/group/android-porting in order to reach a
group with experience closer to your specific needs.
Yusuf Saib
Android
·T· · ·Mobile· stick
This is an infamous Java pitfall. Use String.equals() instead.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Jul
Grope here: http://code.google.com/search/#q=android
And click on the Project Hosting tab. Due to the open nature of open
source, it won't be a comprehensive list of all Android projects. But
tricorder is there!
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and
You can use any IDE, or the command line, although Eclipse is the
recommended way to develop an Android application according to
http://developer.android.com/guide/developing/other-ide.html , which
then goes on to tell you how how to not use Eclipse.
See also
Did you send this via twitter? I'm not perceptive enough to grasp what
is happening in your description, but I recently wrote up an extended
set of steps, including with regards to the AVD. I hope it helps.
How to install the Android SDK in two dozen or so easy steps
(based on
You could put several activities in one project and specify the main
activity in the manifeset file, but making a new project for each is
easier.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual
last request cn yu snd me a link of a website, that can show me how to
use eclipse bcuz the android developer website is a little complicated for a
beginner
On Jul 14, 2009 7:54 PM, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote:
Did you send this via twitter? I'm not perceptive enough to grasp
There is no direct equivalent, such as in the Android manifest, afaik.
But you may benefit from looking into http://netmite.com/android/index.html
, which claims it lets you convert existing j2mes into apk upload
to Android Market.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views,
Jack's version works for me without adding the c. to
obtainStyledAttributes. But if I move the ImageAdapter class out of
the HelloGallery class, then I need to add c.. Perhaps that's what
you did?
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email
If I understand your question, you are asking how does Android know
you want to launch the NoteEdit activity, right?
In the code, you see the line
Intent i = new Intent(this, NoteEdit.class);
and then a few lines below,
startActivityForResult(i, ACTIVITY_EDIT);
So variable i knows
is the id of the datarow??? where it is assign.
2009/7/19 Yusuf T. Mobile yusuf.s...@t-mobile.com
If I understand your question, you are asking how does Android know
you want to launch the NoteEdit activity, right?
In the code, you see the line
Intent i = new Intent
It depends on what you mean by 'override'. You can't change the way
Android initiates and receive calls, but you can use those buttons in
your own app, with Activity.onKeyDown:
http://developer.android.com/reference/android/app/Activity.html#onKeyDown(int,%20android.view.KeyEvent)
The KeyEvent
Unable to resolve superclass of HelloMapView could mean anything,
but did you make sure to subclass HelloMapView from Activity? Is
Eclipse properly set up with the SDK?
This may not be relevant, but the HelloMapView tutorial uses the
deprecated MapView.GetZoomControls() API. To fix it:
Step #7
...@gmail.com wrote:
Hi Yusuf and in my case, what is problem with the log
07-21 07:44:50.383: INFO/InetAddress(719): Unknown hostwww.google.com,
throwing UnknownHostException
2009/7/21 Yusuf T. Mobile yusuf.s...@t-mobile.com
Unable to resolve superclass of HelloMapView could mean
adb push
http://developer.android.com/guide/developing/tools/adb.html#move
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
Looking at the ADC2 Terms and Conditions, I didn't see any rules
against using internal APIs. To the contrary, it encouraged Effective
Use of the Android Platform--Does the application take advantage of
Android's unique and compelling features, such as built-in location-
based services,
First you need to install Java. You can download the Java SE
Development Kit here: http://java.sun.com/javase/downloads/index.jsp
On Jul 23, 12:15 pm, nguyen thang thangk4...@gmail.com wrote:
i run command here for list Virtual device. but error.
You might get a better result if you described your app, then we might
describe various approaches and their relative merits. Unless of
course your idea is secret, in which case describe an app that may be
similar to it in scope and content.
Yusuf Saib
Android
·T· · ·Mobile· stick together
Can you include the crash log?
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Jul 26, 3:44 am, RainBow
From the log, you appear to have a null pointer exception, although
that could be a red herring. What happens when you step through it? Do
you get the same problem for all list items?
Looking at your code, you might want to consider simplifying it with a
switch statement, like:
switch
You are right, activity takes more resources than view. But the
difference between them is not significant enough for it to be your
primary concern. If you only have two screens, then rather than
focusing on optimizing memory and CPU, I suggest you make the code as
simple as possible. So instead
The MediaStore content provider might be what your looking for. There
are a number of tutorials that use it, for example this one:
http://androidsamples.blogspot.com/2009/06/how-to-display-thumbnails-of-images.html
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and
1. Yes.
2. You can consume web services with Android, which has built-in
webkit, JSON, XML, etc., and for which you can get third-party
libraries for protocols like SOAP.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author
The onDraw() function is the phone's way of asking you so how do you
want me to draw this canvas, from scratch? If you say draw a circle
there!, you get one circle. If you want it to draw two circles, your
CustomDrawableView needs to tell it to draw two different circles
every time onDraw() is
I recommend you look at the Canvas class, and port your calls to
Java2D to use Canvas on Android.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent
Do you want to change the color of the TextView items in the list
view? In that case use:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:textColor
To change the divider color use
You go, Dvisionj!
tinyang is right about the two things you need to learn: Java language
and then Android platform. You don't need to learn Linux to do Android
programming. You also don't have to study every Java subject there is
(such as Swing or Servlets), just get comfortable with the
Excellent. You should post this fix back to the Android codebase.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug
ListView subclasses AdapterView, which has setOnItemSelectedListenter:
http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener)
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and
No, it's not. Have you considered PayPal?
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug 7, 8:36 am, jbrohan
If your question is why even use XML to layout UI? the answer is
because some people like it better; they find it easier and cleaner;
other's prefer to do it in Java. As Teal said, you don't have to use
XML if you don't like. I at first found the XML layout method foreign,
and the plethora of
I recommend you look at the rules here: http://code.google.com/android/adc/
And wait for Google to announce when contestants can submit their
entries, hopefully soon.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author
dispatchTouchEvent()
http://developer.android.com/reference/android/view/View.html#dispatchTouchEvent(android.view.MotionEvent)
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and
With the NDK, you still need to use Java to access the Android API.
But you can access the API with scripting languages using android-
scripting:: http://code.google.com/p/android-scripting/
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are
I don't see an error in your call stack, did it not mention one? the
problem could be anything, but when I read a call stack that says,
SDK can't start running an app perhaps your SDK was corrupted. I
suggest reinstalling it.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views,
I heartily recommend ksoap2-android : http://code.google.com/p/ksoap2-android/
Caveat: I've not actually used it.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not
http://developer.android.com/reference/android/app/NotificationManager.html
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
Also FWIW, Ubuntu plans to be able to run Android apps in their
upcoming Karmic Koala release this fall.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
I am not aware of an android.os.shutUpEverybodyElseButMe() or
equivalent.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
65 matches
Mail list logo