[android-developers] Open one html file from sdcard

2010-10-05 Thread cool.manish
Hi, I have push one html page on my sdcard in emulator. how can I see it and can run it as we do in the desktop? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Open one html file from sdcard

2010-10-05 Thread Kumar Bibek
Use a File manager to navigate to the HTML file (Astro file manager) and open it. -Kumar Bibek http://techdroid.kbeanie.com On Oct 5, 11:06 am, cool.manish mannishga...@gmail.com wrote: Hi, I have push one html page on my sdcard in emulator. how can I see it and can run it as we do in the

[android-developers] Changing the width of an ImageView

2010-10-05 Thread Saied
Hi, This looks too simple, but I can't figure out why it does not. I have an ImageView inside a relative layout: ImageView android:id=@+id/DRAG android:layout_height=10dip android:background=@drawable/drag_stroke

[android-developers] Re: Open one html file from sdcard

2010-10-05 Thread cool.manish
Is it some third party application? Do I need to install this application? On Oct 5, 11:15 am, Kumar Bibek coomar@gmail.com wrote: Use a File manager to navigate to the HTML file (Astro file manager) and open it. -Kumar Bibekhttp://techdroid.kbeanie.com On Oct 5, 11:06 am, cool.manish

[android-developers] Re: Open one html file from sdcard

2010-10-05 Thread Kumar Bibek
Yes... You can search for it in the market. On Oct 5, 11:29 am, cool.manish mannishga...@gmail.com wrote: Is it some third party application? Do I need to install this application? On Oct 5, 11:15 am, Kumar Bibek coomar@gmail.com wrote: Use a File manager to navigate to the HTML file

[android-developers] Re: The ultimate, killer Android Marketplace replacement

2010-10-05 Thread Kumar Bibek
Nice idea. But I guess, the problem is how to make the payouts to developers who are all over the world. Paypal is a good option. -Kumar Bibek http://techdroid.kbeanie.com On Oct 5, 1:17 am, Chris Stewart cstewart...@gmail.com wrote: Hard not to agree with you.  I think Amazon poses a good step

Re: [android-developers] Re: Open one html file from sdcard

2010-10-05 Thread dinesh adwani
There is no need to go android market..jus create one activity which Use ExternalStoarageDirectory and list all files ends with .html. and use webview to load it . you will see your contentand this can be your app to see all html pages... On Tue, Oct 5, 2010 at 12:19 PM, Kumar Bibek

[android-developers] Re: Changing the width of an ImageView

2010-10-05 Thread Kumar Bibek
You would perhaps have to re-draw the view heirarchy, at-least it's immediate parent. -Kumar Bibek http://techdroid.kbeanie.com On Oct 5, 11:17 am, Saied saie...@gmail.com wrote: Hi, This looks too simple, but I can't figure out why it does not. I have an ImageView inside a relative layout:

[android-developers] Re: Open one html file from sdcard

2010-10-05 Thread Kumar Bibek
There is no need to go android market..jus create one activity which Use ExternalStoarageDirectory and list all files ends with .html. and use webview to load it . you will see your contentand this can be your app to see all html pages... Sure you can do that. If you really want to

Re: Fwd: [android-developers] Re: locale change does not affect menu

2010-10-05 Thread Kumar Bibek
All phones would support locales. May be emulators don't but I guess if devices are not supporting multiple locales, and it is an important thing for the user, he will not buy that phone or return it. -Kumar Bibek http://techdroid.kbeanie.com On Sep 30, 10:27 am, dinesh adwani

[android-developers] Re: Changing the width of an ImageView

2010-10-05 Thread Saied
Thank you! I inserted: final ViewGroup boxView = ( ViewGroup ) findViewById(R.id.relBox ); boxView.invalidate(); relBox is the relativeView holding the image. So that's the immediate parent. This did not fix the problem. is invalidate() the right way to redraw? Best, Saied

[android-developers] Re: Scrollable Menu Bar like Fox news app

2010-10-05 Thread Ganapathy.C
ya i use for display image gallery.. k i will try that but it may not look good to view so only i m asking.. ok 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] Re: widget with custom bitmaps

