Re: [android-developers] How to create and use the SD Card with the Android Emulator

2011-09-29 Thread venugopal reddy
Thnakq guys On Wed, Sep 28, 2011 at 5:32 PM, Mark Murphy mmur...@commonsware.comwrote: You create an SD card when you create the AVD: http://developer.android.com/guide/developing/devices/managing-avds.html On some devices, the SD card is considered external storage, so you use those APIs:

[android-developers] Re: Binding a remote service through the application class

2011-09-29 Thread Hera
Let me see if I have understood: I have to create a Bound service by Extending the Binder class, this is a local service. Then, the service must start a normal Thread (new runnnable) to do the work or is better to implement it in another way? On 28 sep, 17:07, Mark Murphy

Re: [android-developers] Debug.InstructionCount

2011-09-29 Thread ehsan azimzadeh
When I run a program, I want to count that how many times every Dalvik bytecode was executed. In other words bytecode profiling is my target. Can you help me? Thanks in advance Ehsan On 28 September 2011 06:07, Kristopher Micinski krismicin...@gmail.comwrote: Type of it? You mean like, Java

[android-developers] Re: How to install both applications using 1 apk file?

2011-09-29 Thread Jens
If you mean add/bind the widget to the users Homescreen by installing that is not supported for non-system/signed applications. Otherwise, do as Mark said and put them both in the same APK. On Sep 23, 2:59 pm, Oleksandr Fesak oleksandr.fe...@gmail.com wrote: Additionally to main application I

[android-developers] How to write a TextView in a determined coordinates of the screen? (frame layout)

2011-09-29 Thread saex
I have a app that shows the camera view on the screen on a frameLayout. The screen is in fixed LandSape mode. I need to write a textView with dinamically determined coordinates of the screen. The coordinates are determined in percentages, for example: write the textview on the coorinates x=80%

Re: [android-developers] Debug.InstructionCount

2011-09-29 Thread Kristopher Micinski
This isn't something you can (or should) be doing from the SDK alone. You'll want to look at another list, however I'd like to first just note that Dalvik already has support for this. (You can google dalvik profiler and find some information). You can also look into the implementation of the

[android-developers] Open Pdf in ImageView

2011-09-29 Thread Abk
I want to open PDF images which will be downloaded through xml in imageVIew but ImageView didnot open the images ... the reason I need to open pdf image in ImageView is that my client want an frame by frame animation of images. Kindly solve my problem or suggest me any way through which i can open

[android-developers] Re: Creating AnimationDrawable from assets

2011-09-29 Thread AlexBonel
On 28 сен, 15:22, Mark Murphy mmur...@commonsware.com wrote: Why? Why, what? ))) Why don't I avoid using of R.java? Well in shorts, because it's generated by Android platform tools and this is really big problem for my application's idea. -- You received this message because you are

Re: [android-developers] Android is worst os mobile is this true

2011-09-29 Thread Atul Raut
Give some time to android developer they are working really hard. Till time we have to wait and watch. Whatever if found missing in android why not we take initiative and add it to android project. We should not blame here to any one. Take as much as we can or add as much as we can that's set.

Re: [android-developers] In-app checkout interface is always in landscape mode on Honeycomb

2011-09-29 Thread Speedy Lope
On Wed, Sep 21, 2011 at 9:37 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Sep 21, 2011 at 6:55 AM, Speedy lostba...@gmail.com wrote: Hi, I'm building application on SKD 11+ (Android 3.x) and when I'm doing in-app billing request the checkout popup is always displaying in

