Re: [android-developers] App Update with certificate expiring before October 22, 2033
On Thu, Aug 23, 2012 at 12:56 AM, Agnes Ecube ecube.develo...@gmail.comwrote: We simply did not get any response or answer! Is this the normal behavior of Google Play Developer Support in case of severe problems? Yup, basically. Unfortunately that is your best bet, as I doubt anyone here can help you with your issue. - 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] Securize applications
Hi, I need to know how to block access to a list of applications from another application to manage it, is that possible? -- 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] Emulator Use Question
Hi all, My client wants me to use the Intel HAXM emulator. Does anybody use it? How does it compare to the one in the Android SDK? Thx, JB -- 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] programmatic bluetooth pairing
I have a known good MAC address for a bluetooth device and I wish to initiate pairing programmatically. This would allow the user to pair without going to the bluetooth settings screen and manually pairing. I want to avoid having to rely on reflection as in the following example, but I want the same result: Method m = device.getClass().getMethod(createRfcommSocket, new Class[] {int.class}); BluetoothSocket socket = (BluetoothSocket) m.invoke(device, 1); -- 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] Android C2DM(PHONE_REGISTRATION_ERROR) Error on ICS(4.0)
hi. it happend on LG Prada 3.0(LG-SU540). it's successful that registration of C2DM on GB(2.3). but PHONE_REGISTRATION_ERROR occurred after I had upgraded to ICS. I tested many same model. whole LG-SU540 devices didn't occurred. but better-most device did. I tried Playstore update, re-sign Google account, enable background data settings. but It's not working. How can I register C2DM this device? plz help. -- 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] Roll back to ICS?
I have a WiFi only Motorola XOOM that was recently OTA updated to Jelly Bean. Since that update, I am no longer able to connect to my company's corporate wireless network due to issues with Jelly Bean that causes devices to not connect to wi-fi networks with particular security configurations. http://code.google.com/p/android/issues/detail?id=34212http://www.androidpit.com/en/android/forum/thread/472814/linky Google has not announced a timeline for which the patch to this issue is going to be released. As my corporate wi-fi is secured WPA2/PEAP, I am no longer to connect to it. Is there a simple way to roll my XOOM back to Ice Cream Sandwich? -- 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] Location data not consistently available and sometimes gives null data
I am trying to get the location of a user through LocationManager.NETWORK_PROVIDER but it always returns a blank string. Only sometimes I get the valid data. Is there any way to make this method re-iterate until it gives me a location? I would think that location would come quickly and there would be no need for this method. I have tried re-calling it until it doesn't display a blank string, but nothing comes up. Here is the method I call public String getLocation(Locale locale, Context context, boolean city, boolean postal, boolean state_prov) throws IOException{ LocationManager locMan = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE); LocationListener locList = new MyLocList(); Geocoder gC = new Geocoder(context,locale); Location gpsLocation = locMan.getLastKnownLocation(locMan.GPS_PROVIDER); locMan.requestLocationUpdates(locMan.NETWORK_PROVIDER, 500, 200, locList); Location networkLocation = locMan.getLastKnownLocation(locMan.NETWORK_PROVIDER); if (city) return (gC.getFromLocation(networkLocation.getLatitude(), networkLocation.getLongitude(), 1).get(0).getSubAdminArea()); else if (postal) return (gC.getFromLocation(networkLocation.getLatitude(), networkLocation.getLongitude(), 1).get(0).getPostalCode()); else if (state_prov) return (gC.getFromLocation(networkLocation.getLatitude(), networkLocation.getLongitude(), 1).get(0).getAdminArea()); else return Nothing; } I usually ask for the city or postal code, but it most of the time it comes up empty. Using the Location gpsLocation = locMan.getLastKnownLocation(locMan.GPS_PROVIDER); results in a NullPointer, so I am using the NETWORK_PROVIDER I have set these permissions: uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses-permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses-permission And this is what I call it with String data = getLocation(Locale.getDefault(),getBaseContext(),true,false,false); I keep on getting a blank string as the result. Also depending on the location I sometimes get the subAdminArea from the geocoder, but other times it gives me null -- 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] Handler object is taking long time to send message to UIThread
Its the handler in the recording thread. It should change the button text before thread starts audio recording but it doesnt run till long after BOTH threads are done. can someone please tell me whats going on? package com.EJH.Industries.microkr; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioRecord; import android.media.AudioTrack; import android.media.MediaRecorder; import android.media.MediaSyncEvent; import android.os.Bundle; import android.os.Handler; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; import android.support.v4.app.NavUtils; public class MainActivity extends Activity { //CLASS VARIABLES //CHAR SEQUENCE CharSequence easyChar = PLAYING; public Handler textViewHandler = new Handler(); //CREATE THE RECORDING OBJECT int audioSrc = MediaRecorder.AudioSource.MIC; int sampleRate = 44100; int chanConfig = AudioFormat.CHANNEL_IN_MONO; int audioFormat = AudioFormat.ENCODING_PCM_16BIT; int getMinBuffSize = 200*AudioRecord.getMinBufferSize(sampleRate, chanConfig, audioFormat); int minBuffSize = (int) getMinBuffSize; short audioBuff[] = new short[minBuffSize]; public AudioRecord micRecorder = new AudioRecord(audioSrc, 22050, chanConfig, audioFormat, minBuffSize); //CREATE THE PLAYBACK OBJECT int streamType = AudioManager.STREAM_MUSIC; int playMode = AudioTrack.MODE_STREAM; int playChanConfig = AudioFormat. CHANNEL_OUT_MONO; public AudioTrack speakerPlay = new AudioTrack(streamType, sampleRate, playChanConfig, audioFormat, 8192, playMode); public void startRec(){ micRecorder.startRecording(); micRecorder.read(audioBuff, 0, minBuffSize); micRecorder.stop(); micRecorder.release(); } public void startPlayback(){ speakerPlay.play(); speakerPlay.write(audioBuff, 0, minBuffSize); speakerPlay.stop(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final Button startBtn = (Button) findViewById(R.id.startButton); startBtn.setOnClickListener(new OnClickListener(){ public void onClick(View v) { // TODO Auto-generated method stub Thread recThread = new Thread( new Runnable(){ public void run() { // TODO Auto-generated method stub textViewHandler.post(new Runnable () { public void run(){ startBtn.setText(Recording!); } }); startRec(); } }); // RUN RECORDING FUNCTION recThread.run(); try { recThread.join(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } Thread playThread = new Thread( new Runnable(){ public void run() { // TODO Auto-generated method stub startPlayback(); } }); playThread.run(); try { playThread.join(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); ///END onCreate// } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true; } } -- 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 with application
hello, my name is laila hafsiani putri. i'm from indonesian and i'm new in android developer. i'm going to make application introduction to the Arabic alphabet. what first i do? may i have template application or project source in eclipse. sorry for my bad english :D thanks anyway. -- 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]
I am an engineering last year student. I am developing a newspaper application for android. But i dont have idea how to start the project..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] A necessary question about GPS and Multitasking.. Please help me!
I have an idea for an applicationhttp://www.iphonedevsdk.com/forum/iphone-sdk-development/107136-a-necessary-question-about-gps-and-multitasking-please-help-me.html# but the creation of the app rides on the flexibility of smartphone software. Here is my question, I hope somebody has some insight I would appreciate it greatly.. Can the android/windows platform do a scheduled GPS location search on a timer, when the application that is responsible for the GPS location search is running in the background. (multitasking) OR even when the app is not active? Example: Every hour, the app that is minimized in the multitasking tab is programmed to do a GPS location search. I've been working on this idea for a long time and if anyone has a definitive answer please, can you help me? Thanks again -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers]
what functionality you are trying to include in your newspaper application!!! -- 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]
Hi manash, 1st you go with Google play , which is containing lot of newspaper app , once go through this videos and you will get some idea how to use it. Once you will get the visual things , then automatically you will work on it with your stuff. try it. https://play.google.com/store/apps/details?id=com.world.newspapersfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS53b3JsZC5uZXdzcGFwZXJzIl0 . regards, Mani On Thu, Aug 23, 2012 at 2:34 AM, Manash Das manashda...@gmail.com wrote: I am an engineering last year student. I am developing a newspaper application for android. But i dont have idea how to start the project..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 -- 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 get every time new/refreshed Current Location
can you please provide some code snippet, so i can understand. B'cos without using Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); this line of code how can i get the latitude and longitude ? (Note : I don't want to use getLastKnownLocation() method) Thank you. On Wed, Aug 22, 2012 at 7:52 PM, TreKing treking...@gmail.com wrote: On Wed, Aug 22, 2012 at 2:17 AM, Rajan r.d.thak...@gmail.com wrote: i want accurate refreshed location detail every time (means, @ App start time, @ App resume time, @ restart time etc.) how it is possible? Use the GPS provider and wait patiently for it to find the user's location, handling the cases when it takes a long time or fails completely. - 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 -- . -- 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] android-support-v13.jar not present in my application
Hi all, I am using eclipse for developing android application.When i create my application,android-support-v13.jar is not bundled in my application.Help on this. Thanks, vijay.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] connecting database...
hi friends.. i want connect the my application to external l myql database.. it is possible are notif possible how it work plz explain me 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: Help with application
Hi Laila, First you should be more specific to your application like which functionality you want to provide. If possible examine some sample application and start your development. And yes,if you are confuse at any situation through development then think as end user, it will be more helpful. Otherwise ping me or post the question on different forums. All The Best ! Thanks Juned Khan -- 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] Android C2DM(PHONE_REGISTRATION_ERROR) Error on ICS(4.0)
C2DM is replaced by GCM, On Wed, Aug 22, 2012 at 1:03 PM, Bici bici0...@gmail.com wrote: hi. it happend on LG Prada 3.0(LG-SU540). it's successful that registration of C2DM on GB(2.3). but PHONE_REGISTRATION_ERROR occurred after I had upgraded to ICS. I tested many same model. whole LG-SU540 devices didn't occurred. but better-most device did. I tried Playstore update, re-sign Google account, enable background data settings. but It's not working. How can I register C2DM this device? plz help. -- 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 -- Thanks and Regards Ajmer Singh -- 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: Reliable way to detect application launch from home / desktop?
Google Analytics! I want to track when the user opens the app (taps on the icon in apps or home screen in order to launch it). On Wednesday, August 22, 2012 6:09:09 PM UTC+2, MagouyaWare wrote: Why are you wanting to detect this? Perhaps there is a better way to accomplish what you are trying to do Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 22, 2012 at 9:14 AM, Carlos A. M. dos Santos unix...@gmail.com javascript: wrote: On Wed, Aug 22, 2012 at 10:58 AM, user123 ivans...@gmail.comjavascript: wrote: This will not be executed always. Android lets apps running in the background, although user closed it. When you launch the app it will not necessarily be created. I suggest you to get satisfied with what you have. The world is cruel. --8-- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); boolean fromLauncher = savedInstanceState == null Intent.ACTION_MAIN.equals(intent.getAction()) intent.getCategories().contains(Intent.CATEGORY_LAUNCHER); -- The flames are all long gone, but the pain lingers on -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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: NDK in MacOS
Hi Ricardo, Can you show the code of local.mk file? Thanks Juned Khan -- 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.os.NetworkOnMainThreadException error
Hi Vivek, If you are working on the Honeycomb or higher vesrsion of android then you can not do any long running or networking task in main thread. you have to handle this tasks using AsyncTaskhttp://developer.android.com/reference/android/os/AsyncTask.htmlclass. please read the documents it will be more clear to you. Thanks Juned Khan -- 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] App Update with certificate expiring before October 22, 2033
Try to find a Developer Advocate on Google+ and post to them directly. That's your best bet. Waiting for an answer via the official support channel is exercise in futility and will just drive you nuts. On Thursday, August 23, 2012 1:56:46 PM UTC+8, Agnes Ecube wrote: Hi TreKing, we already reported this issue two times (10 days ago and 3 days ago) in the contact form of Google Play Developer Support pages. We simply did not get any response or answer! Is this the normal behavior of Google Play Developer Support in case of severe problems? This is a serious question without prejudices, because we don't have any experience with Android/Google Play Support. As I have written in my first post, we have a massive problem with thousands of customers but we don't know how to find a solution because we don't know how to get an answer to our question. So, does have anyone experiences with Google Play Developer Support? Thank you in advance. Am Mittwoch, 22. August 2012 22:54:02 UTC+2 schrieb TreKing: On Wed, Aug 22, 2012 at 7:45 AM, Agnes Ecube ecube.d...@gmail.comwrote: Now, we have the serious show stopper that google play store doesn't let us upload the apk-file for the latest update. Issues with Google Play should be directed here: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 Good luck. - 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: Help with application
You should probably look on developer.android.com and do the hello world app. There you can understand views and activities. On Wednesday, August 22, 2012 9:33:42 PM UTC-7, laila hafsiani wrote: hello, my name is laila hafsiani putri. i'm from indonesian and i'm new in android developer. i'm going to make application introduction to the Arabic alphabet. what first i do? may i have template application or project source in eclipse. sorry for my bad english :D thanks anyway. -- 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: Writing multiple records to NFC tag
Yes yes, if you take a look at the documentation here: http://developer.android.com/reference/android/nfc/NdefMessage.html you will see that the NdefMessage constructor can take multiple NdefRecords and the NdefMessage .getRecords method returns an array of NdefRecords from which you can select the record you want. On Wednesday, August 22, 2012 3:30:00 PM UTC+1, Lucy wrote: Hi I am trying to use Android device to read/write to NFC tag stickers, such as this one: *Mifare 1K NFC Tag For Galaxy Nexus*http://www.amazon.com/Mifare-NFC-Galaxy-Nexus-Tags/dp/B006SMFKHC/ref=sr_1_3?ie=UTF8qid=1345645251sr=8-3keywords=nfc+tag. Most of the examples I see read/write one NFC record to the tag. Is there any way I can write multiple records to the tag (maybe one at a time) and selectively read some records from the tag? Thanks! Lucy -- 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: Gingerbread BroadcastReceiver Issue
Would it be possible to have a mailing list for discovered Android bug? I wish I knew this one sooner so I could avoid many user complaints in the first place. And also spending hours digging into my code and trying the reproduce user issues. -- 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] android-support-v13.jar not present in my application
On 23/08/2012 09:17, Vijay Krishnan wrote: Hi all, I am using eclipse for developing android application.When i create my application,android-support-v13.jar is not bundled in my application.Help on this. You have to install the android-support package. Google a bit... -- 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 can I calculate the BPM (Beats per minute) of a sound in a native android project?
Sorry, I made a mistake when I said that I'm developing a native app. What I mean is that I'm using the SDK, not PhoneGap or something similar. El jueves, 23 de agosto de 2012 00:33:36 UTC+2, Spooky escribió: On Wed, Aug 22, 2012 at 03:56:44AM -0700, Pau Rodr??guez Coloma wrote: I'm developing a native android app Cool. But you're in the wrong e-mail list for native apps. You are *FAR* more likely to get a useful response if you post your question to andro...@googlegroups.com javascript: instead of this one, which is for developing Android apps using the SDK (java). Good luck with your app. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spook...@gmail.com javascript:ICBM/Hurr.: 30.44406N 86.59909W The iPad is a status symbol for yuppies. The Android is for people who actually want something that works. Android Apps Listing at http://www.jstrack.org/barcodes.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] how to make updates to my app at store and alert users about new updates?
بتاريخ الأربعاء، 22 أغسطس، 2012 UTC+2 3:40:49 م، كتب TreKing: On Wed, Aug 22, 2012 at 4:43 AM, Hady Abd alkhalik ibnser...@gmail.comjavascript: wrote: could you provide me the documentation link? http://developer.android.com/distribute/index.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices i have thousands of android tablets and we will put APK file on the ROM of Android OS to be a built in app and then will put the same APK file to Google play.do you think any update on Google play will reflect to installed APK files on tablets. 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] how to check table is empty or not
Hi everybody, can some one tell me how to check table is empty or not actually after deleting records from table ,when i click on view button force close error.and if table is not empty then there is not any error on clicking view button so i want to apply a condition if table is empty then toast massage or aert shold pop when we try view empty table in database. Thanks sadhana -- 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: Dynamic Array
am utilizing: http://developer.android.com/guide/topics/providers/calendar-provider.html but in above url no help for third party source!! I add the item from third party from app it got saved in android calendar, next time when user open app, he add the item and but user did get confused whether the entry is already there in calendar is making array(which will have unique id for every item) and adding in shared preference is only option?? please suggest RK On Wed, Aug 22, 2012 at 7:13 PM, TreKing treking...@gmail.com wrote: On Wed, Aug 22, 2012 at 1:29 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote: Problem when i insert, new item in Android calendar, saved array(A) should also add the new item event id of a new item.How to do the same? Get the array, update it, put it back. 1.is there any limit in shared prefernce to save the array ?? Not that I'm aware of. 2.is there any other way to check duplicate entries before adding them in android calendar, i don't want to use database. I would consult the Android documentation on the Calendar API. - 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 -- 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] hi friends
i friends , i want to display route path between two cities in my app any one help plz -- 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 get every time new/refreshed Current Location
hai friends how can find distance between tow cities in my app,help me plz -- 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] edittext focus in tablerow
Hi, I have a tableRow which i am showing in a dialog which has 5 components aligned like this: EditText1 Spinner1 EditText2 Spinner2EditText3 Button. By default cursor is focused on EditText1 ,I want to make it focus on EditText2 . How to acheive this??? -- Thanks, Vani Reddy -- 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 get every time new/refreshed Current Location
first of all you have to find latitude and longitude for both the cities: -- Example : -- City1 latitude : 24.2525697 longitude : 89.9240492 City2 latitude : 24.6081436 longitude : 90.0250385 ok , then according to math formula you can able to find distance between two cities. For Math formula Plz refer this url : http://www.movable-type.co.uk/scripts/latlong.html And ya you can also find latitude longitude for any particular city through Google query string. On Thu, Aug 23, 2012 at 4:15 PM, sree android android.sreeni...@gmail.comwrote: hai friends how can find distance between tow cities in my app,help me plz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] hi friends
just go through this link hope you got some idea http://eagle.phys.utk.edu/guidry/android/mapOverlayDemo.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: First android app
please help me. why is it that i got an error when i run the notepad example # 1? i don't know what happened to this. it says that it has unfortunately stop. and the logcat is here: 08-24 02:07:36.984: I/dalvikvm(629): threadid=1: stack overflow on call to Lcom/android/demo/notepad1/Notepadv1;.onCreateOptionsMenu:ZL 08-24 02:07:36.984: I/dalvikvm(629): method requires 24+20+20=64 bytes, fp is 0x44b93338 (56 left) 08-24 02:07:36.995: I/dalvikvm(629): expanding stack end (0x44b93300 to 0x44b93000) 08-24 02:07:36.995: I/dalvikvm(629): Shrank stack (to 0x44b93300, curFrame is 0x44b96ec8) 08-24 02:07:36.995: D/AndroidRuntime(629): Shutting down VM 08-24 02:07:36.995: W/dalvikvm(629): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 08-24 02:07:37.324: D/dalvikvm(629): GC_CONCURRENT freed 248K, 5% free 6728K/7047K, paused 22ms+7ms 08-24 02:07:37.396: E/AndroidRuntime(629): FATAL EXCEPTION: main 08-24 02:07:37.396: E/AndroidRuntime(629): java.lang.StackOverflowError 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at com.android.demo.notepad1.Notepadv1.onCreateOptionsMenu(Notepadv1.java:47) 08-24 02:07:37.396: E/AndroidRuntime(629): at
[android-developers] how to launch Voice Search programatically (ICS)
Hi, I'm trying to make an application which can launch the google Voice Search in Ice Scream Sandwitch. In version older than gigerbread, its quite easy as we juste must send the correct intent : Intent i = new Intent(RecognizerIntent.ACTION_WEB_SEARCH); PackageManager manager = getPackageManager(); try { i = manager.getLaunchIntentForPackage(com.google.android.voicesearch); i.addCategory(Intent.CATEGORY_LAUNCHER); startActivity(i); } catch (Exception e) { e.printStackTrace(); } However as voice search is only a widget and not any more a standard application, we can't use it. Does anyone know how do this in ICS ? Best Regards and thank you for your answers !! Mickael -- 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 (position 0) is more than necessary Invoked getView · bindView of CursorAdapter When you call a non-UI thread from the thread Handler.post
Are you having issues lazy loading an adapter with images? Your question is difficult to understand, please try to state the issue in a simple way. Peace, Dan -- 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: New to android development
It is an eclipse problem. It happens when you try to run an application juste after modifiying a .xml file. You need to remove the .out.xml file created. Then simply click on your project name in the project tree in eclipse and run it. Le samedi 18 août 2012 23:21:02 UTC+2, Saudademaru Envy a écrit : So I have the android SDK and eclipse and I wanted to try to make my first app. Of course I followed the directions on the lessons about starting the hello world, then the one after that. Well now I can't seem to make anything. When I start something new, I may change some names of the activity, app name and stuff just to something different and as soon as the app is created it should be a simple hello world but I can't seem to compile it or test it. As soon as I try it gives me an error having to do with the layout xml file. It creates another one with the same name but also with a .out before the .xml then it tells me it is already defined. Does anyone know what the problem is? I will post a link so you can download my source files to check. It also says no xml content but my original file did have content. I even tried the one where we make a text box and button but it still says that for some reason https://docs.google.com/open?id=0B4I48TCTXOKFQ1k0ekZZc2VLWDg -- 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] Android button position changes while the screen rotating
Hai all I am new in android programming. For my application I am using image button and it successfully installed on the device. But when I rotate the screen all the button position get changed... and I need all the button placed at centre of the screen And here is my code RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical TextView android:id=@+id/testText android:layout_width=wrap_content android:layout_height=wrap_content android:textColor=#FFCC99 android:textSize=24dp / ImageButton android:id=@+id/up android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentTop=true android:layout_marginRight=124dp android:layout_marginTop=80dp android:src=@drawable/up / ImageButton android:id=@+id/left android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentTop=true android:layout_below=@+id/up android:layout_marginRight=200dp android:layout_marginTop=150dp android:src=@drawable/left / ImageButton android:id=@+id/right android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentTop=true android:layout_below=@+id/up android:layout_marginRight=50dp android:layout_marginTop=150dp android:src=@drawable/right / ImageButton android:id=@+id/down android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@+id/up android:layout_alignParentRight=true android:layout_marginRight=124dp android:layout_marginTop=80dp android:src=@drawable/down / /RelativeLayout Please help -- 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 check table is empty or not
Hi Sadhna, You can use cursor.getcount() method to check this. if its greater then zero then there is some data in table. i.e Cursor cursor = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null); * totalcontact=cursor.getCount();* Log.i(fav all contact,+totalcontact); * if (totalcontact== 0)* { Toast.makeText(Fav_contacts.this,You don't have any contacts to display ,200).show(); else do your stuff Thanks Juned Khan -- 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 check table is empty or not
Hi Sadhna, You can use cursor.getcount() method to check this. if its greater then zero then there is some data in table. i.e Cursor cursor = getContentResolver().query( ContactsContract. CommonDataKinds.Phone.CONTENT_URI, null, null, null, null); * totalcontact=cursor.getCount();* Log.i(fav all contact,+totalcontact); * if (totalcontact== 0)* { Toast.makeText(Fav_contacts.this,You don't have any contacts to display ,200).show(); else do your stuff Same way you can query about the any database of Application. Thanks Juned Khan -- 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 : Always getting previous LastKnownLocation
Hey guys i am trying to get the user's current location through GPS but i always get the previous LastKnownLocation. I am trying this since last 4 to 5 hours but i didn't find the refereched current location. can anybody plz tell me how can i remove a listener of the lastknownlocation. i had also try this code : locationManager.removeUpdates(locationListener); but i didn't get success. === this is my code : === Location location=null; double lat1,lng1; LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); LocationListener mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener); location = mlocManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); mlocManager.removeUpdates(mlocListener); Toast.makeText(this, previous update is removed, Toast.LENGTH_LONG).show(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener); location = mlocManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); try { lat1=location.getLatitude(); lng1=location.getLongitude(); Toast.makeText(this, lat : +lat1+, lng : +lng1, Toast.LENGTH_LONG).show(); } catch(Exception e) { e.printStackTrace(); Toast.makeText(getApplicationContext(), Your current location is temporarily unavailable - Try Again!, Toast.LENGTH_LONG).show(); } === public class MyLocationListener implements LocationListener { @Override public void onLocationChanged(Location loc) { } @Override public void onProviderDisabled(String provider) { } @Override public void onProviderEnabled(String provider) { } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } } === Please help me what can i do? i didn't understand... -- 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: edittext focus in tablerow
Hi See this http://lmgtfy.com/?q=requestfocus+android 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: edittext focus in tablerow
This is the example: EditText android:id=@+id/editTextCurrentPassword android:layout_width=wrap_content android:layout_height=37dp * requestFocus /* /EditText -- 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: A necessary question about GPS and Multitasking.. Please help me!
Yes, read about AlarmManager http://developer.android.com/reference/android/app/AlarmManager.html On Thursday, August 23, 2012 12:43:34 AM UTC+1, EricAllen wrote: I have an idea for an applicationhttp://www.iphonedevsdk.com/forum/iphone-sdk-development/107136-a-necessary-question-about-gps-and-multitasking-please-help-me.html# but the creation of the app rides on the flexibility of smartphone software. Here is my question, I hope somebody has some insight I would appreciate it greatly.. Can the android/windows platform do a scheduled GPS location search on a timer, when the application that is responsible for the GPS location search is running in the background. (multitasking) OR even when the app is not active? Example: Every hour, the app that is minimized in the multitasking tab is programmed to do a GPS location search. I've been working on this idea for a long time and if anyone has a definitive answer please, can you help me? Thanks again -- 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: Help with application
Use this link to Start your training. hope this will help you http://developer.android.com/training/index.html Thanks Juned Khan -- 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 bring to front stopped (background) application instead of launch new one
Replying back to the list, where this belongs: On Thu, Aug 23, 2012 at 4:35 AM, Andy rejm...@gmail.com wrote: W dniu środa, 22 sierpnia 2012 23:14:24 UTC+2 użytkownik Mark Murphy (a Commons Guy) napisał: No, the activity is destroyed if the user presses the BACK button, at least normally. Well, my app counts down some time choosen by a user and then plays a ringtone. There are many, many apps on the Play Store that do this already. When a user presses back key while countdown, after a some time one can ALWAYS hear a ringtone, but there is no way to return to the application. So, you have a bug in your app. If the user presses BACK, one of two things should happen: 1. The countdown stops 2. The countdown continues, where the countdown is managed by a service, possibly with an associated Notification to allow the user to launch an activity to stop the countdown When I launch the app second time I see that there is 2 instances of the app (I'm using getInstancesCount() ). First, app != activity. They are not even spelled the same. Second, getInstanceCount() has been removed from the SDK, and so your app will crash on API Level 11+. My problem is how to get back to this frozen app instead of launching its new instance. You can't. Your first instance of the activity leaked stuff. Don't do that. If you wish the countdown to continue past a BACK press, have the countdown by managed by a service, such that a new activity can then tell the service to stop, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/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] Re: connecting database...
Hi Laxman, yeah its possible to connect the Mysql database with android application. you need to use JSON to pass the object. see the following links. http://www.helloandroid.com/tutorials/connecting-mysql-database There are lots of tutorial about this please review it and if is there any problem then post it . Thanks Juned Khan -- 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 bring to front stopped (background) application instead of launch new one
Hi Andy, Use this code in your activity to do that, public void onBackPressed() { Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } Thanks Juned Khan -- 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] Kindle Fire won't display tabs
No, I didn't even know they had developer support. I will definitely do that, thanks for the tip! On Wed, Aug 22, 2012 at 11:28 PM, Justin Anderson magouyaw...@gmail.comwrote: Have you tried asking Amazon's developer support? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 20, 2012 at 8:37 AM, Melanie Peterson melanie.sue.peter...@gmail.com wrote: I have an Android app that uses tabs for its start menu. The tabs don't display when I port the app to a Kindle Fire. Here's the code: ?xml version=1.0 encoding=utf-8? ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=wrap_content android:layout_width=fill_parent android:isScrollContainer=true LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical TabHost android:id=@+id/tabhost android:layout_width=match_parent android:layout_height=match_parent LinearLayout android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical TabWidget android:id=@android:id/tabs android:layout_width=match_parent android:layout_height=wrap_content /TabWidget FrameLayout android:id=@android:id/tabcontent android:layout_width=match_parent android:layout_height=match_parent LinearLayout android:id=@+id/Beginning android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical /LinearLayout LinearLayout android:id=@+id/Intermediate android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical /LinearLayout LinearLayout android:id=@+id/Advanced android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical /LinearLayout /FrameLayout /LinearLayout /TabHost /LinearLayout /ScrollView package com.myproject.project; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.content.res.AssetManager; import android.database.Cursor; import android.graphics.Color; import android.graphics.Typeface; import android.os.Bundle; import android.os.Environment; import android.view.Gravity; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TabHost; import android.widget.TabHost.TabSpec; import android.widget.TextView; import android.widget.Toast; public class TabsTestActivity extends Activity { /** Called when the activity is first created. */ public static final String KEY_ROWID = _id; public static final String KEY_NAME = name; public static final String KEY_LEVEL = level; public static final String KEY_CHART = charted; public String extStorageDirectory = Environment .getExternalStorageDirectory().toString(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); PopulateDatabase(); CopyVideoFiles(); TabHost tabhost = (TabHost) findViewById(R.id.tabhost); tabhost.setup(); TabSpec spec_beg = tabhost.newTabSpec(Beginning); spec_beg.setContent(R.id.Beginning); TextView txtTabInfo = new TextView(this); txtTabInfo.setText(JUST STARTING); Typeface font = Typeface.createFromAsset(getAssets(), danielbd.ttf); txtTabInfo.setTypeface(font); txtTabInfo.setGravity(Gravity.CENTER); txtTabInfo.setHeight(50); txtTabInfo.setBackgroundColor(Color.parseColor(#CCDE8A)); txtTabInfo.setTextColor(Color.parseColor(#262405)); spec_beg.setIndicator(txtTabInfo); TabSpec spec_int = tabhost.newTabSpec(Intermediate); spec_int.setContent(R.id.Intermediate); txtTabInfo = new TextView(this); txtTabInfo.setText(GETTING THERE); txtTabInfo.setTypeface(font); txtTabInfo.setGravity(Gravity.CENTER); txtTabInfo.setHeight(50); txtTabInfo.setBackgroundColor(Color.parseColor(#CCDE8A)); txtTabInfo.setTextColor(Color.parseColor(#262405));
Re: [android-developers] Android button position changes while the screen rotating
i suggest that to use one orientation of screen: try this code-it shows your app only in Portal orientation-but it is optional for your taste :) super.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); -- 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: Nexus 7 not visible to adb over usb (WIndows 7 x64, up to date Jelly Bean sdk)
In MTP my Nexus 7 displays just fine. What I think you are having a problem with is the actual driver for the Nexus 7. What I had to do was install the Google USB driver for it, instead of the Asus one because it has adb problems. If you want I can send you the driver and screenshot of mine working in MTP mode. On Thursday, August 16, 2012 10:15:21 AM UTC-6, mkh wrote: I'm happy to answer my own question. 1) Can't blame Windows! 2) When the Nexus 7 is plugged in there is a persistent notification that indicates CONNECT AS / Media Device (MTP). In this state adb devices will not show the Nexus. Not exactly obvious why, but I you select the second option Camera (PTP) the device is available for debugging. This choice is persistent, and I'm guessing that with a band new device it will connect as MTP until told otherwise. On Friday, August 10, 2012 8:39:08 AM UTC-7, mkh wrote: Trying to force feed myself Windows to build character, and the seemly trivial thing of plugging in a Nexus 7 to a Dell xps 15z Tand debugging a hello world app on it from Eclipse Juno with the latest ADT plugin has me stumped. Developer options were turned on, and USB debugging enabled. The device just does not show up, not in Eclipse, or in adb devices. The first time I had not installed the USB driver from the sdk. In this case the Nexus 7 shows up in the WIndows devices under Portable Devices and a filesystem can be browsed from Windows. Next I installed the google USB driver. Now the Nexus 7 shows up in the Windows devices as Android Phone/Android composite ADB interface, and at that point I thought I was moments away from looking at Hello World and moving on to something interesting, but wait, there's more, adb remained blind to the Nexus7. Any ideas, or suggestions for debugging this problem would be appreciated... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with App name with new ADT plugin
So, I have managed to find a repeatable bug that alot of people are having problems with with the new ADT concerning the new android app wizard. When you create an app, you give it a name. I select dont create clipart image, select the basic activity as opposed to the fragmented one, and click next all the way throiugh. When I run my app, the app name is MainActivity instead of the name I picked for the application. The only way I have found to fix this is by changing the first activities android:label from title_main_activity to android:label=@string/app_name. Why did the new ADT integrate a feature where the app_name and the main activity name are different, but made it bug up the actual way your app looks in the app drawer? In the application list (where you unintall apps) it displays the correct name, but in the app drawer itself, it shows the first activity name. -- 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: App Name appears as Activity Name
There is a new bug that many people are running into with the new ADT where the main activities label is used for the app name in the app drawer (so your app name will be the name of your main activity). What you ahve to do to fix this is go to the first activiy in your android manifest and change the android:label=@string/title_main_activity to android:label=@string/app_name Your program will still share the name with your main activity, but since its named the same as the application name, it will appear correctly. Im trying to addres this issue with google, jsut cant seem to find where to submit a bug to them On Wednesday, July 25, 2012 10:20:56 AM UTC-6, Tre Stange wrote: Hi there. I've created an App and I can not get the app name to appear below the icon on the app list. It show's the Activity name and no matter what I do, I can't get the actual app name to display. Anyone ever run into such an issue, have any thoughts on conquering this oddity?? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] x86 Emulator Image for Jelly Bean and with Google APIs
Hi, I've recently tried out the only available x86 emulator image (ICS 4.0.3) with intel CPU-supported virtualization on Windows and the performance improvement of the emulator is amazing. Unfortunately the available image does *not* include the Google API and as my app requires google authentication it will not run without modifications on this device. So here are my questions: 1. Will there be any x86 emulator images including Google APIs? 2. Will there be a x86 emulator image for Jelly Bean? 3. If none of the above: What are the reasons and are there any workarounds? Thanks and best regards Sven -- 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] x86 Emulator Image for Jelly Bean and with Google APIs
On Thu, Aug 23, 2012 at 9:25 AM, sven sven.span...@gmail.com wrote: Will there be any x86 emulator images including Google APIs? Will there be a x86 emulator image for Jelly Bean? IIRC, Google indicated at Google I|O 2012 that both of those are dependent upon assistance from Intel. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/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
Re: [android-developers] Help!!!
I was trying to send and receive string commands to a remote device(Arduino) but the message doesn't go through On Wednesday, 22 August 2012 04:10:07 UTC+1, TreKing wrote: On Mon, Aug 20, 2012 at 1:30 PM, Androideed nnamdi.an...@gmail.comjavascript: wrote: its not working! what am I doing wrong? Not explaining what it's not working means. http://www.catb.org/~esr/faqs/smart-questions.html - 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] Help!!!
Thanks I noticed that after I posted, however that isn't the issue. Is there a way to send and receive messages using TCP connections in android? On Wednesday, 22 August 2012 04:49:41 UTC+1, krishna wrote: what is viewtext? is it TextView or EditText? if you want to get text from TextView/EditText call viewtext.getText().toString(). On Wed, Aug 22, 2012 at 8:40 AM, TreKing treki...@gmail.com javascript: wrote: On Mon, Aug 20, 2012 at 1:30 PM, Androideed nnamdi.an...@gmail.comjavascript: wrote: its not working! what am I doing wrong? Not explaining what it's not working means. http://www.catb.org/~esr/faqs/smart-questions.html - 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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] x86 Emulator Image for Jelly Bean and with Google APIs
ah, thanks for the info. These are bad news... -- 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: Problem : Always getting previous LastKnownLocation
The code works as you designed it. To get fresh locations you need to fully implement onLocationChanged() On Thursday, August 23, 2012 7:53:25 AM UTC-4, Rajan wrote: Hey guys i am trying to get the user's current location through GPS but i always get the previous LastKnownLocation. I am trying this since last 4 to 5 hours but i didn't find the refereched current location. can anybody plz tell me how can i remove a listener of the lastknownlocation. i had also try this code : locationManager.removeUpdates(locationListener); but i didn't get success. === this is my code : === Location location=null; double lat1,lng1; LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); LocationListener mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener); location = mlocManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); mlocManager.removeUpdates(mlocListener); Toast.makeText(this, previous update is removed, Toast.LENGTH_LONG).show(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener); location = mlocManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); try { lat1=location.getLatitude(); lng1=location.getLongitude(); Toast.makeText(this, lat : +lat1+, lng : +lng1, Toast.LENGTH_LONG).show(); } catch(Exception e) { e.printStackTrace(); Toast.makeText(getApplicationContext(), Your current location is temporarily unavailable - Try Again!, Toast.LENGTH_LONG).show(); } === public class MyLocationListener implements LocationListener { @Override public void onLocationChanged(Location loc) { } @Override public void onProviderDisabled(String provider) { } @Override public void onProviderEnabled(String provider) { } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } } === Please help me what can i do? i didn't understand... -- 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 can I calculate the BPM (Beats per minute) of a sound in a native android project?
You most likely need the NDK for that. So Spooky's advice still stands. On Thursday, August 23, 2012 5:21:52 AM UTC-4, Pau Rodríguez Coloma wrote: Sorry, I made a mistake when I said that I'm developing a native app. What I mean is that I'm using the SDK, not PhoneGap or something similar. El jueves, 23 de agosto de 2012 00:33:36 UTC+2, Spooky escribió: On Wed, Aug 22, 2012 at 03:56:44AM -0700, Pau Rodr??guez Coloma wrote: I'm developing a native android app Cool. But you're in the wrong e-mail list for native apps. You are *FAR* more likely to get a useful response if you post your question to andro...@googlegroups.com instead of this one, which is for developing Android apps using the SDK (java). Good luck with your app. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spook...@gmail.comICBM/Hurr.: 30.44406N 86.59909W The iPad is a status symbol for yuppies. The Android is for people who actually want something that works. Android Apps Listing at http://www.jstrack.org/barcodes.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] what mean this code?
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); -- 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] Abridged summary of android-developers@googlegroups.com - 74 Messages in 55 Topics
-- 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] networking on the main thread?
Is there any way to tell Android to let me do networking on the main thread? This will help me when I'm testing stuff. -- 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 mean this code?
It shows a tiny circular progress bar in your window titlebar. On Thursday, August 23, 2012 9:58:32 AM UTC-5, Ivoney Borges wrote: requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); -- 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] networking on the main thread?
Set your build target to something below Honeycomb. thanks -- Raghav Sood http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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: App Name appears as Activity Name
Please file it at http://b.android.com and use category Component-Tools . -- Tor On Thu, Aug 23, 2012 at 6:19 AM, Compguru910 compguru...@gmail.com wrote: There is a new bug that many people are running into with the new ADT where the main activities label is used for the app name in the app drawer (so your app name will be the name of your main activity). What you ahve to do to fix this is go to the first activiy in your android manifest and change the android:label=@string/title_main_activity to android:label=@string/app_name Your program will still share the name with your main activity, but since its named the same as the application name, it will appear correctly. Im trying to addres this issue with google, jsut cant seem to find where to submit a bug to them On Wednesday, July 25, 2012 10:20:56 AM UTC-6, Tre Stange wrote: Hi there. I've created an App and I can not get the app name to appear below the icon on the app list. It show's the Activity name and no matter what I do, I can't get the actual app name to display. Anyone ever run into such an issue, have any thoughts on conquering this oddity?? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with App name with new ADT plugin
This is probably an accidental side effect of the fact that the New Project wizard now no longer hardcodes a simple hello world activity, it lets you pick between several different types of activities, and these are also used when you add an activity to a project (where you do want each activity to have their own name). I've filed http://code.google.com/p/android/issues/detail?id=36630 to track this. -- Tor On Thu, Aug 23, 2012 at 6:15 AM, Compguru910 compguru...@gmail.com wrote: So, I have managed to find a repeatable bug that alot of people are having problems with with the new ADT concerning the new android app wizard. When you create an app, you give it a name. I select dont create clipart image, select the basic activity as opposed to the fragmented one, and click next all the way throiugh. When I run my app, the app name is MainActivity instead of the name I picked for the application. The only way I have found to fix this is by changing the first activities android:label from title_main_activity to android:label=@string/app_name. Why did the new ADT integrate a feature where the app_name and the main activity name are different, but made it bug up the actual way your app looks in the app drawer? In the application list (where you unintall apps) it displays the correct name, but in the app drawer itself, it shows the first activity name. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] networking on the main thread?
Or just don't do it. :) It's a terrible habit, even for testing. Async tasks are so simple, there's not really a good excuse for it. Larry On Thu, Aug 23, 2012 at 9:12 AM, Raghav Sood raghavs...@gmail.com wrote: Set your build target to something below Honeycomb. thanks -- Raghav Sood http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: contextmenu
On Thursday, August 23, 2012 4:12:44 AM UTC+1, MagouyaWare wrote: Take a look at the logcat output... What do you see? It should give you the reason for the crash as well as a stack trace that often points the exact file and line number that is the cause. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 22, 2012 at 8:05 PM, Jegadeesan M jeg...@gmail.comjavascript: wrote: please check this link : http://grepsrc.com/search?q=Contextmenudefs=refs=path=hist=project=ics-mr1 On Wednesday, 22 August 2012 18:46:50 UTC-7, aek wrote: Hi there, I wrote this short android program, however I am geting a problem. When the context menu appears and I click for instance on one of its items such as Edit or Delete. a system pop up alert info arise saying that the process stoped unexpectedly. I tried different strategy to solve but unfortunately it is fruitless. Thanks for your help. abdelkader -**-- package com.example.context_menu; import android.os.Bundle; import android.app.Activity; import android.app.ListActivity; import android.view.ContextMenu; import android.view.ContextMenu.**ContextMenuInfo; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView.**AdapterContextMenuInfo; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import android.support.v4.app.**NavUtils; public class ContextMenuActivity extends Activity { final int EDIT_ID = 0, DELETE_ID = 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(**savedInstanceState); setContentView(R.layout.**activity_context_menu); registerForContextMenu(**findViewById(R.id.textView1)); } public void onCreateContextMenu(**ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(**menu, v, menuInfo); menu.add(0, EDIT_ID, 0, Edit); menu.add(0, DELETE_ID, 0, Delete); } public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); switch (item.getItemId()) { case EDIT_ID: editNote(info.id); return true; case DELETE_ID: deleteNote(info.id); return true; default: return super.onContextItemSelected(**item); } } public void editNote(long x){ Toast.makeText(**getApplicationContext(), hello + x, Toast.LENGTH_LONG).show(); } public void deleteNote(long x){ Toast.makeText(**getApplicationContext(), hello + x, Toast.LENGTH_LONG).show(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.**menu.activity_context_menu, menu); return true; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Hi there I tried to understand the log error unfortunately I could not fix the pb. any help, thank you very much here is the log cat 08-23 01:29:46.499: D/AndroidRuntime(1296): Shutting down VM 08-23 01:29:46.499: W/dalvikvm(1296): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 08-23 01:29:46.508: E/AndroidRuntime(1296): FATAL EXCEPTION: main 08-23 01:29:46.508: E/AndroidRuntime(1296): java.lang.NullPointerException 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.example.context_menu.ContextMenuActivity.onContextItemSelected(ContextMenuActivity.java:50) 08-23 01:29:46.508: E/AndroidRuntime(1296): at android.app.Activity.onMenuItemSelected(Activity.java:2199) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback.onMenuItemSelected(PhoneWindow.java:2744) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:137) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:874) 08-23 01:29:46.508: E/AndroidRuntime(1296): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 08-23 01:29:46.508: E/AndroidRuntime(1296): at android.widget.ListView.performItemClick(ListView.java:3382) 08-23
[android-developers] Best Practices for many calls to API
Hi I'm developing an Android App for an enterprise(just for smartphone, no tablet). This app needs to make many request to an API to fill 3 or 4 carrousels, the problem is that it takes too much time, i believe this happens because the request to the API are made sequentially. Is there any way to make concurrent request to an API to fill differents layouts???Or maybe a best practice for an Android app which needs to make too many API requests??? Sincerely, Christian Palomares -- 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: Catch HTTP error code with WebView
that is not a solution. if we require anything more complicated than a simple fetch of a single page, this doesn't work. the ability to completely override resource loading isn't available until API 11. On Monday, March 15, 2010 2:40:43 AM UTC-7, Manuel Vela wrote: Ok, the only solution I've found is to create an HTTPClient to create connection and do a Get petition. With this method I can get everything (header, status... etc) in the response and then give all datas to the Webview with webView.loadDataWithBaseUrl. Something like this: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(http://ja.wikipedia.org/wiki/刀;;); HttpResponse response; BufferedReader real_response = null; try { response = httpclient.execute(httpget); new InputStreamReader( response.getEntity().getContent(), UTF-8)); } catch (Exceptionn e) { e.printStackTrace(); } if (real_response != null) { String data = ; String tempdata = ; try { while ((tempdata = real_response.readLine()) ! = null) { data += tempdata; } } catch (Exception e) { e.printStackTrace(); } wv.loadDataWithBaseURL(http://www.lliane.com/;;, data, text/html, UTF-8, about:blank); } -- 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] Best Practices for many calls to API
I use an async task and a listener interface on my activity/fragment. So, I create an interface like this: public interface SearchResultListener { public void onSearchResults(MapString, ListContentListItem results); } Then my activity/fragment implements that interface: public class SearchActivity extends Activity implements SearchResultListener { Then make a task like this: public SearchTitlesTask(SearchResultListener listener) { this.listener = listener; } Then when I run the activity, it creates and executes the task like this: new SearchTitlesTask(this).execute(query); Then in the onPostExecute of the task, I do this: protected void onPostExecute(LinkedHashMapString, ListContentListItem results) { if(null != listener){ listener.onSearchResults(results); } } Larry On Thu, Aug 23, 2012 at 10:53 AM, Christian Palomares (ShinjiDev) palomare...@gmail.com wrote: Hi I'm developing an Android App for an enterprise(just for smartphone, no tablet). This app needs to make many request to an API to fill 3 or 4 carrousels, the problem is that it takes too much time, i believe this happens because the request to the API are made sequentially. Is there any way to make concurrent request to an API to fill differents layouts???Or maybe a best practice for an Android app which needs to make too many API requests??? Sincerely, Christian Palomares -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to make updates to my app at store and alert users about new updates?
On Thu, Aug 23, 2012 at 4:41 AM, Hady Abd alkhalik ibnserin2...@gmail.comwrote: i have thousands of android tablets and we will put APK file on the ROM of Android OS to be a built in app and then will put the same APK file to Google play.do you think any update on Google play will reflect to installed APK files on tablets. If you're asking if the users of the app with the pre-installed version will be notified that there is an update on Google Play, then yes, they will. - 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] How to get every time new/refreshed Current Location
On Thu, Aug 23, 2012 at 2:03 AM, Rajan Thakrar r.d.thak...@gmail.comwrote: can you please provide some code snippet, so i can understand. There is a section in the documentation on finding the user's location. Read it, learn it, love it. - 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] Best Practices for many calls to API
On Thu, Aug 23, 2012 at 11:53 AM, Christian Palomares (ShinjiDev) palomare...@gmail.com wrote: Or maybe a best practice for an Android app which needs to make too many API requests??? This is really going to depend on the API in question and your app, so I don't think you're going to find any perfect solution. - 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: contextmenu
Sounds like *getMenuInfo* is returning null. On Thursday, August 23, 2012 11:33:13 AM UTC-5, aek wrote: On Thursday, August 23, 2012 4:12:44 AM UTC+1, MagouyaWare wrote: Take a look at the logcat output... What do you see? It should give you the reason for the crash as well as a stack trace that often points the exact file and line number that is the cause. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 22, 2012 at 8:05 PM, Jegadeesan M jeg...@gmail.com wrote: please check this link : http://grepsrc.com/search?q=Contextmenudefs=refs=path=hist=project=ics-mr1 On Wednesday, 22 August 2012 18:46:50 UTC-7, aek wrote: Hi there, I wrote this short android program, however I am geting a problem. When the context menu appears and I click for instance on one of its items such as Edit or Delete. a system pop up alert info arise saying that the process stoped unexpectedly. I tried different strategy to solve but unfortunately it is fruitless. Thanks for your help. abdelkader -**-- package com.example.context_menu; import android.os.Bundle; import android.app.Activity; import android.app.ListActivity; import android.view.ContextMenu; import android.view.ContextMenu.**ContextMenuInfo; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView.**AdapterContextMenuInfo; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import android.support.v4.app.**NavUtils; public class ContextMenuActivity extends Activity { final int EDIT_ID = 0, DELETE_ID = 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(**savedInstanceState); setContentView(R.layout.**activity_context_menu); registerForContextMenu(**findViewById(R.id.textView1)); } public void onCreateContextMenu(**ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(**menu, v, menuInfo); menu.add(0, EDIT_ID, 0, Edit); menu.add(0, DELETE_ID, 0, Delete); } public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); switch (item.getItemId()) { case EDIT_ID: editNote(info.id); return true; case DELETE_ID: deleteNote(info.id); return true; default: return super.onContextItemSelected(**item); } } public void editNote(long x){ Toast.makeText(**getApplicationContext(), hello + x, Toast.LENGTH_LONG).show(); } public void deleteNote(long x){ Toast.makeText(**getApplicationContext(), hello + x, Toast.LENGTH_LONG).show(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.**menu.activity_context_menu, menu); return true; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 -- Hi there I tried to understand the log error unfortunately I could not fix the pb. any help, thank you very much here is the log cat 08-23 01:29:46.499: D/AndroidRuntime(1296): Shutting down VM 08-23 01:29:46.499: W/dalvikvm(1296): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 08-23 01:29:46.508: E/AndroidRuntime(1296): FATAL EXCEPTION: main 08-23 01:29:46.508: E/AndroidRuntime(1296): java.lang.NullPointerException 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.example.context_menu.ContextMenuActivity.onContextItemSelected(ContextMenuActivity.java:50) 08-23 01:29:46.508: E/AndroidRuntime(1296): at android.app.Activity.onMenuItemSelected(Activity.java:2199) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback.onMenuItemSelected(PhoneWindow.java:2744) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:137) 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:874) 08-23 01:29:46.508: E/AndroidRuntime(1296): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 08-23 01:29:46.508:
Re: [android-developers] Best Practices for many calls to API
True: Based on the question (the problem is that it takes too much time) I assumed they were going over the wire, in which case, doing them as I suggested would help. But if the delay is due to CPU constraints rather than waiting for responses, my suggestion would probably make it worse. :-D Larry On Thu, Aug 23, 2012 at 12:17 PM, TreKing treking...@gmail.com wrote: On Thu, Aug 23, 2012 at 11:53 AM, Christian Palomares (ShinjiDev) palomare...@gmail.com wrote: Or maybe a best practice for an Android app which needs to make too many API requests??? This is really going to depend on the API in question and your app, so I don't think you're going to find any perfect solution. - 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 -- 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] networking on the main thread?
I set it to 2.3.3, and this did not work. On Thursday, August 23, 2012 10:12:01 AM UTC-5, Raghav Sood wrote: Set your build target to something below Honeycomb. thanks -- Raghav Sood http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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] Android button position changes while the screen rotating
Not sure if this is the same, but I put this in my AndroidManifest.xml: activity android:screenOrientation=portrait On Thursday, August 23, 2012 7:51:54 AM UTC-5, baturanija1 wrote: i suggest that to use one orientation of screen: try this code-it shows your app only in Portal orientation-but it is optional for your taste :) super.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); -- 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!!!
Socket socket = new Socket(192.168.0.196, 1000); OutputStream ostream = socket.getOutputStream(); String greeting_Command = new String( HI ); byte[] b = greeting_Command.getBytes(us-ascii); ostream.write(b); istream = socket.getInputStream(); byte[] reply = new byte[4096]; istream.read(reply); On Thursday, August 23, 2012 9:16:23 AM UTC-5, Androideed wrote: Thanks I noticed that after I posted, however that isn't the issue. Is there a way to send and receive messages using TCP connections in android? On Wednesday, 22 August 2012 04:49:41 UTC+1, krishna wrote: what is viewtext? is it TextView or EditText? if you want to get text from TextView/EditText call viewtext.getText().toString(). On Wed, Aug 22, 2012 at 8:40 AM, TreKing treki...@gmail.com wrote: On Mon, Aug 20, 2012 at 1:30 PM, Androideed nnamdi.an...@gmail.comwrote: its not working! what am I doing wrong? Not explaining what it's not working means. http://www.catb.org/~esr/faqs/smart-questions.html - 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-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Best Practices for many calls to API
I believe the problem is that it REALLY takes too much time, because the requests are made sequentially. I think it can be made with many asynctasks. Thanks for the tips. Sincerely 2012/8/23 Larry Meadors larry.mead...@gmail.com True: Based on the question (the problem is that it takes too much time) I assumed they were going over the wire, in which case, doing them as I suggested would help. But if the delay is due to CPU constraints rather than waiting for responses, my suggestion would probably make it worse. :-D Larry On Thu, Aug 23, 2012 at 12:17 PM, TreKing treking...@gmail.com wrote: On Thu, Aug 23, 2012 at 11:53 AM, Christian Palomares (ShinjiDev) palomare...@gmail.com wrote: Or maybe a best practice for an Android app which needs to make too many API requests??? This is really going to depend on the API in question and your app, so I don't think you're going to find any perfect solution. - 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 -- 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://shinjidev.com Administrador del Grupo Python-Perú -- 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 check table is empty or not
You can do: select count(*) from my_table; This gives you the number of records. If it's 0, table's empty. On Thursday, August 23, 2012 5:12:58 AM UTC-5, Sadhna Upadhyay wrote: Hi everybody, can some one tell me how to check table is empty or not actually after deleting records from table ,when i click on view button force close error.and if table is not empty then there is not any error on clicking view button so i want to apply a condition if table is empty then toast massage or aert shold pop when we try view empty table in database. Thanks sadhana -- 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 first Android App is not working
Not saying it should, it is my first after all, but I'm trying and so far there's been some progress here and there but tying it all together now isn't working out right. I'm new to Java as well so I'm sure the problems are related to my poor skills writing java code at this point. Please don't be offended by my code below. I know it's bad and shames even the newest programmer. I do take feedback well and any and all improvements will be greatly appreciated. br br GOAL (SHORT): OnClick Button appends own getText to TextView/OnClick Call Button invokes ACTION_CALL br br GOAL (LONG): The app is a simple dialer app the user uses to dial a destination number (most often an international number) and then the app uses ACTION_CALL to call a routing number, passing it the destination number the user entered. I assumed this would be relatively simple since the app actually has very little work to do. The authorization and account details are handled by our server and has been using the phone number for years as the auth source. So the app just needs to place the call to the access number and the user will be authenticated on the server based on their phone number. So calling is all there is to it. (At least I think so...) ;) br br So my dialer app is suffering from user-headspace issues where the buttons won't update the Text View field in order to enter a valid phone number. In the layout I have the TextView and the EditText, as well as all the buttons with IDs. In the class I set up some cases where the button is pressed, it gets the text from the TextView, and sets the text of the TextView to the getText + button.getText. (You'll see in the code below) but the button's actually do nothing. Also, the button set to the ACTION_CALL intent does nothing as well. br br I have the permission and intents set in the manifest but I will post that if anyone suspects my problem might lie in that file. Here is the code for the layout, activity_main.xml: br br pre?xml version=1.0 encoding=utf-8? br LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; br android:id=@+id/mainlayout br android:layout_width=fill_parent br android:layout_height=fill_parent br android:orientation=vertical br br TextView br android:id=@+id/textView1 br android:layout_width=match_parent br android:layout_height=wrap_content br android:gravity=center br android:text=@string/title_two br android:textAppearance=?android:attr/textAppearanceLarge / br br EditText br android:id=@+id/editText1 br android:layout_width=match_parent br android:layout_height=wrap_content br android:ems=10 br android:maxLength=15 br requestFocus / br /EditText br br LinearLayout br android:orientation=horizontal br android:layout_height=wrap_content br android:layout_width=fill_parent br Button br android:id=@+id/oneButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=1 / br Button br android:id=@+id/twoButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=2 / br Button br android:id=@+id/threeButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=3 / br /LinearLayout br LinearLayout br android:orientation=horizontal br android:layout_height=wrap_content br android:layout_width=fill_parent br Button br android:id=@+id/fourButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=4 / br Button br android:id=@+id/fiveButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=5 / br Button br android:id=@+id/sixButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=6 / br /LinearLayout br LinearLayout br android:orientation=horizontal br android:layout_height=wrap_content br android:layout_width=fill_parent br Button br android:id=@+id/sevenButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=7 / br Button br android:id=@+id/eightButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=8 / br Button br android:id=@+id/nineButton br android:layout_width=93dp br android:layout_height=wrap_content br android:text=9 / br /LinearLayout br LinearLayout br
Re: [android-developers] Android button position changes while the screen rotating
On Thu, Aug 23, 2012 at 6:30 AM, Haris haris...@gmail.com wrote: But when I rotate the screen all the button position get changed... and I need all the button placed at centre of the screen Try using a LinearLayout with the proper gravity settings. On Thu, Aug 23, 2012 at 7:51 AM, Jadranko Bodiroga jadrankobodiroga1...@gmail.com wrote: i suggest that to use one orientation of screen: Why? This is kludge that will cause more problems than it will fix in this simple case. - 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] My first Android App is not working
Not saying it should, it is my first after all, but I'm trying and so far there's been some progress here and there but tying it all together now isn't working out right. I'm new to Java as well so I'm sure the problems are related to my poor skills writing java code at this point. Please don't be offended by my code below. I know it's bad and shames even the newest programmer. I do take feedback well and any and all improvements will be greatly appreciated. GOAL (SHORT): OnClick Button appends own getText to TextView/OnClick Call Button invokes ACTION_CALL GOAL (LONG): The app is a simple dialer app the user uses to dial a destination number (most often an international number) and then the app uses ACTION_CALL to call a routing number, passing it the destination number the user entered. I assumed this would be relatively simple since the app actually has very little work to do. The authorization and account details are handled by our server and has been using the phone number for years as the auth source. So the app just needs to place the call to the access number and the user will be authenticated on the server based on their phone number. So calling is all there is to it. (At least I think so...) ;) So my dialer app is suffering from user-headspace issues where the buttons won't update the Text View field in order to enter a valid phone number. In the layout I have the TextView and the EditText, as well as all the buttons with IDs. In the class I set up some cases where the button is pressed, it gets the text from the TextView, and sets the text of the TextView to the getText + button.getText. (You'll see in the code below) but the button's actually do nothing. Also, the button set to the ACTION_CALL intent does nothing as well. I have the permission and intents set in the manifest but I will post that if anyone suspects my problem might lie in that file. Here is the code for the layout, activity_main.xml: pre?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/mainlayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:id=@+id/textView1 android:layout_width=match_parent android:layout_height=wrap_content android:gravity=center android:text=@string/title_two android:textAppearance=?android:attr/textAppearanceLarge / EditText android:id=@+id/editText1 android:layout_width=match_parent android:layout_height=wrap_content android:ems=10 android:maxLength=15 requestFocus / /EditText LinearLayout android:orientation=horizontal android:layout_height=wrap_content android:layout_width=fill_parent Button android:id=@+id/oneButton android:layout_width=93dp android:layout_height=wrap_content android:text=1 / Button android:id=@+id/twoButton android:layout_width=93dp android:layout_height=wrap_content android:text=2 / Button android:id=@+id/threeButton android:layout_width=93dp android:layout_height=wrap_content android:text=3 / /LinearLayout LinearLayout android:orientation=horizontal android:layout_height=wrap_content android:layout_width=fill_parent Button android:id=@+id/fourButton android:layout_width=93dp android:layout_height=wrap_content android:text=4 / Button android:id=@+id/fiveButton android:layout_width=93dp android:layout_height=wrap_content android:text=5 / Button android:id=@+id/sixButton android:layout_width=93dp android:layout_height=wrap_content android:text=6 / /LinearLayout LinearLayout android:orientation=horizontal android:layout_height=wrap_content android:layout_width=fill_parent Button android:id=@+id/sevenButton android:layout_width=93dp android:layout_height=wrap_content android:text=7 / Button android:id=@+id/eightButton android:layout_width=93dp android:layout_height=wrap_content android:text=8 / Button android:id=@+id/nineButton android:layout_width=93dp android:layout_height=wrap_content android:text=9 / /LinearLayout LinearLayout android:orientation=horizontal android:layout_height=wrap_content android:layout_width=fill_parent Button android:id=@+id/starButton android:layout_width=93dp android:layout_height=wrap_content
[android-developers] Highlighting certain parts of image!
Hi,How to highlight and selecting parts of an image.I have searched on stack overflow but couldn't understand much of it.I some body have any simple but impressive example or tutorial.Please do share with me.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] How to manage slow internet connections?
Hi Is there any recommended way to manage slow internet connections in an Android app???I've tried with many try/catch, but i don't think is the best way to do it :( -- 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 manage slow internet connections?
On Thu, Aug 23, 2012 at 2:02 PM, Christian Palomares (ShinjiDev) palomare...@gmail.com wrote: Is there any recommended way to manage slow internet connections in an Android app??? In what sense? There's nothing really to manage - it's just not fast. I've tried with many try/catch, but i don't think is the best way to do it :( Try / catch what? A slow connection is still a valid connection ... it's just slow. So it shouldn't be throwing exceptions. - 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] My first Android App is not working
On Thu, Aug 23, 2012 at 1:59 PM, RKS sean.sambor...@live.com wrote: the button's actually do nothing. Also, the button set to the ACTION_CALL intent does nothing as well. Narrow your problem to this. You've posted way too much code for people to parse through. Use your debugger. Determine what is working and what is not. When you determine exactly where the problem lies, if you still can't figure out the issue, come back with the smallest snippet of code required to illustrate the problem and try again. - 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] How to manage slow internet connections?
But, when the internet connection is really slow it throws a timeout, that's why i'm using try/catch. Sometimes with the slow internet connection it forces to close the app. 2012/8/23 TreKing treking...@gmail.com On Thu, Aug 23, 2012 at 2:02 PM, Christian Palomares (ShinjiDev) palomare...@gmail.com wrote: Is there any recommended way to manage slow internet connections in an Android app??? In what sense? There's nothing really to manage - it's just not fast. I've tried with many try/catch, but i don't think is the best way to do it :( Try / catch what? A slow connection is still a valid connection ... it's just slow. So it shouldn't be throwing exceptions. - 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 -- Christian Eduardo Palomares Peralta (ShinjiDev) - http://shinjidev.com Administrador del Grupo Python-Perú -- 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] Synchronize two graphs
I have tree GraphViews (https://github.com/jjoe64/GraphView) in my application and I want to synchronize the viewports of these three graphs. I've already created a method which reports when the viewport was changed and one to set the viewport. But when I scroll in one graph the onDraw method on the other two views are not called. (I call the invalidate method after setting the new viewport, but the onDraw method doesn't get called) The other graphs only get refreshed if I click on them after scrolling the first graph. How can I fix 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] How to manage slow internet connections?
On Thu, Aug 23, 2012 at 2:12 PM, Christian Eduardo Palomares Peralta palomare...@gmail.com wrote: But, when the internet connection is really slow it throws a timeout, that's why i'm using try/catch. OK then. Sometimes with the slow internet connection it forces to close the app. Determine what forces to close the app, then handle it. - 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: How to bring to front stopped (background) application instead of launch new one
On Thu, Aug 23, 2012 at 7:10 AM, Juned Khan jkhan6...@gmail.com wrote: Hi Andy, Use this code in your activity to do that, public void onBackPressed() { Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } Thanks Did you read the OP's issue? Because this is not at all what he's trying to achieve. This will start a new activity when the user tries to close the activity, which is a pretty stupid thing to do. - 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] My first Android App is not working
I do that and people tell me things like, You need to insert the proper XML statement at the top of your file. That's there, but not printing it here makes people assume I've left it out. The Logcat has zero response from a button onClick. It's as if the button has no onClick function at all. I don't mind narrowing the code down, perhaps you can tell me what is unnecessary: the button variables, the cases or the layout? I'm thinking the layout, but perhaps you will tell me otherwise? -- 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 launch Voice Search programatically (ICS)
On Thu, Aug 23, 2012 at 6:23 AM, Mickaël Gachon gachon.mick...@gmail.comwrote: I'm trying to make an application which can launch the google Voice Search in Ice Scream Sandwitch. For what purpose? In general, hardcoding package names as you are doing is a bad idea and error-prone, as you have seen. If the user wants to launch this app, they can do so directly on their own. What are you actually trying to achieve with this? - 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] Securize applications
On Thu, Aug 23, 2012 at 12:55 AM, Chony daniel.ch...@gmail.com wrote: I need to know how to block access to a list of applications from another application to manage it, is that possible? I'm not entirely sure what you're asking, but I'll say no. - 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: contextmenu
Thank you bob, exactly item.getMenuInfo(); return a null value, but I dont know why? however item.getItemId() works fine. as shown bellow. without your help guys, it would have been for me really a mysterious/aborious error to fix, thanks for - public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); if (info == null) Toast.makeText(getApplicationContext(), info null, Toast.LENGTH_LONG).show(); else Toast.makeText(getApplicationContext(), info not null, Toast.LENGTH_LONG).show(); switch (item.getItemId()) { case EDIT_ID: //editNote(info.id); editNote(item.getItemId()); return true; case DELETE_ID: //deleteNote(info.id); deleteNote(item.getItemId()); return true; default: return super.onContextItemSelected(item); } } - On Thursday, August 23, 2012 7:22:41 PM UTC+1, bob wrote: Sounds like *getMenuInfo* is returning null. On Thursday, August 23, 2012 11:33:13 AM UTC-5, aek wrote: On Thursday, August 23, 2012 4:12:44 AM UTC+1, MagouyaWare wrote: Take a look at the logcat output... What do you see? It should give you the reason for the crash as well as a stack trace that often points the exact file and line number that is the cause. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 22, 2012 at 8:05 PM, Jegadeesan M jeg...@gmail.com wrote: please check this link : http://grepsrc.com/search?q=Contextmenudefs=refs=path=hist=project=ics-mr1 On Wednesday, 22 August 2012 18:46:50 UTC-7, aek wrote: Hi there, I wrote this short android program, however I am geting a problem. When the context menu appears and I click for instance on one of its items such as Edit or Delete. a system pop up alert info arise saying that the process stoped unexpectedly. I tried different strategy to solve but unfortunately it is fruitless. Thanks for your help. abdelkader -**-- package com.example.context_menu; import android.os.Bundle; import android.app.Activity; import android.app.ListActivity; import android.view.ContextMenu; import android.view.ContextMenu.**ContextMenuInfo; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView.**AdapterContextMenuInfo; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import android.support.v4.app.**NavUtils; public class ContextMenuActivity extends Activity { final int EDIT_ID = 0, DELETE_ID = 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(**savedInstanceState); setContentView(R.layout.**activity_context_menu); registerForContextMenu(**findViewById(R.id.textView1)); } public void onCreateContextMenu(**ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(**menu, v, menuInfo); menu.add(0, EDIT_ID, 0, Edit); menu.add(0, DELETE_ID, 0, Delete); } public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); switch (item.getItemId()) { case EDIT_ID: editNote(info.id); return true; case DELETE_ID: deleteNote(info.id); return true; default: return super.onContextItemSelected(**item); } } public void editNote(long x){ Toast.makeText(**getApplicationContext(), hello + x, Toast.LENGTH_LONG).show(); } public void deleteNote(long x){ Toast.makeText(**getApplicationContext(), hello + x, Toast.LENGTH_LONG).show(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.**menu.activity_context_menu, menu); return true; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 -- Hi there I tried to understand the log error unfortunately I could not fix the pb. any help, thank you very much here is the log cat 08-23 01:29:46.499: D/AndroidRuntime(1296): Shutting down VM 08-23 01:29:46.499: W/dalvikvm(1296): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 08-23 01:29:46.508: E/AndroidRuntime(1296): FATAL EXCEPTION: main 08-23 01:29:46.508: E/AndroidRuntime(1296): java.lang.NullPointerException 08-23 01:29:46.508: E/AndroidRuntime(1296): at com.example.context_menu.ContextMenuActivity.onContextItemSelected(ContextMenuActivity.java:50) 08-23 01:29:46.508:
Re: [android-developers] My first Android App is not working
On Thu, Aug 23, 2012 at 2:28 PM, RKS sean.sambor...@live.com wrote: The Logcat has zero response from a button onClick. It's as if the button has no onClick function at all. Then check the code where you set up the buttons and their click handlers. If you don't know what the issue is, post 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