[android-beginners] Re: sdk version

2009-06-03 Thread Jack Ha
When you set up your SDK Location in Eclipse, you should know which SDK version you are using. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: sdk version

2009-06-03 Thread Jack Ha
your Eclipse is using. Hope that helps. -- Jack Ha Open Source Development Center ・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 Jun 4

[android-beginners] Re: Setting up AVD?

2009-06-05 Thread Jack Ha
Have you installed Java on your machine? You need to make sure java is your PATH or the JAVA_HOME environment variable is defined. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: Issues with Hello World

2009-06-08 Thread Jack Ha
Do you see any error messages in the Console? -- Jack Ha Open Source Development Center ・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: How to test Sipdroid using an emulator?

2009-06-28 Thread Jack Ha
sure the Select root directory checkbox is selected 5. Click on the Browse... button, navigate to your SipDroid project folder and select it -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: How can I detect a Landscape and portrait mode in Android?

2009-06-28 Thread Jack Ha
getResources().getConfiguration().orientation -- Jack Ha Open Source Development Center ・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: Playing video files

2009-07-01 Thread Jack Ha
Hi Luca, You may want to take a look at the VideoViewDemo and MediaPlayerDemo sample apps that are part of ApiDemos. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: Activity / Screen rotation relationship

2009-07-02 Thread Jack Ha
When you switch from portrait to landscape mode or vice-versa, your activity's onDestroy() and onCreate() will be called. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: CheckBox enabled/disabled reality check

2009-07-02 Thread Jack Ha
setEnabled(false) works fine for CheckBox. What version of SDK are you using? Can you post your code here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Getting images to appear in the Gallery

2009-07-02 Thread Jack Ha
(uriString); -- Jack Ha Open Source Development Center ・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 2, 7:44 pm, Jonathan Daugherty drcyg

[android-beginners] Re: adb is not detecting my new android phone

2009-07-05 Thread Jack Ha
Did you turn on USB debugging? Settings-Applications-Development-USB debugging -- Jack Ha Open Source Development Center ・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 there any method to showAlert?

