Re: [android-developers] What to check into source control?

2011-01-18 Thread Mattias Svala
Ah, that's correct. The bin/ folder is a mistake in my example, I did not check that in. So it you check in every thing apart from bin/ and gen/, how do you get the project to build cleanly right after it is imported into Eclipse? :.:: mattias -- You received this message because you are

Re: [android-developers] What to check into source control?

2011-01-18 Thread Kostya Vasilyev
Project - Clean, sometimes a few times, eventualy works. I also have .metadata in my ignore list. -- Kostya 2011/1/18 Mattias Svala thebra...@gmail.com Ah, that's correct. The bin/ folder is a mistake in my example, I did not check that in. So it you check in every thing apart from bin/

Re: [android-developers] Re: switch between activity issue

2011-01-18 Thread Kevin Duffey
I too am confused.. why do you have to jump through activities repeatedly like this? You need to give us a lot more info to make sense of what you are doing? On Mon, Jan 17, 2011 at 11:22 PM, Kumar Bibek coomar@gmail.com wrote: Why exactly are you trying to loop it repeatedly? And that too

Re: [android-developers] Re: Converting screen coordinates to world coordinates?

2011-01-18 Thread Kostya Vasilyev
Like TreKing already explained, if you take your phone, look through it at the world around you, and pick a point on the screen - then that defines a ray (line in 3d) that starts at your eyes, passes through the point on the screen that you touched, and stretches into the infinity. You can find

[android-developers] About run app after installation using PACKAGE_ADDED or other mechanism

2011-01-18 Thread xeagle
Can current version of Android allow an app to be told when it is updated? Thanks! -- Forwarded message -- From: Dianne Hackborn hack...@android.com Date: Jul 25 2009, 1:02 am Subject: run app after installation using PACKAGE_ADDED or other mechanism? To: Android Developers I

Re: [android-developers] What to check into source control?

2011-01-18 Thread Mattias Svala
On Tuesday, January 18, 2011 9:09:47 AM UTC+1, Kostya Vasilyev wrote: Project - Clean, sometimes a few times, eventualy works. If that is the best we can do, then I think the build system is a bit broken. Anyone else have other tricks? :.:: mattias I also have .metadata in my ignore

Re: [android-developers] Re: NFC Intents: Reacting on specific NDEF types

2011-01-18 Thread Ajith Kamath
I dont think there is such a thing. You will have to write intermediate receiver for android.nfc.action.TAG_DISCOVERED Then separate ndef messages like i said before and generate separate intents which ever is needed. Regards, Ajith On Tue, Jan 18, 2011 at 12:54 PM, andrew

Re: [android-developers] What to check into source control?

2011-01-18 Thread Marcin Orlowski
On 18 January 2011 09:26, Mattias Svala thebra...@gmail.com wrote: If that is the best we can do, then I think the build system is a bit broken. Anyone else have other tricks? The only thing that is permanently broken on clean checkouts here is gen folder. It's sometimes missing while Eclipse

Re: [android-developers] Is AlarmManager to be caused a serious security hole?

2011-01-18 Thread Dianne Hackborn
The alarm manager is not a security hole. It has nothing to do with permissions -- if the app doesn't have any permissions, there is nothing it an do. On Mon, Jan 17, 2011 at 11:08 PM, Hiro OKUYAMA okuoku...@gmail.com wrote: We can make and run cron-like program by the AlarmManager on

[android-developers] Re: Leave crashed app

2011-01-18 Thread lou
Thanks for you answers, and...done ! It was a static object restored from Preferences which was cleared on crash, so I just modify his accessor to reload it if null. Thanks again to TreKing Matty ! Regards. On Jan 14, 7:49 pm, Matty busbus...@gmail.com wrote: I agree with TreKing.  If you're

[android-developers] Data Warehousing courses,sap,Microsoft Technologies @ Bigclasses.com

2011-01-18 Thread big class
Data Warehousing courses @ Bigclasses.com: Informatica, Datastage, Cognos, SAP BO, OBIEE, Microstrategy, SAP BW BI Other Courses @ Bigclasses.com SAP ABAP, SAP FICO, Oracle, Oracle DBA, Dot Net, Java, Testing. Features: • Limited no.of students per batch • Easy and