[android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-09-29 Thread MobileVisuals
Does anyone know if there is any other way to make space animations with shining star objects on HTC devices, where size attenuation don't work? On Sep 28, 10:29 am, MobileVisuals eyv...@astralvisuals.com wrote: Yes, it is in the OpenGL ES standard according to the book Mobile 3D Graphics with

[android-developers] how to parse xml from sdcard...

2011-09-29 Thread GopalaKrishnan D
how to parse xml from sdcard... -- ~* Regards* *GopalaKrishnan D* -- 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: Facebook integration

2011-09-29 Thread Sapna Srivastav
Stream publish is covered in this post : https://github.com/facebook/facebook-android-sdk/issues/213 On Sep 29, 10:29 am, gaurav gupta gaurav.gupta...@gmail.com wrote: Hello Sapna, U cant make custom layout for facebook login or authentication. FB dont provide this facility. M using this

Re: [android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-09-29 Thread Kostya Vasilyev
Bitmap sprites, mapped to a quad, perhaps of a few predefined sizes, picking up the closest match and scaling to exact desired size You could then distort the quad to provide a kind of hyperspeed blur effect near the edges of the screen BTW, I wanted to check out your wallpaper on my HTC

Re: [android-developers] In-app checkout interface is always in landscape mode on Honeycomb

2011-09-29 Thread Kostya Vasilyev
How about an additional activity without the orientation lock between the locked main one (in your app) and the purchase activity (displayed by Market). You could then use it to display some kind of help text, describing the purchase, and how it's going to improve the application - which to me

[android-developers] Re: how to parse xml from sdcard...

2011-09-29 Thread skink
On Sep 29, 10:46 am, GopalaKrishnan D gopall...@gmail.com wrote: how to parse xml from sdcard... -- ~* Regards* *GopalaKrishnan D* you dont know how to parse or how to access sdard? pskink you dont know how to parse or how to access sdard? pskink -- You received this message

[android-developers] Re: NFC Secure Element

2011-09-29 Thread Fernando Miguélez Palomo
I polished the patches so now you have some options from Settings application: Card Emulation Only Mode. This disables reader function. Card emulation mode is always enabled. Be careful because P2P mode may not work (not tested) Use External Secure Element if Available. This makes the phone to

Re: [android-developers] Re: how to parse xml from sdcard...

2011-09-29 Thread GopalaKrishnan D
i don't know how to parse xml... i saw many example but i can't understand... can u help me -- ~* Regards* *GopalaKrishnan D* -- 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] Progress Dialog box

2011-09-29 Thread nageswara rao rajana
Hi, I developed an application using soap which sends data to web service.My request is this should be done in Progress spinner dialog box.I searched and tested some code but, its force closing my application. So, please any one provide me good sample code. Thanking you, nageswararao. --

Re: [android-developers] Progress Dialog box

2011-09-29 Thread Ratheesh Valamchuzhy
please paste your code . -- 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] Progress Dialog box