2009-07-06 Thread Jack Ha
You can use AlertDialog.Builder: new AlertDialog.Builder(this) .setTitle(Error) .setMessage(my error message') .setPositiveButton(OK, null) .show(); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements

[android-beginners] Re: Adding a view to a viewgroup

2009-07-07 Thread Jack Ha
Your Court.onDraw() function will not get called by default for efficiency. You need to call setWillNotDraw(false) to enable it. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: Camera issue that i dont understand (PreviewCallBack/PictureCallback)

2009-07-08 Thread Jack Ha
format is semi-planar YUV420. -- Jack Ha Open Source Development Center ・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 8, 2:47 am, Tinuz i

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

2009-07-16 Thread Jack Ha
: TypedArray a = obtainStyledAttributes (R.styleable.default_gallery); mGalleryItemBackground = a.getResourceId( R.styleable.default_gallery_android_galleryItemBackground, 0); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements

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

2009-07-17 Thread Jack Ha
What's the error message? obtainStyledAttributes() is defined in android.content.Context You might consider cleaning the project and rebuild. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: Hello MapView tutorial

2009-07-20 Thread Jack Ha
Did you obtain the Maps Api key and insert that in android:apiKey in the layout file? Also make sure that your application has requested the INTERNET permission. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those

[android-beginners] Re: Hello MapView tutorial

2009-07-20 Thread Jack Ha
Did you see any errors in logcat? Make sure you have the following line in the manifest file: uses-library android:name=com.google.android.maps / Can you post your source file and manifest file here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views

[android-beginners] Re: XML Documentatin?

2009-07-20 Thread Jack Ha
Try http://developer.android.com/reference/android/R.styleable.html -- Jack Ha Open Source Development Center ・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

[android-beginners] Re:

2009-07-21 Thread Jack Ha
The purpose of TextSwitcher is to animate a text label on screen such that whenever its setText() function is called, it animates the existing text out and animates the new text in. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements

[android-beginners] Re:

2009-07-21 Thread Jack Ha
Please refer to the documentation. -- Jack Ha Open Source Development Center ・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 21, 8:22

[android-beginners] Re: What is the package name and the Create Activity in wizard of new project (eclipse)

2009-07-22 Thread Jack Ha
Please take a look at the HelloWorld tutorial: http://developer.android.com/guide/tutorials/hello-world.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: Spinner Data Trouble

2009-07-23 Thread Jack Ha
Take a look at the Spinner1 example in ApiDemos. -- Jack Ha Open Source Development Center ・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: Multiple EditText fields per row

2009-07-26 Thread Jack Ha
Your layout file seems to work fine. I do see 4 EditText fields in the second row. -- Jack Ha Open Source Development Center ・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: How to convert XML into java code ?

2009-07-27 Thread Jack Ha
Add the following line after ListView myTextView = new ListView (this); myTextView.setId(android.R.id.list); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: Adding view resource

2009-08-02 Thread Jack Ha
The error shown in Eclipse should tell you which resource is missing. Double check the resources under the res folder. If possible, please post your code and indicate where the problem is. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions

[android-beginners] Re: How to Move an Image Using Finger Touch

2009-08-07 Thread Jack Ha
You can take a look at this tutorial. http://www.anddev.org/viewtopic.php?p=11603 -- Jack Ha Open Source Development Center ・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: plz send me example of startActivityForResult in android

2009-08-09 Thread Jack Ha
Take a look at the notepad tutorial: http://developer.android.com/guide/tutorials/notepad/notepad-ex2.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: setLayoutParams on a TextView prevents TextView from being displayed

2009-08-09 Thread Jack Ha
Add the following line in your code: results_table.setColumnShrinkable(0, true); And comment out the descripton_e.setLayoutParams() line as your mentioned. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those

[android-beginners] Re: How to share data between the program that launches the thread and the thread itself?

2009-08-09 Thread Jack Ha
You may declare pippo outside of onCreate(). Appropriate locking is needed for shared variable. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Accelerometer and dpad

2009-08-09 Thread Jack Ha
The accelerometer supports three axes of rotation: forward-backward, left-right, and up-down. Take a look at his sensor simulator: http://code.google.com/p/openintents/wiki/SensorSimulator -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions

[android-beginners] Re: Struggling with google maps

2009-08-09 Thread Jack Ha
Which line in the code that caused the exception? Can you post the complete stack trace here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Need code sample for double lon= loc.getLongitude();

2009-08-09 Thread Jack Ha
You need to use the LocationManager: lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: Need code sample for double lon= loc.getLongitude();

2009-08-10 Thread Jack Ha
the provider you specify has gotten at least one update. -- Jack Ha Open Source Development Center ・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: Struggling with google maps

2009-08-10 Thread Jack Ha
Try changing your class name from Map to something else as it might cause conflict with the Android Map class. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: prting procedure for Android on SMDK2440 board

2009-08-10 Thread Jack Ha
This question is more suitable for the android-porting group. -- Jack Ha Open Source Development Center ・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

[android-beginners] Re: WifiReceiver not part of SDK 1.5???

2009-08-11 Thread Jack Ha
WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements

[android-beginners] Re: Camera Preview on Emulator

2009-08-11 Thread Jack Ha
The emulator doesn't support camera emulation. You may want to check out this link: http://www.tomgibara.com/android/camera-source -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: trying to download latest, but the downloaded doc reports it's not the latest

2009-08-11 Thread Jack Ha
There is already a bug report filed against it. http://code.google.com/p/android/issues/detail?id=3424 -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: WifiReceiver not part of SDK 1.5???

2009-08-11 Thread Jack Ha
Make sure you have the following line in your AndroidManifest file. uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those

[android-beginners] Re: saving data to text file using eclipse

2009-08-11 Thread Jack Ha
()){ File f = new File(root, test.txt); FileWriter fw = new FileWriter(f); BufferedWriter out = new BufferedWriter(fw); out.write(Hello world); out.close(); } } catch (IOException e) { } -- Jack Ha Open

[android-beginners] Re: How can I use methods from an activity in other activities

