Re: [android-developers] Extreme battery life

2011-11-24 Thread Kristopher Micinski
On Tue, Nov 22, 2011 at 4:26 PM, Bret Foreman wrote: > I'm looking to put a phone in a remote location off the grid to report > back some sensor data once a day. I can buy after-market extended-life > batteries for many popular phones and I'm wondering what kind of life > I might get from this arr

[android-developers] Re: Issue with taking photo

2011-11-24 Thread limtc
I have solved my issue. It seems that HTC Jetstream (or Honeycomb) will do a orientation changed even if I have set the app to portrait. The solution is to add android:configChanges="orientation" in activity. On 11月24日, 下午5时29分, limtc wrote: > Hi, > > I have an issue with photo taking in Android

Re: [android-developers] handling back button

2011-11-24 Thread NaveenShrivastva
In case of activity life cycle when user pressing the back or home button then onPause method calls by process When i am trying to handle activitySwitchFlag and database on pause then app crash , please help me is any way for block home button for my on activity if no then how to handle separate

[android-developers] HELP : Downloading Previous version of NDK(Android NDK Revision 5b)

2011-11-24 Thread s.rawat
Hi , I am trying to compile the ffmpeg source code for android.I downoaded the ffmepg source from here -- http://bambuser.com/opensource , its README says --> *Download the Android NDK Revision 5b from http://developer.android.com/sdk/ndk/index.htm*l I googled and downloaded it from here --> http

[android-developers] Re: Encryption of phonebook contacts

2011-11-24 Thread rachana govilkar
hey hieven i am working on Contacts thing... n i was reading the link when i came across ur post i knw it is not much related to this thread.. if i open a chat application i just want to show a list of friends who r using d application n not everybody like we have in Whatsapp..

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

2011-11-24 Thread Lew
Kristopher Micinski wrote: > > Lew wrote: > >> >> Kristopher Micinski wrote: >> >>> > 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

Re: [android-developers] Re: Encryption of phonebook contacts

2011-11-24 Thread Chander mourya
Hi Thanks for your response. I read this security link provided by you,what i understand is it comes under Kernel space. you are working in this area can you please give me some directions so that i can move forward in this direction. my main task is to Encrypt phonebook contacts while saving them.

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

2011-11-24 Thread Kristopher Micinski
On Fri, Nov 25, 2011 at 1:22 AM, Lew wrote: > > > On Thursday, November 24, 2011 8:49:39 PM UTC-8, Kristopher Micinski 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 .p

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

2011-11-24 Thread Lew
On Thursday, November 24, 2011 8:49:39 PM UTC-8, Kristopher Micinski 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 prett

[android-developers] Re: android 3.0:Text Selection in webview

2011-11-24 Thread shweta
actually i wants, as i select the text from webview.it prvoides the automatically functionality to selection .but i Wants copy this selected text to clipboard from own creating button.if u have source code for it plz send me On Nov 25, 7:23 am, IcedNet wrote: > You need to refer to the ClipboardM

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

2011-11-24 Thread Kristopher Micinski
On Thu, Nov 24, 2011 at 11:49 PM, Kristopher Micinski < krismicin...@gmail.com> 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 actual

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

2011-11-24 Thread Kristopher Micinski
>> >> 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. >> > >> >> E

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

2011-11-24 Thread Lew
On Thursday, November 24, 2011 2:35:29 PM UTC-8, Kristopher Micinski wrote: > > On Thu, Nov 24, 2011 at 1:52 PM, Lew wrote: > > 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 > >

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

2011-11-24 Thread Dusk Jockeys Android Apps
Oh for crying out loud... Look at your code! You have "current" as the total video duration, and "total" as the current position. Swap the values of the variables. Then get back to us with an Android specific issue... On Nov 24, 6:15 pm, Naveen wrote: > Hello Sir, > > I am playing a video fil

[android-developers] How to analyze the change of native memory allocation

2011-11-24 Thread xeagle
Hi, I use DDMS's native heap tool to analyze the memory allocation of native code. This tool is very useful. However, I'd like know newly created native memory when I do something on my phone. It seems that DDMS does not have this functionality. I heard that java's memory tool can compare 2 hprof