2011-09-29 Thread nageswara rao rajana
This is my soap code SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet=true; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport=new HttpTransportSE( http://123.176.47.162:88/GMANBTWEBSRV/Service.asmx;); try

[android-developers] Re: Progress Dialog box

2011-09-29 Thread B.Arunkumar
Here is some sample code you can try: http://thedevelopersinfo.wordpress.com/2009/10/16/showing-progressdialog-in-android-activity/ Actually, you need to start the progress dialog from the main thread and start a new thread which solves your purpose and gives the call as to when the progress

[android-developers] Re: how to parse xml from sdcard...

2011-09-29 Thread B.Arunkumar
Hi Gopalakrishnan, This posting should help you: http://groups.google.com/group/android-developers/browse_thread/thread/87d7305179d75985 Thank you, B.Arunkumar On Sep 29, 2:45 pm, GopalaKrishnan D gopall...@gmail.com wrote: i don't know how to parse xml... i saw many example but i can't

[android-developers] Re: NFC Secure Element

2011-09-29 Thread Fernando Miguélez Palomo
For the time being I can not share the ROM but you can compile it yourself with the supplied patches. Take a look at the last ones: https://groups.google.com/d/msg/android-developers/1fw1qfFqpGc/pvhc11jVDEUJ -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Binding a remote service through the application class

2011-09-29 Thread Mark Murphy
On Thu, Sep 29, 2011 at 2:28 AM, Hera aide...@gmail.com wrote: Let me see if I have understood: I have to create a Bound service by Extending the Binder class, this is a local service. Then, the service must start a normal Thread (new runnnable) to do the work Correct. There are other patterns

Re: [android-developers] Re: Calendar Intent not working in Motorola Xoom Honeycomb 3.1

2011-09-29 Thread Mark Murphy
On Thu, Sep 29, 2011 at 1:56 AM, Hong lordh...@gmail.com wrote: Well this code works perfectly on phones running 1.x and 2.x: Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType(vnd.android.cursor.item/event); intent.putExtra(title, Some title); intent.putExtra(description, Some

Re: [android-developers] Re: Improving Local GPS Accuracy

2011-09-29 Thread Mark Murphy
On Wed, Sep 28, 2011 at 10:59 PM, Thomas tbirchm...@usa.net wrote: I thought it was more like owning the casino and dealing from your own card deck. I suspect that what lbendlin is trying to say is that you are making an assumption: that the error introduced in one GPS coordinate has a

Re: [android-developers] Re: Async Task, rotation and indeterminate progressbar in custom header.

2011-09-29 Thread João Rossa
Hi! there joe only today i saw your answers, im going with the maintain reference of the task in the application class route. But i still have some doubts here, i need to replicate the behaviour of dealing with async tasks on rotation but with the switching from activity A to B. I want to refresh

[android-developers] Re: How to access database on device.

2011-09-29 Thread MELLITI ALADIN
you can put the database file on assets or res/raw and copy it to directories data/data/app_name/databases/ and open it (notice if the databases file more than 1 MB and you work with an api 10 you shoud split it like i do in this example ) package com.androdev.ommek_sannefa; import java.io.File;

[android-developers] Re: How to access database on device.

2011-09-29 Thread lbendlin
no need to split the database. Just give it a different name/extension. I called mine database.db.jet (yes, I know, lame joke) and was able to use it despite it being larger than 1 MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Improving Local GPS Accuracy

2011-09-29 Thread lbendlin
if you own the atmosphere and the random, indeterminate, probabilistic timing delays in there then yes. -- 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

[android-developers] App is killed when home button is pressed from any activity

2011-09-29 Thread ANKUR GOEL
Hi all, i had make one application ... while clicking from any activity the Home button the restarts again from the first activity . its not going to the same activity can anybody help me regarding this . Thanks and Regards:- Ankur Goel 09019040351 S/W Engg. -- You received this message

[android-developers] I am getting error : max_analyze_duration reached , Please confirm me what cause of this error Android

2011-09-29 Thread ProblemZone
I am getting error : max_analyze_duration reached , Please confirm me what cause of this error Android -- 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

[android-developers] Android set(get) environmental variables in Java

2011-09-29 Thread petr.maza...@mautilus.com
I have experimented little with Android OS and I tried to call System.getenv() to get environmental variables. It works e.g. for $PATH, but I was not able to define own variable, which can be accessible in this way... Is it possible? I have tried to set and export variables from adb shell as a

Re: [android-developers] Android set(get) environmental variables in Java

2011-09-29 Thread Mark Murphy
On Thu, Sep 29, 2011 at 8:07 AM, petr.maza...@mautilus.com petr.maza...@mautilus.com wrote: I have experimented little with Android OS and I tried to call System.getenv() to get environmental variables. It works e.g. for $PATH, but I was not able to define own variable, which can be accessible

[android-developers] Re: Android set(get) environmental variables in Java

2011-09-29 Thread lbendlin
what are you actually trying to achieve? What are you planning to use the environment variables for? -- 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

[android-developers] Re: Improving Local GPS Accuracy

2011-09-29 Thread Thomas
It appeared to work that way on the simple field test I conducted. I'll think up a more rigorous field test and report back one way or the other. I believe the WAAS (Wide Area Augmentation Systems) works in a similar manner. It measures the deviation from a know position and broadcasts the

[android-developers] how to enable screen compatability mode in android 11

2011-09-29 Thread siliconeagle
I have an app that is quite old and still has to support 1.5 (3) devices. For some reason the screen computability mode has stopped running and i can figure out why. It did work fine on honeycomb devices. The result i am getting is that that the app is zoomed (i.e. all elements are oversized)

[android-developers] Re: GLSurfaceView's onPause and onResume called in Activity's onStop and onStart to handle partially transparent child-activities. Is this OK?

2011-09-29 Thread Streets Of Boston
Bumpedee bump... :) -- 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

Re: [android-developers] I am getting error : max_analyze_duration reached , Please confirm me what cause of this error Android

2011-09-29 Thread NAVI NEW
Now i am trying to play .mp4 video file from sdcard using ffmpeg lib. When video file contains H.264 AVC then error not occur, but when i am using MPEG-4 -video then this error occur: Please check the log file. On Thu, Sep 29, 2011 at 5:36 PM, ProblemZone navi44...@gmail.com wrote: I am

[android-developers] Re: Android set(get) environmental variables in Java

2011-09-29 Thread petr.maza...@mautilus.com
Hi, I agree that environmental variables might not be the best approach, but we are porting software, which is expected to use it. So, there is no way for one process/thread to set environmental variables, which can be read by other one? What about calling from the java application the .so

[android-developers] Alternative of VMRuntime.getRuntime().setMinimumHeapSize in Gingerbread

2011-09-29 Thread Chuan
Hi All I know there's a VMRuntime.getRuntime().setMinimumHeapSize in Android 2.1/2.2 for developer to adjust the starting heap size of the application, and it is one of the most effective solution for solving the OutOfMemory error during itmapFactory.decodeStream() However, since Android 2.3,

Re: [android-developers] Re: Android set(get) environmental variables in Java

2011-09-29 Thread Mark Murphy
On Thu, Sep 29, 2011 at 10:11 AM, petr.maza...@mautilus.com petr.maza...@mautilus.com wrote: I agree that environmental variables might not be the best approach, but we are porting software, which is expected to use it. Then fix the software to not use environment variables. For example, if

[android-developers] Re: Samsung Galaxy S2 (2.3.4) and Arduino ADK

2011-09-29 Thread hudvin
Hi, No, I don't find any solution. Waiting for ROM update. -- 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] Using ExpandableListView and Fragment in same layout.

2011-09-29 Thread Akhilesh Mani
Hi, I want to use ExpandableListView and Fragment class in same XML layout as ExpandableListView on left of screen and Fragment on right. I had done same with ListView And Fragment and its works well but with ExpandableListView its not working. Please suggest me. Regards Mani. -- You received

[android-developers] Re: Improving Local GPS Accuracy

2011-09-29 Thread lbendlin
Fair enough. But in order to use the DGPS approach you first need to use something (much) more precise than your Android GPS receiver to measure the DGPS base station location. A bit of a catch-22. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: How to calculate the distance between two degree values? (for example: 350º to 15º = 25º / 250º to 190º = 60º)

2011-09-29 Thread JackN
Distance is the space between two points. You don't have enough info to calculate the distance. On Sep 27, 9:58 am, Lew Bloch lewisbl...@google.com wrote: On Tuesday, September 27, 2011 7:29:09 AM UTC-7, saex wrote: there is a function or something on Java to calculate the distance between

Re: [android-developers] Re: GLSurfaceView's onPause and onResume called in Activity's onStop and onStart to handle partially transparent child-activities. Is this OK?

2011-09-29 Thread J Handal
Cool teaching Where is the code?? On Sep 29, 2011 9:42 AM, Streets Of Boston flyingdutc...@gmail.com wrote: Bumpedee bump... :) -- 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: Break the execution