2009-08-12 Thread Jack Ha
As the error indicated, your final htest variable is not initialized. You probably should move those set* functions into a separate utility class. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author

[android-beginners] Re: Play Audio File (stored in files directory)

2009-08-13 Thread Jack Ha
Use Environment.getExternalStorageDirectory(). -- Jack Ha Open Source Development Center ・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: Could not find XXXX.apk!

2009-08-13 Thread Jack Ha
Try Project-Clean... and make sure Project-Build Automatically is on. What version of Java are you using? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Simple Google Maps App

2009-08-13 Thread Jack Ha
You will find quite a few tutorials at this link as well: http://www.anddev.org/viewforum.php?f=18 -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Android VM for Windows5 Mobile

2009-08-13 Thread Jack Ha
I suggest to ask this question on the android-porting group instead. -- Jack Ha Open Source Development Center ・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

[android-beginners] Re: Solution Related to emulator

2009-08-13 Thread Jack Ha
What's the issue? Did you set up the AVD properly? -- Jack Ha Open Source Development Center ・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: Overlay events not go to MapView

2009-08-13 Thread Jack Ha
Are you calling MapView.setOnTouchListener()? Have you tried extending MapView and overriding onTouchEvent()? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: Populate spinner

2009-08-13 Thread Jack Ha
Can you be more specific on what you mean menu.add()? -- Jack Ha Open Source Development Center ・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: Delete Note does not work in the Notepadv2 example

2009-08-19 Thread Jack Ha
onCreateContextMenu() is being used for performing a long- clicked (at least 2 seconds) on the item. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Comparing different dates

2009-08-19 Thread Jack Ha
The year specified in setYear() should be the year since 1900. That said, it should be 109 (2009-1900) instead of 2009. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: problem runnin Hello World Programme

2009-08-19 Thread Jack Ha
It seems like you are running your program as Android JUnit Test as opposed to Android Application. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Flash based games on Android

2009-08-21 Thread Jack Ha
/WritingRealTimeGamesAndroid.html -- Jack Ha Open Source Development Center ・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 21, 6:45 am, Maxood maqs

[android-beginners] Re: installing the android sdk

2009-08-24 Thread Jack Ha
The WST plugin should already be included in most Eclipse IDE packages. -- Jack Ha Open Source Development Center ・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: Add one butten in a tab

2009-08-26 Thread Jack Ha
Take a look at this link: http://jsharkey.org/blog/2008/02/14/android-tabhost-in-the-m5-sdk/ -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: failed to locate packages - Eclipse IDE

2009-08-26 Thread Jack Ha
In Eclipse, go to your project properties and select Java Build Path. Then select the Libraries tab and you can add your external jar file there. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author

[android-beginners] Re: App just for Android beginners

2009-08-26 Thread Jack Ha
Useful app...Thanks! -- Jack Ha Open Source Development Center ・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 21, 12:47 pm, Andrei

[android-beginners] Re: sdk help

2009-08-31 Thread Jack Ha
://developer.android.com/index.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want 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

[android-beginners] Re: Sdcard error

2009-09-01 Thread Jack Ha
Did you run the emulator? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want 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

[android-beginners] Re: Map view

2009-09-01 Thread Jack Ha
Take a look at some of the Map tutorials here: http://www.anddev.org/viewforum.php?f=18 -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: How to export data to excel?

2009-09-01 Thread Jack Ha
You can query the data from the database and then write the data into a CSV file. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: easy stuff please reply

2009-09-03 Thread Jack Ha
Have you tried using PrintWriter? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want 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: Streched Spinner

2009-09-04 Thread Jack Ha
Try: SpinnerAdapter adapter = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, cities); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price

[android-beginners] Re: Spinners

2009-09-10 Thread Jack Ha
Remove the following line: testSpinner.setBackgroundColor(Color.BLUE); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: error in installing .apk file

2009-09-10 Thread Jack Ha
You don't need to specify file:// new File(/sdcard/DCIM/Opi.apk) -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: Security framework available on android??

2009-09-10 Thread Jack Ha
Assuming this is what you are looking for: http://developer.android.com/guide/topics/security/security.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those

[android-beginners] Re: ColorStateList creation