Re: [android-developers] About run app after installation using PACKAGE_ADDED or other mechanism

2011-01-18 Thread Marcin Orlowski
On 18 January 2011 09:16, xeagle xeagle...@gmail.com wrote: Can current version of Android allow an app to be told when it is updated? Even if it would, older versions wouldn't so it'd better to cope with this yourself, which is quite trivial. When app is updated all user settings and data is

[android-developers] Re: Proper Exception Handling

2011-01-18 Thread Zsolt Vasvari
But don't ever let an exception fall through in the main thread that runs your activities because your app will terminate with an unfriendly force close dialog that users are conditioned to hate. I don't agree with this advice. How are you going to fix problems if you stick your head in the

[android-developers] Is there a macro/script/utility to detect unlocalized strings in Eclipse (or elsewhere)?

2011-01-18 Thread Bernard T. Higonnet
TIA Bernard Higonnet -- 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

[android-developers] Traceview + performance problem

2011-01-18 Thread b_t
Hi, my app has performance problems, and I don't understand why. It has a not too complicated UI, and Traceview displays the following result (a row below an other is it's child): METHOD Incl% Calls+Recur

Re: [android-developers] Re: switch between activity issue

2011-01-18 Thread Kumar Bibek
Ok. What does your logcat say? OutOfMemory? StackOverFlow? That would give more hints Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 2:20 PM, tstanly tsai.sta...@gmail.com wrote: ok, because I am test for utility, A, B, C, D is mentioned before, A

[android-developers] SocketException : The operation timed out

2011-01-18 Thread lou
Hi ! I'm developping an application using websocket ( socket on port 80 ) in a service activities which send some HTTP requests. I'm using a ThreadSafeClientConnManager and declarate it like this : /* * * * * * code * * * * * */ mParams = new BasicHttpParams(); mSchemeRegistry = new

[android-developers] Re: Proper Exception Handling

2011-01-18 Thread Zsolt Vasvari
Have an app that in various activities handles any number of types of Exceptions, such as IOException, FileNotFoundException, SAXException, etc. In some cases, I want an exception to terminate the called Activity and alert the user of an error, in others, I can handle the Exception more

[android-developers] Re: NFC Intents: Reacting on specific NDEF types

2011-01-18 Thread Dominik
Exactly, I am looking for the Android-equivalent of the J2ME Push- Registry entry of the form MIDlet-Push-1: ndef:external_rtd?name=urn:nfc:ext:company.com:demo,* See http://wiki.forum.nokia.com/index.php/NFC_PushRegistryWriter Currently, with Android, the user has to decide which application