[android-developers] Re: OnClick not being handled by CompundView with EditText and ImageButton

2011-11-24 Thread DoubleCheese
It looks like I need to bind the event listeners to on the onFinishInflate of my compound Control. If I move the onCLick handler there, it seems to work On Nov 25, 3:04 pm, DoubleCheese wrote: > Hi, > > I've tried to create a simple compound view with an EditTExt and a > button, but when I try

[android-developers] Efficeint Handling of Multipart SMS or Long SMS in Android

2011-11-24 Thread RobinDroid
I have a few questions on Android SMSManager. 1. How do I send long SMS, say more than 160 characters. My application send SMS as an email when there is no wifi/data connection. The SMS as email is retrieved by the server and the server sent a msg: "Your email has been recieved". How do I show thi

[android-developers] Re: android 3.0:Text Selection in webview

2011-11-24 Thread IcedNet
You need to refer to the ClipboardManager class in the 3.0 documentation, first, as you are using a deprecated class ...text.ClipboardManager, and method (emulateShiftHeld). Second, I have used the web view extensively in 3.0+, and the standard Selection actionmode functions fairly well - so long a

[android-developers] OnClick not being handled by CompundView with EditText and ImageButton

2011-11-24 Thread DoubleCheese
Hi, I've tried to create a simple compound view with an EditTExt and a button, but when I try to register a onClickListener on the imagebutton it doesn't seem to get called. Here is the code: This code is in the constructor of my CompoundView which extends FrameLayout: ... final View root = Lay

[android-developers] Re: Encryption of phonebook contacts

2011-11-24 Thread BelvCompSvs
I have been working on this ~ seems to me doing any crypto where Android keeps the contacts is going to be interfering with the operating system's fundamental design but if one wishes to just keep some info in an enciphered / encrypted form then my suggestion for the moment is to start with how to

[android-developers] Re: ArrayAdapter not updating its ListView

2011-11-24 Thread scottishwildcat
Hi Jon... thanks for the reply. Thought you might have been onto something there, as I wasn't storing the ArrayList that was passed into the ShoppingListAdapter constructor at all -- I was just directly accessing the one defined in the parent activity, as you noticed. So now my adapter construc

[android-developers] Re: ArrayAdapter not updating its ListView

2011-11-24 Thread scottishwildcat
Hi Jon... thanks for the reply. Thought you might have been onto something there, as in fact I wasn't storing the ArrayList that was passed into the ShoppingListAdapter constructor at all -- I was just directly accessing the one in the parent class, as you said, although that does appear to be a

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

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 4:41 PM, Dav wrote: > I need to freeze the first two items of every row in a > horizontal listview. When i do a horizontal scroll the rest of the items > should go beneath the fixed/freezed items. For this reason i wanted > two layouts , add all the fixed elements to one l

Re: [android-developers] hardware acceleration

2011-11-24 Thread New Developer
Thanks The mainActivity calls the Display Activity using inflate LayoutInflater inflater = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); view = inflater.inflate(R.layout.image_viewer, screen); screen is a FrameLayout on the MainActivity, and View

[android-developers] QHD display issue in emulator

2011-11-24 Thread Stephen Lebed
Hi All, I'm trying find out if this is a bug or not. I've created two AVD's for a qHD device with a resolution of 960x540, and a density of 220 and 240. In both cases DisplayMetrics.widthPixels reports 720 and DisplayMetrics.heightPixels is reporting 480. Is there another settings that I'm miss

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

2011-11-24 Thread Dav
I need to freeze the first two items of every row in a horizontal listview. When i do a horizontal scroll the rest of the items should go beneath the fixed/freezed items. For this reason i wanted two layouts , add all the fixed elements to one layout and add all the free items in another. On Nov

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