2011-09-29 Thread JackN
if (strUserName.equals()) { Toast.makeText(getBaseContext(), Enter User Name., 10).show(); } else return; On Sep 23, 9:38 am, TreKing treking...@gmail.com wrote: On Fri, Sep 23, 2011 at 6:06 AM, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Inside this If condition I

Re: [android-developers] dynamic listview problem: would like EditText change to trigger another EditText change

2011-09-29 Thread John Goche
On Wed, Sep 28, 2011 at 10:32 PM, Studio LFP studio@gmail.com wrote: I don't mean to shift gears here on you, but you are putting these EditTexts in a ListView and you may not even need the ListView. A ListView is usually not edited in place and actually are very friendly when you try

[android-developers] scrolling question

2011-09-29 Thread John Goche
Hello, This may be a simple question, but I have not noticed any scrollwheel on android phones unlike on the blackberry. So when I scroll in the emulator with the mouse scrollwheel what does this action correspond to on a real phone? When I scroll the mouse on the emulator some fields don't go

Re: [android-developers] Re: trying to start-activity from alertdiaog --please advice

2011-09-29 Thread Manas Shah
Thanks all for your reply.. Its working now. Code was perfect it was me dim who missed out entry in manifest. Thanks Jeremy for remembering it! On Thu, Sep 29, 2011 at 2:08 AM, Studio LFP studio@gmail.com wrote: A guessing game, fun! My guess is... Intent newintent1 = new

[android-developers] scrolling question

2011-09-29 Thread lbendlin
I think the highlighting order is purely defined by the order of the objects in the layout XML or the order in which you add them through code. -- 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] scrolling question

2011-09-29 Thread Mark Murphy
There is also android:nextFocusDown and kin. On Thu, Sep 29, 2011 at 12:19 PM, lbendlin l...@bendlin.us wrote: I think the highlighting order is purely defined by the order of the objects in the layout XML or the order in which you add them through code. -- You received this message because

[android-developers] how to check if device has hardware search key