2010-10-05 Thread Kumar Bibek
No you can't. Your resources have to be inside the res folder. -Kumar Bibek http://techdroid.kbeanie.com On Oct 4, 10:42 pm, siliconeagle rrmu...@gmail.com wrote: Well as far as i know the resource id's are created at design time (in R.java). Is there a way to tell Android to create a new

[android-developers] want to access APIs android_view_surface.cpp from my native code

2010-10-05 Thread Tejas
Hello All, I am working on video renderer application which need surface and control of surface. And through isurface i can register heap buffer to that surface and post buffer operation. I have gone through android_view_surface.cpp file. It is having all required APIs which are

Re: [android-developers] want to access APIs android_view_surface.cpp from my native code

2010-10-05 Thread Dianne Hackborn
Sorry, that isn't an API, it is an internal implementation detail. It is not part of the SDK or NDK, so this question should be directed towards one of the platform development groups like android-platform. On Tue, Oct 5, 2010 at 12:37 AM, Tejas tejasbh...@gmail.com wrote: Hello All,

[android-developers] Paid apps in new countries are live!

2010-10-05 Thread webmonkey
Here is the list of countries that can now be enabled in the Locations list Argentina Australia Austria Belgium Brazil Canada Czech Republic Denmark Finland France Germany India Israel Italy Japan Mexico Netherlands New Zealand Norway Poland Portugal Russia South Korea Spain Sweden Switzerland

[android-developers] Get timing information about key events

2010-10-05 Thread Samuel Skånberg
Hello, I'm doing my thesis work on resource management on android and I want to be able to measure the responsiveness of an application to figure out if the application get enough resources and is scheduled often enough. So what I want is a way to insert timestamps on events, e.g. button clicks,

[android-developers] connecting to google map data api using http protocol

2010-10-05 Thread dadada
hi, since the gdata doesn't work on android, i'm trying to use http protocol. Retrieving the map feed from this http://maps.google.com/maps/ms?hl=enie=UTF8oe=UTF8num=200start=200vps=1jsv=282dmsa=33msid=106069377598790155454.0004720325247dc0c953aabauth=4caac8b6s7fLDxa4oy-0GX5xHS8iZJIEeWo, using

[android-developers] Is a TextView background included in wrap_content measurement?

2010-10-05 Thread Richard Leggett
I have a PNG being used for a TextView background. The TextView is set to wrap_content for width/height. The problem is, I cannot get it to be smaller than the original pixel dimensions of the background PNG, this leaves my text floating in the middle, as if I've used padding. TextView

[android-developers] Android emulator not booting with customized kernel image

2010-10-05 Thread nalinkumarz
Hi All, The emulator screen does not show up with new zImage... The steps I followed are: 1) Downloaded the android kernel from git clone git://github.com/CyanogenMod/cm-kernel.git 2) extracted config file from config.gz from /proc/config.gz in emulator 3) copied config file to .config in

[android-developers] Re: Hide soft keyboard

2010-10-05 Thread nishu
hey this works for me you can write this in buttons onClickListener InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText_object.getWindowToken(), 0); write this in a class which extends activity. or u

[android-developers] OOS : How do you use google groups ?

2010-10-05 Thread Yahel
Hi all, Sorry for this OOS but Android developper is the only part of my life on google groups and call me thick but I can not for the life of me understand how it works !! I have the hardest time following a thread i'm participating in because I can simply not find it back when I look for it,

[android-developers] Android emulator not booting with customized kernel image

2010-10-05 Thread nalinkumarz
Hi All, The emulator screen does not show up with new zImage... The steps I followed are: 1) Downloaded the android kernel from git clone git://github.com/CyanogenMod/cm-kernel.git 2) extracted config file from config.gz from /proc/config.gz in emulator 3) copied config file to .config in

[android-developers] Android emulator not booting with customized kernel image

2010-10-05 Thread nalinkumarz
Hi All, The emulator screen does not show up with new zImage... The steps I followed are: 1) Downloaded the android kernel from git clone git://github.com/CyanogenMod/cm-kernel.git 2) extracted config file from config.gz from /proc/config.gz in emulator 3) copied config file to .config in

[android-developers] Re: EditText animation onTouch - Custom animation class or ViewSwitcher

