[android-developers] ISO8583 ANDRIOD SOLUTION
Morning Every All Kindly seeking assist with a project that am currently working on that requires an app that supports iso8583 message for mobile phones . A pointer to an example of or a working prototype can be very helpful . -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/523ba9cf-e414-4087-9a71-72177761c43b%40googlegroups.com.
[android-developers] Re: Call Recording Android M+ 6.0 Marshmallow 7.0 Nougat
Hey... Just curious if you were able to find a solution to this. On Friday, July 29, 2016 at 1:37:49 PM UTC-7, tidyg...@gmail.com wrote: > > Hi All, > > >- Android 6.0 Marshmallow broke all known commercial call recording >applications > >- We can understand why Google may not have it in the AOSP rom, but >there should be a sound software engineering principle providing it to us >for at least rooted phones. > > > What is that? > > I am prepared to produce loopback alsa devices, use the ndk or > the android.media.MediaRecorder api. > > The target device would be the Nexus 5X with up-to-date Anroid 6 or 7+ and > system-less root. > > What approach should I embark upon, that will produce digital two-way > recording from hereon forward? > > Thanks, > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/8723ca43-f52b-43af-be5b-8470f378f0fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] help, I have a Chinese phone oppo u707t
help, I have a Chinese phone oppo u707t and I could not install google services, not even I could do fastboot oem unlock, if anyone knows how to change the coloros or install google services -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/0b9761bc-b188-4644-aab3-8294470cd5e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Software and Game dedicated keyboards
Dedicated keyboard skins are available like this http://www.solotype.com/images/thumbs/0001168_430.jpeg which showed shortcut keys cheat sheets directly on the keys. This is called a dedicated keyboard. I was thinking I would be great if these dedicated keyboard skins were available on tablets I haven't seen this type of thing yet. Even an on-screen keyboard for pc's to use as a cheat sheet could be helpful there are not many option available to help mesmerising these - I'm always forgetting the Photoshop shortcut keys. When I'm working between after effects, and illustrator and autocad it's gets very confusing each software has different shortcuts. If I could work on tablet and either preview the shortcut key by having them display beside the key letters or switch between a visual "text keyboard" and a "shortcut keyboard" I could be more productive, I'm not suggesting keys in that link I've supplied are good design it's just an example. I will make a keyboard if someone wants to make this just email me template... -- 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: MediaController with MediaPlayer
Hi Giuseppe, You can call MediaController's show(int timeout) method and pass MediaPlayer.getDuration() as parameter to it. Something like myMediacontroller.show(myMP.getDuration()); I hope this helps. Cheers, Isaac On Jan 18, 4:19 pm, Giuseppe wrote: > I would like to show the mediacontroller for all the playing time of > mediaplayer, please how 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] ANDROID WIDGETS
Is the app you are trying to start, a service? On Fri, Oct 28, 2011 at 11:48 AM, Omollo Ateng wrote: > Hi there, am developing an application using both activity and service. I > would like a widget to be on the screen such that if clicked (tapped), it > starts my app, and if again tapped - in a toggle mode, it stops my app. > Please anybody with an idea. > > Best regards > > -- > Be good to not only people but also machines > > -- > 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 -- Thank you, Best Regards Wesley (creative head, Wonder Viz) Mob : +91 9176071494 Confidentiality Notice: This message is intended only for the use of the individual or entity to whom it is addressed and contains information that is privileged and confidential. If you are not the intended recipient, you should not disclose, disseminate, distribute, copy or use any of the information contained in this transmission. If you have received this message in error, please delete it from your system and notify us immediately by telephone or email us back. Thank you. While all reasonable care has been taken in preparing this email, we do not warrant that this email or any attachment to it is free of computer viruses -- 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] SMS is auto-replied in a loop.
If I have got your question right, for your app to app method. You can store the first time value or I'd as a shared prefrences. In your second device. So if your second device gets a new or different I'd. You can stop the receive in device 2. (P.S you can set an auto incremental is for this) On Oct 21, 2011 5:01 PM, "ntt broken" wrote: > > Hi, > > i wrote a simple android app that is auto reply. > i want this to happen only once: > device #1 -> send sms -> device#2 > device#1 <- auto reply text <- device#2 > > the problem is that instead of answering with SMS only once, there's a loop that never ends of replying SMS to the device that sent the first message. > > how can i handle it or tell it to stop after once? > is there an event i need to keep my mind on? a code i need to add that close this thing? a flag or attribute i need to change? > > in the activity i only show hello world text. > i have another file with BroadcastReceiver that gets the incoming SMS: > public class SMSReceiver extends BroadcastReceiver > and my relevant code is in the OnReceive() method: > SmsManager sms = SmsManager.getDefault(); > sms.sendTextMessage(sender, null, answer, null, null); > > Br0k3n. > > -- > 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] Compilation error on my if else statement
I have an error on 'else' code on if-else statment. What's wrong, pls advise. Thank you. //click on one of chapters list.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View view, int position, long id) { String item = ((TextView)view).getText().toString(); Toast.makeText(getBaseContext(), item, Toast.LENGTH_LONG).show(); //Choose Chapter 1 if (item.equalsIgnoreCase("I. The Global Business Environment")); { //go to chapter 1 startActivity(new Intent(ChaptersActivity.this, Chapter1Activity.class)); } else if (item.equalsIgnoreCase("II. Information Systems")); { //go to chapter 2 startActivity(new Intent(ChaptersActivity.this, Chapter2Activity.class)); } //Choose Chapter 3 else if (item.equalsIgnoreCase("III. Operations Management")); { //go to chapter 3 startActivity(new Intent(ChaptersActivity.this, Chapter3Activity.class)); } //Choose Chapter 4 else if (item.equalsIgnoreCase("IV. Marketing")); { //go to chapter 4 startActivity(new Intent(ChaptersActivity.this, Chapter4Activity.class)); } //Choose Chapter 5 else if (item.equalsIgnoreCase("V. Managing Human Capital")); { //go to chapter 5 startActivity(new Intent(ChaptersActivity.this, Chapter5Activity.class)); } //Choose Chapter 6 else if (item.equalsIgnoreCase("VI. Preparing for the Examination")); { //go to chapter 6 startActivity(new Intent(ChaptersActivity.this, Chapter6Activity.class)); } } }); -- 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 change color of fonts in a listView?
I using a listView, but I set its background color to white, due to application requirements. when I run application, it showed a blank white screen when it went into the 'chapters-menu' activity. It only show when I 'highlight' the entire listView while application is running. I've a xml file that has the following layout with listview and buttons here. I try to change front by using 'android:color' attribute to "@color/black", but still show blank screen. Here is the XML file the following are the sources codes import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import android.app.Activity; import android.view.View; public class cimaE1Chapters extends Activity { String[] chapters; /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.cimae1chapters); ListView list = (ListView) findViewById(R.id.chapters_list); chapters = getResources().getStringArray(R.array.chapters_array); list.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, chapters)); } } much help is appreciated. 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] Getting a String to AppWidget via GetExtras (or) Shared prefrences
*Getting a String to AppWidget via GetExtras (or) Shared prefrences:* I have an app widged which basically has a textview. I also have an activity which displays a textview from string created within. Now i have a button in Activity 1 which onClick will send data (string to appWidget class) I tried putExtra and getExtra methods and also Shared preferences method, im little confused to use which first! Here are some inputs from me for more clarity. Activity1: *final String addwidget = ((TextView)findViewById(R.id.verse)).getText().toString(); Intent widgetIntent = new Intent(MyScheduledActivity.this, MainWidget.class); widgetIntent.putExtra("widgetVerse", addwidget);* AppWidget: *public class MainWidget extends AppWidgetProvider { RemoteViews views; public static String verseFromFav; private Bundle getVerseData; @Override public void onReceive(Context context, Intent intent) { getVerseData = intent.getExtras(); verseFromFav = getVerseData.getString("widgetVerse"); super.onReceive(context, intent); } @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final int N = appWidgetIds.length; for (int i=0; ihttp://stackoverflow.com/questions/7560265/getting-a-string-to-appwidget-via-getextras-or-shared-prefrences/7560447#7560447 Please help me, im searching a lot for this but couldnt find much on sharing to appWidget, any hints or help please. -- Thank you, Best Regards Wesley -- 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, i need to create an application for my corp, my question is can i create a OTA like blackberry for download, i want to write url for my application in browser and download the application. Thanks for answer -- Ing. Roger Isaac Navarro Pérez, Desarrollador Skype: roger.isaac.navarro.perez PIN: 31B65C49 AVISO DE CONFIDENCIALIDAD: Este correo electrónico, incluyendo en su caso, los archivos adjuntos al mismo, pueden contener información de carácter confidencial y/o privilegiada, y se envían a la atencion única y exclusivamente de la persona y/o entidad a quien va dirigido. La copia, revisión, uso, revelación y/o distribución de dicha información confidencial sin la autorización por escrito esta prohibida. Si usted no es el destinatario a quien se dirige el presente correo, favor de contactar al remitente respondiendo al presente correo y eliminar el correo original incluyendo sus archivos, así como cualesquiera copia del mismo. CONFIDENTIALITY NOTICE: This e-mail message including attachments, if any, is intended only for the person or entity to which it is addressed and may contain confidential and /or privileged material. Any review, use, disclosure or distribution of such confidential information without the written authorization is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- 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] RecognizerIntent not working; “missing extra calling_package”
I'm having problems using the RecognizerIntent API on Android 2.2. When I call the API using this code: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH); startActivityForResult(intent, REQUEST_CODE_VOICE_SEARCH); which looks like it should work, the search popup says "Unknown problem" on the device and in the logs it states: 01-17 14:25:30.433: ERROR/RecognitionActivity(9118): ACTION_RECOGNIZE_SPEECH intent called incorrectly. Maybe you called startActivity, but you should have called startActivityForResult (or otherwise included a pending intent). 01-17 14:25:30.433: INFO/RecognitionControllerImpl(9118): startRecognition(#Intent;action=android.speech.action.RECOGNIZE_SPEECH;launchFlags=0x80;component=com.google.android.voicesearch/.IntentApiActivity;B.fullRecognitionResultsRequest=true;S.android.speech.extra.LANGUAGE_MODEL=free_form;end) 01-17 14:25:30.433: INFO/RecognitionControllerImpl(9118): State change: STARTING -> STARTING 01-17 14:25:30.443: ERROR/RecognitionControllerImpl(9118): required extra 'calling_package' missing in voice search intent 01-17 14:25:30.443: ERROR/RecognitionControllerImpl(9118): ERROR_CLIENT 01-17 14:25:30.443: ERROR/RecognitionControllerImpl(9118): ERROR_CLIENT It looks like the problem is the missing "calling_package" extra; on the RecognizerIntent page it states that this extra is: The extra key used in an intent to the speech recognizer for voice search. Not generally to be used by developers. The system search dialog uses this, for example, to set a calling package for identification by a voice search API. If this extra is set by anyone but the system process, it should be overridden by the voice search implementation. As far as I can tell, I don't need to override this extra, so why am I getting this error? How can I fix my code? -- 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] Question about services
I've been reading Mark Murphy's books about Android programming and I am having trouble understanding some things about services. As I understand it there are "local" and "remote" services that I can create. However, what I don't understand are the use cases for when you would use one over the other. Here's basically what I need to do and I'm not sure about which service type to use. I want to create an application and a homescreen widget that both get data from a service. I had in mind a service where the application and the widget could register a callback with the service to get data updates. Is that best done by a remote or a local service, or does it matter? Can either one be used? Any hints or tips would be great. Oh, if it matters the app, widget, and service will be in a single apk. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android & Corba
CORBA no. However, you can do client server apps using ICE from ZeroC (http://www.zeroc.com/labs/android/index.html). I did CORBA programming several years ago and stumbled onto ICE a year or so ago. I've not done anything other than simple stuff, but from what I've seen it is fairly easy to use...especially compared to CORBA. On Sat, Jun 19, 2010 at 9:51 AM, Squ36 wrote: > Hi all ! > > I just have a quick question. Is it possible to use CORBA in an > Android app ? Because I learned how to use it at school, and I was > wondering if I could use it with Android to create multi-users > applications/games without using a server... > I searched Google and the Groups, but I got nothing... > > Thanks for your help and your time :) > > -- > 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] Automatic font size adjustment?
I've got a TextView that I allow to expand to fill the remaining available size in my layout. I'd like for the font size to automatically increase to fill the entire TextArea, if possible. Does anyone know of a way to make this happen? -- 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] Registering OnClick listener on AppWidget button
Thanks. I bought a subscription to your books and have actually been going through this code trying to figure it out. If I understand correctly this is the snippet of code that handles the refresh button: public void onReceive(Context ctxt, Intent intent) { if (intent.getAction()==null) { ctxt.startService(new Intent(ctxt, UpdateService.class)); } else { super.onReceive(ctxt, intent); } } What I'd like to do is expand this code to be able to handle three different buttons. However, I'm not sure how to do that. Incidentally, that would be a great addition to this widget in your book -- adding another button. I'm not entirely sure what it would do, but it would be nice to see an example of handling more than one button press (that isn't a configuration app launcher). Thanks for the books BTW. They've been helpful. On Sat, May 15, 2010 at 8:18 PM, Mark Murphy wrote: > Isaac Wagner wrote: >> I'm creating my first widget and ran into a snag. I have several >> buttons on this widget and need a way to register an onClick action >> for each of the buttons. So far I've only found examples where they >> start a configuration activity from a widget button. Does someone >> have example code on using buttons in home screen widgets? Thanks. > > http://github.com/commonsguy/cw-andtutorials/tree/master/36-AdvAppWidget/LunchList/ > http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/TwitterWidget/ > > The latter has two buttons, one that pops the configuration activity and > one that refreshes the widget contents. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Consulting: http://commonsware.com/consulting > > -- > 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] Registering OnClick listener on AppWidget button
I'm creating my first widget and ran into a snag. I have several buttons on this widget and need a way to register an onClick action for each of the buttons. So far I've only found examples where they start a configuration activity from a widget button. Does someone have example code on using buttons in home screen widgets? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Portrait/landscape question
> This discussion list gets a lot of people asking questions where they > are barking up the wrong tree. It is commonplace to inquire about their > rationale for barking up that tree and steer them in the direction of > more common patterns. Sometimes, the barking is indeed up the correct > tree, but that may not always be obvious from the question. > > If you consider that to be harassment, you may wish to choose a > different means of getting Android developer support. > My apologies. I agree and do appreciate the support I've received from this list. > You can try the combination of setRequestedOrientation() in onCreate() > (and from the menu or wherever the user chooses their preference) and > android:configChanges="keyboardHidden|orientation" in your manifest. I > have not used setRequestedOrientation() personally. > I'll take a look at that. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Portrait/landscape question
On Sun, Apr 18, 2010 at 3:25 PM, Justin Giles wrote: > Why would you want to allow them to set it in settings when Android handles > the rotation automagically? All you have to do is have a xml file in your > "layout" directory, then for landscape have a xml file (with the same name) > in your "layout-land" directory. When in portrait mode Android looks to the > "layout" directory. When the phone is flipped to its side for landscape, > Android looks to the "layout-land" directory. > Justin > why is it that when I ask a simple question I get harassed? I didn't want to get into a big long discussion of why something makes sense or doesn't. I understand my problem domain and have a specific portion of that domain that I am solving right now. OK, since it appears I can't get a simple answer without a long explanation My application is one such that the user moves their phone around a lot. During this movement I want to keep the orientation constant -- I DON'T WANT ANDROID TO HANDLE THE ROTATION. So, in my manifest I set the orientation to portrait to prevent Android from mucking with the orientation. However, I am now making some additions and would like the user to be able to choose portrait or landscape mode, but whatever they choose needs to stick. Again, I don't want Android to handle the rotation. As the phone is moved around I want whichever orientation they chose to stick. Does that make sense? Now, how do I do this? How do I force the orientation to my preference? -- 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] Portrait/landscape question
On Sun, Apr 18, 2010 at 2:24 PM, Anurag Singh wrote: > > Specify in your manifest file into Activity block as > android:ScreenOrientation="portrait" > My question is, how do I change the orientation through my program? I want the user, through a settings option, to be able to change the orientation. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Portrait/landscape question
I've got an app that I don't want to auto-rotate. Currently, I've got it set up so that it is always in portrait mode. However, I'd like to add a setting to my preferences where the user can choose either portrait or landscape mode. Is there a way to force screen rotation? Or, could I perhaps make two different layout XML files, one for portrait and one for landscape, and programmatically choose which to use? -- 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] Can someone test my app on the Nexus One and Droid?
Thank you! On Tue, Apr 6, 2010 at 8:16 AM, Jason LeBlanc wrote: > Search the forum for "complains of shrinking font size" > > J > > On Apr 6, 2010 7:07 AM, "Isaac Wagner" wrote: > > I published an app that works in all the emulators I've tried and on > the two Android phones that I've tried. I've got the Droid and my > wife has the Eris. This morning I received the OTA update to 2.1 and > now all the fonts in my app are REALLY tiny and unreadable. My app > looks fine in the 2.1 emulator, so I'm not sure what the problem is. > Does anyone know anything about this problem? I'd appreciate it if > people would try my app on the following phones and let me know if the > fonts are OK. > > * Droid before 2.1 update > * Droid after 2.1 update > * Nexus One > > The app is called "Just GPS" by "42 Productions" and is free in the > Android market. > > Thanks, > > Isaac > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > > -- > 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] Can someone test my app on the Nexus One and Droid?
I published an app that works in all the emulators I've tried and on the two Android phones that I've tried. I've got the Droid and my wife has the Eris. This morning I received the OTA update to 2.1 and now all the fonts in my app are REALLY tiny and unreadable. My app looks fine in the 2.1 emulator, so I'm not sure what the problem is. Does anyone know anything about this problem? I'd appreciate it if people would try my app on the following phones and let me know if the fonts are OK. * Droid before 2.1 update * Droid after 2.1 update * Nexus One The app is called "Just GPS" by "42 Productions" and is free in the Android market. Thanks, Isaac -- 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 To unsubscribe, reply using "remove me" as the subject.
[android-developers] HTML Email with inline image
Is it possible to send an HTML email with an inline image via the SDK? -- 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 To unsubscribe, reply using "remove me" as the subject.
[android-developers] Not sure if this is possible
I want to write an app that would just be for my phone. I don't intend to distribute it. Basically, what I want to do is write a replacement phone app. However, all the phone API's that the existing phone app uses are all internal non-public API's. So, my questions: 1. I've seen time and time again on this list that the Android developers don't like people using internal Android classes, but since this will just be for my phone I don't see a big deal here. So, how do I get access to those internal classes. I'm not looking at the code now, but off the top of my head I believe the PhoneFactory and Phone classes are what I need. 2. I don't really want to root my phone, but to do something like this do I need to root the phone? 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 To unsubscribe, reply using "remove me" as the subject.
Re: [android-developers] CALL_PHONE permission
On Wed, Mar 31, 2010 at 7:44 AM, Mark Murphy wrote: > Isaac Wagner wrote: >> On Tue, Mar 30, 2010 at 10:34 PM, Mark Murphy >> wrote: >>> Isaac Wagner wrote: >>>>> startActivity(new Intent(Intent.ACTION_CALL, "tel:...")); >>>> Yes, but that brings up the dialer. I don't want the dialer UI to >>>> come up on the screen. >>> No, it doesn't. ACTION_DIAL brings up the Dialer. >>> >> >> Sorry, I'm using the wrong terminology. I want my application to >> place a call without leaving my current activity. When I do >> ACTION_CALL it brings up the "call" activity, or whatever that is >> called. > > Fortunately, that is not possible. > ** START RANT ** Fortunately? How is that fortunate? OK, here is what I don't understand about Android. The API allows me to send SMS messages without starting the messaging app, but I can't place a phone call without going through the phone app. I really just don't get it. Both services cost money for the user. Why isn't this functionality exposed to the developers? That seems to be a decision without a lot of thought behind it. ** END RANT** -- 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 To unsubscribe, reply using "remove me" as the subject.
Re: [android-developers] CALL_PHONE permission
On Tue, Mar 30, 2010 at 10:34 PM, Mark Murphy wrote: > Isaac Wagner wrote: >>> startActivity(new Intent(Intent.ACTION_CALL, "tel:...")); >> >> Yes, but that brings up the dialer. I don't want the dialer UI to >> come up on the screen. > > No, it doesn't. ACTION_DIAL brings up the Dialer. > Sorry, I'm using the wrong terminology. I want my application to place a call without leaving my current activity. When I do ACTION_CALL it brings up the "call" activity, or whatever that is called. -- 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] CALL_PHONE permission
On Tue, Mar 30, 2010 at 10:22 PM, Mark Murphy wrote: > Isaac Wagner wrote: >> In the Android docs for the CALL_PHONE permission it says: Allows an >> application to initiate a phone call without going through the Dialer >> user interface for the user to confirm the call being placed. >> >> So, my question is, how do I make a phone call through the API without >> it bringing up the dialer interface? It sounds like this should be >> possible. > > startActivity(new Intent(Intent.ACTION_CALL, "tel:...")); > Yes, but that brings up the dialer. I don't want the dialer UI to come up on the screen. -- 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 To unsubscribe, reply using "remove me" as the subject.
[android-developers] CALL_PHONE permission
In the Android docs for the CALL_PHONE permission it says: Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed. So, my question is, how do I make a phone call through the API without it bringing up the dialer interface? It sounds like this should be 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 To unsubscribe, reply using "remove me" as the subject.
[android-developers] Prevent screen rotation
I've got an app where I don't want the screen to rotate when they rotate their device -- I need to keep the app in portrait mode all the time. How do I do this? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [android-developers] Pulling my hair out
Can you point me to the source code for the phone app? I have found the class I want to access, but it is an internal class and I know the Android dev's frown on gaining access to internal class. The class it looks like I need to use is the the com.android.internal.telephony.Phone class, which I don't have access to in the normal SDK and I don't know how to access that class. Anyone have any ideas? On Thu, Mar 25, 2010 at 10:04 PM, LG wrote: > If you are looking for an application level solution, please go ahead and > implement your own dialer app > Look into the code of existing Phone APP and modify to suit your needs. > I don't think so by keeping the existing dialer you can achieve your > requirements > LG > > > On Fri, Mar 26, 2010 at 10:36 AM, Isaac Wagner > wrote: >> >> I've been hunting for a solution for days and can't find an answer. >> I've got an application where I need to place multiple calls in a row. >> I can invoke the dialer just fine and it starts calling the number. >> The problem is that after the call is over the call log comes up. I >> don't want the call log to come up. I want the dialer to return to my >> app after the call is over. How can I do this? >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> >> To unsubscribe from this group, send email to >> android-developers+unsubscribegooglegroups.com or reply to this email with >> the words "REMOVE ME" as the subject. > > -- > 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 > > To unsubscribe from this group, send email to > android-developers+unsubscribegooglegroups.com or reply to this email with > the words "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Pulling my hair out
I've been hunting for a solution for days and can't find an answer. I've got an application where I need to place multiple calls in a row. I can invoke the dialer just fine and it starts calling the number. The problem is that after the call is over the call log comes up. I don't want the call log to come up. I want the dialer to return to my app after the call is over. How can I do this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: [android-developers] Grrrrr.... 100 SMS per hour
On Tue, Mar 16, 2010 at 3:56 PM, Mark Murphy wrote: > Isaac Wagner wrote: >> After the 100 messages limit Android pops up a dialog saying something >> about sending a large number of messages and asking the user if they >> want to continue. When they click OK or Cancel are there events >> generated that I can get? > > I do not know for certain, as I don't send SMSes. Are you saying the > sent event you are presently watching for does not occur, even if the > user presses OK? BTW, I'm assuming this is from your PendingIntent that > you use with sendTextMessage(). > Yes, my PendingIntent is not fired reliably even after the user pushes OK. After some more experiments I have more info: On my 1.5 and 1.6 AVD's the PendingIntent is sent maybe 2 or 3 times after the user pushes OK. On my Android 2.1 AVD the PendingIntent is fired every time. So, my app works well on Android 2.1. However, I don't want to require them to have 2.1. I've not yet tried it on 2.0.1. I'll do that later tonight. So, it would seem to me to be a Android bug that was fixed later. >> I've been watching the SMS sent event and >> then keying the next message off that event. That works fine until >> Android starts popping up the dialog, then the SMS events stop coming >> and my application loses its state. > > Why does your application lose its state? Won't you have the same > problem if there are telephony issues (e.g., out of signal area) that > cause an SMS to be delayed in its delivery? > In this case I still get my PendingIntent back, it just comes back delayed or with a failure code. Still, it comes back. -- 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] Grrrrr.... 100 SMS per hour
After the 100 messages limit Android pops up a dialog saying something about sending a large number of messages and asking the user if they want to continue. When they click OK or Cancel are there events generated that I can get? I've been watching the SMS sent event and then keying the next message off that event. That works fine until Android starts popping up the dialog, then the SMS events stop coming and my application loses its state. I didn't want to just assume the message went through and keep sending messages, but I might need to. Any ideas, or is this an Android bug? BTW: I'm using the 1.5 emulator. I've not yet tried it in a later version of Android. On Tue, Mar 16, 2010 at 8:21 AM, Mark Murphy wrote: > Isaac Wagner wrote: >> So, I've hit the 100 text messages per hour limit from my application. >> Is there: >> >> A) A way to work around that without rooting the phone >> >> B) A way for my application to push the OK button on the dialog that pops up >> >> C) Panic > > D) Recognize that sending 100 text messages per hour is going to be > expensive for many Android device users, and so having this confirmation > is good for Android as a whole, even if it means you cannot do whatever > it is you are trying to do. > > B) is not possible. A) is possible if you use some sort of > Internet-based SMS delivery agent. Then, you are responsible for the > fees, not the end user. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android Training in US: 14-18 June 2010: http://bignerdranch.com > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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] Grrrrr.... 100 SMS per hour
> D) Recognize that sending 100 text messages per hour is going to be > expensive for many Android device users, and so having this confirmation > is good for Android as a whole, even if it means you cannot do whatever > it is you are trying to do. > I agree that this is a good thing to have in place. My target demographic are teens, who I think mostly have unlimited texting now. I plan on warning users that a lot of text messages will be sent. I've just got to figure out a way to work within the confines of Android. I like your suggestion of using an internet texting gateway. That might be a viable option. 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] Grrrrr.... 100 SMS per hour
So, I've hit the 100 text messages per hour limit from my application. Is there: A) A way to work around that without rooting the phone B) A way for my application to push the OK button on the dialog that pops up C) Panic 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] Dialer Question
I've got an application where I need to dial a phone number. This is how I'm starting the dialer: int DIAL = 1; Intent dial = new Intent(Intent.ACTION_CALL, Uri.parse("tel:5551212")); startActivityForResult(dial, DIAL); After the phone call is ended the dialer automatically goes to the call log activity. However, when the call is over I really want it to just return to my activity. I've tried creating a listener that listens for the CALL_IDLE state and then invokes: finishActivity(DIAL); However, that has no effect. The call log still comes up and sits there until the back button is pushed. I really need a way to either return immediately from the dialer to my activity or else a way to stop the call log activity so I can get back to my activity. 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] Hang up phone call
I've spend the last couple days looking for a way to hang up a phone cal via the API. I'm guessing for some "security" reason that Google does not allow this. Not being one to give up yet...is there any undocumented way to hang up a phone call? Of course the real solution would be for Google to add a HANG_UP_CALL permission and expose the hangup() method to the public API, but it doesn't appear that will happen. :( Thanks, -Isaac -- 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] Petition: Google, please improve the Android Market.
I like it. Hopefully Google will listen. I'll sign it. On Sun, Feb 21, 2010 at 8:43 AM, Rob Irondad wrote: > Hi fellow developers. > I've come up with this text for a petition (warning: long): > > http://docs.google.com/View?id=dd9hmc43_0c9zh58gd > > You're all welcome to review it and send your comments before I > publish it to some petition website. > You can email me directly (rob.iron...@gmail.com). > > -- > Rob > > -- > 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] Place a call and bypass call log on return
I'm creating an application where I need to dial phone numbers. I am starting the dialer like this: Intent dial = new Intent(Intent.ACTION_CALL, Uri.parse("tel:123")); startActivity(dial); The dialer comes up and the phone dials the number. Now, here's my problem: At the end of the call I want to immediately return to my Activity in my application. However, what does happen is that at the end of the call the call log is opened. Only after pushing the back button do I get back to my activity. Is there any way to make the dialer immediately return to my activity and bypass the call log? I don't want the users to have to push back to return to the application. I was thinking that maybe I could subscribe to the phone state events and as soon as the phone goes into the idle state close the dialer activity and bring my activity to the foreground. However, I can't seem to find any useful information on doing that. As an alternative, is it possible to dial a number without leaving my activity? That would also work for me. Any help would be much appreciated. Thank you. -Isaac -- 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] New Icon Guidelines for 2.0
I see in your demo video you seem to have a new style of icons for Android 2.0 - when are you going to update the Icon Guidelines for 2.0? I would like to update my icons to fit in with the UI as soon as possible - it is very important to me that my icons fit in with the rest. Thanks, Isaac --~--~-~--~~~---~--~~ 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: Garbled extracted XML resources
That's what I suspected. Thanks! On Jul 28, 3:32 pm, Romain Guy wrote: > You can't "fix" it because it's not an issue. XML files are compiled > to binary XML for faster parsing on the device. It's the same data, > but a different format. > > On Tue, Jul 28, 2009 at 3:27 PM, Isaac Waller wrote: > > > Hello, > > When I extract a XML file from res/layout in an APK file it is garbled > > up. How can I fix this? > > Thanks, > > Isaac > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android 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] Garbled extracted XML resources
Hello, When I extract a XML file from res/layout in an APK file it is garbled up. How can I fix this? Thanks, Isaac --~--~-~--~~~---~--~~ 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: NullPointerException at android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected( ActivityThread.java:1012)
Hello, I am getting a NullPointerException at android.app.ActivityThread $PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012). My application is not even in the stack trace, so I have no idea what is going on. I am trying to connect to a service when it happens. How can I fix this problem? Thanks, Isaac Waller --~--~-~--~~~---~--~~ 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 Loading listview items from service results in hang
I have read that article before, it is very informative, but I do not see anything about retaining the scroll position. I know it has something to do with the saved instance state, but I do not know how to restore this at a certain time? Thanks, Isaac On May 24, 2:53 am, Mark Murphy wrote: > Isaac Waller wrote: > > No, what you are supposed to do, is not return from onCreate until you > > are ready to show your GUI. > > The notion that you should "not return from onCreate until you are ready > to show your GUI" is simply incorrect. > > 1. There is nothing forcing you to construct your UI in onCreate(). > > 2. There is nothing forcing you to have your lists fully populated in > onCreate(). > > 3. There are things forcing you to not put sleep() calls in any UI > thread operation, such as usability and the eventual ANR if your guess > is wrong sometimes and it takes longer than ~5 seconds. > > > the screen flashes 'LOADING' and then shows the > > items. It looks quite ugly. > > Then remove "LOADING". You put that there, not Android. > > > And then there is the losing of scroll position and focus too. > > Then handle rotations differently. > > http://wiki.andmob.org/samplecode > > Look for "Rotational Forces" for a set of five links on ways to handle > rotation events. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android 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 Loading listview items from service results in hang
How would I delay the saved state application until I load the service then? LOADING is my android:empty view - I guess I could remove it... Thanks, Isaac Waller On May 23, 9:11 pm, Marco Nelissen wrote: > On Sat, May 23, 2009 at 8:27 PM, Isaac Waller wrote: > > > No, what you are supposed to do, is not return from onCreate until you > > are ready to show your GUI. I am not ready without these items. If it > > took, say, 2 or 3 seconds to load these items, maybe, but it takes a > > fraction of a second - the screen flashes 'LOADING' and then shows the > > items. It looks quite ugly. > > So why do you flash 'LOADING'? If it's that fast, just don't show anything, > and it will look exactly the same as if you'd blocked the UI thread. > > > And then there is the losing of scroll > > position and focus too. > > There are several ways to address that, most of them trivial. > The fact of the matter is that you can't block the UI thread to wait for > the onServiceConnected() callback. --~--~-~--~~~---~--~~ 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 Loading listview items from service results in hang
No, what you are supposed to do, is not return from onCreate until you are ready to show your GUI. I am not ready without these items. If it took, say, 2 or 3 seconds to load these items, maybe, but it takes a fraction of a second - the screen flashes 'LOADING' and then shows the items. It looks quite ugly. And then there is the losing of scroll position and focus too. On May 23, 8:23 pm, Marco Nelissen wrote: > "hanging the UI thread" is the hack. I suggest you do it the right way > instead. > > On Sat, May 23, 2009 at 8:09 PM, Isaac Waller wrote: > > > Even if I changed that, I would lose the saved list scroll position > > and selected item. > > I do not want to make some hack around running it in the UI thread - I > > want to hang the UI thread. > > > On May 23, 8:06 pm, Jason Proctor wrote: > > > >If I do this, then I lose the benefits of running it in the UI thread. > > > >I want to hang my application until it gets these items, because if > > > >not, my view with id="android:empty" shows up for a second, and that > > > >looks ugly. > > > > >So put in another view, one that's not ugly. > > > > how about some kind of progress indicator to indicate that something > > > is happening? > > > > -- > > > jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Loading listview items from service results in hang
Even if I changed that, I would lose the saved list scroll position and selected item. I do not want to make some hack around running it in the UI thread - I want to hang the UI thread. On May 23, 8:06 pm, Jason Proctor wrote: > >If I do this, then I lose the benefits of running it in the UI thread. > >I want to hang my application until it gets these items, because if > >not, my view with id="android:empty" shows up for a second, and that > >looks ugly. > > >So put in another view, one that's not ugly. > > how about some kind of progress indicator to indicate that something > is happening? > > -- > jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Loading listview items from service results in hang
> Move the "now retrieve from service using binder and set list adapter" > into onServiceConnected() and get rid of the sleep() infinite loop. If I do this, then I lose the benefits of running it in the UI thread. I want to hang my application until it gets these items, because if not, my view with id="android:empty" shows up for a second, and that looks ugly. > Is your service positively deterministic, such that it will *always* > take less than a second? Or does it take less than a second only in > normal conditions (e.g., connectivity is OK to some server you're > fetching data from)? The data is inside a List inside my service, already pre-made. It should take basically no time at all. How would I fix the deadlock? On May 23, 5:33 pm, Mark Murphy wrote: > Isaac Waller wrote: > > In my Android application, I have a ListActivity. This ListActivity > > uses a SimpleAdapter that I fill with items from my service. So, in my > > code, I do: > > > MySuperCoolService.Binder serviceBinder = null; > > private ServiceConnection serviceConnection = new ServiceConnection() > > { > > public void onServiceConnected(ComponentName className, > > IBinder service) { > > Log.d(TAG, "Service connection: connected!"); > > serviceBinder = (MySuperCoolService.Binder)service; > > } > > public void onServiceDisconnected(ComponentName className) { > > Log.d(TAG, "Service connection: disconnected"); > > serviceBinder = null; > > } > > }; > > bindService(new Intent(this, MySuperCoolService.class), > > serviceConnection, BIND_AUTO_CREATE); > > while(serviceBinder==null) { > > Thread.Sleep(1000); > > } > > // now retrieve from service using binder and set list adapter > > Icky! > > Move the "now retrieve from service using binder and set list adapter" > into onServiceConnected() and get rid of the sleep() infinite loop. > > > This whole operation takes hardly any time (less than a second), so I > > want it to run in the UI thread. > > Is your service positively deterministic, such that it will *always* > take less than a second? Or does it take less than a second only in > normal conditions (e.g., connectivity is OK to some server you're > fetching data from)? > > > The reason I want this to run in the UI thread is that if you have a > > list item selected, or you have scrolled to a certain position in the > > ListView, and you rotate the device or take out the keyboard or > > something (to trigger a configuration change) when my activity is > > restarted, Android will try to restore the state right after onCreate. > > By default, yes. There are other ways of dealing with this. > > > But, if I run it in a separate thread, it will not. > > Sure it can. Either don't reload the state from the service (by using > onRetainNonConfigurationInstance() and having your state persist across > rotations), or fork another background thread (if these are > load-data-and-close threads), or tell a persistent background thread > "yo! load the stuff again!". > > > The problem I am having with running it in the UI thread is that when > > I try to bind to the service, that service bind request gets put onto > > the message queue. > > Correct. > > > But then when I go into my loop, I stop the message > > queue from looping. > > Equally correct. > > > So my program hangs, because it's waiting for the > > service to get bound, and the service won't get bound until the loop > > ends (I think you call this a deadlock). > > Spot on! In other words, icky! > > > Sorry for such a long question, > > I seem to have missed the question. > > If the question is "how do I get rid of the infinite loop?", move the > "now retrieve from service using binder and set list adapter" into > onServiceConnected(). > > However, unless you're really really certain this will always occur very > very quickly, use a background thread, in addition to getting rid of the > infinite loop. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android 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 Loading listview items from service results in hang
Hello, In my Android application, I have a ListActivity. This ListActivity uses a SimpleAdapter that I fill with items from my service. So, in my code, I do: MySuperCoolService.Binder serviceBinder = null; private ServiceConnection serviceConnection = new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder service) { Log.d(TAG, "Service connection: connected!"); serviceBinder = (MySuperCoolService.Binder)service; } public void onServiceDisconnected(ComponentName className) { Log.d(TAG, "Service connection: disconnected"); serviceBinder = null; } }; bindService(new Intent(this, MySuperCoolService.class), serviceConnection, BIND_AUTO_CREATE); while(serviceBinder==null) { Thread.Sleep(1000); } // now retrieve from service using binder and set list adapter This whole operation takes hardly any time (less than a second), so I want it to run in the UI thread. See my onCreate: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); fillDataUsingCodeAbove(); } The reason I want this to run in the UI thread is that if you have a list item selected, or you have scrolled to a certain position in the ListView, and you rotate the device or take out the keyboard or something (to trigger a configuration change) when my activity is restarted, Android will try to restore the state right after onCreate. But, if I run it in a separate thread, it will not. Also there is a cool fadein animation too :) The problem I am having with running it in the UI thread is that when I try to bind to the service, that service bind request gets put onto the message queue. But then when I go into my loop, I stop the message queue from looping. So my program hangs, because it's waiting for the service to get bound, and the service won't get bound until the loop ends (I think you call this a deadlock). I have thought of putting Looper.loop() inside my loop, but that just hangs it at Looper.loop() (I don't know why.) Sorry for such a long question, Isaac Waller --~--~-~--~~~---~--~~ 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 Keystore V2
Greetings. You might find the OpenIntents keystore project of interest as well: http://code.google.com/p/openintents/wiki/CryptoIntents It would be great to build something compatible, since the goal of the openintents project is interoperability :) peace, isaac --~--~-~--~~~---~--~~ 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] Install .odex + .apk
Hello, I have a .odex and a .apk file. I understand that the .odex is just the classes.dex file extracted, so if there is some way I can put it back in so I can install it on the emulator? I am getting errors about classes.dex without that. Thanks, Isaac --~--~-~--~~~---~--~~ 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: support for encryption
Folks might also take a look at the crypto intents and keystore intents that we're building in collaboration between the Android Password Safe project & the OpenIntents project. Our system allows a single password, and periodic single sign-on so that all applications can encrypt, decrypt, and store keys using the same master password that the user enters once, which is somewhat of an advantage over directly using the bouncycastle implementation, depending on the need of your application: http://code.google.com/p/openintents/wiki/CryptoIntents peace, isaac --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---