[android-developers] Re: Emulator is crashing a lot
I tried creating emulators for other SDK versions also. But doesn't change anything. As soon as i start my emulator, it goes not responding. On Apr 12, 3:14 am, jtoolsdev brianjto...@gmail.com wrote: The 3.0 Emulator came up fast too. Maps my splash screen right side up but the main screen is upside down. In fact the whole screen (icons, title bar are upside down). Been cruisin' looking for bug reports and comments on that. Though I would think my products would do better on a tablet in landscape and not portrait mode so a little remapping for tablets. On Apr 11, 12:16 pm, Andrew Crichton andrew.g.crich...@gmail.com wrote: Well, I don't have problems with any of the other emulators at all, so I can't think of a reason for my system to be the problem. I would be interested to hear how you fair running the 3.0 emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OutOfMemoryError- while to download big data and storing in db4o
Hi all, in my application i have to download big data approx 20MB text and after parsing i have to save in db4o for that i have been making lots of object of classes, i am doing all thing in separate thread and after use of object immediately i am giving null vales to all objects. still after approx 8MB it has been giving error java.lang.OutOfMemoryError. can any one tell me what I have to do to fix it? Thanks Imran ali -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In-app purchase signature verification with PHP openssl
In an attempt to follow some of the security guidelines for in-app purchase here: http://developer.android.com/guide/market/billing/billing_best_practices.html I am trying to do signature validation on a server instead of in the app iteself. I would ideally like to use the php openssl libraries and it looks like code such as the following should work: ?php // $data and $signature are assumed to contain the data and the signature // fetch public key from certificate and ready it $fp = fopen(/src/openssl-0.9.6/demos/sign/cert.pem, r); $cert = fread($fp, 8192); fclose($fp); $pubkeyid = openssl_get_publickey($cert); // state whether signature is okay or not $ok = openssl_verify($data, $signature, $pubkeyid); if ($ok == 1) { echo good; } elseif ($ok == 0) { echo bad; } else { echo ugly, error checking signature; } // free the key from memory openssl_free_key($pubkeyid); ? I replace signature with the base64 decoded signature string in the app purchase bundle and the use the data from the same bundle. The public key needs to be in PEM format and I added the BEGIN and END tokens and some line breaks. My problem is that I can not get this PHP code to successfully verify the data/signature and I do not know what needs to change to get it to work correctly. If I use openssl, create a private and public key, create a signature for the same data using sha1 and run it through the above php code, it works fine and validate successfully. Here is how I use OpenSSL: openssl genrsa -out private.pem openssl rsa -in private.pem -pubout -out public.pem then i use the private.pem and some php code to generate a signature: ... openssl_sign($data, $signature, $pkeyid); ... Does anyone have any working sample php code with server side validation of in-app signatures? I could just run the equivalent java code that is in the sample application, and that seems to work ok, but I would like to use php directly if possible. Thanks, Nate -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator is crashing a lot
I am having a similar problem with the 3.0 emulator. What resolution did you set. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block
I have tried with simple string with out giving UTF-8 format. byte[] bts = encrypted.getBytes(); byte[] decrypted = cipher.doFinal(bts); Then also it will give same error. Thanks, Rashmi On Apr 12, 6:06 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: Blind shot - String != byte[] for UTF-8 and I suspect this false assumption nukes your code. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * On 12 April 2011 14:52, rashmi rashmi@gmail.com wrote: Hi, I am using Asymmetric Cipher RSA algorithm for encryption and decryption. I am generating private and public keys and using them for encryption and decryption respectively. Following is the code snippet. KeyPair keypair = KeyPairGenerator.getInstance(RSA).generateKeyPair(); private Cipher cipher = = Cipher.getInstance(RSA); public String encrypt(String plaintext) throws Exception{ this.cipher.init(Cipher.ENCRYPT_MODE, this.keypair.getPrivate()); byte[] bytes = plaintext.getBytes(UTF-8); byte[] encrypted = cipher.doFinal(bytes); return new String(encrypted); } public String decrypt(String encrypted) throws Exception{ this.cipher.init(Cipher.DECRYPT_MODE, this.keypair.getPublic()); byte[] bts = encrypted.getBytes(UTF-8); byte[] decrypted = cipher.doFinal(bts); return new String(decrypted,UTF-8); } Encryption is working fine. But while decryption it is throwing the error java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block. Please let me know how to resolve this problem. Please suggest me if any other asymmetric algorithms to work on large data. Thank you, Rashmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Compiling Android Source
Deleting the gen folder in the application's directory should clear up the duplicate class errors. Not sure about the SearchManager.SOURCE though. Looks like it doesn't exist... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: (Full) NFC support for Android (on a Nexus S, specifically)
Hey Joe, As I understand it, *both *MAY be available. The PN544 controller has an embedded smartcard, so there's that, and it also supports SWP (for compliant SIMs). Which is used depends on the application, applications on the smartcard would be 'linked to your phone', while applications on the sim would be 'linked to your number'. That's the idea as I interpret it, feel free to correct. Support on Android will be implemented in due time as Nick mentioned. Regards, JMC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] missing last 7 or 8 bytes while writing to file from inputstream?
hi, i am just writing one file from other file,but last 7 or 8 bytes are missing.i am using below code to write the file. buf= new byte[4096]; int numRead = 0; while ((numRead = is.read(buf))0) { os.write(buf, 0, numRead); } can anyone tell me what could be the reason? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In-app purchase signature verification with PHP openssl
On Wed, Apr 13, 2011 at 3:44 PM, Nate Totura ntot...@gmail.com wrote: I am trying to do signature validation on a server instead of in the app iteself. I would ideally like to use the php openssl libraries and it looks like code such as the following should work: ... My problem is that I can not get this PHP code to successfully verify the data/signature and I do not know what needs to change to get it to work correctly. If I use openssl, create a private and public key, create a signature for the same data using sha1 and run it through the above php code, it works fine and validate successfully. What format is the $signature openssl_sign() outputs? Try to print it. My guess is that it's binary, whereas the signature you get from Market is Base64-encoded. If so, you need to decode the Base64 and it should work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: is there any idea that files are only used by application those are stored on media card?
For a slightly more secure implementation you could encrypt/decrypt only a small part of the mp3 files, eg the header - enough to render them unplayable by other players, that way you don't need to encrypt/decrypt the entire .mp3 file We'd be on StackOverflow I'd +1 on you big time :D These are very good advices !! I feel so dumb not to have think you don't need to encrypt the all file to limit I/O operation as the OP asked !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The Blinking Activity of Death
The problem is, this happens randomly, on several unrelated Activities and there are no problems 99% of the time. By the way I meant onCreate (not onStart) in my previous mail. In some of our Activities, we do lots of things in onCreate that might take too long (for instance in a few of them, we start a query in the main thread). We know it's a bad thing to do and we're in the process of fixing this. We do not see lots of ANRs though. But I was wondering if taking too long in onCreate could somehow lead to this behavior? Thanks again any hint is appreciated, BoD On Apr 13, 3:56 am, gjs garyjamessi...@gmail.com wrote: Hi, Maybe post some of your code for onCreate, onStart, onResume so people can review. Regards On Apr 13, 1:22 am, BoD bodlu...@gmail.com wrote: Ps: I realize my problem is a bit vague, and that I unfortunately have few details to share to help understanding what's going on. Maybe somebody can give me hints on what would be the best course of action to follow the next time I encounter this problem (like look at some specific logs, or put a breakpoint in some specific Android class...) ? Thanks a lot for your help. BoD On Apr 11, 5:53 pm, BoD bodlu...@gmail.com wrote: Hello, We have a problem in our app that happens very rarely - but I have witnessed it several times, on several devices and once on the Emulator. We currently do not know a way to reproduce it. It goes like this: you use the app normally, you click on an item or a button that starts an Activity (it seems it can happen anywhere in the app, and not in one specific Activity). = The Activity, instead of being started normally, seems to be started in a loop, thus producing a nice blinking/stroboscopic effect. Exciting the app by pressing back several times, solves the problem: if we then relaunch it, the problem won't be there and then we usually won't see the problem for a few weeks/months. Hence the Blinking Activity of Death nickname... Reading the logs, it looks like onStart() and onResume() are normally called, again and again. The only warning I see in the logs is this: INFO/UsageStats(102): Unexpected resume of myapp while already resumed in myapp Googling a bit about this (andhttp://stackoverflow.com/questions/3851363/what-is-going-on-with-the-...) didn't help. The Starting activity and Displayed activity bits are logged only once. I checked to be sure our startActivity or startActivityForResult calls are not in any sort of loops. Any idea on what could produce such behavior? Thanks a lot for your help. -- BoD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-app billing as a method of activating a trial feature?
Zsolt, I filed a request for this in the market billing issue tracker yesterday: http://code.google.com/p/marketbilling/issues/detail?id=12 -- Kostya 13.04.2011 7:12, Zsolt Vasvari пишет: Well, I am not going to do that. I will just leave the feature disabled for the free version of my app. No big deal. On Apr 13, 10:26 am, Miguel Moralestherevolti...@gmail.com wrote: I thought products with 0.00 were not allowed. The same for free products. Honestly, your best bet is probably using your own server. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 3d engine advices
Nice to hear from engine writers. As a note; The game was better than I expected to see :). On Apr 13, 3:12 am, Peter Eastman peter.east...@gmail.com wrote: Another engine to consider is Gamine (http://sourceforge.net/projects/ gamine). I have some experience with it since, well, I wrote it. :) And I wrote Losing Your Marbles with it, if you want to see it in action. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: is there any idea that files are only used by application those are stored on media card?
but can anyone tell me how can i apply drm rights to my songs. Google for these : WMDRM or AAC DRM But I'm not sure WMDRM is readable by Android. Just so you know : If your content is this valuable that you want to encrypt it with DRM(wich is flawed anyway) then be warned that this content will be offered for free everywhere on the Internet in less than two monthes(days it it is really great content). The only reason I would go to all the trouble of finding a way to add DRM to files is to seal a deal($$) with less tech savvy people that would think that the content they produce is safe in my app(even thought it is not really). Say these mp3's are the best mp3's on the planet and I'm a low tech hacker : I'd plug a jack in my phone and to my computer, play the file on the phone and record it in the computer and tadah, I have ripped your MP3 and your $12 000 DRM licence + 10 days work for the implementation are just a pure loss of money and time. Maybe if you told us what the app is about we could help you find a way to monetize your app in a complete different fashion. Good luck. Yahel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Supporting xlarge screens in sdk 8
On 13 April 2011 00:11, Kostya Vasilyev kmans...@gmail.com wrote: There is a compatibility check plugin written by Haris Peco available here: http://code.google.com/p/adt-addons/ Sadly it requires Eclipse 3.6. Is it now safe to update? I do not want to waste my time downgrading... Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Rounding Numbers
On Tue, Apr 12, 2011 at 5:55 PM, Gabriel gab...@gmail.com wrote: I have a calculator app and I want to round the number after comma. Like, if the result is 15,3 I want to keep it on 15,33 or 15,3 Does any know how to do that? Thanks, I really appreciate the help Do you simply want to format such number, by chopping the tail or populating it with zeros? (1.535 becomes 1.53 or 1.5350 depending on your format) or Do you want to round it (up, down, or half-up) like 0.005 rounded to 2 decimal places becomes 0.01 or, 0 (0.00) depending on your chosen rounding? The method you tried below is rounding half-up (by using Math.round()). You can make it more generic by parametrising 100 (2 decimal places), but remember that by using doubles you will at some point encounter precision issues with rounding. Most scientific calculators are using floating point numbers and nobody minds. Will your calculator always display only 2 decimal places? Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Supporting xlarge screens in sdk 8
I've been using 3.6.1 and then 3.6.2 without any significant issues for a while now. For 3.6.1, I had to tweak a few things to avoid the infamous freezing code assist. For 3.6.2, this issue was fixed in Eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=329288 -- Kostya 13.04.2011 12:21, Marcin Orlowski ?: On 13 April 2011 00:11, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: There is a compatibility check plugin written by Haris Peco available here: http://code.google.com/p/adt-addons/ Sadly it requires Eclipse 3.6. Is it now safe to update? I do not want to waste my time downgrading... Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitter http://webnetmobile.com/twitter/* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In-app billing as a method of activating a trial feature?
Wow, amazing we both thought of this at the same time Thanks! On Apr 13, 4:01 pm, Kostya Vasilyev kmans...@gmail.com wrote: Zsolt, I filed a request for this in the market billing issue tracker yesterday: http://code.google.com/p/marketbilling/issues/detail?id=12 -- Kostya 13.04.2011 7:12, Zsolt Vasvari пишет: Well, I am not going to do that. I will just leave the feature disabled for the free version of my app. No big deal. On Apr 13, 10:26 am, Miguel Moralestherevolti...@gmail.com wrote: I thought products with 0.00 were not allowed. The same for free products. Honestly, your best bet is probably using your own server. -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Rounding Numbers
On Wed, Apr 13, 2011 at 9:29 AM, Zsolt Vasvari zvasv...@gmail.com wrote: You should not use double/float when dealing with exact numbers, such as a calculator. You need to use BigDecimal. All physical scientific calculators use floating points. There are places, where you cannot use anything else than BigDecimals, like financials, cryptography (large primes), ... On Apr 13, 2:18 am, Gabriel gab...@gmail.com wrote: I resolved it using: double result = //old result// *100 double newresult =(Math.round(result)); double finalresult = (newresult) / 100; On 12 abr, 14:29, Harsh J qwertyman...@gmail.com wrote: There is a DecimalFormat class generally available in Java. It can handle the precision amongst other things (like separator character based on locale, currency unit based on locale, etc.) while string-representing doubles. Here's the full API:http://download.oracle.com/javase/6/docs/api/java/text/DecimalFormat On Tue, Apr 12, 2011 at 10:25 PM, Gabriel gab...@gmail.com wrote: I have a calculator app and I want to round the number after comma. Like, if the result is 15,3 I want to keep it on 15,33 or 15,3 Does any know how to do that? Thanks, I really appreciate the 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 -- Harsh Jhttp://harshj.com- 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 -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Rounding Numbers
You should not use double/float when dealing with exact numbers, such as a calculator. You need to use BigDecimal. On Apr 13, 2:18 am, Gabriel gab...@gmail.com wrote: I resolved it using: double result = //old result// *100 double newresult =(Math.round(result)); double finalresult = (newresult) / 100; On 12 abr, 14:29, Harsh J qwertyman...@gmail.com wrote: There is a DecimalFormat class generally available in Java. It can handle the precision amongst other things (like separator character based on locale, currency unit based on locale, etc.) while string-representing doubles. Here's the full API:http://download.oracle.com/javase/6/docs/api/java/text/DecimalFormat On Tue, Apr 12, 2011 at 10:25 PM, Gabriel gab...@gmail.com wrote: I have a calculator app and I want to round the number after comma. Like, if the result is 15,3 I want to keep it on 15,33 or 15,3 Does any know how to do that? Thanks, I really appreciate the 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 -- Harsh Jhttp://harshj.com- 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: Rounding Numbers
The OP is talking about a calculator app. He should absolutely be using BigDecimals, which take care of rounding issues. I'd certainly wouldn't want to download a calculator app that's plauged by rounding errors. All physical scientific calculators use floating points. There are places, where you cannot use anything else than BigDecimals, like financials, cryptography (large primes), ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Supporting xlarge screens in sdk 8
That's what I do - bring up Project Properties every once in a while, and set Android build target to 1.6 (or whatever may be needed). But that doesn't really work, at least in my case. I conditionally use features from API Levels 4, all the way to 11. Setting the compiler to build against Level 4 would cause compiler errors, which it should. I think the only way is to run in the emulator against the lowest supported API and see if you get any VerifyErrors. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-app billing as a method of activating a trial feature?
http://groups.google.com/group/android-developers/msg/6f3e495456642443 Amazing it would be if they actually implemented it. There is hope though, this request for a subscription model was Accepted: http://code.google.com/p/marketbilling/issues/detail?id=3 -- Kostya 13.04.2011 12:31, Zsolt Vasvari пишет: Wow, amazing we both thought of this at the same time Thanks! On Apr 13, 4:01 pm, Kostya Vasilyevkmans...@gmail.com wrote: Zsolt, I filed a request for this in the market billing issue tracker yesterday: http://code.google.com/p/marketbilling/issues/detail?id=12 -- Kostya 13.04.2011 7:12, Zsolt Vasvari пишет: Well, I am not going to do that. I will just leave the feature disabled for the free version of my app. No big deal. On Apr 13, 10:26 am, Miguel Moralestherevolti...@gmail.com wrote: I thought products with 0.00 were not allowed. The same for free products. Honestly, your best bet is probably using your own server. -- Kostya Vasilyev --http://kmansoft.wordpress.com -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Rounding Numbers
Zsolt, I hear what you are saying and generally agree, however we have been using calculations 'plagued by rounding errors' for centuries and our bridges are not collapsing. Such is a nature of a calculator, even scientific one. there is a reason, why Math Java API or even Apache Commons Maths use doubles everywhere: http://download.oracle.com/javase/6/docs/api/java/lang/Math.html http://commons.apache.org/math/ The reason being speed and simplicity. Now looking at BigDecimal API (http://download.oracle.com/javase/6/docs/api/java/math/BigDecimal.html), how would you calculate say cube root of said BigDecimal or maybe any trigonometrical function? Right tools for right problems kind of thing... On Wed, Apr 13, 2011 at 9:49 AM, Zsolt Vasvari zvasv...@gmail.com wrote: The OP is talking about a calculator app. He should absolutely be using BigDecimals, which take care of rounding issues. I'd certainly wouldn't want to download a calculator app that's plauged by rounding errors. All physical scientific calculators use floating points. There are places, where you cannot use anything else than BigDecimals, like financials, cryptography (large primes), ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Supporting xlarge screens in sdk 8
On 13 April 2011 10:36, Zsolt Vasvari zvasv...@gmail.com wrote: But that doesn't really work, at least in my case. I conditionally use features from API Levels 4, all the way to 11. Setting the compiler to build against Level 4 would cause compiler errors, which it should. This is normal, unfortunately. If you use something from API 11, building against 4 will throw errors as such method/constant etc simply does not exist in API 4. That's why I said you shall build against highest API you use features of due to that. Kostya most likely got different case as he checks if he is not (unintentionally) using something that does not exists in lower API. I think the only way is to run in the emulator against the lowest supported API and see if you get any VerifyErrors. Yes, you shall pay more attention to testing if your app does what you say it do, because there's higher risk of facing bug or problems caused by this conditional code. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: missing last 7 or 8 bytes while writing to file from inputstream?
We don't know what kind of OutputStream you are using, but my guess is that you need to flush() it. On Apr 13, 3:25 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi, i am just writing one file from other file,but last 7 or 8 bytes are missing.i am using below code to write the file. buf= new byte[4096]; int numRead = 0; while ((numRead = is.read(buf))0) { os.write(buf, 0, numRead); } can anyone tell me what could be the reason? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: (Full) NFC support for Android (on a Nexus S, specifically)
Hi JMC, I agree with you. I hope that Android will support the SE on the SIM. So the user can have all the personal infos(billing, ticketing, etc) on the SIM and when he changes the phone he can take the infos to the new phone or when he loses the phone the operator can block the SIM. Cheers, Joe On Apr 13, 9:18 am, JMC114 jorncruij...@gmail.com wrote: Hey Joe, As I understand it, *both *MAY be available. The PN544 controller has an embedded smartcard, so there's that, and it also supports SWP (for compliant SIMs). Which is used depends on the application, applications on the smartcard would be 'linked to your phone', while applications on the sim would be 'linked to your number'. That's the idea as I interpret it, feel free to correct. Support on Android will be implemented in due time as Nick mentioned. Regards, JMC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Supporting xlarge screens in sdk 8
13.04.2011 13:06, Marcin Orlowski пишет: This is normal, unfortunately. If you use something from API 11, building against 4 will throw errors as such method/constant etc simply does not exist in API 4. That's why I said you shall build against highest API you use features of due to that. Kostya most likely got different case as he checks if he is not (unintentionally) using something that does not exists in lower API. Yes. You can't directly call a class or method that doesn't exist in the SDK you're building with. Doing this requires the use of Java reflection. So there are two ways really: - Build against the highest SDK version, create wrapper classes for higher / lower API versions, switch them at runtime depending on the actual device API level. - Build against the lowest SDK version, use Java reflection to access higher API methods. However, if you're going to use any higher features in the manifest, you have to build with that higher version. There is no reflection for the manifest. Yes, you shall pay more attention to testing if your app does what you say it do, because there's higher risk of facing bug or problems caused by this conditional code. +100500 to testing :) Compiling against the lower version is a good quick sanity check. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help for encryption of sd card storage?
I have a similar situation, where my application stores some file on SDCARD and dont want anyone else to be able to see the contents or use the file. Encryption is one solution. However I was thinking if there is any way to restrict file permission on SDCARD. Since the file is created by my application, which has a unique UserId, is there any way to set permissions like chmod on file ? Cheers, Kacee On Apr 11, 12:17 pm, Xun Sun xun.sun...@gmail.com wrote: Hi, On Mon, Apr 11, 2011 at 2:47 PM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi, I am downloading file from server and write this file to sd card.now i want to encrypt this file so that only my application can access this file. i) if i can encrypt the file path only that can be access on decrypting it? Are you looking into encrypting individual files? org.bouncycastle.* have the crypto functions that you can use to encrypt a file. You might also want to check this policy: http://developer.android.com/reference/android/app/admin/DeviceAdminI... which is the best encryption algorithem i can use for? There are symmetric ones and asymmetric ones. You are likely more interested in symmetric encryption, where the keys used for encryption and decryption are the same. DES and ASE are the most popular ones. thankx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks regards Xun Sun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android List View and database data
Hey guys, I want to create a list view to display 1 image and a couple of strings and this data is coming from a MySQL database. Im a bit confused on how to do this and would really appreciate somebody telling me whats required to do this through explanation or a tutorial online or a tiny bit of sample code. Any help would be truly appreciated. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Display indeterminate progressbar in Status bar on Android
Hello, I am trying to display an animated graphic identical to the indeterminate progress bar (not the horizontal one, but the circular one) in the status bar while my on-going notification is alive. I tried to find the resource ID corresponding to the indeterminate progress bar, but found that it is animated via code. I tried setting the icon ID in my Notification instance to an animated GIF, but only the first frame of the GIF is displayed in the Status bar. If I set the icon ID to android.R.drawable.progress_indeterminate_horizontal, the graphic animates perfectly. So, my question is- how is the animation achieved in this case? Through iconLevel? How can I set an animated icon without requiring to animate it periodically myself? Any pointers will be really appreciated. Thanks, Akshay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Image not displaying from MySQL database
Yeah, The Paintingpic is the field that I wish to decode. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
Hello Michael, I tried this with the intend filter. I am not getting my app triggered. somehow it is still landing on the Tags app. and I am not able to de.install the tags app. do you have a working source which can just detect a tag and show up the ID of the tag.. a Mifare classic one perhaps..? thanks Domnic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 display all checked items from multiple choice listview
thank you so much for your reply ^_^ after many days..i managed to change my code but i still couldn't manage to get the button works..i still don't know how to do it..i'm not so clear with your explaination..its kind of hard for me to imagine it with the codes..(i'm still a beginner.. i'm so sorry about that..)here my code now..and i hope someone could help me with this.. looking forward for reply and i really appreciate any help from anyone.. thank you for helping me.. public class MyGuestList extends Activity { private String[] lv_arr = {}; private ListView mainListView = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Prepare an ArrayList of todo items ArrayListString guest = PrepareListFromXml(); // Get a handle to the list view mainListView = (ListView) findViewById(R.id.ListView01); // Bind the data with the list lv_arr = (String[]) guest.toArray(new String[0]); mainListView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, lv_arr)); mainListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); // == //my buttons Button btnSave = (Button) findViewById(R.id.Button01); btnSave.setOnClickListener(new OnClickListener() { public void onClick(View v) { //Toast.makeText(getApplicationContext(), You clicked Save button, Toast.LENGTH_SHORT).show(); i don't know what to do to display the list of checked name here } }); Button btnClear = (Button) findViewById(R.id.Button02); btnClear.setOnClickListener(new OnClickListener() { public void onClick(View v) { //Toast.makeText(getApplicationContext(), You clicked Clear button, Toast.LENGTH_SHORT).show(); i don't know what to do to display the list of Un-checked name here too.. } }); // == //this is my list } public ArrayListString PrepareListFromXml() { ArrayListString guest = new ArrayListString(); try{ URL url = new URL( http://tanjungrhu.jigsy.com/files/documents/MyList_1.xml;); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(new InputSource(url.openStream())); doc.getDocumentElement().normalize(); NodeList words = doc.getElementsByTagName(Guest); for(int i=0;iwords.getLength();i++){ Node node = words.item(i); Element fstElmnt = (Element) node; NodeList NameList = fstElmnt.getElementsByTagName(Name); Element NameElement = (Element) NameList.item(0); NameList = NameElement.getChildNodes(); guest.addNode) NameList.item(0)).getNodeValue())); } } catch (Throwable t){ Toast.makeText(this, Exeption: + t.toString(), 2000).show(); } return guest; } } and xml layout: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@+id/ListView01 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_weight=1.0 / LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentBottom=true style=@android:style/ButtonBar Button android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Attending /Button Button android:id=@+id/Button02 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Not Attending /Button /LinearLayout /LinearLayout On Apr 11, 5:41 am, TreKing treking...@gmail.com wrote: On Fri, Apr 8, 2011 at 11:37 PM, win winwizardy...@gmail.com wrote: to make it clear, i
[android-developers] Re: MiFare Classic detection
Hi Michael, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start Scanning. In which case, the scanning of the tag must be triggered after that button press. Once a tag is scanned, then it must get the ID of the tag back to the activity that started the scanning. can you help me with a short description.. how I can reach this perhaps..? many thanks to you Domnic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: help for encryption of sd card storage?
The memory card uses FAT32, which does not support Unix-style owner and permission info. -- Kostya 13.04.2011 13:35, Kacee пишет: Encryption is one solution. However I was thinking if there is any way to restrict file permission on SDCARD. Since the file is created by my application, which has a unique UserId, is there any way to set permissions like chmod on file ? -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Perform device detection check after reboot
Hello, I want to check if the status of all the devices in my Android tablet are the same after reboot. I have achieved reboot functionality using Monkeyrunner through Jython script. But how can I achieve the device detection functionality? Appreciate any help. Thanks and best regards, Rakesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] restart device from code
Hi there! Is there any chance to restart the hole device from code ?! Thanks: Károly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] restart device from code
On 2011-04-13 13:12, Károly Holczhauser wrote: Is there any chance to restart the hole device from code ?! Try this: new AlertDialog.Builder(this) .setMessage(Dear user, could you please restart?) .show(); Anything else would be a bad idea even if it was possible. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Programatically unchecking items in a dialog
by calling setItemChecked() you are updating the UI, the data destination. What if someone at the same time changes the data at the source? Then your UI is out of sync with your data storage. Treat the UI as a one way system - it should only render a representation of your data model, but should not be part of the data model. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Writing Version-Specific Code
Here is an example for a custom audio manager that supports ducking (or not) package com.pocketgpsworld.cameralert; import android.content.Context; import android.media.AudioManager; import android.media.AudioManager.OnAudioFocusChangeListener; import android.os.Build; public abstract class CustomAudioManager { public abstract int requestAudioFocus(); public abstract int abandonAudioFocus(); public static CustomAudioManager newInstance(Context context) { final int sdkVersion = Integer.parseInt(Build.VERSION.SDK); CustomAudioManager cam = null; if (sdkVersion 8) return cam; cam = new FroyoAudioManager(context.getApplicationContext()); return cam; } private static class FroyoAudioManager extends CustomAudioManager { AudioManager am; OnAudioFocusChangeListener l; public FroyoAudioManager(Context context) { am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); l = new OnAudioFocusChangeListener() { @Override public void onAudioFocusChange(int arg0) { } }; } @Override public int abandonAudioFocus() { return am.abandonAudioFocus(l); } @Override public int requestAudioFocus() { return am.requestAudioFocus(l, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Writing Version-Specific Code
Here's an example of a custom audiomanager that supports ducking, but only for the newer OS versions package xyz; import android.content.Context; import android.media.AudioManager; import android.media.AudioManager.OnAudioFocusChangeListener; import android.os.Build; public abstract class CustomAudioManager { public abstract int requestAudioFocus(); public abstract int abandonAudioFocus(); public static CustomAudioManager newInstance(Context context) { final int sdkVersion = Integer.parseInt(Build.VERSION.SDK); CustomAudioManager cam = null; if (sdkVersion 8) return cam; cam = new FroyoAudioManager(context.getApplicationContext()); return cam; } private static class FroyoAudioManager extends CustomAudioManager { AudioManager am; OnAudioFocusChangeListener l; public FroyoAudioManager(Context context) { am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); l = new OnAudioFocusChangeListener() { @Override public void onAudioFocusChange(int arg0) { } }; } @Override public int abandonAudioFocus() { return am.abandonAudioFocus(l); } @Override public int requestAudioFocus() { return am.requestAudioFocus(l, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Returning to previous screen after receiver activity.
Hello ... I have a app that has a activity that can be started from the start menu and a activity that is strated by a intent receiver. Now on boot , if the receiver is called , the activity is started...after backing out of this activity user returns to previous screen (could be home or whatever user was doing) .. this is how it should be. But if i start the other activity from the main launcher, and press the home button to go back to the home screen..the problem begins. Now if the receiver is called , and user backs out of receiver activity..the main (still running in background) activity is shown... This is not how i want it..because it causes users after dismissing a calendar event (the purpose of my app) to return to eg the settings from the main app.. If i call finish() in onpause , it works ok...but that is not the way it should work. Any clues? Hope the problem is clear , since english isn't my first language i found it hard to explain the problem :-) 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] Image not displaying from MySQL database
during debugging, have you confirmed that bit.length has the desired value? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ImageView
Hi, I can't find it out how to use ImageView to get what I want: - fill parent vertically - maintain the original aspect ratio So the imageview should change its width. Thank you, T. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
I have created an RFID Message on my phone how can i read it on my PC am using acr122 On Wed, Apr 13, 2011 at 1:37 PM, androidom saviodom...@yahoo.com wrote: Hi Michael, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start Scanning. In which case, the scanning of the tag must be triggered after that button press. Once a tag is scanned, then it must get the ID of the tag back to the activity that started the scanning. can you help me with a short description.. how I can reach this perhaps..? many thanks to you Domnic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Best Regards Zaid Siryani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
Hallo Domnic, could you show the complete AndroidManifest? And are you sure that your tag is MIFARE Classic? br Michael On 13.04.2011 12:29 androidom wrote: Hello Michael, I tried this with the intend filter. I am not getting my app triggered. somehow it is still landing on the Tags app. and I am not able to de.install the tags app. do you have a working source which can just detect a tag and show up the ID of the tag.. a Mifare classic one perhaps..? thanks Domnic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
Hallo, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start Scanning. In which case, the scanning of the tag must be triggered after that button press. Once a tag is scanned, then it must get the ID of the tag back to the activity that started the scanning. You should take a look at the foreground activity dispatch: http://developer.android.com/reference/android/nfc/Tag.html br Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
Hi Zaid, You would have to use the RFID reader and get the data over to your pc over the serial or usb port. you can use java for that. either Global or Open platform. Java Card could be a good starting point.. look for examples using Nokia NFC 6212 classic. This form is about reading using Android.. or I missed your message..=? thanks Domnic On Apr 13, 1:48 pm, Zaid Siryani zaid...@gmail.com wrote: I have created an RFID Message on my phone how can i read it on my PC am using acr122 On Wed, Apr 13, 2011 at 1:37 PM, androidom saviodom...@yahoo.com wrote: Hi Michael, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start Scanning. In which case, the scanning of the tag must be triggered after that button press. Once a tag is scanned, then it must get the ID of the tag back to the activity that started the scanning. can you help me with a short description.. how I can reach this perhaps..? many thanks to you Domnic -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Best Regards Zaid Siryani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: help for encryption of sd card storage?
13.04.2011 15:49, Kacee пишет: I agree , Sdcard has FAT32. But since , android linux kernel accesses FAT32 to create file on it, isnt there any way to supply more information (like permissions) along with creating a file command ? I checked this post but cudnt get how to do it or even if it is of any Even if there was a way to restrict on-device applications, the user can still eject the memory card and read the files somewhere else. http://groups.google.com/group/android-developers/browse_thread/thread/7ca63e1dd9a71ce2 CAn anything be done with /etc/fstab ? The fstab cannot be changed by SDK applications, doing this requires root, which not everyone has. You could possibly implement some restrictions in your own firmware, but even then you won't be able to prevent the users from taking out the memory card. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Writing Version-Specific Code
On Tue, Apr 12, 2011 at 11:12 PM, Jake Colman col...@ppllc.com wrote: Can you provide an example? https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC https://github.com/commonsguy/cw-android/tree/master/Prefs/FragmentsBC https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture to name three. I am especially looking to understand how I can use this technique to have, for example, a preferences screen that enables/disable an option (probably with an appropriate summary text) based on OS version. You don't need anything more than checking Build.VERSION.SDK_INT in an if statement for that, I would think. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help for encryption of sd card storage?
I agree , Sdcard has FAT32. But since , android linux kernel accesses FAT32 to create file on it, isnt there any way to supply more information (like permissions) along with creating a file command ? I checked this post but cudnt get how to do it or even if it is of any use. http://groups.google.com/group/android-developers/browse_thread/thread/7ca63e1dd9a71ce2 CAn anything be done with /etc/fstab ? On Apr 13, 3:56 pm, Kostya Vasilyev kmans...@gmail.com wrote: The memory card uses FAT32, which does not support Unix-style owner and permission info. -- Kostya 13.04.2011 13:35, Kacee пишет: Encryption is one solution. However I was thinking if there is any way to restrict file permission on SDCARD. Since the file is created by my application, which has a unique UserId, is there any way to set permissions like chmod on file ? -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GLSurfaceView + Android 2.3.x = EGL_BAD_ALLOC
Hi, i got some reports from users of our framework that opening/closing an OpenGL ES based app would force close with an EGL_BAD_ALLOC after ~20-30 open/close cycles on an Android 2.3 device. To eliminate any problems related to our framework i wrote the simplest GLSurfaceView based app i could come up with: package com.badlogic.egl; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.app.Activity; import android.opengl.GLSurfaceView; import android.opengl.GLSurfaceView.Renderer; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class EglBadAlloc extends Activity { GLSurfaceView view; @Override public void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); view = new GLSurfaceView(this); view.setRenderer(new Renderer() { @Override public void onDrawFrame (GL10 gl) { gl.glClearColor(1, 0, 0, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); } @Override public void onSurfaceChanged (GL10 gl, int width, int height) { } @Override public void onSurfaceCreated (GL10 gl, EGLConfig config) { } }); setContentView(view); } @Override public void onPause () { super.onPause(); view.onPause(); } @Override public void onResume() { super.onResume(); view.onResume(); } } Running this on a Nexus One/Samsung Galaxy S with stock 2.3.3 will eventually result in a force close with the following interesting stack trace: 04-13 13:33:24.400: VERBOSE/RenderScript_jni(191): surfaceDestroyed 04-13 13:33:24.460: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Adreno200-EGL(867): egliGetNativeWindowSize: unable to dequeue native buffer 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Adreno200-EGL(867): egliGetNativeWindowSize: unable to dequeue native buffer 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.480: WARN/dalvikvm(867): threadid=9: thread exiting with uncaught exception (group=0x40015560) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): FATAL EXCEPTION: GLThread 41 04-13 13:33:24.490: ERROR/AndroidRuntime(867): java.lang.RuntimeException: eglMakeCurrent failed: EGL_BAD_ALLOC 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView $EglHelper.throwEglException(GLSurfaceView.java:1080) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView $EglHelper.throwEglException(GLSurfaceView.java:1072) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView $EglHelper.createSurface(GLSurfaceView.java:992) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java: 1335) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118) 04-13 13:33:24.490: WARN/ActivityManager(103): Force finishing activity com.badlogic.egl/.EglBadAlloc To reproduce the issue just open and close (via the backbutton) the app above around ~20 times in succession. The app is cached on 2.3 it seems, The cache memory is growing and eventually the EGL error will appear, force closing the app. I looked at the sources of GLSurfaceView for 2.2 and 2.3 (latest AOSP release tag in both cases) and there seem to be some changes in the way EGL context destruction is handled. It seems that one can explicitely request a the context destruction now. Sadly my brain couldn't untangle the logic behind all that yet (and i'm afraid i lack the time to go further down that rabbit hole). So, before i log a bug on b.android.com, does anyone see a problem with my above Activity code? Is there any solution that might not require waiting for the next Android release and it's deployment? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this
Re: [android-developers] restart device from code
2011/4/13 Károly Holczhauser holczhau...@gmail.com Hi there! Is there any chance to restart the hole device from code ?! No (unless you got root). What you need that for? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 3d engine advices
The overhead introduced by Interfaceing GL10/GL11 and GL20 is neglible i'd say. Sadly, there's no work around for that, i'd have prefered a static method solution if at all possible, but so is live. In real- world scenarios that overhead does not have an noticeable impact on your performance, tuning other things like texture filters/sizes will have a 100x bigger impact on the performance of your game. We are currently in the process of rewritting the 3D utility classes of libgdx, including better model format support among other things. See the blog at http://www.badlogicgames.com for more info (as well as the forums :)). Btw, Peter, Gamine looks very interesting as well! You should consider using a different license though, LGPL and Android don't mix well due to the dex format (users can't exchange the Gamine impl due to dex, which is a requirement of the LGPL if you don't provide the source of your complete app). On 13 Apr., 10:07, elix emr...@gmail.com wrote: Nice to hear from engine writers. As a note; The game was better than I expected to see :). On Apr 13, 3:12 am, Peter Eastman peter.east...@gmail.com wrote: Another engine to consider is Gamine (http://sourceforge.net/projects/ gamine). I have some experience with it since, well, I wrote it. :) And I wrote Losing Your Marbles with it, if you want to see it in action. Peter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
Dear Michael, My Manifest is like this ?xml version=1.0 encoding=UTF-8? manifest android:versionCode=1 android:versionName=1.0 package=com.benya.storm.android.ticketing xmlns:android=http:// schemas.android.com/apk/res/android uses-sdk android:minSdkVersion=9 / application android:icon=@drawable/icon android:label=@string/ app_name android:debuggable=true activity android:label=@string/app_name android:name=.MainActivity intent-filter action android:name=android.intent.action.MAIN/ category android:name=android.intent.category.LAUNCHER/ /intent-filter /activity activity android:name=verifytagscanact android:permission=android.permission.NFC android:label=@string/event_verify intent-filter action android:name=android.nfc.action.TECH_DISCOVERED / /intent-filter meta-data android:name=android.nfc.action.TECH_DISCOVERED android:resource=@xml/filter_nfc / /activity activity android:name=verifyconfirmact android:permission=android.permission.INTERNET android:label=@string/event_verify/activity /application uses-permission android:name=android.permission.INTERNET/ uses-permission android:name=android.permission.NFC/ /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Programatically unchecking items in a dialog
write the setitemchecked method withinin oncreate method. On Apr 13, 9:56 am, Akshay Goel xpectro...@gmail.com wrote: But I am manipulating the data by calling setItemChecked(). When I said updating the UI, I meant updating data that results in refreshing/ changing the UI. Thanks, Akshay On Apr 12, 10:32 pm, lbendlin l...@bendlin.us wrote: notifyDataSetChange sounds like the best solution, but for that you need to actually change the data set, not the UI. So you would need to manipulate the checked flag in the data. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GLSurfaceView + Android 2.3.x = EGL_BAD_ALLOC
Forgot to add: the problem does not appear on Android 2.3 (tested on Hero 1.5, Droid 2.1.1, HTC Desire HD 2.2.2). On 13 Apr., 14:31, Mario Zechner badlogicga...@gmail.com wrote: Hi, i got some reports from users of our framework that opening/closing an OpenGL ES based app would force close with an EGL_BAD_ALLOC after ~20-30 open/close cycles on an Android 2.3 device. To eliminate any problems related to our framework i wrote the simplest GLSurfaceView based app i could come up with: package com.badlogic.egl; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.app.Activity; import android.opengl.GLSurfaceView; import android.opengl.GLSurfaceView.Renderer; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class EglBadAlloc extends Activity { GLSurfaceView view; @Override public void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN ); view = new GLSurfaceView(this); view.setRenderer(new Renderer() { @Override public void onDrawFrame (GL10 gl) { gl.glClearColor(1, 0, 0, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); } @Override public void onSurfaceChanged (GL10 gl, int width, int height) { } @Override public void onSurfaceCreated (GL10 gl, EGLConfig config) { } }); setContentView(view); } @Override public void onPause () { super.onPause(); view.onPause(); } @Override public void onResume() { super.onResume(); view.onResume(); } } Running this on a Nexus One/Samsung Galaxy S with stock 2.3.3 will eventually result in a force close with the following interesting stack trace: 04-13 13:33:24.400: VERBOSE/RenderScript_jni(191): surfaceDestroyed 04-13 13:33:24.460: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Adreno200-EGL(867): egliGetNativeWindowSize: unable to dequeue native buffer 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.470: ERROR/Adreno200-EGL(867): egliGetNativeWindowSize: unable to dequeue native buffer 04-13 13:33:24.470: ERROR/Surface(867): invalid token (identity=335) 04-13 13:33:24.480: WARN/dalvikvm(867): threadid=9: thread exiting with uncaught exception (group=0x40015560) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): FATAL EXCEPTION: GLThread 41 04-13 13:33:24.490: ERROR/AndroidRuntime(867): java.lang.RuntimeException: eglMakeCurrent failed: EGL_BAD_ALLOC 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView $EglHelper.throwEglException(GLSurfaceView.java:1080) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView $EglHelper.throwEglException(GLSurfaceView.java:1072) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView $EglHelper.createSurface(GLSurfaceView.java:992) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java: 1335) 04-13 13:33:24.490: ERROR/AndroidRuntime(867): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118) 04-13 13:33:24.490: WARN/ActivityManager(103): Force finishing activity com.badlogic.egl/.EglBadAlloc To reproduce the issue just open and close (via the backbutton) the app above around ~20 times in succession. The app is cached on 2.3 it seems, The cache memory is growing and eventually the EGL error will appear, force closing the app. I looked at the sources of GLSurfaceView for 2.2 and 2.3 (latest AOSP release tag in both cases) and there seem to be some changes in the way EGL context destruction is handled. It seems that one can explicitely request a the context destruction now. Sadly my brain couldn't untangle the logic behind all that yet (and i'm afraid i lack the time to go further down that rabbit hole). So, before i log a bug on b.android.com, does anyone see a problem with my above Activity code? Is there any solution that might not require waiting for the next Android release and it's deployment? -- You received this
Re: [android-developers] Re: MiFare Classic detection
Hallo Domnic, Strange, the manifest looks good to me. uses-sdk android:minSdkVersion=9 / Your phone is Android 2.3.3 (i.e. API version 10, right?). Otherwise, the TECH_DETECTED intent is not available. activity android:name=verifytagscanact android:permission=android.permission.NFC ^^^ I'm not sure why you request the calling app to have the NFC permission. You might want to try to remove this requirement, eventhough I would expect the NFC Service to have this permission. br, Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MiFare Classic detection
Looks like this would work only on 2.3.3 and above.. and not 2.3.1 ..! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MiFare Classic detection
Nope the phone is 2.3.1 level 9.. I am afraid as you said it would work.. I need to flash ver 3 I think.. can we do the upgrade using windows platform..? any suggestions..perhaps..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best way to convert iPhone 3-D game code to run on Android devices?
you have to move to java On Apr 13, 10:55 am, Atul Prakash atul.prakas...@gmail.com wrote: Dear Friends, I need to convert our existing iPhone 3-D action game code to run on Android. Recently, I have developed 2-D game on Android platform and now I am moving towards 3-D. These days I am exploring the options to convert iPhone/iPad Symbian code to run on Android devices. Should I write the entire code of iPhone 3-D game(previously written in Objective C using OpenGL ES) from scratch in Java using OpenGL apis, once again? I have also successfully installed and studied samples of Android NDK(specially San Angles sample code) as well. I am also looking for 3- D game using OpenGL example in Android as well. Is the use of Android NDK is recommended in order to convert iPhone code on Android platform or I should code in Java? I am looking forward for piece of suggestions from your side. Thanks in advance. Atul Prakash Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to receive SDP from 200 OK in SIP in responce to INVITE
Hi I am sending Invite message with SDP. I intend to receive the 200OK which has some SDP description. Can you please guide me which API method will help me to receive it. Is it [ onCallEstablished (SipSessionhttp://developer.android.com/reference/android/net/sip/SipSession.htmlsession, String http://developer.android.com/reference/java/lang/String.htmlsessionDescription) ] method of android.net.sip.SipSession.Listener, which will help me to receive the SDP present in 200 OK in response to INVITE Message. Regards Viks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] restart device from code
2011/4/13 Károly Holczhauser holczhau...@gmail.com Is there any chance to restart the hole device from code ?! A restart is not going to fix a hole in your device =P - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MiFare Classic detection
Nope the phone is 2.3.1 level 9.. I am afraid as you said it would work.. I need to flash ver 3 I think.. can we do the upgrade using windows platform..? any suggestions..perhaps..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MapView - infowindow
On Tue, Apr 12, 2011 at 3:49 PM, Richard Sámela feromak...@gmail.comwrote: please give me some advice or link me to some tutorial. Google Android Map Tutorial - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] restart device from code
Hi, here with a bug in my program I could force the Android to restart, but I do not recommend this way. 2011/4/13 TreKing treking...@gmail.com 2011/4/13 Károly Holczhauser holczhau...@gmail.com Is there any chance to restart the hole device from code ?! A restart is not going to fix a hole in your device =P - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help needed from someone with a Nexus S 2.3.2 system
My app is crashing on that phone, but I only have the 2.3.1 emulator and a 2.3.3 Nexus One. If somebody could spend a couple of minutes and try my app on his 2.3.2 system, I would be greatful. Please e-mail me directly. zvasv...@gmail.com 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] Eclipse/ADT not rebuilding correctly
I started noticing this problem about two weeks ago, but it's hard to nail down. I would change something in my code, wait for eclipse to finish building, deploy to my emulator or device, and proceed to step on the new code. I'd see no change and would then check my logs to see what happened: whatever change I just made wasn't in the code on my emu/device. I have checked the console output, and it uploaded a new APK. I would try and redeploy from Eclipse, and it says the APK is already installed, no need to reinstall. The only way I have found to fix this issue is to either close eclipse entirely, or clean the project. Doing either of these things completely defeats the purpose of having a build automatically option, and in general I choose to restart eclipse because many times ADT will trip over itself while cleaning - see one of the many posts about not finding the gen folder - ugh... Has anyone else had this problem with ADT? Does anyone from either the community or the ADT team have an explanation/workaround/fix? This sometimes happens around 20 times a day, which is really quite annoying. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Stop GPS request after pop last activity
Hi All, I have used GPS in my application, add GPS request for notification at run time multiple times, but i have query how to Stop GPS request when pop a last activity(On application close). I have used function gpsLocationListener.stop(); it's working in my prev. app. But in current application i have added more than one request, i have to close all requested GPS registration Regards, AshishR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help needed from someone with a Nexus S 2.3.2 system
Note that at least some Nexus S's are on 2.3.3. Mine, for example. On Wed, Apr 13, 2011 at 9:34 AM, Zsolt Vasvari zvasv...@gmail.com wrote: My app is crashing on that phone, but I only have the 2.3.1 emulator and a 2.3.3 Nexus One. If somebody could spend a couple of minutes and try my app on his 2.3.2 system, I would be greatful. Please e-mail me directly. zvasv...@gmail.com -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help needed from someone with a Nexus S 2.3.2 system
By now most Nexus Ses (how do you pluralize that?) are going to be on 2.3.3. They do have an unlocked loader, so you can downgrade to 2.3.2. I don't know how off the top of my head, but I'm sure xda-developers has some thread on 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] What is the x y origin value of Touch/click on app screen?
When I develop a app, I click at the up-left corner, I got x=0 y=59 or something. How do I determine the y value? There are two rows above my Touchable screen in my app: 1 first line/row is a tool/status bar which I don't know how to access it 2. next line is my app name like Hello World. I think this two play a role to determine the y value. How do I termine origin y value in my program? -Henry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] when activity loads first time onscroll method is called?
hi, I am displaying listview within activity.and for list view i am loading data from server on scroll event. like public void onScroll(AbsListView view, int firstVisible, int visibleCount, int totalCount) { boolean loadMore = /* maybe add a padding */ firstVisible + visibleCount = totalCount; if (loadMore) { if (loadMore) { if (!isAlive) { isAlive = true; new BackgroundProcess().execute(); } } } } my problem is that when the activity loads first time onScroll method is called by default. is there anyway to prevent this. regards, hitendra gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] EditText Issue
Hello all. I am running a DROID with Android 2.2.2 on it. I have a project I've been working on for a while, a chat client. However, this one is a specific type. I need to make it so the user can not move the cursor to any part of the text, so it has to stay at the end of the text they are typing. I have the code to set to, when the EditText is clicked, move the selection to the end of the box. However, it's not working. Here is my code: // Set a listener for editText myEditText.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { myEditText.setSelection(myEditText.length()); myEditText.extendSelection(0); myEditText.setSelection(0); } }); This is the code I have found (and mall variations from it) everywhere that someone has said to use it. However, it's not working on my DROID. ** I also need to make it so that they user cannot use the arrow keys on a keyboard as well to change the position of the cursor. Please help! Thanks for your time! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OutOfMemoryError- while to download big data and storing in db4o
My first answer would be: use less memory by chopping up the large text file in chunks. My second answer is this: Apart from setting null values to your (temporary) objects, try to call System.gc() as well. It *may* improve your situation somewhat, since Android's (DalvikVM's) garbage collector is non-compacting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best way to convert iPhone 3-D game code to run on Android devices?
No, you don't *have to* move to Java. I would suggest staying on the NDK (using the NDK's opengl libs) for a high performing 3D game. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Stop GPS request after pop last activity
you need to keep references to all the listener requests. You can then use these references in the removeUpdates call. Don't forget the MyLocationOverlay!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 creating sqllite dabase
Hi, I cant create SQLLite Database, gives me an FC: 4-13 16:20:48.225: INFO/ActivityManager(67): Start proc com.es.tele for activity com.es.tele/.tele: pid=490 uid=10034 gids={3003, 1015} 04-13 16:20:51.305: DEBUG/AndroidRuntime(490): Shutting down VM 04-13 16:20:51.314: WARN/dalvikvm(490): threadid=1: thread exiting with uncaught exception (group=0x40015560) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): FATAL EXCEPTION: main 04-13 16:20:51.374: ERROR/AndroidRuntime(490): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.es.tele/com.es.tele.tele}: java.lang.NullPointerException 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.os.Handler.dispatchMessage(Handler.java:99) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.os.Looper.loop(Looper.java:123) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.ActivityThread.main(ActivityThread.java:3683) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at java.lang.reflect.Method.invokeNative(Native Method) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at java.lang.reflect.Method.invoke(Method.java:507) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at dalvik.system.NativeStart.main(Native Method) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): Caused by: java.lang.NullPointerException 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:100) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at com.es.tele.tele.init(tele.java:77) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at java.lang.Class.newInstanceImpl(Native Method) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at java.lang.Class.newInstance(Class.java:1409) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561) 04-13 16:20:51.374: ERROR/AndroidRuntime(490): ... 11 more 04-13 16:20:51.445: WARN/ActivityManager(67): Force finishing activity com.es.tele/.tele 04-13 16:20:52.005: WARN/ActivityManager(67): Activity pause timeout for HistoryRecord{40689ca0 com.es.tele/.tele} 04-13 16:20:53.804: DEBUG/dalvikvm(298): GC_EXPLICIT freed 6K, 55% free 2597K/5703K, external 716K/1038K, paused 8701ms 04-13 16:20:58.768: DEBUG/dalvikvm(346): GC_EXPLICIT freed 1K, 54% free 2539K/5511K, external 716K/1038K, paused 360ms 04-13 16:21:03.232: WARN/ActivityManager(67): Activity destroy timeout for HistoryRecord{40689ca0 com.es.tele/.tele} 04-13 16:21:36.614: INFO/Process(490): Sending signal. PID: 490 SIG: 9 04-13 16:21:36.665: INFO/ActivityManager(67): Process com.es.tele (pid 490) has died. 04-13 16:21:37.115: WARN/InputManagerService(67): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40692d80 I have: package com.es.tele; import . public class tele extends TabActivity { /** Called when the activity is first created. */ private TextView seleccion; private ProgressDialog progressdialog; String horaIn; String horaFi; String canal; int posicion; base baseDatos = new base(this,programacion,null,1); SQLiteDatabase db = baseDatos.getWritableDatabase(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tabhost = getTabHost(); And then in the base class: public class base extends SQLiteOpenHelper { //Sentencia SQL para crear la tabla de Usuarios String sqlCreate = CREATE TABLE LAUNO (codigo INTEGER, programa TEXT, descripcion TEXT);; public base(Context contexto, String nombre, CursorFactory factory, int version) { super(contexto, nombre, factory, version); } @Override public void onCreate(SQLiteDatabase db) { //Se ejecuta la sentencia SQL de creación de la tabla db.execSQL(sqlCreate); } @Override public void onUpgrade(SQLiteDatabase db, int versionAnterior, int versionNueva) {
[android-developers] Re: java.lang.NullPointerException
E/MyVideoAppView( 1829): \0x09at com.johnwei.android. MyVideoApp.MyVideoAppView.surfaceCreated(MyVideoAppView.java:66) Line 66 maybe? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 creating sqllite dabase
at com.es.tele.tele.init(tele.java:77) What's at line 77? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] restart device from code
2011/4/13 Rogério de Souza Moraes rogerio.so...@gmail.com here with a bug in my program I could force the Android to restart, but I do not recommend this way. You say you found a bug when executed in your code causes the whole device to reboot? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problem creating sqllite dabase
Android Activity / Service / etc. objects aren't fully operational until onCreate. Move these two lines inside onCreate. -- Kostya 13.04.2011 18:28, David Tabernero пишет: base baseDatos = new base(this,programacion,null,1); SQLiteDatabase db = baseDatos.getWritableDatabase(); -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problem creating sqllite dabase
It may have to do with the initialization of the database during the construction of your TabActivity: base baseDatos = new base(this,programacion,null,1); SQLiteDatabase db = baseDatos.getWritableDatabase(); These fields are assigned during the construction of your TabActivity. Move these two lines into your onCreate, where your TabActivity should be initialized. ... base baseDatos; SQLiteDatabase db; ... public void onCreate(Bundle savedInstanceState) { ... ... baseDatos = new base(this,programacion,null,1); db = baseDatos.getWritableDatabase(); ... } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problem creating sqllite dabase
13.04.2011 18:32, lbendlin ?: at com.es.tele.tele.init(tele.java:77) What's at line 77? The default no-arguments constructor generated by the compiler :) More interesting is line 100 in ContextWrapper.java, one line up in the stack dump. @Override public Context getApplicationContext() { *return mBase.getApplicationContext();* } mBase is null because onCreate hasn't been called yet. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: 3d engine advices
Make a source directory for the the following package that provides all the interfaces. javax.microedition.khronos.opengles.GL.java javax.microedition.khronos.opengles.GL10.java javax.microedition.khronos.opengles.GL10Ext.java javax.microedition.khronos.opengles.GL11.java javax.microedition.khronos.opengles.GL11Ext.java javax.microedition.khronos.opengles.GL11ExtensionPack.java Have your engine refer to only use these. Also have a factory method that returns your GL instance, I believe you already do. Now Android will then compile and work directly. Then for your JOGL version, have your App return an instance that implements the different GL objects. If you're engine is targeted at Android that allows you to dev on PC I think it's worth the time. First you're allowing the Android build to use the API directly. This verifies that anything you use already exists on Android. This means that you're only really managing the PC part which can have any hacks or performance hits required. It's just a suggestion, I looked at your code and I thought it was the best one I found. Leigh On 4/13/2011 8:39 AM, Mario Zechner wrote: The overhead introduced by Interfaceing GL10/GL11 and GL20 is neglible i'd say. Sadly, there's no work around for that, i'd have prefered a static method solution if at all possible, but so is live. In real- world scenarios that overhead does not have an noticeable impact on your performance, tuning other things like texture filters/sizes will have a 100x bigger impact on the performance of your game. We are currently in the process of rewritting the 3D utility classes of libgdx, including better model format support among other things. See the blog at http://www.badlogicgames.com for more info (as well as the forums :)). Btw, Peter, Gamine looks very interesting as well! You should consider using a different license though, LGPL and Android don't mix well due to the dex format (users can't exchange the Gamine impl due to dex, which is a requirement of the LGPL if you don't provide the source of your complete app). On 13 Apr., 10:07, elixemr...@gmail.com wrote: Nice to hear from engine writers. As a note; The game was better than I expected to see :). On Apr 13, 3:12 am, Peter Eastmanpeter.east...@gmail.com wrote: Another engine to consider is Gamine (http://sourceforge.net/projects/ gamine). I have some experience with it since, well, I wrote it. :) And I wrote Losing Your Marbles with it, if you want to see it in action. Peter -- Leigh McRae http://www.lonedwarfgames.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] Rarely getting ActivityNotFoundException?
Hi, In my app rarely it's showing ActivityNotFoundException even i have mentioned all Activities in my manifest file. The app running properly sometimes only its showing that error...? What may be the reason? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help needed from someone with a Nexus S 2.3.2 system
Thanks, guys. It wasn't a 2.3.2 issue, so I don't need the help any more. Thanks! On Apr 13, 9:48 pm, Jake Basile jakerbas...@gmail.com wrote: By now most Nexus Ses (how do you pluralize that?) are going to be on 2.3.3. They do have an unlocked loader, so you can downgrade to 2.3.2. I don't know how off the top of my head, but I'm sure xda-developers has some thread on 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: PNG quality in WebView based app
I am running into a very similar problem (see my post at https://groups.google.com/forum/#!topic/android-developers/el37eByuVb8/discussion), and I was wondering if you could post any details about your workaround? How did you split up the image, what size tiles did you use, etc? Did it actually end up solving your problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Rarely getting ActivityNotFoundException?
In my app rarely it's showing ActivityNotFoundException even i have mentioned all Activities in my manifest file. The app running properly sometimes only its showing that error...? What may be the reason? Show the stack trace where the event occurs. You may want to catch exception too. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 receive SDP from 200 OK in SIP in responce to INVITE
Hi I am sending Invite message with SDP. I intend to receive the 200OK which has some SDP description. Can you please guide me which API method will help me to receive it. Is it [ onCallEstablished (SipSession session, String sessionDescription) ] method of android.net.sip.SipSession.Listener, which will help me to receive the SDP present in 200 OK in response to INVITE Message. 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: problem creating sqllite dabase
Many thanks, Yes! I had the initialization during the construction and no in my TabActivity, so doen't works. One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? Thanks and sorry for my english! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth Walkie Talkie
Is it possible to get the code for an audio call using bluetooth headset? That may be helpful. That may help me to figure out how to send continuous streams of data. On Apr 6, 11:03 pm, Kristopher Micinski krismicin...@gmail.com wrote: You'll have to connect the phones right, and then send a stream of data... I think you might want to look into how BT headsets work in this type of scenario, that's probably what you want to do instead. (I'm out of my element here, I'm not sure if that's possible with the API.) Otherwise you have to look into connecting between the two phones. Look at the BluetoothChat example, which shows how to go about sending data, then you have a stream socket. By the way, I think that the data rate will be too low for audio using a socket like the one from the bt chat example. Kris On Wed, Apr 6, 2011 at 1:53 PM, Aditya Singal adityasingal...@gmail.comwrote: Hi, I am trying to implement a walkie talkie set between two android mobile phones using bluetooth connection. But I am not sure how to send audio data as a stream through bluetooth. So far I am trying to use media recorder to capture audio. mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setOutputFile(mFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); This is part of the code that I took from android.com. I believe that this will simply save the sound file at path specified by mFileName however I wish to transmit it through bluetooth instead of saving it. Aditya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation
Hi If you tried your URL from the emulator this is normal, I just have a try and got the same result. 04-13 17:49:58.547: INFO/StagefrightPlayer(33): setDataSource('httplive://wealthtv.apple-vod-geo.adaptive.level3.net/ sample/samsung/sample4/playlist.m3u8') 04-13 17:49:58.707: INFO/LiveSession(33): onConnect 'http:// wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/sample4/ playlist.m3u8' 04-13 17:49:58.707: INFO/NuHTTPDataSource(33): connect to wealthtv.apple-vod-geo.adaptive.level3.net:80/sample/samsung/sample4/ playlist.m3u8 @0 04-13 17:49:59.267: INFO/NuHTTPDataSource(33): connect to wealthtv.apple-vod-geo.adaptive.level3.net:80/sample/samsung/ sample4/1000/prog_index.m3u8 @0 04-13 17:49:59.688: INFO/NuHTTPDataSource(33): connect to wealthtv.apple-vod-geo.adaptive.level3.net:80/sample/samsung/ sample4/1000/fileSequence0.ts @0 04-13 17:50:06.899: INFO/avc_utils(33): found AVC codec config (848 x 480, Main-profile level 4.0) 04-13 17:50:06.928: INFO/NuHTTPDataSource(33): connect to wealthtv.apple-vod-geo.adaptive.level3.net:80/sample/samsung/ sample4/1000/fileSequence1.ts @0 04-13 17:50:06.957: INFO/ESQueue(33): found AAC codec config (48000 Hz, 2 channels) 04-13 17:50:07.017: INFO/MPEG2TSExtractor(33): haveAudio=1, haveVideo=1 04-13 17:50:14.522: INFO/NuHTTPDataSource(33): connect to wealthtv.apple-vod-geo.adaptive.level3.net:80/sample/samsung/ sample4/1000/fileSequence2.ts @0 04-13 17:50:19.738: ERROR/MediaPlayer(1293): error (1, -2147483648) 04-13 17:50:22.848: ERROR/MediaPlayer(1293): Error (1,-2147483648) In fact I got same issue for many other URL on emulator that perfectly work on a Motorola XOOM. I will be able to test your URL on the XOOM on friday. Zbb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 List View and database data
Check the android API example,there is one activity which shows and image and some data in list view.There r many tutorial on the internet for displaying the data from database. On Apr 13, 3:19 am, Ian Menzies bumde...@gmail.com wrote: Hey guys, I want to create a list view to display 1 image and a couple of strings and this data is coming from a MySQL database. Im a bit confused on how to do this and would really appreciate somebody telling me whats required to do this through explanation or a tutorial online or a tiny bit of sample code. Any help would be truly appreciated. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] First insert didn't work when I using SQLiteDatabase.insert method.
In my app I inserted a row since a button in main screen and recover this row in a Service process. But, when I clicked in the button that execute the SQLiteDatabase.insert, the first insert didn't worked. Immediately after I tried insert the row, I can recover the row, but when I tried recover the row in another screen or thread the SQLiteDatabase return null. Does someone know why happened? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problem creating sqllite dabase
13.04.2011 19:44, ABSOLUT пишет: One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? class MyActivity { // Declare the variables in the class, outside any method // This way they are accessible to all methods in the class base baseDatos; SQLiteDatabase db; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // This sets the variables declared above, but not too early baseDatos = new base(this,programacion,null,1); db = baseDatos.getWritableDatabase(); } private void doSomething() { // You can access baseDatos and db here as needed } } -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can we create UI component in a seperate XML file and load it
So I have created this activity, and setContentView() with mail.xml layout file. Now I want to add some textView dynamically into this screen. I already have these text view defined in a seperate xml file named view.xml. How can I instantiate these textview components and add them into screen? I know we have inflate method, but once we call inflate, this view.xml will be added to screen automaticallyhow can we achieve this? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In-app purchase signature verification with PHP openssl
On Apr 13, 12:27 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Apr 13, 2011 at 3:44 PM, Nate Totura ntot...@gmail.com wrote: I am trying to do signature validation on a server instead of in the app iteself. I would ideally like to use the php openssl libraries and it looks like code such as the following should work: ... My problem is that I can not get this PHP code to successfully verify the data/signature and I do not know what needs to change to get it to work correctly. If I use openssl, create a private and public key, create a signature for the same data using sha1 and run it through the above php code, it works fine and validate successfully. What format is the $signature openssl_sign() outputs? Try to print it. My guess is that it's binary, whereas the signature you get from Market is Base64-encoded. If so, you need to decode the Base64 and it should work. Thanks, the openssl_sign() php function is just being used to verify that if I sign something myself, instead of using the Google returned version, that it works in my php verification code. The openssl_sign() does return binary and I am encoding it to base64 before using it elsewhere. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Programatically unchecking items in a dialog
OnCreate of what? The dialog? I want to uncheck the item as soon as the user checks All, without dismissing the dialog. Thanks, Akshay On Apr 13, 5:44 pm, harsh chandel harshdchan...@gmail.com wrote: write the setitemchecked method withinin oncreate method. On Apr 13, 9:56 am, Akshay Goel xpectro...@gmail.com wrote: But I am manipulating the data by calling setItemChecked(). When I said updating the UI, I meant updating data that results in refreshing/ changing the UI. Thanks, Akshay On Apr 12, 10:32 pm, lbendlin l...@bendlin.us wrote: notifyDataSetChange sounds like the best solution, but for that you need to actually change the data set, not the UI. So you would need to manipulate the checked flag in the data. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en