2009-09-12 Thread Jack Ha
You can do something like: XmlResourceParser xpp=Resources.getSystem().getXml (R.color.mycolor); ColorStateList csl = ColorStateList.createFromXml(getResources(), xpp); where R.color.mycolor is your XML resource file. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick

[android-beginners] Re: Basic App -- not working

2009-09-12 Thread Jack Ha
You must specify the layout_width and layout_height attributes for the EditText. android:layout_width=fill_parent android:layout_height=wrap_content -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price

[android-beginners] Re: how to receive general IO events ?

2009-09-12 Thread Jack Ha
Maybe FileObserver is what you are looking for: http://developer.android.com/reference/android/os/FileObserver.html -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions and statements in this email are those

[android-beginners] Re: Populate spinner

2009-09-12 Thread Jack Ha
You need to use an adapter to provide the data for the spinner. You will get an UnsupportedOperationException exception if you call Spinner.addView(). -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions

[android-beginners] Re: ADT Plugin for Eclipse

2009-09-12 Thread Jack Ha
What did you see on the right pane when you clicked on Eclipse- Preferences-Android? -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: MapView : Don't show the labels

2009-09-12 Thread Jack Ha
It is currently not supported. -- Jack Ha Open Source Development Center ·T· · ·Mobile· stick together The coverage you need at the price you want 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: How to add my own menu item into the already existing menu in the sms application

2009-09-15 Thread Jack Ha
Here is an example and you probably can make it to work with SMS. http://www.anddev.org/viewtopic.php?p=25639 -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those

[android-beginners] Re: how to change text in a Button

2009-09-15 Thread Jack Ha
Please refer to the Android Developer Guide. button.setText() -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their individual capacity

[android-beginners] Re: MediaPlayer pause and seek

2009-09-15 Thread Jack Ha
seekTo() is an asynchronuous call and the actual seek operation may take a while to finish. If an OnSeekCompleteListener has been registered beforehand via setOnSeekCompleteListener (OnSeekCompleteListener), it will get called. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick

[android-beginners] Re: Android in Eclipse - package name problem - please help

2009-09-16 Thread Jack Ha
It seems likes your AndroidManifest.xml file is corrupted. Make sure there are no spaces before this line: ?xml version=1.0 encoding=utf-8? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements

[android-beginners] Re: Android Emulator suddenly won't boot...

2009-09-16 Thread Jack Ha
Have you looked at the adb logcat output? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want 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: Android application enable handset

2009-09-16 Thread Jack Ha
http://en.wikipedia.org/wiki/Android_(operating_system)#Hardware_products_running_Android -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: Which version of Android?

2009-09-17 Thread Jack Ha
Eclipse 3.5 (Galileo) should work but you can download Eclipse 3.4 (Ganymede) from here: http://www.eclipse.org/downloads/packages/release/ganymede/sr2 -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions

[android-beginners] Re: sendBroadcast compile error

2009-09-17 Thread Jack Ha
sendBroadcast() is part of the Context class. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want 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: How to build EditText view like that in Android Market where X button appears for clearing text?

2009-09-27 Thread Jack Ha
Try: Drawable x = getResources().getDrawable(R.drawable.x); x.setBounds(0, 0, x.getIntrinsicWidth(), x.getIntrinsicHeight()); mEditText.setCompoundDrawables(null, null, x, null); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need

[android-beginners] Re: problem installing a .apk file

