[android-beginners] Re: storing values of an array
Simply serialize your ints to a string and write in a simple sqlite database. It's rather inexpensive and compact. You don't need a provider or things like that, just use the database helper (there's one in some sample) to create the db and a couple of query/select commands to store and restore. Alternatively you can do even simpler by storing the string as an app preference: prefs = PreferenceManager.getDefaultSharedPreferences(context); prefs.edit().putString(name, value).commit(); prefs.getString(name); R/ On Tue, May 19, 2009 at 11:24 PM, ayush ayushv2...@gmail.com wrote: i'm designing a simple board game, where the positions and states of pieces are stored in two separate (single dimension) int arrays. i want to give the user the option to save the game and reload the same at a future time. is there anyway that these two arrays can be stored on the device and accessed later? the option of using SQL seemed a little to extensive since the data is just a simple array. ~ayush --~--~-~--~~~---~--~~ 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] Messaging between 2 threads
Hi All I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread. The requirement is like this. An activity(say Activity_X) is setting the view by setContentView(some View_Y). In Activity_X i have implemeted onCreateOptionsMenu() and onOptionsItemSelected() fucntions for creating menus a switch case for action to be taken on selecting those menus.Menu has items like resume/pause/zoom/ . All action to be take on selecting these menus are implemented in View_Y in a separate Gamethread by extending Thread class. So whenever a menu is selected in Activity_X i need to send a message to View_Y. And on receiving this ,a particular action/method should be called in View_Y(GameThread). How can i achieve this using Handlers?Is there any other way of doing this? Please do share with me some code snippets for these. Your advises are highly appreciable. Thank you for your time. -Latha --~--~-~--~~~---~--~~ 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] Messaging between 2 threads
Hi All I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread. The requirement is like this. An activity(say Activity_X) is setting the view by setContentView (some View_Y). In Activity_X i have implemeted onCreateOptionsMenu() and onOptionsItemSelected() fucntions for creating menus a switch case for action to be taken on selecting those menus.Menu has items like resume/pause/zoom/ . All action to be take on selecting these menus are implemented in View_Y in a separate Gamethread by extending Thread class. So whenever a menu is selected in Activity_X i need to send a message to View_Y. And on receiving this ,a particular action/method should be called in View_Y(GameThread). How can i achieve this using Handlers?Is there any other way of doing this? Please do share with me some code snippets for these. Your advises are highly appreciable. Thank you for your time. -Latha --~--~-~--~~~---~--~~ 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: Messaging between 2 threads
Please do not post several messages across two lists in a very short period of time. All you do is irritate those who might help you. I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread. Are you sure that is the proper architecture? Is there any other way of doing this? Generally speaking, java.util.concurrent is full of classes designed to help coordination between threads. For example, I have used LinkedBlockingQueue to arrange for work to be done by a long-lived background thread. The question should not be how do I send messages to a background thread -- after all, what is the thread *doing* if it is not responding to messages? The answer should not be Thread.sleep() or busy-waiting. The question should be how do I arrange for such-and-so work to be done in the background, in which case thread pools (using AsyncTask or LinkedBlockingQueue) may be the proper answer. If you are new to multithreaded programming in Java, I encourage you to read up on the subject, such as _Java Concurrency in Practice_. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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 donload all the files from this site
Hi All, Could you please tell me how to download the files with folders from this site. I need to download and try on my Android SDK. Please help me in getting this code up in sdk. http://www.netmite.com/android/mydroid/packages/apps/Browser/ Warm Regards, Vineeth Desai --~--~-~--~~~---~--~~ 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] widget Ticker
hi im trieng to build a widget ticker that will move on the desktop do anyone have a demo ? thanks Rotor --~--~-~--~~~---~--~~ 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 donload all the files from this site
Try: wget -r -np http://www.netmite.com/android/mydroid/packages/apps/Browser/ You're probably better off getting it from the official source though: http://source.android.com/ On Thu, May 21, 2009 at 9:56 AM, vineeth Desai vineeth.desa...@gmail.com wrote: Hi All, Could you please tell me how to download the files with folders from this site. I need to download and try on my Android SDK. Please help me in getting this code up in sdk. http://www.netmite.com/android/mydroid/packages/apps/Browser/ Warm Regards, Vineeth Desai --~--~-~--~~~---~--~~ 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: Messaging between 2 threads
LunarLander example does exactly that... On May 21, 8:57 am, latha...@gmail.com latha...@gmail.com wrote: Hi All I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread. The requirement is like this. An activity(say Activity_X) is setting the view by setContentView (some View_Y). In Activity_X i have implemeted onCreateOptionsMenu() and onOptionsItemSelected() fucntions for creating menus a switch case for action to be taken on selecting those menus.Menu has items like resume/pause/zoom/ . All action to be take on selecting these menus are implemented in View_Y in a separate Gamethread by extending Thread class. So whenever a menu is selected in Activity_X i need to send a message to View_Y. And on receiving this ,a particular action/method should be called in View_Y(GameThread). How can i achieve this using Handlers?Is there any other way of doing this? Please do share with me some code snippets for these. Your advises are highly appreciable. Thank you for your time. -Latha --~--~-~--~~~---~--~~ 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] Error generating final archive: duplicate entry: classes.dex
Hi, I am trying to use Google Contacts API with my Android application for this I had converted all the google jar files into Android compatible jar file using dx tool (dex --dex --output=core.jar gdata- client-1.0.jar). But when I tried to add the converted jar file into eclipse (Project-- Properties--JavaBuildPath--Libraries--AddExternalJars) i am getting following error Error generating final archive: duplicate entry: classes.dex please help me to remove this error. -Ashish --~--~-~--~~~---~--~~ 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] MapView Tutorial - map not shown
Hello everyone, I'm working on a navigation application and was going through the MapView Tutorial on the official Android website. I have followed the instructions in the Map View Tutorial, Obtaining the Maps API key, and Signing exactly, but no map whatsoever. I'm using Eclipse Ganymed and SDK 1.5, so according to the Signing section, everything should work fine - I have JAVA_HOME set up properly as well as PATH pointing to the java/bin directory, where keytool is located. I also checked the firewall to see if it was blocking Eclipse or the emulator, resolved that, but still no map! What else can I try to have the map shown? --~--~-~--~~~---~--~~ 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 MMS
I am doing a project to use MMS for data collection which enables users to send MMS and store it in database. And I developed J2ME form for that purpose. But to test my system I plan to use emulator which is capable of sending MMS and which enables me to integrate (install) by J2ME form. But I don't know how to do that in android. Therefore my question is: 1. Does android support sending and receiving MMS? If yes, How can I use this feature? 2. Can I integrate my J2ME application in the emulator? if yes, How can I use it? Please help me. I am new to android, I really need help. Andu --~--~-~--~~~---~--~~ 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 write simple chat application on android
Hi. I'm very beginner in android programming and my english is very bad!. I not realy understand explanation of this email :simple chat application on android. I find the good cod of chatAndroid in this link : http://androidchat.googlecode.com/svn/trunk/androidchat/ But I want to learn how writing client_server in android. If it is can,someOne send me a full of code of simple chat application on android.or send me a part of code that shown connection of server and client. I hope you undrestand me! PLZ help! -- fatemeh nakhaie --~--~-~--~~~---~--~~ 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] TextView scrolling
How do I make my TextView scroll as I append new lines? Here's my code that doesn't work yet: final TextView outputField = (TextView) findViewById( R.id.outputTextView ); outputField.setMovementMethod( ScrollingMovementMethod.getInstance() ); for( int x = 1; x 100; x++ ) { outputField.append( x + \n ); outputField.scrollTo( 0, x * 60 ); } Do I need to repaint or redraw or something? Thanks, -- Greg Donald http://destiney.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: Plz help me to retrieve contacts
Title: signature Hi, can you paste the output from you logcat. And check whether you added the appropriate permission to you application in the Manifest file, you need android.permission.READ_CONTACTS for sure Alan Cassar,Software Engineer | Tel: +356 21334457| Fax:+356 21 334156 ricston Ltd.,Northfields Suite 4, Independence Avenue, Mosta MST9026 - MALTA email:alan.cas...@ricston.com | web:http://www.ricston.com -- Disclaimer - This email and any files transmitted with it are confidential and contain privileged or copyright information. You must not present this message to another party without first gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify us. If you have received this message in error, please notify the sender immediately and delete this email from your system. We do not guarantee that this material is free from viruses or any other defects although due care has been taken to minimise the risk. Any views stated in this communication are those of the actual sender and not necessarily those of Ricston Ltd. or its subsidiaries. Jayanthi wrote: HI All, plz find java file package net.learn.getContact; import android.app.Activity; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.Contacts; import android.provider.Contacts.People; import android.util.Log; public class getContact extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); this.setTitle("Contact Card"); setContentView(R.layout.main); Bundle bundle = getIntent().getExtras(); // create a new name ContentValues values = new ContentValues(); values.put(Contacts.People.NAME, "Test Name"); // add it to the database Uri newPerson = getContentResolver().insert (Contacts.People.CONTENT_URI, values); } } I am getting error while running the application saying Sorry has stopped expectely try again --~--~-~--~~~---~--~~ 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] Exception in Code
I have try the code But i am facing from this exception: Firstly thanks for the code: And thanks in Advance: Please give me the correct direction where i am wrong please help me. My code is : .java package org.apache.sms; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.LinearLayout.LayoutParams; public class SMSApp extends Activity { private TextView messageView; public class WhereamiLocationListener implements LocationListener { public void onLocationChanged(Location location) { if (location != null) { messageView.setText(location.toString()); } } public void onProviderDisabled(String provider) { // TODO Auto-generated method stub } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub } public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } @Override public void onResume() { WhereamiLocationListener listener = new WhereamiLocationListener (); LocationManager manager = (null); getSystemService(Context.LOCATION_SERVICE); long updateTimeMsec = 1000L; manager.requestLocationUpdates (LocationManager.GPS_PROVIDER, updateTimeMsec, 500.0f, listener); manager.requestLocationUpdates (LocationManager.NETWORK_PROVIDER, updateTimeMsec, 500.0f, listener); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(makeContentView()); } private View makeContentView() { LinearLayout panel = new LinearLayout(this); panel.setLayoutParams(new LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); panel.setOrientation(LinearLayout.VERTICAL); panel.addView(makeMessageView()); return panel; } private View makeMessageView() { messageView = new TextView(this); messageView.setText(Loading...); return messageView; } private void updateWithNewLocation(Location location) { String latLongString; if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); latLongString = Lat: + lat + \nLng: + lng; } else { latLongString = No Location Found; } messageView.setText(Your Current Location is:\n + latLongString); } } *--- .manifest file ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.apache.sms android:versionCode=1 android:versionName=1.0.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.SMSApp android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity uses-permission android:name=android.permission.INTERNET/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / /application /manifest -- ***--- Exception is: Shutting down VM 05-21 18:38:25.280: WARN/dalvikvm(723): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 05-21 18:38:25.290: ERROR/AndroidRuntime(723): Uncaught handler: thread main exiting due to uncaught exception 05-21 18:38:25.341: ERROR/AndroidRuntime(723): java.lang.RuntimeException: Unable to resume activity {org.apache.sms/ org.apache.sms.SMSApp}: java.lang.NullPointerException 05-21 18:38:25.341: ERROR/AndroidRuntime(723): at android.app.ActivityThread.performResumeActivity(ActivityThread.java: 2632) 05-21 18:38:25.341: ERROR/AndroidRuntime(723): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java: 2647) 05-21 18:38:25.341:
[android-beginners] Re: Android Compilation Ends With Error 41.
Hi Did you got sulution for this? I too have got the same error on Ubantu 9.04 JJ machine. please do share if any solution you have got. Thank you. On Apr 30, 11:14 pm, vekexasia vekexa...@gmail.com wrote: Hi people, i tryed to google it but nothing help me.. This is the error. r...@buch-desktop:~/mydroid# make build/core/product_config.mk:261: WARNING: adding test OTA key TARGET_PRODUCT=htc_dream TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID= build/core/Makefile:17: warning: overriding commands for target `out/ target/product/dream/system/etc/apns-conf.xml' build/core/Makefile:17: warning: ignoring old commands for target `out/ 1 error make: *** [out/target/common/obj/JAVA_LIBRARIES/ android_stubs_current_intermediates/classes.jar] Error 41 r...@buch-desktop:~/mydroid# Can't find a solution. --~--~-~--~~~---~--~~ 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] Log out of Google account attached to ADP?
Hey folks, Banging my head against the wall here. Apparently you cannot purchase copy-protected apps from the Market on an ADP. Which means, we can't test our published paid app, as we only have the one ADP in-house. So I had a mind to go to a T-Mo store and ask to use one of their demo phones. Thing is - I can't figure out how to *log out* of a Google account on the phone. I'd like to log out of the account on their demo phone, log into ours, buy the app, see if things work, then log out. Can… can you even log out? Thanks… ~ JD --~--~-~--~~~---~--~~ 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] Can Android1.5 be directly used on x86 based netbooks?
Dear friends: I'm a fresh guy on Android system. And have the following questions: 1. Can Android 1.5 be directly used on X86 based netbooks? I heard that there's a project named Asus eee701, but in the branch of Cupcake, I don't konw if Cupcake means the same for Android,what's the difference? 2. How to get a detemined version of a determined branch. I have checked the repo help init,and got something like this: Manifest options: -b REVISION,--manifest-branch=REVISION manifest branch or revison repo Version options: -repo-branch =REVISION repo branch or revison But I don't understand it clearly,so how to check the avaible cupcake branches versions and get them,and the correspoding command is? repo init -u git://android.git.kernel.org/platform/manifest.git -b android-1.5 --anifest branch =cupecake? 3.Further more,Android's mediaframe work OpenCore's current version is V2.02, is there any formal release than can be directly in x86 based netbooks or laptops. I want to add more codecs into it.so need to get the code that fit x86 architecture and can be easily built. 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] nfs server crashes on android startup
Has anybody seen this before? I have an android system where I use NFS for the root file system and use tftp to load the zImage. Linux starts just fine and is able to source the init.rc file stored in the rootfs in /. At about the time Android starts, NFS server contact is lost and the console displays the famous message: nfs: server ###.###.###.### not responding, still trying. The message is displayed about six times. The target system still responds to pings. It also presents a prompt where I can do very limited commands. I traced the hang to something related to starting zygote, but I have no clue about what zygote might be doing that causes the hang. Commenting out zygote related lines in the init.rc keeps the system from hanging, but Android doesn't start. Here is the really odd thing: the problem only happens on Debian systems (both Debian 10 and Ubuntu 8.10 display the problem). I can serve the same zImage and root file system from Red Hat systems (Fedora 10 and RHEL5) with no problems at all. I can also mount the rootfs from the Debian machines to either the RedHat or Debian machines without issues. Any suggestions about what might be going on with Debian? Thanks Erik --~--~-~--~~~---~--~~ 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: Please Help! I Can't get the ADT Plugin to Install
I faced this same problem for full half day. After reading all the posts on the issue and trying everything I could, I got this feeling that this issue has something to do with network connectivity/cache. Thought of trying after clearing Firefox cache. And yes, it worked (dont ask me how, why etc). Mridul On May 8, 12:27 am, Raphael r...@android.com wrote: Are you using Eclipse Classic? It doesn't have all the libraries needed. Please use Eclipse for Java Developers or Eclipse RCP fromhttp://eclipse.org. R/ On Tue, May 5, 2009 at 6:34 PM, J justinssh...@gmail.com wrote: I get this error no matter which of the 3 methods I try. What should I do? An error occurred while collecting items to be installed No repository found containing:org.eclipse.draw2d/osgi.bundle/ 3.4.1.v20080910-1351 No repository found containing: org.eclipse.emf.common/osgi.bundle/ 2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.change/ osgi.bundle/2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore.edit/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.ecore.xmi/ osgi.bundle/2.4.1.v200808251517 No repository found containing: org.eclipse.emf.edit/osgi.bundle/ 2.4.1.v200808251517 No repository found containing: org.eclipse.wst.common.emf/ osgi.bundle/1.1.202.v200809111955 No repository found containing: org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/ 1.1.201.v200808071700 No repository found containing: org.eclipse.wst.common.frameworks/ osgi.bundle/1.1.200.v200805140020 No repository found containing: org.eclipse.wst.common.project.facet.core/osgi.bundle/ 1.3.3.v200809102124 No repository found containing: org.eclipse.wst.common.ui/ osgi.bundle/1.1.301.v200805140415 No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/ 1.1.302.v200808260045 No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/ 1.1.2.v200809120159 No repository found containing: org.eclipse.wst.validation/ osgi.bundle/1.2.2.v200809050219 No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/ 1.1.305.v200809120354 No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/ 1.0.410.v200809120143 --~--~-~--~~~---~--~~ 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] Android source 1.0
Hi all, This is stupid to ask but Is it still possible to download the previous released version Android source 1.0? Thank you. Best Regards, 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] Is styleable class is removed from the Android SDK 1.5
Hi can any one tell me is styleable class is removed from the Android SDK 1.5,if yes then which class is used at the place of styleable. Thnaks 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: Error when setting the android preferences in eclipse.
Hi, I have the same problem, I work with: Eclipse Platform Version: 3.4.2 I have downloaded android-sdk-windows-1.5_r1 but when I set the location to: D:\Android\android-sdk-windows-1.1_r1 I get the same error: Error loading the SDK Error: Error parsing the SDK. D:\Android\android-sdk-windows-1.1_r1/plartforms is missing While using 1.5 SDK! please help... :), thnx Byron On May 14, 5:59 pm, Raphael r...@android.com wrote: The structure of the SDK has changed to be able to handle multiple platforms. You must use the Android SDK 1.5 with ADT 0.9x. Note that this SDK includes an android 1.1 image which is *exactly* the same as the one you had in the SDK 1.1_r1. R/ On Tue, May 12, 2009 at 12:52 AM, andersg anders.gjett...@gmail.com wrote: Hi, I can't get the android sdk working in eclipse. I followed the installation guide, but when I point android preferences to my android sdk lib under Window preferences android I get the following error. Error loading the SDK Error: Error parsing the SDK. /home/anders/opt/android-sdk-linux_x86-1.1_r1/plartformsismissing --~--~-~--~~~---~--~~ 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] porting old java to android
Hi all I've dug out some old java code i want to port to android. so far so simple but im getting a real beginners errors I got lunar lander SDK sample app and ive added in a variable private int pw; and a function that refers to it private void test() { pw=0; } i get pw cannot be resolved. but when i remove the reference to it in the function its no problem. i can't see how what im doing is any different to the existing variables and functions. Background info: im used to text editing java, rather than eclipse IDE/ XML but I'm pretty sure I don't need to define it anywhere other than in the .java file. --~--~-~--~~~---~--~~ 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: porting old java to android
ignore me - i was being like super dim. On May 21, 2:26 pm, Chris Mac Morrison chris.morri...@gmail.com wrote: Hi all I've dug out some old java code i want to port to android. so far so simple but im getting a real beginners errors I got lunar lander SDK sample app and ive added in a variable private int pw; and a function that refers to it private void test() { pw=0; } i get pw cannot be resolved. but when i remove the reference to it in the function its no problem. i can't see how what im doing is any different to the existing variables and functions. Background info: im used to text editing java, rather than eclipse IDE/ XML but I'm pretty sure I don't need to define it anywhere other than in the .java file. --~--~-~--~~~---~--~~ 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] Calling a Service from an Activity
Hi all, I want to call a Service from an Activity but I'm having some problems with concepts surely. I briefly describe the steps I'm following to do this: 1.- I call the Service from the Activity using: startService(new Intent(com.goldberg.DETECTED)); 2.- I have to declare my service on the Manifest and bound it with the Intent. So I add the following code to the Manifest: service android:name=.Player intent-filter action android:name=com.goldberg.DETECTED / category android:name=android.intent.category.DEFAULT / /intent-filter /service 3.- I code on my service the onCreate(), with the actions to do, and the onDestroy() methods. When the Activity calls startService the Service is not started and I get no log entries on the LogCat. I'm afraid there is some issue related with the Intent or some step that i'm not considering... Thanx, Pablo --~--~-~--~~~---~--~~ 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 send MMS
The Android emulator supports sending SMS, but not MMS. Sorry. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 21, 6:02 am, andu alemf...@yahoo.com wrote: I am doing a project to use MMS for data collection which enables users to send MMS and store it in database. And I developed J2ME form for that purpose. But to test my system I plan to use emulator which is capable of sending MMS and which enables me to integrate (install) by J2ME form. But I don't know how to do that in android. Therefore my question is: 1. Does android support sending and receiving MMS? If yes, How can I use this feature? 2. Can I integrate my J2ME application in the emulator? if yes, How can I use it? Please help me. I am new to android, I really need help. Andu --~--~-~--~~~---~--~~ 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 write simple chat application on android
Have you looked at androidchat? http://code.google.com/p/androidchat/ It is written for Android 1.0, which means it may need some modification to be compatible with the Android 1.5 API. You will find some more network client tutorials here: http://www.androidnotes.com/android-tutorials/ Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 20, 10:50 pm, ssfss nakhaie.1...@gmail.com wrote: Hi. I'm very beginner in android programming and my english is very bad!. I not realy understand explanation of this email :simple chat application on android. I find the good cod of chatAndroid in this link :http://androidchat.googlecode.com/svn/trunk/androidchat/ But I want to learn how writing client_server in android. If it is can,someOne send me a full of code of simple chat application on android.or send me a part of code that shown connection of server and client. I hope you undrestand me! PLZ help! -- fatemeh nakhaie --~--~-~--~~~---~--~~ 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 write simple chat application on android
your link contain an SVN url you can check it out to your computer it looks like all the sources are allready there 2009/5/20 ssfss nakhaie.1...@gmail.com Hi. I'm very beginner in android programming and my english is very bad!. I not realy understand explanation of this email :simple chat application on android. I find the good cod of chatAndroid in this link : http://androidchat.googlecode.com/svn/trunk/androidchat/ But I want to learn how writing client_server in android. If it is can,someOne send me a full of code of simple chat application on android.or send me a part of code that shown connection of server and client. I hope you undrestand me! PLZ help! -- fatemeh nakhaie -- Thanks Rotem Or --~--~-~--~~~---~--~~ 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] SDK USB driver for Vista SP1 won't install - Solution?
Howdy, When I connect a G1 to Vista SP1, the phone is automatically recognized and Vista's own USB driver (WpdFs.dll and WUDFRd.sys) is installed, but that driver doesn't work. Nothing I try seems to update or change the USB driver to the one supplied by the SDK... Have tried uninstalling the device and re-scanning Updating the driver in the Device Properties When I try to force updating by manually pointing to the SDK driver, Vista says it's not even a driver. Of course, with Vista's improved security I can't disable/rename the Microsoft driver (permissions even an Admin can't touch). Any ideas? TIA, Tony Full deatils on the Vista SP1 driver... Provider: Microsoft Corporation File Version: 6.0.60001.18000(longhorn_rtm.080118-1840 --~--~-~--~~~---~--~~ 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: Prevent image stretching in backgrounds
What method(s) should I override in my custom drawable? On May 20, 11:29 am, Romain Guy romain...@google.com wrote: Write a custom drawable to do this. On Tue, May 19, 2009 at 4:12 PM, ht harristea...@gmail.com wrote: I'd like to use setBackgroundDrawable() to set a background, but prevent image stretching. The behavior I'm looking for is to draw the image with either no scaling, or scaling to fit the image without changing the aspect ratio. Any remaining area would be colored with the background color (from setBackgroundColor). -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 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] Phone number from URI
Hi Guys, I have a URI for a phone number. Something like: content://contacts/phones/687 How do I get the actual phone number from this URI? Thanks, Ambarish --~--~-~--~~~---~--~~ 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: Exception in Code
There are a couple of problems in your onResume() function. 1. It should call super.onResume() 2. Change LocationManager manager = (null); getSystemService(Context.LOCATION_SERVICE); to LocationManager manager = (LocationManager)getSystemService (Context.LOCATION_SERVICE); And make sure you request the following permission in your AndroidManifest.xml file. uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 21, 6:11 am, Gopal bisht.ra...@gmail.com wrote: I have try the code But i am facing from this exception: Firstly thanks for the code: And thanks in Advance: Please give me the correct direction where i am wrong please help me. My code is : .java package org.apache.sms; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.LinearLayout.LayoutParams; public class SMSApp extends Activity { private TextView messageView; public class WhereamiLocationListener implements LocationListener { public void onLocationChanged(Location location) { if (location != null) { messageView.setText(location.toString()); } } public void onProviderDisabled(String provider) { // TODO Auto-generated method stub } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub } public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } @Override public void onResume() { WhereamiLocationListener listener = new WhereamiLocationListener (); LocationManager manager = (null); getSystemService(Context.LOCATION_SERVICE); long updateTimeMsec = 1000L; manager.requestLocationUpdates (LocationManager.GPS_PROVIDER, updateTimeMsec, 500.0f, listener); manager.requestLocationUpdates (LocationManager.NETWORK_PROVIDER, updateTimeMsec, 500.0f, listener); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(makeContentView()); } private View makeContentView() { LinearLayout panel = new LinearLayout(this); panel.setLayoutParams(new LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); panel.setOrientation(LinearLayout.VERTICAL); panel.addView(makeMessageView()); return panel; } private View makeMessageView() { messageView = new TextView(this); messageView.setText(Loading...); return messageView; } private void updateWithNewLocation(Location location) { String latLongString; if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); latLongString = Lat: + lat + \nLng: + lng; } else { latLongString = No Location Found; } messageView.setText(Your Current Location is:\n + latLongString); } } *--- .manifest file ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.apache.sms android:versionCode=1 android:versionName=1.0.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.SMSApp android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity uses-permission android:name=android.permission.INTERNET/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION /
[android-beginners] Fwd: Listener Service for data sources
Hi, Does anybody has info regarding below mailchain. Please help me i want it urgently. Best Regards, Bindu -- Forwarded message -- From: Kasmoori Bindu bindukasmo...@gmail.com Date: Wed, May 20, 2009 at 6:15 PM Subject: Listener Service for data sources To: android-beginners@googlegroups.com, android-develop...@googlegroups.com Hi All, Iam a beginner in android, just want to develop a service which listens to the database and it should invoke an activity as soon as there is a change. I tried to implement Contacts listener by registering ContentObserver but couldnot see the expected result. Kept log in onChange() method, observed that it is not getting called, any clue that where it might went wrong. Please help me. Best Regards, Bindu --~--~-~--~~~---~--~~ 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: Phone number from URI
You can do something like the following: Uri uri = Uri.parse(content://contacts/phones/1); Cursor c = managedQuery(uri, null, null, null, null); if (c.moveToFirst()) { do { // c.getString(1) is the phone # } while (c.moveToNext()); } -- Jack Ha 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 May 21, 8:19 pm, Ambarish Malpani ambar...@gmail.com wrote: Hi Guys, I have a URI for a phone number. Something like: content://contacts/phones/687 How do I get the actual phone number from this URI? Thanks, Ambarish --~--~-~--~~~---~--~~ 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] Modal Window
Hi Guys please help im trying to implement a modal window with activity instead of a fullscreen activity i saw something with window manager and inflate but i didnt get it any chance anyone allready got that 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 -~--~~~~--~~--~--~---