[android-beginners] base 64 conversion
hello ; in my application i have one string with many special charactors i need to convert it to the base64 format.i found api in android.util but that work for xml.how should i do with string is there any api ? please let me know its class n syntax. thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Create New TextView Style....
After fiddling around with different values I actually was able to get the appearance I wanted without using the parent attribute. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Aug 31, 2009 at 6:35 PM, Tikoze janderson@gmail.com wrote: I want to create a new style that slightly modifies the default style of a TextView... However, I have not been able to find what the value for the parent attribute should be... Any help would be appreciated! Current xml code: ?xml version=1.0 encoding=utf-8? resources style name=TitleText parent=?? item name=android:textSize25sp/item item name=android:textColor#008/item /style /resources --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problem with Hello, Gallery R.styleable not resolve
Thanks for catching the typo! I should have just done a copy/paste... :) Glad I could help somewhat. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Aug 31, 2009 at 9:39 PM, Bui Quang Hao(Johny.Bui) buiquang...@gmail.com wrote: There is a mistake here in resources.xml file but I corrected it. The correct one is as follow: ?xml version=1.0 encoding=utf-8? resources declare-styleable name=Gallery1 attr name=android:galleryItemBackground / /declare-styleable /resources Thanks Justin. Your post is really helpful. On Aug 31, 11:16 pm, Justin Anderson janderson@gmail.com wrote: I had this same problem. After days of searching online, I found this workaround: - Create a resources.xml file with the following contents: ?xml version=1.0 encoding=utf-8? resources declare-stylable name=Gallery1 attr name=android:galleryItemBackground / /declare-stylable /resources - Instead of using android.R.styleable.Gallery1 just reference R.styleable.Gallery1 Hope this helps! I set this up a long time ago... If I missed something let me know so I can post that missing information. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Aug 26, 2009 at 7:02 PM, steve swilson...@gmail.com wrote: I've been working through the Hello,Views examples. They are great resource - thanks to those that created them. There is a problem with the setiton on the example using android.R.sytleable public ImageAdapter(Context c) { mContext = c; TypedArray a = obtainStyledAttributes (android.R.styleable.Theme); mGalleryItemBackground = a.getResourceId( android.R.styleable.Theme_galleryItemBackground, 0); a.recycle(); } Eclipse reports that R.styleable cannot be resolved There are lots of messages on the web about the problem. Finally I found one that reported android.R.styleable. is no longer supported in sdk 1.5 http://mac.softpedia.com/progChangelog/Google-Android-SDK-Changelog-3. .. If this is officially true, it would really be helpful to people trying to learn Android programming to have some official notification in the example and a revised workaround approach. Otherwise a lot of people will be wasting a lot of time. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Debugging on Samsung Galaxy
Yes, I did connect it before, whit the fancy Samsung software. It even behave strange with it, because it always see two device instead of one. No idea if adb should work with the SDK drivers or if I have to lookup some specific samsung drivers. I did post to Samsung forum as well, but no solving reply till now... On 31 Ago, 19:40, Justin Anderson janderson@gmail.com wrote: Have you previously connected your phone to the computer before turning on the ability to allow unsigned applications and USB debugging? I found out the hard way that if you don't have those options on the very first time you connect your phone to a Windows machine then there are all sorts of hoops to jump through to get it working. However, I have a G1. If that is the case then I might be able to help. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Aug 31, 2009 at 3:06 AM, FaticaLabs fel...@felicepollano.comwrote: Hi All, I digged the web a lot, but I didn't manage to find any solution to have my Samsung Galaxy connecting to the adb tool to debug/deploy my test application. Do somebody know the right procedure/driver to make it working ? My OS is Vista 32 bit. Thanks a lot, Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ListView Add an image as well as 2 line text to a single list item
Hi guys, I want to have a listview of songs where on the left of each list item i can have a musical image or image of album and then the actual song name on the right. The song name , with some other details fits in two lines on the right side. I hv gone through the Android sdk example where i can have a Contact name and number ,on two lines of single list item. I want to add image as well.. Please help me out! Thanks and regards, Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Debugging on Samsung Galaxy
Try this link: http://www.anddev.org/debugging-installing_apps_on_the_g1_windows_driver-t3236.html Step 5 most likely will not happen. If it does not then try the following: - Open Device Manager - You should see something mentioning your Galaxy, or an ADB Interface, or perhaps even just something with a yellow question mark on it - Right click and choose Update Driver Software - Browse to the file you downloaded and unzipped - When finished restart your computer Hope this helps! If not, let me know and I will do a little more digging. Thanks, Justin On Sep 1, 12:58 am, FaticaLabs fel...@felicepollano.com wrote: Yes, I did connect it before, whit the fancySamsungsoftware. It even behave strange with it, because it always see two device instead of one. No idea if adb should work with the SDK drivers or if I have to lookup some specificsamsungdrivers. I did post toSamsungforum as well, but no solving reply till now... On 31 Ago, 19:40, Justin Anderson janderson@gmail.com wrote: Have you previously connected your phone to the computer before turning on the ability to allow unsigned applications and USBdebugging? I found out the hard way that if you don't have those options on the very first time you connect your phone to a Windows machine then there are all sorts of hoops to jump through to get it working. However, I have a G1. If that is the case then I might be able to help. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Aug 31, 2009 at 3:06 AM, FaticaLabs fel...@felicepollano.comwrote: Hi All, I digged the web a lot, but I didn't manage to find any solution to have mySamsungGalaxy connecting to the adb tool to debug/deploy my test application. Do somebody know the right procedure/driver to make it working ? My OS is Vista 32 bit. Thanks a lot, Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Sdcard error
Hi guys, I created an SDCARD using command mksdcard 2048M sdcard This created an SDCARD in the tools directory Now when i tried to add an MP# file to it adb push D:\..\abc.mp3 /sdcard It gives error error: device not found What am i missing ?? Thanks , Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Inserting values into Database (SQL LITE)
hi, I think this code will help you. package net.learn2develop.Databases; import android.content.Context; import android.content.ContentValues; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DBAdapter { public static final String KEY_ROWID = _id; public static final String KEY_ISBN = isbn; public static final String KEY_TITLE = title; public static final String KEY_PUBLISHER = publisher; private static final String TAG = DBAdapter; private static final String DATABASE_NAME = books; private static final String DATABASE_TABLE = titles; private static final int DATABASE_VERSION = 1; private static final String DATABASE_CREATE = create table titles (_id integer primary key autoincrement, + isbn text not null, title text not null, + publisher text not null);; private final Context context; private DatabaseHelper DBHelper; private SQLiteDatabase db; public DBAdapter(Context ctx) { this.context = ctx; DBHelper = new DatabaseHelper(context); } private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(DATABASE_CREATE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(TAG, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS titles); onCreate(db); } } //---opens the database--- public DBAdapter open() throws SQLException { db = DBHelper.getWritableDatabase(); return this; } //---closes the database--- public void close() { DBHelper.close(); } //---insert a title into the database--- public long insertTitle(String isbn, String title, String publisher) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_ISBN, isbn); initialValues.put(KEY_TITLE, title); initialValues.put(KEY_PUBLISHER, publisher); return db.insert(DATABASE_TABLE, null, initialValues); } //---deletes a particular title--- public boolean deleteTitle(long rowId) { return db.delete(DATABASE_TABLE, KEY_ROWID + = + rowId, null) 0; } //---retrieves all the titles--- public Cursor getAllTitles() { return db.query(DATABASE_TABLE, new String[] { KEY_ROWID, KEY_ISBN, KEY_TITLE, KEY_PUBLISHER}, null, null, null, null, null); } //---retrieves a particular title--- public Cursor getTitle(long rowId) throws SQLException { Cursor mCursor = db.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_ISBN, KEY_TITLE, KEY_PUBLISHER }, KEY_ROWID + = + rowId, null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } //---updates a title--- public boolean updateTitle(long rowId, String isbn, String title, String publisher) { ContentValues args = new ContentValues(); args.put(KEY_ISBN, isbn); args.put(KEY_TITLE, title); args.put(KEY_PUBLISHER, publisher); return db.update(DATABASE_TABLE, args, KEY_ROWID + = + rowId, null) 0; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Stream Audio
Hi All, Trying to stream a URL to the audio however it is not working, I have read all documents and it seems it is possible but I have no idea how It works if the DataSource is http://twit.cachefly.net/TTG20090829-591.mp3 but not if it is a live stream. Can someone help [code] MediaPlayer radio= new MediaPlayer(); try { radio.setDataSource(http://192.168.0.14:9010;); !--- ShoutCast link } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { radio.prepare(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } radio.start(); [/code] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Installed Application Version
This isnt stricktly a developer question, but once an app is installed on the phone how can you tell what the version is that is in the manifest file? Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Installed Application Version
This isnt stricktly a developer question, but once an app is installed on the phone how can you tell what the version is that is in the manifest file? Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installed Application Version
Programmatically? or when using the phone? On Tue, Sep 1, 2009 at 11:04 AM, Ne0liamjamesalf...@googlemail.com wrote: This isnt stricktly a developer question, but once an app is installed on the phone how can you tell what the version is that is in the manifest file? Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installed Application Version
Using the phone? On Sep 1, 11:28 am, Sean Hodges seanhodge...@googlemail.com wrote: Programmatically? or when using the phone? On Tue, Sep 1, 2009 at 11:04 AM, Ne0liamjamesalf...@googlemail.com wrote: This isnt stricktly a developer question, but once an app is installed on the phone how can you tell what the version is that is in the manifest file? Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: base 64 conversion
I done it with importing jar file from apache its running fine?but is it right there is no base 64 class in android sdk. On Tue, Sep 1, 2009 at 11:58 AM, kapil.kkapnk...@gmail.com wrote: hello ; in my application i have one string with many special charactors i need to convert it to the base64 format.i found api in android.util but that work for xml.how should i do with string is there any api ? please let me know its class n syntax. thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installed Application Version
As far as I'm aware of, there isn't a way to check the version number of an app from the base Android interface. The version number is usually provided by the market service that you download the app from, e.g. the Android Market. If you have downloaded the app by other means, there might be a Manifest.xml parser available for the PC, but within Android I don't think you can interrogate another app's Manifest.xml / version data for security purposes. On Tue, Sep 1, 2009 at 11:30 AM, Ne0liamjamesalf...@googlemail.com wrote: Using the phone? On Sep 1, 11:28 am, Sean Hodges seanhodge...@googlemail.com wrote: Programmatically? or when using the phone? On Tue, Sep 1, 2009 at 11:04 AM, Ne0liamjamesalf...@googlemail.com wrote: This isnt stricktly a developer question, but once an app is installed on the phone how can you tell what the version is that is in the manifest file? Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Map view
Can any one help to create map view with a marker. When we are clicking marker it should display info window. By clicking that info window it shoul goto another layout. Ple. reply me. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Progress bar for upload / doenload
Hello I've been having some difficulties with the progress bar. I built a separate test harness and now I start to see things more clearly. The code below seems to work correctly, but updates the progress bar only when it finishes. I want it to update as the progress is made! package com.example.progressbartest; snip imports public class ProgressBarTest extends Activity { static int i; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Request the progress bar to be shown in the title requestWindowFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.main); setProgressBarVisibility(true); final ProgressBar progressHorizontal = (ProgressBar) findViewById(R.id.progress_horizontal); while (i1000){ setProgress(i++); Log.e(John,in loop+Integer.toString(i)); } } } There are actually two progress bars, like in the API demo app. One in the title bar and another in the main screen. One would be sufficient, but I don't know (yet) how to get rid of just one! John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item
Alok wrote: Hi guys, I want to have a listview of songs where on the left of each list item i can have a musical image or image of album and then the actual song name on the right. The song name , with some other details fits in two lines on the right side. I hv gone through the Android sdk example where i can have a Contact name and number ,on two lines of single list item. I want to add image as well.. Please help me out! You can find instructions here: http://commonsware.com/Android/excerpt.pdf -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Progress bar for upload / doenload
jbrohan wrote: Hello I've been having some difficulties with the progress bar. I built a separate test harness and now I start to see things more clearly. The code below seems to work correctly, but updates the progress bar only when it finishes. I want it to update as the progress is made! package com.example.progressbartest; snip imports public class ProgressBarTest extends Activity { static int i; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Request the progress bar to be shown in the title requestWindowFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.main); setProgressBarVisibility(true); final ProgressBar progressHorizontal = (ProgressBar) findViewById(R.id.progress_horizontal); while (i1000){ setProgress(i++); Log.e(John,in loop+Integer.toString(i)); } } } setProgress() does not set the progress on the screen. setProgress() puts a message on a message queue that the UI thread uses. When the UI thread eventually pops that message off of the message queue, the UI thread will set the progress on the screen. However, you are not letting the UI thread do that. Instead, you are busy-looping 1000 times, calling setProgress() every time. The UI thread cannot process messages on the queue until after that 1000-count loop is done. If you want Android to draw things, you have to let the UI thread go (e.g., return from onCreate()). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Progress bar for upload / doenload
You need to update your progress bar in a separate thread to the the main (UI) one, see the example here: http://developer.android.com/reference/android/widget/ProgressBar.html What you have is saying When creating the activity, loop 1000 times and change the progress bar position value each time. Then display the activity (including progress bar) to the user. On Tue, Sep 1, 2009 at 11:51 AM, jbrohanjbro...@gmail.com wrote: Hello I've been having some difficulties with the progress bar. I built a separate test harness and now I start to see things more clearly. The code below seems to work correctly, but updates the progress bar only when it finishes. I want it to update as the progress is made! package com.example.progressbartest; snip imports public class ProgressBarTest extends Activity { static int i; /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Request the progress bar to be shown in the title requestWindowFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.main); setProgressBarVisibility(true); final ProgressBar progressHorizontal = (ProgressBar) findViewById(R.id.progress_horizontal); while (i1000){ setProgress(i++); Log.e(John,in loop+Integer.toString(i)); } } } There are actually two progress bars, like in the API demo app. One in the title bar and another in the main screen. One would be sufficient, but I don't know (yet) how to get rid of just one! John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installed Application Version
Thanks for your input. I'm writing small apps for an egineering phone, hence not going onto android market. I was hoping there was a way via settings-applications-mange applications of seeing the version (though i could not find one myself), that way if an engineer had an issue with a particular version of software they could let me know the version number etc. Anyhow, maybe i'll just add the version to the titlebar of the app. Cheers, Liam. Might add this this to the issue list if its not already there, its always handy to know the version of a piece of software you have. Without having to decompile the manifest file that is (yes, it can be done). On Sep 1, 11:49 am, Mark Murphy mmur...@commonsware.com wrote: Sean Hodges wrote: As far as I'm aware of, there isn't a way to check the version number of an app from the base Android interface. Sure there is! PackageManager has getPackageInfo(), and PackageInfo has versionCode and versionName, as encoded in the manifest. You need to know the package name for which you want the version information, but it's all right there. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Need help for your Android OSS project?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installed Application Version
Wow thats pretty cool Mark. I thought the PackageManager was limited to providing info about the app that you are calling it from. Thanks for the tip. On Tue, Sep 1, 2009 at 11:49 AM, Mark Murphymmur...@commonsware.com wrote: Sean Hodges wrote: As far as I'm aware of, there isn't a way to check the version number of an app from the base Android interface. Sure there is! PackageManager has getPackageInfo(), and PackageInfo has versionCode and versionName, as encoded in the manifest. You need to know the package name for which you want the version information, but it's all right there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item
Thanks Mark, the PDF seems great, One question more .I donno if the pdf answers this but how can i reduce the height of an item in a listview. I googled for it , some answers came up but not much convincing. Thanks and Regards, Alok. On 9/1/09, Mark Murphy mmur...@commonsware.com wrote: Alok wrote: Hi guys, I want to have a listview of songs where on the left of each list item i can have a musical image or image of album and then the actual song name on the right. The song name , with some other details fits in two lines on the right side. I hv gone through the Android sdk example where i can have a Contact name and number ,on two lines of single list item. I want to add image as well.. Please help me out! You can find instructions here: http://commonsware.com/Android/excerpt.pdf -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item
Alok Kulkarni wrote: Thanks Mark, the PDF seems great, One question more .I donno if the pdf answers this but how can i reduce the height of an item in a listview. I googled for it , some answers came up but not much convincing. The height of an item in a ListView is controlled by the item. If you have a 200px high image, the row will be 200px high at minimum. If you want shorter rows, design shorter row layouts, and use them per the PDF I linked to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item
Thats my way to go then !! Thanks again Mark :) On 9/1/09, Mark Murphy mmur...@commonsware.com wrote: Alok Kulkarni wrote: Thanks Mark, the PDF seems great, One question more .I donno if the pdf answers this but how can i reduce the height of an item in a listview. I googled for it , some answers came up but not much convincing. The height of an item in a ListView is controlled by the item. If you have a 200px high image, the row will be 200px high at minimum. If you want shorter rows, design shorter row layouts, and use them per the PDF I linked to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] problems with aidl
Hello all, i am creating a service and i am having two big problems with my aidl, first, i cannot import any Java types(Enumeration , Date, etc) that i get an error (couldn't find import for class ... ) the second is that apparently i cannot have two methods with different parameters, such as as get(in String par) and get (in String par, in String part2) has anyone encountered problems like these ? cheers Guilherme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problems with aidl
Guilherme Melo wrote: Hello all, i am creating a service and i am having two big problems with my aidl, first, i cannot import any Java types(Enumeration , Date, etc) that i get an error (couldn't find import for class ... ) Correct. Those are not valid AIDL data types: http://developer.android.com/guide/developing/tools/aidl.html#aidlsyntax the second is that apparently i cannot have two methods with different parameters, such as as get(in String par) and get (in String par, in String part2) What happens when you try those sorts of declarations in your AIDL? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Development Phone
Thanks a lot, your answers gave me some clue about the differences and now I think I'll be able to do the right decision. Thank's again! On Aug 28, 8:53 pm, Chris Stratton cs07...@gmail.com wrote: On Aug 24, 9:09 am, Ran dahan...@gmail.com wrote: What is the benefit of working with ADP1 over the other Android phones ? Just to expand on what others have said: Cost seems comparable betwen a devphoneand a retailphoneat full retail or plan price + termination fee, so it's really more a of a technical question. Reasons for a devphone -sim unlocked (some such as tmobile may? do that if you pay full retail or eventually on a plan) -can change linux and system libraries -can change pre-installed applications -tmobile myfaves application sends periodic sms which costs money on any other network Reasons for _not_ getting a devphone -only one older devphonemodel generally available at present -dev phones can't buy paid applications from the market (including your own) -if you sell apps, you need to restrict yourself to the capabilities of your users phones (and test on such a device!) -various preinstalled proprietary applications missing (+/- depending on your interest) The not being able to change preinstalled applications is in my mind the least anticipated, and most annoying, problem. There are many areas where very small decisions of questionable wisdom in default applications really hamper the user experience (even in the using it just to make calls sense), but these can't be very readily changed on a retailphone, particularly the parts most closely involved in the telephone functionality. As of this moment, I believe most of the retail phones are probably still shipping with an easily rooted linux kernel, but that probably will get closed up (already fixed in google's tree) and they will be limited until another hole is found. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Development Phone
I am using HTC Magic as test and debug environment. Because I need a phone to test my App. That is. Moreover, that can prove my App can run in a standard environment. On Tue, Sep 1, 2009 at 10:46 PM, Ran dahan...@gmail.com wrote: Thanks a lot, your answers gave me some clue about the differences and now I think I'll be able to do the right decision. Thank's again! On Aug 28, 8:53 pm, Chris Stratton cs07...@gmail.com wrote: On Aug 24, 9:09 am, Ran dahan...@gmail.com wrote: What is the benefit of working with ADP1 over the other Android phones ? Just to expand on what others have said: Cost seems comparable betwen a devphoneand a retailphoneat full retail or plan price + termination fee, so it's really more a of a technical question. Reasons for a devphone -sim unlocked (some such as tmobile may? do that if you pay full retail or eventually on a plan) -can change linux and system libraries -can change pre-installed applications -tmobile myfaves application sends periodic sms which costs money on any other network Reasons for _not_ getting a devphone -only one older devphonemodel generally available at present -dev phones can't buy paid applications from the market (including your own) -if you sell apps, you need to restrict yourself to the capabilities of your users phones (and test on such a device!) -various preinstalled proprietary applications missing (+/- depending on your interest) The not being able to change preinstalled applications is in my mind the least anticipated, and most annoying, problem. There are many areas where very small decisions of questionable wisdom in default applications really hamper the user experience (even in the using it just to make calls sense), but these can't be very readily changed on a retailphone, particularly the parts most closely involved in the telephone functionality. As of this moment, I believe most of the retail phones are probably still shipping with an easily rooted linux kernel, but that probably will get closed up (already fixed in google's tree) and they will be limited until another hole is found. -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Get GPS time/date
He means NMEA I believe. Along with latitude and longitude, etc, there is time in GPS strings. http://www.gpsinformation.org/dale/nmea.htm -jim On Aug 31, 9:41 am, Justin Anderson janderson@gmail.com wrote: What exactly do you mean by the GPS time? I haven't done any GPS programming for Android but I would assume the current time/date would not be provided by the GPS API... If you just want the current time, you could use the currentTimeMillis() method but I'm not sure exactly what class that is on. Or you can create a Time object (android.text.format.Time) and call the setToNow() method on it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problems with aidl
On Sep 1, 1:46 pm, Mark Murphy mmur...@commonsware.com wrote: Guilherme Melo wrote: Hello all, i am creating a service and i am having two big problems with my aidl, first, i cannot import any Java types(Enumeration , Date, etc) that i get an error (couldn't find import for class ... ) Correct. Those are not valid AIDL data types: http://developer.android.com/guide/developing/tools/aidl.html#aidlsyntax acording to the link These parameters and return values can be of any type i thought that , even though it seems counter intuitive because they do not implement parceble ... i though i could , for instance use Date in passing a parameter the second is that apparently i cannot have two methods with different parameters, such as as get(in String par) and get (in String par, in String part2) What happens when you try those sorts of declarations in your AIDL? it just gives me the error (Previously declared here) -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ In Print! cheers Guilherme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sdcard error
Does anyone have any idea? On Tue, Sep 1, 2009 at 1:21 PM, Alok kulsu...@gmail.com wrote: Hi guys, I created an SDCARD using command mksdcard 2048M sdcard This created an SDCARD in the tools directory Now when i tried to add an MP# file to it adb push D:\..\abc.mp3 /sdcard It gives error error: device not found What am i missing ?? Thanks , Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sdcard error
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-Mobile USA, Inc. On Sep 1, 12:51 am, Alok kulsu...@gmail.com wrote: Hi guys, I created an SDCARD using command mksdcard 2048M sdcard This created an SDCARD in the tools directory Now when i tried to add an MP# file to it adb push D:\..\abc.mp3 /sdcard It gives error error: device not found What am i missing ?? Thanks , Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Map view
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 in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 1, 3:49 am, Sasi Kumar sasikumar.it1...@gmail.com wrote: Can any one help to create map view with a marker. When we are clicking marker it should display info window. By clicking that info window it shoul goto another layout. Ple. reply me. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sdcard error
No i didnt run it while pushing.. GOD save me !!! Thanks , i am very dumb i suppose... :P On Tue, Sep 1, 2009 at 9:01 PM, Jack Ha jack...@t-mobile.com wrote: 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-Mobile USA, Inc. On Sep 1, 12:51 am, Alok kulsu...@gmail.com wrote: Hi guys, I created an SDCARD using command mksdcard 2048M sdcard This created an SDCARD in the tools directory Now when i tried to add an MP# file to it adb push D:\..\abc.mp3 /sdcard It gives error error: device not found What am i missing ?? Thanks , Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to export data to excel?
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 in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 31, 11:13 pm, JUN youk...@gmail.com wrote: Hello all, I want to export sqlite data to excel format in android? how to do it? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problems building android dev environment?
There are lots of warnings, but of course it should not have errors. After re-syncing, can you post some of the errors you get? 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 31, 3:54 pm, dmm dmm...@gmail.com wrote: When I download the source and build it according tohttp://source.android.com/download, then try to build the eclipse dev evironment as described onhttp://source.android.com/using-eclipse, I get 100s of Java Errors when trying to build the project (and 1000s of warnings). Linux is 2.6.28-15-generic #49-Ubuntu Eclipse is eclipse-java-galileo-linux-gtk.tar.gz 18# java -version java version 1.5.0_18 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02) Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing) 19# The instructions seem rather straight forward. Has anyone tried/ encountered this? Thanks, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] A Racing Car App in Android
I want to develop an application that involves a racing car. The car obviously moves forward, backward, left and right in a 3D environment. I like to make such an app using OpenGL ES. Can someone refer me a tutorial. Thank you, Maxood --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Want to graduate from android-beginners to android-developers
I installed it and clicked on 25mph. It then popped up something saying submitting sign, press back arrow I looked for the sign on Wikispeedia.org, but either (1) it's not there or (2) I'm too dumb to use Wikispeedia. Does your app do anything else? Like yell at me when I drive too fast? Not that that would ever happen. In any case it didn't crash. FWIW, you can get a popup to show up and disappear after a few seconds without requiring the user to press the back arrow. But if you wish to graduate to android-developers, you must first pass through the thirty-six chambers. 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 31, 2:45 pm, Michael mepol...@gmail.com wrote: Send it my way. I have a test device. On Aug 31, 2009 2:14 PM, cellurl gpscru...@gmail.com wrote: Hi, With the help of this group I went from 0 -to- submitting to ADC-2, Thanks! Now I have a favor to ask. Can anyone test this app? I am pretty sure in Iowa where I work, there isn't an Android within 100 miles of me. (yea, I need to get off my wallet)... If anyone can test this app, I would be eternally grateful! Rgds, Jim Pruett *.apk here:http://code.google.com/p/speedlimit/downloads/list gpscru...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Debugging on Samsung Galaxy
Thanks Justin! Your tip worked. As you said, step 5 did not happen, but manually Upgrading the driver in device manager, and choosing have disk definitely works ! Thanks again! Felix On 1 Set, 09:10, Tikoze janderson@gmail.com wrote: Try this link:http://www.anddev.org/debugging-installing_apps_on_the_g1_windows_dri... Step 5 most likely will not happen. If it does not then try the following: - Open Device Manager - You should see something mentioning your Galaxy, or an ADB Interface, or perhaps even just something with a yellow question mark on it - Right click and choose Update Driver Software - Browse to the file you downloaded and unzipped - When finished restart your computer Hope this helps! If not, let me know and I will do a little more digging. Thanks, Justin On Sep 1, 12:58 am, FaticaLabs fel...@felicepollano.com wrote: Yes, I did connect it before, whit the fancySamsungsoftware. It even behave strange with it, because it always see two device instead of one. No idea if adb should work with the SDK drivers or if I have to lookup some specificsamsungdrivers. I did post toSamsungforum as well, but no solving reply till now... On 31 Ago, 19:40, Justin Anderson janderson@gmail.com wrote: Have you previously connected your phone to the computer before turning on the ability to allow unsigned applications and USBdebugging? I found out the hard way that if you don't have those options on the very first time you connect your phone to a Windows machine then there are all sorts of hoops to jump through to get it working. However, I have a G1. If that is the case then I might be able to help. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Aug 31, 2009 at 3:06 AM, FaticaLabs fel...@felicepollano.comwrote: Hi All, I digged the web a lot, but I didn't manage to find any solution to have mySamsungGalaxy connecting to the adb tool to debug/deploy my test application. Do somebody know the right procedure/driver to make it working ? My OS is Vista 32 bit. Thanks a lot, Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problems with aidl
Guilherme Melo wrote: On Sep 1, 1:46 pm, Mark Murphy mmur...@commonsware.com wrote: Guilherme Melo wrote: Hello all, i am creating a service and i am having two big problems with my aidl, first, i cannot import any Java types(Enumeration , Date, etc) that i get an error (couldn't find import for class ... ) Correct. Those are not valid AIDL data types: http://developer.android.com/guide/developing/tools/aidl.html#aidlsyntax acording to the link These parameters and return values can be of any type i thought that , even though it seems counter intuitive because they do not implement parceble ... i though i could , for instance use Date in passing a parameter You need to read further in the section I linked to above. Date is not a valid parameter type. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sdcard error
Running the emulator did the trick On Tue, Sep 1, 2009 at 9:12 PM, Alok Kulkarni kulsu...@gmail.com wrote: No i didnt run it while pushing.. GOD save me !!! Thanks , i am very dumb i suppose... :P On Tue, Sep 1, 2009 at 9:01 PM, Jack Ha jack...@t-mobile.com wrote: 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-Mobile USA, Inc. On Sep 1, 12:51 am, Alok kulsu...@gmail.com wrote: Hi guys, I created an SDCARD using command mksdcard 2048M sdcard This created an SDCARD in the tools directory Now when i tried to add an MP# file to it adb push D:\..\abc.mp3 /sdcard It gives error error: device not found What am i missing ?? Thanks , Alok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Debugging on Samsung Galaxy
Glad I could be of assistance! Yeah, there are lots of potential problems with Windows machines and getting started with developing for Android... particularly if you connected your phone before turning on debugging (AFAIK, there is no documentation about that little tidbit of information, either). They may have fixed it, but at one point the driver shipped for windows android debugging had some line ending problem as well, which is why you needed to download a different file. When I came across the problem I spent a good week trying to figure out what was wrong, searching the web for help, etc... Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Sep 1, 2009 at 12:08 PM, FaticaLabs fel...@felicepollano.comwrote: Thanks Justin! Your tip worked. As you said, step 5 did not happen, but manually Upgrading the driver in device manager, and choosing have disk definitely works ! Thanks again! Felix On 1 Set, 09:10, Tikoze janderson@gmail.com wrote: Try this link: http://www.anddev.org/debugging-installing_apps_on_the_g1_windows_dri... Step 5 most likely will not happen. If it does not then try the following: - Open Device Manager - You should see something mentioning your Galaxy, or an ADB Interface, or perhaps even just something with a yellow question mark on it - Right click and choose Update Driver Software - Browse to the file you downloaded and unzipped - When finished restart your computer Hope this helps! If not, let me know and I will do a little more digging. Thanks, Justin On Sep 1, 12:58 am, FaticaLabs fel...@felicepollano.com wrote: Yes, I did connect it before, whit the fancySamsungsoftware. It even behave strange with it, because it always see two device instead of one. No idea if adb should work with the SDK drivers or if I have to lookup some specificsamsungdrivers. I did post toSamsungforum as well, but no solving reply till now... On 31 Ago, 19:40, Justin Anderson janderson@gmail.com wrote: Have you previously connected your phone to the computer before turning on the ability to allow unsigned applications and USBdebugging? I found out the hard way that if you don't have those options on the very first time you connect your phone to a Windows machine then there are all sorts of hoops to jump through to get it working. However, I have a G1. If that is the case then I might be able to help. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Aug 31, 2009 at 3:06 AM, FaticaLabs fel...@felicepollano.comwrote: Hi All, I digged the web a lot, but I didn't manage to find any solution to have mySamsungGalaxy connecting to the adb tool to debug/deploy my test application. Do somebody know the right procedure/driver to make it working ? My OS is Vista 32 bit. Thanks a lot, Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: intent filter to know when user change the volume
ok i've found that is impossible : private void sendVolumeUpdate(int streamType) { Intent intent = new Intent (AudioManager.VOLUME_CHANGED_ACTION); intent.putExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, streamType); intent.putExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, getStreamVolume(streamType)); // Currently, sending the intent only when the stream is BLUETOOTH_SCO if (streamType == AudioManager.STREAM_BLUETOOTH_SCO) { mContext.sendBroadcast(intent); } } the intent is not send ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: startActivity() crash...
Justin, In case of the calendar application the activities activity android:name=MonthActivity android:label=@string/ month_view android:theme=@style/CalendarTheme / activity android:name=WeekActivity android:label=@string/ week_view android:theme=@style/CalendarTheme / activity android:name=DayActivity android:label=@string/ day_view android:theme=@style/CalendarTheme / activity android:name=AgendaActivity android:label=@string/ agenda_view android:theme=@android:style/Theme.Light android:exported=true / have no action assigned. When you try to start this activities from SDK level you get the permission error because you don't have the correct permissions. When you start the calendar application with calendarIntent.setClassName (com.android.calendar,com.android.calendar.LaunchActivity); the calendar app is brought to the foreground at the last activity it was. If you left the calendar app in the MonthActivty, it will be in the monthActivity after executing the command above. I assumed that you can use the PackageManager to find out about activities but PackageInfo packageInfo = pm.getPackageInfo (taskInfo.topActivity.getPackageName(), GET_ACTIVITIES); in case of the calendar application returns NULL. I noticed that the approach you took works fine for 3rd party apps and some of the system apps but not all system apps ... -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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 30, 11:45 pm, Tikoze janderson@gmail.com wrote: Roman, I very well may be missing something here, but using taskInfo.topActivity still does not work (even if a taskInfo instance)... The problem, at least for the Calendar, is that taskInfo.topActivity.getClassName() does not return com.android.calendar.LaunchActivity It returns com.android.calendar.MonthActivity or com.android.calendar.DayActivity or com.android.calendar.WeekActivity and all of those cause my app to crash. Actually, if you look at the very first post I made about this, I am using the topActivity object to modify the newly created intent... Am I not supposed to use taskInfo.topActivity.getClassName()? That is what I assume you mean when you mention activity name because I cannot find anything in the topActivity object that references an activity name. I have a workaround for the problem, as mentioned in an earlier post, but I am still interested in figuring out the cause of this problem to help me better understand the Android operating system. Thanks, Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: startActivity() crash...
Roman, Thank you very much for the feedback. I will look a little more into the PackageManager and PackageInfo classes and see what I can come up with. I think I saw some method in there that would return a launchable intent... Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Sep 1, 2009 at 3:19 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Justin, In case of the calendar application the activities activity android:name=MonthActivity android:label=@string/ month_view android:theme=@style/CalendarTheme / activity android:name=WeekActivity android:label=@string/ week_view android:theme=@style/CalendarTheme / activity android:name=DayActivity android:label=@string/ day_view android:theme=@style/CalendarTheme / activity android:name=AgendaActivity android:label=@string/ agenda_view android:theme=@android:style/Theme.Light android:exported=true / have no action assigned. When you try to start this activities from SDK level you get the permission error because you don't have the correct permissions. When you start the calendar application with calendarIntent.setClassName (com.android.calendar,com.android.calendar.LaunchActivity); the calendar app is brought to the foreground at the last activity it was. If you left the calendar app in the MonthActivty, it will be in the monthActivity after executing the command above. I assumed that you can use the PackageManager to find out about activities but PackageInfo packageInfo = pm.getPackageInfo (taskInfo.topActivity.getPackageName(), GET_ACTIVITIES); in case of the calendar application returns NULL. I noticed that the approach you took works fine for 3rd party apps and some of the system apps but not all system apps ... -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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 30, 11:45 pm, Tikoze janderson@gmail.com wrote: Roman, I very well may be missing something here, but using taskInfo.topActivity still does not work (even if a taskInfo instance)... The problem, at least for the Calendar, is that taskInfo.topActivity.getClassName() does not return com.android.calendar.LaunchActivity It returns com.android.calendar.MonthActivity or com.android.calendar.DayActivity or com.android.calendar.WeekActivity and all of those cause my app to crash. Actually, if you look at the very first post I made about this, I am using the topActivity object to modify the newly created intent... Am I not supposed to use taskInfo.topActivity.getClassName()? That is what I assume you mean when you mention activity name because I cannot find anything in the topActivity object that references an activity name. I have a workaround for the problem, as mentioned in an earlier post, but I am still interested in figuring out the cause of this problem to help me better understand the Android operating system. Thanks, Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: virtual keyboard
http://android.git.kernel.org/?p=platform/development.git;a=tree;f=samples/SoftKeyboard;hb=cupcake Balwinder Kaur 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 31, 9:53 am, Gigi guillerm...@gmail.com wrote: I have made a couple of functional Android Apps and now I want to make my own virtual keyboard, to substitute the default keyboard (similar to TouchPal). I have found absolutely no information to guide me in this process. The reference documentation does seem to be in order and useful (Keyboard, KeyboardView, ...) but my main question is: Do I start just like any other app? Is it an Activity? TouchPal for example doesn't appear in my applications menu, it has to be activated in locale preferences and then selected when introducing text. How do I do that? Is there any open source virtual keyboard I can check out? Thanks for any help! Guille --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: virtual keyboard
And in case you haven't seen this : http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html is a good read on IME/IMF Balwinder Kaur 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 Sep 1, 2:48 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: http://android.git.kernel.org/?p=platform/development.git;a=tree;f=sa... Balwinder Kaur 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 31, 9:53 am, Gigi guillerm...@gmail.com wrote: I have made a couple of functional Android Apps and now I want to make my own virtual keyboard, to substitute the default keyboard (similar to TouchPal). I have found absolutely no information to guide me in this process. The reference documentation does seem to be in order and useful (Keyboard, KeyboardView, ...) but my main question is: Do I start just like any other app? Is it an Activity? TouchPal for example doesn't appear in my applications menu, it has to be activated in locale preferences and then selected when introducing text. How do I do that? Is there any open source virtual keyboard I can check out? Thanks for any help! Guille --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to export data to excel?
I agree CSV would be the way to go. On Sep 1, 2:13 am, JUN youk...@gmail.com wrote: Hello all, I want to export sqlite data to excel format in android? how to do it? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problems with aidl
hello again mark, i have read trough it and the These parameters and return values can be of any type sentence is a bit misleading, because it only supports the data types given on the link you sent me. thank you very much for your attention and your help. i decided that i will just subclass Date and Enumeration implementing parceble, as for the method names, i will just have to create them with different names. if anyone has the same problem, i can send the subclasses i made cheers and thanks again Guilherme On Sep 1, 7:01 pm, Mark Murphy mmur...@commonsware.com wrote: Guilherme Melo wrote: On Sep 1, 1:46 pm, Mark Murphy mmur...@commonsware.com wrote: Guilherme Melo wrote: Hello all, i am creating a service and i am having two big problems with my aidl, first, i cannot import any Java types(Enumeration , Date, etc) that i get an error (couldn't find import for class ... ) Correct. Those are not valid AIDL data types: http://developer.android.com/guide/developing/tools/aidl.html#aidlsyntax acording to the link These parameters and return values can be of any type i thought that , even though it seems counter intuitive because they do not implement parceble ... i though i could , for instance use Date in passing a parameter You need to read further in the section I linked to above. Date is not a valid parameter type. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to send uppercase letter using InstrumentationTestCase.sendKeys() ?
Hi, Using the sendKeys() function I am able to send small letters like sendKeys(A B C). How to send capital letters? I didn't find any key event for them in KeyEvent class. Is there any separate event that I have to send prior to sending a letter, in order to make it uppercase? Thanks Yasser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] force orientation change?
wondering if there is a way to force the screen orientation one way or the other ... regardless of the phone's actual orientation. thanks. --
[android-beginners] voice call recording
I know allready there are some post on this topic.Thats why i am shocked couse telephony class is protected.n we cant do call recording.playing audio files on call n lot many stuffs,this is a really important class.is there any way to access it of this is added in new version cup cake? is there any hopes in feature that is going to happen.Come on android team your image is developer friendly platform.please do something reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---