2010-10-05 Thread nishu
why to use animation unnecessarily you can just write in on onClickListener edittext_object.setMinLines(5); here 5 represents number of lines, it depends on you. On Oct 5, 8:53 am, santoash santo...@gmail.com wrote: I have a imageView, editText and textView  within a LinearLayout. I would like

Re: [android-developers] OOS : How do you use google groups ?

2010-10-05 Thread Miguel Morales
I simply use google groups within the gmail web interface. It works great. I've heard that the regular web interface is pretty buggy. On Tue, Oct 5, 2010 at 2:11 AM, Yahel kaye...@gmail.com wrote: Hi all, Sorry for this OOS but Android developper is the only part of my life on google groups

[android-developers] Re: PNG file with transparent drop shadow that appears as solid

2010-10-05 Thread nishu
no its the default feature of android. option is to use image without shadow. i didn't got any pngfix which is used in html and css On Oct 4, 11:44 pm, avigadl avig...@gmail.com wrote: No one knows what to do? On Oct 3, 11:10 pm, avigadl avig...@gmail.com wrote: Hi, I have a PNG file with

[android-developers] WebView content fit display screen!!!

2010-10-05 Thread viktor
Hi, I tried WebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); but view crashed in 1.6 OS. I calculate scale(webview.capturePicture()) but I cannot set it after page loaded. Is it any working solution for fitting webview content to display (1.6 OS)? -- You received this

[android-developers] Please help --- Delay in the text being displayed in the browser proxy authentication dialog box

2010-10-05 Thread Revathi K J Ramanan
Hi, When I open the browser, I have made the settings for a proxy authentication dialog box to come up asking for user name and password. But a strange issue is being observed... When the dialog box comes up and when I type the user name using the KEYBOARD, it takes a long time for the letters

[android-developers] Screen shot of the canvas screen

2010-10-05 Thread Muthu Kumar K.
Hi All, I have the canvas in specific area in my application. I want to take screen shot of the canvas area. How can get the screen shot? Kindly help me. Thanks in Advance, Muthu Kumar K. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Screen shot of the canvas screen

2010-10-05 Thread Yahel
How can get the screen shot? Kindly Switch to DDMS perspective in Eclipse, then in the top left corner select the device you are running, then click on the darkblue icon above the list. It will take a screenshot of whatever is displayed on your device screen. Yahel -- You received this

[android-developers] Re: Android Maps API + KML file

2010-10-05 Thread Spiral123
The Web api for javascript will pull down the KML from Google. To display the information on your map you will have to parse the file manually and build the relevant overlay(s). On Oct 4, 4:51 pm, Tommy droi...@gmail.com wrote: Hi everyone, I have some KML files I would like to display in my

[android-developers] Re: New ADT available.

2010-10-05 Thread String
Bump... Just got back from vacation and am still unable to upgrade ADT to 0.9.9. Tried detouring through 0.9.8 but ran into the same problem. Any news, anyone? I'm really hoping to avoid the pain of wiping, reinstalling, and reconfiguring Eclipse from scratch. Like I don't have anything better to

[android-developers] Re: Screen shot of the canvas screen

2010-10-05 Thread Muthu Kumar K.
Thanks for your kind reply, i know about this feature already. While running the app i need to take a screen shot of the canvas, and save it as an image (.jpeg/.png) through code. Thanks in Advance, Muthu Kumar K. On Oct 5, 4:55 pm, Yahel kaye...@gmail.com wrote: How can get the screen shot?

Re: [android-developers] OOS : How do you use google groups ?

2010-10-05 Thread TreKing
On Tue, Oct 5, 2010 at 4:11 AM, Yahel kaye...@gmail.com wrote: I have the hardest time following a thread i'm participating in because I can simply not find it back when I look for it, even using the search engine at the top !! I would not call that a search engine. That implies some

[android-developers] XML encryption

2010-10-05 Thread bagelboy
Hello Developers, One of my apps uses custom xml files for much of the data used by the app, I'd like to encrypt the data as part of a copy protection plan and I would like some views about how best to go about it. I realize that this isn't going to solve all my copy protection problems but it

[android-developers] XML encryption