2011-09-29 Thread Latimerius
I thought querying the SPECIAL_FUNCTION KeyCharacterMap instance for KEYCODE_SEARCH would do the trick, however there's no SPECIAL_FUNCTION until API Level 11, whereas I need to support 7. Any ideas? Cheers! -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Break the execution

2011-09-29 Thread LiTTle
I don't understand your question very much but I think that you could add break; Could you explain better what do you mean, because someone will read this conversation in the future for help. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: How to capture sensor moves using SensorSimulator

2011-09-29 Thread ColorTheorist
You'll have to use the sensormanager class and use thresholds as you have mentioned at the lowest level by subscribing to the accelerometer. From there you should be able to do what you want. If there are nice libraries that will do mathematical calculations that often accompany these readings I

Re: [android-developers] scrolling question

2011-09-29 Thread John Goche
Thank you for your replies. I am still wondering though how the user of a mobile phone makes use of the focus feature we have been discussing. Does the user press the tab key on the soft keypad to get it to work? How does it work? Thanks, John Goche On Thu, Sep 29, 2011 at 6:23 PM, Mark Murphy

Re: [android-developers] Re: standalone popup: UI question

2011-09-29 Thread John Goche
Hi Ryan, I downloaded your code and tried it out. At first it seemed really cool and working out well for the most part. Then I realized that if the user presses the Esc key on the dialog instead of pressing on one of the buttons the user is left with a small square hidden below the dialog (this

[android-developers] Android Project

2011-09-29 Thread arun kumar
Hello all, I want to Develop a New Android Application with 1 month Duration. Any innovative ideas for project name and description? -- 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] scrolling question

2011-09-29 Thread Chris
On Thursday, September 29, 2011 1:34:10 PM UTC-4, John Goche wrote: Thank you for your replies. I am still wondering though how the user of a mobile phone makes use of the focus feature we have been discussing. Does the user press the tab key on the soft keypad to get it to work? How

Re: [android-developers] Android Project

2011-09-29 Thread Joao Braga
The issue is not how to develop, but what for mostly everyone :p -- 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] scrolling question

2011-09-29 Thread Mark Murphy
On Thu, Sep 29, 2011 at 1:34 PM, John Goche johngoch...@googlemail.com wrote: Thank you for your replies. I am still wondering though how the user of a mobile phone makes use of the focus feature we have been discussing. Does the user press the tab key on the soft keypad to get it to work?

[android-developers] Re: How to calculate the distance between two degree values? (for example: 350º to 15º = 25º / 250º to 190º = 60º)

2011-09-29 Thread Ken H
I would like to reiterate what JackN said -- you don't have enough info. But a good place to start would here: http://www.movable-type.co.uk/scripts/latlong.html For those interested, a routine for the distance between two points (on Earth) in kilometers is: public double gps2m(double lat_a,

[android-developers] I have a map and it is necessary to put more than 1,000 objects.

2011-09-29 Thread Andrei
Tell me how can I solve the problem I have a map and it is necessary to put more than 1,000 objects. If I just keep trying to add, the program hangs on for about 5 minutes. I see the output in a decision Load, only objects on the side of the map, which is now visible to the user. how can this be

[android-developers] How do I navigate to the SD card?

2011-09-29 Thread cellurl
I want to run a non-market .apk located on SD card. Q: How do I navigate to it? I don't have a data plan, so I can't put it on a website, or can I use wifi to do this somehow?? Thanks for any leads! cellurl -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-09-29 Thread MobileVisuals
Thanks for the idea, do you mean like this? Scale to small size if the sprite is far away. Scale to medium size if the sprite is medium distance. Scale to big size if the sprite is close. That could work for other animations, but it would be very slow for my star cluster animations. There are

[android-developers] Always-on GPS: widget or app?

2011-09-29 Thread Pinheiro
I need to make an app that transmits GPS information each 5 minutes (the information gathering can be switched on and off in the app). The question is: to ensure that the information is gathered should I call the requestLocationUpdates() on an regular app or should I use a widget running in the

[android-developers] YUV opengl - request information

2011-09-29 Thread dani maoz
Hi I need to develop application which decode YUV image from a file using opengl Can anyone post a sample code, or link to example/tutorial website Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-09-29 Thread MobileVisuals
It says in the HTC HD specification that it supports OpenGL ES 2.0: http://www.mobiletechworld.com/2010/04/23/htc-hd-mini-review-is-it-worth-it/ I claim that HTC HD doesn't support OpenGL ES 2.0, because size attenuation is a part of OpenGL ES 1.1 and it is not supported. So HTC hasn't