[android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread lou
Just for info I've already tried this code : /* * * * * * code * * * * * */ HttpConnectionParams.setConnectionTimeout(mParams, TIMEOUT); HttpConnectionParams.setConnectionTimeout(mParams, TIMEOUT); HttpConnectionParams.setSoTimeout(mParams, SOCKET_TIMEOUT); On Jan 18, 9:57 am, lou

[android-developers] Re: switch between activity issue

2011-01-18 Thread tstanly
ok, because I am test for utility, A, B, C, D is mentioned before, A is main program, B doing for voice test, C doing for backlight, D doing for gsensor, and my device will connect to wifi ap first, then doing this utility test, but now I can't figure out my shutdown issue is my application

[android-developers] Re: Progress Bar without a dialog box

2011-01-18 Thread cool.manish
Kostya, did you mean that I should add progress bar in my each activity and should set it visibility according to my requirement? On Jan 17, 6:06 pm, Kostya Vasilyev kmans...@gmail.com wrote: You can put progress indicators into the winow title. This describes a progress bar that goes from 0

[android-developers] NFC doubts. JSR 257 - 177

2011-01-18 Thread Gorka
Hi, I´ve been working on NFC with my Samsung 5230 mobile, and now I am considering to move to Android. Before I do that I have some questions. I´ve been reading the group and the developers web page, but still have some doubts. - Is it possible to read MIFARE DESFire tags using the standard API.

Re: [android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread Kostya Vasilyev
I think this might be caused by http keep-alive, you can try disabling that. Another option is to hide the failure inside HttpClient from your code by setting a retry count. -- Kostya 18.01.2011 12:07, lou пишет: Just for info I've already tried this code : /* * * * * * code * * * * * */

[android-developers] Re: Proper Exception Handling

2011-01-18 Thread appel
So if I check with file.exists() and before I can call open some other process deletes the file I should always crash? That doesn't sound very user friendly to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Heap size continuously increase

2011-01-18 Thread Sapna Srivastav
Hi to all I am developing an application that will run 24x7 in which I used an Alarm Manager for executing the application on every 1 minute by setRepeating() method having entry of android:process=:remote in manifest.xml. The application size on heap increases gradually, I called onDestroy(),

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-18 Thread Ecthelion
On 17 Jan., 21:21, Romain Guy romain...@android.com wrote: Quick update: Android 3.0 will give you the ability to load mutable bitmaps from BitmapFactory. The API relies on BitmapFactory.Options, and a new field call inMutable. While I'm at it, know that we've added another API to

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-18 Thread Ecthelion
That inBitmap option sounds great. Thanks for that :-). On 17 Jan., 21:21, Romain Guy romain...@android.com wrote: Quick update: Android 3.0 will give you the ability to load mutable bitmaps from BitmapFactory. The API relies on BitmapFactory.Options, and a new field call inMutable. While

[android-developers] Could I exec some codes after my app is installed

2011-01-18 Thread xeagle
Hi, When my app is downloaded from Market and installed, could some code be executed? I'd like do something after my app is installed. Is there any callback? Thanks He Chuan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Is it possible to upload?

2011-01-18 Thread Abhilash baddam
Hi, I got something, but there i have to pass request with parameters developer key,clientid,domain and domain name..what i have to pass there. I got information from this link http://code.google.com/p/ytd-android/downloads/detail?name=ytd-android-0.2.tar.gzcan=2q= On Mon, Jan 17, 2011 at 9:05

[android-developers] Re: switch between activity issue

2011-01-18 Thread tstanly
actually the logcat different every time, but there are some same part, now I doubt for two direction, one is switching activities, the other is wifi issue, following logcat is the end of entire logcat report, the D/TAG from my application, thanks for your time!

Re: [android-developers] What to check into source control?

2011-01-18 Thread Mattias Svala
On Tuesday, January 18, 2011 9:46:20 AM UTC+1, Webnet Android wrote: On 18 January 2011 09:26, Mattias Svala theb...@gmail.com wrote: If that is the best we can do, then I think the build system is a bit broken. Anyone else have other tricks? The only thing that is permanently broken on

[android-developers] Re: Could I exec some codes after my app is installed

2011-01-18 Thread xeagle
If my app is replaced by a new version one, my app can receive intent PACKAGE_REPLACED. However, when my app is installed first time, my app cannot receive intent PACKAGE_INSTALL or PACKAGE_ADDED. Why? So I think that I can only do something when my app is updated to a new version, not when my

[android-developers] Re: Retrieve tweets from my twitter account

2011-01-18 Thread Albert
Cool thanks for the answers! Alberto -- 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] Could I exec some codes after my app is installed

2011-01-18 Thread Marcin Orlowski
On 18 January 2011 10:32, xeagle xeagle...@gmail.com wrote: When my app is downloaded from Market and installed, could some code be executed? No. Which is good. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: switch between activity issue

2011-01-18 Thread tstanly
and from /dev/log/system logcat has many following message in the end == D/WifiService( 1080): ACTION_BATTERY_CHANGED pluggedType: 0 == On 1月18日, 下午5時36分, tstanly tsai.sta...@gmail.com wrote: actually the logcat different every time, but there

[android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread lou
Thanks for you answer Kostya ! Unfortunately, add header Connection : close to every requests doesn't work, I've always some timeout... And it's a good idea to retry the request, but it's just hide the problem, not solve it... Another idea? :) Regards. On Jan 18, 10:17 am, Kostya Vasilyev

[android-developers] Re: Rotating an Android VideoView

2011-01-18 Thread Darshan
You are right Justin... Regards, Darshan On Jan 10, 7:35 pm, Justin Buser justin.bu...@gmail.com wrote: So if I am correct you are saying that you want the video to be landscape and the player controls to be portrait while the phone is portrait oriented? On Jan 7, 12:41 am, Darshan