2010-10-05 Thread bagelboy
Hello Developers, One of my apps uses custom xml files for much of the data used by the app, I'd like to encrypt the data as part of a copy protection plan and I would like some views about how best to go about it. I realize that this isn't going to solve all my copy protection problems but it

[android-developers] Issue of getting keyEvents for device having both hard and soft keyboard.

2010-10-05 Thread Alok Kulkarni
Hi all, I am developing the application where i want to capture all 'keyEvents' in my code. I used onKeyDown(int keyCode, KeyEvent event) to achieve this. But it has some flaw in it, 1.When i have device with Hardware keyboard, onKeyDown works well with it. But when i use Virtual keyboard it

Re: [android-developers] Android emulator not booting with customized kernel image

2010-10-05 Thread { Devdroid }
Please Please help me in resolving the problem. Thanks in advance.. Please help I'd ask on Cyanogen related site first -- 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] Android emulator not booting with customized kernel image

2010-10-05 Thread Kumar Bibek
Any messages in Logcat? -Kumar Bibek http://techdroid.kbeanie.com On Tue, Oct 5, 2010 at 7:16 PM, { Devdroid } webnet.andr...@gmail.comwrote: Please Please help me in resolving the problem. Thanks in advance.. Please help I'd ask on Cyanogen related site first -- You received this

[android-developers] Re: Could use some help (free game on Galaxy S problem)

2010-10-05 Thread Patrick
Thanks for the help Zarah! Turns out the problem was a couple of mistakes in my mod tracker (audio) interface class. The N1 and emulator were very forgiving, but the Galaxy S was less so. One mistake was that the params in the getMinBufferSize() call and the allocation of the AudioTrack didn't

[android-developers] Spinner. disabling does not provide any visual indication

2010-10-05 Thread Anil
When you disable a button, it becomes greyed out. However with the Spinner, the same UI principle does not hold. Just wondered if it is a bug. Anil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] What could cause ProgressDialog Spinner to stop spinning?

2010-10-05 Thread Jin Chiu
I've observed instances when the spinner inside my ProgressDialog would occassionally freeze- stop spinning. What are some possible causes for this? While the ProgressDialog is up, we typically perform a lot of a work on the UI thread. Could this be depriving the ProgressDialog of drawing cycles?

[android-developers] ImageView slow when using SetImageResource and MediaPlayer

2010-10-05 Thread ArcDroid
Hello, I am trying to play a sound and also show a new picture. The pictures are only ~1Kb in size, but it slows down the audio when I add in the setImageResource. Is it faster to use an array? I have tried running the audio in a new thread, but that doesn't seem to help. Thanks private

[android-developers] Can't Find R.java

2010-10-05 Thread adel zalok
Hello, I wanted to use the ApiDemos in the SDK samples but I have a problem in finding the R.java file, I don't know why is it missing ?? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] What could cause ProgressDialog Spinner to stop spinning?

2010-10-05 Thread Nam Ngo
When you dismiss the progress dialog, next time you show it, it will not spin, try to create new progress dialog, BR, Nam On Tue, 2010-10-05 at 07:48 -0700, Jin Chiu wrote: I've observed instances when the spinner inside my ProgressDialog would occassionally freeze- stop spinning. What are

Re: [android-developers] Can't Find R.java

2010-10-05 Thread Simon Platten
Hi, R.java is generated by the IDE. Regards, Simon On Tue, Oct 5, 2010 at 3:51 PM, adel zalok adel.zalok...@gmail.com wrote: Hello, I wanted to use the ApiDemos in the SDK samples but I have a problem in finding the R.java file, I don't know why is it missing ?? Thanks in advance. --

Re: [android-developers] ImageView slow when using SetImageResource and MediaPlayer

2010-10-05 Thread Simon Platten
Hi, Why don't you play your audio in one thread and play your animation in another thread? The way you have it now, its single synchronous process. Regards, Simon On Tue, Oct 5, 2010 at 3:50 PM, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I am trying to play a sound and also show a new

[android-developers] Re: Can't Find R.java

2010-10-05 Thread Bret Foreman
R.java is a generated file, not one you create. It should be refreshed whenever you do a build. On Oct 5, 7:51 am, adel zalok adel.zalok...@gmail.com wrote: Hello, I wanted to use the ApiDemos in the SDK samples but I have a problem in finding the R.java file, I don't know why is it missing

