Re: [android-developers] hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
Reply will reply to the group which includes all the group members. On Wed, Feb 10, 2010 at 11:21 AM, Miguel Morales therevolti...@gmail.com wrote: Yeah, this crap should be deleted, I thought I pressed reply, not reply to all. On Feb 10, 2010 10:07 AM, Tommy Hartz droi...@gmail.com wrote: GTFO with this crap. This is a developers forum not a religion forum On Wed, Feb 10, 2010 at 1:03 PM, chris harper ch393...@gmail.com wrote: If I wanted religion... -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] saving shortcuts etc to the desktop?
On the home screen, click Menu - Add Then select whatever options you want to add. I am not sure about your other question. On Wed, Feb 10, 2010 at 11:27 AM, Jason Proctor jason.android.li...@gmail.com wrote: i was asked today whether it's possible to save out shortcuts to the desktop, the way the iPhone can save bookmarks and contacts. AFAIK, it's not possible to programmatically create apps or widgets. but is there another way to do this? thanks -- jason.vp.engineering.particle -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] pause
Since Android is essentially Java, couldn't you use Thread.sleep(5000)? Not sure what the race conditions this will introduce within your code but it'll sleep for 5 seconds. Tope On Wed, Feb 10, 2010 at 12:28 PM, douglas weaknetl...@gmail.com wrote: how do I do a simple sleep() in Android? e.g. in Perl: sleep 5; to sleep for 5 seconds. I have a program that continues scanning wifi until it finds a certain router then plays a tune once found. All works fine, but it scans in 1.6 EXTREMELY fast, where as on 2.0 it scans about once per second. I also made a stop button that does: mainWifi.setWifiEnabled(false); but this causes a force close. ?? actually every application I have made so far except hello world just gives me a force close. I have checked my permissions in the manifest etc.?? I have a soundboard app that cannot play more than 7 sounds before it force closes? why?? Is it my phones hardware? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] saving shortcuts etc to the desktop?
I believe that you can do something like this. Intent i = new Intent(); i.putExtra(Intent.EXTRA_SHORTCUT_INTENT, intent_to_execute_when_clicked); i.putExtra(Intent.EXTRA_SHORTCUT_NAME, title); i.putExtra(Intent.EXTRA_SHORTCUT_ICON, Bitmap_object copy); i.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, resource file); i.setAction(INSTALL_SHORTCUT); sendBroadcast(i); This will create a shortcut so that when the icon is clicked, the intent_to_execute_when_clicked will be launched. -Tope On Wed, Feb 10, 2010 at 11:48 AM, Jason Proctor jason.android.li...@gmail.com wrote: perhaps i'm not being clear :-) supposing my app was an audio player, and i wanted to save out a playlist shortcut to the desktop so that the user could go directly to that playlist with one tap. is this possible? thanks On the home screen, click Menu - Add Then select whatever options you want to add. I am not sure about your other question. On Wed, Feb 10, 2010 at 11:27 AM, Jason Proctor jason.android.li...@gmail.com wrote: i was asked today whether it's possible to save out shortcuts to the desktop, the way the iPhone can save bookmarks and contacts. AFAIK, it's not possible to programmatically create apps or widgets. but is there another way to do this? thanks -- jason.vp.engineering.particle -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- jason.vp.engineering.particle -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to show a loading image or an animation?
Hi, You can check this out http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html#ProgressDialog http://developer.android.com/intl/fr/reference/android/os/AsyncTask.html From what I gather, you'll have to start a thread using AsyncTask and that way you can show your progress dialog. A search of progress dialog and async task should yield more results as I'm sure this question has been asked before. -Tope On Mon, Feb 1, 2010 at 10:39 AM, Achanta krishna.acha...@gmail.com wrote: I have a search box and a web view in my activity. I also have a search button which when someone clicks opens a the url in the webview below the search box. Everything is working fine except that it remains blank while the page loads. I want to show a loading message with a spinning icon/animation while the page loads. [similar to one in the market app]. please let me know how to do it. Thank you. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to show a loading image or an animation?
I found this tutorial http://www.helloandroid.com/tutorials/using-threads-and-progressdialog What you can try to do and see if it works is to create a new thread on button click so that when the page is loading, you can display an indeterminate progress dialog while you are waiting on the page to be done loading using Webview's getProgress() method http://developer.android.com/intl/fr/reference/android/webkit/WebView.html#getProgress() . Create a handler so that when the page is done loading, you can dismiss the dialog. Hope that helps you(see the tutorial). On Mon, Feb 1, 2010 at 11:41 AM, Achanta krishna.acha...@gmail.com wrote: Thank you for the reply, as I'm sure this question has been asked before. I was also sure that it has been asked before because its a common task, But searching the web or this group did not give me the appropriate results. From what I gather, you'll have to start a thread using AsyncTask and that way you can show your progress dialog. I may have to but I am not sure. Here I am loading a webpage and this is happening in the same thread or it appears to be. I can also get the progress of it from the WebView. I am not doing any background activity like calculations or downloading stuff, but loading the page which is on the same thread. So I am a little lost on how to get this done. Thanks again. On Feb 1, 11:12 am, Temitope Akinwande takinwa...@gmail.com wrote: Hi, You can check this outhttp://developer.android.com/intl/fr/guide/topics/ui/dialogs.html#Pro...http://developer.android.com/intl/fr/reference/android/os/AsyncTask.html From what I gather, you'll have to start a thread using AsyncTask and that way you can show your progress dialog. A search of progress dialog and async task should yield more results as I'm sure this question has been asked before. -Tope On Mon, Feb 1, 2010 at 10:39 AM, Achanta krishna.acha...@gmail.com wrote: I have a search box and a web view in my activity. I also have a search button which when someone clicks opens a the url in the webview below the search box. Everything is working fine except that it remains blank while the page loads. I want to show a loading message with a spinning icon/animation while the page loads. [similar to one in the market app]. please let me know how to do it. Thank you. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to show a loading image or an animation?
So here is an example I created by following this tutorial http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html under the heading Example ProgressDialog with a second thread I modified it a little to load a webpage and use the progress of the page to display/dismiss the dialog package com.test.progressdialog; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.webkit.WebView; import android.widget.Button; public class ProgressDialogTest extends Activity { static final int PROGRESS_DIALOG = 0; ProgressThread progressThread; ProgressDialog progressDialog; private Button mButton; private WebView mWebView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mButton = (Button) findViewById(R.id.progressDialog); mWebView = (WebView) findViewById(R.id.content); mButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { mButton.setVisibility(View.GONE); mWebView.loadUrl(http://en.m.wikipedia.org/wiki/::Home;); showDialog(PROGRESS_DIALOG); } }); } protected Dialog onCreateDialog(int id) { switch(id) { case PROGRESS_DIALOG: progressDialog = new ProgressDialog(ProgressDialogTest.this); progressDialog.setMessage(Loading...); progressDialog.setIndeterminate(true); progressThread = new ProgressThread(handler); progressThread.start(); return progressDialog; default: return null; } } // Define the Handler that receives messages from the thread and update the progress final Handler handler = new Handler() { public void handleMessage(Message msg) { int total = msg.getData().getInt(total); if (total = 100) { dismissDialog(PROGRESS_DIALOG); progressThread.setState(ProgressThread.STATE_DONE); } } }; /** Nested class that performs progress calculations (counting) */ private class ProgressThread extends Thread { Handler mHandler; final static int STATE_DONE = 0; final static int STATE_RUNNING = 1; int mState; ProgressThread(Handler h) { mHandler = h; } public void run() { mState = STATE_RUNNING; //total = 0; while (mState == STATE_RUNNING) { try { Thread.sleep(100); } catch (InterruptedException e) { Log.e(ERROR, Thread Interrupted); } Message msg = mHandler.obtainMessage(); Bundle b = new Bundle(); b.putInt(total, mWebView.getProgress()); msg.setData(b); mHandler.sendMessage(msg); } } /* sets the current state for the thread, * used to stop the thread */ public void setState(int state) { mState = state; } } } Hopefully that helps you in your task. -Tope On Mon, Feb 1, 2010 at 1:05 PM, Achanta krishna.acha...@gmail.com wrote: I saw that tutorial earlier and have also tried it. Yes for now even a progress dialog in that way works for me. I know i need to use getProgress but do not know how to send the progress to the thread running the progress dialog. Thanks again. On Feb 1, 11:58 am, Temitope Akinwande takinwa...@gmail.com wrote: I found this tutorial http://www.helloandroid.com/tutorials/using-threads-and-progressdialog What you can try to do and see if it works is to create a new thread on button click so that when the page is loading, you can display an indeterminate progress dialog while you are waiting on the page to be done loading using Webview's getProgress() methodhttp://developer.android.com/intl/fr/reference/android/webkit/WebView...() . Create a handler so that when the page is done loading, you can dismiss the dialog. Hope that helps you(see the tutorial). On Mon, Feb 1, 2010 at 11:41 AM, Achanta krishna.acha...@gmail.com wrote: Thank you for the reply, as I'm sure this question has been asked before. I was also sure that it has been asked before because its a common task, But searching the web or this group did not give me
Re: [android-developers] Re: Guide Me Right Way
The Busy Coder's Guide to Android Development Just got one myself. On Sun, Jan 24, 2010 at 11:02 PM, Kevin Duffey andjar...@gmail.com wrote: The Java book is good.. Oriely has some great books as well for learning Java. Perhaps the best resource I've found on Android.. I keep plugging this so I am thinking I'll get a free year out of it (Mark?? ;).. is Mark Murphy's online books. For $40, you get 3 online books that are updated every so often and you get the updates for a year as part of the price. The best part is Mark has a forum for the book as well as you'll see him replying here on this forum quite a bit. I won't knock the other books, the few on android I found were pretty good, but having the knowledge of Mark, along with some of the android team like Dianne, Romain and a few others here, has taught me a ton already. Google Mark Murphy online books (always forget the name!!), you'll find it. CommonsWare I think it is, or the site he sells it from. On Sun, Jan 24, 2010 at 8:09 PM, Anthoni anthoni.gard...@gmail.com wrote: Hi Sanj, I was also in this same predicament a few days ago. Desperately wanted to learn Android programming, but knew smatterings of Java code. What I did was the following :- -- Purchase Sams Teach Yourself Java In 21 Days Purchase Java Generics and Collections (Note: Android heavily uses Generics so you need a firm grasp on them) Purchase Hello Android There are also lots of bookmarks and tutorial sites ready to read and digest once you know your way around the basics of Java. Last week I got the Sams book, on Saturday I deployed my first Android application to the emulator. I still have lots more to learn but I am looking forward to the journey. Regards anthoni On Jan 25, 3:59 am, Kevin Duffey andjar...@gmail.com wrote: You are definitely going to want to learn Java first. Android should come long after it. You can try, but will find yourself missing quite a bit and getting stuck a lot if you try to learn Java and Android at the same time. Android is one of those things you do after you understand Java. To understand Java will take months of learning, practicing, etc. I'd say most developers take quite a bit longer to really understand the internals of how the JVM works, the language, and a good handle on a lot of the libraries you will need. On Sun, Jan 24, 2010 at 1:16 PM, sanj sangeev...@gmail.com wrote: hi,i m very new on mobile application development. i want to learn Android. but i dont know where to start actually. i tried defferent web including developer.android and i deffernt books as well. But problem is i dnt know java at all. And all most everywere i found they write some code and then traslate it in android code to explane. but person like me who have no idea about any of it is very tough. So that is best proctice- first learn java then Android or learn android with part of java (onbly required to understand android). sorry for bad english. -- 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] what star (*) means in @*android:drawable/?
So, what would be the right approach, in case we need to use them? On Wed, Jan 20, 2010 at 10:30 AM, Dianne Hackborn hack...@android.com wrote: On Wed, Jan 20, 2010 at 9:09 AM, Romain Guy romain...@android.com wrote: It is used to access private resources. Do not use it because these private resources are often removed/renamed/etc. Using it would most likely break your app in the future. In fact your app will almost certainly break across existing android versions, and possibly even individual devices. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to display XML
Thank you for the reply, I will try that. On Mon, Jan 18, 2010 at 9:38 PM, prachi t.prach...@gmail.com wrote: Hii i think it can be done. We can use the function loadUrl and give the url of the xml to be displayed. Or we can store the xml to be displayed in the string variable and display it using the method loadData giving mimetype as text/html. On Jan 16, 4:43 am, Temitope Akinwande takinwa...@gmail.com wrote: Hi all, Is it possible to display an xml file with all the tags in Webview or the Browser without first parsing the xml file? For example, is it possible to display the following note toDanny/to fromJane/from subjectHello/subject bodyHow are you doing?/body /note without it being parsed to display Danny Jane Hello How are you doing? Any help will be appreciated. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Installing app on android device
You can install apps on your device without publishing to the market, and they should run. -Tope On Tue, Jan 19, 2010 at 7:43 AM, fourk xav fou...@gmail.com wrote: Hi, What about if you want to run the application on your DISCONNECTED device? Is it possible or do you must go thru publishing to the market? Thanks in advance. On Mon, Jan 11, 2010 at 4:20 AM, Tommy Hartz droi...@gmail.com wrote: Ah ok thanks! On Sun, Jan 10, 2010 at 9:37 PM, Kevin Duffey andjar...@gmail.com wrote: If you are developing applications, when you mount your Droid (or any android device) to the USB port, do NOT mount it in USB mode... you don't want it to show up as a HD on your computer. When you do this, it usually will show up as a device you can run your project on. If you are on Linux tho, you need to do a quick search on how to mount your droid as a device. I forget the details, there was a couple steps to do so that it would show up under ADB. I simply dock my droid to the USB and can immediately build and run my app on it. I have the option to choose the emulator or the droid phone. On Fri, Jan 8, 2010 at 9:46 PM, Tommy droi...@gmail.com wrote: Hi, I am new to android and I currently got a droid so I could test out apps before publishing them to the market. My question is how to I get the app from Eclipse to the Droid and install it? Currently I open eclipse right click the project go to android tools and do export unsigned version. I then copy that file from my computer to the droid. I then open ASTRO to navigate to the file. When I click to install it says Application Not Installed. If any could help or link a good straight forward way to do this that would be great. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to display XML
Hi all, Is it possible to display an xml file with all the tags in Webview or the Browser without first parsing the xml file? For example, is it possible to display the following note toDanny/to fromJane/from subjectHello/subject bodyHow are you doing?/body /note without it being parsed to display Danny Jane Hello How are you doing? Any help will be appreciated. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Clearing browser Session history?
Hi, Do you want to delete session cookies? On Tue, Jan 12, 2010 at 11:54 PM, Archana archana.14n...@gmail.com wrote: Hi, Can any one tell me how can we clear browse session history.We have api called Browser.ClearHistory(),this will delete entire records but i want to delete history of browsing session. Please hep... -- 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en