[android-developers] unrevoked 3.20

2010-12-29 Thread guang li
Hey guys I need unrevoked 3.20(G7 windows),but I can't find one copy on internet,if someone has,please send it to my gmail. Thinks -- 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: How to redirect GPS nmea from /dev/ttymxc to somewhere

2010-12-29 Thread nelsonchung
Here is the solution about the GpsStatus and GpsSvStatus that I fixed the original problem. http://nelsonchunglife.blogspot.com/2010/12/android-gps-porting-hal-code-fix.html On 12月27日, 上午11時04分, nelsonchung chihchun.ch...@gmail.com wrote: Hi all, I found that I need to implement other

Re: [android-developers] Re: What changed in Gingerbread as far as the app widgets?

2010-12-29 Thread Kostya Vasilyev
29.12.2010 5:23, Mark Murphy пишет: On Tue, Dec 28, 2010 at 9:15 PM, Zsolt Vasvarizvasv...@gmail.com wrote: Sorry, what's your point? Those docs haven't been updated since 1.5 and they assume a 320x480 screen. I am fairly certain that document is newer than 1.5, but, never mind. I have an

[android-developers] Re: Cache size and Heap size

2010-12-29 Thread cool.manish
Thanks Dianne. I have some more queries. 1. I am refering to the Cache memory which is return by getCacheDir function. Is there any limit that per application only this much Cache memory could be used? 2. If Cache memory is same as normal internal data storage space then is it dependent upon

[android-developers] Re: How to update one of views(setText, setImage) in item already added on ListView

2010-12-29 Thread Mingchung
TreKing *thank you for your replying* Yes, I did search google with term: BaseAdapter getView Just like you said, pretty many results showing that the layout is decided(addView, inflate) at overrided getView method. *my question is* Is that meaning the layout of ListView item is decided when

[android-developers] how to set the letter-spacing in the Textview

2010-12-29 Thread dylan-cool
hey, does any one know how to set the letter-spacing in the Textview,i can only find API about the line-spacing.need help,ur generous help will be highly appriciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Testing in android

2010-12-29 Thread maccoy
We are exploring the Android Junit, and trying to figure out to use Emma code coverage On Dec 29, 12:40 pm, oriharel ori.ha...@gmail.com wrote: Just a question - How many of you use the testing infrastructure provided by Android? -- You received this message because you are subscribed to the

Re: [android-developers] how to set the letter-spacing in the Textview

2010-12-29 Thread Kostya Vasilyev
Dylan, See this: android:textScaleX Since: API Level Sets the horizontal scaling factor for the text. Must be a floating point value, such as 1.2. This may also be a reference to a resource (in the form @[package:]type:name) or theme attribute (in the form ?[package:][type:]name)

Re: [android-developers] Re: Cache size and Heap size

2010-12-29 Thread Dianne Hackborn
On Wed, Dec 29, 2010 at 12:40 AM, cool.manish mannishga...@gmail.comwrote: 1. I am refering to the Cache memory which is return by getCacheDir function. Is there any limit that per application only this much Cache memory could be used? It is just a directory in your app's private data dir,

Re: [android-developers] Re: Alarm in sleep mode

2010-12-29 Thread Dianne Hackborn
On Tue, Dec 28, 2010 at 11:56 PM, b_t bartata...@gmail.com wrote: Hmm, so there is no possibility to display real-time information in a widget? For example a compass widget? Correct, app widgets are not intended to be continually refreshing. What is an acceptable refresh rate? Less is

Re: [android-developers] Twitter client Application in Android

2010-12-29 Thread praveena ankitha
Use that code in onStart() of the Activity On Mon, Dec 27, 2010 at 2:36 AM, jayavenkat jaia...@gmail.com wrote: Hi All, I've developed twitter Oauth Application. I use shared prefrrence to store the values of access token . Everything works fine But the access token are saved only

[android-developers] Re: Unique Phone ID

2010-12-29 Thread Swaroop
A lot of discussion on this going on here. http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id I am not sure of the answer which would work on GSM/CDMA Phones + Tablets w/o phone capabilities. Any one got an Android Tablet around to check this? ANDROID ID would exist

[android-developers] populate ItemizedOverlay when AlertDialog is showing

2010-12-29 Thread viktor
Hi, my problem is that I can't populate overlays if AlertDialog show. I put addOverlay and populate methods to listeners OK and Cancel, but new overlay doesn't showed on map. It will update after moving a map. Is it any other way to refresh overlays? -- You received this message because you