Re: [android-developers] Spinner. disabling does not provide any visual indication

2010-10-05 Thread TreKing
On Tue, Oct 5, 2010 at 9:42 AM, Anil anil.r...@gmail.com wrote: Just wondered if it is a bug. Apparentlyhttp://code.google.com/p/android/issues/detail?id=6648q=spinnercolspec=ID%20Type%20Status%20Owner%20Summary%20Stars .

Re: [android-developers] Re: Can't Find R.java

2010-10-05 Thread Ramaraju naga
Clean and rebuild...R.Java will generate automatically On Tue, Oct 5, 2010 at 8:33 PM, Bret Foreman bret.fore...@gmail.com wrote: R.java is a generated file, not one you create. It should be refreshed whenever you do a build. On Oct 5, 7:51 am, adel zalok adel.zalok...@gmail.com wrote:

[android-developers] Re: problem to run video stream in 1.5

2010-10-05 Thread zohar lerman
any one? On Oct 4, 10:47 am, zohar lerman lirazo...@gmail.com wrote: Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws

[android-developers] Re: problem to run video stream in 1.5

2010-10-05 Thread zohar lerman
any one? On Oct 4, 10:47 am, zohar lerman lirazo...@gmail.com wrote: Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws

RE: [android-developers] Re: Android Maps API + KML file

2010-10-05 Thread Tommy
Ok, so If I want this data to show inside a mapView I would need to pull out the points and draw my own polygons or I use a Webview and load the KML data into it. Tommy Android Mobile Phone Application Developer Database Administrator .net Web Specialist -Original Message- From:

[android-developers] Re: OOS : How do you use google groups ?

2010-10-05 Thread Yahel
Thank you both for your answers...Since everyone has a google group now I thought it was a really awsome piece of sofware and that I was just to dumb...Good to know it's not all my fault :D I'm going to try your suggestion of using receiving the list by mail and filtering it in my mail client. If

[android-developers] Re: problem to run video stream in 1.5

2010-10-05 Thread zohar lerman
any one? On Oct 4, 10:47 am, zohar lerman lirazo...@gmail.com wrote: Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web. when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws

[android-developers] Obfuscating parts of an application. Wise or not?

2010-10-05 Thread Moto
I'm a bit scared about obfuscating my application completely. I'm afraid to run into issues where I can't figure out a bug because lines and function names wont match. Please correct me if I'm wrong... I thought maybe the simplest way to protect important parts of my code is to create a jar of

[android-developers] Re: Retrieve android:versionName from Library Project

2010-10-05 Thread MobDev
well, actually in a Project Library a Manifest is created as well... Don't ask me what for but it's there :P So there *would* be a place to put it in :P which I also did, but I noticed everything got lost within the Project importing the Project Library. But I have resolved my issue by

[android-developers] Re: Amazon android market. Anyone take the offer?

2010-10-05 Thread niko20
Guys make sure to check also your email spam folders, the first email I got from Amazon showed up in there. In fact i didn't know I had it until they emailed me again a few days later as a reminder. I've decided to give it a shot, what the heck. Looks like you can cancel with 10 days advance

Re: [android-developers] Re: Retrieve android:versionName from Library Project

2010-10-05 Thread Mark Murphy
On Tue, Oct 5, 2010 at 11:30 AM, MobDev developm...@mobilaria.com wrote: well, actually in a Project Library a Manifest is created as well... Don't ask me what for but it's there :P It is to merge stuff into the parent project. So there *would* be a place to put it in :P No, it is not. The

[android-developers] Re: Can't Find R.java

2010-10-05 Thread DanH
Standard newbie problem. When you put anything into the res directory, the next (reasonably complete) rebuild causes the R.java file to be created (or recreated) in your gen directory. The R class (and its inner classes) basically just contains named constants that identify items in the res

[android-developers] Re: XML encryption

