Re: [android-developers] Which Eclipse?

2010-08-19 Thread Kostya Vasilyev
It's better to use version 3.5 (Galileo) at this point. The links on eclipse.org by default go to 3.6 (Helios), so check the archives: http://www.eclipse.org/downloads/packages/release/galileo/sr2 Eclipse IDE for Java Developers is one of the smaller ones, and works just fine for me. --

[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-19 Thread Sarwar Erfan
On Aug 19, 2:54 am, Indicator Veritatis mej1...@yahoo.com wrote: same on each unit? What do they think is going to happen when a customer loses a phone and asks the carrier to disable it? They do this by IMEI, not phone number. Its simple, they don't provide the service to disable phones :)

Re: [android-developers] ATT Samsung Captivate mExternalStorageAvailable == false;

2010-08-19 Thread Kostya Vasilyev
John, What state does the code return? Perhaps logging the actual value would be a good place to start. System.out.println(in cksdcard, Something else is wrong, state = + state); The output from ls -l does seem weird. On my Galaxy S (not quite the same thing, but close), I get this:

[android-developers] Re: Converting XML into Java in Android

2010-08-19 Thread ko5tik
On Aug 11, 9:31 pm, Neilz neilhorn...@gmail.com wrote: Hi. In my new project I retrieve an XML file from a server. I want to convert this into Java objects. Now, clearly searching on this brings up a lot of solutions and topics, but some of them don't seem to be fully Android compatible.

[android-developers] Custom Cursor wrapping a MatrixCursor

2010-08-19 Thread Mark Carter
I want to implement Cursor so that it wraps another Cursor (probably MatrixCursor) and can swap out the wrapped Cursor as necessary. I've tried two approaches: 1. Subclass CursorWrapper. The problem with this is that any calls to registerX/unregisterX methods land on the wrapped cursor.

[android-developers] Re: Which Eclipse?

2010-08-19 Thread Alessandro Pellizzari
Il Thu, 19 Aug 2010 10:25:40 +0400, Kostya Vasilyev ha scritto: It's better to use version 3.5 (Galileo) at this point. The links on eclipse.org by default go to 3.6 (Helios) I tried installing Helios (I needed it for my other non-Android projects), and the only two things I did to make it

[android-developers] Re: How to post messages across processes by using handler?

2010-08-19 Thread FrankG
Not always : Their are more then 50 system services which expose an AIDL interface. Best regards ! Frank On 18 Aug., 22:48, Indicator Veritatis mej1...@yahoo.com wrote: But why are you so ure you must use Handler? The design of Android is that you use Intents for interprocess communication.

Re: [android-developers] Re: Which Eclipse?

2010-08-19 Thread Kostya Vasilyev
There were discussions on the list regarding the interactive layout editor not working. The official site also has this warning: http://developer.android.com/sdk/eclipse-adt.html Caution: There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further

[android-developers] Question regarding drawable resources usage

2010-08-19 Thread MobDev
Hi, I have made an app which I also would like to run on smaller screens, so I have read the documentation regarding supporting multiple screens. I noticed though that I actually didn't need a completely new layout, the only thing I needed were actually smaller images which are used within the

[android-developers] Re: OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-19 Thread Luca Carlon
And would it be possible to increase the amount of RAM available? Would creating a different application which receives intents from the first one be a solution to the problem of insufficient RAM for a process? Thanks for your answer! On Aug 19, 7:50 am, Romain Guy romain...@android.com wrote:

[android-developers] store bitmaps

2010-08-19 Thread Pedro Teixeira
Hello everyone, I could really use some help with this... I have this HTTP code snippet which gives me back a bitmap from the internet. ( I set a preview also ) myFileUrl =null; String URL = http://www.whatever.com/picture.png; try { myFileUrl = new URL(URL);

[android-developers] mp4 videos are not getting played

2010-08-19 Thread audum
Video urls without extensions(e.g .3gpp or .mp4) are not getting played in android VideoView. I used VideoView and set VideoUri as http://pixeepreprod.milpix.com/v3/video/061e9187-7319-4fdc-b784-49e771119e0d. But I am getting error as this video cannot be played. Please help. -- You received

Re: [android-developers] Testing C2DM service on Android 2.2 emulator

2010-08-19 Thread xianhao lv
Maybe you should use SDK platform Android 2.2 API 8 revision 2 to have a try. But I got the following errors: 8-19 09:56:08.777: DEBUG/GoogleLoginService(171): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService } 08-19