Re: [android-developers] dynamic listview problem: would like EditText change to trigger another EditText change

2011-09-29 Thread Studio LFP
A ListView is usually not edited in place and actually are very friendly when you try to. Your statements seem contradictory. You say a list view is not edited in place. Then you say a list view is very friendly when you try to edit it in place? Whoops, sorry about that, it should say

Re: [android-developers] Re: HTC and LG haven't implemented Android in the right way

2011-09-29 Thread Kostya Vasilyev
29.09.2011 23:01, MobileVisuals ?: I claim that HTC HD doesn't support OpenGL ES 2.0, because size attenuation is a part of OpenGL ES 1.1 and it is not supported. Quite possibly, you're right... So HTC hasn't implemented the things that they say in the specification, but why not? Who

[android-developers] Re: Improving Local GPS Accuracy

2011-09-29 Thread hoyski
I worked on a civilian GPS system back in the days when Selective Availability was still enabled. (http://en.wikipedia.org/wiki/ Error_analysis_for_the_Global_Positioning_System#Selective_availability) In order to determine the well-known point from which to broadcast DGPS corrections, a receiver

[android-developers] Re: How do I navigate to the SD card?

2011-09-29 Thread Studio LFP
You can use Wifi on the phone to hit a web site if that is an option. I believe there are also apps like ES File Explorer than can let you browse the SD card if you don't have something built into the phone. You can get it from the Android Market. You can also access the Android Market on Wifi,

[android-developers] Re: display countup timer with milliseconds

2011-09-29 Thread hoyski
Short answer. Change your building of 'asText' to: String asText = (countUp / 60) + : + (String.format(%02d, (countUp % 60)) + . + (String.format(%03d, (countUp_milli % 1000))); Long answer. Since this code will be called a *lot*, it would be good to profile it. The compiler should convert the

[android-developers] Re: scrolling question

2011-09-29 Thread Studio LFP
Older devices like the HTC Hero had a trackball type device like some Blackberrys had. New devices like the new tables can actually accept mice and other pointing devices and get an on-screen cursor along with a keyboard being able to use arrow buttons and the tab key. I use a bluetooth

[android-developers] Re: How to calculate the distance between two degree values? (for example: 350º to 15º = 25º / 250º to 190º = 60º)

2011-09-29 Thread Studio LFP
If you already have the two numbers in degress that are between 0 and 360... int iDiff = Math.abs( degree1 - degree2 ); If you need to find them from points or latitude/longitude, then you are entering into linear math and you would need to look at things like:

Re: [android-developers] BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Paste your code here...just the line where you try to create the bitmap. -- 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: standalone popup: UI question

2011-09-29 Thread Studio LFP
The easiest way I've found is to just do a normal activity and float it with a transparent background. style name=Theme.Transparent parent=android:Theme.NoTitleBar.Fullscreen item name=android:windowBackground@drawable/bg/item item name=android:windowIsFloatingtrue/item item

[android-developers] Re: Break the execution

2011-09-29 Thread Studio LFP
I think they are looking for a simple return. Any time you are inside a function, you can exit that function by a return. All of the Android specific things like onCreate, etc. are functions and can all be exited by a return. Just make sure you return whatever type is needed as a return

[android-developers] BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Sheado
Hello, I'm getting some bug reports showing that BitmapFactory.decodeResource is returning null for local /res/drawable image resources. I can't reproduce the problem. Could this be due to a low memory situation? Usually I get OutOfMemoryException when that happens though. What could cause this

[android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Sheado
Hi Joao, Here it is: BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inScaled = false; Bitmap b = BitmapFactory.decodeResource( context.getResources(), R.drawable.testImage, opts ); b.getWidth(); // NPE This always works for me when I test it. Thanks, Chad On Sep 29,

[android-developers] Re: how to check if device has hardware search key

2011-09-29 Thread Studio LFP
I'm not sure if there is a way to check if it has a hardware search key. I would have thought it would be in the PackageManager.getSystemAvailableFeatures(), but I checked it and it doesn't have any listing for it. Since the new ICS (Ice Cream Sandwich) version is based on Honeycomb and the

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Try this: Bitmap bitmap; bitmap = BitmapFactory.decodeResource(res, R.drawable.image); bitmap = Bitmap.createScaledBitmap(bitmap, bitmap.getWidth(), bitmap.getHeight(), false); //if you want to make it scaleble -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread jtoolsdev
I got a null pointer when my PNG file was incorrectly saved. Since I was developing on Linux, I loaded it into GIMP and saved it back out and it loaded. So you might check using one of the image files supplied in the SDK. -- You received this message because you are subscribed to the

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
ops, I forgot the resources: Bitmap bitmap; bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.image); bitmap = Bitmap.createScaledBitmap(bitmap, bitmap.getWidth(), bitmap.getHeight(), false); //if you want to make it scaleble Note: If you are creating this bitmap from the class

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Chad Ata
Thanks for the response Joao, Interesting. Do you think there's a bug in the decodeResource() when using BitmapFactory.Options? -Chad On Thu, Sep 29, 2011 at 1:49 PM, Joao Braga jp.am.br...@gmail.com wrote: Try this: Bitmap bitmap; bitmap = BitmapFactory.decodeResource(res,

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Can you get to your resource through R.drawable.image name ? You can get errors if you store pictures with invalid names for the resources (spaces, special chars, numbers etc). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
Maybe, but I can't tell since I never used it. Did the code work 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] Emulator and the requiresSmallestWidthDp declaration

2011-09-29 Thread jtoolsdev
If one has created a Android 3.2 virtual device with a 7 1024x600 screen and your app has android:requiresSmallestWidthDp=720 declared (for 10 or greater screens) shouldn't the emulator refuse to load the app? Currently it loads it. Or is this declaration only good for the Market? -- You

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Chad Ata
Thanks for the responses guys, Just a note: My code always works when I test it. The bug is happening once every 200k sessions (as reported via Android Market). -Chad On Thu, Sep 29, 2011 at 1:58 PM, Chad Ata chad...@gmail.com wrote: Thanks for the response Joao, Interesting. Do you think

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
It's an architectural problem. What's your application about? What does it do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Chad Ata
Hi Joao, Yes that code works for me - actually I was already doing something similar in a different part of my code. Unfortunately, since it's such a rare bug I won't know if it really fixed the problem until I deploy it to my users. -Chad On Thu, Sep 29, 2011 at 2:01 PM, Joao Braga

[android-developers] Techniques for real-time screen update...

2011-09-29 Thread Peter
Folks, In my application, I need to display a line chart with some real-time data. The chart needs to be updated 10 times within a second. To the user, it should appear as if the line is scrolling to the left of the screen. New data gets displayed to the right. I am trying to understand the best

[android-developers] going back and forth from FullScreen

2011-09-29 Thread guich
Hi, I have an application that sets fullscreen with getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); ... right before the view is created. Works fine. However, i would like to bypass an Android BUG that prevents a screen change being

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Chad Ata
It's a game. At a certain part it loads a large transparent png - about 900x300 or something like that. This issue seems to happen only with the larger images, which is why I was thinking it had to do with possible low memory situation. -Chad On Thu, Sep 29, 2011 at 2:05 PM, Joao Braga

[android-developers] Re: Always-on GPS: widget or app?

2011-09-29 Thread Studio LFP
I tried to deal with this on an internal company app and you don't want to use the requestLocationUpdates(). See this bug I logged: http://code.google.com/p/android/issues/detail?id=5595 I'm not sure if that was a hardware driver or software, but I know you can reproduce that on plenty of

[android-developers] How do I develop a Eclipse plugin on top of google's ADT?

2011-09-29 Thread Carl Lee
I think it will be nice to modify or enhance google's ADT, since Eclipse's plugins are almost all written in Java and in Eclipse. For example, let DDMS's logcat support regular expression filter; open sqlite3 database directyly in eclipse by double clicking the db file in DDMS's file expolrer.

Re: [android-developers] Re: BitmapFactory.decodeResource returning null sometimes for local resource

2011-09-29 Thread Joao Braga
I see, but it souldn't be a problem since the phones have enough memory to load a image like that. I'm just talking about the image, I don't know how the rest of your engine is managing the memory. But you said something about 200k sessions...how this sessions work? The clients connect to a

Re: [android-developers] How do I develop a Eclipse plugin on top of google's ADT?

2011-09-29 Thread Mark Murphy
I'd start off by joining the adt-dev Google Group and asking there, as that's the list for people working on the development tools. On Thu, Sep 29, 2011 at 5:14 PM, Carl Lee ljbha...@gmail.com wrote: I think it will be nice to modify or enhance google's ADT, since Eclipse's plugins are almost

  1   2   >