2010-10-05 Thread DanH
As I understand it, there is encryption built in to Android, accessible via javax.crypto.Cipher. (Note that I've never actually used it, but have used similar interfaces on other phones.) You should use this (assuming it really works), vs, eg, downloading source from the internet and building it

[android-developers] How To Recover Missing Folders Option

2010-10-05 Thread Sami
http://softsami.blogspot.com/2010/10/now-i-will-tell-you-how-to-recover.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Re: Amazon android market. Anyone take the offer?

2010-10-05 Thread Michael MacDonald
On 10/04/10 22:14, Maps.Huge.Info (Maps API Guru) wrote: I got the e-mail and read the terms. I decided to stick with the Android market and forget this one. I think it's going to be a dud. Then again, what do I know? -John Coryat I got the e-mail but did not agree to the NDA. I would

[android-developers] Re: WebView content fit display screen!!!

2010-10-05 Thread viktor
Any ideas? On 5 Жов, 12:51, viktor victor.scherb...@gmail.com wrote: Hi, I tried WebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); but view crashed in 1.6 OS. I calculate scale(webview.capturePicture()) but I cannot set it after page loaded. Is it any working

[android-developers] Re: OOS : How do you use google groups ?

2010-10-05 Thread DanH
I use the web interface, mostly because I hate getting buried in junk email, and also because I like to handle all posts of one group at a time. It's not a very pretty or functional setup, but it works sort of OK if you come back and visit once or twice a day. But you're right --- if you're

[android-developers] Re: OOS : How do you use google groups ?

2010-10-05 Thread DanH
Also, up at the top of the thread list screen, click on Sort by latest message so you see active messages first. On Oct 5, 4:11 am, Yahel kaye...@gmail.com wrote: Hi all, Sorry for this OOS but Android developper is the only part of my life on google groups and call me thick but I can not for

[android-developers] Google Market cancelling orders

2010-10-05 Thread Jeff A Knaggs
All of a sudden, since the Market underwent it's recent multiple country expansion, I'm seeing, on a fairly regular basis, cancellations with a subject: Order XYZZY has been cancelled by Google With an explanation that boils down to: ...because we were unable to verify that buyer's account

Re: [android-developers] Re: XML encryption

2010-10-05 Thread Kostya Vasilyev
05.10.2010 19:59, DanH пишет: If you encrypt the entire XML file you won't be able to use Android's compiled' XML access tools, and you'll expose the unencrypted file on the phone. If you encrypt individual entries then you have a complicated build process and, due to the shorter elements

[android-developers] Re: Spinner. disabling does not provide any visual indication

2010-10-05 Thread Anil
Looked at your link - I don't think it's the same thing. The spinner does get disabled - it just does not grey out. - Anil --- Please let us know if you know anyone with an unwanted pregnancy, willing to place for adoption. http://longingtoadopt.com On Oct 5,

Re: [android-developers] Re: Spinner. disabling does not provide any visual indication

2010-10-05 Thread Kostya Vasilyev
Anil, Spinner background, spinner_background.xml located under android-sdk-windows\platforms\android-version\data\res\drawable has state selectors for state_pressed and state_focused. It does not have a selector for state_enabled=false. One way to fix this is to use your own drawable with

[android-developers] how do I force sendDownUpKeyEvents(MEkeyEventCode) to complete

2010-10-05 Thread Saied
Hi, I am developing a input method. As recommended by google, am using sendDownUpKeyEvents(someEventCode) for the key characters. But in some circumstances this event does not get executed immediately. I.e., I check the textfield on which I just put a

[android-developers] Re: Changing the width of an ImageView

2010-10-05 Thread Saied
Seems there is a bug, as neither invalidate, nor assigning the new width to the imageView worked. The only thing that worked was if I fake assign a different image to the view. Then without invalidate, it repaints. Go figure! On Oct 5, 12:11 am, Saied saie...@gmail.com wrote: Thank you! I

[android-developers] Ready to release first app. What now?

2010-10-05 Thread Joel Duggan
So I'm ready to release my first app. It's a live wallpaper (getting my feet wet with something simple) and I need some guidance. I have a few questions that I'd really like some answers to. 1) Piracy. How worried should I be? I could use the Google LVL stuff but I've read that it's basically

[android-developers] Re: Programmatically switching GPS on/off (how do they do it??)

2010-10-05 Thread CMWiii
Quick settings app can also turn GPS on and off. On Oct 4, 2:57 pm, mrqzzz marcus.ob...@gmail.com wrote: Hi. I red in these discussion groups that you cannot programmatically turn on/off the GPS : Mark Murphy was exhaustive, as always. But i found a 3rd party App, in the market, that creates