Re: [android-developers] Testing C2DM service on Android 2.2 emulator

2010-08-19 Thread xianhao lv
Try Google APIs by Google Inc., Android API 8, revision2 if SDK api8 revision 2 doesn't work. On Thu, Aug 19, 2010 at 6:09 PM, xianhao lv xianhao...@gmail.com wrote: Maybe you should use SDK platform Android 2.2 API 8 revision 2 to have a try. But I got the following errors: 8-19

[android-developers] PendingIntent and location updates

2010-08-19 Thread Sebastián Treu
Hi all, I'm a little confused about the FLAGs on PendingIntents objects. I don't get exactly what the documentation wants to say to us. For example, when we obtain a PendingIntent to be used as a Intent Receiver trigger, we use: Intent intent = create a description of the intent we want to

[android-developers] Re: Which Eclipse?

2010-08-19 Thread Zsolt Vasvari
There are so many stability problems with Helios, it's not even funny. Please do yourself a favor and use Galileo. On Aug 19, 3:25 am, Kostya Vasilyev kmans...@gmail.com wrote:   There were discussions on the list regarding the interactive layout editor not working. The official site also

Re: [android-developers] PendingIntent and location updates

2010-08-19 Thread Mark Murphy
On Thu, Aug 19, 2010 at 6:23 AM, Sebastián Treu sebastian.t...@gmail.com wrote: What does it mean: [...] if the described PendingIntent already exists [...] ? Pretty much exactly what it says. PendingIntents are compared by comparing their Intents. Intents are compared via filterEquals().

Re: [android-developers] PendingIntent and location updates

2010-08-19 Thread Sebastián Treu
Hi Mark, Thanks for explaining how they are compared. On Thu, Aug 19, 2010 at 7:28 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Aug 19, 2010 at 6:23 AM, Sebastián Treu sebastian.t...@gmail.com wrote: What does it mean: [...] if the described PendingIntent already exists [...] ?

[android-developers] Changing the arrow image in ExpandableListActivity

2010-08-19 Thread Amit
Hi All, I have created an activity that extends ExpandableListActivity class. I want to customize the look and feel of my expandable list activity. I have achieved the customization of list selectors. What i want next is to change the default expandable arrow image that comes. is it possible?

[android-developers] Re: Changing the Menu Selector?

2010-08-19 Thread Amit
Hi All, Kindly help in this regardwaiting for the reply. On Aug 13, 11:13 am, Amit amitmishr...@gmail.com wrote: Hi All, Is it possible to change the selector of standard Menu? If yes please let me know how? Thanks Best Regards Amit -- You received this message because you are

Re: [android-developers] PendingIntent and location updates

2010-08-19 Thread Sebastián Treu
On Thu, Aug 19, 2010 at 7:40 AM, Sebastián Treu sebastian.t...@gmail.com wrote: Hi Mark, Thanks for explaining how they are compared. On Thu, Aug 19, 2010 at 7:28 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Aug 19, 2010 at 6:23 AM, Sebastián Treu sebastian.t...@gmail.com wrote:

[android-developers] Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi, I am developing a mobile application that involves complex image processing operations. The app is designed in Java while the core image processing ops are implemented in native code, and compiled using the Android NDK. Now, I know that native code will *not* yield any significant

[android-developers] Re: store bitmaps

