[android-developers] Re: Multiline Buttons..?
VBMichi wrote: Hi, I am searching for help with a multiline button since 6 days. Maybe someone of you can help me. I've also posted my question in den android-beginner google group. Sorry for crossposting. I have a button: Button android:layout_height=wrap_content android:id=@+id/test android:background=@drawable/background_image android:layout_width=280dip android:layout_marginLeft=20dip android:layout_marginTop=10dip android:text=This is a test! /Button How can I set each word which is in android:text in a seperate line in the button? I've allready tried; android:text=This\nis\na\ntest! and android:singleLine=false and android:lines=4 Nothing seems to work. Thanks for you help! Regards, Michael hi, what do you see when you just try: android:text=This\nis\na\ntest! ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] unsubscribe
http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multiline Buttons..?
Hi slink, I exaktly see This\nis\na\ntest! as caption of the button. Also if I try This \n is \n a \n test!. On Nov 17, 9:31 am, skink psk...@gmail.com wrote: VBMichi wrote: Hi, I am searching for help with a multiline button since 6 days. Maybe someone of you can help me. I've also posted my question in den android-beginner google group. Sorry for crossposting. I have a button: Button android:layout_height=wrap_content android:id=@+id/test android:background=@drawable/background_image android:layout_width=280dip android:layout_marginLeft=20dip android:layout_marginTop=10dip android:text=This is a test! /Button How can I set each word which is in android:text in a seperate line in the button? I've allready tried; android:text=This\nis\na\ntest! and android:singleLine=false and android:lines=4 Nothing seems to work. Thanks for you help! Regards, Michael hi, what do you see when you just try: android:text=This\nis\na\ntest! ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Anti-Piracy
On Nov 17, 12:01 am, strazzere str...@gmail.com wrote: It's hard to get into all the dynamics of it, but I'll gladly have a conversation offline with you if you'd like to have one. I'll try to touch briefly upon most of this though. Yes - I agreed the protection Google has implemented does not suffice for now. One would have hoped it could have been resigned to run specifically on that phone, or some type of protection like that. Instead we have a forward-locked application that essentially doubles in size since it has a zip file in /data/apps and it's actual apk in /data/app-private which is just a simple linux permission based protection. I agree with nEx on this one, that your asking a bit much for some applications to be granted internet permission, more importantly, your now asking for someone to grant READ_PHONE_STATE. This is something I've been more protective of over the internet permission. Your no longer using the ANDROID_ID and now using an IMEI. Since the IMEI is specific to the phone, why not use the ANDROID_ID? It is also linked to that phone and does not require any addition permissions... From the other side of things, it is also spoofable - so your not risking / more/ than you would by using the IMEI. IMEI code gives justice possibility to find phone owner and punish him. Other IDs can not help in that. In many countries exists IMEI code database created by cellular operators, and you can ask for phone place detection and switching off, of course if you have proper papers in hands. I think pirate should now that if he steal and rich some kind of our pations limit, then we can punish him or at least force him to buy all applications and compencate sales losts. You've touched on a few products and mentioned that they are all activation required. I completely agree that this is the activation method people should be taking, but you must also know -- all the products you've listed are easily available for a pirate... So why do people buy them then? Activation often /comes/ with something. Continued program update, patches, data updates, incentives to things, SUPPORT, plug-ins, etc. That's why these things can sell. Your always going to have the kiddies who download things for the sake of, I have this and I got it for free, always. Your always going to have people who can get it to them, because you've developed some crazy protection, and it's a game for them to break it. What needs to be done is put up some protection, and make your product better. If you spending more time on developing your protection system than your next feature, you need to re-evaluate your business plan. Protection schemes will probably add no business value compared to the next cutting edge feature... I'm easy on piracy. My idea: You have to try product for some time and only after that decide do you want it or not. But in most cases It's easy to contact product developer and ask about trial version. It's a common practice to give people trial for trying the product. I'd like to just quickly rebase in saying, I'm not against your scheme - I just don't see how you plan to make this work. If you open up your blacklisting, it just seems like it will be too easy to circumvent and even easier to abuse. Circumvention isn't too much of an issue, but the abuse is just going to land you in problems with good customers. Yes, they could always email you and defend their IMEI. Though unless you've developed a /must have/ app that no one else has, why would a customer put up with having to defend themselves - you should always want to give customers a path a least resistance :) In my case, I even reduce price to stimulate pirates to buy product after they install it. I give them a chance to recover own good face. On Nov 16, 4:49 pm, AlexK kucherenko.a...@gmail.com wrote: sounds like conservation talks. I'm afraid because I don't understand what they are doing. I will not sit into train, because I don't know who in the front of it... Good application on which spent a lot of efforts requires good protection. You pay money for application and it services, and in rights ask explanation from developers site, may be even ask about some special guaranties... But in any case It is completely your choice do you want to use best application on market and did security prerequisites with guaranties from developer side, or use free software with open source and etc. On Nov 16, 11:28 pm, nEx.Software email.nex.softw...@gmail.com wrote: No, I completely understand that developers might use it but... Given the generic permission, I'd prefer not to use it unless completely necessary. That being said, if a developer is up front about it and tells me why they want those permissions, I am far less cautious... Generally speaking, I don't approve of analytics such as Flurry and/or Google because the developers don't tell me that they are being
[android-developers] WebView email support
Hi, Can anyone tell me if there was a change from 1.6 to 2.0 in the support for email in a WebView. In android 1.6 I used to be able to mouse click on a web page email link (WebView) and it would activate the email activity and take that email address and drop it into a email module. In android 2.0 it just returns Unsupported action - that action is not currently supported message. How can I change this so when I click on the email address, on a web page, it takes me to email with the address I clicked on placed in the to: box? Thanks in advance, Lawrence -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: fwd: get the file path from a URI instance
If I remember rightly, the gallery returns you a content uri so you'll want to do something like: getContentResolver ().openInputStream(uri) On Nov 17, 5:53 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Dianne, I am trying to do the following. I have an Image viewer where in the user picks an Image from within the gallery. The uri to that selected Image is available to me. Now, I want to use this URI information and send it as a file over a socket using FileInputStream. Is this a valid syntax to perform the above action? FileInputStream fis = new FileInputStream(uri.getPath()); // Here uri is the URI of the selected Image byte[] buffer = new byte[fis.available()]; fis.read(buffer); ObjectOutputStream oos = new ObjectOutputStream (socket.getOutputStream()); oos.writeObject(buffer); Please help me to move forward. Thanks, Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to test if app is shown on Market for all screensizes
Is there any Google people that can shed some light on this issue? On Mon, Nov 16, 2009 at 4:42 PM, blindfold seeingwithso...@gmail.comwrote: Thanks Phil! Indeed this is very strange. As I understand it, all Android 1.6 apps should by default be visible to HTC Tattoo on the Android Market, and use of the camera should not matter. I had even tested my app to show OK on a 240x320 screen using the emulator, and cannot think of anything else to correct. I was thinking of trying an empty supports- screens element in case documentation is ambiguous, but even so it would not seem to make sense to have the CAMERA dependency. Hopefully HTC or Android developers (Romain?) will figure it out soon, because this kind of market fragmentation seems unnecessary. On Nov 16, 9:55 am, phil philipp.bre...@gmail.com wrote: Hi Blindfold, We were not able to find The vOICE for Android in the Market on the Tattoo. But we found it on the HTC Magic in the Market. Hope there will be a solution for this issue soon. On Nov 15, 8:21 am, blindfold seeingwithso...@gmail.com wrote: OK, I didn't know that. My curiosity was triggered by Phil with the suggested role of the CAMERA permission in having apps be visible on the Market, which AFAIK should not have made any difference. Also, android:minSdkVersion=4 (Android 1.6) according to documentation implies that all screensizes are assumed supported: http://d.android.com/guide/practices/screens_support.htmlIf android:minSdkVersion or android:targetSdkVersion is 4 (Android 1.6) or higher, the default value for everything is true. So I expected that basically only visibility of (unadapted for screensize) Android 1.5 apps on the Market would be affected, without any role for android.permission.CAMERA, and I would otherwise be surprised. BTW, lots of HTC Tattoo buyers seem annoyed, judging fromhttp:// androinica.com/2009/10/11/htc-tattoos-android-market-will-not-... where it is stated that even Google's own Listen, My Tracks and Sky Map are (were?) not visible on Android Market for users of the HTC Tattoo. On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote: Hi Blindfold, Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users reported that they couldnt find our app on Market with their Tattoo. But we have no idea why? To Edward: HTC Tattoo has a camera, so that cannot be the reason our apps are not showing. What to do? :D Cheers On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk ed.f...@gmail.com wrote: Oh, and more importantly, the Android market should have a tool that allows developers to get a list of devices that their application won't be shown for, and why. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Securing a paid app
Unless I missed it above, no one has published a method to check whether an app was downloaded and not refunded by Google Checkout. Without this check, none of the above code will be of any value. Google please provide us with something we can use - devs work hard to improve the platform. Pirates only purpose is to get something for free with no regard to the work that went into it. They are making small startup Android businesses non-viable and hence quality products will diminish. Remember a pirate's motto is 'if you enjoyed using the app, please consider buying the full version to support the dev'. Yeah right!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: arraylist storage in sqlite
i want to save the array values in single row and single column... then how can i insert [ syntax] into database -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiline Buttons..?
VBMichi wrote: Hi slink, I exaktly see This\nis\na\ntest! as caption of the button. Also if I try This \n is \n a \n test!. really strange maybe try: Button b = (Button) findViewById(R.id.test); char = b.getText().charAt(4); Log.d(Test, value + (int) ); and see logcat output -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to test if app is shown on Market for all screensizes
I noticed this problem when the new Droid Eris came out. At first, i started messing with minsdk and even lowered it to 2 but that didnt fix it, the apps didnt show up in the market. I ran through Verizon and Sprint stores for days to try to get this to work. I dont think Google people even know the problem exist. I am surprised that this problem hasnt been fixed for such a long time now. Anyway, the reason why you can 't see your app on HTC Hero/Eris or any other 1.5 phones is because you have copy protection set to On. You can turn this off in your developer console when logged in to your Android Market account and editing your application description/title cheers! On Nov 17, 1:19 am, Klaus Kartou kar...@gmail.com wrote: Is there any Google people that can shed some light on this issue? On Mon, Nov 16, 2009 at 4:42 PM, blindfold seeingwithso...@gmail.comwrote: Thanks Phil! Indeed this is very strange. As I understand it, all Android 1.6 apps should by default be visible to HTC Tattoo on the Android Market, and use of the camera should not matter. I had even tested my app to show OK on a 240x320 screen using the emulator, and cannot think of anything else to correct. I was thinking of trying an empty supports- screens element in case documentation is ambiguous, but even so it would not seem to make sense to have the CAMERA dependency. Hopefully HTC or Android developers (Romain?) will figure it out soon, because this kind of market fragmentation seems unnecessary. On Nov 16, 9:55 am, phil philipp.bre...@gmail.com wrote: Hi Blindfold, We were not able to find The vOICE for Android in the Market on the Tattoo. But we found it on the HTC Magic in the Market. Hope there will be a solution for this issue soon. On Nov 15, 8:21 am, blindfold seeingwithso...@gmail.com wrote: OK, I didn't know that. My curiosity was triggered by Phil with the suggested role of the CAMERA permission in having apps be visible on the Market, which AFAIK should not have made any difference. Also, android:minSdkVersion=4 (Android 1.6) according to documentation implies that all screensizes are assumed supported: http://d.android.com/guide/practices/screens_support.htmlIf android:minSdkVersion or android:targetSdkVersion is 4 (Android 1.6) or higher, the default value for everything is true. So I expected that basically only visibility of (unadapted for screensize) Android 1.5 apps on the Market would be affected, without any role for android.permission.CAMERA, and I would otherwise be surprised. BTW, lots of HTC Tattoo buyers seem annoyed, judging fromhttp:// androinica.com/2009/10/11/htc-tattoos-android-market-will-not-... where it is stated that even Google's own Listen, My Tracks and Sky Map are (were?) not visible on Android Market for users of the HTC Tattoo. On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote: Hi Blindfold, Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users reported that they couldnt find our app on Market with their Tattoo. But we have no idea why? To Edward: HTC Tattoo has a camera, so that cannot be the reason our apps are not showing. What to do? :D Cheers On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk ed.f...@gmail.com wrote: Oh, and more importantly, the Android market should have a tool that allows developers to get a list of devices that their application won't be shown for, and why. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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.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] how to get application state
How I can find the state(running/paused/stopped etc) of an application? Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multiline Buttons..?
Hi VBMichi, check the following code, it might help you... Button android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:maxLines=5 android:maxWidth=35dip android:text=mano j/Button On Nov 17, 2:46 pm, skink psk...@gmail.com wrote: VBMichi wrote: Hi slink, I exaktly see This\nis\na\ntest! as caption of the button. Also if I try This \n is \n a \n test!. really strange maybe try: Button b = (Button) findViewById(R.id.test); char = b.getText().charAt(4); Log.d(Test, value + (int) ); and see logcat output -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android in China - What is going on?
Hi China government blocked Google sync services in China. Google probably aware, but I dont think they can help. Note this is not only affecting Android but almost affect every similar services. This may or may not be official, government can block any service without prior notification! Regards siuying On 11月17日, 上午11時13分, shimsim shim@gmail.com wrote: For well over 1 month now my ADP G1 has been experiencing connectivity issues in China. Both the market place and gmail are affected by this problem (actually anything requiring account authorization from what i can tell) during which time they are both unaccessible. On average the blocking is in effect 90% of the time but at random periods during the day/night will start to work again. I have ruled out any issues with my phone and judging by the number of other users that are experiencing this problem it seems fairly widespread. My questions are as follows: 1. Is Google aware of this problem? 2. What is the reason for the blocking? 3. Will it continue in the long term? I am really hoping to get an official statement on what is really going on. I would prefer if people didn't jump in and start suggesting VPN options, whilst I am familiar with some workarounds, I would prefer to understand the root of the problem and how it will effect Android in the long term in China. 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: images.google.com results in my app
Found a solution myself. You should create an URL with adress http://ajax.googleapis.com/ajax/ services/search/images?v=1.0q= and add after q= your keywords for search. Then if you create a reader from this url, you'll get an xml as a responce. Here's an example: URL url = new URL(http://ajax.googleapis.com/ajax/services/search/ images?v=1.0q=pamela+anderson); BufferedReader reader = new BufferedReader( new InputStreamReader( url.openStream() )); String line; StringBuffer output = new StringBuffer(); while ( (line = reader.readLine()) != null ) { output.append(line); } reader.close(); Now output contains the xml returned from google image search. Good luck! Andrew On 12 ноя, 02:01, pti4ik pti...@gmail.com wrote: Hi everybody! There's an interesting problem: I need to search for images on web and then show them in my application. I'm thinking of usingimages.google.com. How can I get results from this image search? I tried simply creating URL object with adress http://images.google.com/images?q=keyword;, but got a 403 Forbidden error. I also know AJAX search api, but don't have any idea of how to implement this in my app because it is for using in websites! So what would you advise to get search results fromimages.google.com? Andrew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dmtracedump reports version error
when I used dmtracedump to analyze traces.txt which generated by OOM, I got below error: $android-sdk-linux_x86-1.6_r1/tools/dmtracedump -h -g trace traces.txt ERROR: not at start of version (found ' - pi') Can anyone help me? BTW, who can share the experience about trace memory problem with heap view of DDMS? That will be appreciated! James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Anti-Piracy
Idea is good. And we already brain storm it. Problem is in Google - they don't want to listen us. They simply ignore all our requests. For today we theoretically possible only one implementation: 1) on start application request activation with user name and device id; 2) activation server check google checkout records and and if nothing found mark record as needed hand processing and return trial license. 3) application in small period of time (1 week) should run activation one more time (maybe be in background, hidden for end-user) and license processed and confirmed download purchased license. Google Checkout has the most problematic integration in compare to other payment systems (PayPal, Plimus, etc). Google checkout can ping our server by specified url every time transaction changes happens, but information provided in that ping/callback not sufficient to effectively synchronize activations with transactions without user interaction. On Nov 17, 3:26 am, yidongsoft long...@gmail.com wrote: One effective way I have ever considered is: Market application maintains a list which contains the buying information for all the applications. Example: App foo: packageName;orderNumber;... Market check the list period: check all the order number with the google count in the mobile; if the orderNumber empty or illegal, check the app state: if not free, unstall it. For a better convenience, market app should at least check the app after 2 days the user install it. What's your idea? Thanks! Yidongsoft -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Anti-Piracy
That is TRUE. But at least that will make two things right: 1) User will think twice before install pirated software 2) User that install it without knowing that it is a pirate copy can return good face On my prognoses only 10% from that 80% will pay for application (and my experience on other software markets confirm that). On Nov 17, 7:21 am, Nightwolf mikh...@gmail.com wrote: Only 20% of all installs are legal, other 80% are in piracy hands. I believe that in case of perfect copy protection only few of that 80% would buy your app. On 16 ноя, 14:12, AlexK kucherenko.a...@gmail.com wrote: Our company starts today anti-piracy initiative against piracy that already happened on Android Market. We request all vendors and developers to support this initiative. Piracy become a threat for vendors that publishing application on Android Market! It is not a joke, it is a real threat. Our last application publishing shows how bad is situation on the Android Market. Only 20% of all installs are legal, other 80% are in piracy hands. Google does not provide any actions to stop piracy, so we as a vendor that provide software for Android Market, have to think about protection measures. Piracy is threat that cannot be target easily and eliminated in one day. Only join of all vendors can help in anti- piracy. ArtfulBits company decide to start from today Android Anti-piracy Movement with main goal: protect vendors and punish piracy. Our next steps are: - Petition to Google with request to provide better anti-piracy protocols for Android Market; - Collective anti-Google charge, from side of vendors that loose money due to Google security holes in Android Market application distribution channel; - Public web service Black List, that helps all developer to check is there application installed on pirate phone; - Joining of the software vendors over that problem for finding better anti-piracy strategies; - Identification of the roots of piracy, that make possible Android Market software leaking and contribution them to justice. A little later today we will open black-list database of devices, where was installed stolen version of applications. In addition, we will provide easy code for all developers that can be integrated into own application and during first start, check is phone in black list or not. Opened Anti-Piracy forum thread:http://www.artfulbits.com/Support Petition can be signed here:http://www.petitionspot.com/petitions/androidpiracy Stay tuned! 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] Install command to install apk in System/app
Hi , Anybody knows the install command to install an apk in system/app directory . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Download Android source code failed
Me too. I tried many times, always failed. On Nov 17, 10:14 am, Andrei gml...@gmail.com wrote: I had same Just try till succeed On Nov 16, 9:07 pm, Alger, Lin addr...@gmail.com wrote: I try to download source code for Android 2.0, but I always got the fatal: The remote end hung up unexpectedly message. Does the source code database with some problem? Should I rebuild my repo environment? or change some setting of repo? please tell me how to get the source code for Android 2.0. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] User Ratings in Apps
Just curious, how do most applications get users to rate their application. I know the user gets the opportunity when they purchase from the market but do many applications have a button emmbeded in their application like Please Rate My Game etc.. that will redirect the user. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiline Buttons..?
On Nov 17, 11:33 am, manoj manojkumar.m...@gmail.com wrote: Hi VBMichi, check the following code, it might help you... Button android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:maxLines=5 android:maxWidth=35dip android:text=mano j/Button it's not universal solution as it has android:maxWidth pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to track Installing and uninstalling applications?
Hi guys, I need to know time, when application is installed, can you tell how can i do it? I will thankful to all, who get any info about it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: User Ratings in Apps
Users go to Downloads section of market, then rate. They can give a star rating and optionally a comment. Users have a tendency to only leave comments if they are very pleased or very displeased with apps! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Memory Problem ? and content media provider died
Dear, My users meet a problem, I am not sure to understand. Here an extract of the log file I have received 11-15 21:22:40.816 I/ActivityManager( 70): Low Memory: No more background processes. 11-15 21:22:42.306 I/ActivityManager( 70): Stopping service: com.tmobile.selfhelp/.alert.service.AlertService 11-15 21:22:47.606 D/dalvikvm( 114): GC freed 1536 objects / 71304 bytes in 130ms 11-15 21:22:47.966 I/ActivityManager( 70): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=4021 uid=10011 gids= {1006, 1015, 2001, 3003} 11-15 21:22:48.086 I/ActivityThread( 4021): Publishing provider media: com.android.providers.media.MediaProvider 11-15 21:22:48.156 V/MediaProvider( 4021): Attached volume: internal 11-15 21:22:48.166 V/MediaProvider( 4021): /sdcard volume ID: 1052379123 11-15 21:22:48.266 V/MediaProvider( 4021): Attached volume: external 11-15 21:22:48.276 I/ActivityThread( 4021): Publishing provider downloads: com.android.providers.downloads.DownloadProvider 11-15 21:22:48.306 I/ActivityThread( 4021): Publishing provider drm: com.android.providers.drm.DrmProvider 11-15 21:22:48.426 I/ActivityThread( 3963): Removing dead content provider: media 11-15 21:22:48.426 I/ActivityManager( 70): Process android.process.media (pid 4021) has died. 11-15 21:22:48.426 I/ActivityManager( 70): Killing app (pid 3963) because provider com.android.providers.media.MediaProvider is in dying process android.process.media How do you understand this log ? I see a low memory, I guess that's why the content provider is killed, killing my application at the same time.. When I test my application, After more than two hours running, heap size is around 3.8MB (start around 3MB) and the allocated memory stays stable over the period after the GC is called (between 2.3MB et 2.7MB depending the operation running) To send query to the content provider, I am using the the contentResolver from the Application context (getApplicationContext ().getContentResolver()) Is there people who undertand the problem I meet or who can give a direction where to search to solve the problem ? Regards, Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to track Installing and uninstalling applications?
You get some idea of the count of active installs on http://market.android.com/publish/Home Not sure how to capture install / uninstall event. For install / first usage, you could have the client contact a server you maintain I guess. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Work with a part of CameraPreview
Hi all, I would like to retrieve the content display on a small part of a camera preview, but I don't know how :-/ I create my surfaceview displaying the camera but after that, how can I retrieve the data displayed inside this without taking a picture ? Thanks by advance for your help. Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Displaying Text such as score in an OpenGL game
Hi Kevin, I'm no OpenGL expert, but I know GL support text drawing. However, I think it can slow things down. You may also want to search about bitmap fonts, which is probably what the sprite test is doing. -niko On Nov 16, 8:10 pm, Kevin S. dada...@gmail.com wrote: I have a the beginnings of an Open GL game running, and have gotten to the point where it would be nice to have the FPS displayed. Since I will probably want to be able to put score or other info up anyway, I started searching for how to do that. I found the SpriteTest example, http://code.google.com/p/apps-for-android/source/browse/trunk/Samples... It looks nice, but really complex. Is there an easier way? -Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android in China - What is going on?
I've been using my HTC Hero in mainland China now for three months. Up until about one week ago, whenever I tried to download an app from the Market there was about a 50-50 chance it would work. When it didnt work there would almost immediately be a notification message saying unable to download, please try later etc. Retrying immediately almost never worked. Some random point later in the day, it would work. However, one week (or maybe 10 days) ago things got much much worse. Its been virtually impossible to download anything. I must have tried over a hundred times. There was one exception 3 days ago where there was a small time window of less than an hour where I managed to download a couple of apps. It was like winning the lottery :) What's worse, a couple of days ago I started getting a message saying I needed to log in to my google account (whenever I opened the Market app). But logging in never succeeds. The internet connection is fine (I can browse the internet over EDGE), but for some reason, a connection cannot be made to the google servers to do account access... On Nov 17, 6:44 pm, siuying siu.y...@gmail.com wrote: Hi China government blocked Google sync services in China. Google probably aware, but I dont think they can help. Note this is not only affecting Android but almost affect every similar services. This may or may not be official, government can block any service without prior notification! Regards siuying On 11月17日, 上午11時13分, shimsim shim@gmail.com wrote: For well over 1 month now my ADP G1 has been experiencing connectivity issues in China. Both the market place and gmail are affected by this problem (actually anything requiring account authorization from what i can tell) during which time they are both unaccessible. On average the blocking is in effect 90% of the time but at random periods during the day/night will start to work again. I have ruled out any issues with my phone and judging by the number of other users that are experiencing this problem it seems fairly widespread. My questions are as follows: 1. Is Google aware of this problem? 2. What is the reason for the blocking? 3. Will it continue in the long term? I am really hoping to get an official statement on what is really going on. I would prefer if people didn't jump in and start suggesting VPN options, whilst I am familiar with some workarounds, I would prefer to understand the root of the problem and how it will effect Android in the long term in China. 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: Map is not displaying even the settings are correct
i tired reinstalling its showing the following error 11-17 18:40:14.882: INFO/ActivityManager(565): Starting activity: Intent { cmp=com.example.android.google.apis/ com.example.android.apis.view.MapViewDemo } 11-17 18:40:14.923: ERROR/ActivityThread(755): Failed to find provider info for com.google.settings 11-17 18:40:14.923: ERROR/ActivityThread(755): Failed to find provider info for com.google.settings 11-17 18:40:14.943: ERROR/ActivityThread(755): Failed to find provider info for com.google.settings 11-17 18:40:15.093: INFO/MapActivity(755): Handling network change notification:CONNECTED 11-17 18:40:15.093: ERROR/MapActivity(755): Couldn't get connection factory client 11-17 18:40:15.523: INFO/ActivityManager(565): Displayed activity com.example.android.google.apis/ com.example.android.apis.view.MapViewDemo: 629 ms (total 629 ms) 11-17 18:40:15.624: INFO/InetAddress(755): Unknown host www.google.com, throwing UnknownHostException 11-17 18:40:17.093: INFO/InetAddress(755): Unknown host www.google.com, throwing UnknownHostException 11-17 18:40:18.573: INFO/InetAddress(755): Unknown host www.google.com, throwing UnknownHostException 11-17 18:40:20.044: INFO/InetAddress(755): Unknown host www.google.com, throwing UnknownHostException 11-17 18:40:21.543: INFO/InetAddress(755): Unknown host www.google.com, throwing UnknownHostException 11-17 18:40:23.023: INFO/InetAddress(755): Unknown host www.google.com, throwing UnknownHostException please help me On Nov 16, 6:46 pm, TreKing treking...@gmail.com wrote: At this point it might be your maps add-on is broken somehow. Try uninstalling and re-installing it maybe? --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking On Mon, Nov 16, 2009 at 5:18 AM, naveenballa naveenball...@gmail.comwrote: The default Google maps application in the emulator(platform 1.6) itself showing only the tiles. please help me Thanks in advance.!! On Nov 14, 1:05 am, jotobjects jotobje...@gmail.com wrote: The API key has to be generated from the certificate that you use to sign the app when you build it. You can't just use a different API key on each machine unless you are also building the APK on each machine. On Nov 12, 8:12 pm, naveenballa naveenball...@gmail.com wrote: Thanks everyone for the reply i have also done getting separate API key for my PC then also it's displaying only tiles. can you give any other reason? On Nov 13, 3:43 am, jotobjects jotobje...@gmail.com wrote: On Nov 12, 1:04 pm, TreKing treking...@gmail.com wrote: I think you have to set up a new debug key on each machine you use. I jump back and forth between my desktop and laptop and I have a separate debug key for each. So on whichever machine you're not seeing tiles on, run through the process to get a debug key again and see if that works. Is the OP using the debug key and distributing the APK to multiple devices? Possibly there is some way the Maps server can detect when the key is the MD5 fingerprint of the debug certificate since you are not supposed to use the debug certificate for a distributed app (not sure if or how this is detected). Also the API key must be the MD5 fingerprint for same certificate that was use to sign the application. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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] Re: Alarm is canceled if app is stopped
I think it would be nice if the to-be-killed/restarted apps/services get a chance to say what it is doing. It's normal apps/services obligation to provide such information; it's task manager apps obligation to collect them and present to users. Or make it a system service (may be some dialogs) to make sure no apps/ services is killed without judgement. (sounds familiar? ^_^) We still need such an API to be public, just make it more gentle. On Oct 16, 12:07 am, Dianne Hackborn hack...@android.com wrote: If you kill the process, it will not impact the alarms, the same as it won't impact notifications etc. What these programs are doing is using the API that is tended to force stop -everything- about the application: stop all services, cancel all alarms, remove all notifications, etc. This is all working as intended, the apps are just abusing this API to cause things to happen that you probably don't want to have done. On Thu, Oct 15, 2009 at 3:55 PM, Jason B. jason.ba...@gmail.com wrote: When I use the method above. Even after I kill my app and service with task manager my alarms still trigger. I believe its because the AlarmManager service has been given a pending intent that will relaunch my service which handles the alarms. Both alarmmanager and the pending intent are allocated outside of the activity, so even if the application's virtual memory space is deleted, the pending intent still exists and the alarmmanager is still scheduled. Sorry if I missed the theme of the post. Good luck :) On Oct 15, 11:53 am, String sterling.ud...@googlemail.com wrote: On Oct 15, 4:34 pm, Jason B. jason.ba...@gmail.com wrote: Using that approach works great for my app. That way it doesn't matter if my app ever gets killed. The alarm will trigger in the future and the intent will restart my service I believe the point of this thread is that Task Killer apps will kill all future alarms you had scheduled. String -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Donut (1.6), auto complete text view and ellipsize
Hi All Even I face the same issue. Anyone found a solution for this? --- On Thu, Sep 24, 2009 at 6:31 AM, Chris W. cmichaelw...@gmail.com wrote: I have a layout that includes the following: AutoCompleteTextView android:id=@+id/search_code android:layout_width=fill_parent android:layout_height=wrap_content android:selectAllOnFocus=true android:completionThreshold=2 android:maxLength=60 android:singleLine=true android:ellipsize=end android:imeOptions=actionDone/ Up until 1.6 the ellipsize attribute on my view above functions as I would expect. Since upgrading to 1.6 the ellipsize attribute, regardless of what I set it to (start, middle, end) seems to be ignored. Any hints and/or recommendations? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Making TextView Scrollable
I am displaying text in a textview that appears to be too long to fit into one screen. I need to make my TextView scrollable. How can i do that? Here is the code final TextView tv = new TextView(this); //ScrollView sv; //final TextView tv; //tv = (TextView)findViewById(R.id.tips); //sv.addView(tv); tv.setBackgroundResource(R.drawable.splash); tv.setTypeface(face); tv.setTextSize(18); tv.setTextColor(R.color.BROWN); tv.setGravity(Gravity.CENTER_VERTICAL| Gravity.CENTER_HORIZONTAL); tv.setOnTouchListener(new OnTouchListener(){ public boolean onTouch(View v, MotionEvent e) { Random r = new Random(); int i = r.nextInt(101); if (e.getAction() == e.ACTION_DOWN) { tv.setText(tips[i]); tv.setBackgroundResource(R.drawable.inner); } return true; } }); setContentView(tv); } } Thanks. Maxood -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Displaying Text such as score in an OpenGL game
It's not that bad, you can just copy the LabelMaker and NumericSprite classes and then call them in the same way that example does in the render. At least that's all I'm doing for my little 2D effort. On Nov 17, 2:10 am, Kevin S. dada...@gmail.com wrote: I have a the beginnings of an Open GL game running, and have gotten to the point where it would be nice to have the FPS displayed. Since I will probably want to be able to put score or other info up anyway, I started searching for how to do that. I found the SpriteTest example, http://code.google.com/p/apps-for-android/source/browse/trunk/Samples... It looks nice, but really complex. Is there an easier way? -Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem in setMargins() and textview
Hi, I created a textview and also MarginlayoutParams. Then i put setMargin for the MarginLayoutParams and inserted that to textview using tv.setLayoutparams(), but its not working. The code is, MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.setMargins(100, 100, 0, 0); TextView tv = new TextView(this) tv.setLayoutParams(compParams); setContentView(tv); But the textView is still in top left corner, its not moving. Any suggestions please.. 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] media recorder error on start
Hi i am trying to record video and upload to web server. i created a temp file but when i try to start recorder.start(), it gives me java.lang.RuntimeException: start failed. i tried debugging it but i am not getting it working. can someone please give me sample code to record video and save. i am really stuck with this error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Install command to install apk in System/app
Needs : 1. Created AVD Process : 1. cmd 2. Go to SDK/Tools Directory 3. emulator -avd avd name Will start in few seconds 4. Open 2nd instance of cmd 5. copy ur signed .apk file to SDK/Tools directory 6. adb install Application with .apk Its Done -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Emulator not receiving UDP Packets
From a remote machine we are sending some UDP packets to our Android emulator. We are able to see the UDP packets reaching the host machine, but not able to reach the emulator, In Wireshark we are getting Destination port unreachable The port we are using is:49152 and static ip at both ends Is this port supported by android emulator? What is the solution to get UDP packets to be able to reach till the emulator? Kindly give solution for the same, Thanks in advance, -Gopish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Displaying Text such as score in an OpenGL game
It's not that bad, you can just copy the LabelMaker and NumericSprite classes and then call them in the same way that example does in the render. That's good news, I'll go down that path then. Thanks for the reply! -Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Person using Sprint Hero can't see application?
That makes sense... but should the target SDK be 5 instead of 4 in order to include Android 2.0 users, too? Thanks everyone for the help and sorry for the delay in my response. On Nov 14, 8:46 pm, Alexey Volovoy avolo...@gmail.com wrote: Most of the Heros running 1.5 , although upgrade afaik is available. So minSdk should be 3 ( or you'll run into the same problem with CLIQ users ) target SDK should be 4 On Nov 14, 9:53 am, g1bb corymgibb...@gmail.com wrote: Hello, I have someone e-mailing me that they can't see my application in the Market. Is there something specific that I need to put in my manifest? They're using a Sprint Hero. Here's my manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.droidfart.app android:versionCode=14 android:versionName=1.1.2 application android:label=@string/app_name android:icon=@drawable/ logo activity android:name=.Main android:label=@string/app_name android:screenOrientation=portrait intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.FartBombActivity android:label=@string/app_name android:screenOrientation=portrait/ activity android:name=.FartBombCountDown android:label=@string/app_name android:screenOrientation=portrait/ activity android:name=.Shaker android:label=@string/app_name android:screenOrientation=portrait/ activity android:name=.Settings android:label=@string/app_name android:screenOrientation=portrait/ activity android:name=.Recorder android:label=@string/app_name android:screenOrientation=portrait/ receiver android:name=.SMSReceiver android:enabled=true intent-filter action android:name=android.provider.Telephony.SMS_RECEIVED / /intent-filter /receiver receiver android:name=.SMSReceiver android:label=@string/ app_name intent-filter category android:name=android.intent.category.LAUNCHER / /intent-filter /receiver receiver android:name=.OneShotAlarm android:process=:remote / service android:name=.FartBomb/ /application uses-sdk android:minSdkVersion=4/uses-sdk uses-permission android:name=android.permission.RECEIVE_SMS/uses- permission uses-permission android:name=android.permission.WAKE_LOCK/uses- permission uses-permission android:name=android.permission.VIBRATE/uses- permission uses-permission android:name=android.permission.RECORD_AUDIO/uses- permission /manifest Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Positioning Elements with Various Resolutions
Ok, I discovered this on the Motorola site: http://developer.motorola.com/docstools/library/Support_for_Multiple_Screen_Resolutions/ What this means is that when content is scaled up to full screen, the horizontal (X*1.5) and vertical (Y*1.77) scaling factors are different. As a result, when displaying the same bitmap as a full screen background, round circles can appear as ovals, and squares are elongated to rectangles. This distortion also impacts the visual integrity of fonts and other graphical assets. So, since I use an image as a background this causes problems... I'll have to go back to the drawing board I guess and rebuild the games table to be more dynamic. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bitmap and setPreviewCallBack
Hi all, I'm trying to generate a bitmap when camera is in preview mode (setpreviewCallback). When I try to convert the current view to bitmap,the bitmap is always null. Apparently it's a problem to convert YUV format to bitmap. I found a method to convert a byte[] YUV to int[]RGB (here: http://groups.google.com/group/android-developers/msg/d3b29d3ddc8abf9b) but I don't know how can I use to generate my bitmap using Bitmap.createBitmap. Somebody can help me ? Best and thanks by advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How Do You Disable Hero's Auto-Dimming Feature
Just wanted to poke this issue. Has anything changed in the 2.0 SDK that will resolve this? On Oct 5, 1:12 pm, bklik brenton.k...@gmail.com wrote: Thanks Dianne, I'm using a wake lock to prevent it from sleeping anddimmingafter the default 30 seconds, and I'm using the brightness API from Android 1.5 to adjust brightness. It looks like the HTC Hero is experiencing the problem you are talking about. Thanks for getting back to be so quickly. Brenton On Oct 5, 12:39 pm, Dianne Hackborn hack...@android.com wrote: You -should- be able to through the normal API, setting the brightness of the screen for the window. However, I know of at least one upcoming device where this won't work when auto-brightness is turned on, and Hero may have that same problem. For the device I know of, we need to do some work in the platform to better integrate with the manufacturer's auto-dimmingcode, so hopefully this will only be a temporary problem. On Mon, Oct 5, 2009 at 6:54 AM, bklik brenton.k...@gmail.com wrote: I'm getting a lot of requests by users of my flashlight application, that they want me to disable the HTC Hero's automaticdimmingfeature that works off the light sensor. How do you disable it through code? Or, isn't there a way? Brenton -- 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] Re: Android Market Anti-Piracy
It's incorrect to believe that hackers/crackers wouldn't care about removing the protection from a cheap products. The hackers/crackers don't care about the price of the product, they just want to get famous so they crack the most popular applications regardless of price. They don't think in economical terms. People who are buying products are however thinking in econimical terms, so they might be less interested in looking for a cracked version if the product is cheap, so having copy protection on a $1 product might be close to worthless. On 16 Nov, 23:04, Paul Turchenko paul.turche...@gmail.com wrote: I highly doubt that anyone would do that for $1 application. Effort not worth trying. On Nov 16, 9:55 pm, strazzere str...@gmail.com wrote: Since reversing an application is a rather menial task now, whats to prevent a user from taking your application - stripping the protection and re-releasing it? Not to mention that IMEI spoofing to an application can be done with a little bit of research. More importantly, with your approach - what happens when someone strips out the protection, throws it into a nice little program - then bombs all the IMEI numbers they want? Then you'll have pirates being blocked who well, never pirated your application. Seems like an easy way to quickly make your blacklist pretty inaccurate. -Tim Strazzere On Nov 16, 2:02 pm, Rachel Blackman ceruleanspa...@gmail.com wrote: On Nov 16, 2009, at 10:34 AM, nEx.Software wrote: Not to mention that just because someone might have pirated some app at some time, doesn't mean that they pirated your app. That's why it needs to be able to check against Google Checkout or whatever payment processor is used... Also not to mention how many people buy out-of-contract phones off of eBay to toy with new techy stuff. What if someone gets their phone's IMEI blacklisted in your database, goes and sells their phone, and someone innocent now picks up the phone and finds abruptly they can't use any of the apps linked into this antipiracy thing? (And lest you say that wouldn't happen, look at how many of the Xbox 360 consoles that have gotten locked out of Xbox Live abruptly ended up on eBay, while the folks who got locked out go get new consoles. After all, Xbox Live uses similar security methods, where the lockout applies to the hardware ID, not merely the account.) This isn't to say that antipiracy methods aren't desirable or useful. Just that if they bite /innocent/ users as well, you'll have a headache to deal with. Look at how many 'I can't see this app in the market!' threads we already have, and how much frustration there is just from developers over that. Imagine the users adding to that with 'I paid for this app off the store, but when I try to run it claims I pirated it!' In general, as a software developer, I tend to think that antipiracy methods that allow some pirates through are better than antipiracy methods that might flag innocent users as wrongdoers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem in setMargins() and textview
anybody know this.. I googled alot, but cant get the exact thing.. Thanks On Nov 17, 6:45 pm, Nithin nithin.war...@gmail.com wrote: Hi, I created a textview and also MarginlayoutParams. Then i put setMargin for the MarginLayoutParams and inserted that to textview using tv.setLayoutparams(), but its not working. The code is, MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.setMargins(100, 100, 0, 0); TextView tv = new TextView(this) tv.setLayoutParams(compParams); setContentView(tv); But the textView is still in top left corner, its not moving. Any suggestions please.. 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: Securing a paid app
What would happen if someone gets a new android phone? The app's authentication will fail. You should hash/key on the user's google-account, the same key that is used by Android Market (you can download paid apps as often as you want - once you paid for them - based on your google-account) On Nov 15, 2:32 am, android kracker markamorris2...@gmail.com wrote: Using the unique ID (hash) of the phone, register it with your web service on install. Then employ PKI to authenticate your app on each launch. On your web service sign a string containing the hash, timestamp, and a short expiration timestamp. Then have your app use your public key (in the app) to authenticate the string, verify the timestamps, and complete the launch if valid, otherwise abort the launch or offer the user to come clean and install. To prevent code modification--bypassing the check--don't include all of the code in the app. Keep some of it on the server and only send it to the app if the check takes place and passes the check. This way the app will not function correctly unless the check is performed and passes. Create a set of one-off methods (dummys that just pass through) that you can dynamically use with each app instance; since you are in control of the download (unlike Market publishers), you can dynamically build and package a unique app for each instance downloaded. This way no two apps use the same method and a hacker is up a creek as far a patching the code and replicating it to the community. When one instance is cracked, and it will be, then your server can cancel that hacked instance without effecting all of the other valid users. This will create a string disincentive, because no two app are the same, codewise ;-) Maybe we should start a service and offer Android publishers a secure distribution service, unlike the Market. There is no way to register (stamp an app with a phone id) downloads from the Market prior to installation. As it stands now publishers have no way to verify if their app was downloaded from the Market or copied and installed by other means. If there is I would like to know. I've asked but I never get replies regarding this advanced topic. Most publishers are still learning to just create apps, let alone seek out secure distribution and customer behavior--only Google enjoys this privilege, currently. Here's a method snippet for getting the unique ID and hashing it: String getPhoneID(){ MessageDigest digest; try { digest = MessageDigest.getInstance(SHA-1); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(this should never happen); } String srvcName = Context.TELEPHONY_SERVICE; TelephonyManager telephonyManager = (TelephonyManager)getSystemService(srvcName); /* requires READ_PHONE_STATE permission */ String deviceId = telephonyManager.getDeviceId(); if (TextUtils.isEmpty(deviceId)) { return ; } byte[] hashedDeviceId = digest.digest(deviceId.getBytes()); String id = new String(Base64.encodeBase64(hashedDeviceId), 0, 12); id = id.replaceAll(/, _); return id; } On Nov 14, 7:12 am, jax jackma...@gmail.com wrote: I am wondering how I might go about securing a paid app on Android. I am thinking of selling the application from my own website via PayPal, however, how will I stop people from sharing it with their friends etc. Does Android have any type of native support for this?- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: fwd: get the file path from a URI instance
When using openInputStream on the content-resolver, the returned input- stream is not as 'flexible' as a FileInputStream. For example, FileInputStreams can be retried if something goes wrong. The one returned by openInputStream can not. To get the fully qualified path-name to the image-file (jpg/png), query the Uri of the image and obtain the value of the DATA (_data) column. This value is a String, the fully-qualified path to the image file. Then you can create a FileInputStream from this file. On Nov 17, 4:08 am, MrChaz mrchazmob...@googlemail.com wrote: If I remember rightly, the gallery returns you a content uri so you'll want to do something like: getContentResolver ().openInputStream(uri) On Nov 17, 5:53 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Dianne, I am trying to do the following. I have an Image viewer where in the user picks an Image from within the gallery. The uri to that selected Image is available to me. Now, I want to use this URI information and send it as a file over a socket using FileInputStream. Is this a valid syntax to perform the above action? FileInputStream fis = new FileInputStream(uri.getPath()); // Here uri is the URI of the selected Image byte[] buffer = new byte[fis.available()]; fis.read(buffer); ObjectOutputStream oos = new ObjectOutputStream (socket.getOutputStream()); oos.writeObject(buffer); Please help me to move forward. Thanks, Abhi- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Securing a paid app
I've sure seen a lot of posts lately about piracy and protection, and really IMO I think the anxiety about this is a little too high at the moment. The fact is no matter what you do, you will have piracy. If you spend all of your time fretting about it you are never going to get anywhere. Also, as an experienced end user, I find it annoying when a program interrogates me for information of some sort, or if it locks itself to one device, mainly because of unforseen circumstances moving forward. There will always be a customer who ends up screwed because of the protection! In my opinion it's better to spend your time providing useful features to customers, and making an app that is fun and easy to use. If you focus on this you will still get enough customers to give a decent income off the app. Especially in the mobile market when really I don't think your average phone user knows how to get and install a cracked app anyway. Experienced users may, but you won't necessarily disable their ability to do so even with protection. Really all software protection does is hurt the valid customers more than anything. Now, can we perhaps take time to actually contribute useful ideas and/ or code to the forums for a change? All I see lately is complaining in one form or another. This has to be to most negative board I've ever read...it really bums me out to read anything here lately! It's killing my enthusiasm! C'mon devs lets get happy for a change!! -niko On Nov 17, 9:03 am, Streets Of Boston flyingdutc...@gmail.com wrote: What would happen if someone gets a new android phone? The app's authentication will fail. You should hash/key on the user's google-account, the same key that is used by Android Market (you can download paid apps as often as you want - once you paid for them - based on your google-account) On Nov 15, 2:32 am, android kracker markamorris2...@gmail.com wrote: Using the unique ID (hash) of the phone, register it with your web service on install. Then employ PKI to authenticate your app on each launch. On your web service sign a string containing the hash, timestamp, and a short expiration timestamp. Then have your app use your public key (in the app) to authenticate the string, verify the timestamps, and complete the launch if valid, otherwise abort the launch or offer the user to come clean and install. To prevent code modification--bypassing the check--don't include all of the code in the app. Keep some of it on the server and only send it to the app if the check takes place and passes the check. This way the app will not function correctly unless the check is performed and passes. Create a set of one-off methods (dummys that just pass through) that you can dynamically use with each app instance; since you are in control of the download (unlike Market publishers), you can dynamically build and package a unique app for each instance downloaded. This way no two apps use the same method and a hacker is up a creek as far a patching the code and replicating it to the community. When one instance is cracked, and it will be, then your server can cancel that hacked instance without effecting all of the other valid users. This will create a string disincentive, because no two app are the same, codewise ;-) Maybe we should start a service and offer Android publishers a secure distribution service, unlike the Market. There is no way to register (stamp an app with a phone id) downloads from the Market prior to installation. As it stands now publishers have no way to verify if their app was downloaded from the Market or copied and installed by other means. If there is I would like to know. I've asked but I never get replies regarding this advanced topic. Most publishers are still learning to just create apps, let alone seek out secure distribution and customer behavior--only Google enjoys this privilege, currently. Here's a method snippet for getting the unique ID and hashing it: String getPhoneID(){ MessageDigest digest; try { digest = MessageDigest.getInstance(SHA-1); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(this should never happen); } String srvcName = Context.TELEPHONY_SERVICE; TelephonyManager telephonyManager = (TelephonyManager)getSystemService(srvcName); /* requires READ_PHONE_STATE permission */ String deviceId = telephonyManager.getDeviceId(); if (TextUtils.isEmpty(deviceId)) { return ; } byte[] hashedDeviceId = digest.digest(deviceId.getBytes()); String id = new String(Base64.encodeBase64(hashedDeviceId), 0, 12); id = id.replaceAll(/, _); return id; } On Nov 14, 7:12 am, jax jackma...@gmail.com wrote: I am wondering how I might go about securing a paid app on
[android-developers] Re: How do I get informed whenever an application is started/created?
Well there's an intent sent, as I can see in ddms but how do I catch it? On 16 Nov., 15:15, Moritzz moritz...@googlemail.com wrote: Hey guys, I'd like to write sthg like a logger for my Android phone where I log whenever an application/activity is started respectively created. So it's not only about my own stuff but about all the stuff that gets started on the phone. Is there sthg like an intent flying around or any kind of stuff that I could catch? Cheers Moritz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I get informed whenever an application is started/created?
Well there's an intent sent, as I can see in ddms but how do I catch it? On 16 Nov., 15:15, Moritzz moritz...@googlemail.com wrote: Hey guys, I'd like to write sthg like a logger for my Android phone where I log whenever an application/activity is started respectively created. So it's not only about my own stuff but about all the stuff that gets started on the phone. Is there sthg like an intent flying around or any kind of stuff that I could catch? Cheers Moritz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Anti-Piracy
Thanks for good explanation! Greatly done. first - I do not see current version of anti-piracy implementation as a peniciline for piracy cure. It will prevent piracy in 60-70% of cases. I think this is more then sufficient. Also curreny solution is mostly oriented on Android Market (AMar), and will become unneeded when will be released something better then AMar. If I am correctly reading future (ha-ha) all phones manufactures will shortly run own app stores. Problem is inside chain: Android Market -- Google Checkout -- Vendor When application buyer did Transaction on Google Checkout (GC), Vendor recieve so little information from GC that can not build effective protection against piracy. On Nov 17, 4:40 am, Rachel Blackman ceruleanspa...@gmail.com wrote: Not to mention that just because someone might have pirated some app at some time, doesn't mean that they pirated your app. That's why it needs to be able to check against Google Checkout or whatever payment processor is used... Also not to mention how many people buy out-of-contract phones off of eBay to toy with new techy stuff. What if someone gets their phone's IMEI blacklisted in your database, goes and sells their phone, and someone innocent now picks up the phone and finds abruptly they can't use any of the apps linked into this antipiracy thing? (And lest you say that wouldn't happen, look at how many of the Xbox 360 consoles that have gotten locked out of Xbox Live abruptly ended up on eBay, while the folks who got locked out go get new consoles. After all, Xbox Live uses similar security methods, where the lockout applies to the hardware ID, not merely the account.) Tomorrow we will release free application that will help to check is your phone in black list or not. In case when phone was used by pirate before, you can run this application and check device is it clean or not. And after that decide buy it or not. Also database is public and you can in any time ask us about reviewing the piracy threat level for device. I've almost never seen someone post a phone on eBay with an IMEI. I know the G1 which I snagged off of eBay for testing certainly didn't have that in the listing! More to the point, not all users will be saavy enough to know that they should do this. Maybe they just got a refurbished phone from their provider as a replacement, for instance. Why are they going to necessarily know that they should ask the person at the T-Mobile store for the IMEI, and then a browser to check if that's blocked from running apps or not? Your solution basically assumes two particular data points: 1) that a blacklisted phone was blacklisted by the current user, or that 2) if 1 is not true, the user is tech-saavy enough to deal with finding out that the phone is blacklisted before accepting it (or to know how to get themselves cleared from the blacklist). I dispute these points as being generally true; a lot of the people who fall under #2 and aren't developers themselves are just going to 'why did this app say I was a pirate? I paid for it!' and then leave a 1-star review. For this method to be generally viable, I think there needs to be a /nice, detailed/ explanation of what has happened, and a simple button the user can push to request a review of their blacklisting. (Of course, the problem is then what do you do to stop the pirates from deciding to just endlessly request review of their blacklisting.) I'll admit that I used to be involved in the PC game programming community, where all SORTS of bizarre antipiracy measures have been tried, and many of which have backfired. So my immediate reaction to antipiracy stuff now is to look at the solution and go, 'okay, now, where's the place where this is going to go horribly wrong and lead to bad reviews or screaming users on the forums?' This isn't to say that antipiracy methods aren't desirable or useful. Just that if they bite /innocent/ users as well, you'll have a headache to deal with. Look at how many 'I can't see this app in the market!' threads we already have, and how much frustration there is just from developers over that. Imagine the users adding to that with 'I paid for this app off the store, but when I try to run it claims I pirated it!' Please read anti-piracy methods carefully on our web-site. By default all devices have - Green level. If reported 1-3 cases device level become - Yellow. 3-5 cases - Brown level; more then 5 cases - Red level. We recommend to stop servicing devices that reach Brown level limits. Right, but let's say a pirate gets their phone to Brown level. They go, pfft, okay, well, I'll just trade this one for a different refurb, and let the dealer hand this one out again. (Or, I'll sell it on eBay, etc.) My concern with the system isn't that someone was erroneously listed as a pirate, but that the phone was
[android-developers] Re: AutoCompleteTextView, passing the focus and Android 1.6
I found a workaround. You have to override the onKeyUp method in your controlling activity. Suppose you have two AutoCompleteTextViews, autoComplete1 and autoComplete2: public boolean onKeyUp (int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_ENTER) { if (autoComplete1.hasFocus()) { //sends focus to autoComplete2 (user pressed Next) autoComplete2.requestFocus(); return true; } else if (autoComplete2.hasFocus()) { //closes soft keyboard (user pressed Done) InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(autoComplete2.getWindowToken (), InputMethodManager.HIDE_NOT_ALWAYS); return true; } } return false; } On Nov 15, 12:57 am, Armond Avanes armond...@yahoo.com wrote: Hi Guys, Has anyone noticed that AutoCompleteTextView doesn't pass the focus to the next field when you tap on NEXT button on soft keyboard? And it's all happening on Android 1.6. v1.5 works flawlessly! Is there any known solution for this? Thank you, Armond -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Anti-Piracy
In my case was stolen application with price $1.29 - pirates copies reach 100-300 per day, sales become dead. So black list is the only way to protect my product for now. On Nov 17, 4:48 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote: It's incorrect to believe that hackers/crackers wouldn't care about removing the protection from a cheap products. The hackers/crackers don't care about the price of the product, they just want to get famous so they crack the most popular applications regardless of price. They don't think in economical terms. People who are buying products are however thinking in econimical terms, so they might be less interested in looking for a cracked version if the product is cheap, so having copy protection on a $1 product might be close to worthless. On 16 Nov, 23:04, Paul Turchenko paul.turche...@gmail.com wrote: I highly doubt that anyone would do that for $1 application. Effort not worth trying. On Nov 16, 9:55 pm, strazzere str...@gmail.com wrote: Since reversing an application is a rather menial task now, whats to prevent a user from taking your application - stripping the protection and re-releasing it? Not to mention that IMEI spoofing to an application can be done with a little bit of research. More importantly, with your approach - what happens when someone strips out the protection, throws it into a nice little program - then bombs all the IMEI numbers they want? Then you'll have pirates being blocked who well, never pirated your application. Seems like an easy way to quickly make your blacklist pretty inaccurate. -Tim Strazzere On Nov 16, 2:02 pm, Rachel Blackman ceruleanspa...@gmail.com wrote: On Nov 16, 2009, at 10:34 AM, nEx.Software wrote: Not to mention that just because someone might have pirated some app at some time, doesn't mean that they pirated your app. That's why it needs to be able to check against Google Checkout or whatever payment processor is used... Also not to mention how many people buy out-of-contract phones off of eBay to toy with new techy stuff. What if someone gets their phone's IMEI blacklisted in your database, goes and sells their phone, and someone innocent now picks up the phone and finds abruptly they can't use any of the apps linked into this antipiracy thing? (And lest you say that wouldn't happen, look at how many of the Xbox 360 consoles that have gotten locked out of Xbox Live abruptly ended up on eBay, while the folks who got locked out go get new consoles. After all, Xbox Live uses similar security methods, where the lockout applies to the hardware ID, not merely the account.) This isn't to say that antipiracy methods aren't desirable or useful. Just that if they bite /innocent/ users as well, you'll have a headache to deal with. Look at how many 'I can't see this app in the market!' threads we already have, and how much frustration there is just from developers over that. Imagine the users adding to that with 'I paid for this app off the store, but when I try to run it claims I pirated it!' In general, as a software developer, I tend to think that antipiracy methods that allow some pirates through are better than antipiracy methods that might flag innocent users as wrongdoers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Securing a paid app
Disagree. The problem with Android Market is that it doesn't even attempt to solve the piracy issue. I agree that 100% protection is impossible but devs right now have 0% protection. Don't believe me? Search for any popular Android app on google - you will find as many links to pirated apk's for that app as you will find genuine review / discussion / marketing links etc. So an average phone user will find cracked copies if that's the road they want to go down. Of course devs would rather be writing new features but with reports of 4 pirated copies to 1 legitimate copy turning out to be true, this does dampen one's enthusiasm to write updates just to give them out straight away to the freeloading pirates. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)
The typical method to obtain signal strength has been to extend the PhoneStateListener class and override the onSignalStrengthsChanged method. Anytime the signal strength changes the system will call this method passing in the new ASU. Since this method is now deprecated as of Android 2.0, how are we suppose to go about obtaining the signal strength? I tried using the method above on Droid (CDMA) and the ASU passed in is always -1. There are also no details in the SDK as to why this was removed or what we are supposed to do now. http://developer.android.com/reference/android/telephony/PhoneStateListener.html Best Regards, Ken -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding hidden extra data to a ListView item
I have downloaded and parsed an XML file. The file contained and id and name. I want the name to be visible in a ListView but the id to be hidden. I am having trouble getting this working and have been experimenting with ArrayAdapters and SimpleAdapters. Below is what I have so far. listsArray = new ArrayListHashMapString, String(); remoteListsAdapter = new SimpleAdapter( getApplicationContext(), listsArray, android.R.layout.simple_list_item_1, new String[] { id,name }, new int[] { android.R.id.text2 , android.R.id.text1} ); //Custom view to hold the id for the item in the setTag() method remoteListsAdapter.setViewBinder(new ViewBinder() { @Override public boolean setViewValue(View view, Object data, String textRepresentation) { //Maybe I can to somethig in here like setTag etc. return false; } }); I add items to the listsArray later on when parsing the XML file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Working with the new ContactContracts API
Jesus, is there any intent by Google to document Contacts usage??? This is a basic subject that has become very complicated and should be documented in the Developers's Guide on top of the obtuse API docs... On Nov 10, 3:36 pm, Jonathan Herriott herri...@gmail.com wrote: Hi Dmitri, So, if I want to sync with my own backend which supports a different protocol, my assumption is that I need to somehow register a Sync Adapter, in which case, I'll have my own SyncAdapterType. I can't seem to find documentation on this, and the only thing I can find is a class called AbstractThreadedSyncAdapter. I'm assuming there must be a service I must implement involved somewhere, but I can't seem to find anything. Would you be able to point me in the right direction? Thanks, Jonathan Herriott On Nov 2, 5:24 pm, Dmitri Plotnikov dplotni...@google.com wrote: You can always delegate contact creation to the Contacts app using the ContactsContract.Intents.UI.Insert intent with extras. This will show the edit UI. If you want to explicitly create the contact by yourself, that's now a bit tricky because Android 2.0 support multiple accounts. First of all, you will need to figure out which account you want to create the contact in. Get a list of all available accounts from AccountManager: AccountManager am = AccountManager.get(getContext()); Account[] accounts = am.getAccounts(); Also, get a list of all sync adapters and find the ones that support contacts: SyncAdapterType[] syncs = ContentResolver.getContentService().getSyncAdapterTypes(); for (SyncAdapterType sync : syncs) { if (ContactsContract.AUTHORITY.equals(sync.authority) sync.supportsUploading()) { contactAccountTypes.add(sync.accountType); } } Now you have a list of all accounts and a list of account types that support contacts. So here's your account list: for (Account acct: accounts) { if (contactAccountTypes.contains(acct.type)) { contactAccounts.add(account); } } If the contactAccounts list contains nothing - use accountType = null and accountName = null If it contains exactly one account, use it. If it contains multiple accounts, build a dialog and ask the user which account to use. From here on it gets easier. Let's start with a more traditional method. Insert a raw contact first: ContentValues values = new ContentValues(); values.put(RawContacts.ACCOUNT_TYPE, accountType); values.put(RawContacts.ACCOUNT_NAME, accountName); Uri rawContactUri = getContentResolver().insert(RawContacts.CONTENT_URI, values); long rawContactId = ContentUris.parseId(rawContactUri); Then insert the name: values.clear(); values.put(Data.RAW_CONTACT_ID, rawContactId); values.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); values.put(StructuredName.DISPLAY_NAME, Some Body); getContentResolver().insert(Data.CONTENT_URI, values); You are done. Now here's a much better way to do the same. Use the new ContentProviderOperation API, which will ensure that the raw contact and its name are inserted at the same time. ArrayListContentProviderOperation ops = Lists.newArrayList(); ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) .withValue(RawContacts.ACCOUNT_TYPE, accountType) .withValue(RawContacts.ACCOUNT_NAME, accountName) .build()); ops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI) .withValueBackReference(Data.RAW_CONTACT_ID, 0) .withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE) .withValue(StructuredName.DISPLAY_NAME, Some Body) .build()); getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); I hope this helps. - Dmitri On Mon, Nov 2, 2009 at 4:23 PM, jak. koda...@gmail.com wrote: Hello, I'm currently working on porting our Android app to 2.0 but I'm having a rather hard time figuring out what is required to interact with the new Contacts API. I'm using reflection to decide whether the new API is available, if it is I attempt to use the new features, otherwise I fall back to our old methods. However, I'm having a hard time finding analogs to the old functionality in the new API. For example in the past I was adding contacts to the database from an external text source by creating a ContentValues object, filling it with information on the contact and then adding it with a call to: Contacts.People.createPersonInMyContactsGroup(...); i.e.: ... ContentValues personValues = new ContentValues(); personValues.put(Contacts.People.NAME, Some Body); Uri personUri = Contacts.People.createPersonInMyContactsGroup (curContext().getContentResolver(), personValues); ... How can I achieve the same goal in the new API? I appreciate all the hard work going into improving the APIs but I must admit I'm a bit frustrated by the lack
[android-developers] Re: Emulator not receiving UDP Packets
Gopish, On the host machine that runs the emulator, open a terminal window and telnet to the emulator instance: telnet localhost 5554 This will take you into the ADB emulator console. Then setup packet forwarding on the port you are sending udp packets to: redir add udp:host machine port:emulator listen port example: redir add udp:: This will then have the emulator listen on your local machine's port for UDP packets, and forward those to the emulator's ETH adapter on port (which can be changed to whatever you need). I havent tried this with other external machines, but I struggled getting this to work for a while. Also, any servers listening for packets inside android (2.0) should be listening on IP 10.0.2.15 (android emulator's own Eth adapter), and in this case on port . In the case where you want to broadcast UDP packets out of the android emulator to the local machine, you wont need to setup a port redir, but you will want to send them out to IP address 10.0.2.2 as this is the loopback address on the host computer, and you can send them directly to the port it is listening on. It takes some getting used to and isnt terribly straightforward, but I eventually got it working. Hopefully this helps. Josh Patterson http://jpatterson.floe.tv On Nov 17, 9:07 am, Gopi$h gopi...@gmail.com wrote: From a remote machine we are sending some UDP packets to our Android emulator. We are able to see the UDP packets reaching the host machine, but not able to reach the emulator, In Wireshark we are getting Destination port unreachable The port we are using is:49152 and static ip at both ends Is this port supported by android emulator? What is the solution to get UDP packets to be able to reach till the emulator? Kindly give solution for the same, Thanks in advance, -Gopish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Extremely long DNS lookup (and failure) on T-Mobile network
That's not good! Still hoping it's just something we're doing wrong. I tried using the connectivity manager. It reports that I have an available network etc. I tried running the route tests: ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netActive = cm.getActiveNetworkInfo(); if (netActive != null) { int hostGoogle = ipToInt(24.28.193.9); boolean tryGoogle = cm.requestRouteToHost(netActive.getType(), hostGoogle); } is this the right way to test for connectivity? If I feed that requestRouteToHost() function an invalid IP address, it still returns true. Any ideas? Thanks On Nov 17, 1:30 am, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: I have no idea, but I've also noticed the Browser taking an inordinately long time to fetch pages, the Android Market often failing, and other networking issues. I wonder why this doesn't seem to be more well known? Scott SoftwareForMe.com Makers of PhoneMyPC On Mon, Nov 16, 2009 at 3:12 PM, Mark Wyszomierski mar...@gmail.com wrote: I don't understand this - how are people getting around this? Restarting the app probably isn't too pleasant for the user! Thanks On Nov 15, 2:27 pm, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: I have seen this too, but what's worse, I've found socket connections taking to long to connect, even when not using DNS. For example, our software can connect to a PC via LAN using an IP address. Sometimes it will take 5 seconds, sometimes it will time out. In either case, after such a failure, if I close and re-run the app, it connects immediately. This problem started around the time 1.6 was released. SoftwareForMe.com Makers of PhoneMyPC On Sun, Nov 15, 2009 at 10:33 AM, Mark Wyszomierski mar...@gmail.com wrote: How are you all getting around this issue? I am running into it on some phones given out as demos (G1s running 1.5). About 50% of the time, my network requests will just hang for about two minutes, then throw: java.net.UnknownHostException: Host is unresolved: myapi.me.com:80 this looks embarrassing since the users can open pages through the browser ok - what is going on? Thanks On Oct 26, 10:05 am, purvi purvi.n...@gmail.com wrote: Hello, I am also facing the same problem. I am using a handler to fetch the data coming from the network request. I am thinking to throw an alert message to the user from my app indicating No Response from Network or Network down or somthing like that so that the user donot see any error and the user himself restart the app or take corresponding steps instead of showing user an error. But I system gets to know that there is no network after all my queries are manipulated and so I dont know where exactly can I handle this error. I am able to made it print in my LogCat error[URL not found] so it doesnot give any Force Close error but I want the user to be notified about this. Can you please comment on this and incase if you can help me out with this? Thanks a lot. Regards, Purvi On Oct 15, 2:26 am, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: More info: I found out that the web site returns multiple IP addresses on the DNS lookup (see the Resolving i2.sinaimg.cn line below). This appears to be for load balancing purposes. Could this be the reason that got Android confused? $ wgethttp://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg --23:20:59-- http://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg = `20091014235428.jpg.1' Resolving i2.sinaimg.cn... 61.172.207.61, 61.172.207.62, 61.172.207.64, ... Connecting to i2.sinaimg.cn|61.172.207.61|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 93,820 (92K) [image/jpeg] On Oct 14, 9:53 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: My problem may not be the same. I got this only on actual G1 device, not on emulator. Also, if G1 is connect to my home WiFi network (comcast), the DNS for i0.sinaimg.cn is resolved without any problem. However, if I disconnect Wifi and use TMO USA 3G network, the DNS never resolves. On Oct 14, 9:29 pm, for android forandr...@gmail.com wrote: http://code.google.com/p/android/issues/detail?id=2764 On Thu, Oct 15, 2009 at 4:40 AM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hello, This happens only when my G1 phone is on T-Mobile network: I found that when I try to go to the browser, and type the address http://i0.sinaimg.cn/ The browser tries to load the page, but no progress is shown for more
[android-developers] When a phone is factory reset, market loses track of purchased apps
Hello, I've had several of my users email me to tell me they had to do a factory reset on their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone is reset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Emulator not receiving UDP Packets
the emulator only listens on 127.0.0.1 on the machine it runs on. This is intentional. If you're sending the UDP packets to your machine's real IP address (e.g. 192.168.1.1) then the emulator will not see them. you should really use something like ssh port forwarding if you want to do that kind of thing. On Tue, Nov 17, 2009 at 6:07 AM, Gopi$h gopi...@gmail.com wrote: From a remote machine we are sending some UDP packets to our Android emulator. We are able to see the UDP packets reaching the host machine, but not able to reach the emulator, In Wireshark we are getting Destination port unreachable The port we are using is:49152 and static ip at both ends Is this port supported by android emulator? What is the solution to get UDP packets to be able to reach till the emulator? Kindly give solution for the same, Thanks in advance, -Gopish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Emulator not receiving UDP Packets
On Tue, Nov 17, 2009 at 8:26 AM, David Turner di...@android.com wrote: the emulator only listens on 127.0.0.1 on the machine it runs on. This is intentional. to make it clear, it only listens on 127.0.0.1 after you setup any redirection (either though adb or the emulator's console) If you're sending the UDP packets to your machine's real IP address (e.g. 192.168.1.1) then the emulator will not see them. you should really use something like ssh port forwarding if you want to do that kind of thing. On Tue, Nov 17, 2009 at 6:07 AM, Gopi$h gopi...@gmail.com wrote: From a remote machine we are sending some UDP packets to our Android emulator. We are able to see the UDP packets reaching the host machine, but not able to reach the emulator, In Wireshark we are getting Destination port unreachable The port we are using is:49152 and static ip at both ends Is this port supported by android emulator? What is the solution to get UDP packets to be able to reach till the emulator? Kindly give solution for the same, Thanks in advance, -Gopish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When a phone is factory reset, market loses track of purchased apps
Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factory reset on their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone is reset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When a phone is factory reset, market loses track of purchased apps
can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? This is exactly how the system works today. Which, of course, is why I asked if they are using the same email address... On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factory reset on their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone is reset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't run or debug my app on Eclipse
this is happening for me as well after upgrading to the API 2.0 !MESSAGE An internal error occurred during: Launching MyPodTest11. !STACK 0 java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch (Unknown Source) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:764) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:614) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch (DebugUIPlugin.java:865) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run (DebugUIPlugin.java:1068) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) I have deleted my avds, and created a new one and unplugged my phone and still the error occurs. So i dont think its device dependent. Anyone have any ideas? regards rob. http://www.my-pod.org On Nov 14, 9:33 pm, yuvalkesten yuvalkes...@gmail.com wrote: Hi - I think it's somehow connected to the build.props file of your android device since my problems started after I changed this file so I will be able to run the droid maps app on my google ion and the everything returned to normal after I reflashed the cyanogen 4.2.4 image (Which probably fixed my build.props). Hope I have helped... On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote: Happens to me as well. Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are having this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When a phone is factory reset, market loses track of purchased apps
I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factory reset on their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone is reset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 backup my application signing key?
I followed the instructions to create an application signing key and have signed my application and submitted it to the Android Market. Now I am trying to backup my key to make sure it doesn't get lost, but I can't figure out how to do this on Windows Vista. When I look in the directory where I ran keytool to create the keystore I can't find the keystore file. When I use eclipse to sign the application and browse to that directory it shows me that the file my_company_name.keystore is there and lets me select it as the keystore for signing my application. But when I look in the directory using windows explorer or a command prompt the file is not there (I do have it set to show me hidden and system files). I also tried looking in places like C:\Users\my_user_name and C:\Users\my_user_name \Documents but could not see the keystore anywhere. I ran the keytool command with keytool -list -keystore my_company_name.keystore and is does list the keystore and shows that it contains the alias my_app_name. However I tried running keytool -keyclone -keystore my_company_name.keystore -alias my_app_name -destkeystore my_usb_thumb_drive \my_company_name.keystore -dest my_app_name -keypass the_alias_password and keytool tells me that alias my_app_name does not exist. I tried different combinations for several hours but was unable to figure out how to get it to make a backup of my signing keystore on my usb thumb drive. I would greatly appreciate any help in pointing me in the right direction. After reading the warnings about not losing your signing key, I feel that making a backup is critical, but I can't figure out how to find the keystore or get keytool to make the backup. I searched but have not been able to find any instructions that work to do this. It seems like an issue that every developer needs to be concerned about. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When a phone is factory reset, market loses track of purchased apps
Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factory reset on their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone is reset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to build a project in Android sources seperately?
checkout the android source tree, build from scratch once you want to build it $cd /where/is/the/tree $source build/envsetup.sh $export TOP=`pwd` $cd external/zlib $mm -ju1ian On Tue, Nov 17, 2009 at 6:01 AM, 3pei 333...@gmail.com wrote: for example, when i use make external/zlib/android.mk it tells me 'Nothing to be done for external/zlib/android.mk' what should 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julian Chu. a.k.a. WalkingIce -- 會走路的冰塊 http://walkingice.twbbs.org 只放拖鞋的鞋櫃 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Viewing logs on native android
I've used the Logcat.apk here to view logcat on an actual device before: http://code.google.com/p/android-random/downloads/list This one sends emails: http://code.google.com/p/android-log-collector/ On Nov 16, 11:12 pm, swapnil kamble swap.kam...@gmail.com wrote: Hi Alok, Thanks for your reply. My Android device is not physically connected to PC. I am using netpc. My PC and android netpc can only communicate via network. Is there any remote log viewing mechanism ? Or is there any log viewer available on android itself similar to logcat of eclipse ? Thanks, On Mon, Nov 16, 2009 at 8:09 PM, Alok Kulkarni kulsu...@gmail.com wrote: You can click on the device icon on the left top (AVD) and from there you can select the device. Thanks, Alok. On Mon, Nov 16, 2009 at 8:04 PM, Alok Kulkarni kulsu...@gmail.com wrote: Yes you can, once you connect your device to the PC , and from eclipse select the device as the actual one , you can see the logs of actual device on the Logcat, Thanks, Alok. On Mon, Nov 16, 2009 at 7:58 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi, Sorry for late reply. I missed your reply. How can I specify natively running android in eclipse ? I think eclipse will only connect to emulators. Can I see the logs in android itself ? On Wed, Nov 4, 2009 at 10:53 AM, Blue Zheng blue.zh...@gmail.comwrote: Oh, sure, you still can use logcat to logging for native android device. Just choose your device in DDMS for logging. if you want to logging just for App, the NDK is not necessary. 2009/11/4 swapnil kamble swap.kam...@gmail.com Thanks for your reply. Then I will have to always use NDK just for logging. Can't I do logging purely in Android App just like for Emulator using logcat ? On Wed, Nov 4, 2009 at 10:11 AM, Blue Zheng blue.zh...@gmail.comwrote: You can use the header file android/log.h in NDK, and link to /system/lib/liblog.so. And you can find the details in the document of NDK ($NDK_ROOT)/docs/STABLE-APIS.TXT). 2009/11/4 swapnil kamble swap.kam...@gmail.com Hi All, As we see emulator's logs in logcat of eclipse. What is similar on native android to view these logs ? Thanks in advance -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare || -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
Re: [android-developers] Re: App Not showing up on Verizon DROID Phones
Thanks Jose. Are you using Eris HTC phone with verizon ? Looks like it is not showing up on these phones (at-least best of my knowing, it's not see on my friends phone in Houston). Kumar_/|\_ www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... On Mon, Nov 16, 2009 at 11:31 AM, JoseM jose.a.marti...@gmail.com wrote: I am able to see the app on the Market when I searched for Money Now. I am in the NYC area. On Nov 15, 12:19 am, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: Did NOT see my app (Money Now Preview) on the VERIZON new DROID phone. I personally searched for my app on the Market app - Weird did not see the app on my friends phone. Weird !! Looks like there could some settings on the phone or need to change any thing on my app .. not clue. Any suggestions/recommendations !? Kumar_/|\_www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... On Thu, Nov 12, 2009 at 10:40 PM, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: Thank You very much Scott. Kumar_/|\_ www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... On Thu, Nov 12, 2009 at 10:32 PM, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: Your Manifest looks fine. I have a Droid. I searched the market and found MoneyNow - Preview, by SAISK LLC. If that's you, you're AOK. Scott SoftwareForMe.com On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: BTW, additionally I have ON ed the copy protection in the Android Market.* **On (Helps prevent copying of this application from the device. Increases the amount of memory on the phone required to install the application.)* Kumar_/|\_ www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: Thanks Dianne Hackborn. This is my entire manifest file, I have just renamed the classes for this email. manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.saisk.moneynow android:versionCode=2 android:versionName=Preview 1.0 uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / application android:name=myApplication android:icon=@drawable/mn android:label=@string/app_name android:windowNoTitle=true activity android:name=.MyActivity android:configChanges=keyboardHidden|orientation android:theme=@android:style/Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest Kumar_/|\_ www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn hack...@android.comwrote: What else is in your manifest? On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami kumaravel.kandas...@gmail.com wrote: I just got a call from my friend saying that she is not able to see our App: Money Now on her Droid phone. I have declared in manifest.xml as uses-sdk android:minSdkVersion=3 / Is there anything that I am missing to have my app be displayed on the DROID Phones or it is an user error. Appreciate your response. Thanks, Kumar_/|\_ www.saisk.com ku...@saisk.com making a profound difference with knowledge and creativity... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
[android-developers] Re: Pass Data Between Activities: HashMap of WeakReferences to Objects
The description makes it sound like you wouldn't pass the map at all. You just pass the key. The key is then used to retrieve the object from the map. So the map would have to be somewhere both activities could access. Like an application subclass or a static. On Nov 16, 9:21 pm, droid_does bjkr...@gmail.com wrote: I am trying to pass a custom object to one activity from another. There is a guide that I am using that can be found here: http://developer.android.com/guide/appendix/faq/framework.html What I would like to use is the HashMap of WeakReferences, but the description isn't clear, at least to me. From above URL: A HashMap of WeakReferences to Objects You can also use a HashMap of WeakReferences to Objects with Long keys. When an activity wants to pass an object to another activity, it simply puts the object in the map and sends the key (which is a unique Long based on a counter or time stamp) to the recipient activity via intent extras. The recipient activity retrieves the object using this key. My poor attempt: MyObject object = new MyObject(); HashMap map = new HashMap(); WeakReference reference = new WeakReference(object); map.put(reference.hashCode(), reference); Intent i = new Intent(myIntent); i.putExtra(map); I know this is probably way off but I can't figure out how this is intended to be implemented based on the description. Are the keys hashcodes, user defined, or what? It sounds like all that is passed is a HashMap containing the key values but how is the object retrieved with just the key? I couldn't find any code examples or useful documentation on this method of passing objects so any help would be greatly appreciated. Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Screen Sizes with 1.5, 1.6 and 2.0
Good to know. Thanks! Evan On Fri, Nov 13, 2009 at 2:15 PM, MrChaz mrchazmob...@googlemail.com wrote: It seems like the links in the reference are broken 1.6 lets you specify which screen sizes you support and what to do in each case, so you'll be ok compiling against that. I'd still download the 2.0 and create an emulator image running that at the droid screen- resolution. By default android will just upscale your application, I think. The manifest attributes are here: http://developer.android.com/guide/topics/manifest/supports-screens-element.html On Nov 13, 2:49 pm, Evan Ruff evan.r...@gmail.com wrote: Hey guys, I've got a quick question about screen size support. Currently, I've got an application that is rockin' along just fine on 1.5 and 1.6. Today the client called and says they want to run on Droid. While I've downloaded the 2.0 SDK, I'm a little wary of compiling against it. Will it break 1.5 and 1.6 compatilbility? How will the medium phones (G1, MyTouch) know to use those layouts? I imagine this is a pretty rudimentary question so if it's in a doc somewhere, can someone point me in the right direction? Thanks! E -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: fwd: get the file path from a URI instance
Thank you so much guys. I have it working as below... Cursor cursor = getContentResolver().query(uri, null, null, null, null); cursor.moveToFirst(); int idx = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA); String absoluteFilePath = cursor.getString(idx); FileInputStream fis = new FileInputStream(absoluteFilePath); ... and so on Regards, Abhi On Nov 17, 10:06 am, Streets Of Boston flyingdutc...@gmail.com wrote: When using openInputStream on the content-resolver, the returned input- stream is not as 'flexible' as a FileInputStream. For example, FileInputStreams can be retried if something goes wrong. The one returned by openInputStream can not. To get the fully qualified path-name to the image-file (jpg/png), query the Uri of the image and obtain the value of the DATA (_data) column. This value is a String, the fully-qualified path to the image file. Then you can create a FileInputStream from this file. On Nov 17, 4:08 am, MrChaz mrchazmob...@googlemail.com wrote: If I remember rightly, the gallery returns you a content uri so you'll want to do something like: getContentResolver ().openInputStream(uri) On Nov 17, 5:53 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Dianne, I am trying to do the following. I have an Image viewer where in the user picks an Image from within the gallery. The uri to that selected Image is available to me. Now, I want to use this URI information and send it as a file over a socket using FileInputStream. Is this a valid syntax to perform the above action? FileInputStream fis = new FileInputStream(uri.getPath()); // Here uri is the URI of the selected Image byte[] buffer = new byte[fis.available()]; fis.read(buffer); ObjectOutputStream oos = new ObjectOutputStream (socket.getOutputStream()); oos.writeObject(buffer); Please help me to move forward. Thanks, Abhi- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.0 (eclair) source
[My Problem] repo init -u git://android.git.kernel.org/platform/manifest.git ... Getting manifest ... from git://android.git.kernel.org/platform/manifest.git ssh: connect to host partner.source.android.com port 22: Connection timed out fatal: The remote end hung up unexpectedly fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git [Fix] rm -rf .repo mv ~/.gitconfig ~/.gitconfig.bak repo init -u git://android.git.kernel.org/platform/manifest.git Hope this helps ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: User Ratings in Apps
Having just published my app I find it very irritating that I can't see what type of phone someone has when they give me 1 star and say Force closes after I enter my name I know I'm just adding my name to the dull roar of developers that find the market very inadequate. On Tue, Nov 17, 2009 at 3:44 AM, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: Users go to Downloads section of market, then rate. They can give a star rating and optionally a comment. Users have a tendency to only leave comments if they are very pleased or very displeased with apps! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: Securing a paid app
If your looking at it from this perspective, then maybe you shouldn't continue developing? Unless your developing a program that is SaaS where data is kept primarily on a server, your /not/ going to keep your program from being pirated. I don't agree with people who are pirating apps, but I also don't believe people who have pirate most of their application would be buying them if there was some magical protection available. The applications I had published have been pirated countless times, I actually find no reviews for my applications, just hotlinks to rapidshare and mediafire. Though that hasn't stopped me from getting my money worth from the applications. Honestly with the stuff your posting and the amount of protection your wanting - I feel you need to just not release your applications. Have people come directly to you, purchase a tailor-made applications with a million identifiers for who bought it and give it to them. Then when it leaks out you know who to blame. Or, proceed like ever other developer so far, release it, make money, lose money and figure out there are always kids who won't pay a dime for things... Cause it's cool to do it. Besides, the tougher you make your protection (no matter how worthless or cheap the app is) the more interesting your making it for a reverse engineering to pull it apart. On Nov 17, 10:35 am, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: Disagree. The problem with Android Market is that it doesn't even attempt to solve the piracy issue. I agree that 100% protection is impossible but devs right now have 0% protection. Don't believe me? Search for any popular Android app on google - you will find as many links to pirated apk's for that app as you will find genuine review / discussion / marketing links etc. So an average phone user will find cracked copies if that's the road they want to go down. Of course devs would rather be writing new features but with reports of 4 pirated copies to 1 legitimate copy turning out to be true, this does dampen one's enthusiasm to write updates just to give them out straight away to the freeloading pirates. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Toast doesn't leave
I've had a user say that one of my toasts never left the screen even after exiting the app. Has anyone else had a stuck toast? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: Displaying Text such as score in an OpenGL game
It's possible to have regular view on top of the GLSurfaceView and use TextView for text. On 17 ноя, 17:11, Kevin S. dada...@gmail.com wrote: It's not that bad, you can just copy the LabelMaker and NumericSprite classes and then call them in the same way that example does in the render. That's good news, I'll go down that path then. Thanks for the reply! -Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: User Ratings in Apps
Like I said above people are more likely to give 1 *s or 5 *s. If they leave 1 * they are not looking for help, if they were they would have mailed you first. They are just venting their frustration and moving on to the next app. Another popular rating is 4 * - e.g. 'will give 5* once such and such feature is added' -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Anti-Piracy
On Nov 17, 10:32 am, AlexK kucherenko.a...@gmail.com wrote: In my case was stolen application with price $1.29 - pirates copies reach 100-300 per day, sales become dead. So black list is the only way to protect my product for now. So you have had 100-300 new installs of pirated apps a day? Or consistently have 100-300 applications that are pirated run each day? Your also assuming that if you had a perfect protection scheme, that all these people would buy your product. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When a phone is factory reset, market loses track of purchased apps
Well, here's something that may or may not be telling: I emailed one of the users that had this problem after a factory reset, and I got a notification back saying the email couldn't be delivered. That lends some weight to the theory that they used a different account the second time around. - Mike On Nov 17, 9:40 am, nEx.Software email.nex.softw...@gmail.com wrote: Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factoryreseton their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone isreset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When a phone is factory reset, market loses track of purchased apps
Well, here's something that may or may not be telling: I emailed one of the users that had this problem after a factory reset, and I got a notification back saying the email couldn't be delivered. That lends some weight to the theory that they used a different account the second time around. - Mike On Nov 17, 9:40 am, nEx.Software email.nex.softw...@gmail.com wrote: Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factoryreseton their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone isreset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Toast doesn't leave
I had a similar issue because of using Toast.LENGTH_LONG. Try reducing the duration. If you use the LENGTH_LONG and then the user switches to home screen immediately after the toast came up, I guess it will continue to be on the screen until it times out. Maybe you can test it with Toast.LENGTH_SHORT and see if it solves your problem. On Tue, Nov 17, 2009 at 11:09 AM, Wayne Wenthin wa...@fuligin.com wrote: I've had a user say that one of my toasts never left the screen even after exiting the app. Has anyone else had a stuck toast? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. ... Albert Einstein. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Aniruddh Bajirao www.ryze.com/Aniruddh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DefaultUncaughtExceptionHandler - earliest opportunity to set?
When is a safe time to set the default UncaughtExceptionHandler? In the implementation I assume its important to call through to whatever the system default is? Therefore, I assume its important to wait until the system default has been set... Then I can do something like: final UncaughtExceptionHandler ueh = Thread.getDefaultUncaughtExceptionHandler(); Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler () { @Override public void uncaughtException(Thread thread, Throwable ex) { // ... // MY STUFF GOES HERE (for example, grab the Build.MODEL and Build.ID and then report it) // ... if (ueh != null) { ueh.uncaughtException(thread, ex); } } }); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Securing a paid app
No anti-piracy system is perfect. Thats why I said 100% protection was unachievable. What I am saying is we need some way to get over the hump of 0% protection. Even if we just had a shared system where we had the level of protection of apps, e.g. MyBackup and CoPilot currently have, then at least we are moving in the right direction. There's a lot of posts on this subject because its something that bothers a lot of application developers. If you're happy to find your app every day on rapidshare, thats your decision, but if a big enough group of us want to do pool our resources to reduce piracy, then thats our decision too. Current estimated ratio is 4 pirated copies to 1 purchased copy. If we could reduce this to even 3:1 or 2:1, that would be a very worthwhile investment of everyone's time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't run or debug my app on Eclipse
the problem was fixed by changing the usb device config for the phone http://groups.google.com/group/android-developers/browse_thread/thread/3515cd8721016520/6077e89d066a4bf7?lnk=raot regards rob On Nov 17, 4:37 pm, siliconeagle rrmu...@gmail.com wrote: this is happening for me as well after upgrading to the API 2.0 !MESSAGE An internal error occurred during: Launching MyPodTest11. !STACK 0 java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch (Unknown Source) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:764) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:614) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch (DebugUIPlugin.java:865) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run (DebugUIPlugin.java:1068) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) I have deleted my avds, and created a new one and unplugged my phone and still the error occurs. So i dont think its device dependent. Anyone have any ideas? regards rob.http://www.my-pod.org On Nov 14, 9:33 pm, yuvalkesten yuvalkes...@gmail.com wrote: Hi - I think it's somehow connected to the build.props file of your android device since my problems started after I changed this file so I will be able to run the droid maps app on my google ion and the everything returned to normal after I reflashed the cyanogen 4.2.4 image (Which probably fixed my build.props). Hope I have helped... On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote: Happens to me as well. Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are having this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't run or debug my app on Eclipse
The problem was fixed by changing the usb device config after a ubuntu upgrade http://groups.google.com/group/android-developers/browse_thread/thread/3515cd8721016520/6077e89d066a4bf7?lnk=raot On Nov 17, 4:37 pm, siliconeagle rrmu...@gmail.com wrote: this is happening for me as well after upgrading to the API 2.0 !MESSAGE An internal error occurred during: Launching MyPodTest11. !STACK 0 java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch (Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch (Unknown Source) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:764) at org.eclipse.debug.internal.core.LaunchConfiguration.launch (LaunchConfiguration.java:614) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch (DebugUIPlugin.java:865) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run (DebugUIPlugin.java:1068) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) I have deleted my avds, and created a new one and unplugged my phone and still the error occurs. So i dont think its device dependent. Anyone have any ideas? regards rob.http://www.my-pod.org On Nov 14, 9:33 pm, yuvalkesten yuvalkes...@gmail.com wrote: Hi - I think it's somehow connected to the build.props file of your android device since my problems started after I changed this file so I will be able to run the droid maps app on my google ion and the everything returned to normal after I reflashed the cyanogen 4.2.4 image (Which probably fixed my build.props). Hope I have helped... On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote: Happens to me as well. Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are having this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When a phone is factory reset, market loses track of purchased apps
Did you try to email the user's real email or the google checkout provided email (they are temporary I believe)? You are actually getting the second purchase from these people I assume? On Nov 17, 10:15 am, Mike michaeldouglaskra...@gmail.com wrote: Well, here's something that may or may not be telling: I emailed one of the users that had this problem after a factory reset, and I got a notification back saying the email couldn't be delivered. That lends some weight to the theory that they used a different account the second time around. - Mike On Nov 17, 9:40 am, nEx.Software email.nex.softw...@gmail.com wrote: Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factoryreseton their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone isreset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When a phone is factory reset, market loses track of purchased apps
nEx is right. Your users should not be losing any access to the applications they have purchased as long as they use the same account on the phone that they purchase your application with. The application stream is actually what they have purchased the rights too. This stream includes all your updates, though it is liked to their email account. On Nov 17, 12:15 pm, Mike michaeldouglaskra...@gmail.com wrote: Well, here's something that may or may not be telling: I emailed one of the users that had this problem after a factory reset, and I got a notification back saying the email couldn't be delivered. That lends some weight to the theory that they used a different account the second time around. - Mike On Nov 17, 9:40 am, nEx.Software email.nex.softw...@gmail.com wrote: Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factoryreseton their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone isreset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Toast doesn't leave
I'll switch them to short and see if that works. This guy was claiming that it didn't leave until he rebooted the phone. That sounds like a bad deal to me. I rely on the toasts to give information but I may just switch it out and show it in a custom area. I've got great plans but getting there is going to be another 90% of the project. On Tue, Nov 17, 2009 at 9:16 AM, Aniruddh Bajirao abaji...@gmail.comwrote: I had a similar issue because of using Toast.LENGTH_LONG. Try reducing the duration. If you use the LENGTH_LONG and then the user switches to home screen immediately after the toast came up, I guess it will continue to be on the screen until it times out. Maybe you can test it with Toast.LENGTH_SHORT and see if it solves your problem. On Tue, Nov 17, 2009 at 11:09 AM, Wayne Wenthin wa...@fuligin.com wrote: I've had a user say that one of my toasts never left the screen even after exiting the app. Has anyone else had a stuck toast? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. ... Albert Einstein. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Aniruddh Bajirao www.ryze.com/Aniruddh -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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: When a phone is factory reset, market loses track of purchased apps
I emailed their real email address, not the google checkout email. Thanks for the responses. It makes me feel a little better that this may be a case of using different accounts. I went and looked, and out of the hundreds of people that have written me for support, only 3 had issues with a factory reset. As I just found out, one of the three no longer uses the email address he used to write me. On Nov 17, 10:25 am, nEx.Software email.nex.softw...@gmail.com wrote: Did you try to email the user's real email or the google checkout provided email (they are temporary I believe)? You are actually getting the second purchase from these people I assume? On Nov 17, 10:15 am, Mike michaeldouglaskra...@gmail.com wrote: Well, here's something that may or may not be telling: I emailed one of the users that had this problem after a factory reset, and I got a notification back saying the email couldn't be delivered. That lends some weight to the theory that they used a different account the second time around. - Mike On Nov 17, 9:40 am, nEx.Software email.nex.softw...@gmail.com wrote: Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factoryreseton their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone isreset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PhoneStateListener::onSignalStrengthChanged
The source code suggests this, @Override public void onSignalStrengthsChanged(SignalStrength signalStrength) { mSignalStrength = signalStrength; updateSignalStrength(); } where SignalStrength is android.telephony.SignalStrength class. Let me know if this works, doubt that it will be backwards compatible. Ne0 On Nov 17, 1:46 am, Ken Adair kadai...@gmail.com wrote: I'm assuming it is returning -1 because it is no longer being used with 2.0? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Securing a paid app
You know the piracy rate of MyBackup and CoPilot are probably much higher than 4:1 right? I'm not sure where your get your statistics from, but while you notice apk files are easy to fine - amoung the easier are those exact apps that you think have a good level of security. The point is they have *good* applications people are willing to pay for, and a level of protection, yet people *still* can get there applications just as easily as yours. -Tim Strazzere On Nov 17, 12:20 pm, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: No anti-piracy system is perfect. Thats why I said 100% protection was unachievable. What I am saying is we need some way to get over the hump of 0% protection. Even if we just had a shared system where we had the level of protection of apps, e.g. MyBackup and CoPilot currently have, then at least we are moving in the right direction. There's a lot of posts on this subject because its something that bothers a lot of application developers. If you're happy to find your app every day on rapidshare, thats your decision, but if a big enough group of us want to do pool our resources to reduce piracy, then thats our decision too. Current estimated ratio is 4 pirated copies to 1 purchased copy. If we could reduce this to even 3:1 or 2:1, that would be a very worthwhile investment of everyone's time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] bluetooth service discovery
Although I personal feel service discovery is quiet fundamental in generic bluetooth solution, it is actually not very high priority for my current products. Since we custom make the remote devices and home grown mobile applications, we feel getting data from connection is faster than going thru SDP and get data from service records. Our application runs continuously and we are trying to shorten each cycle as short as possible. The down side is that it requires the mobile appl understand proprietary data format/interface. Having say the above, we are planning to use service record next year for certain business cases that common interface is more important than performance. On Mon, Nov 16, 2009 at 2:02 PM, Nick Pelly npe...@google.com wrote: There is no explicit public SDP API. Android will automatically do SDP for you when creating RFCOMM connections with BluetoothSocket and BluetoothServerSocket. We haven't ruled out exposing some SDP at a later point, although its not a high priority right now. Maybe you could outline what your use case is and what kind of SDP API's you might like, to help our future planning. Nick On Mon, Nov 16, 2009 at 12:36 PM, Sean Liao wirelessw...@gmail.com wrote: I don't see any trivial API to do service discovery in android.bluetooth package. Is it support in current 2.0 release? If yes, I appreciate any pointer. If not, is it something already ruled out on Android platform, or coming soon? Thanks in advance. Sean -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Toast doesn't leave
Are you able to recreate the exact problem mentioned by the user? Try to see what is happening in the logcat at that point when the toast refuses to go away. On Tue, Nov 17, 2009 at 11:26 AM, Wayne Wenthin wa...@fuligin.com wrote: I'll switch them to short and see if that works. This guy was claiming that it didn't leave until he rebooted the phone. That sounds like a bad deal to me. I rely on the toasts to give information but I may just switch it out and show it in a custom area. I've got great plans but getting there is going to be another 90% of the project. On Tue, Nov 17, 2009 at 9:16 AM, Aniruddh Bajirao abaji...@gmail.comwrote: I had a similar issue because of using Toast.LENGTH_LONG. Try reducing the duration. If you use the LENGTH_LONG and then the user switches to home screen immediately after the toast came up, I guess it will continue to be on the screen until it times out. Maybe you can test it with Toast.LENGTH_SHORT and see if it solves your problem. On Tue, Nov 17, 2009 at 11:09 AM, Wayne Wenthin wa...@fuligin.comwrote: I've had a user say that one of my toasts never left the screen even after exiting the app. Has anyone else had a stuck toast? -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. ... Albert Einstein. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Aniruddh Bajirao www.ryze.com/Aniruddh -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. ... Albert Einstein. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Aniruddh Bajirao www.ryze.com/Aniruddh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] video recording issue
HI, i am trying to record video and upload to web, i have given my best effort but no luck, i am not sure if it is possible with android 1.6. Please help me to figure out the solution. is it possible to do that.its really urgent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When a phone is factory reset, market loses track of purchased apps
Cool, sounds like it's not a frequent problem, so it might be just that issue. On Nov 17, 10:30 am, Mike michaeldouglaskra...@gmail.com wrote: I emailed their real email address, not the google checkout email. Thanks for the responses. It makes me feel a little better that this may be a case of using different accounts. I went and looked, and out of the hundreds of people that have written me for support, only 3 had issues with a factory reset. As I just found out, one of the three no longer uses the email address he used to write me. On Nov 17, 10:25 am, nEx.Software email.nex.softw...@gmail.com wrote: Did you try to email the user's real email or the google checkout provided email (they are temporary I believe)? You are actually getting the second purchase from these people I assume? On Nov 17, 10:15 am, Mike michaeldouglaskra...@gmail.com wrote: Well, here's something that may or may not be telling: I emailed one of the users that had this problem after a factory reset, and I got a notification back saying the email couldn't be delivered. That lends some weight to the theory that they used a different account the second time around. - Mike On Nov 17, 9:40 am, nEx.Software email.nex.softw...@gmail.com wrote: Please let us know the outcome, as if this is not the case then we should elevate this. On Nov 17, 9:38 am, Mike michaeldouglaskra...@gmail.com wrote: I'll ask and find out. I understand how using a different email address would cause this issue. - Mike On Nov 17, 9:31 am, nEx.Software email.nex.softw...@gmail.com wrote: Hmm, I have never lost track of my paid apps when resetting my phone (which I do quote often). Are you sure they are using the same email address? On Nov 17, 9:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to tell me they had to do a factoryreseton their phone for some reason or other. The problem is, they had purchased apps installed and the Android market app loses track of this information when the phone isreset. My only solution to their problem is to go into my checkout account, refund their money and ask them to repurchase my app. Am I correct in assuming that Google decided to only check the PackageManager on the device to determine if an app was purchased or not? Is there really no other means of determining that an app was purchased? Surely this information about the purchase is kept on a server somewhere (which is why I can see the purchase information with Google Checkout) Also, since the user of a phone must login with a Google account in order to use the market, can't you just correlate the user's purchased apps with their login account and bypass the phone altogether? I'm probably missing something, but I wanted to let you know its a source of frustration to have to deal with this when I consider this issue the responsibility of the market infrastructure. - Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Securing a paid app
By reducing the number of pirated copies, you are not necessarily increasing your paid copies. I'd rather see it go from 4:1 to 4:4 or even 4:1 to 1:4. Just saying... :) I'm going to go do some developing now. :) On Nov 17, 10:20 am, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: No anti-piracy system is perfect. Thats why I said 100% protection was unachievable. What I am saying is we need some way to get over the hump of 0% protection. Even if we just had a shared system where we had the level of protection of apps, e.g. MyBackup and CoPilot currently have, then at least we are moving in the right direction. There's a lot of posts on this subject because its something that bothers a lot of application developers. If you're happy to find your app every day on rapidshare, thats your decision, but if a big enough group of us want to do pool our resources to reduce piracy, then thats our decision too. Current estimated ratio is 4 pirated copies to 1 purchased copy. If we could reduce this to even 3:1 or 2:1, that would be a very worthwhile investment of everyone's time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: fwd: get the file path from a URI instance
On Tue, Nov 17, 2009 at 7:06 AM, Streets Of Boston flyingdutc...@gmail.comwrote: To get the fully qualified path-name to the image-file (jpg/png), query the Uri of the image and obtain the value of the DATA (_data) column. This value is a String, the fully-qualified path to the image file. Then you can create a FileInputStream from this file. No, don't do this. Use ContentResolver.openFile() and create a FileInputStream or whatever from the FileDescriptor: http://developer.android.com/reference/android/content/ContentProvider.html#openFile(android.net.Uri, java.lang.String) -- 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