[android-beginners] Emulator error cause?
Hello Android experts. Trying to run a HelloWorld app in an AVD for 2.1 and WVGA854 and right when the emulator pops up, it disappears and this comes up in the comsole. I 'think' it means 'you idiot... youre disk is almost full and the swap file cant grow, so were going to kill you'. Did I guess right? Anyone else seen this? [2010-02-11 11:18:16 - Emulator] [2010-02-11 11:18:16 - Emulator]This application has requested the Runtime to terminate it in an unusual way. [2010-02-11 11:18:16 - Emulator]Please contact the application's support team for more information. [2010-02-11 11:18:16 - HelloAndroid]emulator-5554 disconnected! Cancelling 'com.example.helloandroid.helloandroid activity launch'! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] Re: Moderated list??
Il giorno mar, 09/02/2010 alle 13.40 -0600, Mr. Baseball 34 ha scritto: I just wished the W3C would get off their asses and modify the SMTP specs to require path verification by forwarders. This would eliminate all forged spam, which is about 95% of it. It is not the w3c that should modify it, but the ietf. But path verification would not help. Spammers would use virus-infected zombie PCs (they already use them) to send spam from a perfectly valid SMTP server: the one the (infected) user has configured in his mail client. This is a moderated list. I don't know how google groups works behind the scenes, but maybe simply unsubscribing the spammer would block him. Bye. -- Alessandro Pellizzari -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 overlay POIs on Camera
Hi All, Without using Wikitude, I'm trying to find out how to overlay POIs over Camera. I have seen a few code samples that overlays POIs over MapView. How to do the same for Camera? Any clue/example code would be very much appreciated. Thanking all in advance. -raich -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] Query contact number with URI
HI Gurus, I have used the action below to pick specific number from contacts: Intent intent1 = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Phone.CONTENT_URI); startActivityForResult(intent1, REQUEST_GET_PHONE); which returns a content://***/contact/3 type of URI to me. How do I query the contact database using this URI to get the tel:// uri? Thanks Shyam -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Serial over Bluetooth
Apologies for the lengthy post, but I wanted this to be at least semi- useful, and there is not a lot of info out there. I see that the OP is from awhile ago, but that this thread has been resurrected. I am currently using my Droid (firmware push: 2.0.1) to communicate to an ArduinoBT (Bluetooth) board via SPP (the ArduinoBT's default) using the well-known SPP UUID (0x1101 host side, and the UUID-extended version of 0x1101 on the client (Android) side; see the code below for the actual UUID). The ArduinoBT board uses a BlueGiga WT11 module and iWrap firmware/API. We currently have it interfaced to a hobby robot. *** Following pertains to Android 2.0 and up; there is no public Bluetooth API before 2.0 *** Given that the ArduinoBT comes out of the box set up for SPP, I configured our Android client application to do the same. I've commented the code, but you need to know something about Bluetooth to get the most out of it. I highly recommend Bluetooth Essentials for Programmers, available for free. On the Android side: the Android SDK doc, and the Bluetooth Chat Sample are excellent references. Before you run the client, you need to pair your robot controller with your Android device. It doesn't have to be connected, just paired. You can do the discovery/pairing from your handset's standard networking settings. You will need a PIN; Android requires authentication even if your robot controller doesn't (most controllers let you set this as an option). You will also need to enable Bluetooth. This is a brain-dead simple client, no threading, no receiving; all it does is send commands to our robot (modified a bit, since the OP only cares about the SPP communication material), and should be very easy to modify for various purposes. All that needs to be changed on this side is the MAC address. Enter the robot controller's MAC address in place of the XX:XX... string below. package com.example.thinbtclient; import java.io.IOException; import java.io.OutputStream; import java.util.UUID; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class ThinBTClient extends Activity { private static final String TAG = THINBTCLIENT; private static final boolean D = true; private BluetoothAdapter mBluetoothAdapter = null; private BluetoothSocket btSocket = null; private OutputStream outStream = null; //Well known SPP UUID (will *probably* map to RFCOMM channel 1 (default) if not in use); //see comments in onResume(). private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); private static String address = XX:XX:XX:XX:XX:XX; //== hardcode your robot (server) MAC address here... /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); if(D) Log.e(TAG, +++ ON CREATE +++); mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (mBluetoothAdapter == null) { Toast.makeText(this, Bluetooth is not available., Toast.LENGTH_LONG).show(); finish(); return; } if (!mBluetoothAdapter.isEnabled()) { Toast.makeText(this, Please enable your BT and re-run this program., Toast.LENGTH_LONG).show(); finish(); return; } if(D) Log.e(TAG, +++ DONE IN ON CREATE, GOT LOCAL BT ADAPTER ++ +); } @Override public void onStart() { super.onStart(); if(D) Log.e(TAG, ++ ON START ++); } @Override public void onResume() { super.onResume(); if(D) { Log.e(TAG, + ON RESUME +); Log.e(TAG, + ABOUT TO ATTEMPT CLIENT CONNECT +); } //When this returns, it will 'know' about the server, via it's MAC address. BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); //We need two things before we can successfully connect (authentication issues //aside): a MAC address, which we already have, and an RFCOMM channel. //Because RFCOMM channels (aka ports) are limited in number, Android doesn't allow //you to use them directly; instead you request a RFCOMM mapping based on a service //ID. In our case, we will use the well-known SPP Service ID. This ID is in UUID //(GUID to you Microsofties) format. Given the UUID, Android will handle the //mapping for you. Generally, this will return RFCOMM 1, but not always; it //depends what other BlueTooth services are in use on your Android device. try { btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);
[android-beginners] How to implement asking questions before uninstalling the apk
Hi, Usually when ever we install some apk from market and then try to uninstall it we get set of questions like 1.Did not like the software. 2. Do not want to use...etc I want to know how we can do this. If there is some site where in I should look please let me know. I tried looking for it but did not know how to search. Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
Re: [android-beginners] How to implement asking questions before uninstalling the apk
Usually when ever we install some apk from market and then try to uninstall it we get set of questions like 1.Did not like the software. 2. Do not want to use...etc I want to know how we can do this. That list is supplied by the operating system. Applications do not get control when they are being uninstalled. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: All combinations of os and res ok?
Thanx Walt. I WAS wondering about the Google APIs I assume if one writes an app using maps, locations, etc, one needs the Google APIs. I'm just trying to get Real Simple single function apps working that test drawing on a canvas, loading and scaling a bitmap, popping up a toast when I click a button. You know, the basics. I think I have found that keeping only one project open in eclipse uses less swap file (need to get a bigger disk on this laptop). Any idea how big the AVD sd card needs to be to run a hello world? 8meg? On Feb 10, 12:11 am, Walt Armour waltarm...@gmail.com wrote: An error? You'll need to post more details (like the actual error) or else no one will be able to help. Here's a shot in the dark (since some folks at work hit this today): when you create the AVD you can target (for example) Android 1.6 - API Level 4 or Google APIs (Google Inc.) - API Level 4. Often you need the latter version to get the API support or else apps won't run (and possibly won't even install, not sure). On Tue, Feb 9, 2010 at 20:19, BobG bobgard...@aol.com wrote: I created an AVD with os level 2.1 and WVGA, but I get an error when I try to run the app on an AVD created with 2.1 and HVGA. Any illegal combos? All os levels do all resolutions? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 implement asking questions before uninstalling the apk
Thanks a lot. On Feb 11, 6:49 pm, Mark Murphy mmur...@commonsware.com wrote: Usually when ever we install some apk from market and then try to uninstall it we get set of questions like 1.Did not like the software. 2. Do not want to use...etc I want to know how we can do this. That list is supplied by the operating system. Applications do not get control when they are being uninstalled. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: Serial over Bluetooth
I've posted a nicely-formatted version of the code from the previous post here: http://www.anddev.org/viewtopic.php?p=35487#35487 -XCaf On Feb 11, 7:02 pm, XCaffeinated ssatn...@gmail.com wrote: Apologies for the lengthy post, but I wanted this to be at least semi- useful, and there is not a lot of info out there. I see that the OP is from awhile ago, but that this thread has been resurrected. I am currently using my Droid (firmware push: 2.0.1) to communicate to an ArduinoBT (Bluetooth) board via SPP (the ArduinoBT's default) using the well-known SPP UUID (0x1101 host side, and the UUID-extended version of 0x1101 on the client (Android) side; see the code below for the actual UUID). The ArduinoBT board uses a BlueGiga WT11 module and iWrap firmware/API. We currently have it interfaced to a hobby robot. *** Following pertains to Android 2.0 and up; there is no public Bluetooth API before 2.0 *** Given that the ArduinoBT comes out of the box set up for SPP, I configured our Android client application to do the same. I've commented the code, but you need to know something about Bluetooth to get the most out of it. I highly recommend Bluetooth Essentials for Programmers, available for free. On the Android side: the Android SDK doc, and the Bluetooth Chat Sample are excellent references. Before you run the client, you need to pair your robot controller with your Android device. It doesn't have to be connected, just paired. You can do the discovery/pairing from your handset's standard networking settings. You will need a PIN; Android requires authentication even if your robot controller doesn't (most controllers let you set this as an option). You will also need to enable Bluetooth. This is a brain-dead simple client, no threading, no receiving; all it does is send commands to our robot (modified a bit, since the OP only cares about the SPP communication material), and should be very easy to modify for various purposes. All that needs to be changed on this side is the MAC address. Enter the robot controller's MAC address in place of the XX:XX... string below. package com.example.thinbtclient; import java.io.IOException; import java.io.OutputStream; import java.util.UUID; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class ThinBTClient extends Activity { private static final String TAG = THINBTCLIENT; private static final boolean D = true; private BluetoothAdapter mBluetoothAdapter = null; private BluetoothSocket btSocket = null; private OutputStream outStream = null; //Well known SPP UUID (will *probably* map to RFCOMM channel 1 (default) if not in use); //see comments in onResume(). private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); private static String address = XX:XX:XX:XX:XX:XX; //== hardcode your robot (server) MAC address here... /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); if(D) Log.e(TAG, +++ ON CREATE +++); mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (mBluetoothAdapter == null) { Toast.makeText(this, Bluetooth is not available., Toast.LENGTH_LONG).show(); finish(); return; } if (!mBluetoothAdapter.isEnabled()) { Toast.makeText(this, Please enable your BT and re-run this program., Toast.LENGTH_LONG).show(); finish(); return; } if(D) Log.e(TAG, +++ DONE IN ON CREATE, GOT LOCAL BT ADAPTER ++ +); } @Override public void onStart() { super.onStart(); if(D) Log.e(TAG, ++ ON START ++); } @Override public void onResume() { super.onResume(); if(D) { Log.e(TAG, + ON RESUME +); Log.e(TAG, + ABOUT TO ATTEMPT CLIENT CONNECT +); } //When this returns, it will 'know' about the server, via it's MAC address. BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); //We need two things before we can successfully connect (authentication issues //aside): a MAC address, which we already have, and an RFCOMM channel. //Because RFCOMM channels (aka ports) are limited in number, Android doesn't allow //you to use them directly; instead you request a RFCOMM mapping based on a service //ID. In our case, we will use the well-known SPP Service ID. This ID is in UUID //(GUID to you Microsofties) format. Given