2010-08-19 Thread String
On Aug 19, 10:57 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: Does anyone know how to save the bitmap into a file in my device? Hi Pedro, Here's a function I've been using for quite a while: private StringBuilder saveBitmap(String path, StringBuilder name, Bitmap bitmap) {

[android-developers] Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
Hi, I have to show the more than 150 images dynamically(so I did not prefer ViewFlipper) as slide show and I did it with the help of threads and I presented it with context menu, but I have to show the next image or previous image when user swipe the screen.. I tried it by implementing

Re: [android-developers] PendingIntent and location updates

2010-08-19 Thread Sebastián Treu
Finally, I found what would do removeUpdates(PendingIntent). No matter what object reference you pass through, it will get the receiver: public void removeUpdatesPI(PendingIntent intent) { try { synchronized (mLock) { removeUpdatesLocked(getReceiver(intent)); So,

[android-developers] Re: Intellectual Property

2010-08-19 Thread DanH
Certainly the sale of intellectual property --patents, copyrights, etc -- is quite common. The trick is finding a marketplace for your specific property. If it's just another game then most houses that distribute these things would probably prefer to pay one of their hacks to duplicate you game

Re: [android-developers] Optimizing image processing algorithms for Android

2010-08-19 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/19/10 13:35 , Amit wrote: Now, I know that native code will *not* yield any significant performance improvement over Java code Well, specifically for image processing this won't be true, for sure up to 2.1 included (as the bytecode is purely

[android-developers] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
No Solution? On Aug 19, 4:46 pm, sunrises surya@gmail.com wrote: Hi, I have to show the more than 150 images dynamically(so I did not prefer ViewFlipper)  as slide show and I did it with the help of threads and I presented it with context menu, but I have to show the next image or

[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-19 Thread DanH
One viewpoint: http://patentology.blogspot.com/2010/08/why-has-oracle-sued-google.html There are some relevant points of law there, in addition to the opinions. On Aug 12, 7:52 pm, Frank Weiss fewe...@gmail.com wrote: It hit the press today. Rumored that Google refused to settle. I have no

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Well yes, I only meant that just the fact of using native code (over Java) won't be very effective. At least that is the impression I have (which may be wrong). Considering the fact that even native code ultimately runs inside the Dalvik VM instance, performance gains from use of native code

Re: [android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/19/10 14:33 , Amit wrote: Well yes, I only meant that just the fact of using native code (over Java) won't be very effective. At least that is the impression I have (which may be wrong). Considering the fact that even native code ultimately

[android-developers] parsing xml

2010-08-19 Thread RKJ (Android developer)
when i'm using this code, it says the parsing xml error, please let me know where i'm missing. this code is from K9mail (string.xml file @ 256 line) string name=message_compose_fwd_header_fmt \n Message \n Subject: xliff:g id=subject%s/xliff:g\n

[android-developers] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-19 Thread sunrises
Hi Context menu disappear since I returned true value in onTouch() function when implemented OnTouchListener, context menu problem solved, but still swipe problem there.. On Aug 19, 5:11 pm, sunrises surya@gmail.com wrote: No Solution? On Aug 19, 4:46 pm, sunrises surya@gmail.com

[android-developers] Re: KEYCODE_HOME

2010-08-19 Thread Pent
You could *detect* the app exit via the home key (combination of onuserleavehint and onpause) and return to it from the launcher afterwards. Not pretty though. And I'm now going to be verbally (textually ?) whipped for speaking such heresy again. Pent -- You received this message because you

Re: [android-developers] Custom Cursor wrapping a MatrixCursor

2010-08-19 Thread Satya Komatineni
Mark, It has been a while I looked into this when I researched this stuff for Live Folders chapter in Pro Android 2 book. I have some source code from the book here at the following URL. See if this helps

[android-developers] Re: How to compile/run JUnit 4 tests in Android?

2010-08-19 Thread The.French.DJ
It depends on what parts you want to test. If you need the android test framework classes for testing activities and services in a valid android context then i am not sure if you can make junit 4 work with it. However, if you extract your app logic into android independant classes then you can

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread RichardC
Hi, I am partway through re-implementing my some of my game logic in C++; the find-next-move code for a board game. The algorithm does a reasonable amount of work, evaluating approximatly 1.1 million terminal positions during a game. The C++ code is currently running between 6 and 8 faster than

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Daniel Drozdzewski
Amit, I would avoid using NDK at all cost. It will certainly make your project much more complicated and questionably faster. There is lot of pain involved with NDK, like making sure it runs on all metal out there. You will have choice of compiling for all ARM architectures, but without FPU and

[android-developers] Re: How the Activity updated in Pause State.

2010-08-19 Thread TreKing
Please reply to the whole group so others can see what you're talking about and try to help you. On Thu, Aug 19, 2010 at 5:49 AM, chetan chetanchauha...@gmail.com wrote: Activity AA(Showing Stop Watch ) of Application is in resume state means in active state. OK, so some random application

[android-developers] Re: How to invoke another application on a Button Click?

2010-08-19 Thread dillipk
Hi SREEHARI, Thank you so much for your code snippet. I can't wait to test this out... Best, DK On Aug 19, 1:12 am, SREEHARI sreehari.madhusooda...@wipro.com wrote: Hi Dilip,  You can use getPackageManager() for this. Use the below code. ListResolveInfo mApps;                        

[android-developers] Re: How the Activity updated in Pause State.

2010-08-19 Thread chetan
Thanks Treking, for your opinion. I had same thought but to confirm it i have started the discussion on forum. And from next time i will always reply to Forum not to particular person. On Aug 19, 7:16 pm, TreKing treking...@gmail.com wrote: Please reply to the whole group so others can see

Re: [android-developers] Changing the arrow image in ExpandableListActivity

2010-08-19 Thread TreKing
On Thu, Aug 19, 2010 at 5:43 AM, Amit amitmishr...@gmail.com wrote: is it possible? if yes kindly help me. http://developer.android.com/reference/android/widget/ExpandableListView.html#attr_android:groupIndicator

Re: [android-developers] Re: How to invoke another application on a Button Click?

2010-08-19 Thread Sebastián Treu
On Wed, Aug 18, 2010 at 6:07 PM, dillipk codersnet2...@gmail.com wrote: How do I get the 'Intent'  of a 3rd party application in order to start the activity? public void startActivity (Intent intent) Intent intent = new Intent(SOME_ACTION); If the application knows to manage SOME_ACTION it

Re: [android-developers] Changing the Menu Selector?

2010-08-19 Thread TreKing
On Fri, Aug 13, 2010 at 1:13 AM, Amit amitmishr...@gmail.com wrote: Is it possible to change the selector of standard Menu? What is the selector ? - TreKing

[android-developers] Code of Home Screen

2010-08-19 Thread chetan
Hi All, I want to see the code of Home Application and Menu in Android. Actually i have downloaded the source code of Eclair 2.1 and looking for Code of Home screen. In pacakage/apps/ , there is a Lancher App, is it Home screen or some different application is there for Home screen. Can some

[android-developers] Re: Custom Cursor wrapping a MatrixCursor

2010-08-19 Thread Mark Carter
Thanks Satya. I saw that example and tried it out but its pretty clear that the content observers and dataset observers are being set on the wrapped MatrixCursor which is discarded as soon as setInternalCursor() is called... On Aug 19, 3:53 pm, Satya Komatineni satya.komatin...@gmail.com wrote:

[android-developers] Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread Mark Carter
I've got a map of about 500 entries. Strings are all very short (less than 5 chars). Its read-only data I want to read once at app-startup. What's the best way to store this so that loading this data is fast? I've tried storing the data in a CSV in res/raw but this takes about 700ms to parse on

[android-developers] Reverse C2DM

2010-08-19 Thread noob_boy
Is C2DM one way communication? Is it always from cloud2Android? Is it possible to work from Windows2Cloud?? i.e. Is there a way to send messages from Cloud to PC? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Rendering problems with an Activity having android:screenOrientation=landscape

2010-08-19 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I have a regular list with a list of names. When I pick one name, I need to show it on the screen with the largest font size (they are supposed to be made available for reading by the phone owner to other people). On this purpose, I activate a

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi, Thanks for the response. I apologize if I was vague or confusing. My question actually was on two issues, and I guess I mixed them up. The FIRST is of course code performance. And there in the comments about efficacy of native code at improving performance, etc. But the SECOND, and more

Re: [android-developers] Starting an Activity from a callback class

2010-08-19 Thread TreKing
On Wed, Aug 18, 2010 at 2:58 PM, Priyank priyankvma...@gmail.com wrote: The service class takes about 5 seconds to complete its task and calls a method which is present in another class(Callback Class). What Callback class? There's quite a few defined in the docs. But this is not working.

[android-developers] Re: Resize a view with animation

2010-08-19 Thread Sandy
I tried this but it does not seem to give the same effect that I was expecting. When I set it to GONE state, this is not done as an animation but it just transitions as a single update to the new final new layout. I initially thought it is easy to do this in android because it is simple and

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi Daniel, Thanks for the response. You are correct about the pitfalls of using the NDK. However, the primary reason that I am using the NDK is pretty much the same as is mentioned in the NDK documentation. That is, legacy code. Well, not quite, but the thing is that I have two development

Re: [android-developers] ant task for deploying to the market?

2010-08-19 Thread TreKing
On Wed, Aug 18, 2010 at 3:06 PM, fba chsoftwo...@gmail.com wrote: Does anyone know if such a beast exists? No. We really don't need to make it easier for spammers to flood the Market. - TreKing

[android-developers] Strange delays when doing wifi scans

2010-08-19 Thread Jordan Frank
Hi list, I have a simple app that just initiates a wifi scan every two seconds and then logs the results. I am observing some strange behaviour, and was wondering if anyone could shed some light. When I start scanning, if the phone (Nexus One running latest Froyo OTA release) is just sitting on

Re: [android-developers] Changing default location of R.java

2010-08-19 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/18/10 22:34 , Fabrizio Giudici wrote: On 8/18/10 12:19 , Roj wrote: Hi, Is there any way to change the default location of R.java file which is getting created in gen folder? By default R.Java will get created in gen folder under the

[android-developers] Re: How to compile/run JUnit 4 tests in Android?

2010-08-19 Thread Eric
On Aug 19, 9:57 am, The.French.DJ the.french...@gmail.com wrote: It depends on what parts you want to test. If you need the android test framework classes for testing activities and services in a valid android context then i am not sure if you can make junit 4 work with it. However, if you

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi all, Thought I would share some more about what I am looking at I basically have a code something like this: for ( i=0; inPixels; i++ ) { // block of code for image processing } Now I profile the block_of_code_for_image_processing separately (that is what is the per-pixel profile

[android-developers] Re: Media Player - crop video for fullscreen mode

2010-08-19 Thread Sandy
I've a similar usecase. Has anyone figured out how this (cropping video or surface views) can be achieved? Thanks, Sandy On Jun 30, 9:41 am, TeddybearCrisis sgr...@web.de wrote: I've got the same question though I have a slightly different use for it. I must render only a part of

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread DanH
The trick is to avoid any substringing while parsing. Read into a char array and then use String(char[] value, int offset, int count) to construct the individual string, after parsing its bounds. And you can speed that up by also having another file that is a dope vector (int[]) for the string

Re: [android-developers] Re: Custom Cursor wrapping a MatrixCursor

2010-08-19 Thread Satya Komatineni
Alright, let me take a look. It will take a bit of time to get into this. On Thu, Aug 19, 2010 at 10:43 AM, Mark Carter mjc1...@googlemail.com wrote: Thanks Satya. I saw that example and tried it out but its pretty clear that the content observers and dataset observers are being set on the

Re: [android-developers] parsing xml

2010-08-19 Thread Frank Weiss
What's the parsing error? What and how is that document being parsed? I eyeballed ther XML and it looks OK (albeit a bit hokey with all those text nodes). -- 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] Changing default location of R.java

2010-08-19 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/19/10 17:34 , Fabrizio Giudici wrote: Well, after experimenting I've found that #2 is the way to go, at least if you have explicit intents. In fact, if the code packages for activities stays the same, Android will pop up a question box when

Re: [android-developers] Getting critical feedback on your application

2010-08-19 Thread TreKing
On Wed, Aug 18, 2010 at 10:55 AM, MapleWorks mapleworkst...@gmail.comwrote: I was wondering how people manage to find the best feedback on the apps they create. On the Android Market, for better or worse (usually worse). We've developed an application as a test for the Android platform but

Re: [android-developers] Reverse C2DM

2010-08-19 Thread Frank Weiss
Sorry, but that question is a bit confusing. The title suggests you're asking about Android-to-cloud, but then you throw in Windows. -- 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] Getting critical feedback on your application

2010-08-19 Thread Frank Weiss
I wanted to add that if you really want to keep your customers satisfied, a complaint is a gift. The problem in this case is finding the sincere complaints. -- 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] Re: OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-19 Thread Romain Guy
If you don't have enough memory in your app you must modify it to work with this limit. On Thu, Aug 19, 2010 at 2:03 AM, Luca Carlon carlon.l...@gmail.com wrote: And would it be possible to increase the amount of RAM available? Would creating a different application which receives intents from

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Daniel Drozdzewski
On Aug 19, 4:20 pm, Amit prabhudesai.a...@gmail.com wrote: Hi Daniel, Thanks for the response. You are correct about the pitfalls of using the NDK. However, the primary reason that I am using the NDK is pretty much the same as is mentioned in the NDK documentation. That is, legacy code.

Re: [android-developers] Getting critical feedback on your application

2010-08-19 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/19/10 18:24 , Frank Weiss wrote: I wanted to add that if you really want to keep your customers satisfied, a complaint is a gift. The problem in this case is finding the sincere complaints. ... and detailed complaints. Because sometimes you

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi Daniel, There are no Java -- JNI boundaries, except where I call the top- level routine to do the image processing operation. Everything from there on is in C, and the native routine returns the resultant (filtered) image in a byte array. And I did look at DDMS logs (on Android target, not on

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread greg
If all the strings are less than 5 chars, have you considered packing them into 4-byte integers? On Aug 19, 11:01 am, Mark Carter mjc1...@googlemail.com wrote: I've got a map of about 500 entries. Strings are all very short (less than 5 chars). Its read-only data I want to read once at

Re: [android-developers] On which thread are callbacks of LocationUpdateListener executed?

2010-08-19 Thread TreKing
On Tue, Aug 17, 2010 at 2:50 PM, bitli jmlug...@gmail.com wrote: But it is not clear to me if callbacks like LocationUpdateListener (and other callbacks from sensors) are already in the UI thread or they require special care to access the UI components. Any clue? The documentation implies

[android-developers] Re: ATT Samsung Captivate mExternalStorageAvailable == false;

2010-08-19 Thread john brown
Kostya, What state does the code return? Perhaps logging the actual value would be a good place to start. Good idea. Unfortunately, I have limited access (time) to that phone since it is in use as a in case of emergency call 123-4567 type situation and that phone's owner must keep it with him

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread DanH
That's certainly an option, if the characters are from a limited charset so you can, eg, pack each char in 6 bits. Then you can save/ load an array of int. If you need to get the chars into Strings, though, some non-trivial work is involved, but you could, similar to my dope vector scheme,

Re: [android-developers] ATT Samsung Captivate mExternalStorageAvailable == false;

2010-08-19 Thread Stephen Lau
For the Samsung Galaxy phones, the internal flash memory is mounted at /sdcard, and the external SD card is mounted at /sdcard/sd cheers, steve john brown wrote: Hello, I have my application running on a Motorola droid. We have successfully used it in the intended enviornment for 2 days

Re: [android-developers] Getting critical feedback on your application

2010-08-19 Thread Chris Stewart
Very tough problem and I think we've all experienced it. For me, I've gotten the very best feedback from users via email. Unfortunately, that's far and few in between but at least it's something. -- Chris Stewart http://chriswstewart.com Fantasy

Re: [android-developers] Paid vs Free, My Early Experience

2010-08-19 Thread TreKing
On Fri, Aug 13, 2010 at 4:23 PM, Natalie Hooper nataliehoo...@virginmedia.com wrote: I personally like the short descriptions - it forces you to think about what your app really does/how it is useful It also forces you to omit key features and butcher the English language to make the most of

Re: [android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread Mark Carter
Well about 80% of them are shorter than 5 chars. Also using UTF8 encoding. On 19 August 2010 18:48, greg sep...@eduneer.com wrote: If all the strings are less than 5 chars, have you considered packing them into 4-byte integers? On Aug 19, 11:01 am, Mark Carter mjc1...@googlemail.com wrote:

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
In general, JITed Java code is as fast as or faster than the equivalent native code, if the JIT is reasonably good, and if the specific application can be coded efficiently in Java. The problem is that some specific data processing patterns are not easy to code efficiently in Java, and I suspect

Re: [android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread Mark Carter
Yeah the access is pretty random. Some keys accessed more frequently than others. Having the data in a HashMap is pretty much exactly what I would want. I tried default (de)serialization of the HashMap but that was much slower than reading the CSV. On 19 August 2010 18:59, DanH danhi...@ieee.org

[android-developers] Re: Strange delays when doing wifi scans

2010-08-19 Thread Bret Foreman
Are you seeing anything interesting coming out of logcat during the long scan cases? -- 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,

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
First thing to do is to find out all you can about the hardware architecture, in terms of cache line sizes, page sizes, replacement algorithms, etc. Presumably we don't have to worry about MP here, so that's one less complication (especially with regard to cache), but you still want to keep

Re: [android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread Mark Carter
Wow - thanks a million Dan. I changed to using the String(char[],int,int) constructor instead of String.substring() (and also removed an unnecessary trim() per line) and the parse time is now 30ms (compared to 400ms)! The fact the file is still a CSV is perfect because I can more easily

Re: [android-developers] Change Update Time of MyLocationOverlay

2010-08-19 Thread TreKing
On Wed, Aug 18, 2010 at 6:51 PM, hwrdprkns taylo...@gmail.com wrote: 1. Change the location update times to whatever I want. Idea: Use a timer to determine how often you want to update. Enable location updates on the MyLocationOverlay. When you get a fix, disable location updates and start

[android-developers] [Help] Can i get a OAuth token from AccountManger.getToken ?

2010-08-19 Thread Vincent Tsao
if i can, What is this value for authtokentype suppose to be for Google OAuth token using AccountManager.getAuthToken? -- 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

Re: [android-developers] Paid vs Free, My Early Experience

2010-08-19 Thread Chris Stewart
Yeah, I couldn't agree more TreKing. I just can't get past not having more than 3 full tweets to describe a product I want people to pay for. It has proven to be very difficult for me as I'm constantly adding features to my football app. I like the idea of Read More, simply because it keeps the

[android-developers] Re: Paid vs Free, My Early Experience

2010-08-19 Thread Maps.Huge.Info (Maps API Guru)
I like the 325 character limit on the market description. That said, I think TreKing's idea of a more button is perfect. The developer writes a quick synopsis in the 325 characters and if that's enough to grab the attention of the potential customer, a more button with perhaps no limit but set

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
Just a minor point on floating point: On some architectures there is a penalty in terms of register save/restore if you use FPRs. Eg, they may have a flag in the invocation that indicates if an FPR is used, and if so then all are saved on certain types of calls, and on task switches. I have no

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread DanH
Yeah, the substring mistake in parsing is a fairly common one. Kinda predictable to have the problem, if you haven't been down that road a few times. On Aug 19, 12:23 pm, Mark Carter mjc1...@googlemail.com wrote: Wow - thanks a million Dan. I changed to using the String(char[],int,int)

[android-developers] Re: Getting critical feedback on your application

2010-08-19 Thread DanH
Why do you think so many places have some sort of log on and evaluate us offers? (Yeah, they're also collecting email addresses, but that's a minor point.) It's hard to get people to give good evaluations of anything. For every person who complains to management, fifty will complain to their

[android-developers] Re: Application permissions

2010-08-19 Thread Stephen Lin
Hi Dianne, I am building an application to configure Ethernet on a custom Android platform. How do I get my application signed to have access to android.permission.WRITE_SECURE_SETTINGS? Thanks, Stephen On Aug 5, 7:36 pm, Dianne Hackborn hack...@android.com wrote: ... Third party apps can't

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi Dan, Thanks for your reply.. But not sure how important all this is on a phone engine vs on some big iron. Yes, question is if it is important (from the point of view if that will yield significant gain; it is essentially this that I'm trying to understand. I have some experience on DSPs

Re: [android-developers] Re: providing updates to unpublished application( old users)

2010-08-19 Thread TreKing
On Thu, Aug 19, 2010 at 12:53 AM, Brad Gies rbg...@gmail.com wrote: Republish the app with an incremented version number and a price of ... oh... say... $130 and then in the description say Please do not purchase this app. This update is ONLY for users that have already purchased

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread Amit
Hi Dan, Thanks for the response In general, JITed Java code is as fast as or faster than the equivalent native code, if the JIT is reasonably good, and if the specific application can be coded efficiently in Java.   I was actually banking on this. I don't know too much of the hairy details

Re: [android-developers] Paid vs Free, My Early Experience

2010-08-19 Thread Kostya Vasilyev
Agreed. It would be great if the developer could maintain a per-application changelog accessible via Market. That would make the description just that - a description of what the app is about. The changelog could be brought up by a UI element, the way user feedback is now. I know that

[android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-19 Thread Ben Pellow
I have been seeing the same issue as John for a few weeks now, but have not posted about it because I do have a working Droid, also. I think it's an issue with the device, but I cannot confirm that. Here is what I know: * I have two Droids. One is recognized by adb when connected, and the

[android-developers] Black spinner in progressbar

2010-08-19 Thread fr4gus
Hi all, I want to use a small spinner for an indeterminate progress bar. So I added this to my screen: ProgressBar android:id=@+android:id/ConnectionProgress style=?android:attr/progressBarStyleSmallTitle

[android-developers] Re: ATT Samsung Captivate mExternalStorageAvailable == false;

2010-08-19 Thread john brown
Stephen, For theSamsungGalaxy phones, the internal flash memory is mounted at /sdcard, and the external SD card is mounted at /sdcard/sd Your comment explains why /sdcard/Android/data/lms/mp would fail if I had indeed copied the files to /sdcard/sd/Android/data/lms/mp But my memory is

Re: [android-developers] Re: connected Motorola Droid not recognized by adb

2010-08-19 Thread Kostya Vasilyev
19.08.2010 22:01, Ben Pellow пишет: I have not found the Portal Tools menu Kostya is talking about... Ben, See screenshots posted here: http://kmansoft.wordpress.com/2010/08/19/enabling-adb-on-the-motorola-milestone/ Hope this helps. -- Kostya Vasilev -- WiFi Manager + pretty widget --

Re: [android-developers] Re: providing updates to unpublished application( old users)

2010-08-19 Thread { Devdroid }
On 19 August 2010 19:51, TreKing treking...@gmail.com wrote: On Thu, Aug 19, 2010 at 12:53 AM, Brad Gies rbg...@gmail.com wrote: Republish the app with an incremented version number and a price of ... oh... say... $130 and then in the description say Please do not purchase this app.

  1   2   3   >