[android-developers] Painting in webkit's webview

2010-12-29 Thread yogi
hi all, I am looking into the code of webview.java.and one thing i want to know that how this webview class is holding other objects in a webpage...my requirement is that whenever user clicks on the checkbox on a page the focusring should not go off until the the checkbox loose focus

[android-developers] Re: Suggestions for my inventory application

2010-12-29 Thread Yahel
What else can i add in this to make it the only inventory solution out in mobile. Being ambitious is a nice quality... :D Take a look at what your competitors do, on mobile platforms(ios, android, windows mobile 6.5) and desktop. And go from there A quick obvious one : Scan the barcode if

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Mark Murphy
Your Uri is invalid. Please use a valid path to your file. On Wed, Dec 29, 2010 at 2:56 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: This is my onclick code public void onClick(View v) {                 // TODO Auto-generated method stub                 Intent i = new Intent();      

Re: [android-developers] How I get Command in Home Screen In Android

2010-12-29 Thread Mark Murphy
Step #1: Write your own home screen application. Step #2: Add this feature to your own home screen application. On Wed, Dec 29, 2010 at 2:23 AM, Animesh Sinha animesh.andr...@gmail.com wrote: I mean to say that i want a notification(Command) same as when we type *#06# in home screen it will

Re: [android-developers] Default orientation of device

2010-12-29 Thread Marek Urbaniak
There is such a concept in Android. Check e.g.,: http://android-developers.blogspot.com/2010/09/brace-for-future.html(sections where Motorola Charm and Flipout are mentioned) I could not believe there is no API call to check device natural orientation. I posted this question on Stack Overflow

[android-developers] Re: Set credentials for a secured http connection via a Webview with setHttpAuthUsernamePassword

2010-12-29 Thread Sandeep N M
http://stackoverflow.com/questions/995514/https-connection-android Regards, Sandeep On Dec 27, 2:00 am, MattBol mboll...@gmail.com wrote: Hi, I would like to use a WebView to connect to a secure website over HTTPS, accept its certificate and automatically handle credentials (given previously

[android-developers] MultiTouch Support

2010-12-29 Thread pedr0
Hi at all, I have one issues with multitouch features offers by the MotionEvent class, this is my code: @Override public boolean onTouchEvent(MotionEvent event) { [] if(event.getPointerCount() == 1){ switch (event.getAction()) {

[android-developers] help with ColorStateList

2010-12-29 Thread dashman
i've got a layout for a List row entry as: (i've removed extraneous code) LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:background=@color/child_row_color ... /LinearLayout in the res/color folder, i've got a a file child_row_color.xml ?xml version=1.0

[android-developers] Issue with messages in this group?

2010-12-29 Thread Gus
Hi: I posted a message last 12/27/2010, and it was responded, and now I can't find it...Same issue happened before. Are some messages deleted or they just dissapear? Below is the original message: Suject: Can't debug/install applications

[android-developers] Ant Emma and JUnit, integrating all three

2010-12-29 Thread maccoy
Is there a step by step guide to try this? -- 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] moving InputMethod to the top

2010-12-29 Thread guich
Hi, I have a text field that is displayed at the bottom of the screen (its a fake component, not an android component). When the user enters the field, i open the input method with this: imm.showSoftInput(instance, 0); However, since the field is at the bottom and the input method

[android-developers] fromHtml doesn't work for textview font size, any help?

2010-12-29 Thread genxsol
Hi Dear, i am trying to put text on a text view with different size for each word textView.setText(Html.fromHtml(font size='10' color='red' Word1 / font font size='15' color='white' Word2 /font))); color does work but no font size, any help plz -- You received this message because you are

[android-developers] Re: Set credentials for a secured http connection via a Webview with setHttpAuthUsernamePassword

2010-12-29 Thread Nikolay Elenkov
http://stackoverflow.com/questions/995514/https-connection-android Please don't just put some random code that trusts all certificates in your app. (like some people in the thread above suggest). Read all the answers and understand how to use a custom trust store in your application. If

[android-developers] example on asynctask class..

2010-12-29 Thread Abhilash baddam
Hi friends, can any one send me the example on asynctask class. I tried it's not working fine. Any help please. Regards, Abhilash.B -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] How implement LBS in Android

2010-12-29 Thread Faheem Khatri
Creating application i think is not a big deal , but getting POI's of different place (Creating Database) is a big deal. On Wed, Dec 29, 2010 at 7:42 AM, Frank Weiss fewe...@gmail.com wrote: There are of course many Android LBS apps to date. Most of them use their own proprietory databases.

Re: [android-developers]How to get the data from LBS?

2010-12-29 Thread Faheem Khatri
@mohammad shankayi Which api u're talking about? On Wed, Dec 22, 2010 at 8:27 AM, mohammad shankayi mohd...@gmail.comwrote: i think you must use google maps API ... it may have this useful info as a layer... sincerely mohammad shankayi On Wed, Dec 22, 2010 at 05:40, kevens hao

[android-developers] Set Android WIFI Ip address from my own application

2010-12-29 Thread Faheem Khatri
Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Alarm in sleep mode

2010-12-29 Thread b_t
Thank you, you answered all of my questions On Dec 29, 10:52 am, Dianne Hackborn hack...@android.com wrote: On Tue, Dec 28, 2010 at 11:56 PM, b_t bartata...@gmail.com wrote: Hmm, so there is no possibility to display real-time information in a widget? For example a compass widget? Correct,

Re: [android-developers] Set Android WIFI Ip address from my own application

2010-12-29 Thread Kostya Vasilyev
Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value:

Re: [android-developers] invoke my application at given Date/Time

2010-12-29 Thread peeyush varshney
Same like Alarm application.. On Mon, Dec 27, 2010 at 7:08 PM, asinha asinha.vocoll...@gmail.com wrote: How can I invoke my android application at given Date/Time, say daily at 9am? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How to get Temporary Mobile Subscriber Identity(TMSI) in Android

2010-12-29 Thread 赵杨阳
rt. And who knows that how to get Channel Id of a CellLocation? -- 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] Re: Is there a Horizontal ListView?