[android-developers] App Marketing and Monetization Strategies - Webinar

2011-01-18 Thread OrenTodoros
The mobile app industry is seeing a growth unlike any other before. To better understand the growing popularity of mobile apps, and help all players in the mobile app ecosystem figure out how to successfully promote and monetize apps, we're hosting a one-time-only, 30min webinar on Thursday,

Re: [android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread Miguel Morales
Sometimes what happens on my phone is that after a certain period of inactivity the device shuts down the internet connection. I'm not familiar with ThreadSafeClientConnManager but I'm guessing it doesn't fail when the connection was shut down and fails when you attempt to read/write data. This

[android-developers] Location database

2011-01-18 Thread miguel
Hi, i have a sql server containing coordinates. I have to make a sql query giving another coordinate and a radius so the server gives me the corrdinates inside the giver circunference. The Android part is done but... how to make that query? how to compute distance between 2 coordinates in a

Re: [android-developers] Re: Count of activities in App's stack

2011-01-18 Thread Richard Leggett
You might try along the lines of using: android.permission.GET_TASKS In your manifest and then code similar to: http://davanum.wordpress.com/2007/12/18/android-task-manager-primitive-prototype/ But I would strongly recommend you don't ask for that permission and instead do what Kumar

[android-developers] Re: Count of activities in App's stack

2011-01-18 Thread MrChaz
This might be a good place to look: http://developer.android.com/reference/android/app/ActivityManager.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

Re: [android-developers] Location database

2011-01-18 Thread Marcin Orlowski
On 18 January 2011 12:03, miguel miguelp...@gmail.com wrote: Hi, i have a sql server containing coordinates. I have to make a sql query giving another coordinate and a radius so the server gives me the corrdinates inside the giver circunference. The Android part is done but... how to make

Re: [android-developers] Is it possible to upload?

2011-01-18 Thread Abhilash baddam
Hi, I am getting response code 403. On Tue, Jan 18, 2011 at 3:06 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, I got something, but there i have to pass request with parameters developer key,clientid,domain and domain name..what i have to pass there. I got

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-18 Thread Matthew Fleming
Yes, that is what I also want to do. It does not seem that the 'inBitmap' option would solve the problem, but a BitmapFactory option to load the Bitmap as mutable sure would. I am salivating at the prospect. And I think anyone writing an app that does any image editing or annotation might make use

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-18 Thread Matthew Fleming
And then there was the time I ported a jpeg decoder to Palm OS, with its lovely segmented memory architecture. Those, those were the days. Matthew On Jan 17, 5:25 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Of course, that will only work on 3.0 or higher. Can't you do you own bitmap loading?  

[android-developers] Re: How to Launch Tab activity by using Intent

2011-01-18 Thread MarcoAndroid
The IO Schedule app from google from last year might be a good place to get you started. There they use activities to fill each tab. http://code.google.com/p/iosched/ On Jan 18, 2:41 am, Anzi anji...@gmail.com wrote: Hi, My application is having Tab activity with activity One and Two with a

[android-developers] GMail App bundle data

2011-01-18 Thread akay
Hi Guys, I sending an email using Gmail app, but the resultCode doesn't tell me if the email is sent or not. I want to read Bundle data from onActivityResult, but I don't know where to begin. So does anyone know if Gmail app put any kind of data in that bundle before it exits? -- You

Re: [android-developers] GMail App bundle data

2011-01-18 Thread Kumar Bibek
GMail app is not an open source app. So, only the developers who developed this would know about it. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 5:52 PM, akay ak.kiet...@gmail.com wrote: Hi Guys, I sending an email using Gmail app, but the

Re: [android-developers] Is it possible to upload?

2011-01-18 Thread Kumar Bibek
Of course you have to . But I would suggest that you should either try out the official java library (this might be difficult since that has a few dependencies which might not compile on Android). http://code.google.com/apis/youtube/2.0/developers_guide_java.html You can also try the Protocol

Re: [android-developers] Re: switch between activity issue

2011-01-18 Thread Kumar Bibek
I don't see anything relevant here. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 3:29 PM, tstanly tsai.sta...@gmail.com wrote: and from /dev/log/system logcat has many following message in the end == D/WifiService(

Re: [android-developers] Heap size continuously increase

2011-01-18 Thread Kumar Bibek
Is it a service/activity? You have to give more details on what you are doing to make us understand your problem better. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 2:54 PM, Sapna Srivastav sapna.ari...@gmail.comwrote: Hi to all I am developing

Re: [android-developers] Re: Proper Exception Handling

2011-01-18 Thread Kumar Bibek
Well, When someone deletes the file after you have created, and then you try to write into it, then the catch block comes into picture. But, I guess, that might not happen since the file would be locked. I am not sure though. But just in case, that happens, don't you think, it's actually an

Re: [android-developers] Is AlarmManager to be caused a serious security hole?

2011-01-18 Thread Mark Murphy
On Tue, Jan 18, 2011 at 2:08 AM, Hiro OKUYAMA okuoku...@gmail.com wrote: We can make and run cron-like program by the AlarmManager on Android. Correct. But I think those are dangerous for we. You are welcome to your opinion. Because AlarmManager as stealthy as follows:  * Not resident

Re: [android-developers] Is there a macro/script/utility to detect unlocalized strings in Eclipse (or elsewhere)?

2011-01-18 Thread Mark Murphy
If I recall correctly, MOTODEV Studio for Android (Eclipse + ADT + other goodies) has a string resource editor that gives you a grid of string IDs and languages, making it relatively easy for you to find gaps. On Tue, Jan 18, 2011 at 4:53 AM, Bernard T. Higonnet bthigon...@gmail.com wrote: TIA

Re: [android-developers] Heap size continuously increase

2011-01-18 Thread Mark Murphy
On Tue, Jan 18, 2011 at 4:24 AM, Sapna Srivastav sapna.ari...@gmail.com wrote: I am developing an application that will run 24x7 in which I used an Alarm Manager for executing the application on every 1 minute by setRepeating() method having entry of android:process=:remote in manifest.xml.

[android-developers] How to set images in screen have different click events on different area

2011-01-18 Thread Faheem Khatri
I have an single image in which it set has screen home page in which it contains 5 menu icons,so i need to know how to set click events for this icons -- 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: Proper Exception Handling

2011-01-18 Thread DanH
I disagree. An aversion to using exceptions is an old prejudice, and trying to avoid their use can lead to some really ugly and buggy code. Even the class loader (at least the Sun version) has exceptions flying all over the place under the covers. On Jan 18, 3:02 am, Zsolt Vasvari

[android-developers] Re: Android encryption Google App Engine decryption

2011-01-18 Thread DanH
Use an algorithm that's common to both. On Jan 18, 1:00 am, Beginner ayrton.merc...@gmail.com wrote: Hi, I'm trying to implement a fairly straight-forward protocol. Where Android clients would encrypt certain data before sending it over to my google app engine server. However, it seems like

[android-developers] Re: GMail App bundle data

2011-01-18 Thread akay
Thanks. Guess it would be nice to be notify of email delivery status without resort to means outside the SDK. :( It would seem reasonable to put the sort of data such as 1. send button pressed, 2. Draft button pressed, and 3. discard button pressed into the bundle object to be return to the

Re: [android-developers] What to check into source control?

2011-01-18 Thread TreKing
On Tue, Jan 18, 2011 at 3:37 AM, Mattias Svala thebra...@gmail.com wrote: I see what you are saying. Just trying to stir the nest to see if some other interesting solution pops up. :-) Honestly, how frequently are you importing your project that this is such a problem?

Re: [android-developers] What to check into source control?

2011-01-18 Thread Mattias Svala
On Tuesday, January 18, 2011 2:33:53 PM UTC+1, TreKing wrote: On Tue, Jan 18, 2011 at 3:37 AM, Mattias Svala theb...@gmail.com wrote: I see what you are saying. Just trying to stir the nest to see if some other interesting solution pops up. :-) Honestly, how frequently are you importing

