[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
Why I am getting this exception? RoomSuffix is an int. Then why I got error when I execute suf = c45.getInt(c45.getColumnIndex(RoomSuffix)); Thanks On Nov 29, 11:55 am, pramod.deore deore.pramo...@gmail.com wrote: Hi, I want to retrieve int  value from cursor Cursor c =

[android-developers] Re: Simultaneously debugging multiple android applications and components

2010-11-29 Thread FrankG
Hello Elvis, I think it will be easier for you if you use printf debugging, as you can open several adb sessions .. and use logcat with different filters. Or write to your own file the content of the variables. I have no idea whether you can debug multiple components at once. Good luck ! Frank

[android-developers] Re: Unit Testing - Activity shutdown

2010-11-29 Thread Ian
Thanks for the response. In my test harness, I do 'button.performClick()', which itself calls activity.finish(). According to docs... If an activity is paused or stopped, the system can drop it from memory either by asking it to finish (calling its finish() method), or simply killing its

Re: [android-developers] can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Kostya Vasilyev
If by Galaxy 3 you mean Galaxy S - Samsung started rolling out updates to 2.2 recently. The exact dates are country-specific - I received mine in Russia on November 24 - but it's ongoing. -- Kostya 29.11.2010 9:41, Atik пишет: hello all, i am planning to buy galaxy 3, which is having 2.1

[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
When I tried this System.out.println (Column index is+c45.getColumnIndex(RoomSuffix)); then it prints -1. It means column doesn't exist? But I have created table as sampleDB.execSQL(CREATE TABLE IF NOT EXISTS + ROOM_TABLE_NAME + (RoomID integer primary key

[android-developers] Re: Localization: no compression... huge APK...

2010-11-29 Thread Pent
The reason for the big difference is that strings in res/values are stored uncompressed in UTF16. They can then be memory mapped. (The Android dev team later said if would have been better if they went with UTF8 for size) Interesting, thanks. Perhaps you could leave one language (the most

Re: [android-developers] Re: select (mac) query problem.

2010-11-29 Thread Kostya Vasilyev
That's because your query has an expression, max(RoomSuffix). The result (cursor) also uses that expression as the column name, and not just RoomSuffix. You could do one of the following to fix this: - Call c.getInt(1) without c.getColumnIndex, since you know there is only one column. -

[android-developers] Re: Localization: no compression... huge APK...

2010-11-29 Thread Dan
On Nov 28, 1:29 pm, DanH danhi...@ieee.org wrote: You don't have to generate your own resource IDs.  Just don't use IDs. Nothing REQUIRES you to use IDs. Slightly off topic, but that was an absolute which I'm pretty sure is incorrect. The constructor for android.app.Notification wants a

[android-developers] How is CallLog updated when Contact information changed?

2010-11-29 Thread Pink
Hi, I want to know the approach android followed for CallLog updation, when ever there is a change in Contact's Data. And can any body suggest the code in which it is being handled in Android source code? Thanks in advance!! -- You received this message because you

[android-developers] Re: Localization: no compression... huge APK...

2010-11-29 Thread webmonkey
Try looking at the Android source code, look for the resource handling parts. Maybe you can copy some parts. On Nov 29, 9:35 am, Pent tas...@dinglisch.net wrote: The reason for the big difference is that strings in res/values are stored uncompressed in UTF16. They can then be memory mapped.

[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
Thanks Kostya . It works On Nov 29, 1:36 pm, Kostya Vasilyev kmans...@gmail.com wrote: That's because your query has an expression, max(RoomSuffix). The result (cursor) also uses that expression as the column name, and not just RoomSuffix. You could do one of the following to fix this: -

[android-developers] Licensing Server and free apps

2010-11-29 Thread Patrick
Hallo! I have the following usecase: I am developing an application, that will be commercial once it is done. Currently it is unfinished but I want a beta version to be offered to a list of selected users. Those users should be able to download the application using the market for free. Going

[android-developers] how to set the Foreground for the frames ?

2010-11-29 Thread jani basha shaik
hai, i am new buddy for android platform . I want to setForeground image for the callee layout in call screen of android. To do this in layout xml file i have changed that callee frames as FrameLayout and then by getting ids of Framelayout i am setting foreground for each callee lines. it's

Re: [android-developers] Re: select (mac) query problem.

2010-11-29 Thread Kostya Vasilyev
Just curious - which of the three possible fixes did you apply? 29.11.2010 12:17, pramod.deore пишет: Thanks Kostya . It works On Nov 29, 1:36 pm, Kostya Vasilyevkmans...@gmail.com wrote: That's because your query has an expression, max(RoomSuffix). The result (cursor) also uses that

[android-developers] Re: Unit Testing - Activity shutdown

2010-11-29 Thread Ian
OK. Just run up the same app, press exit button and I get a call to onStop(), then onDestroy(). That, I assume is what happens on the finish() method. Notice no call to onPause() :-\ So, it looks like the test harness has a different behaviour. A temporary, poor solution has been to create an

[android-developers] Re: can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Atik
means u mean to say k user can update there SDK . i was thinking that once any one purchases a cell phone with a particular SDK , that will remain unchaged and we cant update the same. means i was thinking that if a person bought a android 2.1 eclairs device then he will be using the same device

[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
This one_ - Rewrite the query as SELECT MAX(RoomSuffix) AS MAX_SUFFIX FROM RoomTable This assigns a known column name (MAX_SUFFIX) to the expression. You then can call getColumnIndex(MAX_SUFFIX). On Nov 29, 2:28 pm, Kostya Vasilyev kmans...@gmail.com wrote: Just curious - which of the three

[android-developers] Re: Localization: no compression... huge APK...

2010-11-29 Thread Pent
android.app.Notification wants a resource ID if you want to make a notification to put in the status bar.  (Yes, I know, it's a drawable, hence the off topic, but I don't see away around it, if you have one, I'd be very interested in hearing about it.) I put in a feature request to allow a

[android-developers] Re: Questions about ThreadSafeHttpClient connection

2010-11-29 Thread Samuh
No. Threads call a certain getResponse() function which does a httpclient.execute() call. We do a response.getEntity().getContent() and pass the InputStream to the caller. So, you see, the HttpEntity is not handed over to anyone as is. From the Http Components documentation, I gathered that even

Re: [android-developers] Re: can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Kostya Vasilyev
There is no SDK on the phone. SDK is what you use to develop applications - on a desktop computer. Phones (and other devices) have firmware, which is the Android platform, of a particular version, that is made to work on that particular phone model, sometimes with new functionality (HTC

[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
Hi, But there is a problem . getColumnIndex(MAX_SUFFIX) doesn't return the highest integer. Here is in short what I am doing:- I have at table which have 3 columns:1. RoomId, 2. RoomaName 3. RoomSuffix If suppose in database there are following data RoomID RoomName 1 Hall 2

Re: [android-developers] Re: select (mac) query problem.

2010-11-29 Thread Kostya Vasilyev
Your code never gets the actual value for MAX_SUFFIX. You're calling getColumnIndex, but never - getInt. I see you tried to fix it by doing +1 on the value - that's a pretty good tip-off that you are doing something wrong. -- Kostya 29.11.2010 13:33, pramod.deore пишет: Hi, But there is a

[android-developers] Can we Import contacts in List Preferences

2010-11-29 Thread nubh bhargava
Hi, I am trying to import contacts in the preferences, actually I want that particular code should access a contact which I select and that value needs to be passed to other class or activity in future. For that I need to import contacts in the form of array I suppose. I need to know how I can

[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
You are right Kpstya after chenging to suf = c4.getInt(c4.getColumnIndex(MAX_SUFFIX))+1; It solve my partial problem . But Now here is new issue arrise which is I also faced when I user SharedPreference. Now the problem is If I have data like 1Hall 0 2Hall 1 3Kitchen 0 4.

Re: [android-developers] Re: select (mac) query problem.

2010-11-29 Thread Kostya Vasilyev
If you want a separate suffix sequence for each room name (if I understand you correctly), change your query for MAX_SUFFIX to filter by room name. SELECT MAX(RoomSuffix) FROM ROOM_TABLE_NAME WHERE RoomName = room name here I recommend you read through a SQL tutorial of some sorts. Here is

[android-developers] Re: select (mac) query problem.

2010-11-29 Thread pramod.deore
Ohh Kostya Thank you very much for your precious time. I will first look tutorial and then try to fix the problem. Once again Thank you. On Nov 29, 4:14 pm, Kostya Vasilyev kmans...@gmail.com wrote: If you want a separate suffix sequence for each room name (if I understand you correctly),

[android-developers] Re: Licensing Server and free apps

2010-11-29 Thread Michael A.
Hi Patrick, Your use case is not really relevant, because if you release an app for free, you cannot later charge money for it. I don't recall whether this is actually in the distribution agreement, but it is the way the market dashboard has been implemented. If you do not release the app

[android-developers] Re: How to build a 2d GUI to an OpenGL ES app?

2010-11-29 Thread Moss
It's not stupid, if you consider creating a multi-platform app you are bound to native code :P. If you just want to make an Android one you should only go native if it's absolutely necessary in a performance manner. On Nov 27, 5:19 pm, Miguel Morales therevolti...@gmail.com wrote: Yes, the

[android-developers] Re: Static Layout for whole app that must be in all Activity

2010-11-29 Thread Ganapathy.C
Thank you for allGiving me great suggestions . On Nov 24, 3:32 am, TreKing treking...@gmail.com wrote: On Tue, Nov 23, 2010 at 4:12 PM, bruce palant...@gmail.com wrote: Probably the best way to achieve this is to create a base activity class and extend it for all your other

[android-developers] Detect touch event on a OpenGL object

2010-11-29 Thread Paolo
Hi there! I have developed an Augmented Reality App using OpenGL ES 1.1. It's really cool and I'm very happy for that, because Im' an opengl beginner. Now I have a problem... :( I'd like to detect touch events on some opengl objects. I know I can't use View.EventListener with those, because these

[android-developers] Re: how to set the Foreground for the frames ?

2010-11-29 Thread Pink
Hi, Have you tried FrameLayout.setForeground(Drawable drawable); FrameLayout.setForeground(Drawable drawable) to set Any foregroud drawable for FrameLayout. if you pass drawable as null then it means that noforeground has been set. Please correct me if i am wrong. On Nov 29, 2:26 

[android-developers] Orientation change for widget

2010-11-29 Thread Anzi
Hi, Is there any way to change orientation for only some part my screen (Framelayout) within my activity whenever there is a configuration change. Here is My activity defination in Manifest File activity android:name=.TestActivity android:label=@string/app_name

[android-developers] Re: Detect touch event on a OpenGL object

2010-11-29 Thread pedr0
I have the same issue, any suggestion? On 29 Nov, 13:24, Paolo brand...@gmail.com wrote: Hi there! I have developed an Augmented Reality App using OpenGL ES 1.1. It's really cool and I'm very happy for that, because Im' an opengl beginner. Now I have a problem... :( I'd like to detect touch

[android-developers] How to calculate sound sample duration using SoundPool / AudioManager construct

2010-11-29 Thread Hatch
Hi, Have had this problem for a while now. I am using SoundPool / AudioManager combination to load 30 audio samples (for a sound sampling app) and it's working great ! But, now I need to add the information about every sample's duration in the GUI. Have looked through the docs and couldn't find

Re: [android-developers] Re: Detect touch event on a OpenGL object

2010-11-29 Thread Kostya Vasilyev
My GL skillz are a little rusty, but there are a few ways I still remember. 1 - This is a trick. Draw your objects one by one with a solid color, call glReadPixels after each to read a few pixels around the touch point. Use the color information you get from glReadPixels to check if the

[android-developers] Re: can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Atik
thanks very much On Nov 29, 3:25 pm, Kostya Vasilyev kmans...@gmail.com wrote: There is no SDK on the phone. SDK is what you use to develop applications - on a desktop computer. Phones (and other devices) have firmware, which is the Android platform, of a particular version, that is made to

[android-developers] ShapeDrawable border or inside another shapeDrawable

2010-11-29 Thread gato chlr
Hi, i need to use an oval ShapeDrawable as my Button's background. it is done by using: ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=oval solid android:color=#CC stroke android:width=2dp android:color=#FF00

[android-developers] Re: Binary sms?

2010-11-29 Thread Leon Moreyn-Android Development
All data is 0s and 1s. You can send an sms to the emulator using the simulator features in eclipse. Are you looking specifically to only send binary without a pre-established text? On Nov 26, 8:47 pm, vnv nikola1...@gmail.com wrote: Hi, is there a way to generate binary sms in emulator? --

[android-developers] Re: SQLite Performance

2010-11-29 Thread Doug Gordon
The database is strictly read-only on the Android side. When created on the PC, I issue, for example, the command CREATE INDEX EvtIdx ON tblEvtRef (idind);. On the Android side, I use the SQLiteDatabase.query method, in which one specifies the SQL command in fragments as opposed to having it parse

[android-developers] Setting alarm time

2010-11-29 Thread Tez
Hi, I need to set an alarm clock for, say, 9AM so I am getting a calendar instance Calendar cal = new GregorianCalendar(TimeZone.getTimeZone(UTC)); cal.set(2010, 11, 29, 9, 0, 0); and then I call AlarmManager.set like: mAlarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTime().getTime(), pi);

[android-developers] Re: Detect touch event on a OpenGL object

2010-11-29 Thread Phil Endecott
I've read about picking in OpenGL Beware that selection mode is not available in OpenGL ES. I want to understand if there are other solutions. You have various options, but none is simple: 1. unproject from the (x,y) screen coordinates to a ray in model space, and work out which object(s)

[android-developers] Why froyo copies package with index -1.apk to /data/app

2010-11-29 Thread Mr Pinguin
since 2.2 i have the problem that i see froyo copies com.android.myapp.apk as com.android.myapp-1.apk to /data/app after installation. So during first start , my app searches com.android.myapp.apk to unpack libraries, but this file of course doesn't exist. I would like to know why ? And how can i

[android-developers] Re: Detect touch event on a OpenGL object

2010-11-29 Thread Paolo
Yes I have just seen that selected mode is not available in OpenGL ES. So, I'm trying to follow the other ways, starting from color- solution, that seems the simplest. But I already get a problem... :( At every frame I'd draw many markers (every marker has different coordinates) in the scene and

Re: [android-developers] Setting alarm time

2010-11-29 Thread Kostya Vasilyev
This looks suspect: TimeZone.getTimeZone(UTC) Unless you are actually in that time zone -- Kostya 29.11.2010 19:00, Tez пишет: Hi, I need to set an alarm clock for, say, 9AM so I am getting a calendar instance Calendar cal = new GregorianCalendar(TimeZone.getTimeZone(UTC));

Re: [android-developers] Setting alarm time

2010-11-29 Thread Kostya Vasilyev
This looks suspect: TimeZone.getTimeZone(UTC) Unless you are actually in that time zone -- Kostya 29.11.2010 19:00, Tez пишет: Hi, I need to set an alarm clock for, say, 9AM so I am getting a calendar instance Calendar cal = new GregorianCalendar(TimeZone.getTimeZone(UTC));

Re: [android-developers] Can we Import contacts in List Preferences

2010-11-29 Thread TreKing
On Mon, Nov 29, 2010 at 4:53 AM, nubh bhargava nubh.bharg...@gmail.comwrote: I am trying to import contacts in the preferences, What are the preferences? actually I want that particular code should access a contact which I select and that value needs to be passed to other class or activity

[android-developers] Re: Orientation change for widget

2010-11-29 Thread Pink
Android has two types of Views. i. View - Widget ii. ViewGroup - Containers View can specify its dimension but finalized by ViewGroup. ViewGroup specifies layout(including orientation) of its childs and finalizes its childs dimension. ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] Re: Can we Import contacts in List Preferences

2010-11-29 Thread darrinps
Here is a very good overview of a Contact API: http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/ As for preferences, if I understand correctly what it is you want to do, then you could use modifyIntent passing in a unique string and value to save off. On Nov 29, 4:53 am,

[android-developers] App freezes when the power key is pressed

2010-11-29 Thread Eyvind Almqvist
My app freezes when the power key is pressed. This happens on SonyEricsson X10 and X8, but not on Samsung Galaxy S. This is what happens: 1)Launch the application-Press power key- Press power key again to active app-App freeze. The app also freezes when the USB cable is inserted, like this:

Re: [android-developers] Why froyo copies package with index -1.apk to /data/app

2010-11-29 Thread Dianne Hackborn
Because it simplified the implementation. You should *never* be relying on absolute paths. There is an API to get the path to your .apk -- Context.getApplicationInfo(). On Mon, Nov 29, 2010 at 8:23 AM, Mr Pinguin pinguint...@googlemail.comwrote: since 2.2 i have the problem that i see froyo

[android-developers] Re: App freezes when the power key is pressed

2010-11-29 Thread Yahel
What do you mean by freeze ? A Force close or a This app does not respond, wait or kill message, or no message at all ? From what you describe I'd guess you have a memory leak or an exception raising during the onStart or onResume of your app. You can probably replicate the problem on any

Re: [android-developers] App freezes when the power key is pressed

2010-11-29 Thread Dianne Hackborn
What do you mean your app freezes? This is not a typical failure case when pressing the power button. :} On Mon, Nov 29, 2010 at 10:05 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: My app freezes when the power key is pressed. This happens on SonyEricsson X10 and X8, but not on

[android-developers] Re: Setting alarm time

2010-11-29 Thread Tez
I have tried using GMT as well. no use. Something is wrong in my understanding of how this works. Can anyone help? On Nov 29, 5:21 pm, Kostya Vasilyev kmans...@gmail.com wrote: This looks suspect: TimeZone.getTimeZone(UTC) Unless you are actually in that time zone -- Kostya

Re: [android-developers] Re: Setting alarm time

2010-11-29 Thread TreKing
On Mon, Nov 29, 2010 at 12:20 PM, Tez earlencefe...@gmail.com wrote: I have tried using GMT as well. no use. What's *your* time zone? - TreKing http://sites.google.com/site/rezmobileapps/treking -

[android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-11-29 Thread ip332
drawCircle requires diameter in pixels. In order to convert accuracy (in meters from LocationProvider) into pixels you can do this: - convert current location (GeoPoint) into pixels using mapView.getProjection.toPixels() - create another GeoPoint with longitude = center.getlatitudeE6() + accuracy

[android-developers] problem with camera

2010-11-29 Thread Arman
hi I'm new to android and I'm developing a camera app, my code (which so far just starts preview!) works fine on emulator, but on real device (nexus one) i have got unexpectedly stopped. i will be thankful if somebody help me, here is my code: package com.camera; import java.io.IOException;

[android-developers] IME composing text's typeface

2010-11-29 Thread Kwit
Hi, might it possible to change the typeface of the composing text for an input method with my own font ? I built a typeface and changed the typeface of view sucessfully with my own font (Paint.setTypeface). I could also changed the composing text's typeface by using typefacespan using the system

[android-developers] What's the best way to have your app 'sleep' for N milliseconds?

2010-11-29 Thread charlest
I want to display a message on the screen, have it displayed for 60 seconds, then display another message. There is nothing specific going on during the 60 seconds that I'm waiting to complete, so AsyncTask doesn't seem to apply. Does someone have a generic code snippet that does this so that I

[android-developers] How to count the number of launches of my app?

2010-11-29 Thread Kang
Hi all, What I want to do is to log whenever user launches my app. So, I instrumented a logging code(which make a request to the server) into onCreate() of the base activity, and the server counts the requests. However, the problem is that the code wasn't called if user press home key rather

[android-developers] Using street view in my application

2010-11-29 Thread Aleksandar Todorov
I want to use StreetView inside my application, not launching it as external application with google.streetview:cbll=lat,lngcbp=1,yaw,,pitch,zoommz=mapZoom @http://developer.android.com/guide/appendix/g-app-intents.html Is there any way to do this? -- You received this message because you are

[android-developers] android bluetooth

2010-11-29 Thread Jags
I am using an handsfree bluetooth handset in ndroid device. i need to program the handsfree in my application. Firstly, when i create a beep sound it should be heard in handsfree. When i press some button (in fact 1 out of 2 buttons, I need yes or no answer) in handsfree and the appropriate answer

[android-developers] TrackBall

2010-11-29 Thread ronit
Hello all, I can use the trackball to scroll through a list, but i didn't find a way for clicking on items... Is there a way to press it down? Thx. -- 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] how to make the flash application on android non exitable

2010-11-29 Thread dumpinghead
Hi, I am trying to make the survey application on Android Tablet PC and my requirement is to make the application in Flash that is non exitable i.e. the user would not be able to: 1. Exit the application 2. Switch between different application 3. Minimize the application... Does all these things

[android-developers] Re: Handler.postDelayed not working when screen goes off

2010-11-29 Thread Evi Song
Thank you all for the discussion which saves my investigation. I was using the Handler.postDelayed() with something like a AlarmRunner to make a count down. Then I get the same problem that, handler paused when my phone standby. I'll switch to AlarmManager instead according to your suggestions.

[android-developers] Can you detect a touch to the screen when the screen is off? (Wake up screen with a touch)

2010-11-29 Thread Damo
I was wondering if it was possible to detect a touch of the screen when the screen is off. I know this doesn't make sense for most apps (if its in your pocket you dont want it to register touches when off) but for the app im developing i need/want it to. The phone is going to be left on the table

[android-developers] What is the best way to send data from Android Application to a Remote MySQL Database?

2010-11-29 Thread priya naral
What is the best way to send data from Android Application to a Remote MySQL Database? -- 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] How to Show a pdf file in Android Emulator?

2010-11-29 Thread Chandu
Hi All, Can anyone please suggest me how to show a pdf file or Text file in Android Emulator while developing an application? I have one more question. When I created a sample for Video Player (Which needs to play Video files), In Android Emulator 2.1 and 2.2 I am not able to view the video but

[android-developers] android bluetooth

2010-11-29 Thread Jags
I am using an handsfree bluetooth handset in ndroid device. i need to program the handsfree in my application. Firstly, when i create a beep sound it should be heard in handsfree. When i press some button (in fact 1 out of 2 buttons, I need yes or no answer) in handsfree and the appropriate answer

Re: [android-developers] can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread akshay kesharwani
i m xtremely sorry as i dont have knowledge so i csn not sgt u abt the ph. -- 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] Implement a rich text editor

2010-11-29 Thread Tony Blues
Hi there, I am wondering if there are any good options to implement a rich text editor in Android. Please note I am talking about a rich text editor that can be used in an Android application, not the one embedded in a web page using HTML and Javascript. My requirements are: * Basic formatting

[android-developers] Passing objects to new intents

2010-11-29 Thread John C. Bland II
I've googled this quite a bit and have seen many arguments to not pass the object rather store it in a database, use a custom Application object, or a static variable. Ultimately, the app will use a database so I'll just pass the id of the record and pull it out in the new intent [correct me if

Re: [android-developers] handing event of two button in widget

2010-11-29 Thread andy zhao
Can you send your detailed error log for analysis? Cause it's difficult to track the issue. Br Andy 2010/11/29 Honest honestsucc...@gmail.com hello, i have developed simple widget which display images from sd card. I have two button(for setting and open) on center frame. Now i am

[android-developers] Copy a database from a retail phone to a development phone?

2010-11-29 Thread Jon Shemitz
I have a need to examine the contacts and call log databases. My development phone has no contacts; it also has no SIM card, and hence no calls. I need realistic data, so I can't just add some random garbage. The obvious answer is to copy the database from my personal (2.1u1 retail build) phone to

[android-developers] cursor.requery() in non-UI thread: CalledFromWrongThreadException

2010-11-29 Thread ydanneg
Hello team, I have ListView with the attached CursorAdapter. For known reasons I want to call cursor.requery() on non-UI thread (using AsyncTask) but it fails with the CalledFromWrongThreadException. As I understand the adapter tries to update UI from the thread where requery() method was called.

[android-developers] Connect tow Emulators on same machine

2010-11-29 Thread Azhar Khan
my machine is running window 7 i have running two android emulators AVD1 and AVD2 AVD1 is for server application and listening on ip 10.0.2.15 and port 8080 AVD2 is for client application and when it tries to connect with server it gives exception on following line Socket socket = new

[android-developers] Re: Apps missing in publisher console

2010-11-29 Thread zep
Yeah me too, just published an app and 1 sec later it was gone ;S On 24 Nov, 22:04, Robert Green rbgrn@gmail.com wrote: I'm currently missing 4 of my apps!  Is anyone else having this problem? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Miss apps after Andriod market update

2010-11-29 Thread john h
I found some of my apps missed in the console after pagination, and it still exists in the Android Market. It seems that all apps with similar name will be filtered. For example, one of my app name is Smart Vibrator (for 1.5), then another app named Smart Vibrator (for 1.6+) was missed. All missed

Re: [android-developers] [Android] If modify framework layer code, how to debug it validly?

2010-11-29 Thread bhagyalakshmi gaddam
checkon automatic debug option On Thu, Nov 25, 2010 at 2:13 PM, Dianne Hackborn hack...@android.comwrote: You should ask these kinds of questions in android-porting. On Thu, Nov 25, 2010 at 12:36 AM, kevens hao ithjf.kev...@gmail.comwrote: Now i modify framework code in source code, so

[android-developers] Re: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-29 Thread Jeff M.
Anyone know how to get the Tab recognized on a Mac? I have USB debugging turned on, installed the latest Android SDK, installed the Galaxy Tab add-on in Eclipse, rebooted the Mac and the Tab, but adb still doesn't see it. I probably need a driver, right? I don't see one anywhere for the Mac. --

[android-developers] Android 2.2 VGA StatusIcon be Scaled in drawable-lpdi layout-small

2010-11-29 Thread flystone
I have a problem about resources(drawable-ldpi,layout-small in framework) be scaled Display On screen. we develop Android Phone on QVGA ,According toSupporting Multiple Screens, 1) I add ro.sf.lcd_density = 120 2) I modify PRODUCT_LOCALES= es_ES ldpi mdpi 3) I add res/drawable-ldpi and

[android-developers] Re: ContentProvider and Location-based services

2010-11-29 Thread Guillaume
Thanks you your reply. I have no problems on filtering locations. I'm juste wondering what's the best way of doing it. If I do some filtering in the SQL query, I will have to query a lot of times as user location change. On the contrary, If the contentProvider returns the whole list without

[android-developers] Re: Change Activity in Tabs on Button Click

2010-11-29 Thread Rames
Hi There, can you please give a sample snip of code on how you did the switching between the activities using the static method? Thanks Rames.P. On Nov 23, 4:34 pm, manu_bet manue...@gmail.com wrote: I did that by static method in TabActivity On 23 nov, 10:34, skink psk...@gmail.com wrote:

[android-developers] Interpret Logcat Output

2010-11-29 Thread Ro
Hi guys, I tried searching for an article or post which talks about interpreting/understanding logcat output. I keep getting an Application Not Responding window. I found out that it currently is shown in two main places: when the window manager waits to long on an event it has dispatched to an

[android-developers] How to convert JPEG file to PGM format in android ?

2010-11-29 Thread ian
I'm implementing face recognition system in android with PCA method I must convert JPEG face image to PGM format. Is there possible to do this in Android? If so how would one do it? I've been searching it's possible to use JAI ImageIO to convert but the problem is Android doesn't support

[android-developers] Process crash (signal 11) on image handling

2010-11-29 Thread novodroid
I have 3 image resources in my app. Loading and displaying any one of them in an ImageView goes smoothly. But when I remove the displayed ImageView from the layout, null it and add a new image, things get weird. Either the process crashes completely (signal 11) when I try calling .recycle() on

[android-developers] Re: How load jar file automatically by installing apk

2010-11-29 Thread alp
you can check whenever it is available by opening the apk file with a archiving tool On Nov 24, 10:01 pm, Mark Murphy mmur...@commonsware.com wrote: Step #1: Put the JAR in your project libs/ directory Step #2: Add it to your build path in Eclipse Everything else will be taken care of for

Re: [android-developers] GPS Position realtime

2010-11-29 Thread Leon Li
yes,MyLocationOverlay,and the arrow icon is a ball on android. On Thu, Nov 25, 2010 at 4:39 AM, Mark Murphy mmur...@commonsware.com wrote: There is MyLocationOverlay. Other than that, you are on your own. On Wed, Nov 24, 2010 at 8:51 AM, Julien soad0...@gmail.com wrote: Hello I would like to

Re: [android-developers] GPS Position realtime

2010-11-29 Thread Julien Moine
But it doesnt show the same arrow as in Google Map! It is not possible ?? I find it very usefull as it show in which direction you are looking at. Instead, I have a basic blue circle. On 24 November 2010 21:39, Mark Murphy mmur...@commonsware.com wrote: There is MyLocationOverlay. Other than

Re: [android-developers] can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Kumar Bibek
Yes you can. But it needs a bit of research and effort. :) There are lots of resources on the web which explain how to do it. Search for them. Try Cynanogen forums. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Nov 29, 2010 at 2:01 PM, akshay kesharwani

[android-developers] Need your help to clarify CTS 2.2_r3 failure test case issues on Froyo.

2010-11-29 Thread JC
Hi all, I'm run default CTS test plan on emulator and my device but it always gets failure on those two test cases of CtsTextTestCases test package: (1).android.text.method.cts.BaseKeyListenerTest - testBackspace (2).android.text.method.cts.BaseKeyListenerTest - testPressKey Below are error log

Re: [android-developers] GPS Position realtime

2010-11-29 Thread TreKing
On Thu, Nov 25, 2010 at 6:38 AM, Julien Moine julien.moine...@utbm.frwrote: But it doesnt show the same arrow as in Google Map! It is not possible ?? Subclass MyLocationOverlay, call super.draw(), then draw your own arrow.

[android-developers] Re: Send video through socket and playing problem

2010-11-29 Thread Pico
Hi, All: I have the same issue right now, do you have good solution for that? Could anyone give me any pieces of advices? Thanks a lot. BR, Pico On Nov 20, 3:39 pm, Charlie charliel...@gmail.com wrote: Hi all, I have two simple programmes, one server and one mediaplayer client,

[android-developers] Adding New Locale And Translating Android Core

2010-11-29 Thread Christopher Swift
Hello I have been searching the Internet for the past few weeks in order to find out how I can help contribute by translating the Android core apps and adding the Welsh (Cymraeg (cy)) locale. I and a few other friends are interested in undertaking such a project and we'd like to be able to use a

[android-developers] Re: how to use AmrInputStream

2010-11-29 Thread elik
I got it working by copying the source to my own project. make sure you leave it is android.media. Because of jni naming convention it wont bind correctly unless it is in this package. On Nov 2, 12:24 am, cindy ypu01...@yahoo.com wrote: I copy the AmrInputStream.java to my application. It can

[android-developers] What is the Android Sequence of Startup

2010-11-29 Thread gus
I have worked my way through an Android book and a half, some of the online documentation, and have an understanding of Java (although I use it seldom because it is so verbose) - but am STILL having trouble getting my head around this stuff. What I would like to know is: How does Android start up

[android-developers] Crash when playing a song using mediaplayer

2010-11-29 Thread Monica Tudora
Hello, I am working on a project where I have sound effects and two songs. When I make the transition from one sound to another and spamming touch the application crashes. It seems to be crashing somewhere in the mediaplayer.release(), it doesn't return from here. Every time I start a new sound I

[android-developers] Inetaddress.getbyname exception

2010-11-29 Thread aad
Dear all, I am facing a problem where InetAddress.getByName, getAllByName are throwing UnknownHostException. I have included the java.net.* packages and I am using an android device to load this code and test and not an emulator. Also, I connect the device on hyperterminal to capture the logs. I

[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-29 Thread Emanuel Moecklin
Hi Moss com.company.app is just the obfuscated package name (much like your 'com.myweb.myapp'). Of course I'm using a unique package name or at least I hope it is unique ;-). Thanks for your post anyway, I really appreciate any help! Cheers Emanuel On Nov 24, 2:01 pm, Moss b.thax@gmail.com

[android-developers] Handling Camera

2010-11-29 Thread Android
Hi am using the following code to get the preview for my camera , but my app getting force closed, dont know y, can anyone help me on this. setContentView(R.layout.camera); final Preview preview = new Preview(getApplicationContext()); FrameLayout layout = (FrameLayout)

Re: [android-developers] Google Android Map Overlay

2010-11-29 Thread search . light . com
I wrote a sample which jpeg image is displaying when you click the overlay. I think that maybe could be helpful as a reference. (MapViewTouchSample.java) package com.ma.chupic.chu.com.beta.activity; import java.util.ArrayList; import android.content.Context; import

  1   2   3   >