[android-developers] Re: View/onDraw(Canvas) vs. SurfaceView

2011-11-24 Thread BelvCompSvs
well I just got hammered for supposedly being hard to understand but this is not going to be fun first off ( short of going an looking ) SurfaceView should be on the constructor chain of View as the normal convention of Java suggest so by the class name thus I would if coding a short sample

[android-developers] Two linearlayouts inside onLayout method

2011-11-24 Thread Dav
Can i create two linearlayouts inside the onLayout method (i am extending from adapterview)? . I want to add couple of views into the firstlayout and add rest of the views into the second linearlayout . Is this possible ? -- You received this message because you are subscribed to the Google

[android-developers] OutOfMemoryError

2011-11-24 Thread bob
OutOfMemoryError I'm getting this OutOfMemoryError: 11-24 00:38:10.925: ERROR/dalvikvm-heap(1782): 144-byte external allocation too large for this process. 11-24 00:38:10.965: ERROR/GraphicsJNI(1782): VM won't let us allocate 144 bytes 11-24 00:38:11.205: ERROR/AndroidRuntime(1782):

[android-developers] Re: How to connect to Facebook and publish in the wall

2011-11-24 Thread Ali Chousein
Try asking Facebook dev related questions at this forum: http://forum.developers.facebook.net/ Hint: If you study either Facebook Android SDK ( https://github.com/facebook/facebook-android-sdk ) or Facebook Graph API ( https://developers.facebook.com/docs/reference/api/ ) you'll see that the

Re: [android-developers] OutOfMemoryError

2011-11-24 Thread Johan Rydenstam
Are you using different resources for the tablet (like hdpi?). I would check for memory leaks. There are tools you can use for this ( Eclipse memory analyzer) On Nov 24, 2011, at 9:51 AM, bob wrote: OutOfMemoryError I'm getting this OutOfMemoryError: 11-24 00:38:10.925:

[android-developers] Re: Facebook posting not works if any crashing in application

2011-11-24 Thread Ali Chousein
1. Write software which doesn't crash. That's the only approach to write mobile software. Relying on recovery algorithms after a crash is simply not an acceptable approach in simple mobile software world. (No, your software is not complex, all mobile software are simple, I mean ALL). 2. Try

[android-developers] Re: Programatically adding a contact issue

2011-11-24 Thread Ali Chousein
Study the ContactsContract API ( http://developer.android.com/reference/android/provider/ContactsContract.html ). All information you need is there. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy

Re: [android-developers] OutOfMemoryError

2011-11-24 Thread Francisco Dalla Rosa soares
I don't have the link right now but I read somewhere that if you want to allocate more memory (especially for images) you can just allocate them as opengl textures as those don't count as heap memory. I'll try to find the link and get some more detailed info to you. 2011/11/24 Johan Rydenstam

Re: [android-developers] Dialog Activity

2011-11-24 Thread Aki
Cannot display an AlertDialog from a non-activity context. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Issue with taking photo

2011-11-24 Thread limtc
Hi, I have an issue with photo taking in Android. The code below works for all the phones I have, but when I am testing this with a Honeycomb tablet (HTC Jetstream, in portrait mode), the picture will be taken in landscape mode, then when it returns to the app, wipe out the view (as if onCreate

[android-developers] Where does the picture saved to?

2011-11-24 Thread limtc
I am using this code to save the image: -- String fileURL = Media.insertImage(getContentResolver(), bitmap, KidsPaint, Picture); if (fileURL != null) { Uri uri = Uri.parse(fileURL); sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri)); } -- However, the result is pretty

[android-developers] handling back button

2011-11-24 Thread karthik
Sir/madam, i am working on an application in which if i click(normal click) on the back button the moveTaskToBackgroud(true) must be called. else if it is a longpress then there id nothing to do. please help regards, karthik -- You received this message because you are subscribed to the

[android-developers] handling back button