[android-developers] The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-18 Thread RyanMcNally
Hello all Hopefully someone out there can shed some light on this one, because it's got me completely stumped. I've received 5 reports, from 3 separate users on 2 different devices (ZTE blade and HTC Liberty), of an ArrayIndexOutOfBoundsException that I simply cannot explain. The stacktrace:

[android-developers] Re: seekTo behavior after onBufferingComplete

2011-01-18 Thread kernelpanic
seekTo is relative to the start of the file - NOT the current position according to the docs public void seekTo (int msec) Since: API Level 1 Seeks to specified time position. Parameters msec the offset in milliseconds from the start to seek to for your 30s file, the range is 0 to 3 try

Re: [android-developers] What to check into source control?

2011-01-18 Thread Greg Donald
On Tue, Jan 18, 2011 at 7:47 AM, Mattias Svala thebra...@gmail.com wrote: The point is that I want it to be as easy as possible to download my project and start hacking on it. If you have to know about all these quirks of Eclipse, that is an unnecessary hurdle for someone new to Android

[android-developers] Re: seekTo behavior after onBufferingComplete

2011-01-18 Thread Ganesh
Thanks for your reply. I understand there was a mistake in my earlier post. However, my question is more towards the state machine. seekTo doesn't alter the state of the player and if a player is already in PlaybackComplete state, will seekTo have any effect? Could you please comment? Thanks,

