[android-developers] Re: Application looking stretched
Thanks for correcting me. Typing too fast - sorry. /Johan On Jul 27, 1:17 pm, Kostya Vasilyev kmans...@gmail.com wrote: Johan, I think you got it backwards. supports-screens android:anyDensity=*true*/ is the good value to use. If the app still looks ugly after this (and android:smallScreens and friends are set as well), it means that application's layouts have to be re-done with device-independent units. -- Kostya 27.07.2010 13:27, Johan Abramsson ?: supports-screens android:anyDensity=false -- Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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] Re: What is the best way to handle Images?
Hi, If someone knows please help me. Thanks Sohan Badaya On Thu, Jul 29, 2010 at 8:12 PM, Sohan badaya sohan.bad...@gmail.comwrote: Hi All, I wrote a application that load images from facebook and i show in lmageview, using this below code. InputStream object = myDataFromServer; Bitmap bmpImage=BitmapFactory.decodeStream(object); imageView.setImageBitmap(bmpImage); it works fine for me. But the trouble is when i run my application for a longer time, it gives me error, OutofMemoryError, and becuse of this error my application crash. so want to know is there any better way to handling images.please help me. Thanks, Sohan Badaya -- 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] Re: benchmarking /stress testing android applications
But...should Earth be invaded by multi-tentacled beings Android phones might lose market share to phones running OSes that can handle more than 2 fingers. On an equally serious note, if your App were to, say, run a web server that multiple phones can connect to then you might want to look at common Performance Testing tools like HP LoadRunner, JMeter, etc... -- 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] Re: What is the best way to handle Images?
if you are hanging onto a copy of the images have a look at SoftReference e.g. SoftReferenceBitmap myImage; This will automatically handle releasing the Bitmap if it's not in use or is taking up too much room. If you have a set of images the best approach is a hash map where the url of the image is the key. This might help - http://code.google.com/p/android-pinch/source/browse/trunk/src/com/nikkoaiello/mobile/android/WebImageView.java?r=7 Also try some housekeeping things like closing any streams. Ed On Jul 30, 12:42 am, Sohan badaya sohan.bad...@gmail.com wrote: Hi All, I wrote a application that load images from facebook and i show in lmageview, using this below code. InputStream object = myDataFromServer; Bitmap bmpImage=BitmapFactory.decodeStream(object); imageView.setImageBitmap(bmpImage); it works fine for me. But the trouble is when i run my application for a longer time, it gives me error, OutofMemoryError, and becuse of this error my application crash. so want to know is there any better way to handling images.please help me. Thanks, Sohan Badaya -- 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] Re: Speech Recogniser on SDK 2.2 gives Error Message
You should try running the app on a phone that supports speech to text. On Jul 30, 4:37 am, krish gvk.va...@gmail.com wrote: Hi, I am new to Android. I am using the SDK 2.2 and when i execute the speech demo app, i get the following error message Recogniser not found. I have read the previous posts on the same topic, but i could no resolve the same. Can you please provide me some inputs... Thanks -- 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] Re: How to delete the text messages based on the senders' number?
If you asked a specific question, you *may* get an answer (maybe 10% of the time), but basically asking to fix your app will not get an answer for certain. On Jul 29, 6:22 pm, Leonardo stone198...@gmail.com wrote: Hi, guys, I made a app to block some junk messages. That app would delete the messages from the senders specified in the ban list. That app works in a way, but has some defects, as follows, 1. Sometime it just doesn't work, missing the new message to delete. 2. Even if it works deleting the message, a notification sound and message still occur. Therefore, could any improvement be made to 100% block messages without any notifications? Please check the codes below, and see what I can do. Thank you. ==== import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.ContextWrapper; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.telephony.SmsMessage; import android.util.Log; import android.widget.Toast; public class MySMSReceiver extends BroadcastReceiver { private static final String mACTION = android.provider.Telephony.SMS_RECEIVED; private String str_numbers, current_number; private int killed; public static final String PREFS_NAME = LEONARDO_JUNKILLER_PREFS; private String[] numbers; Cursor cursor; @Override public void onReceive(Context context, Intent intent) { //get the banned numbers list from application's preference SharedPreferences settings = context.getSharedPreferences(PREFS_NAME, 0); str_numbers = settings.getString(NUMBERS, null); killed = settings.getInt(KILLED, 0); if (str_numbers == null) { return; } else { numbers = str_numbers.split(\\s+); for(String number:numbers) { number.trim(); } } //check if it is a message if (intent.getAction().equals(mACTION)) { // get the content from the intent Bundle bundle = intent.getExtras(); if (bundle != null) { Object[] myOBJpdus = (Object[]) bundle.get(pdus); SmsMessage[] messages = new SmsMessage[myOBJpdus.length]; for (int i = 0; i myOBJpdus.length; i++) { messages[i] = SmsMessage.createFromPdu((byte[]) myOBJpdus[i]); } //for each message in the intent, check if it is a junk message and delete it if so. for (SmsMessage currentMessage : messages) { // get the sender's number for that message current_number = currentMessage.getDisplayOriginatingAddress(); // if the number is in the ban list, then find and delete all of the received messages belonging to that number, including the new one and existing ones. if (toKill(current_number)) { cursor = context.getContentResolver().query( Uri.parse(content://sms/), new String[]{_id, thread_id, address}, address=\ + current_number + \, //address= + current_number, null, null); if (cursor.moveToFirst()) { do { Log.i(JUNKILLER, The message id: + cursor.getString(0) + ;address: + cursor.getString(2) + is deleted); Uri mUri = Uri.parse(content://sms/ + cursor.getString(0)); context.getContentResolver().delete(mUri, null, null); killed++;//count the deleted messages for a banned number. } while (cursor.moveToNext()); } cursor.close(); } } } } SharedPreferences.Editor editor = settings.edit(); editor.putInt(KILLED, killed); editor.commit(); } private boolean toKill(String number_check) { for (String number : numbers) { if (number_check.indexOf(number) = 0) { return true; } } return false; } }- Hide quoted text - - Show quoted text - -- 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] Re: Confirmation routine
a simple approach is to use the AlertDialog as AlertDialog.Builder bldr = new AlertDialog.Builder(this); bldr.setTitle(confirm) ; bldr.setMessage(place bid ?) ; bldr.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { ///code for YES } }); bldr.setNegativeButton(R.string.no, new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { // code for NO } }); bldr.show(); what was the reason you didnt like that approach ? -g On Jul 29, 8:05 pm, Frank Weiss fewe...@gmail.com wrote: I assume you want a blocking alert dialog like the MsgBox() function. This has been brought up before and basically no can do the way the Android UI thread works, AFAIK. The two natural android approaches: 1) An other activity that you start with startActivityForResult(), which can be themed as an alert dialog 2) An in-activity alert dialog whose callback changes the activity's state or completes the action you were hoping that the alert dilaog would block for. -- 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] Re: Multiple Back Button clicks needed to exit application
Used finish(); to end an activity On Jul 30, 10:32 am, Priyank priyankvma...@gmail.com wrote: Hi, In my current application design, I have an activity class application.java (which starts on launching the application), and it does not have a layout(UI screen). I call another class called servicebind.java from the onCreate method of my 1st class. here I bind to the local server (bindServer()). i call back the application class through an intent. Once I am back to my application class, I call my activity class called welcome.java which has a layout/UI. When I run this application, I am able to see the welcome screen. But the problem is, when I click on the back button, I get a black screen with just the title on top. I have to hit back button 3 times to exit the application. The reason I see from the logs is that, the 1st 2 activity classes (application.java and services.java) does not get destroyed unless I hit the back button. So the 1st time I hit back button, the welcome activity gets destroyed. the next back button destroys the servicebind class and final back destroys the application class. Is the reason because these classes dont have a UI to display in the onCreate method. I do not want to change my design where I bind the service in the servicebind class and call the welcome activity in the application class. can anyone please help me find a way to avoid pressing the back button multiple times to exit. Please let me know if you dont understand my question. Thanks, Priyank -- 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] Clarity on Wi-Fi Based application !!??
Hello All, I am trying to create an application based on Wi-Fi and i would need some suggestion on the same , The scenario am trying is,say, when a user with our android application enters a specific Wi-fi Hotspot, i need an activity to be invoked from my app. Basically I can have a service running as a part of my app and whenever i scan for that specific hot-spot i can call up the activity , BUT , i need to do the otherway round.. i mean instead of running a service in the mobile and utilizing its resource, i want the Wi-fi Hotspot to monitor and if the device is inside the vicinity it needs to invoke a notification from which the activity can be invoked... Few things that i would like to understand is I) When a wifi hot-spot is detected in our android phone what actually happens at the Wi-Fi Hot spot end ?? 2) When our device obtains an IP address from the wi-fi n/w will our device's unique ID or its equivalents be available at the wi-fi provider end ?? -- 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] Re: Unable to retrieve the GIVEN_NAME or FAMILY_NAME from database
You appear to be using a combination of Android 1.5 and Android 2.0 mechanisms. Ie passing Android 2.0 constants to an Android 1.5 mechanism. Android 1.5 Uri uri = Phone.CONTENT_URI; Phone.CONTACT_ID, Phone.DISPLAY_NAME, Phone.NUMBER, Phone.TYPE, Phone.LABEL, Android 2.0 ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME, But I could be wrong. The ContactsContract provider is pretty unclear IMHO. I think you'll gain some mileage from: http://stackoverflow.com/questions/1721279/how-to-read-contacts-on-android-2-0 On Jul 30, 7:47 am, j jac...@gmail.com wrote: While iterating through my contacts database, the firstName (GIVEN_NAME) always returns an integer (0, 1, 2, ... 7) while the lastName (FAMILY_NAME) always returns null. I am running on HTC Incredible. What am I doing wrong? Uri uri = Phone.CONTENT_URI; String[] projection = new String[] { Phone.CONTACT_ID, Phone.DISPLAY_NAME, Phone.NUMBER, Phone.TYPE, Phone.LABEL, ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME, ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME }; Cursor managedCursor = mContext.getContentResolver() .query(uri, projection, null, null, null); if(managedCursor == null) { Log.w(LOG_TAG, managedCursor null); return null; } while(managedCursor.moveToNext()) { long contactId = managedCursor.getLong( managedCursor.getColumnIndex(Phone.CONTACT_ID)); String name = managedCursor.getString( managedCursor.getColumnIndex(Phone.DISPLAY_NAME)); String firstName = managedCursor.getString( managedCursor.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME));// getFirstNameFromId(contactId); Log.d(LOG_TAG, firstName: + firstName); String lastName = managedCursor.getString( managedCursor.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME));// getLastNameFromId(contactId); Log.d(LOG_TAG, lastName: + lastName); } -- 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] problem using listview...
am trying to show a list view in my layout .but not getting why it is not showing the listview here is my code please guide me...i know am missing something but not getting it what.!!! public class ShowNumberList extends Activity{ ListView list; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.specialnolayout); list=(ListView)findViewById(R.id.ListView01); list.setAdapter(new ArrayAdapterString(this,R.layout.specialnolayout, numbers)); //numbers having some numbers which i am taking from databse. } //*layout file*::named specialnolayout LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical ListView android:id=@+id/ListView01 android:choiceMode=singleChoice android:layout_width=fill_parent android:layout_height=fill_parent /ListView TextView android:text=@+id/TextView11 android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content/TextView /LinearLa -- A N K ! T.. -- 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] Clarity on Wi-Fi Based application !!??
Since your intent is to launch something on the phone, I don't see why you would want to detect connection on the Wifi router side. In your app, watch for broadcast actions defined here: http://developer.android.com/reference/android/net/wifi/WifiManager.html In particular, NETWORK_STATE_CHANGED_ACTION is fired whenever Wifi connection is established or broken. As for automatically invoking an activity - I would suggest you use a Notification, which would launch an activity when selected. Displaying an Activity in the middle of whatever the phone user is doing is just plain wrong. Finally, if you still want to detect established connections on the router/hotspot side, you'd need to add something to the router's firmware. More specifically, you'd need to add code or scripts to its DHCP server implementation. This might be easy with some routers (e.g. running DD-WRT or the like), and much more difficult, or impossible, with others. If you did, you'd be able to use the phone's MAC address as the unique identifier you require. However, without implementing yet another router / phone protocol, you'll never know if a connecting device is Android based. -- Kostya 30.07.2010 11:37, StillALearner пишет: Hello All, I am trying to create an application based on Wi-Fi and i would need some suggestion on the same , The scenario am trying is,say, when a user with our android application enters a specific Wi-fi Hotspot, i need an activity to be invoked from my app. Basically I can have a service running as a part of my app and whenever i scan for that specific hot-spot i can call up the activity , BUT , i need to do the otherway round.. i mean instead of running a service in the mobile and utilizing its resource, i want the Wi-fi Hotspot to monitor and if the device is inside the vicinity it needs to invoke a notification from which the activity can be invoked... Few things that i would like to understand is I) When a wifi hot-spot is detected in our android phone what actually happens at the Wi-Fi Hot spot end ?? 2) When our device obtains an IP address from the wi-fi n/w will our device's unique ID or its equivalents be available at the wi-fi provider end ?? -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] Re: No plan to support Netbeans?
I know what I mean, Google as no rights to call Android Java Programming Language since dalvik was an escamotage to don't pay any fees to Sun, Android is NOT Java. To Xavier: thanks for the bad news, anyway thanks for the answer. On Jul 29, 12:40 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 29 July 2010 12:34, sblantipodi perini.dav...@dpsoftware.org wrote: I know that Android isn't Java You know, you say? What about checking specs first:http://developer.android.com/guide/basics/what-is-android.html -- 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: Text blinking effect TextView
Hi, Thanks for your answer! But I don't know using ViewFlipper to make blink effect for Text in the TextView. Can you give me the demo code? Thanks! Best, Nguyen, 2010/7/30 Zsolt Vasvari zvasv...@gmail.com Probably not easily. If I were to do something like this, I'd start with the source code to ViewFlipper and modify it. On Jul 30, 12:21 am, Huynh Ngoc Vu Nguyen vunguye...@gmail.com wrote: Hi all, Please let me know! How to make text blinking effect in TextView? I am using Android SDK 2.2. Thanks, Best regards, Nguyen, -- Huynh Ngoc Vu Nguyen Add: Duy Xuyên - Quang Nam E-mail: vunguye...@gmail.com Phone: 0935102789 -- 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 -- Huynh Ngoc Vu Nguyen Add: Duy Xuyên - Quang Nam E-mail: vunguye...@gmail.com Phone: 0935102789 -- 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] Re: Application is not licensed...
no one have an idea on why I got this problem? On Jul 29, 1:45 am, Trevor Johns trevorjo...@google.com wrote: It doesn't need to be published, but it does need to be uploaded to Android Market. (It can be in the unpublished or draft state.) This is because Android Market needs a way to look up the RSA key for the application, as well as the list of authorized testers. (Technical note: We return ERROR_NOT_MARKET_MANAGED if we don't recognize the package name. If you really wanted, you could write a custom policy that treated this as a LICENSED response for testing purposes.) -- Trevor Johns Google Developer Programs, Androidhttp://developer.android.com On Wed, Jul 28, 2010 at 3:43 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: Do you know if the application must be published to try LVL on the emulator? My application is saved, but never published. On Jul 29, 12:01 am, Trevor Johns trevorjo...@google.com wrote: Check the logcat output, there should be some hints in there to tell you why the license check is failing. -- Trevor Johns On Wed, Jul 28, 2010 at 10:27 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: Hi all, I'm trying the code sample bundled with LVL library... I builted that code into my software changing the public key with the one taken from my developer console. Now when the MainActivity start, code without modification from the initial sample, it tell me that the application is not licensed also if I setted the test response to licensed in my profile settings from developer console... Any idea? Thanks. -- 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 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.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
[android-developers] Compiling and obfuscating by command line...
Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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] create a New File ( to be sent ) from a Bitmap
Hi, I have a bitmap picPrev which I got from my online server. I want to turn it into a file so I can send it. I was exploring this method: try { FileOutputStream fos = super.openFileOutput(output.jpg, MODE_WORLD_READABLE); picPrev.compress(CompressFormat.JPEG, 75, fos); fos.flush(); fos.close(); } catch (Exception e) { Log.e(MyLog, e.toString()); } But the FileOutputStream fos = super.openFileOutput(output.jpg, MODE_WORLD_READABLE); command is not working... Is there anyway to convert a bitmap to stream ? Or any other way to create a New File from a Bitmap ? I also have the opportunity to use the URL on which the file is placed. Maybe an HTTP connection to a php file that will return a header with the file location? Can new File use that location url? Please give me some feedback on this. I could really use some help. Thank you very much -- 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] Re: Android Socket Communication
How can I run two different apk's simultaneously so that android does not kill any one of those app's ? Thanks, Arjun. Hi Arjun, Start App 1 , press back ( App 1 ) will be stopped Start App 2, hold Home until you see a Windows-Tab-like-History Window In the history you should see App 1 .. go their .. this makes the switch to App 1 .. App 2 will be still running. With Hold Home you can switch now between App 1 und App 2 or other Apps Good luck ! Frank -- 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] Establish connection HTTPS with web service using soap
Hi! I want to connect to my web service (.net) via HTTPS, it works perfectly with http but i can 't make it work over https, the cause is that it verifies the certificate i wan't to simulate the fact that it's validated ok i found a topic about it and i tried to use the code but it doesn't work with soap * try * { SoapObject request = *new* SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = *new*SoapSerializationEnvelope(SoapEnvelope. *VER11*); envelope.dotNet=*true*; envelope.setOutputSoapObject(request); HttpURLConnection http = *null*; URL url=*new* URL(URL); *if* (url.getProtocol().toLowerCase().equals(https)) { *trustAllHosts*(); HttpsURLConnection https = (HttpsURLConnection) url.openConnection(); https.setHostnameVerifier(*DO_NOT_VERIFY*); http = https; } *else* { http = (HttpURLConnection) url.openConnection(); } HttpTransportSE androidHttpTransport = new HttpTransportSE(http.toString()); androidHttpTransport.call(SOAP_ACTION, envelope); SoapObject result = (SoapObject)envelope.getResponse(); } *catch*(Exception e){} Can any one help me to solve this issue. Thx -- 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] create a New File ( to be sent ) from a Bitmap
I found the JoshKraker way to do this: Saving the file first to the phone: FileOutputStream Os = getAppContext().openFileOutput(Img + _PicId + .jpg, Context.MODE_WORLD_READABLE); Bm.compress(Bitmap.CompressFormat.JPEG, 100, Os); Os.close(); Then getting the Uri to send to the Chooser intent: File F = getAppContext().getFileStreamPath(Img + _PicId + .jpg); Uri U = Uri.fromFile(F); Intent i = new Intent(Intent.ACTION_SEND); i.setType(image/jpg); i.putExtra(Intent.EXTRA_STREAM, U); getContext().startActivity(Intent.createChooser (i,Send Image To:)); But I'd like to do this without having to save the bitmap.. I get my image from my server and I want users to be able to share it with somebody else. On Jul 30, 2010, at 9:41 AM, Pedro Teixeira wrote: Hi, I have a bitmap picPrev which I got from my online server. I want to turn it into a file so I can send it. I was exploring this method: try { FileOutputStream fos = super.openFileOutput(output.jpg, MODE_WORLD_READABLE); picPrev.compress(CompressFormat.JPEG, 75, fos); fos.flush(); fos.close(); } catch (Exception e) { Log.e(MyLog, e.toString()); } But the FileOutputStream fos = super.openFileOutput(output.jpg, MODE_WORLD_READABLE); command is not working... Is there anyway to convert a bitmap to stream ? Or any other way to create a New File from a Bitmap ? I also have the opportunity to use the URL on which the file is placed. Maybe an HTTP connection to a php file that will return a header with the file location? Can new File use that location url? Please give me some feedback on this. I could really use some help. Thank you very much -- 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 Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Speech Recogniser on SDK 2.2 gives Error Message
Hi James, Thank you for the help. Actually, I am developing app on SDK. Is there no way to get the speech recognition on the SDK. Once again thank you for the help Vamsi On Jul 30, 11:54 am, jamesc jame...@gmail.com wrote: You should try running the app on a phone that supports speech to text. On Jul 30, 4:37 am, krish gvk.va...@gmail.com wrote: Hi, I am new to Android. I am using the SDK 2.2 and when i execute the speech demo app, i get the following error message Recogniser not found. I have read the previous posts on the same topic, but i could no resolve the same. Can you please provide me some inputs... Thanks- Hide quoted text - - Show quoted text - -- 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] Re: Speech Recogniser on SDK 2.2 gives Error Message
On Jul 30, 11:54 am, jamesc jame...@gmail.com wrote: You should try running the app on a phone that supports speech to text. On Jul 30, 4:37 am, krish gvk.va...@gmail.com wrote: Hi, I am new to Android. I am using the SDK 2.2 and when i execute the speech demo app, i get the following error message Recogniser not found. I have read the previous posts on the same topic, but i could no resolve the same. Can you please provide me some inputs... Thanks- Hide quoted text - - Show quoted text - -- 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] Re: Clarity on Wi-Fi Based application !!??
Thanks for the early reply Kostya, Since your intent is to launch something on the phone, I don't see why you would want to detect connection on the Wifi router side. Well My Idea was to i) Use the phone resource to the minimal ii) to have control on when to invoke an activity from the server end.. I thought there would be more dynamism from the server side. Let me understand if am missing out something. I would suggest you use a Notification, which would launch an activity when selected , Displaying an Activity in the middle of whatever the phone user is doing is just plain wrong. Completely agreed. If you did, you'd be able to use the phone's MAC address as the unique identifier you require. is it possible to get the MAC address of our phone , is android.provider.Settings.System.ANDROID_ID as the MAC address you wr talking about , or is there any physical id which is diff from this android_id -- 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] Re: R.java file of my project is deleted.......how to get it back
In eclipse, the R.Java seems to delete if you save too many files at one go. if you highlight the file in package expolorer, then right click propeties, select builders, unclick all the builders and OK. Then go back in and re-click the items again. On Jul 29, 1:29 pm, Asad Ali syedasadalib...@gmail.com wrote: On Thu, Jul 29, 2010 at 5:19 PM, A N K ! T ankit.awasth...@gmail.comwrote: hey R.java has deleted autometically...how to get it back -- A N K ! T.. simple compile the code it will create R.java for you (Goto Project - Clean Build ) Have a Good Time, Syed Asad Ali, -- 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
[android-developers] flash audio problems
Hi All flash audio is repeating twice in android 2.2. Is this because of processor limitation or flash Bug. Regards Kiran -- 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 use preference objects in TabActivity
In general, preference objects can be used in PreferenceActivity. Now I need to use these objects in TabActivity, how to implement this feature? Thanks! - Jiang -- 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] NPE with Uri, ACTION_MEDIA_CAPTURE and onActivityResult when photo taken in landscape orientation
Hi, I get NPE's for a Uri in the callback in onActivityResult I instantiate on launching the on-board camera activity ONLY WHEN the Nexus One (2.2) is used to take a photo in landscape orientation. public class Photo_Activity extends Activity { private final static int TAKE_PHOTO = 2; private Intent cameraIntent; private Uri takenPhotoUri; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout ll = (LinearLayout)findViewById(R.id.message_layout); cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Button launchCam = new Button(this); launchCam.setText(Take a photo now); ll.addView(launchCam); launchCam.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ContentValues values = new ContentValues(); String filename = String.valueOf(System.currentTimeMillis()) ; values.put(Images.Media.TITLE, filename); values.put(Images.Media.DATE_ADDED, System.currentTimeMillis()); values.put(Images.Media.MIME_TYPE, image/ jpeg); takenPhotoUri = Photo_Activity.this.getContentResolver().insert(Images.Media.EXTERNAL_CONTENT_URI, values); Photo_Activity.this.cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, takenPhotoUri); startActivityForResult (Photo_Activity.this.cameraIntent, Photo_Activity.TAKE_PHOTO); } }); } protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); // intent is null switch(requestCode) { case TAKE_PHOTO: if (resultCode == RESULT_OK) { Log.d(TAG, takenPhotoUri: + Photo_Activity.this.takenPhotoUri.toString()); //NPE HERE when photo taken in landscape orientation } break; } } } A workaround is to instantiate the Uri in onCreate(), but if the user then does not proceed to take a photo from this activity (e.g. does not press the button launch camera, presses HOME etc.) an empty jpeg is created on the SD card and shown in the gallery, which is ugly and cluttering. Has anyone seen this before? What is the recommended workaround? I would say this is a bug. Report it? Thanks -- 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] Intent for following a user on Twitter?
I want to provide an easy way for my users to follow my app's Twitter account. Is this possible using the Intents system? -- 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] Intent for following a user on Twitter?
On Fri, Jul 30, 2010 at 6:17 AM, Mark Carter mjc1...@googlemail.com wrote: I want to provide an easy way for my users to follow my app's Twitter account. Is this possible using the Intents system? You would have to ask the author of a Twitter application that question. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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] Binder is leaked by binding to a service
Hello, I made a code for my understanding of Android Service class. It has just a single Activity and Service in apk. Service is the same as the sample code of API reference as below; http://developer.android.com/intl/ja/reference/android/app/Service.html#LocalServiceSample A client side is an Activity based on the above sample, and just added the following code; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.local_service_tset); CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox); checkBox.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { CheckBox cb = (CheckBox) v; if (cb.isChecked()) { doBindService(); } else { doUnbindService(); } } }); } My sample application has a check box which starts(binds)/unbind to the local service on a single process. The local service instance is created by every bind request (and destroyed by every unbind). If I press the button repeatedly, then LocalService$LocalBinder is leaked!! The problem is not resolved even If I set an obtained binder to null (like below). } else { doUnbindService(); + mBoundService = null; } Please help! How to resolve this problem? -- 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] Intent for following a user on Twitter?
I was wondering if there might be a standard... On 30 July 2010 12:20, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jul 30, 2010 at 6:17 AM, Mark Carter mjc1...@googlemail.com wrote: I want to provide an easy way for my users to follow my app's Twitter account. Is this possible using the Intents system? You would have to ask the author of a Twitter application that question. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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
[android-developers] Re: NPE with Uri, ACTION_MEDIA_CAPTURE and onActivityResult when photo taken in landscape orientation
Addendum: This only happens if the orientation of the camera activity is changed wrt the orientation of my preceding Photo_Activity. I.e. the NullPointerException only occurs when the user changes the orientation of the phone when the on-board camera activity is present. Is it because it's destroying my Photo_Activity (It's launchMode:singleTask)? On Jul 30, 11:12 am, Joel joelefisc...@googlemail.com wrote: Hi, I get NPE's for a Uri in the callback in onActivityResult I instantiate on launching the on-board camera activity ONLY WHEN the Nexus One (2.2) is used to take a photo in landscape orientation. -- 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] Re: NPE with Uri, ACTION_MEDIA_CAPTURE and onActivityResult when photo taken in landscape orientation
Addendum2: No, this also happens with launchMode:standard. On Jul 30, 11:37 am, Joel joelefisc...@googlemail.com wrote: Is it because it's destroying my Photo_Activity (It's launchMode:singleTask)? -- 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] Re: Binder is leaked by binding to a service
Binding to a service is asynchronous. You should maybe disable the button that binds and unbinds until you are sure that you are actually, respectively, bound and unbound. You do that by keeping track of when the ServiceConnection object's onServiceConnected() and onServiceDisconnected() functions are called. Before that, you are not really connected, or disconnected, you are just in the process of being connected or disconnected. On Jul 30, 6:22 am, Mogimo mogimo...@gmail.com wrote: Hello, I made a code for my understanding of Android Service class. It has just a single Activity and Service in apk. Service is the same as the sample code of API reference as below;http://developer.android.com/intl/ja/reference/android/app/Service.ht... A client side is an Activity based on the above sample, and just added the following code; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.local_service_tset); CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox); checkBox.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { CheckBox cb = (CheckBox) v; if (cb.isChecked()) { doBindService(); } else { doUnbindService(); } } }); } My sample application has a check box which starts(binds)/unbind to the local service on a single process. The local service instance is created by every bind request (and destroyed by every unbind). If I press the button repeatedly, then LocalService$LocalBinder is leaked!! The problem is not resolved even If I set an obtained binder to null (like below). } else { doUnbindService(); + mBoundService = null; } Please help! How to resolve this problem? -- 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] Re: Launch application or service from html link?
is it really working ? On Jun 19, 7:24 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 18, 2010 at 9:18 PM, Dianne Hackborn hack...@android.com wrote: You can actually build a URI to launch pretty much any intent; the browser always adds the BROWSABLE category, though, so any activity receiving it must have specified that. To clarify: I suspect that the easiest way to determine the proper Uri syntax is to create your desired Intent in Java, call toUri(Intent.URI_INTENT_SCHEME) on it, and dump that value (e.g., logcat), to get everything right, then put that in your Web page. The rules for encoding these Uri values are a bit cryptic, looking at the source code for Intent. -- Mark Murphy CommonsWare mmur...@commonsware.comhttp://commonsware.com -- 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: Clarity on Wi-Fi Based application !!??
Hi, Registering to receive Wifi notifications (either via the app manifest, or registering a receiver in a service) is not inherently inefficient. There isn't anything special about them - so all the usual rules regarding process management apply. Your process will get killed if necessary, subject to low memory conditions, etc. A MAC address is just that - a MAC address, in this case, the Wifi router will see the address of the phone's Wifi adapter. It has nothing to do with any other IDs, such as the cellular network's IMEI, etc. But it's guaranteed to be unique. The central issue is where exactly (phone vs. router) you are able to run the necessary code. It's easy to do on the phone, difficult or impossible on the Wifi router. Unless the router is under your control, and is an old PC running Linux with hostapd (or something like that), I wouldn't count on being able to run your code on it. -- Kostya 30.07.2010 13:19, StillALearner пишет: Thanks for the early reply Kostya, Since your intent is to launch something on the phone, I don't see why you would want to detect connection on the Wifi router side. Well My Idea was to i) Use the phone resource to the minimal ii) to have control on when to invoke an activity from the server end.. I thought there would be more dynamism from the server side. Let me understand if am missing out something. I would suggest you use a Notification, which would launch an activity when selected , Displaying an Activity in the middle of whatever the phone user is doing is just plain wrong. Completely agreed. If you did, you'd be able to use the phone's MAC address as the unique identifier you require. is it possible to get the MAC address of our phone , is android.provider.Settings.System.ANDROID_ID as the MAC address you wr talking about , or is there any physical id which is diff from this android_id -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] My Eclipse 3.5 always lag and have to force close - why?
Hi, I'm on Win7 32-bit with 4GB RAM. Why my Eclipse always become so slow until it take so long to response to my mouse or keyboard. I have to force terminate it, restart and use it for like 20min and repeat the same thing again... Anyone facing this or have experience dealing with it? Regards. -- 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] Upload large files on the web server on android
Hi I want to upload files on a web server in my android app.Currently i am able to upload files around 5mb from the device but more than this gives a outofmemory exception and also makes app very unstable. i am looking for a method using which we can upload the data in the app background plus of bigger size. Any tutorials/ code is highly appreciated. thanks in advance. -- 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] Pinch in , Pinch-out Zoom in android
HI, I need to implement the pinch in and pinch out zoom on a list adapter. I have a list of contacts sorted alphabetically. Using pinch-in the list has to be zoomed out(shrinked).. and in Pinch-Out the list has to be Zoom-in (enlarged or expanded)..i tried with onTouchListener and onTouch() event but it looks very complex... and In my perspective i think we have to find the velocity ( distance between the two fingers and how fast the user does pinch in or out i mean the time) since velocity =distance/time... i am not sure does my perspective is correct So pleas e suggest me how I can Achieve the expected feature. can any on please help me out from this.. -- 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] Why can't I put a ProgressDialog in onClick() other than onCreate();
Hi, I try to call inside onCreate() it is ok but not onClick(). How to make it work? -- 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] Re: Establish connection HTTPS with web service using soap
* I forgot to mention the code that i use to ignore the certificate. Do u have any ideas to help me out. final* *static* HostnameVerifier *DO_NOT_VERIFY* = *new* HostnameVerifier() { *public* *boolean* verify(String hostname, SSLSession session) { *return* *true*; } }; /** * Trust every server - *dont* check for any certificate */ *private* *static* *void* trustAllHosts() { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = *new* TrustManager[] { *new*X509TrustManager() { *public* java.security.cert.X509Certificate[] getAcceptedIssuers() { *return* *new* java.security.cert.X509Certificate[] {}; } *public* *void* checkClientTrusted(X509Certificate[] chain, String authType) *throws* CertificateException { } *public* *void* checkServerTrusted(X509Certificate[] chain, String authType) *throws* CertificateException { } } }; -- 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] Re: Compiling and obfuscating by command line...
Ok, since I founded no way to automatically do it with netbeans now I'm trying the ant way posted here: http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/ previously in this thread. I followed all the instructions but I get this error from ant o_O taskdef class com.android.ant.SetupTask cannot be found Any idea? On Jul 30, 10:36 am, sblantipodi perini.dav...@dpsoftware.org wrote: Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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] My Eclipse 3.5 always lag and have to force close - why?
I have the same issue On Jul 30, 2010 7:22 AM, Mystique joven.ch...@gmail.com wrote: Hi, I'm on Win7 32-bit with 4GB RAM. Why my Eclipse always become so slow until it take so long to response to my mouse or keyboard. I have to force terminate it, restart and use it for like 20min and repeat the same thing again... Anyone facing this or have experience dealing with it? Regards. -- 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
[android-developers] adding audio to a game - triggerClip for SFX
Hi all, I'm using JetPlayer in order to add some audio to a game I'm developing. Using the examples in JetBoy I have managed to create a .jet file using JetCreator and play an audio track. So far so good. However, I'm having some trouble playing sound effects for my game. I have a set of very small .mid files, each containing a shooting sound for a different weapon. However, when I try to add the .mid file in JetCreator I get The segment starting and ending times are illogical I'm guessing this is because the clip is too short and starting/ending M/B/T are both 1/1/0 ? The idea was to add these SFXs and then use triggerClip to play them. My question is, background music aside (I can make that work) what's the best way to add SFX in a game so that you can trigger them at any point programmaticaly? (i.e. have something like playShootingSFX1(), playShootingSFX2(), etc. that will go and play the SFX immediately). thx in advance, k. -- 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] Re: My Eclipse 3.5 always lag and have to force close - why?
It has unfortunately been like that for ages (if you are modifying e.g. layout files). It doesn't happen if you only write code. It looks like the Android plugin is leaking resources, and fast. On 30 Juli, 13:22, Mystique joven.ch...@gmail.com wrote: Hi, I'm on Win7 32-bit with 4GB RAM. Why my Eclipse always become so slow until it take so long to response to my mouse or keyboard. I have to force terminate it, restart and use it for like 20min and repeat the same thing again... Anyone facing this or have experience dealing with it? Regards. -- 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] Re: Compiling and obfuscating by command line...
Just say no to obfuscation. On Jul 30, 3:36 am, sblantipodi perini.dav...@dpsoftware.org wrote: Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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] My Eclipse 3.5 always lag and have to force close - why?
You guys running Java update 21 by any chance? If so, revert back to 20 - someone posted within last week that update 21 has issues with Eclipse. -- Kostya 30.07.2010 16:36, Kwan Cheng ?: I have the same issue On Jul 30, 2010 7:22 AM, Mystique joven.ch...@gmail.com mailto:joven.ch...@gmail.com wrote: Hi, I'm on Win7 32-bit with 4GB RAM. Why my Eclipse always become so slow until it take so long to response to my mouse or keyboard. I have to force terminate it, restart and use it for like 20min and repeat the same thing again... Anyone facing this or have experience dealing with it? Regards. -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-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 -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] add uses-permission to application via Java code
HI all, I want to add uses-permission via programatically .I want to telephone number of the device.For that i need to access the phone state.But i need to add that permission only with Java code at runtime. Is it Possible to do so. (or) Can you suggest any alternative way to read the telephone number .? -- 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] Correct way to kill the application
HI all, I s there any way to kill the entire application at once.Not using with finish() or system.exit() ..all these two will kill the activity ,but not the appication. Is there any way to kill the entire application from any activity .Please help me . -- 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] add uses-permission to application via Java code
On Fri, Jul 30, 2010 at 14:09, RamaMohan rama.mohan...@gmail.com wrote: HI all, I want to add uses-permission via programatically .I want to telephone number of the device.For that i need to access the phone state.But i need to add that permission only with Java code at runtime. Is it Possible to do so. (or) Can you suggest any alternative way to read the telephone number .? Specify it the manifest. That's the purpose of it, warn the user about the permissions the application will need (among other things) There's no way to do that programatically. -- 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] people.NUMBER is deprecated....what else i can use in place of it
am trying to fetch phone contact.bu when i am using people.Number it is showing people.Number is deprecated.then wot should i use. -- A N K ! T.. -- 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] Correct way to kill the application
On Fri, Jul 30, 2010 at 14:13, RamaMohan rama.mohan...@gmail.com wrote: HI all, I s there any way to kill the entire application at once.Not using with finish() or system.exit() ..all these two will kill the activity ,but not the appication. Is there any way to kill the entire application from any activity .Please help me . Why would you do that? You shouldn't terminate the application yourself, the system will do that for you. I really think you should read this: http://android-developers.blogspot.com/2010/04/multitasking-android-way.html -- 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] ActivtyGroup - problem returning to the root activity.
Hi All, Probably not known to me but i do not find this happening with Android-ActivityGroup I have a service-bind() in the root activity of a activitygroup and in the same frame two redirector buttons for two activities. *public class RemoteServiceBinding extends ActivityGroup {* * localActMngr = getLocalActivityManager(); setContentView(R.layout.remote_service_binding); Button activity1 = (Button)findViewById(R.id.activity1); Button activity2 = (Button)findViewById(R.id.activity2); activity1.setOnClickListener(activity1Listener); activity2.setOnClickListener(activity2Listener); initService(); * *}* on click of each i pass the current service-passed data and the same gets updated there. My problem starts with the back-key pressed on each of the invoked activities. Whenever i press the back button i do not come to the root activity which started the activity.To top it the service also shuts down. *public boolean onKeyDown(int keyCode, KeyEvent event) { Activity current = localActMngr ().getCurrentActivity(); if (current != null) { Intent i = new Intent(getApplicationContext(),RemoteServiceBinding.class); localActMngr.startActivity(, i); return current.onKeyDown(keyCode, event);*/ }* *return false; }* If somebody has an idea,please help. -- Regards, -- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,' (il),-'' (li),' ((!.-' KKK 9241482044 -- 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] Re: What is the best way to handle Images?
Use the BitmapFactory.Options to create the images. In the BitmapFactory.Options, you can scale your image so that it will consume low memory. On Jul 30, 11:50 am, Ed edscha...@gmail.com wrote: if you are hanging onto a copy of the images have a look at SoftReference e.g. SoftReferenceBitmap myImage; This will automatically handle releasing the Bitmap if it's not in use or is taking up too much room. If you have a set of images the best approach is a hash map where the url of the image is the key. This might help -http://code.google.com/p/android-pinch/source/browse/trunk/src/com/ni... Also try some housekeeping things like closing any streams. Ed On Jul 30, 12:42 am, Sohan badaya sohan.bad...@gmail.com wrote: Hi All, I wrote a application that load images from facebook and i show in lmageview, using this below code. InputStream object = myDataFromServer; Bitmap bmpImage=BitmapFactory.decodeStream(object); imageView.setImageBitmap(bmpImage); it works fine for me. But the trouble is when i run my application for a longer time, it gives me error, OutofMemoryError, and becuse of this error my application crash. so want to know is there any better way to handling images.please help me. Thanks, Sohan Badaya -- 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] Re: Compiling and obfuscating by command line...
Ok, thanks for the suggestions, any other idea? :) On Jul 30, 2:59 pm, DanH danhi...@ieee.org wrote: Just say no to obfuscation. On Jul 30, 3:36 am, sblantipodi perini.dav...@dpsoftware.org wrote: Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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: Compiling and obfuscating by command line...
Well, how about going native? (NDK) That should be somewhat more challenging than decompiling java. Good luck / Jonas On 07/30/2010 04:11 PM, sblantipodi wrote: Ok, thanks for the suggestions, any other idea? :) On Jul 30, 2:59 pm, DanHdanhi...@ieee.org wrote: Just say no to obfuscation. On Jul 30, 3:36 am, sblantipodiperini.dav...@dpsoftware.org wrote: Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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] Help Needed Getting JSON to Jersey Web Service and Consuming it
Hi, I've just recently started out with Android development, and have progressed to the point where I have written a very basic Hello World Jersey RESTful web service, and successfully called it from within my Android App. What I want to do now though, is send a new user record (just name and password for now) to a web service in JSON format. I can create my JSON in the Android app just fine, but I don't know how to get it into the HTTP Request in such a way that the corresponding web service that @Consumes JSON can get at it. So, this is how far I've got: 1) Create Android App User object...(Tick: done that) 2) Turn that into JSON...(Tick: done that) 3) Put it on the HTTP request.(Stuck here! Help!) 4) Call the web service...(Tick: done that) 5) Web service retrieve JSON from request...(Stuck here! Help!) 6) Parse the JSON into server side User object and deal with as I see fit...(Don't worry people, I'll be fine with this bit, thanks!) 7) Profit! ;) Guys and Girls, I really appreciate any help given, you dear, dear kind souls! Cheers, James -- 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] Why can't I put a ProgressDialog in onClick() other than onCreate();
On Fri, Jul 30, 2010 at 6:54 AM, Mystique joven.ch...@gmail.com wrote: How to make it work? Do it correctly. Unless you post more information, like what code you're using in onClick (like onClick of what?), and why it's not OK, you're not going to get any better help than that. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Multiple Back Button clicks needed to exit application
yeah,the welcome activity has the reference of the application activity, you can call activity.finish() of the application, and there you can overide the finish function of the application, make destory the servicebind. Hope it could be helpful. On Fri, Jul 30, 2010 at 3:33 PM, StillALearner k.mad...@gmail.com wrote: Used finish(); to end an activity On Jul 30, 10:32 am, Priyank priyankvma...@gmail.com wrote: Hi, In my current application design, I have an activity class application.java (which starts on launching the application), and it does not have a layout(UI screen). I call another class called servicebind.java from the onCreate method of my 1st class. here I bind to the local server (bindServer()). i call back the application class through an intent. Once I am back to my application class, I call my activity class called welcome.java which has a layout/UI. When I run this application, I am able to see the welcome screen. But the problem is, when I click on the back button, I get a black screen with just the title on top. I have to hit back button 3 times to exit the application. The reason I see from the logs is that, the 1st 2 activity classes (application.java and services.java) does not get destroyed unless I hit the back button. So the 1st time I hit back button, the welcome activity gets destroyed. the next back button destroys the servicebind class and final back destroys the application class. Is the reason because these classes dont have a UI to display in the onCreate method. I do not want to change my design where I bind the service in the servicebind class and call the welcome activity in the application class. can anyone please help me find a way to avoid pressing the back button multiple times to exit. Please let me know if you dont understand my question. Thanks, Priyank -- 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
Re: [android-developers] How to use preference objects in TabActivity
On Fri, Jul 30, 2010 at 4:36 AM, Jiang webs...@yahoo.cn wrote: Now I need to use these objects in TabActivity, how to implement this feature? Easiest answer: don't. Use them in Preference Activity where they're meant to be used. Second option, look at Preference Screen and see what you can do with that. Or roll your own preference-like activity that can be put in a tab. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Froyo -- How to detect that my application has been killed?
Do you mean how to kill the service when you want to kill the process, that is , the host of service? On Fri, Jul 30, 2010 at 11:15 AM, Dianne Hackborn hack...@android.comwrote: Applications can't kill services with this. They can only kill background processes, which the OOM killer is free to kill at any time anyway. On Thu, Jul 29, 2010 at 6:37 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: On Froyo, we found that some new Task Manager apps are now using the ActivityManager.killBackgroundProcesses() to kill apps. When this happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired. How can I find out that my application has been killed? I tried to start a service, and I do see this message printed in logcat: W/ActivityManager( 2426): Scheduling restart of crashed service com.example.android.apis/.app.RemoteService in 2ms However, the service is never restarted as advertised, if the app is killed using the killBackgroundProcesses API. (If I go into adb shell and kill the service process, the service will indeed be restarted ...) This looks like a bug anyway, because the notification created by the app is no longer removed like in eclair (the StatusBarService, and a bunch of other system services, depend on the Intent.ACTION_PACKAGE_RESTARTED broadcast). Thanks -- 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 -- 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.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
[android-developers] Re: NPE with Uri, ACTION_MEDIA_CAPTURE and onActivityResult when photo taken in landscape orientation
--SOLVED-- This is actually caused by my Photo_Activity being destroyed and created again just before the callback from the on-board camera activity when the orientation of the camera activity is changed. Fix is to set screenOrientation=portrait (or landscape). Then my Photo_Activity is not destroyed and the reference to the Uri is maintained. For my application, this workaround is acceptable. This is not a bug. Just another Android caveat to be aware of. There is something to be said about the fact that a change in screen orientation of an activity affects the lifecycle of a preceding activity. It certainly goes against my expectation of what the behaviour ought to be, which made it difficult to track down the cause of this run-time error. -- 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] UI Widgets/Layout/Tools
Wanted to get feedback from the community on the following: - Any tools to quickly assemble and design Android UI ? - Any Visual Display/Documentations of all the possible layouts/widgets available in the Android Platform ? Thanks, and appreciate your support. Kumar_/|\_ www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... -- 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] Re: Android Market Licensing: Now Available!
Building with eclipse it seems OK, but via Ant I get: I/LicenseChecker( 2115): Binding to licensing service. E/LicenseChecker( 2115): Could not bind to service. W/ActivityManager( 85): Unable to start service Intent { act=av }: not found Any hints ? Pent -- 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] Re: Correct way to kill the application
Object o = null; o.toString(); -Mike dg On Jul 30, 9:37 am, Carlos Silva r3...@r3pek.org wrote: On Fri, Jul 30, 2010 at 14:13, RamaMohan rama.mohan...@gmail.com wrote: HI all, I s there any way to kill the entire application at once.Not using with finish() or system.exit() ..all these two will kill the activity ,but not the appication. Is there any way to kill the entire application from any activity .Please help me . Why would you do that? You shouldn't terminate the application yourself, the system will do that for you. I really think you should read this:http://android-developers.blogspot.com/2010/04/multitasking-android-w... -- 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] Re: Compiling and obfuscating by command line...
Keep in mind that what goes onto the phone isn't Java bytecodes but rather the Dalvik translation. Much harder to back-translate than bytecodes. (I've seen obfuscated bytecodes and it's not pretty. Class loading time goes up, execution efficiency is reduced, the odds of hitting a bug, either in the obfuscator or in the JVM, is greatly increased.) On Jul 30, 9:11 am, sblantipodi perini.dav...@dpsoftware.org wrote: Ok, thanks for the suggestions, any other idea? :) On Jul 30, 2:59 pm, DanH danhi...@ieee.org wrote: Just say no to obfuscation. On Jul 30, 3:36 am, sblantipodi perini.dav...@dpsoftware.org wrote: Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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] problem using listview...
On Fri, Jul 30, 2010 at 2:45 AM, A N K ! T ankit.awasth...@gmail.comwrote: .i know am missing something but not getting it what. I would start with making the main LinearLayout's height and width to be fill_parent ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Intent for following a user on Twitter?
On Fri, Jul 30, 2010 at 5:33 AM, Mark Carter mjc1...@googlemail.com wrote: I was wondering if there might be a standard... Why would there be a standard intent to execute a non-standard action? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Intent for following a user on Twitter?
Hey, maybe instead of rudely answering the question, you could save your keystrokes for something useful? Chris Stewart cstewart...@gmail.com On Fri, Jul 30, 2010 at 11:57 AM, TreKing treking...@gmail.com wrote: On Fri, Jul 30, 2010 at 5:33 AM, Mark Carter mjc1...@googlemail.comwrote: I was wondering if there might be a standard... Why would there be a standard intent to execute a non-standard action? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] people.NUMBER is deprecated....what else i can use in place of it
On Fri, Jul 30, 2010 at 8:31 AM, A N K ! T ankit.awasth...@gmail.comwrote: it is showing people.Number is deprecated. It's probably also showing what you should be using instead. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Intent for following a user on Twitter?
A standard intent may be used to execute non-standard actions. For example, there might be a standard Intent action to FOLLOW something. A Twitter client might attempt to respond to such Intents... On 30 July 2010 17:57, TreKing treking...@gmail.com wrote: On Fri, Jul 30, 2010 at 5:33 AM, Mark Carter mjc1...@googlemail.comwrote: I was wondering if there might be a standard... Why would there be a standard intent to execute a non-standard action? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Intent for following a user on Twitter?
On Fri, Jul 30, 2010 at 10:59 AM, Chris Stewart cstewart...@gmail.comwrote: Hey, maybe instead of rudely answering the question, you could save your keystrokes for something useful? I was being rude? I asked a simple question in response the OP's statement. Hey, maybe instead of misinterpreting people's posts and going off-topic you could save YOUR keystrokes for something useful? On Fri, Jul 30, 2010 at 11:13 AM, Mark Carter mjc1...@googlemail.com wrote: A standard intent may be used to execute non-standard actions. For example, there might be a standard Intent action to FOLLOW something. A Twitter client might attempt to respond to such Intents... Ah, true. I thought you meant something more built-in by standard. As Murphy stated, you'd have to check with Twitter app authors and see if they handle any, but it definitely wouldn't be standard (each Twitter app would probably do their own thing). And of course there's no guarantee that they'd be available on the user's device. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Re: RTSP Example
That sounds like a problem with Hero. The compositor is supposed to scale the video to fit the surface view. On Jul 18, 6:41 am, Anthoni anthoni.gard...@gmail.com wrote: Hi Dave, Thanks, found that it partially works, but for some reason I think the videos are scaled wrong. On my hero I can only see half (width wise) the video. Noticed this on a few others I've tried as well, so not sure if it's a problem with the Hero or what :( Regards Anthoni On Jul 15, 9:59 pm, Dave Sparks davidspa...@android.com wrote: Try m.youtube.com, this works on other Android devices. I don't have a Hero to test with. On Jul 14, 12:18 pm, Anthoni anthoni.gard...@gmail.com wrote: Hello, I am trying to find a URL that conforms to the proper RTSP protocol that Android will understand. I've various ones and added them into the API demo from Google but every single time I get the error ERROR/ PlayerDriver(37): Command PLAYER_INIT completed with an error or info PVMFFailure I am trying this on an actual device (after reading the emulator doesn't play videos at all). So I plugged in my HTC Hero, yet still the same. Can Android actually play RTSP streams or is it just some ridiculous myth ? What I am looking for is a live RTSP stream that I can view to validate that it does actually play. It doesn't have to be long, just a few seconds worth with audio and video would be great. It's proving impossible. Regards Anthoni -- 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] Help Needed Getting JSON to Jersey Web Service and Consuming it
To give you good advice, we probably need to know what your server end is expecting, and what kind of security you need. It could be as simple as what's below (NOTE there is extra stuff you don't need in here, but it should at least give you what you need) : ListNameValuePair nvps; try { InputStream is = null; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(urlString); String searchParams = getSearchParams(); // just my function to get what I want to pass searchParams = URLEncoder.encode(searchParams, HTTP.UTF_8); nvps.add(new BasicNameValuePair(category, searchParams)); httpPost.setHeader(User-Agent, iHotTonight Android App); // I set this so my server logs files are easier to read. httpPost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); HttpResponse response = httpclient.execute(httpPost); HttpEntity entity = response.getEntity(); if (entity != null) { try { is = entity.getContent(); String line; StringBuilder builder = new StringBuilder(); BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192); while ((line = reader.readLine()) != null) { builder.append(line); } String retStr = builder.toString(); // Now get any messages coming back. if (BistroSharedStatic.DEBUGGING_APP) // I set this if I want to log my results. Log.d(GetResults, retStr); if (handler != null) // if I passed a Handler to the create then send the result to the Handler. sharedFunctions.SendMessage(handler, HandlerReturnMessage, param1, param2, retStr); } finally { entity.consumeContent(); is = null; } } } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); if (handler != null) sharedFunctions.SendMessage(handler, 0, 0, 0, e.getMessage()); // if I passed in a Handler then send the exception to the handler. } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); if (handler != null) sharedFunctions.SendMessage(handler, 0, 0, 0, e.getMessage()); } catch (Exception e) { e.printStackTrace(); if (handler != null) sharedFunctions.SendMessage(handler, 0, 0, 0, e.getMessage()); } AND in PHP on the server end: $username=$_POST['from']; $password=$_POST['theirpassword]; $json_string=$_POST['searchwords']; // do the usual stripslashes and mysql_real_escape_string stuff here. // now, process the JSON string $json = json_decode($json_string); BUT... depending on the security etc... it can be a lot more complicated. Hopefully, this is enough to get you started. :) On 30/07/2010 7:33 AM, JimBadger wrote: Hi, I've just recently started out with Android development, and have progressed to the point where I have written a very basic Hello World Jersey RESTful web service, and successfully called it from within my Android App. What I want to do now though, is send a new user record (just name and password for now) to a web service in JSON format. I can create my JSON in the Android app just fine, but I don't know how to get it into the HTTP Request in such a way that the corresponding web service that @Consumes JSON can get at it. So, this is how far I've got: 1) Create Android App User object...(Tick: done that) 2) Turn that into JSON...(Tick: done that) 3) Put it on the HTTP request.(Stuck here! Help!) 4) Call the web service...(Tick: done that) 5) Web service retrieve JSON from request...(Stuck here! Help!) 6) Parse the JSON into server side User object and deal with as I see fit...(Don't worry people, I'll be fine with this bit, thanks!) 7) Profit! ;) Guys and Girls, I really appreciate any help given, you dear, dear kind souls! Cheers, James -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://www.bgies.com http://www.bistroblurb.com http://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- You received this message because you are subscribed to the Google Groups
[android-developers] Re: adding audio to a game - triggerClip for SFX
triggerClip() was designed to play synchronized sound effects for musical games like JetBoy. If you just want to play random sound effects, I would use SoundPool instead. On Jul 30, 5:53 am, kk kkostia...@gmail.com wrote: Hi all, I'm using JetPlayer in order to add some audio to a game I'm developing. Using the examples in JetBoy I have managed to create a .jet file using JetCreator and play an audio track. So far so good. However, I'm having some trouble playing sound effects for my game. I have a set of very small .mid files, each containing a shooting sound for a different weapon. However, when I try to add the .mid file in JetCreator I get The segment starting and ending times are illogical I'm guessing this is because the clip is too short and starting/ending M/B/T are both 1/1/0 ? The idea was to add these SFXs and then use triggerClip to play them. My question is, background music aside (I can make that work) what's the best way to add SFX in a game so that you can trigger them at any point programmaticaly? (i.e. have something like playShootingSFX1(), playShootingSFX2(), etc. that will go and play the SFX immediately). thx in advance, k. -- 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] Upload large files on the web server on android
Do you use HTTP POST to upload your file to android phone? On Fri, Jul 30, 2010 at 7:27 PM, mudit mudit.a...@gmail.com wrote: Hi I want to upload files on a web server in my android app.Currently i am able to upload files around 5mb from the device but more than this gives a outofmemory exception and also makes app very unstable. i am looking for a method using which we can upload the data in the app background plus of bigger size. Any tutorials/ code is highly appreciated. thanks in advance. -- 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
[android-developers] Re: Compiling and obfuscating by command line...
You are so kind answering me and I really appreciate it but there are many answers, all are off topic. I haven't asked if it is good to obfuscate or if I need to switch to NDK, I asked if someone succeded obfuscating standard android class using ant. Please don't move this thread off topic. Thanks to all. On Jul 30, 5:37 pm, DanH danhi...@ieee.org wrote: Keep in mind that what goes onto the phone isn't Java bytecodes but rather the Dalvik translation. Much harder to back-translate than bytecodes. (I've seen obfuscated bytecodes and it's not pretty. Class loading time goes up, execution efficiency is reduced, the odds of hitting a bug, either in the obfuscator or in the JVM, is greatly increased.) On Jul 30, 9:11 am, sblantipodi perini.dav...@dpsoftware.org wrote: Ok, thanks for the suggestions, any other idea? :) On Jul 30, 2:59 pm, DanH danhi...@ieee.org wrote: Just say no to obfuscation. On Jul 30, 3:36 am, sblantipodi perini.dav...@dpsoftware.org wrote: Since I'm going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK... Is there some example script, or some tutorial that could help me in this intent? Thanks. -- 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] Re: OpenGL missing pixels?
One thing I am seeing from the relevant reading at http://www.opengl.org/sdk/docs/man/xhtml/glLineWidth.xml is that you should not be setting the line width to be less than one pixel. On Jul 29, 10:12 pm, SChaser crotalistig...@gmail.com wrote: I am drawing lines in OpenGL on an app that will zoom way in and out on the surface. I would like the lines to always be visible. Currently, when the line widths are small, at certain angles, the lines don't render. Specifically, I have a case where diagonal lines show but a horizontal one does not. The line width is way less than a pixel, but there is nothing else in the area of the pixels that are not being colored. Is there a way to force sub-pixel elements to cause the enclosing pixel (otherwise empty - nothing drawn there) to render the color of the sub-pixel element? What is the rendering algorithm that causes the sub-pixel line to render when at an angle but not when horizontal (and hence, at the same position in every pixel)? Can I change it? Is there any way to do this other than changing the line width based on the scaling I am doing to the underlying model as I display it on the surface? Tks -- 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: Compiling and obfuscating by command line...
On Fri, Jul 30, 2010 at 5:14 AM, sblantipodi perini.dav...@dpsoftware.org wrote: Ok, since I founded no way to automatically do it with netbeans now I'm trying the ant way posted here: http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/ previously in this thread. I followed all the instructions but I get this error from ant o_O taskdef class com.android.ant.SetupTask cannot be found Any idea? I suppose the biggest problem with obfuscating code is that you have to laboriously list what parts of the code to not obfuscate. -- 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] Re: read default browser cookies for webview
Mark- I actually was able to read the cookies but now I need to figure out how to use them in my webview. That is tricky for me now. Any help you have for this? Thanks! On Jul 25, 2:33 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 25, 2010 at 10:48 AM,andrewandroidandygoldm...@gmail.com wrote: Can anyone tell me how to read the cookies from the default browser? You cannot access other applications' data like this, for privacy/security reasons. Sorry! -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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] Re: Android Market Licensing: Now Available!
Now don't get me wrong, I am sure Google did a better job of it than ARM did, but I learned to hate licensing servers from the bitter experience of using ARM's licensing server for their development tools. We had continual problems with false negatives, i.e, the program refused to run because it could not get validation from the license server, but the server was running and the network was working. Also, I hesitate to impose a requirement of network connectivity on my users whenever they want to run my apps. But for apps that have to presume connectivity anyway, this is a much better solution than copy- protection. On Jul 27, 10:55 am, Trevor Johns trevorjo...@google.com wrote: Android fans, For those of you who haven't already heard through our blog, we've just launched the Android Market licensing service: http://android-developers.blogspot.com/2010/07/licensing-service-for-... From the above blog post: This simple and free service provides a secure mechanism to manage access to all Android Market paid applications targeting Android 1.5 or higher. At run time, with the inclusion of a set of libraries provided by us, your application can query the Android Market licensing server to determine the license status of your users. It returns information on whether your users are authorized to use the app based on stored sales records. Developer documentation is available here: http://developer.android.com/guide/publishing/licensing.html Happy coding! -- Trevor Johns Google Developer Programs, Androidhttp://developer.android.com -- 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] Correct way to kill the application
On Fri, Jul 30, 2010 at 9:13 AM, RamaMohan rama.mohan...@gmail.com wrote: HI all, I s there any way to kill the entire application at once.Not using with finish() or system.exit() ..all these two will kill the activity ,but not the appication. Is there any way to kill the entire application from any activity . http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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: Compiling and obfuscating by command line...
If this is a normal Android project, run android update project -p ..., where ... is the path to your project, and it will create or repair your local.properties file. On Fri, Jul 30, 2010 at 1:31 PM, sblantipodi perini.dav...@dpsoftware.org wrote: I have listed it in the main.xml, the problem seems that ant doesn't find the SDK... if you found my error on google taskdef class com.android.ant.SetupTask cannot be found you will find dozens of people with my same problem, but I can't find a solution yet... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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] Re: Correct way to kill the application
Your question is missing some information. You can always kill your main activity that is possible. But you dont have any other control on other activities if those activities are binded to intent filter. Because each activities runs in their own process ..but there is a hack for this..if you can create an activity that belongs to the same activity group you can kill them one by one and kill the root at the end.. as long as if both are launched by the same app launcher.. pleae minimize using system.exit.. -Arjun. On Jul 30, 6:13 am, RamaMohan rama.mohan...@gmail.com wrote: HI all, I s there any way to kill the entire application at once.Not using with finish() or system.exit() ..all these two will kill the activity ,but not the appication. Is there any way to kill the entire application from any activity .Please help me . -- 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] Re: Android Market Licensing: Now Available!
same problem here: http://groups.google.com/group/android-developers/browse_thread/thread/8f09bd1993d14f13 On Jul 30, 5:24 pm, Pent tas...@dinglisch.net wrote: Building with eclipse it seems OK, but via Ant I get: I/LicenseChecker( 2115): Binding to licensing service. E/LicenseChecker( 2115): Could not bind to service. W/ActivityManager( 85): Unable to start service Intent { act=av }: not found Any hints ? Pent -- 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: Android Market Licensing: Now Available!
if you are using an emulator, make sure you use the Google APIs add-on for API 8 (2.2) in revision 2. Instructions for the setup: http://developer.android.com/guide/publishing/licensing.html#acct-signin On Fri, Jul 30, 2010 at 8:24 AM, Pent tas...@dinglisch.net wrote: Building with eclipse it seems OK, but via Ant I get: I/LicenseChecker( 2115): Binding to licensing service. E/LicenseChecker( 2115): Could not bind to service. W/ActivityManager( 85): Unable to start service Intent { act=av }: not found Any hints ? Pent -- 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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] Re: Can't get LVL working.
The Google APIs add-on for 2.2 (in revision 2) supports testing LVL- enabled app. See instructions at http://developer.android.com/guide/publishing/licensing.html#acct-signin On Jul 30, 10:30 am, sblantipodi perini.dav...@dpsoftware.org wrote: Really thanks but so there is no way to test LVL using emulator? I don't want to test the Buy Button that redirect from the app to the market, I want to test the doCheck() method that tell me if the app is licensed or not. This should work ok on the emulator. Am I wrong? Thanks. On Jul 30, 7:22 pm, jeffro j...@trackaroo.com wrote: I don't believe the Android Market is included on the emulator and the licensing service is included with the Market app. I have it working successfully, but I did all my development and testing with a real phone (N1 Froyo). Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 30, 10:08 am, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all, I'm trying to get LVL working. I followed the offical guidelines, I copyed the LVL source into my project and added the correct manifest attribute. I also copyed from LVL sample folder the mainactivity.java into my project, changed the public key with the one from my developer console. When I launch my software the MainActivity tell me always the application is not licensed also if I specified that is Licensed from my developer console... This is the output of the logcat, W/ResourceType( 57): No package identifier when getting value for resource number 0x7f060001 I/ActivityManager( 57): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH ER] flg=0x1020 cmp=packageName/.AndroidMarket } I/ActivityManager( 57): Start proc packageNamefor activity packageName/.AndroidMarket: pid=658 uid=10023 gids={3003} I/jdwp ( 658): received file descriptor 20 from ADB D/ddm-heap( 658): Got feature list request I/LicenseChecker( 658): Binding to licensing service. W/ActivityManager( 57): Unable to start service Intent { act=com.android.vending.licensing.ILicensingService }: not fo und E/LicenseChecker( 658): Could not bind to service. D/ ( 658): unable to unlink '/data/data/packageName/ shared_prefs/com.android.vendi ng.licensing.ServerManagedPolicy.xml.bak': No such file or directory (errno=2) any idea would be appreciated. In addition when I click on the buy now button after it told me that application is not licensed, it will redirect me on the android market and I got a 404 error. Probably because emulator isn't authorized to access the market, I don't know... Thanks :) -- 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] Extending multiple classes
Thanks guys for the quick response. Will try it out and let you know Thanks Priyank On Fri, Jul 30, 2010 at 12:38 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jul 30, 2010 at 1:29 PM, Priyank priyankvma...@gmail.com wrote: Can my class extend 2 or more classes at a time. No, sorry. I want to extend Activity as well as Application. Even if that were possible, I doubt this would be a good idea. Activity because, I need to do a couple of things during the onCreate() [binding a service]and Application, because I am creating objects of another class [service class]which needs to be accessible throughout my application. Use a service, static data members, or a separate custom Application class. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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
[android-developers] Can't get LVL working.
Hi all, I'm trying to get LVL working. I followed the offical guidelines, I copyed the LVL source into my project and added the correct manifest attribute. I also copyed from LVL sample folder the mainactivity.java into my project, changed the public key with the one from my developer console. When I launch my software the MainActivity tell me always the application is not licensed also if I specified that is Licensed from my developer console... This is the output of the logcat, W/ResourceType( 57): No package identifier when getting value for resource number 0x7f060001 I/ActivityManager( 57): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH ER] flg=0x1020 cmp=packageName/.AndroidMarket } I/ActivityManager( 57): Start proc packageNamefor activity packageName/.AndroidMarket: pid=658 uid=10023 gids={3003} I/jdwp( 658): received file descriptor 20 from ADB D/ddm-heap( 658): Got feature list request I/LicenseChecker( 658): Binding to licensing service. W/ActivityManager( 57): Unable to start service Intent { act=com.android.vending.licensing.ILicensingService }: not fo und E/LicenseChecker( 658): Could not bind to service. D/( 658): unable to unlink '/data/data/packageName/ shared_prefs/com.android.vendi ng.licensing.ServerManagedPolicy.xml.bak': No such file or directory (errno=2) any idea would be appreciated. In addition when I click on the buy now button after it told me that application is not licensed, it will redirect me on the android market and I got a 404 error. Probably because emulator isn't authorized to access the market, I don't know... Thanks :) -- 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] Extending multiple classes
Just invoke Activity.getApplication() within your Activity.onCreate method, casting the Application to your specific class type. Then your can set whatever you need on your application instance and it will be accessible within other Activities through the same Activity.getApplication() method. http://developer.android.com/reference/android/app/Activity.html#getApplication On Fri, Jul 30, 2010 at 10:29 AM, Priyank priyankvma...@gmail.com wrote: Hi, I had a basic question. Can my class extend 2 or more classes at a time. What is the syntax. I want to extend Activity as well as Application. Wont this create problems in the manifest file? Activity because, I need to do a couple of things during the onCreate() [binding a service]and Application, because I am creating objects of another class [service class]which needs to be accessible throughout my application. Thanks, Priyank -- 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 -- Shane Isbell (Founder of ZappMarket) http://apps.facebook.com/zappmarket/ -- 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] Re: Can't get LVL working.
I don't believe the Android Market is included on the emulator and the licensing service is included with the Market app. I have it working successfully, but I did all my development and testing with a real phone (N1 Froyo). Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 30, 10:08 am, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all, I'm trying to get LVL working. I followed the offical guidelines, I copyed the LVL source into my project and added the correct manifest attribute. I also copyed from LVL sample folder the mainactivity.java into my project, changed the public key with the one from my developer console. When I launch my software the MainActivity tell me always the application is not licensed also if I specified that is Licensed from my developer console... This is the output of the logcat, W/ResourceType( 57): No package identifier when getting value for resource number 0x7f060001 I/ActivityManager( 57): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH ER] flg=0x1020 cmp=packageName/.AndroidMarket } I/ActivityManager( 57): Start proc packageNamefor activity packageName/.AndroidMarket: pid=658 uid=10023 gids={3003} I/jdwp ( 658): received file descriptor 20 from ADB D/ddm-heap( 658): Got feature list request I/LicenseChecker( 658): Binding to licensing service. W/ActivityManager( 57): Unable to start service Intent { act=com.android.vending.licensing.ILicensingService }: not fo und E/LicenseChecker( 658): Could not bind to service. D/ ( 658): unable to unlink '/data/data/packageName/ shared_prefs/com.android.vendi ng.licensing.ServerManagedPolicy.xml.bak': No such file or directory (errno=2) any idea would be appreciated. In addition when I click on the buy now button after it told me that application is not licensed, it will redirect me on the android market and I got a 404 error. Probably because emulator isn't authorized to access the market, I don't know... Thanks :) -- 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] AppFriend for Facebook/Twitter (Social discovery of apps)
I've been looking into social discovery of Android applications and have found the space saturated with a lot of players. Most of these seemed to focus on aggregated data (AppAware, AppBrain). What I wasn't able to find was a simple way to just share apps that you like with your friends. So I came up with an Android application 'AppFriend for Facebook' as an experiment to see if people in a friend-to-friend network would be interested in sharing application info. The usage is growing each day, so I feel comfortable in approaching the dev community and asking you guys to check it out as a way to promote your apps to users and to get the word out about your application(s). It's a really simple Android application that allows users to look at their installed apps on their device and comment on them. The comment and catalog info is then placed on their facebook wall and can be further shared among friends. You can find it by searching for appfriend on Android Market or for QR codes go to: http://www.zappmarket.com/catalog/27 (Facebook version) http://www.zappmarket.com/catalog/117 (Twitter Version) - You can choose option {Likes, Is using, #PaidAppPledge} On Alternative Market: http://andappstore.com/AndroidApplications/apps/AppFriend_For_Facebook For a list of currently shared apps http://apps.facebook.com/zappmarket/ Have fun, -- Shane Isbell (Founder of ZappMarket) http://apps.facebook.com/zappmarket/ -- 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] Extending multiple classes
Hi, I had a basic question. Can my class extend 2 or more classes at a time. What is the syntax. I want to extend Activity as well as Application. Wont this create problems in the manifest file? Activity because, I need to do a couple of things during the onCreate() [binding a service]and Application, because I am creating objects of another class [service class]which needs to be accessible throughout my application. Thanks, Priyank -- 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] Re: Froyo -- How to detect that my application has been killed?
Dianne, here's the reproduction step on Froyo: [1] Run on Froyo - start ApiDemos, start the RemoveService sample. You will now see two processes com.example.android.apis com.example.android.apis:remote [2] You will notice that Sample Remote Service appears on status bar. [3] write an app with KILL_BACKGROUND_PROCESSES permission. Call ActivityManager.killBackgroundProcesses(com.example.android.apis); [4] Both processes created at step [1] are killed. [5] RemoveService is never restarted, even though you see something like W/ActivityManager( 2426): Scheduling restart of crashed service com.example.android.apis/.app.RemoteService in 2ms [6] Sample Remote Service message still stays on status bar. This is because StatusBarService expects a ACTION_PACKAGE_RESTARTED broadcast, but this braodcast is never delivered. What's the best way to handle this -- we need to clean up some resources if the app process is killed. Thanks! On Jul 29, 8:15 pm, Dianne Hackborn hack...@android.com wrote: Applications can't kill services with this. They can only kill background processes, which the OOM killer is free to kill at any time anyway. On Thu, Jul 29, 2010 at 6:37 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: On Froyo, we found that some new Task Manager apps are now using the ActivityManager.killBackgroundProcesses() to kill apps. When this happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired. How can I find out that my application has been killed? I tried to start a service, and I do see this message printed in logcat: W/ActivityManager( 2426): Scheduling restart of crashed service com.example.android.apis/.app.RemoteService in 2ms However, the service is never restarted as advertised, if the app is killed using the killBackgroundProcesses API. (If I go into adb shell and kill the service process, the service will indeed be restarted ...) This looks like a bug anyway, because the notification created by the app is no longer removed like in eclair (the StatusBarService, and a bunch of other system services, depend on the Intent.ACTION_PACKAGE_RESTARTED broadcast). Thanks -- 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 -- 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
Re: [android-developers] Extending multiple classes
On Fri, Jul 30, 2010 at 1:29 PM, Priyank priyankvma...@gmail.com wrote: Can my class extend 2 or more classes at a time. No, sorry. I want to extend Activity as well as Application. Even if that were possible, I doubt this would be a good idea. Activity because, I need to do a couple of things during the onCreate() [binding a service]and Application, because I am creating objects of another class [service class]which needs to be accessible throughout my application. Use a service, static data members, or a separate custom Application class. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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] Re: Compiling and obfuscating by command line...
I have listed it in the main.xml, the problem seems that ant doesn't find the SDK... if you found my error on google taskdef class com.android.ant.SetupTask cannot be found you will find dozens of people with my same problem, but I can't find a solution yet... On Jul 30, 6:59 pm, Frank Weiss fewe...@gmail.com wrote: On Fri, Jul 30, 2010 at 5:14 AM, sblantipodi perini.dav...@dpsoftware.org wrote: Ok, since I founded no way to automatically do it with netbeans now I'm trying the ant way posted here: http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/ previously in this thread. I followed all the instructions but I get this error from ant o_O taskdef class com.android.ant.SetupTask cannot be found Any idea? I suppose the biggest problem with obfuscating code is that you have to laboriously list what parts of the code to not obfuscate. -- 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] Re: Can't get LVL working.
Really thanks but so there is no way to test LVL using emulator? I don't want to test the Buy Button that redirect from the app to the market, I want to test the doCheck() method that tell me if the app is licensed or not. This should work ok on the emulator. Am I wrong? Thanks. On Jul 30, 7:22 pm, jeffro j...@trackaroo.com wrote: I don't believe the Android Market is included on the emulator and the licensing service is included with the Market app. I have it working successfully, but I did all my development and testing with a real phone (N1 Froyo). Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 30, 10:08 am, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all, I'm trying to get LVL working. I followed the offical guidelines, I copyed the LVL source into my project and added the correct manifest attribute. I also copyed from LVL sample folder the mainactivity.java into my project, changed the public key with the one from my developer console. When I launch my software the MainActivity tell me always the application is not licensed also if I specified that is Licensed from my developer console... This is the output of the logcat, W/ResourceType( 57): No package identifier when getting value for resource number 0x7f060001 I/ActivityManager( 57): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH ER] flg=0x1020 cmp=packageName/.AndroidMarket } I/ActivityManager( 57): Start proc packageNamefor activity packageName/.AndroidMarket: pid=658 uid=10023 gids={3003} I/jdwp ( 658): received file descriptor 20 from ADB D/ddm-heap( 658): Got feature list request I/LicenseChecker( 658): Binding to licensing service. W/ActivityManager( 57): Unable to start service Intent { act=com.android.vending.licensing.ILicensingService }: not fo und E/LicenseChecker( 658): Could not bind to service. D/ ( 658): unable to unlink '/data/data/packageName/ shared_prefs/com.android.vendi ng.licensing.ServerManagedPolicy.xml.bak': No such file or directory (errno=2) any idea would be appreciated. In addition when I click on the buy now button after it told me that application is not licensed, it will redirect me on the android market and I got a 404 error. Probably because emulator isn't authorized to access the market, I don't know... Thanks :) -- 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] Picking up radio stations?
Hey everyone, Is there a way to let my app tune into a certain radio station(FM/AM?) Or is this something not yet possible with android? -- 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] Sync Adapter and api level 3 4?
Hi, I'm looking at the sample sync adapter here: http://developer.android.com/resources/samples/SampleSyncAdapter/index.html I'd like to still support sdk level 3 and 4 devices. Will including the following lines in my app's manifest be problematic?: uses-permission android:name=android.permission.AUTHENTICATE_ACCOUNTS / uses-permission android:name=android.permission.READ_SYNC_STATS / are these specific to sdk level 5? Ideally, we could include these for level 3 and 4 users, and they just won't be shown the contact sync option at all. Is this how it's meant to work? Thanks -- 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] Subclassing Animation
Hi, I'd like to subclass Animation in order to get an animation that changes the clipRect of the canvas passed to a particular custom view instead of messing with the matrix of that canvas. The reason for this, is that I want to animate a partially obscured bitmap up to display it fully. So, say I have a bitmap 100x100 px, and at the start of the animation, I want to start out displaying the top 100x50px of it, so the clipRect will be of the size 100x50. I want to move the clipRect 50px up, and add 50 px to it's size, but it looks like both the scale and translate animations just change the matrix, so I wind up displaying the same 100x50px area, but stretched to fit in in whatever space. Anyway, what's the best way of accomplishing this? -- 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