2011-11-24 Thread karthik
Sir/madam, i am working on an application in which if i click(normal click) on the back button the moveTaskToBackgroud(true) must be called. else if it is a longpress then there id nothing to do. please help regards, karthik -- You received this message because you are subscribed to the

[android-developers] Calculate percentage of a video file

2011-11-24 Thread Naveen
Hello Sir, I am playing a video file , i want to calculate percentage of video file . using this code int current=video.getDuration(); int total= video.getCurrentPosition(); int per = (current/total)*100; This way is wrong behave please confirm me this is right or wrong. which is easiest

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread arun kumar
*Manually calculate the bitrate** *The basic bitrate formula is (*S*ize - (*A*udio x *L*ength )) / *L*ength = *V*ideo bitrate L = Lenght of the whole movie in seconds S = Size you like to use in KB (note 700 MB x 1024*°* = 716 800 KB) A = Audio bitrate in KB/s (note 224 kbit/s = 224 / 8*°* = 28

Re: [android-developers] handling back button

2011-11-24 Thread Uberall, Android
Dear Karthik, I would like to recommend you to use the following code snippet in your activity. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { super.onKeyDown(keyCode, event); if (keyCode == KeyEvent.KEYCODE_BACK event.getRepeatCount() = 0) { *

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread NaveenShrivastva
In android i have instance of videoview is video, how to handle this for calculate percentage? On Thu, Nov 24, 2011 at 3:51 PM, arun kumar hariarun2...@gmail.com wrote: *Manually calculate the bitrate** *The basic bitrate formula is (*S*ize - (*A*udio x *L*ength )) / *L*ength = *V*ideo

[android-developers] Re: Calculate percentage of a video file

2011-11-24 Thread skink
On Nov 24, 11:15 am, Naveen kumarnaveen.si...@gmail.com wrote: Hello Sir, I am playing a video file , i want to calculate percentage of video file . using this code int current=video.getDuration(); int total= video.getCurrentPosition(); int per = (current/total)*100; This way is wrong

[android-developers] Re: WebView lost JavaScript update contents after called goBack()

2011-11-24 Thread alex
seems the page was reloaded after call goBack(), is there any way to prevent reload page after call goBack() ??? On 11月18日, 下午6时23分, alex medicibusin...@gmail.com wrote: I have a problem that when I click back button on a WebView, my previous page losts all contents updated by JavaScript. My

Re: [android-developers] Re: Calculate percentage of a video file

2011-11-24 Thread NaveenShrivastva
OK Then now i am doing video.pause(); int current=video.getDuration(); int total= video.getCurrentPosition(); int per = (current*100)/total; This is right way for calculate percentage of video? because when it's reach

[android-developers] screenshot in android

2011-11-24 Thread vani reddy
Hi friends, How to take the screeenshot of android device programmatically..Apart from using in DDMS. -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] complete video player app crash on back btn

2011-11-24 Thread Naveen
Hello All, Please see the code public void onCompletion(MediaPlayer mp) { CompleteFlag = true; video.pause(); /* */ /*if(checkNetworkConnection()){ try { new PostUsesData().execute(T); }

Re: [android-developers] Re: Calculate percentage of a video file

2011-11-24 Thread NaveenShrivastva
This is not solving my issue , how to calculate 90% of video is completed or not. i will check this on button click. On Thu, Nov 24, 2011 at 4:22 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: OK Then now i am doing        video.pause();               int

[android-developers] OrmLite problem with proguard

2011-11-24 Thread Android Developer
Hi All, I am trying to optimize my apk using proguard. I keep com.j256.ormlite package at the end of proguard config file. and i add the library jars also. and also mapping.txt is not getting created. My Proguard.cfg -optimizationpasses 5 -dontusemixedcaseclassnames

[android-developers] Re: Where does the picture saved to?

2011-11-24 Thread limtc
I saw a solution here (http://www.rical.net/blog/ article-1318132709.html), not sure whether this is true as I didn't see this explanation elsewhere. What it means is that Media.insertImage() returns the Uri will be in content:// format, but ACTION_MEDIA_SCANNER_SCAN_FILE intent required format in

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Ricardo Amaral
On Wednesday, November 23, 2011 6:26:09 PM UTC, Mark Murphy (a Commons Guy) wrote: On Wed, Nov 23, 2011 at 12:51 PM, Ricardo Amaral mas...@ricardoamaral.net wrote: I'm a little confused... If SharedPreferences are not safe for this, how are apps handling validation if they don't use

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Ricardo Amaral
Thanks. This is very basic, so if you decide to use it, you may want to improve/tweak it. At least you need to decide how you manage coupons: by device (how do you identify devices?), user (google account, email), etc. I haven't yet installed anything of that but one way would be to have

[android-developers] Re: Calculate percentage of a video file

2011-11-24 Thread skink
On 24 Lis, 12:29, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: This is not solving my issue , how to calculate 90% of video is completed or not. i will check this on button click. why? what value do you get in int per? pskink On Thu, Nov 24, 2011 at 4:22 PM, NaveenShrivastva

[android-developers] Re: Architecture of mobile application

2011-11-24 Thread nexbug
Check out that profile. Seems to be a spambot. On Nov 22, 11:51 pm, Dusk Jockeys Android Apps duskjock...@gmail.com wrote: BelvCompSys Like 90% of your posts, due to your opaque references, hints at inside knowledge, and otherwise generally obscure method of communication, I have no idea

[android-developers] Re: Where does the picture saved to?

2011-11-24 Thread limtc
I replaced the ACTION_MEDIA_SCANNER_SCAN_FILE intent by ACTION_MEDIA_SCANNER_SCAN_FILE intent for saving, and it works for HTC Hero issue! Now Gallery will be refreshed when we save the file. sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse(file:// +

Re: [android-developers] Re: Calculate percentage of a video file

2011-11-24 Thread NaveenShrivastva
It's give always maximum value not less than 100 . On Thu, Nov 24, 2011 at 5:23 PM, skink psk...@gmail.com wrote: On 24 Lis, 12:29, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: This is not solving my issue , how to calculate 90% of video is completed or not. i will check this on

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Nikolay Elenkov
On Thu, Nov 24, 2011 at 8:51 PM, Ricardo Amaral mas...@ricardoamaral.net wrote: Thanks. This is very basic, so if you decide to use it, you may want to improve/tweak it. At least you need to decide how you manage coupons:  by device (how do you identify devices?), user (google account, email),

[android-developers] Table layout with different length column

2011-11-24 Thread sam
Hi Everyone, I have a Table layout done in problematically And I want to to develop it as first two rows have only one column and other three rows have two column. First two rows' values should be spread whole row. Can anyone guide me by sending tutorial or any link regarding this Thanks -- You

[android-developers] Someone has the Galaxy Nexus? :)

2011-11-24 Thread YuviDroid
Hey everyone, while I'm waiting for the Galaxy Nexus to be available here in Switzerland I was wondering if somebody who already has it he's willing to quickly test my app to see how it works there? (especially with respect to the high screen resolution screen and the 'menu' key not being

Re: [android-developers] hardware acceleration

2011-11-24 Thread New Developer
Just tested the same code on a Sony S same thing So with both the Sony S and Motorola Xoom You hear the audio , but see No video hardware is accelerated and first time around I get the following message in LogCat 11-24 07:49:23.688: E/Surface(11158): surface (identity=1931) is

[android-developers] C/C++ struct in android

2011-11-24 Thread Aitor Mendaza Ormaza
Hi to everyone: I want to make something similar to a struct in C/C++, to represent a collection of structured data. I first though of making objects with properties, but this might be a little inefficient (creating objects just to store data). Is there a more efficient way to do this in android?

Re: [android-developers] Re: Action Bar

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 2:26 AM, tobias ecker...@gmx.de wrote: So unless you can live with the significantly smaller screen-real- estate that the Action Bar will leave you with, the only solution seems to be to leave the target-SDK setting at 9, as to ensure Android will always display a menu

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 7:56 AM, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: I want to make something similar to a struct in C/C++, to represent a collection of structured data. In Java, this is called a class. Is there a more efficient way to do this in android? Something like structs

Re: [android-developers] Table layout with different length column

2011-11-24 Thread Mark Murphy
Use android:layout_span to have your first two rows span the two columns. On Thu, Nov 24, 2011 at 7:28 AM, sam urweeras...@gmail.com wrote: Hi Everyone, I have a Table layout done in problematically And I want to to develop it as first two rows have only one column and other three rows have

Re: [android-developers] screenshot in android

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 5:57 AM, vani reddy vani.reddy.bl...@gmail.com wrote: How to take the screeenshot of android device programmatically..Apart from using in DDMS. This is not supported by Android. There are ways to capture the image of your own activity (I think using the drawing cache),

Re: [android-developers] handling back button

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 5:09 AM, karthik karthik01...@gmail.com wrote: i am working on an application in which if i click(normal click) on the back button the moveTaskToBackgroud(true) must be called. Please do not do this. Please leave the BACK button alone. The user can press HOME to achieve

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Aitor Mendaza Ormaza
On Thu, Nov 24, 2011 at 1:59 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Nov 24, 2011 at 7:56 AM, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: I want to make something similar to a struct in C/C++, to represent a collection of structured data. In Java, this is called a

[android-developers] Re: Video stream hacking

2011-11-24 Thread lbendlin
Feel free to call it a problem. I call it a reality check. Rethink your goals. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: Action Bar

2011-11-24 Thread Michael A.
FWIW, I have users who have complained about this since I switched to target-SDK=14. Action bar is there, but no menu overflow button. Very annoying, but unfortunately I do not have any device on which I can replicate the issue. Regards, Michael A. -- You received this message because you

Re: [android-developers] screenshot in android

2011-11-24 Thread Mukesh Srivastav
Let me give u an Example: Let's say you have a layout and it has a parent layout could be (Relative,Absoulte or LinerLayout). Take the id out of it. Below are the steps to do this. Step 1: Declare a Variable View screen; Step 2: in public void onCreate(Bundle savedInstanceState) Method

Re: [android-developers] screenshot in android

2011-11-24 Thread lbendlin
on a rooted phone you can dump the contents of the framebuffer into a bitmap and then convert either of the frames (the buffer has two) into whatever image format you want. something like cat /dev/graphics/fb0 grab.raw -- You received this message because you are subscribed to the Google

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 8:09 AM, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: I jut wanted to know if there was a way around of using class only for storing data, as it will not have any methods attached to it, and object handling can be expensive.

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread lbendlin
exactly. Rather than thinking about the technicalities first, approach the issue from the other side. What is your user population like? Average users that never change phones? Geeks that flash a new ROM every week? Silent majority versus vocal few trolls? Once you have decided how you want to

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Aitor Mendaza Ormaza
On Thu, Nov 24, 2011 at 2:18 PM, Mark Murphy mmur...@commonsware.comwrote: http://java.sun.com/developer/Books/shiftintojava/page1.html Upon first exposure to the Java programming language, some C programmers believe that classes are too heavyweight to replace structs under some

Re: [android-developers] android browser plug-ins support

2011-11-24 Thread Klimek
Yes u can create plugins :D Dnia 24 lis 2011 o godz. 04:13 petr.maza...@mautilus.com petr.maza...@mautilus.com napisał(a): How is the situation with the Android browser plug-ins? - Can we develop the browser plug-in? - Are there any limitations of what the plug-in can do? - Can it be

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 8:54 AM, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: For what is worth, I don't choose not to believe Mr. Bloch, I was just wondering if in Android were better choices for classes as structs, as I know my knowledge of both Java and Android is limited. Android

[android-developers] Encryption of phonebook contacts

2011-11-24 Thread chander
Hi I need to encrypt my android phone contacts while saving a contact in android form i want to encrypt it using any encryption algorithm with the help of Java Cryptography extensions. can i embed my encryption algorithm like DES or any algorithm in phonebook contacts while saving them to my

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Ricardo Amaral
I don't think those issues are really that relevant. For my situation at least. This is only to give out some free copies to some persons, not to use as a full validation system for every paying user... -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Nikolay Elenkov
On Thu, Nov 24, 2011 at 11:37 PM, Ricardo Amaral mas...@ricardoamaral.net wrote: I don't think those issues are really that relevant. For my situation at least. It's your app, so you should know best... But, This is only to give out some free copies to some persons, not to use as a full

[android-developers] Persistence of complex Java objects (SQLite, Serialization, JSON) and client-server app architecture

2011-11-24 Thread Christine Daunique
I'm working on an Android application which is fetching data from internet among other things. Actually, the project was started by someone else which is not here anymore, and now that I have to turn it into a light client application and implement the server side (in Java), I'm wondering what

[android-developers] Re: OutOfMemoryError

2011-11-24 Thread bob
On Nov 24, 12:55 am, Johan Rydenstam johanrydens...@googlemail.com wrote: Are you using different resources for the tablet (like hdpi?). No, it is mostly loading asset images. I would check for memory leaks. There are tools you can use for this ( Eclipse memory analyzer) On Nov 24,

[android-developers] Need info of Email app in Android source code

2011-11-24 Thread Pradeep
Does anyone have documented the description of the email and its folder structure in android source code.Please share if anyone documented. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] handling back button

2011-11-24 Thread Jim Graham
On Thu, Nov 24, 2011 at 02:14:21AM -0800, karthik wrote: i am working on an application in which if i click(normal click) on the back button the moveTaskToBackgroud(true) must be called. else if it is a longpress then there id nothing to do. You already got your answer from Mark Murphy...why

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread Jim Graham
On Thu, Nov 24, 2011 at 03:51:50PM +0530, arun kumar wrote: *The basic bitrate formula is First, I don't see where you've included framing and CRC overhead. You need to include that, unless you're only interested in the HDD-HDD throughput. S = Size you like to use in KB (note 700 MB x 1024*?*

[android-developers] Lists with white background and black color

2011-11-24 Thread wyo
Ordinary lists have black background and white text yet I'd like to have it reverse. I've tried to add android:theme=@android:style/Theme.Light to the activity in my manifest yet with no effect. Any idea how to change my list? -- You received this message because you are subscribed to the

Re: [android-developers] Lists with white background and black color

2011-11-24 Thread Mark Murphy
That should have worked fine. If you are using Eclipse, try cleaning the project or otherwise forcing Eclipse to recompile and reinstall the APK in your emulator. On Thu, Nov 24, 2011 at 11:35 AM, wyo otto.w...@orpatec.ch wrote: Ordinary lists have black background and white text yet I'd like to

[android-developers] Re: Lists with white background and black color

2011-11-24 Thread lbendlin
Never assume. There are many device manufacturers out that who have a different opinion of ordinary. You may need to set the attributes for the list elements separately. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Bizarre HorizontalScrollView behavior

2011-11-24 Thread Petrea Mitchell
Trying to get at least some minimal layout working, I've now got a vertical LinearLayout inside a ScrollView for the PopupWindow layout. Same problems, only along the vertical axis. Could this actually be a PopupWindow problem? Is it a known bug? -- You received this message because you are

[android-developers] Re: android browser plug-ins support

2011-11-24 Thread petr.maza...@mautilus.com
Hi Klimek, Can you provide us more information?? Which Android versions we need, some examples, etc. Thanks, STeN On Nov 24, 2:11 pm, Klimek oskarklimkow...@gmail.com wrote: Yes u can create plugins :D Dnia 24 lis 2011 o godz. 04:13 petr.maza...@mautilus.com petr.maza...@mautilus.com

[android-developers] Re: Android paid technical support

2011-11-24 Thread petr.maza...@mautilus.com
Hi William, We, as a company, have no problems dealing with individual consultants as long as you can give us an invoice and you can provide us some proof of your knowledge. Regards, STeN On Nov 24, 5:32 am, William Ferguson william.ferguson...@gmail.com wrote: I'll give you a quote. What's

[android-developers] Re: Android paid technical support

2011-11-24 Thread petr.maza...@mautilus.com
Hi Kumar, do you know any individuals? Regards, Petr On Nov 24, 4:37 am, Kumar Bibek coomar@gmail.com wrote: You could find a lot of individuals doing this, but I don't yet know about a company that does this. *Thanks and Regards, Kumar Bibek*

[android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Kevin TeslaCoil Software
I'm just trying to understand how secure is SharedPreferences and what alternatives are there, that's all. On a rooted device SharedPreferences absolutely can be tampered with. Same with any on-device storage. However this doesn't mean you can't use them. 1) Obfuscation. This is how Google

Re: [android-developers] Dialog Activity

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 3:14 AM, Aki arnab...@gmail.com wrote: Cannot display an AlertDialog from a non-activity context. OK ... so now, what non-activity context are you trying to display a dialog from and why?

Re: [android-developers] Re: android app throws exception on map overlays tap events

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 12:35 AM, SripadRaj sripadraj1...@gmail.com wrote: the app crashes with null pointer exception. Use your debugger and LogCat to determine what is null. Use your debugger and LogCat to determine why the null object is null. Use your programming skills to prevent the

Re: [android-developers] How to access asp.net webservice with authentication

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 1:07 AM, Samuel jrl...@gmail.com wrote: Do you have reference or example how to access secure asp.net webservice with authentication (user name password) from android? Nope, sorry. Then again, this is not specific to Android, so if you use your favorite search engine,

Re: [android-developers] Two linearlayouts inside onLayout method

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 2:15 AM, Dav sweetcha...@gmail.com wrote: Can i create two linearlayouts inside the onLayout method (i am extending from adapterview)? . Yes, you can create two LinearLayouts. Whether this will actually work as you expect is another question. I want to add couple of

Re: [android-developers] complete video player app crash on back btn

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 5:20 AM, Naveen kumarnaveen.si...@gmail.com wrote: Here i am playing a video when video completed then back button or navigating on activity gives crash, before finish the video when back press no error . Debug your app. At the very least, post a stacktrace of the

Re: [android-developers] hardware acceleration

2011-11-24 Thread Kostya Vasilyev
Where do you perform this test relative to the activity's lifecycle? The method will not return true until the view has been attached to a hardware accelerated window. The activity's onCreate is too early for that, so you get false. -- Kostya 24 ноября 2011 г. 16:50 пользователь New Developer

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread Lew
On Thursday, November 24, 2011 7:50:07 AM UTC-8, Spooky wrote: On Thu, Nov 24, 2011 at 03:51:50PM +0530, arun kumar wrote: *The basic bitrate formula is First, I don't see where you've included framing and CRC overhead. You need to include that, unless you're only interested in the HDD-HDD

[android-developers] Re: Calculate percentage of a video file

2011-11-24 Thread Lew
How about you provide an SSCCE http://sscce.org/? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Lew
On Thursday, November 24, 2011 4:59:55 AM UTC-8, Mark Murphy (a Commons Guy) wrote: On Thu, Nov 24, 2011 at 7:56 AM, Aitor Mendaza Ormaza aitor...@gmail.com wrote: I want to make something similar to a struct in C/C++, to represent a collection of structured data. In Java, this is

Re: [android-developers] C/C++ struct in android

2011-11-24 Thread Lew
A struct would /be/ an object, thus its overhead would be the same as for a class, because in Java, a class *is* a struct, or to put it another way, there is no such thing as a struct, and if there were, it would be an object. How do you think you can create an object for free by calling it a

Re: [android-developers] screenshot in android

2011-11-24 Thread Lew
As stated by another poster, this technique will not give you a _screen_ shot but a image of GUI elements within the activity. They are not quite the same. Also, some techniques for grabbing frame-buffer data can retrieve partially-drawn frames. The only way I've found to reliably obtain a

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Ricardo Amaral
On Thursday, November 24, 2011 2:57:47 PM UTC, Nikolay Elenkov wrote: On Thu, Nov 24, 2011 at 11:37 PM, Ricardo Amaral mas...@ricardoamaral.net wrote: I don't think those issues are really that relevant. For my situation at least. It's your app, so you should know best... But, This

Re: [android-developers] screenshot in android

2011-11-24 Thread Lew
Mukesh Srivastav wrote: L... Step 4: in the Step 3# you have the Bitmap object, use File:\\ operations to save the bitmap. you are done. Did you mean file:// operations? I am not familiar with File:\\ operations. As for file operations, Android (i.e., Linux) doesn't use backslash as

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread Jim Graham
On Thu, Nov 24, 2011 at 10:14:24AM -0800, Lew wrote: On Thursday, November 24, 2011 7:50:07 AM UTC-8, Spooky wrote: It is universal in the computer world to use KB to mean kilobytes. You weren't aware of this? It's been like this for decades. Correction: that's kB (lowercase 'k'. And yes,

[android-developers] Re: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-24 Thread Lew
BelvCompSvs wrote: I'm just here to confirm what the other two coders told you ~ I found it on first read place a catch( Throwable ) around the call to .print_result(MyService. That's actually pretty bad advice. Don't place a 'catch (Throwable ...)' around anything. java:62) and look

[android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Ricardo Amaral
On Thursday, November 24, 2011 5:36:20 PM UTC, Kevin TeslaCoil Software wrote: I'm just trying to understand how secure is SharedPreferences and what alternatives are there, that's all. On a rooted device SharedPreferences absolutely can be tampered with. Same with any on-device

[android-developers] Re: Lists with white background and black color

2011-11-24 Thread wyo
I've cleaned and rebuild my project twice without a change, still dark. I've deinstalled the app from the device and tried again, no change again. I've added the android:theme=@android:style/Theme.Light to the application as well with no effect. So what now? On 24 Nov., 17:50, Mark Murphy

Re: [android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Kostya Vasilyev
If what you want is to be able to give out free copies to some users, implement another unlocker, that is similar to the paid premium unlocker you're planning for Market, but is free. Encrypting preference data has nothing to do with LVL per se, and does not require that the app is paid or free.

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread Jim Graham
On Thu, Nov 24, 2011 at 12:51:38PM -0600, Jim Graham wrote: Do you have any idea how many times I've run into cases where throughput is listed as kb/s in one spot, and kB/s in another, on the same screen, with the same numbers? So which fscking value is it? You tell me. Now correcting

Re: [android-developers] Re: Lists with white background and black color

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 1:52 PM, wyo otto.w...@orpatec.ch wrote: I've cleaned and rebuild my project twice without a change, still dark. I've deinstalled the app from the device and tried again, no change again. I've added the android:theme=@android:style/Theme.Light to the application as

[android-developers] Re: Addictive

2011-11-24 Thread Lew
On Sunday, November 20, 2011 7:45:01 AM UTC-8, MosToneDef wrote: Dear Google; This isn't Google, this is the Android Developers discussion group. I've been a Chrome user since its release. I've visited your app store many times. I recently received my Android phone and have been

Re: [android-developers] Calculate percentage of a video file

2011-11-24 Thread Raghav Sood
Now correcting myself. :-) Make that Mb/s and MB/s on the same screenkB/s went out a long, long time ago. :-) Not so. Here in India we still have kB/s connections. MB/s ones have only recently turned up here. Thanks -- You received this message because you are subscribed to the Google

Re: [android-developers] Unit Test Fragment

2011-11-24 Thread Lew
Mark Murphy (a Commons Guy) wrote: Stuart Turner wrote: I'd like to unit test a fragment but cannot find any documentation or examples of how this can be achieved. Can anyone assist me with this please? Use the same approaches as you would for a View. Use AndroidTestCase to confirm

[android-developers] Re: C/C++ struct in android

2011-11-24 Thread Bret Foreman
If the OP is really concerned about performance he can create an array of objects and implement his own protocol for reusing them. Then after the initial creation of the array, no objects need to be either created or destroyed. -- You received this message because you are subscribed to the

[android-developers] How to play MP4 videos on Android 1.5 easily?

2011-11-24 Thread saex
Ineed to play a short MP4 video when my app starts. I'm searching info about how to load mp4 videos but i can't find the way to do it on Android 1.5. My app sould be compatible from Android 1.5 to 4.0 I tryed with a lot of tutorials from google, but none of them works. For example, now i'm trying

[android-developers] Re: Action Bar

2011-11-24 Thread b0b
The problem is that the emulator does not emulate the no hardware buttons which make things very hard to visualize and test unless you own a Galaxy Nexus. That, and showIfRoom is really a fuzzy concept. I expect there will be many apps targetting Honeycomb that will look initially funny under

[android-developers] Re: Reconnect on ACTION_SCREEN_ON - wifi icon incorrect

2011-11-24 Thread Keith Hill
Right, but my app turns wifi off at screen off and turns it on and back off on a schedule to get updates. On Nov 23, 10:51 pm, Kostya Vasilyev kmans...@gmail.com wrote: I don't have an answer, but The firmware already does all this - disabling WiFi when the screen goes off and enabling

[android-developers] Re: C/C++ struct in android

2011-11-24 Thread Lew
Bret Foreman wrote: If the OP is really concerned about performance he can create an array of objects and implement his own protocol for reusing them. Then after the initial creation of the array, no objects need to be either created or destroyed. This might or might not have any effect on

Re: [android-developers] Re: C/C++ struct in android

2011-11-24 Thread Kristopher Micinski
On Thu, Nov 24, 2011 at 2:44 PM, Lew lewbl...@gmail.com wrote: Bret Foreman wrote: If the OP is really concerned about performance he can create an array of objects and implement his own protocol for reusing them. Then after the initial creation of the array, no objects need to be either

[android-developers] Re: Lists with white background and black color

2011-11-24 Thread wyo
There's an error in the build.xml file at project name=ListViewDemo default=help default target help does not exist in this project How do I correct this? On 24 Nov., 20:06, Mark Murphy mmur...@commonsware.com wrote: On Thu, Nov 24, 2011 at 1:52 PM, wyo otto.w...@orpatec.ch wrote: I've

Re: [android-developers] Re: Lists with white background and black color

2011-11-24 Thread Mark Murphy
Run android update project -p . from the project directory. I haven't updated the repo for that project since the new build tools, sorry. On Thu, Nov 24, 2011 at 3:06 PM, wyo otto.w...@orpatec.ch wrote: There's an error in the build.xml file at project name=ListViewDemo default=help

[android-developers] Re: Lists with white background and black color

2011-11-24 Thread wyo
It updated the local.properties and proguard.cfg files but the error in build.xml still persist. On 24 Nov., 21:34, Mark Murphy mmur...@commonsware.com wrote: Run android update project -p . from the project directory. I haven't updated the repo for that project since the new build tools,

Re: [android-developers] Re: Lists with white background and black color

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 4:08 PM, wyo otto.w...@orpatec.ch wrote: It updated the local.properties and proguard.cfg files but the error in build.xml still persist. Actually, the files in the repo are up to date for the current build tools. Make sure you are on the current build tools via the SDK

  1   2   >