2009-09-28 Thread Jack Ha
Run adb logcat and you should see the error message: W/PackageParser( 582): /data/app/vmdl43410.tmp (at Binary XML file line #10): provider does not specify android:name -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want

[android-beginners] Re: distributing an app packaged with just emulator

2009-04-23 Thread Jack Ha (T-Mobile USA)
app to the outside world. -- Jack Ha Open Source Development Center ・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 Apr 23, 5:25 pm, Samuel

[android-beginners] Re: ImageView Listener

2009-04-23 Thread Jack Ha (T-Mobile USA)
Can you post your layout file here? Are the other imageviews on the activity pointing to the same image as square00? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: HelloGallery Example!!

2009-04-23 Thread Jack Ha (T-Mobile USA)
1. The gallery id being used in your layout file is not defined. Make sure it is something like @+id/gallery. 2. sample_1.png image file is missing in res/drawable. 3. Theme is not declared in res/values/attrs.xml -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together

[android-beginners] Re: installing 1.5 and eclipse

2009-04-24 Thread Jack Ha (T-Mobile USA)
Are you trying to set the value of the SDK Location field in Android Preferences? If that's the case, you need to set it to C:\android-sdk- windows-1.5_pre as it is the location where you installed the 1.5 SDK. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views

[android-beginners] Re: Infinite Error: I fixed Failed to find an AVD compatible, only to get ERROR: unknown virtual device name

2009-04-25 Thread Jack Ha (T-Mobile USA)
setting in the Run Configurations dialog box. -- Jack Ha Open Source Development Center ・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 Apr

[android-beginners] Re: Get alarms from Alarm Clock application

2009-05-07 Thread Jack Ha (T-Mobile USA)
As far as I know, you are able to do that since the Alarm Clock app doesn't expose those specific intents. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-beginners] Re: Get alarms from Alarm Clock application

2009-05-07 Thread Jack Ha (T-Mobile USA)
Sorry for my typo. What I meant to say was that you are NOT able to that. -- Jack Ha Open Source Development Center ・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: Get alarms from Alarm Clock application

2009-05-07 Thread Jack Ha (T-Mobile USA)
Sorry for my earlier typo. What I meant was that you are NOT able to do that. -- Jack Ha Open Source Development Center ・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: Emulator launch error in HelloAndroid tutorial

2009-05-07 Thread Jack Ha (T-Mobile USA)
Have you installed JDK on your machine? If not, you can download it from here: http://java.sun.com/javase/downloads/index.jsp -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely

[android-beginners] Re: Exception in Code

2009-05-21 Thread Jack Ha (T-Mobile USA)
)getSystemService (Context.LOCATION_SERVICE); And make sure you request the following permission in your AndroidManifest.xml file. uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views

[android-beginners] Re: Phone number from URI

2009-05-21 Thread Jack Ha (T-Mobile USA)
You can do something like the following: Uri uri = Uri.parse(content://contacts/phones/1); Cursor c = managedQuery(uri, null, null, null, null); if (c.moveToFirst()) { do { // c.getString(1) is the phone # } while (c.moveToNext()); } -- Jack Ha

[android-beginners] Re: Modal Window

2009-05-22 Thread Jack Ha (T-Mobile USA)
If I understand your question correctly, just specify the following attribute for your activity in the AndroidManifest.xml file: android:theme=@android:style/Theme.Dialog -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements

[android-beginners] Re: Where is MapView JavaDoc

2009-05-22 Thread Jack Ha (T-Mobile USA)
http://code.google.com/android/add-ons/google-apis/ -- Jack Ha Open Source Development Center ・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: is there alternative to SimpleCursorAdapter?

2009-05-22 Thread Jack Ha (T-Mobile USA)
You can create your own Adapter class (by extending BaseAdapter) and do your formatting in the getView() function. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: TextView scrolling

2009-05-22 Thread Jack Ha (T-Mobile USA)
You can put your TextView inside a ScrollView and modify your code as follows: for( int x = 1; x 100; x++ ) { outputField.append( x + \n ); scrollView.post(new Runnable() { public void run() { scrollView.smoothScrollBy(0, 60); } }); } -- Jack Ha Open

[android-beginners] Re: Intent.ACTION_SEND with SMS or Email

2009-05-25 Thread Jack Ha (T-Mobile USA)
(Intent.CATEGORY_DEFAULT); sendIntent.setType(text/plain); PackageManager pm = getPackageManager(); ListResolveInfo activityList = pm.queryIntentActivities (sendIntent, 0); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements

[android-beginners] Re: Where do i put Audio Files.

2009-05-26 Thread Jack Ha (T-Mobile USA)
How big are your audio files? You should be able to place them in the res/raw folder and get to them with: getResources().openRawResource(R.raw.audio_file); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those