[android-developers] Re: New ADT available.

2010-10-05 Thread Craigo
If I was you, I'd try a fresh Eclipse install. It won't take that long. Just export your Eclipse preferences (Export - General - Preferences) and import them back on the new install. On Oct 5, 7:13 am, String sterling.ud...@googlemail.com wrote: Bump... Just got back from vacation and am

[android-developers] Does App size increase after upload to the And. market?

2010-10-05 Thread Ulzii
Does App size increase after upload to the And. market? I have uploaded an App to the market, name is CLIMATE DATA FINDER. But, its size looks increased over 12MB on such as androidpit and anroilib sites. Actually, my App size is 6mb on my PC. Tell me reason about it? I can not see size of my

[android-developers] createSurface fails with out-of-memory exception

2010-10-05 Thread Bret Foreman
I'm creating a screen with about 120 TextViews in a grid pattern - about 3 screens worth. The TextViews are arranged in TableRows inside a TableLayout inside a ScrollView. I'm not using a GridView because it doesn't scroll correctly for my application. In the Allocation Tracker I can see that my

Re: [android-developers] Does App size increase after upload to the And. market?

2010-10-05 Thread TreKing
On Tue, Oct 5, 2010 at 12:18 PM, Ulzii ter...@gmail.com wrote: Does App size increase after upload to the And. market? Did you enable (the now deprecated) copy-protection option? - TreKing

[android-developers] Re: Using Allocation Tracker in DDMS

2010-10-05 Thread fadden
On Oct 4, 6:14 pm, Bret Foreman bret.fore...@gmail.com wrote: Is there a way to cause the application to do a core dump and is there a tool for analyzing dumps? In this case it's leaking surfaces, which aren't related to the managed heap in the VM (and don't have much bearing on the app's

[android-developers] Re: createSurface fails with out-of-memory exception

2010-10-05 Thread Bret Foreman
Here's what the logcat looks like: 10-05 10:18:50.357: ERROR/SurfaceFlinger(1086): createSurface() failed, generateId = -12 10-05 10:18:50.357: WARN/WindowManager(1086): OutOfResourcesException creating surface 10-05 10:18:50.357: INFO/WindowManager(1086): Out of memory for surface! Looking for

[android-developers] Re: Using Allocation Tracker in DDMS

2010-10-05 Thread Bret Foreman
Yes, it fails quite reliably. I'll package it up for 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] Re: XML encryption

2010-10-05 Thread DanH
Yeah, a lot depends on whether you'll be reading the entire XML file at once and extracting everything you need, or going back and rereferencing it from time to time. On Oct 5, 11:18 am, Kostya Vasilyev kmans...@gmail.com wrote:   05.10.2010 19:59, DanH пишет: If you encrypt the entire XML

[android-developers] Re: XML encryption

2010-10-05 Thread Dimitris
Yes, look for CipherOutputStream and CipherInputStream for writing and reading the file safely. I would use a symmetric encryption algorithm such as AES unless the XML is coming from a web service. On Oct 5, 9:18 am, Kostya Vasilyev kmans...@gmail.com wrote:   05.10.2010 19:59, DanH пишет: If

[android-developers] Re: Using Allocation Tracker in DDMS

2010-10-05 Thread Bret Foreman
Done. Bug 11709. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

[android-developers] Re: createSurface fails with out-of-memory exception

2010-10-05 Thread Bret Foreman
On fadden's recommendation this is logged in issue ID 11709 on b.android.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

[android-developers] Trouble with corrupt contact data

2010-10-05 Thread jarkman
After a fight with some code intended to set contact photos in the contacts DB on 2.2, the contacts are now unable to sync - I get: android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string every time the contact provider attempts a sync, and a popup telling me

[android-developers] Auto-repeat button

2010-10-05 Thread DanH
How does one create an auto-repeat Button on Android. I found this: http://groups.google.com/group/android-developers/browse_thread/thread/5ce6d97956952472/50a625cc3cef1bec?lnk=gstq=%22Auto+repeat+button%22#50a625cc3cef1bec But it seems kind of heavyweight and clumsy. Is there a better way?

[android-developers] Re: Headless emulator

2010-10-05 Thread kypriakos
Good info - thanks Diego On Oct 4, 4:56 pm, Diego Torres Milano dtmil...@gmail.com wrote: This post may contain useful information:http://stackoverflow.com/questions/2461988/automated-testing-in-andro... On Oct 4, 12:40 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 4, 2010 at

[android-developers] Re: Ready to release first app. What now?

2010-10-05 Thread Nathan
1) Piracy: Don't know how worried you should be yet. Unlike some here, I am not of the opinion that piracy will actually increase my sales, nor do I believe that 0% of the freeloaders would ever pay for my app. But despite this philosophical leaning, I've never gotten around to doing LVL, proguard