2011-11-24 Thread Kristopher Micinski
On Thu, Nov 24, 2011 at 1:52 PM, Lew wrote: >  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 (

Re: [android-developers] Get Key events from anywhere

2011-11-24 Thread Kristopher Micinski
On Thu, Nov 24, 2011 at 5:22 PM, LiTTle wrote: > Hi, > > I would like to run my application using a "key press (hardware > button)" shortcut or run it when I unlock my phone! Is it possible to > get key events anytime by using a Receiver or a Service? > Nope! For fear of keyloggers. kris -- Y

[android-developers] Get Key events from anywhere

2011-11-24 Thread LiTTle
Hi, I would like to run my application using a "key press (hardware button)" shortcut or run it when I unlock my phone! Is it possible to get key events anytime by using a Receiver or a Service? The best thing I achieved is with USER_PRESENT but it is not what I want! Thanks for your time spent

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

2011-11-24 Thread Bret Foreman
On Nov 24, 11:44 am, Lew 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 > > created or destroy

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

2011-11-24 Thread Graham Bright
Guys thanks a million I got it working. I can post the code if anyone is interested? On 24 Nov 2011 18:52, "Lew" wrote: BelvCompSvs wrote: > > I'm just here to confirm what the other two coders told you ~ I found > it o... That's actually pretty bad advice. Don't place a 'catch (Throwable ...)

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 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 Manager. --

[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 wrote: > Run > > android update project -p . > > from the project directory. I haven't updated the repo for that > project since the new build tools, sorry. > > >

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 wrote: > There's an error in the "build.xml" file at > > > > "default target help does not exist in this project" > > H

[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 "default target help does not exist in this project" How do I correct this? On 24 Nov., 20:06, Mark Murphy wrote: > On Thu, Nov 24, 2011 at 1:52 PM, wyo wrote: > > I've cleaned and rebuild my project twice without a change, still > > dark. I've de

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 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 >> created or

[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 effec

[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 wrote: > I don't have an answer, but > > The firmware already does all this - disabling WiFi when the screen goes > off and enabling it when the user

[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] 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: 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 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 >

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 Googl

[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] Re: Lists with white background and black color

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 1:52 PM, wyo 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 well with no

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 mys

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.

[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 wro

[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-de

[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 l

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

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 backsla

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 > 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 g

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 fu

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

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 > 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 "clas

[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 android-develo

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

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] complete video player app crash on back btn

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 5:20 AM, Naveen 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 crash if you expect help.

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

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 2:15 AM, Dav 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 views into the fi

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 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, you should f

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 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 logic that made your null

Re: [android-developers] Dialog Activity

2011-11-24 Thread TreKing
On Thu, Nov 24, 2011 at 3:14 AM, Aki 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? - T

[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

[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 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* > *http://techdroid.kbeanie.comhttp://www.kbeanie.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 wrote: > I'll give you a quote. What's your question? > > William > >

[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 wrote: > Yes u can create plugins :D > > Dnia 24 lis 2011 o godz. 04:13 "petr.maza...@mautilus.com" > napisał(a): > > > How is the situation with the An

[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 subsc

[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 gr

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 wrote: > Ordinary lists have black background and white text yet I'd like to > have it reverse.

[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 Goo

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*?

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...

[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 android-develop

[android-developers] Re: OutOfMemoryError

2011-11-24 Thread bob
On Nov 24, 12:55 am, Johan Rydenstam 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, 2011, at 9:51 AM, bob wrot

[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 woul

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 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 validation system for e

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 Devel

[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 androi

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 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 doesn't add anything to

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" 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 developed in C or Java

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 wrote: > 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 circumstances, but this is not

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 Mark Murphy
On Thu, Nov 24, 2011 at 8:09 AM, Aitor Mendaza Ormaza 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. http://java.sun.com/developer/Books/shiftintojava/page1.htm

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 Gro

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 scr

[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 ar

[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 em

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 wrote: > On Thu, Nov 24, 2011 at 7:56 AM, Aitor Mendaza Ormaza > 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". > > Really? I had no idea about

Re: [android-developers] handling back button

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 5:09 AM, 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. Please do not do this. Please leave the BACK button alone. The user can press HOME to achieve your desired function

Re: [android-developers] screenshot in android

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 5:57 AM, vani reddy 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), but you cannot programmati

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 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 > two column. First t

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 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 > :) No. -- Ma

Re: [android-developers] Re: Action Bar

2011-11-24 Thread Mark Murphy
On Thu, Nov 24, 2011 at 2:26 AM, tobias 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 key on the s

[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] 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 invalid,

[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 present)

[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 r

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 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), >> etc. > > I haven

  1   2   >