Re: [android-developers] What to check into source control?

2011-01-18 Thread TreKing
On Tue, Jan 18, 2011 at 7:47 AM, Mattias Svala thebra...@gmail.com wrote: The point is that I want it to be as easy as possible to download my project and start hacking on it. Oh, you're distributing your project for others to work on? In this case, I hope you have detailed, step-by-step

[android-developers] Re: Detect if app is installed

2011-01-18 Thread Brill Pappin
Nice rundown Bob! The only issue is using the http:// but I think for what your describing he will have to, because if the app doesn't exist, he wants it to the real site and load a real html page. I'm not sure what effect this is going to have on other apps, but if the URL is unique enough then

Re: [android-developers] What to check into source control?

2011-01-18 Thread Mattias Svala
On Tuesday, January 18, 2011 3:16:42 PM UTC+1, TreKing wrote: On Tue, Jan 18, 2011 at 7:47 AM, Mattias Svala theb...@gmail.com wrote: The point is that I want it to be as easy as possible to download my project and start hacking on it. Oh, you're distributing your project for others to

[android-developers] Re: What to check into source control?

2011-01-18 Thread Brill Pappin
I usually do check in the gen folder, just because its got a valid class file in it that is used byt he rest of the source. It does get regenerated all the time, but thats just part of the build. I always exclude the /bin folder though. - Brill Pappin On Jan 18, 3:05 am, Mattias Svala

[android-developers] Re: SharedPreferences.Editor.apply() -- very confused

2011-01-18 Thread davemac
Yikes! Two thoughts here. One, that switch statement is a bad idea since the behavior in Honeycomb (and Ice Cream Sandwich, etc) will revert back to a commit(), unless you're incredibly diligent about updating your code in a timely fashion. The second and scarier thought is that many times we're

[android-developers] Re: How best to query web repeatedly.

2011-01-18 Thread Brill Pappin
I think your maybe making too many requests to the server, particularly over a network that may be spotty while driving. Add to that the speed of the car and you have a problem. Actually because the car is moving in a straight line, you can do a single query for the next N kilometeres. you only

Re: [android-developers] Re: SharedPreferences.Editor.apply() -- very confused

2011-01-18 Thread Mark Murphy
More likely, that switch statement will crash with a VerifyError on older versions of Android, since apply() will not exist. Even if the statement is not executed, the virtual machine will still try to find it when it loads the class containing this code, and that will trigger the VerifyError.

[android-developers] AdSense for Android: is it available in Europe?

2011-01-18 Thread Mik
Dear all, I am missing something here: when I run apps in my device I see many ads by google. I am using Admob so far but I wish to try something else. I've tried to use AdSense but I didn't manage to find a place from where to download the adsense JAR file. Isn't adSense available in Europe?

[android-developers] Re: Android shopping cart API/SDKs out there?

2011-01-18 Thread pawpaw17
Mike, According to the developer distribution agreement: http://www.android.com/us/developer-distribution-agreement.html, I only see discussion on the rules for distributing Product outside the market. The distribution agreement defines Product to be: Products: Software, content and digital

[android-developers] Re: How to set images in screen have different click events on different area

