[android-developers]
http://www.wirtschaftsmakler.de/yahgoogle.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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] android application with ipv6
Hi. How do i link ipv6 together with a mobile application device such as android? I have a project given by the lecturer with 0 notes as reference. I have to combine both of them together, however i dont understand how to link them together and i dont see how it works. Hence, i would ask for any links or explanation or reference notes for such application. I have been googling out such examples and codes for reference and i have not even found one good reference link. Thank you. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android 4.2+: Sharing data between users
I should add: I would also like to hear about any System Only options that may be available. I notice that Android now has some additional broadcasts/etc., for multiple user applications but only allows these for system signed applications (which my application is often a part of) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android 4.2+: Sharing data between users
I work for a Parental Controls company and have a product that has been working beautifully on Android up to version 4.2. Until now, we have mostly pushed off fully supporting 4.2 with user switching as the demand has not been high enough. That time has past and it's finally in our radar. Our product's sole purpose is to *product any user on the device*. Traditionally we have bound one of our users (we maintain our own sync across devices including other OS's). With Android 4.2 comes user switching and individual data directories per user. *How is a product such as ours to share data across 1:n users?* As-is, users would have to essentially re-install our product for every user. All central context is lost (which again, is vital to our product; Each user must belong to the family) Some things I have looked at: - MODE_WORLD_READABLE / MODE_WORLD_WRITABLE are now removed, so we can't set them in /data/data/package.name/ - FileUtils.setPermissions() seems to ignore 'everyone' bits - File.setWritable() doesn't actually exist in Android -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Bluetooth connection problem
I've been trying to resolve a bluetooth connection problem between my app and service running on my laptop. I've paired my phone, a Nexus S 4G running AOSP 4.1.1, with my laptop through the System Settings. In my app, I'm unable to connect to my service over this pairing. However, if I go back into System Settings, Bluetooth Settings Activity, and select my laptop, the Bluetooth Settings Activity lists the laptop as selected and the Notification Bar icon for Bluetooth changes from grey to blue. Now, my app can connect just fine. If I disconnect from my laptop through the Bluetooth Settings Activity, my app can no longer connect. My understanding was that I only needed to be paired/bonded with a device to make a bluetooth connection. Why do I have to explicitly connect through the System/Bluetooth Settings before being able to connect in my app? I've tried both secure and insecure RfcommSocketToServiceRecord calls. Any help is greatly appreciated! Thank you! My source code is here: https://github.com/piusvelte/RemoteAuthClient -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth connection problem
rauf, I think you replied to the wrong topic, could you please delete your post? Thank you, Bryan On Thursday, August 30, 2012 10:15:58 AM UTC-4, rauf qureshi wrote: //demo3.idhasoft.us/iloyal/api/iloyal/customer.php/customer.login //I have develop following code can any body tell me solution of following errors import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Service; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.IBinder; public class RegistrationService extends Service{ String SOAP_ACTION= http://demo3.idhasoft.us/iloyal/api/iloyal/customer.php/customer.addIloyalCustomer ; String SOAP_METHOD=customer.addIloyalCustomer; String NAME_SPACE=http://demo3.idhasoft.us/iloyal/api/iloyal/customer.php ; String url=http://demo3.idhasoft.us/iloyal/api/iloyal/customer.php/?wsdl ; @Override public IBinder onBind(Intent intent) { //TODO Auto-generated method stub return null; } @Override public void onStart(Intent intent, int startId) { //TODO Auto-generated method stub super.onStart(intent, startId); try{ SoapObject result=(SoapObject)getWeather(); System.out.println(+result.toString()); }catch(Exception e) { System.out.println(exception in soap +e); } stopService(intent); } public SoapObject getWeather() throws Exception { SoapObject request = new SoapObject(NAME_SPACE, SOAP_METHOD); //request.addProperty(PlaceName, city); request.addProperty(firstname, rauf); request.addProperty(lastname, qureshi); request.addProperty(email, rauf.q...@gmail.com javascript:); request.addProperty(password, 12345); request.addProperty(mobile, 8286459963); request.addProperty(DOB, 15/04/88); request.addProperty(zipcode, 400092); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); // It seems that it is a .NET Web service because it doesn't work without next line envelope.dotNet = true; HttpTransportSE transport = new HttpTransportSE(url); System.out.println(service me conncetion checking se pahle aaya); //ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); //NetworkInfo netInfo = cm.getActiveNetworkInfo(); // //if (netInfo != null netInfo.isConnectedOrConnecting()) //{ // System.out.println(connected+netInfo.getExtraInfo()); //} //else //{ //System.out.println(not connceted); //} System.out.println(request +request); System.out.println(1=); transport.call(SOAP_ACTION, envelope); System.out.println(2=); return (SoapObject) envelope.getResponse(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); } } org.xmlpull.v1.XmlPullParserException: expected: START_TAG { http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG definitions name='wsLogin' targetNamespace=' http://painel01.allinmail.com.br/wsAllin/login.php'@2:403 in java.io.InputStreamReader@4375ba18) i am getting above problem can any body tell me solution of above problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth connection problem
In case it's helpful, here's the relevant code: https://github.com/piusvelte/RemoteAuthClient/blob/master/src/com/piusvelte/remoteauthclient/RemoteAuthClientService.java public ConnectThread(String address, String state) { mAddress = address; mState = state; BluetoothDevice device = mBtAdapter.getRemoteDevice(mAddress); BluetoothSocket tmp = null; try { // tmp = device.createInsecureRfcommSocketToServiceRecord(sRemoteAuthServerUUID); tmp = device.createRfcommSocketToServiceRecord(sRemoteAuthServerUUID); } catch (IOException e) { Log.e(TAG, e.getMessage()); } mSocket = tmp; } public void run() { if (mSocket == null) { mMessage = failed to get a socket; mHandler.post(mRunnable); } else { if (!mSocket.isConnected()) { if (mBtAdapter.isDiscovering()) mBtAdapter.cancelDiscovery(); try { mSocket.connect(); } catch (IOException e) { mMessage = failed to connect; mHandler.post(mRunnable); shutdown(); return; } } // Get the BluetoothSocket input and output streams try { mInStream = mSocket.getInputStream(); mOutStream = mSocket.getOutputStream(); } catch (IOException e) { mMessage = failed to get streams; mHandler.post(mRunnable); shutdown(); return; } byte[] buffer = new byte[1024]; int readBytes = -1; try { readBytes = mInStream.read(buffer); } catch (IOException e1) { mMessage = failed to read input stream; mHandler.post(mRunnable); } if (readBytes != -1) { // construct a string from the valid bytes in the buffer String message = new String(buffer, 0, readBytes); // listen for challenge, then process a response if ((message.length() 10) (message.substring(0, 9).equals(challenge))) mChallenge = message.substring(10); write(mState); } } shutdown(); } On Thursday, August 30, 2012 9:46:23 AM UTC-4, Bryan wrote: I've been trying to resolve a bluetooth connection problem between my app and service running on my laptop. I've paired my phone, a Nexus S 4G running AOSP 4.1.1, with my laptop through the System Settings. In my app, I'm unable to connect to my service over this pairing. However, if I go back into System Settings, Bluetooth Settings Activity, and select my laptop, the Bluetooth Settings Activity lists the laptop as selected and the Notification Bar icon for Bluetooth changes from grey to blue. Now, my app can connect just fine. If I disconnect from my laptop through the Bluetooth Settings Activity, my app can no longer connect. My understanding was that I only needed to be paired/bonded with a device to make a bluetooth connection. Why do I have to explicitly connect through the System/Bluetooth Settings before being able to connect in my app? I've tried both secure and insecure RfcommSocketToServiceRecord calls. Any help is greatly appreciated! Thank you! My source code is here: https://github.com/piusvelte/RemoteAuthClient -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com
Re: [android-developers] Re: Jelly Bean, READ_LOGS and 'Application Lockers'
Glad to see a response, thanks. While I think a platform feature vs an API set developers can access is better than nothing, it's also much too restrictive. What I mean by this is that parents and admins want to buy the devices they want to buy -- and still have the ability to lock them down. This goes for the consumer and enterprise world: - Consumers want the latest cool gadgets and/or the budget gadgets -- And they want parental controls on them. - Many enterprise users are now allowing BYOD policies as long as certain software is installed on them (e.g. for DLP, etc.) - Filtering solutions are very much like anti-virus anti-malware solutions: People have the one they trust; they don't want any others. Forcing buyers to stick with devices that have enabled parental control features for example is highly limiting, and I think, a mistake. Perhaps another solution is a API set and a new level of permission authentication. E.g., an developer would need to sign with a key that contains a trusted CA (Google stamp of approval or such) On Friday, July 27, 2012 1:26:16 PM UTC-6, Dianne Hackborn wrote: That activity manager API was never intended to be used to poll the state, it was there to provide debugging information. I regret making it part of the SDK. There is really no good use of it for regular applications, and lots of bad uses. I do agree that having facilities to provide restricted environments for children are important. I think the goal in the platform will probably be to provide this as a feature in the platform, not an API for people to build on top of. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Jelly Bean, READ_LOGS and 'Application Lockers'
I just realized I may have misunderstood your response. If Android provided parental controls, again, it would be better than nothing, but very much too limiting. The main point in my list there is this: People want to choose their filtering / parental controls / enterprise control solution, not have one particular solution forced upon 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] Jelly Bean, READ_LOGS and 'Application Lockers'
Now that READ_LOGS permission is not available to applications in Jelly Bean (API 16), what are developers of Application Locker type apps to do? These are populate applications among parents who would like to prevent their kids from accessing various apps (generally password protected) but the implementation of such applications has required a hack of reading logcat to determine when/what Activity has been launched or brought into focus. Surely Google is not saying You cannot have these apps? Is an official API (perhaps in the Device Admin realm) planned? Is there a work around besides polling the top level activity (not really reasonable). Google please advise! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Jelly Bean, READ_LOGS and 'Application Lockers'
On Thursday, July 26, 2012 1:55:01 PM UTC-6, Kristopher Micinski wrote: These apps aren't supposed to exist. They can be easily uninstalled by any user. Real support for this requires firmware modifications Sure, but the fact is they *do* exist and there are many of them with many users. If Google/Android were to provide an official API (they should!) of course it would be much better, but this rip-out of the functionality without a proper replacement is not good. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Jelly Bean, READ_LOGS and 'Application Lockers'
On Thursday, July 26, 2012 2:25:57 PM UTC-6, Romain Guy (Google) wrote: Using the logs to detect app launches is a hack and definitely not a public API. Even if apps could still read the logs, a new version of Android could very well change the log format or remove these particular logs altogether. I agree it's a hack, but it's all we (did) have. A Parental Control type application I work on has been doing this since 2.2 with rave reviews. Many parents will not even purchase an Android device without such software installed. An official API is certainly needed, but as-is, we're dead in the water in Jelly Bean. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Jelly Bean, READ_LOGS and 'Application Lockers'
I appreciate your responses, but disagree about your assessment. Setting an application to Device Admin + logcat monitor is not trivial to circumvent as a standard user by any means. Parents want these for their children and their children are having a hard time getting around them... hence the good reviews. I'm aware of custom ROM solutions. What I'm really looking for here is some statements from Google (Dianne, where are you?!) about the matter. If official APIs are perhaps on the pipeline it would be nice. Until then I have yet another hack to work around the issue which I'd love to scrap. On Thursday, July 26, 2012 2:48:53 PM UTC-6, Kristopher Micinski wrote: Like I've said multiple times: these apps are so easily subverted it doesn't even make sense why blocking apps have good reviews. This should perhaps be included, but not at the app level, it *requires* firmware modifications. So start working on a patch to send to the android project and hope for the best... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Jelly Bean, READ_LOGS and 'Application Lockers'
Excellent, thank you. Google: Would still love to hear more about the possible future of these sorts of (needed!) apps... On Thursday, July 26, 2012 4:44:06 PM UTC-6, TreKing wrote: What I'm really looking for here is some statements from Google (Dianne, where are you?!) about the matter. http://www.youtube.com/watch?feature=player_embeddedv=UGJbPPjANKA#t=3100s - 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] Jelly Bean, READ_LOGS and 'Application Lockers'
Google has certainly posted we're working on it type hints on *many* issues / upcoming features. Dates no, but it would be good to know if this is being looked at. I certainly disagree that this does not belong in Android. Here a few reasons why (minimized): - There is a huge demand for Parental Control type management on Android. Many parents buy Android devices for their young children and teenagers and wish for some control and visibility vs letting them loose with the device. The company I work for has sold many devices pre-bundled with this functionality and I know from experience that many people simply will not buy an Android device (or any other ecosystem) that does not support/have this functionality. - Take a look at the hundreds (more?) of App Lock and Parental Control type applications that currently exist on Android right now. All of these applications are in high demand and all of them are currently using hacks of various sorts for implementation. Many even requiring rooting the device. - Android is already fragmented. What works on one device may not work on another. I'm fine with that personally and love the diversity. However, the general API set you can mostly rely on. Having each vendor create an API for this kind of functionality would be an absolute nightmare. - In general, yes, applications should absolutely be sandboxed. And I actually agree with the removal of READ_LOGS from a security standpoint due to the amount of data most applications dump into logcat -- who knows what goodies I could scrape from there. However, there should be exceptions to the control portion of this rule as long as the user / device admin authorizes it. As far as it being hard to maintain, I'm not seeing it. Start out with a few simplistic hooks for the common cases and go from there. Some of the hooks (e.g. IActivityWatcher or IProcessObserver) are/were already semi-present in the system as non-public and locked down APIs. What's needed is a good system for allowing device administrators to allow certain applications to use similar API sets. I think at this point I may develop some customization's to Android myself, submit them, and hope for the best. I'm confident this can be implemented in a secure user friendly manor. What I don't want it to waste my time if someone at Google is already doing it. On Thursday, July 26, 2012 5:51:02 PM UTC-6, Kristopher Micinski wrote: I honestly don't see what you expect to be said. The Android team has never released their plans for APIs until they are actually stable. It's sort of risky to promise things that might not materialize. While I agree this sort of functionality is useful, I personally do *not* believe it belongs in Android. I do believe, however, that it belongs in vendor specific mods, that have custom apps. Why? Because vanilla Android shouldn't be tasked with these kinds of extensions (personal opinion, mostly..). It's hard to design these kinds of things, because for many people this might be considered bloatware. I agree that it's a useful feature, no doubt, but I believe that it doesn't believe at the app level (no app should be able to modify the system behavior, seems to be an Android maxim at this point!), and not in the vanilla system either. This seems like something that has a lot of design decisions associated with it, and for Google to maintain it would be very hectic logistically. I suspect that it's not completely implausible that this will eventually appear in vanilla Android, but I find it somewhat unlikely, just based off of the kinds of decisions I've seen made in the platform to date. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TransactionTooLargeException exception calling queryIntentActivities()
On Tuesday, July 3, 2012 9:57:15 AM UTC-6, Mark Murphy (a Commons Guy) wrote: Well, I'd at least consider adding MATCH_DEFAULT_ONLY on the queryIntentActivities() call, if you are building a launcher-type app. Beyond that, I'm not sure if by default you get everything in the GET_ series of flags -- if so, that might be the source of your woe, and expressly listing the GET_ flags you really need might help. Thanks, I'll try the GET_* flags -- there are quite a few bits of information I can possibly trim out that way. Do you know of a way to measure the difference in underlying IPC payload sizes? Basically, TransactionTooLargeException means you're trying to retrieve 1MB (IIRC) from a foreign process. In this case, the user has too many apps installed, presumably. This is why I think Google needs to do the underlying work in batches or otherwise overcome the 1M limitation. This is happening on regular user devices. Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TransactionTooLargeException exception calling queryIntentActivities()
Part of my applications duties are to enumerate launcher activities -- to do this, I call PackageManger.queryIntentActivities(). On some devices this has resulted in a *TransactionTooLargeException*. Is there a way around this? *Example code:* final PackageManager pm = getPackageManager(); Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.addCategory(Intent.CATEGORY_LAUNCHER); final ListResolveInfo ri = pm.queryIntentActivities(intent, 0); // TransactionTooLargeException I saw a related post about getInstalledPackages()https://groups.google.com/forum/?fromgroups#!topic/android-developers/EK4eJPadabsbut it seemed to end with Don't do that which seems like an odd answer to just using the API. I'd expect that in this case if the underlying implementation is limited to 1M that the query is done in batches and hidden from the developer or that an API exists to do it in batches myself. Any ideas? This works nearly all of the time (expected!) but it seems that every now and then I'm running into this exception in the wild on customer devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AppWidget disappears after updating app and moving code into a library
I hope that I'm wrong, but here's my understanding... Let's say my 2 app manifests contain something like this: application package=my.package/ activity name=.MyActivity/ application package=my.packagepro/ activity name=.MyActivity/ Rather than maintaining 2 copies of MyActivity, I move them into a library: application package=my.package.core/ activity name=.MyActivity/ Now the references in my apps need to be updated: application package=my.package/ activity name=my.package.core.MyActivity/ application package=my.packagepro/ activity name=my.package.core.MyActivity/ Here's where the problem started. Any existing appwidgets on the homescreen would disappear. Then I found this: http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html So, I've reverted my manifest's back to a local package reference: application package=my.package/ activity name=.MyActivity/ application package=my.packagepro/ activity name=.MyActivity/ ...however, that class isn't in my.package or my.packagepro, it's in the library, my.package.core, so my understanding is that I needed a local version of the class. Am I wrong? Can I leave the activity name as .MyActivity and it will reference my.package.core.MyActivity? I though that when the name begins with a ., then the application package is used. Thank you! Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AppWidget disappears after updating app and moving code into a library
Mark, Thanks for the clarifications and sorry for my rough example, I should have used a receiver in my example. It seems like I'm on the right track then, by extended my core classes in local classes to preserve the receiver names in the manifest. Thanks again! Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AppWidget disappears after updating app and moving code into a library
Could I please get some further confirmation on how to handle intents with using this library and subclassing everything in the manifest? The classes in the library create intents, just as... new Intent(this, MyActivity.class) ...however, that won't resolve as the manifest defines the activity as my.package.MyActivity, but the intent created would be my.package.library.MyActivity. Instead, I've replace every instance of... Intent i = new Intent(this, MyActivity.class) ...with... Intent i = null; try { i = new Intent(context, Class.forName(this.getPackageName() + . + MyActivity.class.getSimpleName()); } catch (ClassNotFoundException e) { Log.e(TAG, e.getMessage()); } This is required to make sure that the Intents match the full class path declared in the manifest, rather than the class path of the library. In testing, this appears to be true, but I wanted to check with those who know! :) Thank you very much! Bryan On Thursday, June 14, 2012 12:55:14 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Thu, Jun 14, 2012 at 12:49 PM, Dianne Hackborn wrote: On Thu, Jun 14, 2012 at 6:06 AM, Mark Murphy wrote: It'd be nice if there were a way for app widgets to be identified by a custom action string in an intent-filter, so refactoring could be easier and less risky, but that's not an available option AFAIK. Then you have lots of potential problems with people spoofing widgets and such. Ah, yeah, hadn't thought of that. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AppWidget disappears after updating app and moving code into a library
I'm considering that option, though I'm concerned about frustrating users. I suppose it's not terrible to ask them to recreate their widgets, but I hate to negatively impact them. On Thursday, June 14, 2012 2:55:51 PM UTC-4, TreKing wrote: Why not stop doing all this and tell your users (via changelog in Market, in app popup, or whatever) that they need to re-create their widgets this one time? Sure would save you a lot of headaches down the line. - 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] AppWidget disappears after updating app and moving code into a library
Hi, I've 2 versions of an app, for which I just merged the code into a single library that I reference from both apps. In testing, I found that if an appwidget existed on the homescreen for this app and I updated to the new version using the library, the LauncherModel.java would delete the widget, logging Log.ehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/util/Log.java#Log.e%28java.lang.String%2Cjava.lang.String%29 (TAGhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3_r1/com/android/launcher2/LauncherModel.java#LauncherModel.0TAG , Deleting widget that isn't installed anymore: id= + id + appWidgetId= + appWidgetId);. I found that this was due to the change in the AppWidgetProvider in the manifest. It changed to reference the class that moved to the library. To resolve that, I moved the class back out of the library and directly into the project and reverted the manifest for those receivers. This resolved the deleting widget... error, but now the widget isn't rendered by the launcher at all after testing the update. I checked /data/system/appwidgets.xml, and the widget is still listed there. The appwidgetprovider is still called and my service runs, pushing the update, but there's no widget on the homescreen. It's not invisible, as I can long press on the area where the widget was and I get the wallpaper choser. Why isn't the widget fully preserved across this updated? To clarify, my testing procedure is this, on an emulator with API Level 15: 1. Install version 1 of app 2. Add a homescreen widget 3. Update to version 2 of app 4. Widget remains 5. Update to version 3 of app, with code moved to library 6. Widget is gone, but traces still exist. The appwidgetmanager still recognizes it when calling getAppWidgetIds or getAppWidgetInfo Any help would be great as I'm getting no information from the logs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AppWidget disappears after updating app and moving code into a library
I should add that I can create new appwidgets on the homescreen with the newest version, but existing widgets don't appear even though the onUpdate is called in the AppWidgetProvider. On Wednesday, June 13, 2012 1:23:31 PM UTC-4, Bryan wrote: Hi, I've 2 versions of an app, for which I just merged the code into a single library that I reference from both apps. In testing, I found that if an appwidget existed on the homescreen for this app and I updated to the new version using the library, the LauncherModel.java would delete the widget, logging Log.ehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/util/Log.java#Log.e%28java.lang.String%2Cjava.lang.String%29 (TAGhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3_r1/com/android/launcher2/LauncherModel.java#LauncherModel.0TAG , Deleting widget that isn't installed anymore: id= + id + appWidgetId= + appWidgetId);. I found that this was due to the change in the AppWidgetProvider in the manifest. It changed to reference the class that moved to the library. To resolve that, I moved the class back out of the library and directly into the project and reverted the manifest for those receivers. This resolved the deleting widget... error, but now the widget isn't rendered by the launcher at all after testing the update. I checked /data/system/appwidgets.xml, and the widget is still listed there. The appwidgetprovider is still called and my service runs, pushing the update, but there's no widget on the homescreen. It's not invisible, as I can long press on the area where the widget was and I get the wallpaper choser. Why isn't the widget fully preserved across this updated? To clarify, my testing procedure is this, on an emulator with API Level 15: 1. Install version 1 of app 2. Add a homescreen widget 3. Update to version 2 of app 4. Widget remains 5. Update to version 3 of app, with code moved to library 6. Widget is gone, but traces still exist. The appwidgetmanager still recognizes it when calling getAppWidgetIds or getAppWidgetInfo Any help would be great as I'm getting no information from the logs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AppWidget disappears after updating app and moving code into a library
OK, I found a solution, but I feel sick for what it is... After reading about how classes declared in the manifest should never change, I went and creating each class in the manifest as a class in the app, extending the corresponding class in the library. Then, I had to change every Intent to include the correct class, using forName. So, and example of this scenario is: app package: com.sample.package activity: MyActivity library: com.sample.package.core activity: MyActivity There's a MyActivity in the app, and a MyActivity in the library. The MyActivity in the app simply extends com.sample.package.core.MyActivity. Then, any occurrence of... new Intent(context, MyActivity.class) ...in the library must become... new Intent(context, Class.forName(context.getPackageName() + . + MyActivity.class.getSimpleName()); If there's a way to do this through the manifest, please let me know! Thank you On Wednesday, June 13, 2012 1:23:31 PM UTC-4, Bryan wrote: Hi, I've 2 versions of an app, for which I just merged the code into a single library that I reference from both apps. In testing, I found that if an appwidget existed on the homescreen for this app and I updated to the new version using the library, the LauncherModel.java would delete the widget, logging Log.ehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/util/Log.java#Log.e%28java.lang.String%2Cjava.lang.String%29 (TAGhttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3_r1/com/android/launcher2/LauncherModel.java#LauncherModel.0TAG , Deleting widget that isn't installed anymore: id= + id + appWidgetId= + appWidgetId);. I found that this was due to the change in the AppWidgetProvider in the manifest. It changed to reference the class that moved to the library. To resolve that, I moved the class back out of the library and directly into the project and reverted the manifest for those receivers. This resolved the deleting widget... error, but now the widget isn't rendered by the launcher at all after testing the update. I checked /data/system/appwidgets.xml, and the widget is still listed there. The appwidgetprovider is still called and my service runs, pushing the update, but there's no widget on the homescreen. It's not invisible, as I can long press on the area where the widget was and I get the wallpaper choser. Why isn't the widget fully preserved across this updated? To clarify, my testing procedure is this, on an emulator with API Level 15: 1. Install version 1 of app 2. Add a homescreen widget 3. Update to version 2 of app 4. Widget remains 5. Update to version 3 of app, with code moved to library 6. Widget is gone, but traces still exist. The appwidgetmanager still recognizes it when calling getAppWidgetIds or getAppWidgetInfo Any help would be great as I'm getting no information from the logs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 SQLite Example Project
I have created an open source Google Android App, hosted on Google Projects to help new Android Developers get up to speed with how to do some various development tasks, and provide some reusable code that all developers may use. The Google Project URL is code.google.com/p/my-android-sqlite-example- project/. I am looking for some constructive feedback, suggestions on how improve the code, to help ensure good solutions are being provided. The audience for this project is intended to be software developers who are new to developing Google Android Applications, and also for those developers that are searching for a clean and simple SQLiteOpenHelper Database Adapter implementation. I have provided some documentation in the downloads section of this project, to help you get started, including the full downloadable Eclipse Android Project source file in a .ZIP file format, and an executable Android .APK file, built from this project (refer to the description for installation instructions). The project consists of a simple list activity for demonstrating how to do different things in Android, including: - A SQLiteOpenHelper database adapter, how to properly open and close it, etc. - A custom AlertDialog?.Builder message box - Logging messages, warnings, errors, etc. - How to export SQLite database data - How to sort data through a custom Preference Activity - How to clean up objects in onDestroy - How to make menu icons - How to add animation to buttons - How to create User Interfaces - How to use the string.xml file to populate labels, text, etc. - How to create a date-select button - And more. Have fun, this is meant to be educational, and constructive feedback is appreciated. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Suspended app
I think i put my analogy up here wrong. It would be like getting puled over by a cop but the speed limit sign says to stay within the limits of the written rules, the rules are not clear on what the speed limit is and where the line is drawn between going over it and under it, and if you do get pulled over, you just get a fine and a notice mailed to you saying that you broke a driving law in your country and that you should review the driving laws with no notice of whether or not you were going too fast, too slow, swerving in the road or what. If you were told exactly what you did then at least you have something to start with. Google doesn't have any way to appeal the suspension, has no way to find out what they did not like in your app, and has no one to talk to. They don't even respond to email inquiries about it. Its a communistic system they built so they don't have to deal with the problems. I understand what you all are saying, in technicalities some of it is right, some of it I don't agree with, but whatever. Yes, I had part of a copyrighted image, but so do hundreds of other paid apps. Does that make it right for me to use it? no. BUT when so many others are getting away with it, I can't see that this was the issue. The same argument with the name. Regardless, this whole situation helped me see a certain type of app missing from the market. I'm going to retool what I have again, remove any existing app name from the title and make something new, something that isn't out there in the market. On Dec 9, 10:18 pm, TreKing treking...@gmail.com wrote: On Fri, Dec 9, 2011 at 10:06 PM, Bryan Stinchfield bryed...@gmail.comwrote: You're an asshole and missing the point of the topic. Well that's not nice. I took quite some time out of my day to read your rather long tantrum and responded to every question and point you made. I'm sorry if my particular brand of humor offended you. But don't call me an asshole - I'm sensitive and that really hurt my feelings :'( But you're obviously upset about your app so I'll chalk it up to anger and forgive you. I'm big like that, yo. If my app is getting pulled then why aren't the hundreds of others. Equality is all I'm talking about. How many unofficial guides are relased every year in the USA and not pulled? What if the application was about aviary birds that get upset over things and they used angry and birds int he title? Would they not be allowed to use it? There is a free app, angry birds walkthrough, 2 of them infact, neither has been pulled. Nor have the other 50+ walkthrough apps for angry birds, all using angry birds in their title. It would be a fair argument is no other app could have angry birds in the title, but this isn't the case. Did you even read my response or did you just jump to the you're an asshole conclusion? I'll repeat it for you: *Dude, there are A LOT of Angry Birds coat-tail riders, but there's limited resources to curtail them, so they go for the big boys first - like the one sitting cozy in 4th place.* * * The Android Market has no up front review, so there's going to be a lot of people violating the terms - they'll never all get caught at once. Again, just because there are other people doing the wrong thing does not give you the right to also do the wrong thing, nor to bitch when you get caught and are facing the consequences for doing the wrong thing. If you go look at my app on appbrain you'll see that I copied NOTHING from the angry birds app ... except the title ... and the names of the Angry Birds levels ... and the very recognizable red bird image for your icon ... which you already admitted. Dude, are you delirious? , don't accuse me of copyright infringement when it didn't happen. *You* said: The only other infraction I see is one that hundreds of other developers did, they used artwork from the app. *You* admitted to using copyrighted artwork from the app. But copyright infringement didn't happen? Why? Because others were doing it too? Will you share whatever you're smoking please!? if you search angry birds you'll see hundreds of results, its a moot point that my app has angry birds in the title when so many others are using it as well. No, the moot point is that other apps have the words in their titles when you do as well. *Your* concern should be with *your* responsibility to uphold the contract you agreed to when you signed up for the Android Market. Don't worry about what others are doing, as frustrating as it may be that they seem to be getting away with it. You were coasting just fine and look at you now. They'll get their turn in due time too, probably. The reason of pointing out what other people are doing is simply that their apps are not suspended and mine is. If mine was suspended then why are their still up? For the third time now (and you say *I'm* missing the point?) *Dude, there are A LOT of Angry Birds coat-tail
[android-developers] Suspended app
Hi everyone, been searching and searching but not finding any answers or good information. Am hopeful that someone can help me. To start with, yes, I've searched groups and google for answers but there don't seem to be any. My app, Angry Birds Walkthrough Portal, was suspended from the Android Marketplace. This is all that i received from google about it: This is a notification that the application, Angry Birds Walkthrough Portal, with package ID com.abwp has been removed from Android Market due to a violation of the Developer Content Policy. For specific details regarding this particular suspension, please see the Intellectual Property and Impersonation or Deceptive Behavior sections of our Content Policy. Please also be advised that your application’s title, description, and screenshots are also subject to the above Terms. Please review the Content Policies, Developer Distribution Agreement, and Business and Program Policies before you create or upload additional applications. Please also consult our guidelines on rating your application. If your developer account is still in good standing, please feel free to make any necessary revisions and upload a new version of the application that is compliant with the above terms. Please be advised that violations may result in a suspension of your Android Market Publisher account, and may also result in actions, including possible suspension, taken against any associated Android Market Publisher, AdSense, Google Checkout, or AdMob accounts. If you have an official license to use the protected assets evident in your Market listing, you can open the appeals process by providing this documentation in your reply to this notification. Thanks, The Android Market Team Any ideas what they are referring to? Here's a link to what the app looked like and the description from appbrain.com: http://www.appbrain.com/app/angry-birds-walkthrough-portal/com.abwp Yes, i did use keywords in the description, but so does google and numerous other extremely popular apps - xconstructions for instance, the lite version has been downloaded over 5 million times and they are an editor of choice ... yet they use keywords. My keywords did include angry birds, but that being used as a keyword is completely related to my app. The only other infraction I see is one that hundreds of other developers did, they used artwork from the app. Actually though, the image i used for my icon wasn't even from a screenshot of the game or their website (Rovio's) it was from somewhere else, I can't even remember now it was last year. Has ANYONE had any success at contacting google, disputing the alleged infractions and getting their app reposted? Yes, I can retool the artowrk, I already did that and I re-released it, but I lost all the comments I had, all the ratings, all the +1's. I had the best placement possible, int he top 4 most viewed and downloaded next to angry birds, angry birds seasons and angry birds rio - all before I added the keywords, which even google themselves do. Then they mention impersonating an app - clearly, based ont he description and the title of the app it is NOT angry birds ... WTH, you know? I make an app, pay my developer fees, pay them 30% of what I make in sales and I can't even dispute these charges? I can't even see who complained about these allegations against my app? For all I know it could have been another walkthrough dev complaining that my app was like theirs. What about all the apps with duplicate names? The ones that blatantly rip off artwork from Angry Birds and other games? Why are they still there if mine isn't? Ok, so I link to YouTube videos - plenty of other apps do that as well, why are they still there? Can't I go and complain about apps that do the same thing as mine yet were released afterwards? After beginning to go through this horrid experience, I've come to find out that oogle has incredibly lacking support for the people that make them money, their developers. This is ludicrous that i can't even talk to anyone about the infractions they mention or even dispute it. Why don't they warn you about it and give you 24 hours to fix it before removing your app? When I released the walkthrough portal I was one of very few devs doing it, now the market is proliferated with walkthrough apps for Angry Birds ... and I lost my number one placement to all of them and I can't even dispute it ... please, leave your rants or comments or suggestions, i'm open to anything. To anyone who is going to post something like you violated the TOS, you knwo what you did - get lost, I wouldn't be posting this if I knew what I did wrong, i'm not doing anything anyone else isn't doing. Also, does anyone know if you can refund the purchase price of an app yet let the purchaser keep it? I'd like to let the people who purchased the old suspended app but the new version yet refund them their money but let them keep the app. Let me know how to do this if it is possible.
[android-developers] Re: Suspended app
You're an asshole and missing the point of the topic. If my app is getting pulled then why aren't the hundreds of others. Equality is all I'm talking about. How many unofficial guides are relased every year in the USA and not pulled? What if the application was about aviary birds that get upset over things and they used angry and birds int he title? Would they not be allowed to use it? There is a free app, angry birds walkthrough, 2 of them infact, neither has been pulled. Nor have the other 50+ walkthrough apps for angry birds, all using angry birds in their title. It would be a fair argument is no other app could have angry birds in the title, but this isn't the case. If you go look at my app on appbrain you'll see that I copied NOTHING from the angry birds app, don't accuse me of copyright infringement when it didn't happen. if you search angry birds you'll see hundreds of results, its a moot point that my app has angry birds in the title when so many others are using it as well. The reason of pointing out what other people are doing is simply that their apps are not suspended and mine is. If mine was suspended then why are their still up? If there is a speed trap and they are pulling over people who are causing infractions and an infraction is anything above the speed limit then why would someone doing 1mph over the limit get pulled over while others who are going 20 miles over the speed limit are not? Everyone did somethign wrong but some people more than others and they get away with it. Please, don't bother responding, I could care less what you think. Looking for help, not an asshole. On Dec 9, 8:20 pm, TreKing treking...@gmail.com wrote: On Fri, Dec 9, 2011 at 1:04 PM, Bryan Stinchfield bryed...@gmail.comwrote: Any ideas what they are referring to? Probably this: My app, *Angry Birds Walkthrough Portal* [...] please see the * Intellectual Property and Impersonation* ... sections of our Content Policy. Please also be advised that *your application’s title, description, and screenshots* are also subject to the above Terms. I don't suppose you got permission from Rovio to use Angry Birds in your title and description, and to use their artwork? Yes, i did use keywords in the description, but so does google and numerous other extremely popular apps - xconstructions for instance, the lite version has been downloaded over 5 million times and they are an editor of choice ... yet they use keywords. You're comparing your app that uses Angry Birds' popularity to sell itself to *this https://market.android.com/details?id=de.hms.xconstructionhl=en*? Seriously? You will note that there are a total of 6 keywords and none of them are the names of popular apps used as a cheap ploy to bottom feed off their search hits. My keywords did include angry birds, but that being used as a keyword is completely related to my app. Your title also included Angry Birds, and your icon includes their copyrighted image. The only other infraction I see is one that hundreds of other developers did, they used artwork from the app. Officer, why are you arresting just *me*? I was just looting with the rest of the mob. Surely that's OK? Actually though, the image i used for my icon wasn't even from a screenshot of the game or their website (Rovio's) it was from somewhere else, I can't even remember now it was last year. So let's say you're a photographer. You take a picture and post it in your online resume. It becomes famous. Someone takes that picture, copies it, and posts it elsewhere. I take that copy of the picture, forget where I got it, and then bundle it with my own work, to help it sell and thus profit from it, without your permission. But it's OK because I forgot where I got your clearly identifiable image from? Dude ... come on ... you can't be serious ... Has ANYONE had any success at contacting google, disputing the alleged infractions and getting their app reposted? There was a recent thread of someone getting banned due to DMCA notice and they got it resolved. They never heard from Google though. In your case, it seems pretty obvious that you'll not get re-instated. Yes, I can retool the artowrk, I already did that and I re-released it Wow. That's priceless. I had the best placement possible, int he top 4 most viewed and downloaded next to angry birds, angry birds seasons and angry birds rio - all before I added the keywords, which even google themselves do. Being that highly ranked is probably why you got the spotlight. The timing of your keywords is likely coincidental. People don't get banned for adding relevant keywords. Hell, every word in your description is technically a key word. There's nothing special about putting Keywords: foo bar dope sluts in your description. It's mainly for people that can't think of how to work those words into their description. Then they mention impersonating an app - clearly, based
[android-developers] Re: StackOverflowError when calling SQLiteDatabase.openDatabase()
I'm just curious at line 916 and line 975. is the database being open is the same thing? in that case maybe at line 916 open that database then at 975 tries to open it that database again that is already open at 916 then maybe its the cause of crash? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] line and rectangle intersects
I was wondering on how to make line and rectangle collision detection. lines have starting point x1, y1 and ending point x2, y2 and also of thickness of line width. the rect would be top, bottom, left, right. intersects(x1, y1, x2, y2, w, rect r) { returns true if intersects else return false. } I was thinking of taking the edge lines of rectangle then test if the lines and rectangle's edge lines intersect but I don't know how to the test the collision detection between two segment lines not to mention that the line being tested has width. is there any better solution? or suggestion? or maybe there something in libraries of android that I don't know yet. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Test Driven Development with Android
I wanted to see if it was possible to use TDD with Android application development. Thanks to Robotium, I've had great initial success. One of the issues I ran into was how to use the camera during my smoke tests. Using information learned from the Robtium mailing list, I created a fake camera application that will allow you to effectively mock out the camera during your tests. I'm quite sure you could apply this pattern to other types of Intents as well. The FakeCamera app's source lives at https://github.com/bryanl/FakeCamera, and you can see a video demonstration of TDD in Android at http://bit.ly/android-tdd-1. I'm looking for feedback on my approach and what others might be doing as well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unknown Camera-GPS Issue
I am working on an augmented reality-type application. I noticed an issue with GPS not updating as expected. I have put a counter on-screen so that I can keep track of how often onLocationChanged is being called. The GPS receives lock ok, and begins calling onLocationChanged. After some time (less than a minute) onLocationChanged will stop being called, and the GPS location is no longer being updated. This happens whether we are standing stationary or driving in a car. We can usually get the GPS to continue updating if we set the phone down on a surface with the camera sensor down (so the screen shows nothing but black). After that it will continue to update for some time before again stopping. We've produced two more applications to help debug this issue. One is this application: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html modified to work with Android 2.2. We've added a LocationListener and an on-screen onLocationChanged counter and nothing else. This application functions the same way as the augmented reality application, with intermittent stoppages in GPS updates. The other application is just a location listener and an on-screen counter, without using the camera. That application works perfectly fine. The location listener never stops updating, and functions exactly as we'd expect. We've tried requesting location updates with different time and distance parameters, but they don't seem to affect functionality. We've used two different HTC Inspire 4G phones to test this, and both function the same way. We've also tested on a Motorola Droid 2 that did not seem to have the same issue, although we were not able to test as thoroughly on the Droid 2. The HTC Inspires are running the stock HTC Android 2.2.1 OS. Any ideas? Is there any reason the GPS would work better when the camera sensor is covered and not letting any light in? That's the variable that seems to affect functionality the most (although it's not completely consistent). I've found a few threads that mention an issue with using GPS and the camera simultaneously, but all have been open-ended, unanswered questions. 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] Fragments
The Google IO app has its source available. (http://code.google.com/p/iosched/source/checkout). They make a good use of fragments in there. On Fri, Jul 1, 2011 at 10:08 AM, Jayanthi jaia...@gmail.com wrote: Hi All, I am doing application in Honeycomb but i am not clear with Fragments 1.How Fragments is used 2. When the activity call fragments refered lots of article yet not clear all the article have same listview as example can you please few more example like button with onclickListener 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 -- bryanl http://smartic.us -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADK on WIndows 7 64 bit with 64 bit JDK - emulator hanging
Nobody here has reported quite this problem. I have a 64 bit Windows 7 machine with 64 bit Java: java version 1.6.0_25 Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) The ADK installation seemed to work well. However, the emulator does not start properly for me - running tools\emulator -versbose @AndroidVD1 causes the main emulator window to open, 3 other DOS windows flash briefly, then disappear too soon for anything to be read, then the emulator window hangs. Does anyone have any clues to what might be going wrong? Thanks Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] seeing GENERIC_FAILURE in logs of network selection
] GPRS_REGISTRATION_STATE D/RILJ( 160): [0159] REGISTRATION_STATE {13, null, null, 0, null, null, null, null, null, null, null, null, null, 13} D/RILJ( 160): [0163] REGISTRATION_STATE D/RILJ( 160): [0164] QUERY_NETWORK_SELECTION_MODE D/RILJ( 160): [0165] OPERATOR D/RILJ( 160): [0160] QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: OP_NOT_ALLOWED_BEFORE_REG_NW D/RILJ( 160): [0161] OPERATOR error: com.android.internal.telephony.CommandException: OP_NOT_ALLOWED_BEFORE_REG_NW D/RILJ( 160): [0166] GPRS_REGISTRATION_STATE D/RILJ( 160): [0167] REGISTRATION_STATE D/RILJ( 160): [0168] QUERY_NETWORK_SELECTION_MODE D/GSM ( 160): sending original message to recipient D/RILJ( 160): [0162] GPRS_REGISTRATION_STATE {3, null, null, 0} D/RILJ( 160): [0163] REGISTRATION_STATE {13, null, null, 0, null, null, null, null, null, null, null, null, null, 0} D/RILJ( 160): [0164] QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: OP_NOT_ALLOWED_BEFORE_REG_NW D/RILJ( 160): [0165] OPERATOR error: com.android.internal.telephony.CommandException: OP_NOT_ALLOWED_BEFORE_REG_NW D/RILJ( 160): [0166] GPRS_REGISTRATION_STATE {3, null, null, 0} D/RILJ( 160): [0167] REGISTRATION_STATE {13, null, null, 0, null, null, null, null, null, null, null, null, null, 0} D/RILJ( 160): [0168] QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: OP_NOT_ALLOWED_BEFORE_REG_NW E/GSM ( 160): Wrong network type: 0 E/GSM ( 160): Wrong network type: 0 D/GSM ( 160): Poll ServiceState done: oldSS=[1 home null null null Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] newSS=[1 home null null null Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: true] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/RILJ( 160): [0169] SCREEN_STATE: false D/GSM ( 160): [DataConnection] Stop poll NetStat D/RILJ( 160): [0169] SCREEN_STATE D/RILJ( 160): [0170] SCREEN_STATE: true D/GSM ( 160): [DataConnection] Stop poll NetStat D/RILJ( 160): [0170] SCREEN_STATE D/RILJ( 160): [0171] REQUEST_GET_PREFERRED_NETWORK_TYPE D/RILJ( 160): [0171] REQUEST_GET_PREFERRED_NETWORK_TYPE {0} D/RILJ( 160): [0172] QUERY_AVAILABLE_NETWORKS D/RILJ( 160): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=1 D/RILJ( 160): 0: [172] QUERY_AVAILABLE_NETWORKS D/RILJ( 160): [0172] QUERY_AVAILABLE_NETWORKS [NetworkInfo T- Mobile/T-Mobile/310260/AVAILABLE, NetworkInfo ATT/ATT/310410/ AVAILABLE] Hopefully I got the copy and paste correctly for all that. I'm happy to try any suggestions as I'm in the states now with time to work on a fix. Next week I'm going to get a new SIM back in Canada and see if swapping that out fixes the issue however I've tried a similar SIM card and the network connection results were the same. Though I didn't grab the debug output from the other SIM card. If this should be filed as an issue I can certainly do that. Thanks, ~ Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fwd: Contact Organization in Emulator different than Phone
Hi: I haven't seen my post in the forum. If I have missed the post, can you send me the link. I am stuck on this and hoping the answer is obvious. Thanks beeman -- Forwarded message -- From: beeman bbbe...@gmail.com Date: Thu, Nov 4, 2010 at 2:01 AM Subject: Contact Organization in Emulator different than Phone To: Android Developers android-developers@googlegroups.com Hi: I am developing using Eclipse and the targeted SDK version is API 7 (Version 2.1). My phone has Android version 2.1-update1. When running on the emulator, the contacts have an Organization section and within that section is Work Company, Title... When running on the phone, all contacts (Google and Phone) don't have the Organization section. So the app runs on the emulator but not the real phone. I am using the API 5 class ContactsContract.CommonDataKinds.Organization to update Contact Organization. Why is the emulator different that the phone? beeman -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Pre-process headers/data in browser application
I would like to create my own Web browser either using the out-of-the- box Browser app source with slight modifications or via WebView directly that has the ability to pre-process (inspect possibly modify at times) both HTTP request and response headers + data. How is this possible? I've seen some discussion about using a local proxy, but I cannot find anywhere (e.g. in WebView) to set proxy settings for my instance/browser only. Another discussion I read was about using loadDataWithBaseURL() with proxy address -- however, it seems this may work for the 'main' page, but additional resources (external images for example) would not be proxied. Again, this is for my _own_ browser/application, I am not asking how to proxy all traffic. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom WebView/Browser: how to capture/modify traffic before display?
I would like to implement a custom Browser based off the standard Browser source and/or simply off WebView with one extra requirement: I would like to capture and possibly modify traffic (request/response including HTTP headers) before WebView displays the content. How can this be done? I've seen other people discussing proxy options, but they appear to be disabled now. Remember: This is my own browser, I am not asking how to capture traffic of any other browser. Thanks for any information! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] KSoap2 issues
Hi, does anyone know how to use Ksoap2 to send out a body request with more than 1 element? I have been working on this for days, and cannot find a suitable response, but the issue is that ksoap2 can only support the use of a single parent element within the soap request body. Here is the snippet of the soap body that I need to form As you can see, there is both a taskContext, and a cuidLookupQuery within the soap body which comforms fine to soap standards, but when I try to package this with Ksoap, it only allows me to have a single parent element within the soap Body. Any ideas? SOAP-ENV:Body m:TaskContext xmlns:m=http://test/wsdl; m:admin_idString/m:admin_id /m:TaskContext m:cuidLookupQuery xmlns:m=http://test/wsdl; m:cuidLookupSearch m:Filter index= m:FieldString/m:Field m:OpEQUALS/m:Op m:ValueString/m:Value /m:Filter /m:cuidLookupSearch /m:cuidLookupQuery /SOAP-ENV:Body -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Open proper app with intent
Forgive me if this is a topic that has already been discussed, but I've searched for hours and can't seem to find the answer I'm looking for. I'm trying to cut my teeth on Android programming with a simple file manager app and currently have most all functions working, but I can't seem to open a selected file with the appropriate app. Here is my current code: / **/ String extension = MimeTypeMap.getFileExtensionFromUrl((String)label.getText()); String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); if (mimeType != null MimeTypeMap.getSingleton().hasMimeType(mimeType)) { try { File fileToOpen = new File(filePath + / + label.getText()); Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_VIEW); i.setDataAndType(Uri.fromFile(fileToOpen), mimeType); startActivity(i); } catch (Exception e) { Toast.makeText(this, Could Not Open File!, Toast.LENGTH_SHORT).show(); } } else { Toast.makeText(this, Unknown Mime Type, Toast.LENGTH_SHORT).show(); } / **/ The strange thing is that I get some rather interesting results with this code. On my handset, it doesn't seem to want to open doc files at all, but will open the one xls file I have without a problem in Docs2Go. Also, when throwing about 10 pdf files at it, it will open 2 of them with no problem but claims Unknown Mime Type on the other 8. Theoretically, this code should find the extension on the file, then figure out the appropriate MIME type from the extension, then call the activity handing over the MIME type as an argument, but theory doesn't seem to be enough to get me through this one. Any suggestions you guys can make, or tutorials you can point me at would be greatly appreciated. Thanks! -Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Signing key got corrupted some how. Getting Invalid Keystore Format in the Eclipse signing wizard.
I have a paid application, that I recently published. For one reason or another, I didn't make a backup copy of the key signature. After fixing some bugs, I tried to sign the application again as an update, through Eclipse's export as a signed app wizard. On the screen where the alias is usually selected, i get a message saying Invalid Keystore Format. My real issue is how to handle publishing the update as a new, separate application, with regard to the users who have already purchased the application. Would I issue refunds for the original purchase for users that purchase the new, separate application? That is what I had thought of as a solution, but am not sure how that works, or what the process is to do that, if it's even possible. 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: Word-wrap EditText issue
Beside finding the source of the issue, I also found the solution. If 'android:inputType' used, then 'textMultiLine' must be used to enable multiLine support. Also, using 'inputType' supercedes the code 'android:singleLine=false'. If using 'inputType', to reiterate, 'textMultiLine' must be used or the EditText object will only consist of one line without word- wrapping Example XML code: EditText android:id =@+id/edtInput android:layout_width =0dip android:layout_height =wrap_content android:layout_weight =1 android:inputType =textCapSentences|textMultiLine android:maxLines =4 android:maxLength =2000 android:hint =@string/compose_hint/ On Jul 19, 12:49 pm, Bryan bryguy0...@gmail.com wrote: I figured it out. The line, android:inputType=textCapSentences was the issue. Adding this line to anEditTextobject will make the object be a single lineEditText, and will not let wordswrap, or allow a user to press 'Enter' to insert a line feed or carriage return in theEditText. On Jul 18, 10:45 am, Bryan bryguy0...@gmail.com wrote: I have been trying to get myEditTextbox towordwrap, but can't seem to do it. I have deal with much more complicated issues while developing Android applications, and this seems like it should be a straight-forward process. However, the issue remains, and I have a large text box that is only allowing me to enter text on one line, continuing straight across, scrolling horizontally as I enter text. Here is the XML code for theEditTextobject from my layout file. ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/myWidget48 android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; ScrollView android:id=@+id/myScrollView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 LinearLayout android:id=@+id/widget37 android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical ... [other textview and edit text objects] EditText android:id=@+id/txtNotes android:layout_width=300px android:layout_height=120px android:scrollbars=vertical android:textSize=18sp android:gravity=left android:layout_marginTop=10dip android:nextFocusUp=@+id/txtChkAmount android:nextFocusLeft=@+id/txtChkAmount android:nextFocusDown=@+id/btnChkSave android:nextFocusRight=@+id/btnChkSave android:inputType=textCapSentences /EditText /LinearLayout /ScrollView /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: Word-wrap EditText issue
I figured it out. The line, android:inputType=textCapSentences was the issue. Adding this line to an EditText object will make the object be a single line EditText, and will not let words wrap, or allow a user to press 'Enter' to insert a line feed or carriage return in the EditText. On Jul 18, 10:45 am, Bryan bryguy0...@gmail.com wrote: I have been trying to get my EditText box towordwrap, but can't seem to do it. I have deal with much more complicated issues while developing Android applications, and this seems like it should be a straight-forward process. However, the issue remains, and I have a large text box that is only allowing me to enter text on one line, continuing straight across, scrolling horizontally as I enter text. Here is the XML code for the EditText object from my layout file. ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/myWidget48 android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; ScrollView android:id=@+id/myScrollView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 LinearLayout android:id=@+id/widget37 android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical ... [other textview and edit text objects] EditText android:id=@+id/txtNotes android:layout_width=300px android:layout_height=120px android:scrollbars=vertical android:textSize=18sp android:gravity=left android:layout_marginTop=10dip android:nextFocusUp=@+id/txtChkAmount android:nextFocusLeft=@+id/txtChkAmount android:nextFocusDown=@+id/btnChkSave android:nextFocusRight=@+id/btnChkSave android:inputType=textCapSentences /EditText /LinearLayout /ScrollView /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] Word-wrap EditText issue
I have been trying to get my EditText box to word wrap, but can't seem to do it. I have deal with much more complicated issues while developing Android applications, and this seems like it should be a straight-forward process. However, the issue remains, and I have a large text box that is only allowing me to enter text on one line, continuing straight across, scrolling horizontally as I enter text. Here is the XML code for the EditText object from my layout file. ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/myWidget48 android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; ScrollView android:id=@+id/myScrollView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1 LinearLayout android:id=@+id/widget37 android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical ... [other textview and edit text objects] EditText android:id=@+id/txtNotes android:layout_width=300px android:layout_height=120px android:scrollbars=vertical android:textSize=18sp android:gravity=left android:layout_marginTop=10dip android:nextFocusUp=@+id/txtChkAmount android:nextFocusLeft=@+id/txtChkAmount android:nextFocusDown=@+id/btnChkSave android:nextFocusRight=@+id/btnChkSave android:inputType=textCapSentences /EditText /LinearLayout /ScrollView /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] Simple android camera preview app crashes because it runs out of memory
I have yet to try this on an actual device, but expect similar results. Anyway, long story short, whenever I run my app on the emulator, it crashes due to an out of memory exception. My code really is essentially the same as the camera preview API demo from google, which runs perfectly fine. The only file in the app (that I created/use) is as below- import android.app.Activity; import android.content.Context; import android.hardware.Camera; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; /* * Music Reader v.0001 * Still VERY under construction. * @author Bryan * */ public class MusicReader extends Activity { private MainScreen main; @Override //Begin activity public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); main = new MainScreen(this); setContentView(main); } class MainScreen extends SurfaceView implements SurfaceHolder.Callback { SurfaceHolder sHolder; Camera cam; MainScreen(Context context) { super(context); //Set up SurfaceHolder sHolder = getHolder(); sHolder.addCallback(this); sHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public void surfaceCreated(SurfaceHolder holder) { // Open the camera and start viewing cam = Camera.open(); try { cam.setPreviewDisplay(holder); } catch (IOException exception) { cam.release(); cam = null; } } public void surfaceDestroyed(SurfaceHolder holder) { // Kill all our crap with the surface cam.stopPreview(); cam.release(); cam = null; } public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { // Modify parameters to match size. Camera.Parameters params = cam.getParameters(); params.setPreviewSize(w, h); cam.setParameters(params); cam.startPreview(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Password and SQLite security
I have been searching on google for information regarding application passwords and SQLite security for some time, and nothing that I have found has really answered my questions. Here is what I am trying to figure out: 1) My application is going to have an optional password activity that will be called when the application is first opened. My questions for this are a) If I store the password via android preference or SQLite database, how can I ensure security and privacy for the password, and b) how should password recovery be handled? Regarding b) from above, I have thought about requiring an email address when the password feature is enabled, and also a password hint question for use when requesting password recovery. Upon successfully answering the hint question, the password is then emailed to the email address that was submitted. I am not completely confident in the security and privacy of the email method, especially if the email is sent when the user is connected to an open, public wireless network. 2) My application will be using an SQLite database, which will be stored on the SD card if the user has one. Regardless of whether it is stored on the phone or the SD card, what options do I have for data encryption, and how does that affect the application performance? Thanks in advance for time taken to answer these questions. I think that there may be other developers struggling with the same concerns. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Device Seeding Program for Top Android Market Developers
Live chat with FedEx works great. Your address, the shipper name, and you're golden. I spent about 4 minutes on it and found out it's arriving today! Better than a 20 minute hold on the phone. -Bryan On Wed, Mar 24, 2010 at 1:14 PM, abowman abow...@gmail.com wrote: If you trust your neighbors, just leave a note for them to leave the package at your door. On Mar 24, 1:19 pm, JasonC jcohe...@gmail.com wrote: Ya Rocco, they will give you the info even without a tracking number. I called FedEx yesterday and waited on hold for 20 minutes. Gave them my name address and phone number and I found out that my phone will be delivered tomorrow between 8am and 6pm, unfortunately i will be at work so I will have to drive out to the hub on friday to pick it up. Jason On Mar 23, 9:18 pm, Rocco optikalsa...@gmail.com wrote: If you're in the US and Google sent you a confirmation number and you want to know when you're getting your handset, just give FedEx a call from the number you provided Google with when you filled out the form. Even without your tracking number, as long as you contact them from that number and give the customer service rep your delivery address they will be able to tell you when they expect to deliver it. They might have you verify the name of the shipper as well which in this case is Brightpoint. I just did this earlier and found out I should expect my phone between the hours of 8am-6pm on Friday March 26th, 2010. Now I no longer have to play the guessing game or check this message 8 times a day to see if anyone in Oregon got their handset ;) -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
Got mine in hand! A Nexus One! I was so excited after picking up the box from my apartment office that I couldn't get my door open XD Via FedEx. I'm in Huntsville, AL. Filled out the form on March 2nd, got my confirmation on email on March 5th. It shipped from Brightpoint like the others. This was not for ADC2. It comes with the standard charger, headset, and pocket case. Plus a friendly letter from the Android Team. Thanks Google! This made my week and now I get to test with Android 2.x! -Bryan On Wed, Mar 24, 2010 at 4:11 PM, havexz bali.param...@gmail.com wrote: i live in chicago too..i dont know whether i got it or not .i hv to go to home to see. On Mar 24, 3:47 pm, jsdf jasons...@gmail.com wrote: N1 received in Chicago, IL. On Mar 24, 10:52 am, polyclefsoftware dja...@gmail.com wrote: Got my Nexus One today via FedEx. I'm in Lafayette, Louisiana USA. Has anyone in the US gotten a Droid? I'm happy with the Nexus...just wondering. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
Did anyone else fill out the form with their personal email address rather than the one that the Android Device Seeding Program message was emailed to? I used my personal address without thinking about it. I hope that isn't an issue. On Mar 5, 3:02 pm, Nikolay Ananiev devuni...@gmail.com wrote: Nothing in the spam folder, so I'll fill the form anyway. Hope they won't mind. On Fri, Mar 5, 2010 at 10:54 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Nikolay, 600k+ downloads? This is an Android discussion group, not iPhone... Seriously, I would check your spam trap. Also, check what e-mail account you signed up for with the market. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. 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%2Bunsubs cr...@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] Conditionally show/hide listview item
I have a listview activity that uses SimpleCursorAdapter to populate the list from a SQLite database. The database field in question is an INTEGER data-type, set with either a 0 or a 1 value, in a boolean format, 0 being false, and 1 being true. In my listview, I want to show a textview conditionally only for rows from the database that have a boolean 1 for the field in question. I am not sure how to show or hide a textview value, and possibly even set the value of the textview for a listview row item based on the value of the database field value. Has anyone ever dealt with this before, or know where it has been addressed previously. Please give me some advice on how I might get this to work. Or direct me where I might learn how. 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 do I test the CDMA package/radio in the emulator
Hi, My application makes use of cell tower info, specifically the CID for GSM. I'm able to test this on my G1, but I don't have access to a Droid phone to test the same functionality, baseStationId, for CDMA. How can I test this in the emulator so that I can support Droid phones? Thank you! Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I target api 1.6, but use packages from 2.0 (and safely)
Thank you everyone for the helpful replies. I've used a class wrapper as detailed by the android backwards compatibility blog to add support for Droid. It runs in the 2.0 emulator as expected, though is there anyway to emulate the cdma modem? Thanks! On Nov 26, 1:42 am, Dianne Hackborn hack...@android.com wrote: You absolutely can. In fact Java gives you a lot of neat things you can do. For example, if you want to write a Service that uses the new onStartCommand() on 2.0 but still works on older versions with the old onStart(), just write it like this: @Override void onStart(Intent intent, int startId) { handleCommand(intent); } @Override void onStartCommand(Intent intent, int flags, int startId) { // Consume command, so old onStart() is not called. handleCommand(intent); } // Handle start from either old or new method. void handleCommand(Intent intent) { // ... } This article covers a lot more of what you can do: http://android-developers.blogspot.com/2009/04/backward-compatibility... Note that reflection is useful for simple things, but for more extensive use of APIs you can follow the wrapper class approach which works very well. You can basically have large sections of you app using newer APIs, and as long as you don't try to run those classes you will be fine. (So in fact another approach you could take is to just look at the API version and use one class code vs. another based on it.) On Wed, Nov 25, 2009 at 8:16 PM, Ravi textlo...@gmail.com wrote: My understanding is that You can't. I cloned my app for 2.0 (ofcourse you will loose your feedback and popularity) and set minSDK to 5 Catch 22: If you set min sdk to 5 aka 2.0, 1.5 1.6 can not see the app. If you set to 1.5 or 1.6 then you can not see your cdma package. On Nov 25, 9:31 pm, Bryan piusve...@gmail.com wrote: Sorry for the simple question, but I'm having trouble finding an answer. My app targets 1.5, and runs fine on my phone (1.6), but to support droid, I need the package android.telephony.cdma from 2.0. Targeting 2.0 excludes the current devices running my app (including my own G1), but as it is now, I can't support the Droid. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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] how can I target api 1.6, but use packages from 2.0 (and safely)
Sorry for the simple question, but I'm having trouble finding an answer. My app targets 1.5, and runs fine on my phone (1.6), but to support droid, I need the package android.telephony.cdma from 2.0. Targeting 2.0 excludes the current devices running my app (including my own G1), but as it is now, I can't support the Droid. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)
Thanks for the quick reply. I was starting to fear that I'd need to publish a separate 2.0 app. I've not the time to start maintaining multiple releases, so I guess I'll just wait to support 2.0 until 2.0 is available for all devices. On Nov 25, 11:16 pm, Ravi textlo...@gmail.com wrote: My understanding is that You can't. I cloned my app for 2.0 (ofcourse you will loose your feedback and popularity) and set minSDK to 5 Catch 22: If you set min sdk to 5 aka 2.0, 1.5 1.6 can not see the app. If you set to 1.5 or 1.6 then you can not see your cdma package. On Nov 25, 9:31 pm, Bryan piusve...@gmail.com wrote: Sorry for the simple question, but I'm having trouble finding an answer. My app targets 1.5, and runs fine on my phone (1.6), but to support droid, I need the package android.telephony.cdma from 2.0. Targeting 2.0 excludes the current devices running my app (including my own G1), but as it is now, I can't support the Droid. 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 ringtone from raw resource?
So I'm having a hard time setting a ringtone from a raw resource. My code is below. Any help would be much appreciated. RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(), RingtoneManager.TYPE_NOTIFICATION, Uri.parse(android.resource:// net.thebosskey.gijoepsasoundboard/ + this.resource)); However, when I play back the default notification sound using the line below, it is not my sound. RingtoneManager.getRingtone(getApplicationContext(), RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)).play (); I know the uri for my sound is correct because the following line plays it: RingtoneManager.getRingtone(getApplicationContext(), Uri.parse (android.resource://net.thebosskey.gijoepsasoundboard/ + this.resource)).play(); What am I doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I receive cell location updates?
Hi, I'm trying to receive cell location updates in a background process, but I've only found very power inefficient ways of doing so. PhoneStateListeners stops listening when the phone sleeps, and require a period wake up. The broadcast intent android.intent.action.SIG_STR, doesn't appear to be broadcasting. LocationManager isn't quite the right fit, and I suspect it fails the same way that the phonestatelister fails, being built with a listener. The broadcast intent PHONE_STATE_CHANGED_ACTION, isn't appropriate. I'd rather not wake up the phone periodically when it may not have moved an inch for hours, such as overnight. The trigger should be a cell, not time, based. Is there any way of doing this, such as a gsm broadcast or something like that? Thank you, Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App name/icon problems on Hero after reboot
For what it's worth, I stopped using the Sense UI in favor of the default home, but did not wipe everything first. Upon entering the default home for the first time, all my apps had the right names/ icons. After resetting though, they were displaying in their mangled state in the default home. Does that tell you guys anything? If the apps are displaying incorrectly in the default home, does that mean that HTC has changed the packages themselves, or is it just an issue with how they are displayed? I have the same build number that Justin mentioned above. On Oct 30, 3:52 pm, Justin Giles jtgi...@gmail.com wrote: From a user standpoint, I ran across this thread on the Hero phandroids.comforum: http://androidforums.com/sprint-htc-hero/12549-handcent-shortcut-icon... Basically you wipe the phone sd card, reinitialize the phone, then IMMEDIATELY turn off HTC Sense UI in favor of the standard Android UI. The user that gave these instructions seems to not have any problems after they do this. Just a FYI and further evidence that HTC has some issues they may or may not be ignoring. On Fri, Oct 30, 2009 at 10:14 AM, Greg Donald gdon...@gmail.com wrote: On Fri, Oct 30, 2009 at 9:41 AM, Justin Giles jtgi...@gmail.com wrote: I'm not entirely sure the raw string vs resource string is the full issue here though. It might be part of the problem, but not the whole explanation. As Greg mentioned earlier, he never had his app name set as a raw string and he is experiencing the problem. On one of my applications I'm developing, I'm experiencing it as well with the app name always having been a resource. It's sounding more and more like HTC having done something funky with the package management. Especially since Dianne has been saying that stock Android doesn't have this problem. And all of my inquiries to HTC Sprint have resulted in nothing. I'm considering returning the phone, I still have a few days before my 30 day return option has past. I mean, who really knows when this might be fixed? What other options are there at this point? -- Greg Donald http://destiney.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: App name/icon problems on Hero after reboot
I just installed Light Racer on my Sprint Hero. Had never installed it before. Rebooted and it was fine, still named Light Racer, still with the same icon. I assume this is because you updated Light Racer and I had never installed it before. However, I am having this problem with several other apps, which variously use their full name (com.x...) or their icon changes to something weird: Where (icon) Quick Settings (icon) ASTRO (icon) Coin Flip (name) Meebo (name) Handcent Sms (icon) Reinstalling any of these fixes the problem, which will then come back after a reboot. Let me know if more data from me would be helpful. On Oct 29, 9:58 pm, Robert Green rbgrn@gmail.com wrote: Justin, Did the app name say Light Racer or net.rbgrn.lightracer after the reboot? That was the problem with it. I had a version out that used a raw string as the app label in the manifest. This updated one uses @string/app_name. If you confirm that it's the correct name and not the package name, then that's certainly one of the bugs right there. People that have installed it when it had the raw string app label never seem to get it fixed. Even updating to the one you claim works doesn't work for them. It's like once it's broken on the device, the cached data never goes away. That makes we wonder if there is a way to clear data on one of the system apps that will reset that cache... On Oct 29, 7:25 pm, Justin Giles jtgi...@gmail.com wrote: I just downloaded it, played a round, rebooted and everything seems fine with it. Icon looks good and the game loads. Swhat's amiss with the rest of us? Sheer dumb luck? Poorly coded apps? Justin On Thu, Oct 29, 2009 at 6:16 PM, Robert Green rbgrn@gmail.com wrote: Justin, would you be willing to install Light Racer, reboot and check for me? That will show if I've figured out part of the problem or not. Thanks! On Oct 29, 3:14 pm, Justin Giles jtgi...@gmail.com wrote: I installed pandahome (assuming that's what you meant by installing a different home app) and I get the same results. Messed up launcher icons after reboot. Justin On Thu, Oct 29, 2009 at 2:13 PM, Greg Donald gdon...@gmail.com wrote: On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn hack...@android.com wrote: If this is only happening on Hero, it needs to be reported to HTC, not as a generic platform bug. Do you know where the HTC bug reporting site is? All I can find is a simple support form that doesn't even confirm I posted anything. Has anyone tried installing an alternate home app and seeing if it still happens there? I wonder if this is something in their custom home app. I'd be happy to try if I can. What would you suggest I try? (I wasn't previously aware I could install a new home app.) -- Greg Donald http://destiney.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: Multiple notifications with one status bar icon
Make that trigger a different intent, not action. On Sep 21, 5:09 am, Bryan bryanw...@gmail.com wrote: Is there a way to have one status bar icon, but multiple entries in the notification pull down? I need to generate a few notifications that each trigger a different action when clicked, but I don't want to fill the status bar with useless icons in the process. Being able to create a notification without an icon at all would work too. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Notification without status bar icon
does anyone nkow how to create a notification without putting an icon into the status bar? So you won't see an icon up top, but you can see the notification when you pull down the notification window. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListActivity.onListItemClick(...) not being invoked
Scoured the docs and forums, couldn't find an answer or reason why this is happening: I have a class that extends ListActivity and a View coming from XML for each row that looks like this: LinearLayout ... TextView ... / TextView ... / CheckBox ... / /LinearLayout When I click on one of the items in the list, the onListItemClick() i have in my activity is not invoked. Turns out, if I comment out the CheckBox node in my layout xml, it works. I feel like there is a simple explanation that I don't know about.. maybe because CheckBox is an actual interactive widget it's overriding some click action or something? Help appreciated. -bryan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Software Packaging Problem: How to create an Android installer (apk) ?
HI all, In Windows, we write installer script, and user an installer compiler to generate an installer, let's say .inf for .msi/.cab and .nsi for NSIS. But when it comes to Android, is there a similiar method? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Market app suspended. What do I do?
I received notice that my application was suspended yesterday around lunch. I've contacted support via email and the publisher support form with no answer as of yet. What can I do to resolve this issue? The violation was that after paid app support hit the UK, a UK company (non-software) with the same name as my app yelled at Google. The result? Suspended my application entirely, not just for the UK. I love that the company didn't merely email me, in which case I'd have happily resolved the issue. So here I sit, waiting and powerless. A lot of people have purchased the app and expect updates. I have an apk with a new name, but can't do anything with it. The developers console has no clickable options. Is this how the market works? One social inept company can shut down your app permanently under shady pretexts? I didn't know that they exist. It was in error. The news is surprising to me given that they deal in the non-software realm. I'd like to make everyone happy and resolve this issue. What can I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Browser Bug with downloading files?
It seems that the browser isn't handling file downloads quiet right. If you log into geocaching.com, search for nearby geocaches, and try to download a .LOC file, it downloads the search page instead of the .LOC file. The mimeType is correct for a .LOC file though. Anyone run into this type of problem? Thoughts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] email attatchments
How do I open email attatchments it never let's me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] flash player
How do I get a flash player on this phone it never let's me download one --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Urgent: MapActivity - Couldn't get connection factory client (API key does not work)
Eclipse 3.4.1 JDK 1.5.0_16 Android SDK 1-1.0_r1 Mac OS X 10.5 Used keytool -list -keystore ~/.android/debug.keystore to get my md5. public class MyMapView extends MapActivity { private static final int MILLION = 100; MapView map; MapController controller; double lat; double lon; GeoPoint myPoint; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gps_mapview); Intent i = getIntent(); lat = i.getDoubleExtra(latitude, 0); lon = i.getDoubleExtra(longitude, 0); int latE6 = (int) (lat * MILLION); int lonE6 = (int) (lon * MILLION); myPoint = new GeoPoint(latE6, lonE6); map = (MapView) findViewById(R.id.mapView); ViewGroup zoom=(ViewGroup)findViewById(R.id.zoom); zoom.addView(map.getZoomControls()); controller = map.getController(); controller.setZoom(17); controller.setCenter(myPoint); } } gps_mapview.xml: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_height=fill_parent android:layout_width=fill_parent android:id=@+id/RelativeLayout01 com.google.android.maps.MapView android:id=@+id/mapView android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=07c5fr_xEBx7bK9b7bK9e0Wc07bK9CYr7bK9zQ android:clickable=true/ LinearLayout android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/zoom android:layout_alignParentBottom=true android:layout_centerInParent=true /LinearLayout /RelativeLayout On Nov 3, 11:27 am, Shahbaz Khalid [EMAIL PROTECTED] wrote: Hi, Very frustrated about this error since we can reproduce this on a number of machines. The error is self explanatory, googlemaps don't appear at all. This was working perfectly (albeit all the IOException warnings) before the API key requirement. Moving to another coordinate in googlemaps (Sending gps latitude/longitude coordinates through DDMS) doesn't work either (this worked before). Is there anyone who can post a working sample (with xmls) that works for them? Would also appreciate if they can post their platform/eclipse/jdk version details. Thanks On Mon, Nov 3, 2008 at 2:48 PM, ams163 [EMAIL PROTECTED] wrote: Hello, We've tried this on a number of our development machines, but so far this is not working for us. We are consistently getting the following errors in DDMS LogCat : 'MapActivity - Couldn't get connection factory client' and a LOT of : 'WARN/AndroidHttpConnectionFactory(167): IOException in HttpClient: The target server failed to respond' warnings. A few days ago this was working for us when there wasn't the googlemaps API key requirement, although we still had these HttpClient warning messages coming up for us. We are using Android SDK Debug certificate in eclipse as instructed here: http://code.google.com/android/toolbox/apis/mapkey.html Eclipse version is : Version: 3.3.2, Build id: M20080221-1800 JDK: jdk1.6.0_06 Latest Android SDK and Eclipse Plugin Platform, Windows XP SP2 Would appreciate any 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Orientation Sensor yaw values. Is your G1 compass bad?
I've been trying to figure out the cause of a compass related error for a while. After debugging and standing out in the rain slowly spinning in circles for a while, I finally found out that my device is reporting back yaw values inconsistently. For example, the range of offset from magnetic north is +/- 46 degrees. The average offset is just under 20 degrees. Depending on how I orient my G1, the error can go to 46 degrees off of magnetic north. Has anyone here experienced similar results when reading yaw from the sensor? I've gotten a number of reports from others complaining about inaccuracy with compass type results and am wondering if this is a per phone error or if all of the G1s have poor yaw/orientation sensors. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Spinner setSelection(int) problem
Hi all, I have a spinner in a dialog. Calling spinner.setSelection(int) correctly sets the spinner just after opening the app. If I reopen the dialog after making another spinner.setSelection(int) call, the spinner shows the first item regardless of the selection being set, BUT... clicking on the spinner shows that the correct value is selected in the list of options (green dot next to the item). Weird huh? Sometimes when this happens, the spinner is cutting off parts of the text. Has anyone else seen this happen? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] geo fix # # # command skews the entered coordinates
Hi. I'm trying to track GPS updates in my app using telnet and the geo fix command. Logcat is reporting back different long/lat values from what I enter. I get the feeling that the geo command is doing some floating point math and breaking the coordinates. The margin of error is significant ranging several hundreds of feet. Does anyone have a solution for this? For example: geo fix 45.52304 -122.640155 reports back 45.5241677167 -122.63536678. The numbers are consistently wrong. relevant code: public void onLocationChanged(Location loc) { Log.i(TAG, LAT: + loc.getLatitude()); Log.i(TAG, LONG: + loc.getLongitude()); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---