[android-developers] Home Screen issue
Hi, When creating shortcut for bookmark on Home screen (the screen with clock image) in emulator, a default icon is assigned for all bookmarks for web pages. Is it possible to customize icons for bookmark shortcut on Home screen. For example, shortcut for Yahoo bookmark has an icon for Yahoo web page and shortcut for Microsoft has an icon for Microsoft web page, and so on. Thanks, Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MapActivity / MapView causes application to crash at startup
You need to generate a key for apikey for your emulator since Google has started to enforce the rule to put real key in xml file. On Nov 9, 10:44 pm, bw <[EMAIL PROTECTED]> wrote: > Also had to add > > > > above my application tag. > > (Source:http://groups.google.com/group/android-developers/browse_thread/threa...) > > Is there some place where this is all documented? > I think this info should be in the javadocs for the MapView class! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: What is callback function to catch text entered into search box
Thanks a lot. On Oct 20, 4:28 pm, "Andrew Stadler" <[EMAIL PROTECTED]> wrote: > Billsen - > > When the user enters the search UI and types enter or clicks the > search button, the ACTION_SEARCH intent will be sent. At least one > activity within your application must be configured (using an > intent-filter) to receive and handle this Intent. > > For more information, please see: > <http://code.google.com/android/reference/android/app/SearchManager.html> > <http://code.google.com/android/samples/ApiDemos/src/com/example/andro...> > > Hope this helps. > --Andy > > On Mon, Oct 20, 2008 at 1:20 PM, Billsen <[EMAIL PROTECTED]> wrote: > > > hi, > > > I tried to find a callback function that could catch text entered in > > search box, but could not find it. In my application, I started local > > search and entered text in search box. What I want to do is to catch > > text entered in my app. > > > Anybody can help? > > > Thanks, > > Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] What is callback function to catch text entered into search box
hi, I tried to find a callback function that could catch text entered in search box, but could not find it. In my application, I started local search and entered text in search box. What I want to do is to catch text entered in my app. Anybody can help? Thanks, Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Does Android 1.0 support progressive download of music and video files?
Thanks a lot for your response, but I don't know the meaning of hinted here. Could you please provide some info about this? Thanks, Billsen On Oct 15, 7:28 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > Yes the MediaPlayer supports progressive download. > The files must be hinted and be one of the following formats: > audio: mp3, m4a (and also amr which is 3gp audio) > video: mp4 3gp > Many mp4 based files (e.g. all foregoing formats except mp3) you'll > find on the web won't be hinted, so they won't work on Android in > streaming, you have to hint them (using MP4Box) if not hinted. > There is already ton of posts on the mailing dealing with that. > > On Oct 14, 10:50 pm, Billsen <[EMAIL PROTECTED]> wrote: > > > Hi, > > > A question, does Android 1.0 support progressive download of music and > > video files? > > > Thanks, > > Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Does Android 1.0 support progressive download of music and video files?
Hi, A question, does Android 1.0 support progressive download of music and video files? Thanks, Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to load html file from sdcard to WebVeiw
That sounds good. However, if html files in sdcard has links to images, js or CSS file also in sdcard, how to get these files? If these files are in assets directory, there will be no issue. What I try to find is that are there any Uri or content provider or resources that make accessing files in sdcard just like access files in assets directory. Thanks, Senshan On Oct 1, 7:01 pm, "Chris Chiappone" <[EMAIL PROTECTED]> wrote: > Yeah that should be relatively simple. List the contents of the > SDCard and find your file. Then create a WebView and use the > loadData() method to load the data as a string. > > ~chris > > On Wed, Oct 1, 2008 at 3:08 PM, Billsen <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Is it possible to load html file into WebView? If yes, how? > > > Thanks, > > Senhsan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Connect to an online SQL database
I think you may try to access database in your phone directly. If that is the case, it is hard to do since there are no database drivers for Oracle, MySql, MS SQL server in android. If you really want to push data from your phone to database, you can develop application in your web server to access database and send data from the phone to your application. Regards, Senshan On Oct 1, 4:21 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > is this possible? i need to send data from my phone to a sql server on > my website instead of in an onboard SQLlite DB. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to load html file from sdcard to WebVeiw
Hi, Is it possible to load html file into WebView? If yes, how? Thanks, Senhsan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Run JSP file in Android
Hi, I try to run jsp file in Android, just want print some string in webpage with <%= "test" %>. However, nothing happens after execution. No error occurs. Can Android run jsp file? If yes, how? Thanks in advance, Senshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] google visualization in Android web app
Hi, I want to display a page with Google Visualization stored in device, but got an error message like this: Console: ReferenceError: Can't find variable: google line: 5 source: file:///android_asset/area_chart.html line 5 referers to this line -google.load("visualization", "1", {packages:["areachart"]}); Why it works fine in browser running in PC and Android Web browser when browsing Google web page, but not work as put html file in assets directory. Thanks, Senshan Here is the code: http://www.google.com/jsapi";> google.load("visualization", "1", {packages:["areachart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Year'); data.addColumn('number', 'Sales'); data.addColumn('number', 'Expenses'); data.addRows(4); data.setValue(0, 0, '2004'); data.setValue(0, 1, 1000); data.setValue(0, 2, 400); data.setValue(1, 0, '2005'); data.setValue(1, 1, 1170); data.setValue(1, 2, 460); data.setValue(2, 0, '2006'); data.setValue(2, 1, 660); data.setValue(2, 2, 1120); data.setValue(3, 0, '2007'); data.setValue(3, 1, 1030); data.setValue(3, 2, 540); var chart = new google.visualization.AreaChart(document.getElementById('chart_div')); chart.draw(data, {width: 800, height: 240, legend: 'bottom', title: 'Company Performance'}); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to change data in emulator, which is set in android:label in AndroidManifest.xml file.
Hi, As an Android application is started in emulator, The text specified in android:label of AndroidManifest.xml file will be displayed in the top-right corner of emulator. I need to change the text dynamically, meaning as clicking a button, the text will be changed. How to do this. Thanks, Senshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to remove a view
Thanks for your help. It works with setVisibility. On Sep 12, 3:11 pm, Kavi <[EMAIL PROTECTED]> wrote: > Look at the setVisibility method to change the visibility options for > the view. > > http://code.google.com/android/reference/android/view/View.html#setVi...) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to remove a view
Would you please provide a little more information? I loaded R.layout.main by setContentView(), then added a view with addContentView. I need to remove the view added by addContentView by clicking a button. Thanks, Billsen On Sep 11, 2:43 am, hackbod <[EMAIL PROTECTED]> wrote: > setContentView() replaces any existing views. If you want finer- > grained control, you can setContentView() a top-level layout manager, > which you can then add and remove views in as you desire. > > On Sep 10, 2:40 pm, Billsen <[EMAIL PROTECTED]> wrote: > > > Hi, > > > How to remove a view added by addContentView method? > > > Thanks, > > Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to remove a view
Hi, How to remove a view added by addContentView method? Thanks, Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] callback function
Hi, Are there any callback functions for EditText and Spinner Veiws. I need to valid data as entered into EditText before submitting it. Also I have two Spinners and contents displayed in second Spinner depends on data selected in the first Spinner. Any help would be greatly appriciated. Thanks, Senshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to detect item selected in Spinner View as selecting different items
Hi, I have to two spinner views in my App. What I want is this. The data in second spinner view depends item selected in the first spinner view. Here is the code. sUpdate is the first spinner view. I use showAlter to to inform me that callback function setOnItemSelectedListener is called as I change item selected. However, as I changed item slected in the first spinner view, nothing happened. Please help me out. Thanks, Senshan sUpdate.setOnItemSelectedListener(onItemSelectedListener); onItemSelectedListener = new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View v, int position, long id) { showAlert(null,position,v.toString(),"OK",false); } public void onNothingSelected(AdapterView parent){ showAlert(null,1,parent.toString(),"OK",false); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to detect item selected in Spinner View as selecting different items
Hi, I have to two spinner views in my App. What I want is this. The data in second spinner view depends item selected in the first spinner view. Here is the code. sUpdate is the first spinner view. I use showAlter to to inform me that callback function setOnItemSelectedListener is called as I change item selected. However, as I changed item slected in the first spinner view, nothing happened. Please help me out. Thanks, Senshan sUpdate.setOnItemSelectedListener(onItemSelectedListener); onItemSelectedListener = new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View v, int position, long id) { showAlert(null,position,v.toString(),"OK",false); } public void onNothingSelected(AdapterView parent){ showAlert(null,1,parent.toString(),"OK",false); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make screen scroll horizontally
Thanks. On Jul 9, 3:27 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > You can't for now, unless you write your own scrollable view. You can > however shrink your table's columns to force them to fit on screen. > Use android:shrinkColumns to do this. > > On Tue, Jul 8, 2008 at 1:52 PM, Billsen <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have a TableLayout with five columns inside of TableRow. Since the > > screen is to narrow to hold all data, the data in last column can not > > been seen. My question is how to make screen scroll horizontally? > > > Thanks, > > Senshan > > -- > Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to make screen scroll horizontally
Hi, I have a TableLayout with five columns inside of TableRow. Since the screen is to narrow to hold all data, the data in last column can not been seen. My question is how to make screen scroll horizontally? Thanks, Senshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] date data type issue in Andriod
Hi, How to save data with timestamp data type into SQLite database. The method put in class ContentValues does not accept date data type. Thanks, Senshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Data type issue in Andriod
Hi, I created a table which had a column with timestamp data type. However, I can not insert records into the table because put method in ContentValues class does not accept timestamp data type. Are there any ways to work around. Thanks, Senshan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] help on Android
Hi, I am a new comer to Android and need a help. Here is my question? How to get to a new activity by clicking a button. What is what I did. In class CompantMenu, I have code like this . . listButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { listCompany(); } }); . . public void listCompany(){ Intent i = new Intent(this,ListCompany.class); startActivity(i); } In class ListCompany, I have code like this, public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.list_company); } Node:list_company.xml is availabe and classes ListCompany CompantMenu are in AndroidManifest.xml. When I lick listButton, I did not get page defined by list_company, instead, I got java.long.NullPointerException. How solve this issue? Thanks Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---