2011-01-18 Thread viktor
you can add OnTouchListener and test area what you want. or, add layouts onto FrameLayout, where background is your image. On 18 Січ, 15:14, Faheem Khatri faheemkhatr...@gmail.com wrote: I have an single image in which it set has screen home page in which it contains 5 menu icons,so i need to

Re: [android-developers] Is there a macro/script/utility to detect unlocalized strings in Eclipse (or elsewhere)?

2011-01-18 Thread Marcin Orlowski
On 18 January 2011 14:02, Mark Murphy mmur...@commonsware.com wrote: If I recall correctly, MOTODEV Studio for Android (Eclipse + ADT + other goodies) has a string resource editor that gives you a grid of string IDs and languages, making it relatively easy for you to find gaps. Or (for batch

[android-developers] Market Distribution rules prohibiting in-app sales of Product - does this apply to books and CDs and glue, or just apps and Android-SDK derived software?

2011-01-18 Thread pawpaw17
Guys, The Android Market prohibits an app from distributing other apps, or in-app charges that get around the Market's right to take a percentage of the sale: http://www.android.com/us/developer-distribution-agreement.html However, does this also preclude traditional ecommerce? Can my app let

[android-developers] Android productivity with multi core processor

2011-01-18 Thread viktor
Hi, Is it need additional api to work with multi core processor, or functionality is already embedded into OS? I know that for Java VM is no matter how many cores there, but what about dalvik VM? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Tracking someone else using Latitude (Android Tutorial Wanted)

2011-01-18 Thread Chris Grant
So a hypothetical with skeleton code. The goal is to get my wife's real-time updates from Latitude and track her while she is running. Note that I am doing this with my phone and the problem I am getting is I get the right location but it does not update. I call this every second as I move

[android-developers] RecognizerIntent not working; “missing extra calling_package”

2011-01-18 Thread Isaac Waller
I'm having problems using the RecognizerIntent API on Android 2.2. When I call the API using this code: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH);

[android-developers] Re: Proper Exception Handling

2011-01-18 Thread Paul
I agree, that would be by definition an exception state, where the normal flow (check if file exists - write to it) has been disrupted. I have a little file name generation routine that does make use of the FileNotFoundException though, out of pure convenience: (pseudo-code) while (true) {

Re: [android-developers] Market Distribution rules prohibiting in-app sales of Product - does this apply to books and CDs and glue, or just apps and Android-SDK derived software?

2011-01-18 Thread TreKing
On Tue, Jan 18, 2011 at 9:15 AM, pawpaw17 georgefraz...@yahoo.com wrote: Anyone know (answer to either or both questions)?? Your lawyer might. However, if you consider apps like Amazon, Target, Overstock, Best Buy, etc, that pretty much do exactly this, it seems doable.

[android-developers] Re: Proper Exception Handling

2011-01-18 Thread Paul
On Jan 18, 4:02 am, Zsolt Vasvari zvasv...@gmail.com wrote: Have an app that in various activities handles any number of types of Exceptions, such as IOException, FileNotFoundException, SAXException, etc. In some cases, I want an exception to terminate the called Activity and alert the

[android-developers] How to Import HdmiService class from /android/frameworks/base/slsi to My Project

2011-01-18 Thread sjor
Hi. I develop an application about display settings and I want to import HdmiService.java to my class file. How can I do this? Eclipse does not recognizes it if i write import com.slsi.sec.android.HdmiService. I am sure it can be done. If you look at DisplaySettings.java from Settings app you can

Re: [android-developers] How to Import HdmiService class from /android/frameworks/base/slsi to My Project

2011-01-18 Thread Mark Murphy
On Tue, Jan 18, 2011 at 11:05 AM, sjor sleche...@gmail.com wrote: Hi. I develop an application about display settings and I want to import HdmiService.java to my class file. How can I do this? Eclipse does not recognizes it if i write import com.slsi.sec.android.HdmiService. I am sure it can

Re: [android-developers] Re: Proper Exception Handling

2011-01-18 Thread Kostya Vasilyev
The usual thing is to use atomic file open operations: For input: Context.openFileInput() For output: Context.openFileOutput() Both of these either throw an exception when something goes wrong, or return a File {Input|Output} Stream that you can read from /write to. Same with plain Java:

Re: [android-developers] How to Import HdmiService class from /android/frameworks/base/slsi to My Project

2011-01-18 Thread zeinab odat
hi, I am zeinab odat from jordan university of science and technology and I need you feedback on readability reaserch by filling this survey via the link below. please do not ignoor my request. best regards survey link:

[android-developers] Java Developer

2011-01-18 Thread Sangeetha bitla
Hi Friends, Hope you are doing Great If anyone interested please send updated resumes to *h...@ksolinc.net*h...@ksolinc.net My Name is Sangeetha and i am working from Ksolinc.We have an urgent requirement with our Direct client. Below is the job description. Our client is looking

[android-developers] Re: create mutable Bitmap directly from file/stream?

2011-01-18 Thread Hermes Pique
The same problem on StackOverflow: http://stackoverflow.com/questions/4726129/why-so-much-memory On Jan 9, 8:06 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I doubt there is, Matthew. I've been looking for this answer a long time. But if someone knows how to do this, this would be

[android-developers] Re: SocketException : The operation timed out

2011-01-18 Thread lou
Thanks Miguel ! I didn't found any solution, and the matters was for the Http requests, not for the socket used. I'll try some other things and will come back here if I find an answer. Thanks again. Regards. On Jan 18, 11:51 am, Miguel Morales therevolti...@gmail.com wrote: Sometimes what

[android-developers] Re: Resized Widgets

2011-01-18 Thread keyboardr
minWidth at least gives it to you in pixels, whereas the xml is usually defined in dip. Plus if you don't want to have different sources for each size it can help so you can just directly copy/paste any changes. Still, the ability to calculate actual size at runtime would be nifty... On Jan 17,

Re: [android-developers] Is it possible to monitor the web traffic of each application?

2011-01-18 Thread 陈彧堃
How does this app comes out? http://androidforums.com/android-applications/86525-network-monitoring-per-application.html On Thu, Dec 30, 2010 at 4:47 PM, Dianne Hackborn hack...@android.comwrote: Sorry, no it is not. On Thu, Dec 30, 2010 at 12:25 AM, 陈彧堃 chenyuku...@gmail.com wrote: --

[android-developers] Re: Location database

2011-01-18 Thread cellurl
1. Funny, I was just working on similar. I use a box instead of circle. Here is an example using IE7 (doesn't work in chrome for some reason) http://goo.gl/LTXMW 2. I know this is overkill, but I use this haversign routine to compute distance. http://www.movable-type.co.uk/scripts/latlong.html

[android-developers] Re: Proper Exception Handling

2011-01-18 Thread Paul
Good point... have modified the process such that on being able to open the file (i.e. the filename is not yet used), it maintains the stream and creates it right away, rather than checking, exiting the loop and then creating the file. Thanks for the pointer, Paul On Jan 18, 11:10 am, Kostya

[android-developers] Re: How to connect android to Google App Engine

2011-01-18 Thread dilbert
This reply comes a little late but maybe it will help somebody searching for the same answer. You could try with this: http://monkeyboy-code.blogspot.com/2010/07/using-hessian-in-your-android.html and this: http://monkeyboy-code.blogspot.com/2010/07/using-gae-as-backend-for-android.html -- You

[android-developers] Re: Android productivity with multi core processor

2011-01-18 Thread Hari Edo
While I don't know how dalvik really will hand this, but I expect that if you make a new Thread or AsyncTask as required, it's done. Now, it's up to you to architect your app to do this in a way that makes sense. It does not make sense to fire off ten or twenty different AsyncTasks just to show

Re: [android-developers] Re: adb works, ddms shows nothing

2011-01-18 Thread Anders Aagaard
Hm No I don't run adb as root, nor should I need to. But I'll try that the next time it happens, not too happy about running it as root though. And it does work after while, which it shouldn't if it was a permission issue. Best regards Anders On Tue, Jan 18, 2011 at 4:57 AM, Indicator Veritatis

[android-developers] hiding points behind camera.....AR

2011-01-18 Thread prachi
Hi all Iam a novice in understanding the calculations for projecting a 3d point to camera view.But i still i understood something and came out with some calculations. According to android documentation Iam getting the azimuth,pitch and roll values from getOrientation method and using them for

  1   2   3   4   >