2010-12-29 Thread Richard Leggett
I did some digging around this a while back and Mark is on the money, it'll take a big chunk of time. But I would agree there are plenty of uses for things like horizontal lists, in fact there's a very prominent one in the core SMS app which allows you to choose a word from a list of

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Robin Talwar
Sorry I checked the path and i made a foolish mistake of not writing the name of the file correctly. Except that everything should go well . So is the following line correct ; sry i am a beginner i.setDataAndType(Uri.parse(file:///raw/unlockingandroid.pdf), application/pdf); or is it that

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Mark Murphy
On Wed, Dec 29, 2010 at 10:58 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Sorry I checked the path and i made a foolish mistake of not writing the name of the file correctly. Except that everything should go well . So is the following line correct ; sry i am a beginner    

[android-developers] network LocationProvider

2010-12-29 Thread Dan
I have a request to distinguish location sources from the network LocationProvider (is it cell tower based, or ip address based). Is there a safe rule of thumb proxy I can use to determine this e.g. if the phone has a cell signal it uses the cell tower because that is more accurate, otherwise it

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Robin Talwar
Then what do you suggest? Should i put the pdf on net and put it's url ? On Wed, Dec 29, 2010 at 9:36 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Dec 29, 2010 at 10:58 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Sorry I checked the path and i made a foolish mistake of

[android-developers] Re: Ant Emma and JUnit, integrating all three

2010-12-29 Thread maccoy
With some more study into the http://developer.android.com/guide/ developing/testing/testing_otheride.html able to generate code coverage.html for EMMA. 1.Initially i had created a project and Project test. 2.Used the command line Android - update project and update test project. 3.Then Run the

Re: [android-developers] Re: pdf reader

2010-12-29 Thread paresh mayani
If i m not having third party pdf application installed in the android device then? ?? On 29 Dec 2010 13:26, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: This is my onclick code public void onClick(View v) { // TODO Auto-generated method stub Intent i = new

[android-developers] Gradient, Shadow and MaskFilter on a TextView

2010-12-29 Thread Anders
Hello. Im trying to customize a textview to add a gradientoverlay, a dropshadow and a maskfilter. There seems like i cant combine the different methods as i thought i would. For example when i use both gradient and shadow my shadow gets the same color as the gradient. Combinding dropshadow and a

Re: [android-developers] Re: pdf reader

2010-12-29 Thread Mark Murphy
On Wed, Dec 29, 2010 at 11:26 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Then what do you suggest? Should i put the pdf on net and put it's  url ? I cannot make a suggestion without knowing what it is that you are trying to do, at a higher level than invoking an ACTION_VIEW Intent on

[android-developers] Re: pdf reader

2010-12-29 Thread DanH
Environment.getExternalStorageDirectory(). On Dec 29, 10:26 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Then what do you suggest? Should i put the pdf on net and put it's  url ? On Wed, Dec 29, 2010 at 9:36 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Dec 29, 2010 at

[android-developers] Re: How to store date and time in database

2010-12-29 Thread DanH
It should be pointed out that it doesn't matter (much) what time reference is used, so long as it's used consistently, and all conversion algorithms to/from the reference form understand its details. So long as a consistent reference is used dates will sort and compare correctly. On Dec 28, 9:41 

[android-developers] get the genre name with most songs from the music library

2010-12-29 Thread Kyle
I am trying to get the genre with most songs by using the media store and failed to get it, as well as I can get the artist with most songs. Any one has good idea. Thanks. Kyle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] sqlite on sdcard

2010-12-29 Thread Nikola
Hi, I would like to store sqlite databse on sdcard. Is is possible to tell system somehow to put it on sdcard? Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Kostya Vasilyev
You'll have to write your own SQliteOpenHelper-type class for that, as the built-in implementation always calls context.getDatabasePath. If you are not using SQliteOpenHeper, just call SQLiteDatabase.openOrCreateDatabase() with a path of your choice. -- Kostya 29.12.2010 20:10, Nikola

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 6:17 PM, Kostya Vasilyev kmans...@gmail.com wrote: You'll have to write your own SQliteOpenHelper-type class for that, as the built-in implementation always calls context.getDatabasePath. If you are not using SQliteOpenHeper, just call

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Kostya Vasilyev
Docs: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html I pasted my code here: http://pastebin.com/1hKWffeu It doesn't differentiate between read-only and writable database open modes (SqliteOpenHelper does), and probably lacks some error handling here and

[android-developers] Re: Android TTS sound braking

2010-12-29 Thread Leon Moreyn-Android Development
There is a feature that can allow you make sure the clips plays fully before termination. I can recall the method/function off the top of my head but I believe it was in the API. On Dec 28, 10:03 pm, Chandana Napagoda cnapag...@gmail.com wrote: HI, I have developed TTS based application, When

[android-developers] Android SDK and AVD Manager - permission denied: connect

2010-12-29 Thread Bret Foreman
I'm getting the following message from the version 8 Android SDK and AVD Manager when I try to refresh the sources: Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Permission denied: connect I have no trouble browsing to the URL shown above. I am not using

[android-developers] Re: Android SDK and AVD Manager - permission denied: connect

2010-12-29 Thread Bret Foreman
I also tried the CLI version android.bat update sdk and got the same results. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: How to store date and time in database

2010-12-29 Thread Bret Foreman
Without even considering the computational aspects of this issue, there are at least 3 definitions of noon depending on how you measure a day: http://en.wikipedia.org/wiki/Earth%27s_rotation On Dec 28, 7:41 pm, Bob Kerns r...@acm.org wrote: The Wikipedia article on Unix time indicates that

Re: [android-developers] sqlite on sdcard

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 6:33 PM, Kostya Vasilyev kmans...@gmail.com wrote: Docs: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html I pasted my code here: http://pastebin.com/1hKWffeu It doesn't differentiate between read-only and writable database open

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Slash4
Hello, thanks you so much for looking at my problem :) First, my application is using a SCREEN_DIM_WAKE_LOCK so the screen is always on, yet the backlight and the keyboard are dimmed. Did you say in this case, the battery would not be consumed ? So, about accuracy, the fastest callback that I

Re: [android-developers] Re: How to store date and time in database

2010-12-29 Thread Kostya Vasilyev
And that's not even considering the effects of tidal friction. I love Wikipedia. -- Kostya 29.12.2010 21:46, Bret Foreman пишет: Without even considering the computational aspects of this issue, there are at least 3 definitions of noon depending on how you measure a day:

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Slash4
I answered you but I don't see my message.. I hope it's OK :s On 29 déc, 03:22, Dianne Hackborn hack...@android.com wrote: This will run the CPU at 100%.  With the screen off, this will tremendously impact battery life.  With it on, it will be at least noticeable. How accurate do you need to

[android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread t
how accurate is the data from Android's GPS location provider? does the device always try to seek a satellite, or does it sometimes return an optimization of the past locations without querying the satellites? if this question is device-specific, i'm asking about HTC Hero, HTC Desire and Google

[android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Raj
Experts, I have a simple receiver that listens to the BOOT_COMPLETED action. The manifest is as follows -- ?xml version=1.0 encoding=utf-8? manifest

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread mohammad shankayi
in most gps devices , the device has a graph of visible sat.s and estimates the postion of sat.s based on it ... sincerely mohammad shankayi On Wed, Dec 29, 2010 at 10:59, t tomers...@gmail.com wrote: how accurate is the data from Android's GPS location provider? does the device always try

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Kostya Vasilyev
Perhaps it would be a better idea to a use pre-recorded sound for this. You are trying to solve a problem at the application level that's already been solved, but at lower levels within the system. By using a pre-recorded sound, you can leverage other people's work. For different metronome

Re: [android-developers] List View inside a Layout

2010-12-29 Thread Manoj Maurya
It will be done same way. I m working on similar thing. Exactly, where are you stuck? You have to get listview's id and use set adapter in same way as it is done for a normal listview. Thanks Manoj Kumar Maurya Hi all.. What I want to do is: I have a layout with some textviews and buttons.

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Bret Foreman
This is very similar to a problem I solved when I was testing disk I/O subsystems and needed to generate I/O requests at fixed intervals of a few hundred per second. What I did was to take a timestamp at the beginning of the test and set up a loop with a sleep in it. The initial sleep value was

Re: [android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Mark Murphy
On Wed, Dec 29, 2010 at 2:04 PM, Raj rnmalho...@gmail.com wrote:    I have a simple receiver that listens to the BOOT_COMPLETED action. snip However, when I start debugging with an emulator, the apk gets installed, but the receiver process is terminated. Of course. Actually, your receiver

[android-developers] Google analytics crash

2010-12-29 Thread Mark Wyszomierski
Hi, I'm using google analytics in my app. I am getting a good number of force closes from users, finally got a stacktrace: Caused by: android.database.sqlite.SQLiteException: file is encrypted or is not a database at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method) at

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Frank Weiss
I'd look into Kostya's suggestion. Ideally, you only need the click sample and you can program the audio player to play the sample at precise intervals. Trying to do precise timing with SDK programming is just frought with pitfalls, AFAIK. -- You received this message because you are subscribed

[android-developers] How to write a android keyboard preference and show in Android Setting Language Keyboard.

2010-12-29 Thread Cloudyblood
Hi I wrote the android keyboard , but I didn't have a preference. I tried to write a preference of my android keyboard , but it didn't show in Android Setting Language Keyboard. Here is my manifest: ?xml version=1.0 encoding=utf-8? manifest

Re: [android-developers] How implement LBS in Android

2010-12-29 Thread Frank Weiss
Agreed, creating and keeping a POI database up to date is difficult. AFAIK Google Places is one attempt at a universal solution and there are others being considered. Tell us, what particular POIs are you interested in and for what kind of use cases? What are the limitations of Google Places API

Re: [android-developers] example on asynctask class..

2010-12-29 Thread Frank Weiss
I'm assuming you've studied this article very carefully: http://developer.android.com/resources/articles/painless-threading.html Please ask a question about a specific problem you're having. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Instructions to manually install an SDK

2010-12-29 Thread Bret Foreman
For reasons that I cannot discover, on my Windows Vista platform, the version 8 Android SDK Manager cannot access the repository URL at https://dl-ssl.google.com/android/repository/repository.xml nor the alternate directory at http://dl-ssl.google.com/android/repository/repository.xml. However,

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Dianne Hackborn
On Wed, Dec 29, 2010 at 10:54 AM, Slash4 alex.cen...@gmail.com wrote: First, my application is using a SCREEN_DIM_WAKE_LOCK so the screen is always on, yet the backlight and the keyboard are dimmed. Did you say in this case, the battery would not be consumed ? Absolutely not. The CPU

Re: [android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Dianne Hackborn
On Wed, Dec 29, 2010 at 11:29 AM, Mark Murphy mmur...@commonsware.comwrote: To debug BOOT_COMPLETED receivers, add Log statements to your code and reboot your emulator. Examine LogCat to see what happened. Adjust your code. Lather, rinse, repeat. You can also use adb shell am to send a

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Kostya Vasilyev
To elaborate a bit: http://developer.android.com/reference/android/media/AudioTrack.html AudioTrack supports streaming mode of operation, where data can be fed into it on the fly. You'd still need to do some sort of scheduled periodic loop, for feeding data to AudioTrack in chunks, but this

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread Dianne Hackborn
That doesn't really make sense. When you ask for location, you will specify how accurate you want the data to be. If you ask for GPS accuracy, it will start using that (if it hasn't already). You keep the request open, so it continuously looks for satellites and tracks movement. Each update it

Re: [android-developers] Instructions to manually install an SDK

2010-12-29 Thread Kostya Vasilyev
I just tried downloading outside the AVD manager - the following worked for me: - Open http://dl-ssl.google.com/android/repository/repository.xml in Internet Explorer, scroll down and find sdk:platform, and inside that, the archive for windows. - Replace repository.xml with the file name,

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread mohammad shankayi
dianne is right but this ability is only in A-gps devices and as we know all android devices has the ability of positioning with cell towers :) sincerely mohammad shankayi On Wed, Dec 29, 2010 at 12:23, Dianne Hackborn hack...@android.com wrote: That doesn't really make sense. When you ask

[android-developers] Re: How to store date and time in database

2010-12-29 Thread Bob Kerns
Sort and compare, mostly true -- but fail if you try to deal with a leap second. At least that's relatively rare. Subtract? No. Fails if a leap second falls between the two times. This is much a much more common case. In either case, your software can malfunction anew on every leap second. Do

[android-developers] Re: Animation problem

2010-12-29 Thread iced
Thank you for your answer. I tried all 2^6 combinations of the three flags (fillBefore, fillAfter, fillEnabled) but the animation still not works. I only want a pulsate. No matter what I do it is no liquid/smooth animation. It jerks and jumps. I can't find a solution. I would be grateful for help.

[android-developers] Re: New Application - advice on how to get started?

2010-12-29 Thread Hal
You'll probably need a set of reusable Android components (Database, Services, etc) for this. You may want to take a look a the Jt Design Pattern Framework: a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library

Re: [android-developers] New Android Market Client Update

2010-12-29 Thread brian purgert
I just released my first payed application and a get alot of refunds but they are usally within in 3 minutes which is really odd, im almost positive that it works on most phones, its just weird because you wouldent even be able to play the first level in that time. On Dec 11, 2010 3:42 AM,

Re: [android-developers] Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread Dianne Hackborn
Yes if the device does not have a GPS, or if the user has turned off the GPS, you will only get cell or network based location. On Wed, Dec 29, 2010 at 12:47 PM, mohammad shankayi mohd...@gmail.comwrote: dianne is right but this ability is only in A-gps devices and as we know all android

Re: [android-developers] Re: Animation problem

2010-12-29 Thread John Lussmyer
jerks and jumps in the emulator, or one the phone? I've found that the emulator is VERY bad at running things at a consistent speed. The phone seems to do a much better job of it. On Wed, Dec 29, 2010 at 1:27 PM, iced pascal-h...@t-online.de wrote: Thank you for your answer. I tried all 2^6

[android-developers] Re: Converting Touch Inputs to Vectors

2010-12-29 Thread Paul
Bumping hoping someone can point me in the right direction! Paul On Dec 29, 1:18 am, Paul pmmen...@gmail.com wrote: Hi all.  I am writing an app that will convert touchscreen user inputs (such as the user 'handwriting' on the screen) into vectors that can then be saved and recalled later.  I

[android-developers] how to avoid cut off of words in TextView

2010-12-29 Thread gato chlr
Hi list! for example : TextView a = new TextView(this); a.setText(I'm a set of words, some ones larger than others, no matter); it is posible to have painted the next : i'm a set of wo rds, some one s larger than o thers, no matt er i need something like i'm a set of words, some ones larger

Re: [android-developers] how to avoid cut off of words in TextView

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 11:47 PM, gato chlr dany...@gmail.com wrote: Hi list! for example : TextView a = new TextView(this); a.setText(I'm a set of words, some ones larger than others, no matter); it is posible to have painted the next : i'm a set of wo rds, some one s larger than o

Re: [android-developers] Re: Passing objects to new intents

2010-12-29 Thread TreKing
On Tue, Dec 28, 2010 at 11:52 PM, maomaostevencao maomaosteven...@hotmail.com wrote: If I want to load a new activity and pass some of arguments using this way, I have to get the reference of this new activity, but seems platform doesn't provide any API to get it. How can you do it? I mean

[android-developers] Re: How to store date and time in database

2010-12-29 Thread DanH
Of course, if you're adding/subtracting you need to know what your policy is not just for leap seconds but for DST -- a much more common and substantial problem. In general you shouldn't add/subtract seconds in an attempt to calculate days/months/years, but should convert to/from some sort of

[android-developers] Problem in Browser App

2010-12-29 Thread yogi
When i try to scroll in webview(say for example YAHOOMAIL inbox page). There are multiple Focus-Ring is visible around the check box in that page. This happen only when i touch the screen and drag it. Regards Yogendra. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: display data from database in proper order

2010-12-29 Thread TreKing
On Tue, Dec 28, 2010 at 3:32 AM, pramod.deore deore.pramo...@gmail.comwrote: After adding android:layout_width=75px in every TextView it looks better. Don't use set pixel values - it will break on different densities and / or resolutions. But still there is any other solution? Try the

[android-developers] Re: What changed in Gingerbread as far as the app widgets?

2010-12-29 Thread Zsolt Vasvari
For now, I fixed my widget on 2.3 by going from a monolithic 322px high background drawable to smaller drawables. Of course, I shouldn't have to do that, but whatever... If you place any widgets on 2.3 and compare it to 2.2, you can see that they are spaced differently. On 2.3, they are a lot

[android-developers] Listview using ArrayAdapter trouble

2010-12-29 Thread Mystique
Hi, I have an app that I mine data with an ArrayList and load to an ArrayAdapter to display as listview. How can I do more than 1 textview item in 1 roll? My code is: ---list.xml--- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Re: Does Android's GPS location provider do a built-in optimization?

2010-12-29 Thread ip332
If you request updates from the NETWORK_PROVIDER you will get location from cell towers or WiFi. If you use GPS_PROVIDER then the GPS will be turned on and you will get a GPS location after some time. This some time depends on many factors and the time of the last fix, first of all. On Dec 29,

[android-developers] Re: network LocationProvider

2010-12-29 Thread ip332
If the WiFi service is turned off the you will get position from the cell tower. If you could turn off the cell service and keep WiFi on then you get position from WiFi (however I don't think you can turn off phone service easily) But you can use the location accuracy to differentiate between WiFi

[android-developers] Content provider persistence

2010-12-29 Thread Pedro Duque
Hi, I'm writing an application where the user needs to choose a timezone so I'm using the search capability of Android. For having the time zone as a recommendation inside the search, I've implemented a Content Provider for the time zone. The problem is that the content provider remains alive

Re: [android-developers] Re: How to update one of views(setText, setImage) in item already added on ListView

2010-12-29 Thread TreKing
On Wed, Dec 29, 2010 at 2:41 AM, Mingchung jaw...@gmail.com wrote: Is that meaning the layout of ListView item is decided when 'getView' method called somewhere? Yes. What you return from getView() is what will show up in the ListView for the given index.

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Kristopher Micinski
How accurate is the looping setting on the MediaPlayer? Is it possible to synthesize the click track and then send it to a media player and set it to loop? I'm not sure how accurate that would be, perhaps someone else could offer some insight? kris On Wed, Dec 29, 2010 at 3:23 PM, Kostya

[android-developers] On which list item user click

2010-12-29 Thread pramod.deore
Hi all, In my application I am displaying list of data from database using SimpleCursorAdapter class. This list contains 6 columns. Now I want to know on which row user had clicked. I want to delete that record on which user had clicked. I had override protected void

[android-developers] Denisity dependent resource resolution bug?

2010-12-29 Thread Zsolt Vasvari
I have an integer resource defined. Placed the default value into values/integers.xml and an MDPI override in values-mdpi/integers.xml On my HDPI device, the resource that's picked comes from the MDPI folder and not the default folder. I consider this a bug. I can see it being correct for

[android-developers] Re: On which list item user click

2010-12-29 Thread pramod.deore
After adding following I got value of list as protected void onListItemClick(ListView l,View v,int position,long id) { cursor = (Cursor) myAdapter.getItem(position); super.onListItemClick(l, v, position, id); System.out.println (User click

  1   2   >