[android-beginners] Re: Why does this give an error.

2009-04-16 Thread Yusuf T. Mobile
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

[android-beginners] Re: Accessing a server through wifi

2009-04-27 Thread Yusuf T. Mobile
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

[android-beginners] Re: Differentiating between Simulator v/s. Real device

2009-05-08 Thread Yusuf T. Mobile
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:

[android-beginners] Re: how to send MMS

2009-05-21 Thread Yusuf T. Mobile
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

[android-beginners] Re: how write simple chat application on android

2009-05-21 Thread Yusuf T. Mobile
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/

[android-beginners] Re: Urgent!!!!!!!!!Audio recording..

2009-05-26 Thread Yusuf T. Mobile
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

[android-beginners] Re: How can i display message in thai language ?

2009-06-02 Thread Yusuf T. Mobile
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

[android-beginners] Re: Game Shooting A Object

2009-06-02 Thread Yusuf T. Mobile
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

[android-beginners] Re: Game Shooting A Object

2009-06-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: Installing the android SDK on my new PC

2009-06-08 Thread Yusuf T. Mobile
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

[android-beginners] Re: 2d Game Development

2009-06-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: SMS

2009-06-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: Game Development with Multiple Levels

2009-06-11 Thread Yusuf T. Mobile
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

[android-beginners] Re: 2D game Development

2009-06-12 Thread Yusuf T. Mobile
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· ·

[android-beginners] Re: Choosing the Right Book

2009-06-15 Thread Yusuf T. Mobile
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

[android-beginners] Re: Is learning Java directly on the Android possible or a good idea?

2009-06-22 Thread Yusuf T. Mobile
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

[android-beginners] Re: Launch the listview in a new seprate screen

2009-06-24 Thread Yusuf T. Mobile
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

[android-beginners] Re: start

2009-06-30 Thread Yusuf T. Mobile
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-beginners] Re: Idea ?

2009-07-01 Thread Yusuf T. Mobile
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

[android-beginners] Re: Can we use gcc for compilation in emulator

2009-07-06 Thread Yusuf T. Mobile
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

[android-beginners] FreshBrain

2009-07-07 Thread Yusuf T. Mobile
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

[android-beginners] Re: Make an Emergency Call

2009-07-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: Install Android on my pocket pc

2009-07-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: interacting with phone

2009-07-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: android open database

2009-07-10 Thread Yusuf T. Mobile
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:

[android-beginners] Re: How to contact device with ADB from Windows NT

2009-07-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: Fastboot procedure

2009-07-13 Thread Yusuf T. Mobile
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

[android-beginners] Re: Trouble with comparisons

2009-07-13 Thread Yusuf T. Mobile
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

[android-beginners] Re: finding open-source community-contributed Android projects

2009-07-13 Thread Yusuf T. Mobile
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

[android-beginners] Re: running android applications without using eclipse

2009-07-14 Thread Yusuf T. Mobile
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

[android-beginners] Re: Creating an avd?

2009-07-14 Thread Yusuf T. Mobile
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

[android-beginners] Re: Hello Views Tutorial

2009-07-15 Thread Yusuf T. Mobile
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

[android-beginners] Re: Creating an avd?

2009-07-16 Thread Yusuf T. Mobile
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

[android-beginners] Re: Jad Parameter Equilent in Android

2009-07-16 Thread Yusuf T. Mobile
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,

[android-beginners] Re: Hello Tutorials - Gallery Example

2009-07-17 Thread Yusuf T. Mobile
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

[android-beginners] Re: Question

2009-07-19 Thread Yusuf T. Mobile
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

[android-beginners] Re: Question

2009-07-20 Thread Yusuf T. Mobile
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

[android-beginners] Re: Is it possible to override Android's green and red buttons?

2009-07-21 Thread Yusuf T. Mobile
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

[android-beginners] Re: Hello MapView tutorial

2009-07-21 Thread Yusuf T. Mobile
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

[android-beginners] Re: Hello MapView tutorial

2009-07-21 Thread Yusuf T. Mobile
...@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

[android-beginners] Re: hi

2009-07-22 Thread Yusuf T. Mobile
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.

[android-beginners] Re: Mulittouch in android?

2009-07-23 Thread Yusuf T. Mobile
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,

[android-beginners] Re: hi.

2009-07-24 Thread Yusuf T. Mobile
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.

[android-beginners] Re: Time and resources needed to develop app?

2009-07-27 Thread Yusuf T. Mobile
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

[android-beginners] Re: How to convert XML into java code ?

2009-07-27 Thread Yusuf T. Mobile
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

[android-beginners] Re: listview activity not stopping

2009-07-30 Thread Yusuf T. Mobile
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

[android-beginners] Re: Change an app

2009-08-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: Accessing images using content provider

2009-08-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: Writing specific apps for clients

2009-08-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: Adding objects to a canvas

2009-08-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: Porting A Game from Java2d...

2009-08-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: text colour

2009-08-03 Thread Yusuf T. Mobile
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

[android-beginners] Re: A complete newbie

2009-08-04 Thread Yusuf T. Mobile
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

[android-beginners] Re: Hello WebView demo is broken (solution here)

2009-08-06 Thread Yusuf T. Mobile
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

[android-beginners] Re: ListView Item lost focus event

2009-08-06 Thread Yusuf T. Mobile
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

[android-beginners] Re: Payment for service

2009-08-07 Thread Yusuf T. Mobile
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

[android-beginners] Re: Why XML to define layouts/components?

2009-08-07 Thread Yusuf T. Mobile
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

[android-beginners] Re: ADC2

2009-08-07 Thread Yusuf T. Mobile
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

[android-beginners] Re: Simulate a tap

2009-08-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: Android projects only in Java ?

2009-08-10 Thread Yusuf T. Mobile
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

[android-beginners] Re: RuntimeException -

2009-08-11 Thread Yusuf T. Mobile
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,

[android-beginners] Re: ksoap2

2009-08-11 Thread Yusuf T. Mobile
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

[android-beginners] Re: How to display icon in status pane.

2009-08-11 Thread Yusuf T. Mobile
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.

[android-beginners] Re: Operating Systems supported by Android Apps

2009-08-11 Thread Yusuf T. Mobile
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

[android-beginners] Re: Stopping background music playback

2009-08-12 Thread Yusuf T. Mobile
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.