[android-developers] Re: Button Mashing Alert Dialog
Why would you ever call onStart() manually (assuming that it's the onStart of your activity)? You might want to look into using showDialog() provided by Activity if you want to manage dialogs that may appear repeatedly. And don't call any of the activity lifecycle methods directly. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Linkify and Context Menu
I think I went down this road like 2 years ago and ended up doing something crazy/dumb like using a web view. Instead of startActivity you could do pop ups and just feed the web view the text. A little css might be needed : / If you are stuck this may work for u. Use the Linkify to add tel: to the front of your phone numbers. Garbage code, but sometimes o well. private static final String mimetype = text/html; private static final String encoding = UTF-8; private string newIncoming WebView mWebDesc = (WebView)findViewById(R.id.webView_paragraph_termsAndConditions); mWebDesc.loadDataWithBaseURL(fake://FAKEADDRESS/FAKE/, newIncoming, mimetype, encoding, fake://FAKEADDRESS/FAKE/); mWebDesc.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.startsWith(http)) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); } else if(url.startsWith(tel:)) { startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse(url))); } return true; } }); On Sep 23, 1:12 am, jithin syam ms danijanuv...@gmail.com wrote: As part of my project I need to create TextView that contains message ,in which all phone numbers are linkified. I could do it. But my need is to create a context menu on that link.That is when I hold that link I need a context menu appears with many options. 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
Re: [android-developers] Destroy Android Thread
While cancelling the dialog for the first time, you must be using the cancel() method. It just cancel's the dialog and does not do any initialization of the progress bar again when you show the same dialog again, thats why next time also it showing with 100% progress. There are 2 solutions for this. 1) override onPrepareDialog(int, Dialog)http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog) method. This is called every time a dialog is shown. You can clear the sate of the dialog in this. Where as onCreateDialog() is called only for the first time when you first create the dialog. 2) Instead of cancelling the dialog, call dismiss(). This will remove the dialog and when you want to show the dialog again, create a new one and show. This is a bit expensive as you are creating a new dialog each time. Thanks, Shashidhar On Sat, Sep 25, 2010 at 10:52 AM, TreKing treking...@gmail.com wrote: On Fri, Sep 24, 2010 at 11:48 PM, Hudar hudars...@gmail.com wrote: But after finished, when I click on the button again, it should analyze again, but what happen was it show progress dialog already at 100% and stuck there, instead of reanalyze and start progress dialog at 0%. Sounds like you're simply not resetting the progress value on the dialog. Hard to say for sure though without more information. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possible to format individual row items of a list on Selection?
If a data row of my list contains a TextView and a Button, is it possible to format those components individually when the List row is selected? Like change drawable of a Button, font color of the TextView apart from the usual highlighting the background of the List row? How can this be achieved? Note: A similar question has been asked here: http://stackoverflow.com/questions/3787695/formatting-listview-row-items-on-selection Please help. 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: Launch application from url
intent-filter data android:scheme=lol.haha.scheme / action android:name=android.intent.action.VIEW / /intent-filter a href=lol.haha.scheme://pass/here On Sep 24, 9:50 am, AnasSamara anas86sam...@gmail.com wrote: Hello All Any one knows how to launch certain application in my android from URL send via email or SMS. I mean if I have an SMS: Http://GOOGLE.COM then I am able to click on it so the browser opened with that URL. the same thing I want, so when clicking a URL gotten from email or SMS like: appName://arguments.to.be.passed the appName application launched and those arguments passed to the first activity of the application. any help is appreciated. thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Amazon | xxx - Business Opportunity
Did anyone get this email sent to their dev account email address? Legitimacy check? Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Simple Context Menus -- OPTIONS MENU
I have found the solution. Perhaps this may help others in creating an OPTIONS MENU in their application. Here's the code: package com.calculator; import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Calculator extends Activity { private static final int MY_SETUP = 0;// NOTE: ADD THESE TWO LINES FOR YOUR OPTIONS MENU private static final int MY_ABOUT = 1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); code of the project - // options menu // Called only the first time the options menu is displayed. // Create the menu entries. // Menu adds items in the order shown. public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(Setup) // ADD LABEL .setIcon(android.R.drawable.ic_menu_preferences); // ADD ICON menu.add(About) // ADD LABEL .setIcon(android.R.drawable.ic_menu_info_details); // ADD ICON return true; } // handle menu selected public boolean onOptionsItemSelected(MenuItem item){ if (item.getTitle().equals(Setup)){ Intent intent = new Intent(this, com.calculator.setup.class); startActivityForResult(intent, MY_SETUP); return true; } if (item.getTitle().equals(About)){ Intent intent = new Intent(this, com.calculator.about.class); startActivityForResult(intent, MY_ABOUT); return true; } return false; } } -- Create your layout files. I used dialogsetup.xml and dialogabout.xml. I then created two class files called setup.java and about.java Here's part of the the setup.java file: package com.calculator; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.EditText; public class setup extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dialogsetup); // put additional code in reference to the dialogsetup screen. } You do the same with the about.java file. The dialogsetup.xml file and the dialogabout.xml file contains the layout for that particular option. One thing that is most important once you have created these files, and that is to add an activity to your manifest.xml file for each activity that you created. This had two activities so the manifest file has these entries added to it: activity android:name=setup/activity activity android:name=about/activity If you don't add this, then you will get an error and be forced to close your application. Thanks again for all who has guided me in solving this problem. :RB On Sep 23, 5:40 pm, rb rbs...@gmail.com wrote: Hi, I am attempting to create a simple context menu that will show another screen and have some functionality. What is happening is that if I select menu, I get the items (context menu) then when I select one of them, it does nothing. What am I missing here? Once you click on the item, should it not execute the class that you have indicated? Here's my code: This is in the main application: package com.calculator; import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Calculator extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ... code of the project // context menu public boolean onCreateOptionsMenu(android.view.Menu menu) { super.onCreateOptionsMenu(menu); menu.add(Setup) .setIcon(android.R.drawable.ic_menu_preferences) .setIntent(new Intent(this, setup.class)); menu.add(About) .setIcon(android.R.drawable.ic_menu_info_details) .setIntent(new Intent(this, about.class)); return true; } } -- Here's the code for the setup.java class. I have created a layout page called setup.xml. All this should do is
[android-developers] Re: Uri from FilePath?
What are your logs showing? I was trying to load images into an imageview using file Uris, which worked great in 2.2, but not on 2.1 and below. I could never figure out why. I posted the question on SO here: http://stackoverflow.com/questions/3720530/why-would-imageview-setimageuri-work-in-android-2-2-but-not-2-1. On Sep 24, 10:19 pm, niko001 ebs...@googlemail.com wrote: [I have asked this question on Stackoverflow, but haven't gotten any replies in 2 days] Hi, I am using the Gallery3D-Code for a test-app but want it to only display images from a sub-folder on the SD, not all of the images that are stored on it. To do this, I tried to change public static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI; to public static final String ROOT_DIR = Environment.getExternalStorageDirectory().toString() + / mySubDirectory; public static final Uri STORAGE_URI = Uri.fromFile(new File(ROOT_DIR)); but I guess this is transforming a content://-Uri to a file://-Uri and this may be a problem? In any case, it doesn't work :-(! Instead of just showing images from the ROOT_DIR-directory and its sub-directories, it shows no images at all (Gallery empty). Could anyone point me in the right direction as to what I am doing wrong? Thanks for your help, Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 application using other language
Hello All Can it possible to made the application for android device using .net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Application is not showing in Android Market.
The HTC Wildfire is a QVGA phone, so you need to declare in your manifest that your app supports such screens. You'll need to add the supports-screens tag, see here for more details: http://developer.android.com/guide/practices/screens_support.html YuviDroid http://developer.android.com/guide/practices/screens_support.html On Fri, Sep 24, 2010 at 11:28 AM, rokson kiranrepa...@gmail.com wrote: Hi Friends, This is Rock, I unable to find my application in android market.I am using HTC wild fire hand set to download application from market. My Hand Set supports android 2.1 I searched for my application by name Vedic Maths in market it's saying that no such file found. My application has been shown in some non official sites like androidpit The fallowing is my manifest file.. manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.popcorn.namesays android:versionCode=2 android:versionName=1.1 uses-sdk android:minSdkVersion=2 / uses-permission android:name=android.permission.INTERNET/ application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.NameSays android:theme=@style/CustomDialogTheme android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.DisplayText android:label=@string/actvityname android:theme=@style/Result_Background / activity android:name=.CustomDialog / /application /manifest Can any body look into my problem? Thanks and Regards, Rock -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reliable way to programmatically open options menu on startup
The first time a user ever runs my app, I show the options menu by doing something like this in Activity.onCreate(): new Handler().postDelayed(new Runnable() { @Override public void run() { openOptionsMenu(); } }, 500); However, using analytics, I can see that very occasionally ( 1% of the time) openOptionsMenu() throws this exception: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? I've tried catching this exception, but then other exceptions follow. Is there any way to avoid this? Maybe a test to see whether the activity is still running? If so, what is the most reliable way to do that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Uri from FilePath?
The cooliris Gallery3D code? http://android.git.kernel.org/?p=platform/packages/apps/Gallery3D.git How is the image cursor created? I assume it's obtained from a MediaStore query. But if you change to a file uri, the MediaStore will no longer handle the query... I think you can obtain the desired results with a MediaStore query and the original uri if you add a 'selection' that filters on mySubDirectory: contentResolver.query(uri, null, MediaColumns.DATA + like '%/mySubDirectory/%', null, null); On Sep 24, 10:19 pm, niko001 ebs...@googlemail.com wrote: [I have asked this question on Stackoverflow, but haven't gotten any replies in 2 days] Hi, I am using the Gallery3D-Code for a test-app but want it to only display images from a sub-folder on the SD, not all of the images that are stored on it. To do this, I tried to change public static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI; to public static final String ROOT_DIR = Environment.getExternalStorageDirectory().toString() + / mySubDirectory; public static final Uri STORAGE_URI = Uri.fromFile(new File(ROOT_DIR)); but I guess this is transforming a content://-Uri to a file://-Uri and this may be a problem? In any case, it doesn't work :-(! Instead of just showing images from the ROOT_DIR-directory and its sub-directories, it shows no images at all (Gallery empty). Could anyone point me in the right direction as to what I am doing wrong? Thanks for your help, Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 generate a java doc for an android project?
Read the other posts in the same blog. He explains how to rebuild an Android version of Javadoc as a prior step. On Sep 24, 6:45 am, Lidia lidyp...@yahoo.com wrote: Hello to all, Does someone know how to generate a javadoc for an android project? I found searching the net this infohttp://www.androidjavadoc.com/?p=63 , but i don't understand where can i find the file droiddoc.mk: All javadoc stuff is concentrated in the ROOT/build/core/droiddoc.mk Please help me someone Lidia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard, Android, and the Licensing Server, or...
That is excellent information. Thank you for posting it. But there is one thing that surprises me as it is written, so I must ask for clarification: when you say, there is no way we can figure it out programmatically[sic], do you mean that such is the case even when Proguard is integrated with ADT? Surely you can at least do most of them by identifying classes needed by AndroidManifest.xml by simply reading AndroidManifest.xml. Or are there many other classes that also need to be protected? From reading Dan's post, it seems the former were the main examples of classes that need to be protected. BTW: using the native method name as the name of the class sounds like it should be discouraged: obfuscation difficulties just might be discouragement enough;) I am not sure what you mean by anything which has a constructor similar to a View, but it SOUNDS like you could introduce a decorator to simplify handling all of these special cases. @no_obsfucation is the name that occurs to me, but I am sure you can do better. On Sep 24, 6:00 am, Xavier Ducrohet x...@android.com wrote: We are working on direct support in ADT/Ant. We just decided to release a quick blog post on how to manually add this to Ant since it's somewhat easy to do (unlike ADT). However, proguard does need to know about which class to not obfuscate and there is no way we can figure it out programmatically. Proguard itself does try to detect reflection usage, but if it's too dynamic (for instance the class/method/field to use by reflection is dynamic and too complex to see where the value is coming from) it will fail. The proguard config file shown in the Dan's blog post (a different Dan btw) provides exclusion for the common cases: - anything that extends Activity, Service, Application, BroadcastReceiver, ContentProvider as those are referenced in the manifest. - anything that has native method as the name of the class is used to find the native function name - anything that has a constructor similar to a View, to no rename custom views as their name are referenced in layouts This should cover all the default cases. Now, if you do some fancy reflection you will have some problem, and will have to tell proguard what to not obfuscate, but there's nothing we can do about and any obfuscators will have similar problems. We are looking at implementing Proguard in ADT/Ant in a way that makes it easy to plug a different obfuscator, so if you prefer a different solution you will hopefully be able to use it, but I'm pretty sure you'll have the same issues. Unfortunately I can't give a release date for the next version, but we usually try to release new tools every 2-3 months. Xav On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis mej1...@yahoo.com wrote: It is not just you. I was pretty disappointed when I read that post, too. I did get a kick out of seeing what a menacing appearance Dan has with his new beard and moustache, though;) I am amazed that Google seems to think it is acceptable to force the user to maintain two different build systems -- one for Eclipse and one for the recommended independent installation of Ant -- and also maintain a text file with a list of classes not to obfuscate. It is too obvious that this is a task ADT should be doing. But rather than run for the hills, we should pepper Google with uncomplimentary speculations concerning their motives for this turd layering until they 'fess up and give us a release date for a version of ADT that will allow us to include Proguard in an Eclipse build WITHOUT these problems. On Sep 22, 9:59 pm, JP joachim.pfeif...@gmail.com wrote: Just read the latest Android Developer blog post.http://android-developers.blogspot.com/2010/09/proguard-android-and-l... Quite the beast. And Proguard cannot even be used with confidence (it’s still possible that in edge cases you’ll end up seeing something like a ClassNotFoundException). Is it just me getting irritated where this seems to be going? In my more active days developing, pretty graphic slang was applies to efforts like this: Turd layering. Meaning: More dependencies, more procedure, more sources of error, and it doesn't even work right. In of itself, adding innocent looking steps to a release procedure (for some relatively obscure benefit) might be marginally worthwhile, but in the bigger picture, releasing an app increasingly becomes a burden. Dare you miss a step. Or try to teach somebody else how to go through a release and verify it. Or you want to go and rebuild a development environment. Or lose the ominous reference file (mapping.txt)... Anybody care to disagree and convince me this all nice and dandy and we don't have to literally run for the hills? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To
Re: [android-developers] Matrix.rotateM does heap allocations - should I care?
Leigh, You could just use local variables to hold the temporaries, declared as a primitive type (float). -- Kostya 25.09.2010 3:22, Romain Guy пишет: On 9/24/2010 6:32 PM, Romain Guy wrote: rotateM() just does the following: float[] r = new float[16]; setRotateM(r, 0, a, x, y, z); multiplyMM(rm, rmOffset, m, mOffset, r, 0); You can create your own rotateM() method and use your own float[16] do not allocate every time. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Porting on Telechips TCC89XX: Not able to start init process
Note: There is a dedicated android-porting mailing list. You'll most likely find some experts there. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] constructor SignalStrength() is not visible
You don't instantiate SignalStrength from application code. Use a PhoneStateListener (subclass), and implement onSignalStrengthsChanged: http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onSignalStrengthsChanged(android.telephony.SignalStrength) A SignalStrength will be created for you and passed into your override. -- Kostya 24.09.2010 23:04, Stalker пишет: I've tried to create an object using SignalStrength x = new SignalStrength(); ,but it throws me constructor SignalStrength() is not visible in Eclipse. I bet there is another way, but looking through SignalStrength.java i can not understand the way it can be done. I will be very happy if someone tells me what I am doing wrong. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android - Sliding Drawer to slide from Left-to-Right
Hello all, I am trying to implement Sliding Drawer in my application using the below xml layout: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:background=@drawable/androidpeople SlidingDrawer android:layout_width=wrap_content android:id=@+id/SlidingDrawer android:handle=@+id/slideHandleButton android:content=@+id/contentLayout android:layout_height=75dip android:orientation=horizontal Button android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/slideHandleButton android:background=@drawable/closearrow /Button LinearLayout android:layout_width=wrap_content android:id=@+id/contentLayout android:orientation=horizontal android:gravity=center|top android:padding=10dip android:background=#C0C0C0 android:layout_height=wrap_content Button android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Content/Button Button android:id=@+id/Button02 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Content/Button Button android:id=@+id/Button03 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Content/Button /LinearLayout /SlidingDrawer /LinearLayout But Sliding drawer is sliding from Right-to-Left (Horizontal), but what if i want to make it slide from Left-to-Right (Horizontal) ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android market and customers email...
Excellent, so am I authorized to send email to that email address to communicate something like free updates or news about the software? Thanks. On Sep 25, 12:13 am, TreKing treking...@gmail.com wrote: On Fri, Sep 24, 2010 at 5:03 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: is this a valid email address if I need to contact the customers to tell him something? Yes - the Google Checkout system will forward the email to the user. I've used it once. - 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: GeoCoding fails after SDK upgrade to 8
For me only on an emulator api8, but on the device(Nexus one Android 2.2) works! On 25 Вер, 00:57, Bret Foreman bret.fore...@gmail.com wrote: Oh, and both the phone and emulator are Android 2.2. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 application using other language
Google on Monodroid. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com -Original Message- From: android-developers@googlegroups.com [mailto:android- develop...@googlegroups.com] On Behalf Of mishra Sent: Saturday, September 25, 2010 12:09 AM To: Android Developers Subject: [android-developers] Android application using other language Hello All Can it possible to made the application for android device using .net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: New ADT available.
I'm trying to go from 0.9.7 to 0.9.9 as well. I didn't see an announcement for 0.9.8 - if doing the upgrade incrementally works, is there somewhere that 0.9.8 can still be downloaded (for those of us whiwho don't already have it)? Thanks, String On Sep 24, 10:08 am, Xavier Ducrohet x...@android.com wrote: hmm I'm not sure why this would happen. Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago). 0.9.9 is just a very minor fix over 0.9.8 Xav On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez zarah.doming...@gmail.com wrote: Saw this problem too. Tried uninstalling then re-installing the plugins, but still no Android options anywhere. Eclipse sees my Android projects as Java projects. Were you able to solve it? - Zarah. On Sep 24, 10:02 am, String sterling.ud...@googlemail.com wrote: I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse 3.5, with virtually no other plugins installed... - When I select Help Check for Updates, it simply says Nothing to update - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp Install New Software, it shows me ADT 0.9.9, but the install fails with the following message: Android DDMS will be ignored because it is already installed, and updates are not permitted. Android Development Tools will be ignored because it is already installed, and updates are not permitted. - Following up on that, I went into Help About Eclipse Installation Details, and there too, Update and Uninstall are disabled (grayed out) for both ADT and DDMS. Any ideas? String On Sep 23, 10:13 pm, Xavier Ducrohet x...@android.com wrote: Hi all, We've just pushed ADT 0.9.9 which contains an important fix from ADT 0.9.8 that was released last week. More info:http://developer.android.com/sdk/eclipse-adt.html Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Proguard, Android, and the Licensing Server, or...
Neat idea. An annotation wouldn't work for things in JAR libraries, however. Back when I tested ProGuard to see if it helped my frame rates, I had to turn obfuscation off for some classes in JARs I use. Not sure why, maybe the library used reflection or something. It wasn't even a weird library, just one of the metrics or ads ones that lots of people use. The most powerful solution would be to just have a file field in the project properties for a ProGuard config file to use. I guess since people are complaining they can't use Ant, maybe they would complain they can't edit config files on their own too, however. On Sep 25, 5:40 am, Indicator Veritatis mej1...@yahoo.com wrote: That is excellent information. Thank you for posting it. But there is one thing that surprises me as it is written, so I must ask for clarification: when you say, there is no way we can figure it out programmatically[sic], do you mean that such is the case even when Proguard is integrated with ADT? Surely you can at least do most of them by identifying classes needed by AndroidManifest.xml by simply reading AndroidManifest.xml. Or are there many other classes that also need to be protected? From reading Dan's post, it seems the former were the main examples of classes that need to be protected. BTW: using the native method name as the name of the class sounds like it should be discouraged: obfuscation difficulties just might be discouragement enough;) I am not sure what you mean by anything which has a constructor similar to a View, but it SOUNDS like you could introduce a decorator to simplify handling all of these special cases. @no_obsfucation is the name that occurs to me, but I am sure you can do better. On Sep 24, 6:00 am, Xavier Ducrohet x...@android.com wrote: We are working on direct support in ADT/Ant. We just decided to release a quick blog post on how to manually add this to Ant since it's somewhat easy to do (unlike ADT). However, proguard does need to know about which class to not obfuscate and there is no way we can figure it out programmatically. Proguard itself does try to detect reflection usage, but if it's too dynamic (for instance the class/method/field to use by reflection is dynamic and too complex to see where the value is coming from) it will fail. The proguard config file shown in the Dan's blog post (a different Dan btw) provides exclusion for the common cases: - anything that extends Activity, Service, Application, BroadcastReceiver, ContentProvider as those are referenced in the manifest. - anything that has native method as the name of the class is used to find the native function name - anything that has a constructor similar to a View, to no rename custom views as their name are referenced in layouts This should cover all the default cases. Now, if you do some fancy reflection you will have some problem, and will have to tell proguard what to not obfuscate, but there's nothing we can do about and any obfuscators will have similar problems. We are looking at implementing Proguard in ADT/Ant in a way that makes it easy to plug a different obfuscator, so if you prefer a different solution you will hopefully be able to use it, but I'm pretty sure you'll have the same issues. Unfortunately I can't give a release date for the next version, but we usually try to release new tools every 2-3 months. Xav On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis mej1...@yahoo.com wrote: It is not just you. I was pretty disappointed when I read that post, too. I did get a kick out of seeing what a menacing appearance Dan has with his new beard and moustache, though;) I am amazed that Google seems to think it is acceptable to force the user to maintain two different build systems -- one for Eclipse and one for the recommended independent installation of Ant -- and also maintain a text file with a list of classes not to obfuscate. It is too obvious that this is a task ADT should be doing. But rather than run for the hills, we should pepper Google with uncomplimentary speculations concerning their motives for this turd layering until they 'fess up and give us a release date for a version of ADT that will allow us to include Proguard in an Eclipse build WITHOUT these problems. On Sep 22, 9:59 pm, JP joachim.pfeif...@gmail.com wrote: Just read the latest Android Developer blog post.http://android-developers.blogspot.com/2010/09/proguard-android-and-l... Quite the beast. And Proguard cannot even be used with confidence (it’s still possible that in edge cases you’ll end up seeing something like a ClassNotFoundException). Is it just me getting irritated where this seems to be going? In my more active days developing, pretty graphic slang was applies to efforts like this: Turd layering. Meaning: More dependencies, more procedure, more sources of error, and it
[android-developers] Re: Is it possible to merge dex files?
APK size is about 10-14MB but a lot of that is resources and useless resources pulled in from other libraries that still need to be purged. The dex file is 8MB uncompressed. Would people find this a reasonable feature to add to dx? In order to help with scope issues as their projects get larger and larger. On Sep 25, 12:56 am, Ryan Mattison rmattis...@gmail.com wrote: No idea, but what is the APK file size? On Sep 24, 10:46 am, gbear chris.regni...@gmail.com wrote: Hello, I'm wondering if anyone has come up with a way to merge multiple dex files into one. Or if anyone can point me in the proper direction (or am I just going to have to write the tool myself?) Use case: I have a very large app that I'm trying to put on android. We're talking about tens of thousands of classes here. The app is split up into multiple components/projects/libraries. The build time for this is horrendous thanks to the conversion to dex! Anywhere from 5-10 mins on a dual core 3ghz with 4 gigs of ram. Debugging and one line changes are becoming a nightmare! There's obviously no need to build most of the libraries every time. So I'd like to only build the ones that have changed, and then merge all the separate dex files. Any help would be appreciated! Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] create sliding tabs like appBrain market android app
hi, i have to add some more tabs in my app..so rather than making the size of the already existing ones small by adding new tabs..i thought of using sliding tabs just like in app brain market android app can someone pls point me in the right direction as to how i go about it ?? thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to format individual row items of a list on Selection?
Sure. You can do it in the getView method of the Adapter class. -Kumar Bibek http://techdroid.kbeanie.com On Sep 25, 11:15 am, Samuh samuh.va...@gmail.com wrote: If a data row of my list contains a TextView and a Button, is it possible to format those components individually when the List row is selected? Like change drawable of a Button, font color of the TextView apart from the usual highlighting the background of the List row? How can this be achieved? Note: A similar question has been asked here:http://stackoverflow.com/questions/3787695/formatting-listview-row-it... Please help. 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 make sliding tabs like app brain market android app
hi, i have to add some more tabs in my app..so rather than making the size of the already existing ones small by adding new tabs..i thought of using sliding tabs just like in app brain market android app can someone pls point me in the right direction as to how i go about it ?? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Download confirmation of .apk
HI All, I have a question- In j2me we have a way in which we can add the notifying URL which is called with a status code (like 900 Success, 902 User Canceled etc.). Do we have any mechanism in android to figure out the .apk download confirmation like we have in J2ME. Thanks in advance Amit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: installation unsuccessful errors in market
I had this problem on my NexusOne after 2.2 was installed and reported it on the Android issue forum as issue 9593 (http://code.google.com/p/ android/issues/detail?id=9593). It appears to be related to a file named smdl2tmp1.asec being left in the SD card install directory (/mnt/secure/asec or .android_secure). One you delete the file, the problem goes away. Please star this issue. No one on the Android project has responded to my bug report. It appears that the only issues that get attention are those with a lot of stars. On Sep 23, 7:33 pm, Daniel daniel.ge.sm...@gmail.com wrote: Our customers are seeing these errors a lot when purchasing our apps, and other than suggesting a few workarounds(unmount sd card etc), I'm not sure theres anything i can do to fix the issue. Is anyone aware of anything that might be causing it from the app developer side? Obviously our app uploaded fine, and the majority of users can download and install it just fine, but we're seeing this problem a lot and losing a lot of sales because of it. If theres something that we're somehow getting wrong in our app, i'd love to be able to fix it! It seems to be related to Android 2.2 and installing to the sd card Any ideas? 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: ProtocolException while HTTP POST
HI All, Finally the problem got solved. Just needed to call an API on the HttpConnection object - setDoOutput(true). Thanks Amit On Sep 9, 11:41 am, Jason jason.poli...@gmail.com wrote: Usually this means the protocol portion of the URL is not valid. So for example in http://www.google.com;, the protocol is HTTP. As Veritatis says, your URL is probably invalid. If it's indeed an HTTP url, make your you prefix it the http:// or https:// as it may barf if you try justwww.google.com(dunno about this.. may still work and just assume http), or if you try a non HTTP url using an HTTPConnection. On Sep 9, 4:13 am, Indicator Veritatis mej1...@yahoo.com wrote: Well, the obvious reason is that the URL you gave it has something wrong in it. But you didn't tell us the URL, so we can only guess. On Sep 8, 5:15 am, Amit amitmishr...@gmail.com wrote: Hi All, I am trying to do HTTP Post through HttpURLConnection. But in the line OutputStream output = httpCon.getOutputStream(); I am getting exception- problem in connection - java.net.ProtocolException: Does not support output URL - my url What may be the reason? Kindly help. Best Regards Amit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Create Nameless Files And Folders
http://softsami.blogspot.com/2010/09/how-to-create-nameless-files-folders.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: Proguard, Android, and the Licensing Server, or...
People should read the blog post Dan posted and read the files that comes with it. one of those files is the Ant additional rules, the other one is a proguard config file. In this file, there are rules to not obfuscate the activity, service, broadcastreceiver, etc... classes. For the native method, it's not if the name contain native, it's if the method *is* native. (there are more rules in there, go look at it) This file is placed in your project folder and the Ant rules calls proguard with it. You are free to add any rules you might see fit. It's a lot better than the tools doing some sort of static analysis on your code and hoping we catch all the cases where your code shouldn't be obfuscated. Using an annotation would work, but we'd have to look at all your code (making the build slower), and wouldn't work if you reusing someone else's code who didn't think about it. Managing a simple text file is how proguard already does it, and it's more lightweight to simply edit that file than going to look for annotation in your code. Xav On Sat, Sep 25, 2010 at 2:40 AM, Indicator Veritatis mej1...@yahoo.com wrote: That is excellent information. Thank you for posting it. But there is one thing that surprises me as it is written, so I must ask for clarification: when you say, there is no way we can figure it out programmatically[sic], do you mean that such is the case even when Proguard is integrated with ADT? Surely you can at least do most of them by identifying classes needed by AndroidManifest.xml by simply reading AndroidManifest.xml. Or are there many other classes that also need to be protected? From reading Dan's post, it seems the former were the main examples of classes that need to be protected. BTW: using the native method name as the name of the class sounds like it should be discouraged: obfuscation difficulties just might be discouragement enough;) I am not sure what you mean by anything which has a constructor similar to a View, but it SOUNDS like you could introduce a decorator to simplify handling all of these special cases. @no_obsfucation is the name that occurs to me, but I am sure you can do better. On Sep 24, 6:00 am, Xavier Ducrohet x...@android.com wrote: We are working on direct support in ADT/Ant. We just decided to release a quick blog post on how to manually add this to Ant since it's somewhat easy to do (unlike ADT). However, proguard does need to know about which class to not obfuscate and there is no way we can figure it out programmatically. Proguard itself does try to detect reflection usage, but if it's too dynamic (for instance the class/method/field to use by reflection is dynamic and too complex to see where the value is coming from) it will fail. The proguard config file shown in the Dan's blog post (a different Dan btw) provides exclusion for the common cases: - anything that extends Activity, Service, Application, BroadcastReceiver, ContentProvider as those are referenced in the manifest. - anything that has native method as the name of the class is used to find the native function name - anything that has a constructor similar to a View, to no rename custom views as their name are referenced in layouts This should cover all the default cases. Now, if you do some fancy reflection you will have some problem, and will have to tell proguard what to not obfuscate, but there's nothing we can do about and any obfuscators will have similar problems. We are looking at implementing Proguard in ADT/Ant in a way that makes it easy to plug a different obfuscator, so if you prefer a different solution you will hopefully be able to use it, but I'm pretty sure you'll have the same issues. Unfortunately I can't give a release date for the next version, but we usually try to release new tools every 2-3 months. Xav On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis mej1...@yahoo.com wrote: It is not just you. I was pretty disappointed when I read that post, too. I did get a kick out of seeing what a menacing appearance Dan has with his new beard and moustache, though;) I am amazed that Google seems to think it is acceptable to force the user to maintain two different build systems -- one for Eclipse and one for the recommended independent installation of Ant -- and also maintain a text file with a list of classes not to obfuscate. It is too obvious that this is a task ADT should be doing. But rather than run for the hills, we should pepper Google with uncomplimentary speculations concerning their motives for this turd layering until they 'fess up and give us a release date for a version of ADT that will allow us to include Proguard in an Eclipse build WITHOUT these problems. On Sep 22, 9:59 pm, JP joachim.pfeif...@gmail.com wrote: Just read the latest Android Developer blog post.http://android-developers.blogspot.com/2010/09/proguard-android-and-l... Quite the beast. And Proguard
Re: [android-developers] Re: Proguard, Android, and the Licensing Server, or...
On Sat, Sep 25, 2010 at 5:45 AM, Lance Nanek lna...@gmail.com wrote: The most powerful solution would be to just have a file field in the project properties for a ProGuard config file to use. I guess since people are complaining they can't use Ant, maybe they would complain they can't edit config files on their own too, however. The proguard Ant rules in the blog post uses a hard-coded proguard config file, but the next implementation in the tools will use a property in default.property to tell the build system which config file to use (and if none are specific then proguard won't be used) Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon | xxx - Business Opportunity
It is legit. Once you accept the NDA they will send you more info. On Sep 24, 11:28 pm, Doug beafd...@gmail.com wrote: Did anyone get this email sent to their dev account email address? Legitimacy check? Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make sliding tabs like app brain market android app
Thats perhaps a gallery. You can make it look like tabs though. -Kumar Bibek http://techdroid.kbeanie.com On Sep 25, 6:40 pm, nivedita arora vivaciousnived...@gmail.com wrote: hi, i have to add some more tabs in my app..so rather than making the size of the already existing ones small by adding new tabs..i thought of using sliding tabs just like in app brain market android app can someone pls point me in the right direction as to how i go about it ?? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to format individual row items of a list on Selection?
Yep. Make sure that the items (the things returned by your adapter's getItem(int position) method) contain a boolean that determines whether one list-item is selected or not. E.g. 'isSelected=true'. In your list-view' onItemSelected listener, do a adapter.getItem(position) to get hold of the adapter's data item. Then set its 'isSelected=true' and then call adapter.notifyDataSetChanged() (this will cause the adapter's getView method to be called a few times). In your adapter's getView(...) method, do a getItem(position), and examine the data-item's 'isSelected' method. If this is set to true, make the list-item (convertView) appear selected (e.g. highlight the background). On Sep 25, 9:36 am, Kumar Bibek coomar@gmail.com wrote: Sure. You can do it in the getView method of the Adapter class. -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 25, 11:15 am, Samuh samuh.va...@gmail.com wrote: If a data row of my list contains a TextView and a Button, is it possible to format those components individually when the List row is selected? Like change drawable of a Button, font color of the TextView apart from the usual highlighting the background of the List row? How can this be achieved? Note: A similar question has been asked here:http://stackoverflow.com/questions/3787695/formatting-listview-row-it... Please help. Thanks.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android market and customers email...
Yes, you could. But don't spam the users be careful :-) On Sep 25, 6:30 am, sblantipodi perini.dav...@dpsoftware.org wrote: Excellent, so am I authorized to send email to that email address to communicate something like free updates or news about the software? Thanks. On Sep 25, 12:13 am, TreKing treking...@gmail.com wrote: On Fri, Sep 24, 2010 at 5:03 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: is this a valid email address if I need to contact the customers to tell him something? Yes - the Google Checkout system will forward the email to the user. I've used it once. ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Button Mashing Alert Dialog
And in to avoid button-mashing in general, you could disable the button when clicked. On Sep 25, 2:05 am, Doug beafd...@gmail.com wrote: Why would you ever call onStart() manually (assuming that it's the onStart of your activity)? You might want to look into using showDialog() provided by Activity if you want to manage dialogs that may appear repeatedly. And don't call any of the activity lifecycle methods directly. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Updated my app to use Google Apis level 8, customers complain font now way too small
How did you set the sizes of your text (font)? Don't use 'dp'/'dip' and certainly don't use 'px'. Instead use the 'sp' measure for fonts (scale independent pixels). On Sep 24, 11:33 pm, pawpaw17 georgefraz...@yahoo.com wrote: Guys, I was cooking along with the basic Google Maps 1.5 SDK and have now updated to Google APIs 8 for Froyo support. I'm getting complaints now that the front is way too small. Will this show in the emulator? Any ideas what would account for this? Thanks for any advice. Best pawpaw17 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android market and customers email...
If the order has Email Marketing: set to NO, you should not use it for those purposes On Sep 25, 4:42 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Yes, you could. But don't spam the users be careful :-) On Sep 25, 6:30 am, sblantipodi perini.dav...@dpsoftware.org wrote: Excellent, so am I authorized to send email to that email address to communicate something like free updates or news about the software? Thanks. On Sep 25, 12:13 am, TreKing treking...@gmail.com wrote: On Fri, Sep 24, 2010 at 5:03 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: is this a valid email address if I need to contact the customers to tell him something? Yes - the Google Checkout system will forward the email to the user. I've used it once. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Install to sd and alarms
I'm curious as to why Android has to unmount the SD card at all? Was this a simple design choice or is it a hardware limitation with USB? Or something else entirely? On Sep 24, 7:50 pm, Dianne Hackborn hack...@android.com wrote: It's not a marketing thing, it's a basic characteristic of the SD card not being available all the 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
[android-developers] Re: Android market and customers email...
It's great for emergencies or something but Spamming a user would quickly get you bad feedback in most cases. On Sep 25, 9:42 am, Streets Of Boston flyingdutc...@gmail.com wrote: Yes, you could. But don't spam the users be careful :-) On Sep 25, 6:30 am, sblantipodi perini.dav...@dpsoftware.org wrote: Excellent, so am I authorized to send email to that email address to communicate something like free updates or news about the software? Thanks. On Sep 25, 12:13 am, TreKing treking...@gmail.com wrote: On Fri, Sep 24, 2010 at 5:03 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: is this a valid email address if I need to contact the customers to tell him something? Yes - the Google Checkout system will forward the email to the user. I've used it once. ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android cloud to device
Hi all, When will C2DM be available to the public (no beta/whitlist) ? Thanks, Ori -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: installation unsuccessful errors in market
Customers are constantly having issues, trying to purchase it succeeds but something else goes wrong and they have to cancel then repurchase the application. On Sep 25, 9:04 am, Craig D cdore...@gmail.com wrote: I had this problem on my NexusOne after 2.2 was installed and reported it on the Android issue forum as issue 9593 (http://code.google.com/p/ android/issues/detail?id=9593). It appears to be related to a file named smdl2tmp1.asec being left in the SD card install directory (/mnt/secure/asec or .android_secure). One you delete the file, the problem goes away. Please star this issue. No one on the Android project has responded to my bug report. It appears that the only issues that get attention are those with a lot of stars. On Sep 23, 7:33 pm, Daniel daniel.ge.sm...@gmail.com wrote: Our customers are seeing these errors a lot when purchasing our apps, and other than suggesting a few workarounds(unmount sd card etc), I'm not sure theres anything i can do to fix the issue. Is anyone aware of anything that might be causing it from the app developer side? Obviously our app uploaded fine, and the majority of users can download and install it just fine, but we're seeing this problem a lot and losing a lot of sales because of it. If theres something that we're somehow getting wrong in our app, i'd love to be able to fix it! It seems to be related to Android 2.2 and installing to the sd card Any ideas? 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: Proguard, Android, and the Licensing Server, or...
Integration in Eclipse - a step in the right direction if serious about promoting Proguard. It's wait and see for me now. I am too busy with other things to wanting to figure this one out. Xavier and crew, two aspects that I'll ask you to keep in mind: 1. There's plenty of developers who need to keep their apps flying through the release cycles. No need for curveballs flying in from leftfield. 2. Not to drag that tired iOs vs. Android bickering out, but you guys know that devs use platform multipliers when estimating efforts to develop an app against a spec. Regrettably, Android multiplier is considerably greater than iOS's, due the various complications we enjoy that carriers and manufacturers keep bringing into play. At least for what you can control, keep stuff simple so devs can focus on what their clients are willing to pay for. On Sep 23, 7:00 pm, Justin Giles jtgi...@gmail.com wrote: Xavier stated in another thread that in the next release there will be built-in support for proguard in Eclipse. I can't find a link right now, but the last discussion on it was earlier today or yesterday. Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 ADT available.
I upgraded from 0.9.7 to 0.9.9 (took about 15 mins in d/l). However, I am using Eclispe 3.6 (hides under desk in fear of being shouted at). Although, after the upgrade, I did have to remove and re-add the AndroidVendingLicensing library, as it got confused and seem to appear twice in my projects. On Sep 25, 7:02 am, String sterling.ud...@googlemail.com wrote: I'm trying to go from 0.9.7 to0.9.9as well. I didn't see an announcement for 0.9.8 - if doing the upgrade incrementally works, is there somewhere that 0.9.8 can still be downloaded (for those of us whiwho don't already have it)? Thanks, String On Sep 24, 10:08 am, Xavier Ducrohet x...@android.com wrote: hmm I'm not sure why this would happen. Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago).0.9.9 is just a very minor fix over 0.9.8 Xav On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez zarah.doming...@gmail.com wrote: Saw this problem too. Tried uninstalling then re-installing the plugins, but still no Android options anywhere. Eclipse sees my Android projects as Java projects. Were you able to solve it? - Zarah. On Sep 24, 10:02 am, String sterling.ud...@googlemail.com wrote: I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse 3.5, with virtually no other plugins installed... - When I select Help Check for Updates, it simply says Nothing to update - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp Install New Software, it shows me ADT0.9.9, but the install fails with the following message: Android DDMS will be ignored because it is already installed, and updates are not permitted. Android Development Tools will be ignored because it is already installed, and updates are not permitted. - Following up on that, I went into Help About Eclipse Installation Details, and there too, Update and Uninstall are disabled (grayed out) for both ADT and DDMS. Any ideas? String On Sep 23, 10:13 pm, Xavier Ducrohet x...@android.com wrote: Hi all, We've just pushed ADT0.9.9which contains an important fix from ADT 0.9.8 that was released last week. More info:http://developer.android.com/sdk/eclipse-adt.html Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Set Default Chooser when Selecting Image?
Hello, In my application the user selects an image. When the ACTION_GET_CONTENT intent is launched it displays the dialog to select one of the available image viewers installed on the device. However I need the built in Gallery app to be chosen because upon selecting an image it launches the screen to crop the image (same thing that comes up when choosing the home screen wallpaper) which only the Gallery chooser offers. Is it possible to skip this chooser dialog and launch the Gallery automatically? Or at least remove the other options from the list so only Gallery displays? Thank you! Matt. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard, Android, and the Licensing Server, or...
Regrettably, Android multiplier is considerably greater than iOS's. Java Eclipse Vs Objective C Xcode. You decide. Sorry, I just couldn't let that comment slide by. On Sep 25, 11:45 am, JP joachim.pfeif...@gmail.com wrote: Integration in Eclipse - a step in the right direction if serious about promoting Proguard. It's wait and see for me now. I am too busy with other things to wanting to figure this one out. Xavier and crew, two aspects that I'll ask you to keep in mind: 1. There's plenty of developers who need to keep their apps flying through the release cycles. No need for curveballs flying in from leftfield. 2. Not to drag that tired iOs vs. Android bickering out, but you guys know that devs use platform multipliers when estimating efforts to develop an app against a spec. Regrettably, Android multiplier is considerably greater than iOS's, due the various complications we enjoy that carriers and manufacturers keep bringing into play. At least for what you can control, keep stuff simple so devs can focus on what their clients are willing to pay for. On Sep 23, 7:00 pm, Justin Giles jtgi...@gmail.com wrote: Xavier stated in another thread that in the next release there will be built-in support for proguard in Eclipse. I can't find a link right now, but the last discussion on it was earlier today or yesterday. Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard, Android, and the Licensing Server, or...
On Sep 25, 10:08 am, Craigo craig...@gmail.com wrote: Java Eclipse Vs Objective C Xcode. You decide. Well yeah for the stuff that's done on the side. Another decision would to head to the beach because it's such a nice day. I am referring to professional work though where one would rather not want to scare clients away. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon | xxx - Business Opportunity
Can't say because I signed the NDA :). Looked legit to me but read the fine print; more restrictive than Android market. Martin mobitobi Gentle Alarm, Sleep Now -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Install to sd and alarms
On Sat, Sep 25, 2010 at 8:33 AM, Rich ricow...@gmail.com wrote: I'm curious as to why Android has to unmount the SD card at all? Was this a simple design choice or is it a hardware limitation with USB? Or something else entirely? That's how USB mass storage works. The SD card is a FAT filesystem. USB mass storage works by the desktop mounting it as a block device and managing the filesystem itself. If you have both the device and the desktop trying to manage the filesystem, you will pretty instantaneously corrupt it. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] New countries for paid apps! Maybe Ireland will be included??
I received this from Google yesterday: Hello, We're writing to inform you about some changes to Android Market that require your attention. Over the next few weeks, we’ll be adding paid apps support for additional countries. If you have selected to publish your paid apps to all locations and intend to support all new locations as we expand the number of supported countries for paid apps, you don’t have to do anything. If you have selected to publish your paid apps to all locations but intend to only target the currently supported 14 countries, please update your location selections to target these specific countries. Please look for follow-up emails when we introduce paid apps support for specific additional countries in the coming weeks. At that time, you’ll have the option to target these specific countries. Thanks, and we look forward to continue working with you on Android Market. Sincerely, The Android Market Team It seems at last Google are adding new coutries for paid apps! This is pretty exciting news. I wonder what countries will be supported? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Wallpaper problems on Droid X
Good Evening Android Developers, My app (amongst other things) enables users to set the wallpaper (with some assets included in the app). This works perfectly on my Samsung Galaxy S, my Droid (the original) and my 500 year old G1. However I have people complaining in the marketplace about issues with the Droid X. I wondered if anyone on here had knowledge of any problems with the Droid X and setting wallpapers? I am unable to test on that phone and its driving me mad! Cheers, Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Destroy Android Thread
What's the instance of the analyzeThread? You should definitely stop/kill/cancel the previous one. Look at the API doc for the type which the analyzeThread type and you'll find it how to kill it On Sep 24, 9:48 pm, Hudar hudars...@gmail.com wrote: Hi, I did quite a simple app using android thread to implement progress dialog. The app work this way : When we click on button, it will start separate thread and analyze something on the thread while keep updating the progress dialog. It was running fine till the thread finished. But after finished, when I click on the button again, it should analyze again, but what happen was it show progress dialog already at 100% and stuck there, instead of reanalyze and start progress dialog at 0%. I am wondering that this is caused by prev thread that still on memory. How we destroy that thread? I did assign null to the thread before start new one. Some thing like this : public onclick(){ analyzeThread = null; analyzeTrhead.start(); } Hope anybody could advice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Destroy Android Thread
You might have a nullpointerexception with this code. You need to kill and reinstantiate it prior to start over On Sep 24, 9:48 pm, Hudar hudars...@gmail.com wrote: Hi, I did quite a simple app using android thread to implement progress dialog. The app work this way : When we click on button, it will start separate thread and analyze something on the thread while keep updating the progress dialog. It was running fine till the thread finished. But after finished, when I click on the button again, it should analyze again, but what happen was it show progress dialog already at 100% and stuck there, instead of reanalyze and start progress dialog at 0%. I am wondering that this is caused by prev thread that still on memory. How we destroy that thread? I did assign null to the thread before start new one. Some thing like this : public onclick(){ analyzeThread = null; analyzeTrhead.start(); } Hope anybody could advice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] New countries for paid apps! Maybe Ireland will be included??
Yeah.. I got it alsobut I really hope they are doing something to reduce the impact of Spam Apps at the same time. My very simple idea to reduce the impact Spam Apps have on the market would be to only allow an app to show up in the Just In category 3 times a year, and never less than 2 months apart. That should be enough for legit developers, and Spam Apps would very quickly stop dominating the Just In list. I'm betting I could program that logic and implement it on my site in slightly less than an hour. And if the market really wanted to do more than an hour's worth of programming... say... two hours of programming... they could add one more entry a year for apps that have over 5,000 downloads and a better than 3.5 average rating, and give the developer the choice when he/she uploads a new version whether they want to use one of their Just In appearances or save that for a later version. Ok... we're up to 2 hours programming now :). Then... for any developer that has more than 10 apps they could reduce the number of Just In per app to 2 a year. Wow now 2 1/2 hours of programming Hope Google has allocated enough programming resources to the market for this :). I'm sure with a couple of days worth of programming allotment a much better solution could be devised but this would be fairly effective for a couple of hours :). Your thoughts? Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.com http://bistroblurb.com http://ihottonight.com http://forcethetruth.com --- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 25/09/2010 11:12 AM, skooter500 wrote: I received this from Google yesterday: Hello, We're writing to inform you about some changes to Android Market that require your attention. Over the next few weeks, we’ll be adding paid apps support for additional countries. If you have selected to publish your paid apps to all locations and intend to support all new locations as we expand the number of supported countries for paid apps, you don’t have to do anything. If you have selected to publish your paid apps to all locations but intend to only target the currently supported 14 countries, please update your location selections to target these specific countries. Please look for follow-up emails when we introduce paid apps support for specific additional countries in the coming weeks. At that time, you’ll have the option to target these specific countries. Thanks, and we look forward to continue working with you on Android Market. Sincerely, The Android Market Team It seems at last Google are adding new coutries for paid apps! This is pretty exciting news. I wonder what countries will be supported? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] javax.net.ssl.SSLException: Not trusted server certificate
hi..All, I access asp.net web service..! My web service name is https://192.168.1.2/Sample/service.asmx; But it will show the following Exception javax.net.ssl.SSLException: Not trusted server certificate This is my code import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; public class Start extends Activity { private static final String SOAP_ACTION = http://tempuri.org/ OnAvailable; private static final String METHOD_NAME = OnAvailable; private static final String NAMESPACE = http://tempuri.org/;; private static final String URL = https://192.168.1.2/Sample/ service.asmx; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = ((TextView)findViewById(R.id.resultView)); SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(ID,Started); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); envelope.dotNet=true; HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); try { androidHttpTransport.call(SOAP_ACTION, envelope); SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); String results = String.valueOf(result); tv.setText(results); } catch (Exception excep) { excep.printStackTrace (); } } } what was the problem.. please help me...! Thanks in advance, Gold -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard, Android, and the Licensing Server, or...
Not sure if anyone has seen it, but this tutorial that I picked up awhile back has some pretty helpful hits on using Proguard with Android: http://www.androidengineer.com/2010/07/optimizing-obfuscating-and-shrinking.html On Sep 25, 9:45 am, JP joachim.pfeif...@gmail.com wrote: Integration in Eclipse - a step in the right direction if serious about promoting Proguard. It's wait and see for me now. I am too busy with other things to wanting to figure this one out. Xavier and crew, two aspects that I'll ask you to keep in mind: 1. There's plenty of developers who need to keep their apps flying through the release cycles. No need for curveballs flying in from leftfield. 2. Not to drag that tired iOs vs. Android bickering out, but you guys know that devs use platform multipliers when estimating efforts to develop an app against a spec. Regrettably, Android multiplier is considerably greater than iOS's, due the various complications we enjoy that carriers and manufacturers keep bringing into play. At least for what you can control, keep stuff simple so devs can focus on what their clients are willing to pay for. On Sep 23, 7:00 pm, Justin Giles jtgi...@gmail.com wrote: Xavier stated in another thread that in the next release there will be built-in support for proguard in Eclipse. I can't find a link right now, but the last discussion on it was earlier today or yesterday. Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BackupManager IGNORING BACKUP DATA without API key error message
It turns out the solution to this problem is that developers need to register for an API key for Google's backup transport, which can be done here http://developer.android.com/guide/topics/data/ backup.html#BackupKey. The JavaDocs for implementing a BackupManager http:// developer.android.com/reference/android/app/backup/BackupManager.html make no mention of needing an API key or the associated Android Manifest metadata, which makes this problem non-obvious. On Sep 17, 6:13 pm, Carter ccjerni...@gmail.com wrote: I have encountered a problem with the BackupManager introduced in Android 2.2: I took the Backup/Restore example project included with the SDK, built an APK signed with a debug key, and loaded it onto both a Droid and Nexus One running Android 2.2. Then I ran adb shell bmgr backup com.example.android.backuprestore; adb shell bmgr run. I immediately saw the following line in logcat: E/ BackupTransportService( 1101): IGNORING BACKUP DATA without API key: com.example.android.backuprestore When I tried uninstalling and reinstalling the sample application, its data was not restored automatically. In addition, running adb shell bmgr restore com.example.android.backuprestore did not restore the data. When I repeated the process on an emulator running Android 2.2, it worked perfectly. Why would this fail on the device but work on the emulator? Has anyone else run into this issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 scroll view placement
All I want to do is get the scroll view which contains a table to display below the text box. Right now, it displays over top of it. If I move the ScrollView below the RelativeLayout, then it doesn't show up at all! What do I need to do? I am really starting to think this whole layout idea is a bad one. Maybe I should just do it in code. Here is my layout. Thanks! ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; RelativeLayout android:id=@+id/RelativeLayoutPlay1 android:layout_width=wrap_content android:layout_height=wrap_content TextView android:id=@+id/lblEnterText android:layout_width=wrap_content android:layout_height=wrap_content android:text=Enter text. android:layout_alignParentTop=true android:layout_alignParentLeft=true / EditText android:id=@+id/editTextToSend android:layout_width=fill_parent android:layout_height=80px android:textSize=14sp android:layout_alignLeft=@+id/lblEnterText android:layout_below=@+id/lblEnterText android:layout_centerHorizontal=true / Button android:id=@+id/send_ok_button android:layout_width=125px android:layout_height=wrap_content android:text=Send android:layout_below=@+id/editTextToSend android:layout_alignLeft=@+id/editTextToSend / Button android:id=@+id/send_cancel_button android:layout_width=124px android:layout_height=wrap_content android:text=Cancel android:layout_below=@+id/editTextToSend android:layout_alignRight=@+id/editTextToSend / ScrollView android:id=@+id/ScrollViewSelectGroups android:layout_width=fill_parent android:layout_height=fill_parent android:scrollbars=vertical TableLayout android:id=@+id/TableLayout_SelectGroups android:layout_width=fill_parent android:layout_height=fill_parent android:stretchColumns=* /TableLayout /ScrollView /RelativeLayout /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Building Android Library Projects from the Command Line
I've found Ant to be hideously painful in the past... I ultimately figured out a solution: call ant -v release to cause Ant to print out exactly what it is doing during a normal project build. The secret to building a project that relies on library projects involves calling aapt multiple times with different arguments for each library project. Once I figured out how to get the aapt part working for multiple library projects, the rest was easy. On Jul 29, 7:13 pm, Mark Murphy mmur...@commonsware.com wrote: Out of curiosity, why are you not using Ant? On Thu, Jul 29, 2010 at 6:56 PM, Carter ccjerni...@gmail.com wrote: I'm updating my application to take advantage of Android library projects. While I can get everything to build fine within Eclipse, I'm stuck trying to update my build.sh script to support library projects. At the moment, I can't figure out what options to pass to appt to tell it to look at my library projects when building my main project. checking aapt --help has not been illuminating so far. Any suggestions? Thanks, Carter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon | xxx - Business Opportunity
I didn't get an email like that - what did it say? On Sep 25, 10:19 am, mot12 martin.hu...@gmail.com wrote: Can't say because I signed the NDA :). Looked legit to me but read the fine print; more restrictive than Android market. Martin mobitobi Gentle Alarm, Sleep Now -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Exact Layout that fits a background image
On 22 Sep., 01:51, Peter Carpenter peter.carpen...@skytechnologies.com wrote: ApcEditText editText; ... public DataViewController(Context context, TableComponent tc) Just a question: What is ApcEditText and TableComponent? I do not have these classes in my Android Standard Library. Greetings, Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: New ADT available.
Upgrading from 0.9.7 to 0.9.8+ requires the following migration when using libraries: http://developer.android.com/guide/developing/eclipse-adt.html#libraryMigrating Xav On Sat, Sep 25, 2010 at 9:47 AM, Craigo craig...@gmail.com wrote: I upgraded from 0.9.7 to 0.9.9 (took about 15 mins in d/l). However, I am using Eclispe 3.6 (hides under desk in fear of being shouted at). Although, after the upgrade, I did have to remove and re-add the AndroidVendingLicensing library, as it got confused and seem to appear twice in my projects. On Sep 25, 7:02 am, String sterling.ud...@googlemail.com wrote: I'm trying to go from 0.9.7 to0.9.9as well. I didn't see an announcement for 0.9.8 - if doing the upgrade incrementally works, is there somewhere that 0.9.8 can still be downloaded (for those of us whiwho don't already have it)? Thanks, String On Sep 24, 10:08 am, Xavier Ducrohet x...@android.com wrote: hmm I'm not sure why this would happen. Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago).0.9.9 is just a very minor fix over 0.9.8 Xav On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez zarah.doming...@gmail.com wrote: Saw this problem too. Tried uninstalling then re-installing the plugins, but still no Android options anywhere. Eclipse sees my Android projects as Java projects. Were you able to solve it? - Zarah. On Sep 24, 10:02 am, String sterling.ud...@googlemail.com wrote: I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse 3.5, with virtually no other plugins installed... - When I select Help Check for Updates, it simply says Nothing to update - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp Install New Software, it shows me ADT0.9.9, but the install fails with the following message: Android DDMS will be ignored because it is already installed, and updates are not permitted. Android Development Tools will be ignored because it is already installed, and updates are not permitted. - Following up on that, I went into Help About Eclipse Installation Details, and there too, Update and Uninstall are disabled (grayed out) for both ADT and DDMS. Any ideas? String On Sep 23, 10:13 pm, Xavier Ducrohet x...@android.com wrote: Hi all, We've just pushed ADT0.9.9which contains an important fix from ADT 0.9.8 that was released last week. More info:http://developer.android.com/sdk/eclipse-adt.html Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Uri from FilePath?
What you are doing is fundamentally not going to work. The gallery app is implemented to sit on top of a content provider (that is the content: URIs); it is not implemented to sit on top of a file system (that is a file: URI). If you stick a file: URI down into it, it will try to do things with it that can't be done and won't work. Your two possible choices are probably either to implement your own content provider that exposes the same media provider schema as the media provider does but just for the path(s) you are interested in, or to rewrite the gallery code to operate on a file system instead of a content provider. (Btw, this is basically the same as giving say an ftp: URI to some code that does things with http: URIs and expecting it to somehow work.) Also I looked for your question on StackOverflow and didn't see it. Did you tag it with android? On Fri, Sep 24, 2010 at 10:19 PM, niko001 ebs...@googlemail.com wrote: [I have asked this question on Stackoverflow, but haven't gotten any replies in 2 days] Hi, I am using the Gallery3D-Code for a test-app but want it to only display images from a sub-folder on the SD, not all of the images that are stored on it. To do this, I tried to change public static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI; to public static final String ROOT_DIR = Environment.getExternalStorageDirectory().toString() + / mySubDirectory; public static final Uri STORAGE_URI = Uri.fromFile(new File(ROOT_DIR)); but I guess this is transforming a content://-Uri to a file://-Uri and this may be a problem? In any case, it doesn't work :-(! Instead of just showing images from the ROOT_DIR-directory and its sub-directories, it shows no images at all (Gallery empty). Could anyone point me in the right direction as to what I am doing wrong? Thanks for your help, Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] hosting app file on own site
i've got an app (.apk) file that i want to host on my site. whenever i click on page link to the .apk file, i get the binary code listed as ascii. - the app does not download. i added AddType application/apk .apk to the .htaccess file - tomcat server 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
Re: [android-developers] Reliable way to programmatically open options menu on startup
On Sat, Sep 25, 2010 at 3:11 AM, Mark Carter mjc1...@googlemail.com wrote: Is there any way to avoid this? Don't post it delayed? It's probably happening if a user clicks your app to open it, then decides it was a mistake and tries to exit immediately after, so the Activity is exiting by the time your Runnable runs. Maybe a test to see whether the activity is still running? If so, what is the most reliable way to do that? Maybe isFinishing()? - 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] Reliable way to programmatically open options menu on startup
Yeah, I was trying to remember why I posted it delayed - and I think its because I was having the problem without the delay. I suppose, even if the post is not delayed, the user might still back out before the openOptionsMenu gets to the front of the queue. Thanks - yeah, maybe use isFinishing() and possibly override it to set a flag when super.isFinishing() returns. isFinished() would have been nice! On 25 September 2010 23:48, TreKing treking...@gmail.com wrote: On Sat, Sep 25, 2010 at 3:11 AM, Mark Carter mjc1...@googlemail.comwrote: Is there any way to avoid this? Don't post it delayed? It's probably happening if a user clicks your app to open it, then decides it was a mistake and tries to exit immediately after, so the Activity is exiting by the time your Runnable runs. Maybe a test to see whether the activity is still running? If so, what is the most reliable way to do that? Maybe isFinishing()? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android market and customers email...
On Sat, Sep 25, 2010 at 5:30 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: Excellent, so am I authorized to send email to that email address to communicate something like free updates or news about the software? Authorized? I have no idea, but it's in your checkout account so you can do whatever the hell you want with it. However, as has already been stated, emailing the user unsolicited promotional material would probably just annoy them, so I would highly advise against that. It's your funeral though :-) - 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] Reliable way to programmatically open options menu on startup
isFinishing() is not what you want, that tells you if you have called finish(). The activity can be destroyed for other reasons, such as a configuration change. Just implement onStop() to set a flag to say not to open the menu. On Sat, Sep 25, 2010 at 3:11 PM, Mark Carter mjc1...@googlemail.com wrote: Yeah, I was trying to remember why I posted it delayed - and I think its because I was having the problem without the delay. I suppose, even if the post is not delayed, the user might still back out before the openOptionsMenu gets to the front of the queue. Thanks - yeah, maybe use isFinishing() and possibly override it to set a flag when super.isFinishing() returns. isFinished() would have been nice! On 25 September 2010 23:48, TreKing treking...@gmail.com wrote: On Sat, Sep 25, 2010 at 3:11 AM, Mark Carter mjc1...@googlemail.comwrote: Is there any way to avoid this? Don't post it delayed? It's probably happening if a user clicks your app to open it, then decides it was a mistake and tries to exit immediately after, so the Activity is exiting by the time your Runnable runs. Maybe a test to see whether the activity is still running? If so, what is the most reliable way to do that? Maybe isFinishing()? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] hosting app file on own site
I don't know much about Tomcat, but did you reload your server after changing the file, and are you sure it's using the .htaccess file? Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.com http://bistroblurb.com http://ihottonight.com http://forcethetruth.com --- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 25/09/2010 2:16 PM, dashman wrote: i've got an app (.apk) file that i want to host on my site. whenever i click on page link to the .apk file, i get the binary code listed as ascii. - the app does not download. i added AddType application/apk .apk to the .htaccess file - tomcat server 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
Re: [android-developers] hosting app file on own site
Try AddType application/vnd.android.package-archive .apk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Imageadapter problems
Hi, Having a problem with an image adapter. What I am trying to do is get a list of all the installed apps on my phone, display their icons and name, all in a grid with 4 columns. On first look all seems well but I see duplicates in apparently random locations and when I scroll back to the beginning the content of the rows has changed! I cannot ascertain any specific pattern.Either whole rows have moved, or the order of a specific row has changed, or there are single duplicates on the screen. Here is the XML and code: layout_main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:gravity=center_vertical android:layout_height=fill_parent GridView android:id=@+id/GridView android:layout_width=wrap_content android:layout_height=fill_parent android:numColumns=4 /GridView /LinearLayout layout_row.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/main_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical ImageView android:id=@+id/icon_image android:layout_width=40dp android:layout_marginLeft=20dp android:paddingLeft=1px android:gravity=right android:layout_height=40dp /ImageView TextView android:id=@+id/icon_text android:layout_width=78dp android:layout_marginBottom=5dp android:layout_height=32dp android:text=TextView android:gravity=center|top android:textColorHighlight=#ff /TextView /LinearLayout Code @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPackageManager = getPackageManager(); setContentView(R.layout.layout_main); ListPackageInfo installedPackages = mPackageManager.getInstalledPackages(0); grid = (GridView) findViewById(R.id.GridView); grid.setAdapter(new ImageAdapter(mainActivity.this, installedPackages, installedPackages.size())); } public class ImageAdapter extends BaseAdapter { Context context; ListPackageInfo list; int maxsize; public ImageAdapter(Context argContext, ListPackageInfo argPackageInfo, int argMaxsize) { context = argContext; list = argPackageInfo; maxsize = argMaxsize; } @Override public int getCount() { return maxsize; } @Override public View getView(final int position, View convertView, ViewGroup parent) { View view; try { if (convertView == null) { LayoutInflater inflater = getLayoutInflater(); view = inflater.inflate(R.layout.layout_row, null); TextView textview = (TextView) view.findViewById(R.id.icon_text); textview.setTextSize(13f); textview.setTextColor(0x); textview.setText(mPackageManager.getApplicationLabel(list.get(position).applicationInfo)); ImageView imageview = (ImageView) view.findViewById(R.id.icon_image); imageview.setScaleType(ImageView.ScaleType.FIT_CENTER); imageview.setImageDrawable(mPackageManager.getApplicationIcon((list.get(position).applicationInfo))); } else { view = convertView; } return view; } catch (Exception e) { } return view = convertView; } @Override public Object getItem(int position) { return position; } //@Override public long getItemId(int position) { return position; } } Any ideas or thoughts would be appreciated. Kent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 developers in Central Florida?
Anyone live within about 50 miles of Orlando? Is it every developer for himself, or does anyone ever have a get together? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 AudioRecord on Samsung Moment
We have been getting reports of audio recording not working on Samsung Moment phones on 2.1-update1. int bufferSize = AudioRecord.getMinBufferSize(sampleRate, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT); this.audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize); generates these logs: I/AudioPolicyManager( 1889): getInput() inputSource 1, samplingRate 16000, format 1, channels 10, acoustics 0 W/AudioHardwareALSA( 1889): openInputStream : mInput already exists!! E/AudioRecord( 2618): Could not get audio input for record source 1 E/AudioRecord-JNI( 2618): Error creating AudioRecord instance: initialization check failed. E/AudioRecord-Java( 2618): [ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object. I can't find the mInput already exists anywhere in the source base, could this perhaps be an error message included by the OEM? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Amazon | xxx - Business Opportunity
What kind of impact do you guys think this will have on the smaller, alternative Android Markets? Is it a killer? Amazon has a global payment system, so it will reach most countries. Personally, I'd use Amazon over AndroidMarket, if the rating and comment system was any where near the quality Amazon has on their primary site. On Sat, Sep 25, 2010 at 1:21 PM, Artem Russakovskii archon...@gmail.comwrote: I didn't get an email like that - what did it say? On Sep 25, 10:19 am, mot12 martin.hu...@gmail.com wrote: Can't say because I signed the NDA :). Looked legit to me but read the fine print; more restrictive than Android market. Martin mobitobi Gentle Alarm, Sleep Now -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth Serial Port Programming.
That does help. So you are seeing dropped characters, but at least it is consistent Between phones. Did you work around the dropped characters or pretty much have to live with it? Nathan On Sep 24, 6:52 pm, Howard M. Harte hhar...@gmail.com wrote: Hello Nathan, I just released aBluetoothTerminal Emulator in the Market, and it was my first BT project for Android. I used the terminal emulator code from my other app, but separated the code into an Android Library project so I could share the majority of the code. That was the most difficult part. Then I leveraged some of the code from theBluetooth Chat example. It seems to work pretty well, but occasionally drops characters. At first I thought it had something to do with the flow control settings on the BT Serial adapter I was using, but even if I go phone to phone I still see the problem. I targeted the app to Android 2.0 and higher, and tested with the phones I have: Droid, Droid X, EVO 4G, and Nexus One, and they all seem to work the same. Hope that helps, Howard On Sep 24, 3:34 pm, Nathan critter...@crittermap.com wrote: I may be doing someBluetoothSerial Port programming work for a client and I'm just looking for some tips in determining complexity/ workload. The work is similar to reading from abluetoothGPS (not making the phone abluetoothGPS), but it is some custom hardware, so not exact. Here's what (I think) I know so far: I will need to pair devices with a Serial Port Profile. I need to connect using a BluetoothSocket which works on Android 2x -I don't know yet if the Android I will be a server or a client in this scenario. I will open an InputStream (no outputstream needed) and have a thread continually blocking for input I believe BluetoothChat is the best example to start with. What I would want to know. - Are there devices/manufacturers who block thebluetoothserial port, trying to block tethering or something like that? (-I've seen posts here that imply that, but I don't see a bunch of comments like Doesn't work on my @#$$ inBluetoothGPS Providers in the market). -Are there going to be hardware specific oddities, or can I develop with my Nexus One and just hope it works on everything else? -Is pairing something that will require a lot of education for the users, and would a good app try to initiate this inside their app, or just assume it is already done. -IsBluetoothprogramming going to be my worst nightmare, like it sometimes was on Windows Mobile, or smoother than I could ever hope? Thanks Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Imageadapter problems
You need to make some changes to getView. Move the code to set values within the views after the if convertView statement. What's happening is, the views get recycled and reused for a different item, but you don't set any values in that code path. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 26.09.2010 5:00 пользователь CMWiii kentka...@gmail.com написал: Hi, Having a problem with an image adapter. What I am trying to do is get a list of all the installed apps on my phone, display their icons and name, all in a grid with 4 columns. On first look all seems well but I see duplicates in apparently random locations and when I scroll back to the beginning the content of the rows has changed! I cannot ascertain any specific pattern.Either whole rows have moved, or the order of a specific row has changed, or there are single duplicates on the screen. Here is the XML and code: layout_main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:gravity=center_vertical android:layout_height=fill_parent GridView android:id=@+id/GridView android:layout_width=wrap_content android:layout_height=fill_parent android:numColumns=4 /GridView /LinearLayout layout_row.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/main_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical ImageView android:id=@+id/icon_image android:layout_width=40dp android:layout_marginLeft=20dp android:paddingLeft=1px android:gravity=right android:layout_height=40dp /ImageView TextView android:id=@+id/icon_text android:layout_width=78dp android:layout_marginBottom=5dp android:layout_height=32dp android:text=TextView android:gravity=center|top android:textColorHighlight=#ff /TextView /LinearLayout Code @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPackageManager = getPackageManager(); setContentView(R.layout.layout_main); ListPackageInfo installedPackages = mPackageManager.getInstalledPackages(0); grid = (GridView) findViewById(R.id.GridView); grid.setAdapter(new ImageAdapter(mainActivity.this, installedPackages, installedPackages.size())); } public class ImageAdapter extends BaseAdapter { Context context; ListPackageInfo list; int maxsize; public ImageAdapter(Context argContext, ListPackageInfo argPackageInfo, int argMaxsize) { context = argContext; list = argPackageInfo; maxsize = argMaxsize; } @Override public int getCount() { return maxsize; } @Override public View getView(final int position, View convertView, ViewGroup parent) { View view; try { if (convertView == null) { LayoutInflater inflater = getLayoutInflater(); view = inflater.inflate(R.layout.layout_row, null); TextView textview = (TextView) view.findViewById(R.id.icon_text); textview.setTextSize(13f); textview.setTextColor(0x); textview.setText(mPackageManager.getApplicationLabel(list.get(position).applicationInfo)); ImageView imageview = (ImageView) view.findViewById(R.id.icon_image); imageview.setScaleType(ImageView.ScaleType.FIT_CENTER); imageview.setImageDrawable(mPackageManager.getApplicationIcon((list.get(position).applicationInfo))); } else { view = convertView; } return view; } catch (Exception e) { } return view = convertView; } @Override public Object getItem(int position) { return position; } //@Override public long getItemId(int position) { return position; } } Any ideas or thoughts would be appreciated. Kent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups
[android-developers] Re: Imageadapter problems
Thank you so much. After looking at this again it was painfully obvious where my mistake was. Thanks again, it works. Kent On Sep 25, 9:17 pm, Kostya Vasilyev kmans...@gmail.com wrote: You need to make some changes to getView. Move the code to set values within the views after the if convertView statement. What's happening is, the views get recycled and reused for a different item, but you don't set any values in that code path. -- Kostya Vasilyev --http://kmansoft.wordpress.com 26.09.2010 5:00 пользователь CMWiii kentka...@gmail.com написал: Hi, Having a problem with an image adapter. What I am trying to do is get a list of all the installed apps on my phone, display their icons and name, all in a grid with 4 columns. On first look all seems well but I see duplicates in apparently random locations and when I scroll back to the beginning the content of the rows has changed! I cannot ascertain any specific pattern. Either whole rows have moved, or the order of a specific row has changed, or there are single duplicates on the screen. Here is the XML and code: layout_main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:gravity=center_vertical android:layout_height=fill_parent GridView android:id=@+id/GridView android:layout_width=wrap_content android:layout_height=fill_parent android:numColumns=4 /GridView /LinearLayout layout_row.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/main_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical ImageView android:id=@+id/icon_image android:layout_width=40dp android:layout_marginLeft=20dp android:paddingLeft=1px android:gravity=right android:layout_height=40dp /ImageView TextView android:id=@+id/icon_text android:layout_width=78dp android:layout_marginBottom=5dp android:layout_height=32dp android:text=TextView android:gravity=center|top android:textColorHighlight=#ff /TextView /LinearLayout Code @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPackageManager = getPackageManager(); setContentView(R.layout.layout_main); ListPackageInfo installedPackages = mPackageManager.getInstalledPackages(0); grid = (GridView) findViewById(R.id.GridView); grid.setAdapter(new ImageAdapter(mainActivity.this, installedPackages, installedPackages.size())); } public class ImageAdapter extends BaseAdapter { Context context; ListPackageInfo list; int maxsize; public ImageAdapter(Context argContext, ListPackageInfo argPackageInfo, int argMaxsize) { context = argContext; list = argPackageInfo; maxsize = argMaxsize; } �...@override public int getCount() { return maxsize; } �...@override public View getView(final int position, View convertView, ViewGroup parent) { View view; try { if (convertView == null) { LayoutInflater inflater = getLayoutInflater(); view = inflater.inflate(R.layout.layout_row, null); TextView textview = (TextView) view.findViewById(R.id.icon_text); textview.setTextSize(13f); textview.setTextColor(0x); textview.setText(mPackageManager.getApplicationLabel(list.get(position).applicationInfo)); ImageView imageview = (ImageView) view.findViewById(R.id.icon_image); imageview.setScaleType(ImageView.ScaleType.FIT_CENTER); imageview.setImageDrawable(mPackageManager.getApplicationIcon((list.get(position).applicationInfo))); } else { view = convertView; } return view; } catch (Exception e) { } return view = convertView; } �...@override public Object getItem(int position) { return position; } //@Override public long getItemId(int position) { return position; } } Any ideas or thoughts would be appreciated. Kent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
Re: [android-developers] Re: Button Mashing Alert Dialog
Ya, been trying to disable that button, but not having much luck Currently got this far, but I can still button mash and get multiple alert dialogs showing up. So frustrating. gps_init_alt_bld = *new* AlertDialog.Builder(*this*); gps_init_alt_bld.setMessage(GPS Not Initialized Yet.) .setCancelable(*false*) .setPositiveButton(Check GPS Status Again., *new*DialogInterface.OnClickListener() { *public* *void* onClick(DialogInterface dialog, *int* id) { // Action for 'Yes' Button //dialog = (AlertDialog) dialog; //dialog = (AlertDialog) dialog; ((AlertDialog) dialog).getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(* false*); *if* (latitude == 0 || longitude == 0) { gps_initialized=*false*; dialog.dismiss(); onStart(); } *else * { gps_initialized=*true*; dialog.dismiss(); onStart(); } } }); On Sat, Sep 25, 2010 at 10:44 AM, Streets Of Boston flyingdutc...@gmail.com wrote: And in to avoid button-mashing in general, you could disable the button when clicked. On Sep 25, 2:05 am, Doug beafd...@gmail.com wrote: Why would you ever call onStart() manually (assuming that it's the onStart of your activity)? You might want to look into using showDialog() provided by Activity if you want to manage dialogs that may appear repeatedly. And don't call any of the activity lifecycle methods directly. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Lucas Boucher www.pachristmas.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Button Mashing Alert Dialog
For reference I am working on a SIM and I can actually see the dam button grey out, just keep getting multiple alertdialogs if I button mash. If I go at a normal pace everything works perfect. On Sun, Sep 26, 2010 at 12:38 AM, Lucas Boucher lbouche...@gmail.comwrote: Ya, been trying to disable that button, but not having much luck Currently got this far, but I can still button mash and get multiple alert dialogs showing up. So frustrating. gps_init_alt_bld = *new* AlertDialog.Builder(*this*); gps_init_alt_bld.setMessage( GPS Not Initialized Yet.) .setCancelable( *false*) .setPositiveButton( Check GPS Status Again., *new* DialogInterface.OnClickListener() { *public* *void* onClick(DialogInterface dialog, *int* id) { // Action for 'Yes' Button //dialog = (AlertDialog) dialog; //dialog = (AlertDialog) dialog; ((AlertDialog) dialog).getButton(AlertDialog.BUTTON_POSITIVE).setEnabled( *false*); *if* (latitude == 0 || longitude == 0) { gps_initialized= *false* ; dialog.dismiss(); onStart(); } *else* { gps_initialized= *true*; dialog.dismiss(); onStart(); } } }); On Sat, Sep 25, 2010 at 10:44 AM, Streets Of Boston flyingdutc...@gmail.com wrote: And in to avoid button-mashing in general, you could disable the button when clicked. On Sep 25, 2:05 am, Doug beafd...@gmail.com wrote: Why would you ever call onStart() manually (assuming that it's the onStart of your activity)? You might want to look into using showDialog() provided by Activity if you want to manage dialogs that may appear repeatedly. And don't call any of the activity lifecycle methods directly. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Lucas Boucher www.pachristmas.com -- Lucas Boucher www.pachristmas.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: hosting app file on own site
I did this without having to do anything special with Tomcat. Just stuck the apk in my web content dir. My Android phone downloaded the file as normal, then I clicked on it, and it let me install it. On Sep 25, 4:16 pm, dashman erjdri...@gmail.com wrote: i've got an app (.apk) file that i want to host on my site. whenever i click on page link to the .apk file, i get the binary code listed as ascii. - the app does not download. i added AddType application/apk .apk to the .htaccess file - tomcat server 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
Re: [android-developers] Re: Button Mashing Alert Dialog
Also note, There is a difference when this bug happens. So when doing this normally you see the alert dialog fully fade away. When the bug happens it looks like it starts to fade for a brief instant then comes back fully. Not sure what I am actually seeing here. Ugg, about to say the heck with it, if you button mash this is what you should expect. (I actually hate saying that because i test software at work, and hate stupid little things like this. To me they make the software look half baked.) On Sun, Sep 26, 2010 at 12:58 AM, Lucas Boucher lbouche...@gmail.comwrote: For reference I am working on a SIM and I can actually see the dam button grey out, just keep getting multiple alertdialogs if I button mash. If I go at a normal pace everything works perfect. On Sun, Sep 26, 2010 at 12:38 AM, Lucas Boucher lbouche...@gmail.comwrote: Ya, been trying to disable that button, but not having much luck Currently got this far, but I can still button mash and get multiple alert dialogs showing up. So frustrating. gps_init_alt_bld = *new* AlertDialog.Builder(*this*); gps_init_alt_bld.setMessage( GPS Not Initialized Yet.) .setCancelable( *false*) .setPositiveButton( Check GPS Status Again., *new* DialogInterface.OnClickListener() { *public* *void* onClick(DialogInterface dialog, *int* id) { // Action for 'Yes' Button //dialog = (AlertDialog) dialog; //dialog = (AlertDialog) dialog; ((AlertDialog) dialog).getButton(AlertDialog.BUTTON_POSITIVE).setEnabled( *false*); *if* (latitude == 0 || longitude == 0) { gps_initialized= *false* ; dialog.dismiss(); onStart(); } *else* { gps_initialized= *true*; dialog.dismiss(); onStart(); } } }); On Sat, Sep 25, 2010 at 10:44 AM, Streets Of Boston flyingdutc...@gmail.com wrote: And in to avoid button-mashing in general, you could disable the button when clicked. On Sep 25, 2:05 am, Doug beafd...@gmail.com wrote: Why would you ever call onStart() manually (assuming that it's the onStart of your activity)? You might want to look into using showDialog() provided by Activity if you want to manage dialogs that may appear repeatedly. And don't call any of the activity lifecycle methods directly. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Lucas Boucher www.pachristmas.com -- Lucas Boucher www.pachristmas.com -- Lucas Boucher www.pachristmas.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Button Mashing Alert Dialog
Try having a boolean in your onClick callback class (the anonymous inner one), and check/set its value before taking action. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 26.09.2010 9:31 пользователь Lucas Boucher lbouche...@gmail.com написал: Also note, There is a difference when this bug happens. So when doing this normally you see the alert dialog fully fade away. When the bug happens it looks like it starts to fade for a brief instant then comes back fully. Not sure what I am actually seeing here. Ugg, about to say the heck with it, if you button mash this is what you should expect. (I actually hate saying that because i test software at work, and hate stupid little things like this. To me they make the software look half baked.) On Sun, Sep 26, 2010 at 12:58 AM, Lucas Boucher lbouche...@gmail.com wrote: For reference I am... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en