Re: [android-developers] Auto-repeat button

2010-10-05 Thread Kumar Bibek
This is ok I guess. You can optimize it or may be change a few things according to your needs. -Kumar Bibek http://techdroid.kbeanie.com On Tue, Oct 5, 2010 at 11:28 PM, DanH danhi...@ieee.org wrote: How does one create an auto-repeat Button on Android. I found this:

Re: [android-developers] Re: Ready to release first app. What now?

2010-10-05 Thread Kumar Bibek
Eclipse works for signing your apps just fine. As for Piracy, I guess, don't worry for it right away. May be after a few updates, or when your app gets very very popular, and people would be tempted to pirate it. Till then, I guess you are safe. -Kumar Bibek http://techdroid.kbeanie.com On Tue,

[android-developers] Re: VerifyError reloaded

2010-10-05 Thread fadden
On Oct 4, 5:09 pm, DanH danhi...@ieee.org wrote: The verifier must create what is commonly known a use-def chains for the bytecodes in a method, to determine which results from one bytecode can flow as inputs to another bytecode (data flow).  The traditional way to do this (and the one used in

[android-developers] Re: Android and XMLHttpRequest()

2010-10-05 Thread kypriakos
Just trying this again in case someone has seen this one before - I am not sure if many people are using the default browser in the emulator for testing javascript functionality vs using WebViews so this may not even be a viable path I am following. But it does seem that the operation of the

[android-developers] Re: WebView - Unable to call a dynamically added Javascript (part of a HTML) inside a DIV using innerHTML

2010-10-05 Thread kypriakos
Hi Swaroop - I posted something similar in this post. I am a bit skeptic about how the default browser deals with js/ajax in Android vs how FF works: http://groups.google.com/group/android-developers/msg/9ea3fe940a397b88 I don't seem to have an issue with the innerHTML in the script i am using

[android-developers] Re: Ready to release first app. What now?

2010-10-05 Thread Bret Foreman
You forgot to mention if your app is free, paid, or ad-supported. One way to handle the Lite versus Full version issue is to include ad- support in the Lite version and no adds in the paid version. As for piracy, consider how much time you spent to develop the app. If you think it's unique and it

[android-developers] Re: Out of memory after executing application several times

2010-10-05 Thread Daniel Drozdzewski
Caxton, You are allocating 4.25MB each time. You have to remember that activities do not disappear instantly after you close them and that GC does happen at the system's discretion, so it can take time too. Did you try overloading *onLowMemory()* in the activity that is active during this

[android-developers] Re: Ready to release first app. What now?

2010-10-05 Thread jarkman
2) Building two products (with different package names) is a bit of a dance, but worth it once you have it set up. Take a look here for one solution: http://groups.google.com/group/android-developers/browse_thread/thread/270cbc77091e5bfd/ and here for a simpler-looking one:

[android-developers] Re: Headless emulator

2010-10-05 Thread Chris Stratton
On Oct 4, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 4, 2010 at 4:52 PM, kypriakos demet...@ece.neu.edu wrote: Is there a way to start and stop an app remotely (through the adb) without needing to install/uninstall each time? adb shell am start will start an activity.

[android-developers] Re: VerifyError reloaded

2010-10-05 Thread DanH
Yeah, I oversimplified the above description -- the verifier tracks (and must do so, in order to do valid verification) stack entry contents, which is equivalent to registers (assuming that Dalvik somehow tracks spill registers, which it must in order to do valid verification). Apparently Dalvik,

  1   2   >