Re: [android-developers] Re: What is the name of this widget?

2011-01-12 Thread Dianne Hackborn
On Tue, Jan 11, 2011 at 11:55 PM, mort m...@sto-helit.de wrote: But Date- and TimePicker are public and using the NumberPicker as well. Many classes that are public make use of private classes for implementation. That isn't a reason to make those other classes public. And you should be

[android-developers] Re: Services and battery life

2011-01-12 Thread mort
On 11 Jan., 17:37, TreKing treking...@gmail.com wrote: The likelihood of your Service running un-interrupted for 30 minutes, especially if you're not running in the foreground, is extremely low. Well, if really necessary, one could show a notification and use startForeground. I for one would

Re: [android-developers] Re: Theme.Dialog bug in 2.1?

2011-01-12 Thread Dianne Hackborn
That is the intended behavior and has been the case since 1.0. The common case is that you have one application with one task that goes together. If you want to split it into separate tasks, you need to explicitly do so. On Tue, Jan 11, 2011 at 11:27 PM, Schoel samuelsson.j...@gmail.com wrote:

Re: [android-developers] BootStrapService

2011-01-12 Thread Marcin Orlowski
On 12 January 2011 08:03, Ken H hunt1...@gmail.com wrote: It's been about a year since I've done anything with the .BootStrapService. Has anything changed? My service no longer seems to set its alarm after the phone restarts -- it use to. Anything basic I've missed? if you want your app when

Re: [android-developers] Re: Services and battery life

2011-01-12 Thread Dianne Hackborn
There is absolutely no benefit to keeping the service running during that time. If you want to avoid work when it starts every 5 minutes, keep your previous work in static globals to re-use the next time the service is created. All you do by keeping the service running is that if the system is

[android-developers] How to record audio..?

2011-01-12 Thread Abhilash baddam
Hi friends, How can we record the voice and save it to sdcard. I tried but getting *unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value,* * VerifyAndSetParameter failed and PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component

[android-developers] Call Recording issue

2011-01-12 Thread chetan
Hi All, I am writing an application to record the call. I have created an Activity for UI and a Service to start and stop record. In Service to start record, the code is MediaRecorder recorder=new MediaRecorder(); File

[android-developers] Re: Theme.Dialog bug in 2.1?

2011-01-12 Thread Schoel
Is the topmost activity intended to occupy the screen without being visible? I don't mind the entire activity stack popping up when this happens, but the topmost dialog is not even visible but it's still there. This is not the case when using 2.2, like I described above, so something has been

Re: [android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-12 Thread appel
Devices with Android 2.0 or newer support it. -- 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] image background - how to repeat an image rather than strech it

2011-01-12 Thread liordav
Hi, I have an image I want to use as a background to some layout. the problem is the image contains a texture of slant lines, so if i use a 1 pixel width image or a 9 patch the image is stretched and the texture is Twitching, so i can see the slant lines as latitude lines. I saw that he android

[android-developers] 2D game BallBraker

2011-01-12 Thread Abhishek Talwar
Hey guys I have to make the game like this :- http://www.1980-games.com/us/action-games/block-breaker/ballbraker.php I have to make this in 5 days and i have no idea how to make a game. Even tiny help will be appreciated -- You received this message because you are subscribed to the Google

[android-developers] Re: How to record audio..?

2011-01-12 Thread Abhilash baddam
any help... On Wed, Jan 12, 2011 at 1:55 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi friends, How can we record the voice and save it to sdcard. I tried but getting *unsupported parameter:

[android-developers] Re: My App should get information of every Http Get.

2011-01-12 Thread chetan
Can we have packet sniffer or analyzer in android as application part. Can i get design to implement the packet sniffer or analyzer . On Dec 25 2010, 2:32 am, Frank Weiss fewe...@gmail.com wrote: It's not possible from the SDK. You'll need to root the phone or run it on a Wifi network with a

[android-developers] Soft keyboard alters layout

2011-01-12 Thread Neilz
Hi all. I have a layout which comprises a central section (for listview etc) and a navigation bar which is fixed at the bottom. When the soft keyboard pops up, the view is compacted to make way for it, and my nav bar gets pushed halfway up the screen which just looks daft. Is there a way I can

Re: [android-developers] Re: My App should get information of every Http Get.

2011-01-12 Thread Marcin Orlowski
On 12 January 2011 10:12, chetan chetanchauha...@gmail.com wrote: Can we have packet sniffer or analyzer in android as application part. Can i get design to implement the packet sniffer or analyzer . You got the answer in previous post. On Dec 25 2010, 2:32 am, Frank Weiss fewe...@gmail.com

[android-developers] Can I launch executable file under Jni level?

2011-01-12 Thread nelsonchung
I write some code by c language and build it for arm platform - imx51. I can run this file under command line like this. start machine. adb push ./hello / adb shell ./hello and I can see the following information Hello World! I write some code on JNI. #include jni.h #include stdlib.h #include

[android-developers] Re: 2D game BallBraker

2011-01-12 Thread Robert Green
First of all, you will not have that working in 5 days if this is your first game. Any one little thing will get you hung up and you'll slip. You will need much more time than that to get acquainted with game development. I published an article here about android game development -

[android-developers] Re: JNI working

2011-01-12 Thread Richard Sámela
hmm I don't know but am I right if I think that the code written in C+ + will be the same for both of processores. And OS will be the same too. And as I know the android app is compilated by virtual machine which is running under the android. So I don'tunderstand why deppends on type of processor.

Re: [android-developers] Re: JNI working

2011-01-12 Thread Kostya Vasilyev
Native code is... well native. An .so packaged within an application contains machine code and runs directly on the processor (unlike .dex code). -- Kostya 12.01.2011 13:36, Richard Sámela пишет: hmm I don't know but am I right if I think that the code written in C+ + will be the same

[android-developers] In android how to programmatically list the apps that uses Data connection?

2011-01-12 Thread Harsha
Hi, can any one please tell me in android, Is it possible to access the list application names that is using Data connection in background/ foreground.? If possible how? note: I came to know it is possible to access the Total data consumption in bytes by reading TX/RX files. But i couldn't find

[android-developers] Calculating screen coordiantes in augmented reality???

2011-01-12 Thread prachi
Hi Iam developing an augmented reality browser on my ownn...But not able to get the screen cooridinates I will discuss my whole problem here.as im not sure at which point i stuck up... I hav a set of latitude longitude values for different points.Taking them Iam calculating

Re: [android-developers] In android how to programmatically list the apps that uses Data connection?

2011-01-12 Thread Kostya Vasilyev
You could start by searching for applications that have INTERNET permission: http://developer.android.com/reference/android/content/pm/PackageManager.html -- Kostya 12.01.2011 13:55, Harsha пишет: note: I came to know it is possible to access the Total data consumption in bytes by reading

[android-developers] In android how to programmatically list the apps that uses Data connection?

2011-01-12 Thread Harsha
Hi, can any one please tell me in android, Is it possible to access the list application names that is using Data connection in background/ foreground.? If possible how? note: I came to know it is possible to access the Total data consumption in bytes by reading TX/RX files. But i couldn't find

[android-developers] Does emulator support video recording(camera input)?

2011-01-12 Thread Jeevitha Jayaraman
Hi All, I am trying to record a video from Android. I am currently developing it in Eclipse and would like to know if I can test the camera input by accessing my Laptop's web camera instead of device camera. I tried to run the camerapreview of APIDEmos sample applications and other few sample

[android-developers] Re: 2D game BallBraker

2011-01-12 Thread Federico Paolinelli
@Rob: nice post, I'll read it. I am pretty curious about game development. @Abhishek: you could give andengine framework a try. I think it could make your life easier. For example, it handles element collision (which I'm pretty sure it can be useful in a game like the one you want to devel).

[android-developers] about content provider physical store location

2011-01-12 Thread stanly
hi all, I have a question about content provider, for example, I used the *Telephony.Carriers.CURRENT* this URI to store all APN nodes, maybe it will has 100 nodes(records) in it. but when I insert the 100 rows data via *ContentResolver.insert* pragramatically, instead of inserting records in

Re: [android-developers] Re: 2D game BallBraker

2011-01-12 Thread Robin Talwar
Thanks guys for the links and suggestions. I am going through your article also robert it seems to be quite helpfull. Regards On Wed, Jan 12, 2011 at 4:50 PM, Federico Paolinelli fedep...@gmail.comwrote: @Rob: nice post, I'll read it. I am pretty curious about game development. @Abhishek:

Re: [android-developers] Re: Services and battery life

2011-01-12 Thread Mark Murphy
On Wed, Jan 12, 2011 at 3:17 AM, Dianne Hackborn hack...@android.com wrote: If you want to avoid work when it starts every 5 minutes, keep your previous work in static globals to re-use the next time the service is created. To clarify, you will need to ensure that you can reload those static

[android-developers] Re: google analytics jar does not seem to work now

2011-01-12 Thread David Liebman
On Jan 10, 8:30 am, David Liebman david.c.lieb...@gmail.com wrote: HI, I have google analytics incorporated in my android app. When I first added the code, and then updated my app on android market I got lots of hits. Now I get none. I know people might just be not using my app, but I

[android-developers] Re: What is the name of this widget?

2011-01-12 Thread DanH
No. You can only modify it so far as it doesn't break existing applications. That can be very limiting. But you can replace the entire thing with NumberChooser when you need to make a clean break. On Jan 12, 2:12 am, Dianne Hackborn hack...@android.com wrote: On Tue, Jan 11, 2011 at 11:55

[android-developers] How to optimize an image app for various devices and screen resolutions

2011-01-12 Thread Johan
Hi there, I'm working on an app which displays various images. I want to optimize this for the various screen resolutions. The MultiResolution (1) tutorial uses many resource qualifiers in the res folder to display the appropriate images for the various device resolutions, but how do you package

[android-developers] Is it possible to upload?

2011-01-12 Thread Abhilash baddam
Hi friends, I want to upload a file like mp3 or 3gp to *youtube* from my application. Is it possible if yes can anyone send me code snippet or links which is useful regarding this issue. Regards, Abhilash.B -- You received this message because you are subscribed

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

2011-01-12 Thread Kumar Bibek
Sure. Look at the youtube official APIs. You will find a few code snippets as well Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 6:50 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi friends, I want to upload a file

Re: [android-developers] Can I launch executable file under Jni level?

2011-01-12 Thread Kumar Bibek
You want to just run the c program without launching any application? I don't think you can do that. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 3:31 PM, nelsonchung chihchun.ch...@gmail.comwrote: I write some code by c language and build it for

Re: [android-developers] Android Twitter client to share Images

2011-01-12 Thread Kumar Bibek
You will have to write the code yourself if you don't find any working samples. Sorry Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 1:12 PM, jayavenkat jaia...@gmail.com wrote: Hi, I am using Twitter Oauth and everything is working fine now I want

[android-developers] Re: Calculating screen coordiantes in augmented reality???

2011-01-12 Thread JP
On Jan 12, 2:59 am, prachi prachi.tya...@wipro.com wrote: Hi Iam developing an augmented reality browser on my ownn...But not able to get the screen cooridinates I will discuss my whole problem here.as im not sure at which point i stuck up... I hav a set of latitude

[android-developers] Scanner USB and android tablet

2011-01-12 Thread ftovalle
hi everyone, does anyone know of a bar code scanner that can connect via USB or mini USB to a tablet of Android? thanks! Felipe -- 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: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Brill Pappin
Well you pretty much need distance traveled over time to find speed, so anything you can do to determine distance travelled should allow you to calculate the speed. For instance you could use cell tower location, but I wouldn't class it as even remotely accurate. If you want to give an actual

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Brill Pappin
Yah, that is used a lot in simple robotics. You can't actually get anything accurate though. the longer the distance traveled the more inaccurate it becomes. - Brill On Jan 12, 1:16 am, keyboardr keyboa...@gmail.com wrote: You could also try integrating the readings from the accelerometers,

[android-developers] Re: Services and battery life

2011-01-12 Thread Federico Paolinelli
I asked (quite) the same question some time ago, and maybe it can help you https://groups.google.com/group/android-developers/browse_thread/thread/35f963dd905052c7/e7c3a28b1ed28230?hl=itlnk=gst As the always helpful Mark pointed out, you can't be sure that gps is not still around between updates,

[android-developers] Re: My App should get information of every Http Get.

2011-01-12 Thread Brill Pappin
You don't need to do that on the phone. Simply set up a linux box as a router and you can monitor all traffic. Trying to do this on a phone is a waste of time, in fact I'd say the only reason to do this was for hacking other peoples phones. Whats your app called? I want to make sure I never

[android-developers] Strange NoClassDefFoundError from Bitmap.compress()

2011-01-12 Thread String
I've got a real head-scratcher here, folks. At least it is for me. Quite recently (last couple of days?), I've begun to see the following error in my Console: FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.graphic3.Bitmap$CompressFormat and the line that's throwing it looks like

[android-developers] pause AudioTrack correctly

2011-01-12 Thread Markus Drösser
Hello, I hope that somebody can explain how to pause AudioTrack correctly. I am recording and playing back a pcm file with the OnPlaybackPositionUpdateListener in a remote service. This works fine. Now when I call pause() on the audioTrack object, the playback pauses and if I want to resume I

[android-developers] HTML5 audio and video support

2011-01-12 Thread ls02
I am trying to figure out of android (at least Froyo) has any audio and video HTML5 tag support in any form or shape. I read from many sources and http://www.html5test.com confirms that although Android Web browser does support both tags it does not support any audio or video codecs which

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread cellurl
couldn't you use the accelerometer? Integrate that? Use time. s=Integral(a dt) If that doesn't work, look to skyhook wireless! -cellurl On Jan 12, 8:20 am, Brill Pappin br...@pappin.ca wrote: Well you pretty much need distance traveled over time to find speed, so anything you can do to

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread cellurl
or try an external gps receiver with bluetooth interface to phone. On Jan 12, 9:22 am, cellurl gpscru...@gmail.com wrote: couldn't you use the accelerometer? Integrate that? Use time. s=Integral(a  dt) If that doesn't work, look to skyhook wireless! -cellurl On Jan 12, 8:20 am, Brill Pappin

[android-developers] SQLiteDiskIOException in SQLiteDatabase.delete

2011-01-12 Thread Thierry Legras
Hi, In my application, in very very rare cases, some users get this kind of exception: Caused by: android.database.sqlite.SQLiteDiskIOException: error code 10: disk I/O error at android.database.sqlite.SQLiteStatement.native_execute(Native Method) at

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

2011-01-12 Thread Abhilash baddam
Hi Kumar Bibek, if you don't mind Can you help me out more to solve this problem. On Wed, Jan 12, 2011 at 7:17 PM, Kumar Bibek coomar@gmail.com wrote: Sure. Look at the youtube official APIs. You will find a few code snippets as well Kumar Bibek

[android-developers] Re: HTML5 audio and video support

2011-01-12 Thread Leon Moreyn-Android Development
Are you using the inherit browser that comes with the phone or a third party browser like Opera? Since HTML5 is not standard across all browser it depends on which one you are using. On Jan 12, 10:21 am, ls02 agal...@audible.com wrote: I am trying to figure out of android (at least Froyo) has

[android-developers] Re: HTML5 audio and video support

2011-01-12 Thread ls02
Default Android Web browser that comes with the phone. On Jan 12, 10:37 am, Leon Moreyn-Android Development lmor...@earthcam.com wrote: Are you using the inherit browser that comes with the phone or a third party browser like Opera? Since HTML5 is not standard across all browser it depends on

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

2011-01-12 Thread Kumar Bibek
Have you looed into the APIs? If yes, what are the problems that you are facing. If no, please go through it first. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 8:59 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi Kumar Bibek,

[android-developers] Sqlite Database in the APK

2011-01-12 Thread androiddevelopers
Hi, I want to create an database for my service . as of now we are creating the database on invocation of the service. Here we create the Database and add default values and it works. My Need : I want to have a database as part of the system image ( That is when i flash the image/APK) . The

[android-developers] Re: Can I launch executable file under Jni level?

2011-01-12 Thread Bob Kerns
This is the wrong list to be discussing this. But just as learning Java by programming in Android is hard, learning C by programming in Android is definitely doing it the hard way! Doing this sort of experimentation under Ubuntu, say, would let you use a real debugger. You're passing a null

[android-developers] Re: Strange NoClassDefFoundError from Bitmap.compress()

2011-01-12 Thread Bob Kerns
ClassNotFoundError can mean it got an error while loading the class. Perhaps it ran out of memory, just as it was loading this class? You could try doing this first thing in your app on some small bitmap, to preload the class, and see if that changes things. I wouldn't consider that a workaround

Re: [android-developers] Sqlite Database in the APK

2011-01-12 Thread Kostya Vasilyev
If you need to provide data to other applications, consider implementing a ContentProvider: http://developer.android.com/reference/android/content/ContentProvider.html This has the following benefits in your described use scenario: - You can protect your data by declaring read and/or write

[android-developers] EditText with Cross

2011-01-12 Thread Richard Sámela
Hi, I saw an app where was EditText and if you put some text into EditText there was a Cross Button (or something like that) on the left side. And if I click on this Button the text from EditText was deleted. Can you help me or explain me how to to this? I would like to use EditText with the same

Re: [android-developers] EditText with Cross

2011-01-12 Thread Kostya Vasilyev
- Add a button to your layout; - Add an OnClickListener to the button; - In the listener's onClick, call editText.getText() to get the Editable object and call clear() on that. -- Kostya 12.01.2011 19:45, Richard Sámela пишет: Hi, I saw an app where was EditText and if you put some text

[android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Lewis
I highly doubt such a thing exists as Android does not currently support USB host mode Regards, Lewis On Jan 12, 2:15 pm, ftovalle ftova...@gmail.com wrote: hi everyone, does anyone know of a bar code scanner that can connect via USB or mini USB to a tablet of Android? thanks! Felipe --

Re: [android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Marcin Orlowski
On 12 January 2011 17:59, Lewis lewisandrewba...@googlemail.com wrote: I highly doubt such a thing exists as Android does not currently support USB host mode There're some BT barcode scanners which may look like solution (if no technical obstacles lurk in darkness) -- You received this

Re: [android-developers] EditText with Cross

2011-01-12 Thread Kumar Bibek
It might just be a regular button beside the EditText. And I guess that's very simple to implement. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 10:15 PM, Richard Sámela feromak...@gmail.comwrote: Hi, I saw an app where was EditText and if you put

[android-developers] Problem changing Activity title in onActivityResult()

2011-01-12 Thread Paul
I posted this over at StackOverflow, but not much of a response... maybe someone else can run this on their testbed and verify? A strange problem... == Hi all. I have a simple app based on the Notepad demo application, and when a user is viewing/editing a note they can launch a dialog activity

Re: [android-developers] Problem changing Activity title in onActivityResult()

2011-01-12 Thread Kumar Bibek
It's a relatively simple problem. I am not sure what are you doing wrong. The title can be changed anytime from anywhere. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 10:43 PM, Paul pmmen...@gmail.com wrote: I posted this over at StackOverflow,

[android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-12 Thread Biosopher
After scouring the web and confirming it myself, Facebook's photos are stored in a manner that prevents access by other apps. This inability to access Facebook sync'd photos is a side effect of how Facebook syncs contacts. Facebook creates an account on the device using Android's AccountManager

[android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Bret Foreman
It's much simpler to get open source barcode image reader Java classes and have the user snap a picture of the barcode. On Jan 12, 9:07 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 12 January 2011 17:59, Lewis lewisandrewba...@googlemail.com wrote: I highly doubt such a thing exists

Re: [android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Marc Petit-Huguenin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/12/2011 08:59 AM, Lewis wrote: I highly doubt such a thing exists as Android does not currently support USB host mode One solution is to use a Bluetooth scanner. Regards, Lewis On Jan 12, 2:15 pm, ftovalle ftova...@gmail.com wrote:

Re: [android-developers] Soft keyboard alters layout

2011-01-12 Thread TreKing
On Wed, Jan 12, 2011 at 3:18 AM, Neilz neilhorn...@gmail.com wrote: Is there a way I can stop this? Surely the keyboard can act as a frame and overlay the existing views? See if this helps: http://developer.android.com/resources/articles/on-screen-inputs.html

Re: [android-developers] How to record audio..?

2011-01-12 Thread TreKing
On Wed, Jan 12, 2011 at 2:25 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: if anybody know how capture audio..?send me the code snippets and useful links... I would assume this would be a good starting point:

Re: [android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Marcin Orlowski
One solution is to use a Bluetooth scanner. Well, there's quite nice Barcode scanner app on Market so it also a solution however I'd bet it will be a bit too slow and uncomfortable to use (not to mention focus issues most devices have) -- You received this message because you are subscribed

[android-developers] Particularity running modified standard app

2011-01-12 Thread higonnet
Hello, I have downloaded and slightly modified the Android 2.2 version of Camera and have begun to make some changes to it. Let's say I have renamed the app to X in Eclipse If I run X from Eclipse (Helios), it behaves more or less the way I expect. Running from Eclipse installs X on my device

Re: [android-developers] Particularity running modified standard app

2011-01-12 Thread Kostya Vasilyev
Did you change the package name in the code and in the manifest? 12.01.2011 20:52, higonnet пишет: Hello, I have downloaded and slightly modified the Android 2.2 version of Camera and have begun to make some changes to it. Let's say I have renamed the app to X in Eclipse If I run X from

[android-developers] Seeking experiences doing mobile/sync of lists using syncML or other

2011-01-12 Thread andrew
In our Android application we'd like to allow users to edit lists (text) on one or more mobile devices (in parallel) and also on the web, and have them all synced. Can anyone share their experiences of doing something similar on Android? Have you used SyncML for such a solution (our own defined

Re: [android-developers] Sqlite Database in the APK

2011-01-12 Thread androiddevelopers
Hi, thanks for the reply. Can i have the database preloaded, that is as aprt of my APk rather than me populating/creating on start of the activity. just like we have for icons or some files we can add as part of the drawable or in raw folder. Gautham -- You received this message because

RE: [android-developers] Question About GPS while on the phone

2011-01-12 Thread Tommy
Ah that makes a little more sense than my assumption thinking that Verizon was just being difficult. Well I hope that gets fixed at some point b/c it is kind of a drawback. And IMO that is the only reason I like my att phone better even though I really really hate att -Original Message-

Re: [android-developers] Sqlite Database in the APK

2011-01-12 Thread Kostya Vasilyev
12.01.2011 21:05, androiddevelopers пишет: Can i have the database preloaded, that is as aprt of my APk rather than me populating/creating on start of the activity. just like we have for icons or some files we can add as part of the drawable or in raw folder. Yes, you can create your

Re: [android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Marc Petit-Huguenin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/12/2011 09:49 AM, Marcin Orlowski wrote: One solution is to use a Bluetooth scanner. Well, there's quite nice Barcode scanner app on Market so it also a solution however I'd bet it will be a bit too slow and uncomfortable to use (not to

[android-developers] Re: Problem changing Activity title in onActivityResult()

2011-01-12 Thread Paul
Agreed, which is why it's so frustrating. As a test, in onCreateOptionsMenu() @Override public boolean onCreateOptionsMenu(Menu menu) { setTitle(changed); . . . return super.onCreateOptionsMenu(menu); } Works fine. In onActivityResult() (this is the

Re: [android-developers] Seeking experiences doing mobile/sync of lists using syncML or other

2011-01-12 Thread Marcin Orlowski
Any recommendations for libraries (tolerant, Apache-style license)? See the list on: http://en.wikipedia.org/wiki/SyncML as a start. -- 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 get screen density in pixels-per-inch or equivalent

2011-01-12 Thread Phil Endecott
Note that some devices don't correctly report actual resolution (xdpi / ydpi). Does some devices include anything that I care about? How wrong is the value? Answering my own question: yes, it is wrong on my Motorola Defy, which returns 96. Googling tells me it is wrong on quite a lot of

[android-developers] Re: Problem changing Activity title in onActivityResult()

2011-01-12 Thread Paul
UPDATE: Ok, so it looks like the following is happening... User starts the activity, title is X. As a test, I then change the title in onCreateOptionsMenu to Y, and the UI changes immediately. Finally, when the options-menu launched activity returns it's value, Z to

[android-developers] onItemSelectedListener causes gallery to jump, stick and pop...

2011-01-12 Thread Richard Schilling
I have a gallery on my screen. Works great and scrolls smoothly ... until I set the OnItemSelectedListener. When I do, Gallery gets really jerkey. It seems to stick. I think I know why, but I was wondering if others have found a better solution they would be willing to share. Here's my

[android-developers] Sharing preferences between apps?

2011-01-12 Thread John Lussmyer
I have an app that needs to be able to pass a set of settings to my Live Wallpaper. The Live Wallpaper already saves these in a Shared Preferences file. I did a bunch of searches, and found a possible way for the app to access the wallpapers Shared prefs was: (I've also set both apps to have the

Re: [android-developers] Re: Problem changing Activity title in onActivityResult()

2011-01-12 Thread Kostya Vasilyev
Maybe you can glean something from the source: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=f25c4c385e4f510bec426fbef801243e4c149f69;hb=cb8427538dfdc5eae941e377b11bfd11a95fc5a5 Looks like the title will only be changed if

[android-developers] Re: How to get screen density in pixels-per-inch or equivalent

2011-01-12 Thread Richard Schilling
Did you try fetching the scale that will allow you to convert from DPI to actual screen pixels? I found this very reliable: final scale = getContext().getResources().getDisplayMetrics().density; Then multiply scale by one inch of pixels in DPI resolution (depending on the screen you're on)

Re: [android-developers] Re: Problem changing Activity title in onActivityResult()

2011-01-12 Thread Kumar Bibek
I just tried a sample program, and it seems fine. There must be something going on in your onResume part... Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 12:09 AM, Paul pmmen...@gmail.com wrote: UPDATE: Ok, so it looks like the following is

[android-developers] Listview highlight problem

2011-01-12 Thread Nikola
Hi, when I set listener like row.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { my listview doesn't highlights items on touch. Does anyone knows what could be source of this problem and how to resolve it?

[android-developers] Re: Problem changing Activity title in onActivityResult()

2011-01-12 Thread Paul
Yes! I was changing the title of a note in the db in the called activity, but failing to update the cursor in onActivityResult... so in onResume, it was pulling the old title. .requery()ing the cursor in onActivityResult got it, thanks all! Paul On Jan 12, 1:47 pm, Kumar Bibek

[android-developers] Re: How to get screen density in pixels-per-inch or equivalent

2011-01-12 Thread Phil Endecott
Hi Richard, On Jan 12, 6:54 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: Did you try fetching the scale that will allow you to convert from DPI to actual screen pixels? I found this very reliable: final scale = getContext().getResources().getDisplayMetrics().density;

[android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Ankur Avlani
Hi All, I am developing an application on Android. I have seen that at times when I try to connect using HttpURLConnection, for getting an Image or anydata, I get the following error: 01-12 11:24:05.073: WARN/System.err(16780): java.net.UnknownHostException: Host is unresolved: www.XXX.com:80.

Re: [android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Kumar Bibek
This error/exception comes because of no network connectivity. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 1:02 AM, Ankur Avlani ankuravl...@gmail.com wrote: Hi All, I am developing an application on Android. I have seen that at times when I

[android-developers] Particularity running modified standard app

2011-01-12 Thread Bernard T. Higonnet
Hello, I have downloaded and slightly modified the Android 2.2 version of Camera and have begun to make some changes to it. Let's say I have renamed the app to X in Eclipse If I run X from Eclipse (Helios), it behaves more or less the way I expect. Running from Eclipse installs X on my device

Re: [android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Ankur Avlani
I am connected to network, I am on Wifi. If i try again it works. Its just random. On Wed, Jan 12, 2011 at 11:34 AM, Kumar Bibek coomar@gmail.com wrote: This error/exception comes because of no network connectivity. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com

[android-developers] HttpClient on Android?

2011-01-12 Thread Nikola
Hi, has anyone successfully used Apache HttpClient library on Android platform? PS: Any remarks , problems that I should be aware of? tnx. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google

Re: [android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Kumar Bibek
Yup, then it's a problem with your Wi-Fi. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 1:07 AM, Ankur Avlani ankuravl...@gmail.com wrote: I am connected to network, I am on Wifi. If i try again it works. Its just random. On Wed, Jan 12, 2011

Re: [android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Ankur Avlani
I am sorry, that somehow doesn't convince me. I am connected to the same wifi on my laptop and i never see any web page load error on my laptop. On Wed, Jan 12, 2011 at 11:38 AM, Kumar Bibek coomar@gmail.com wrote: Yup, then it's a problem with your Wi-Fi. Kumar Bibek

Re: [android-developers] HttpClient on Android?

2011-01-12 Thread Kumar Bibek
It works just fine. Most of us use HttpClient :) Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 1:07 AM, Nikola nikola1...@gmail.com wrote: Hi, has anyone successfully used Apache HttpClient library on Android platform? PS: Any remarks ,

Re: [android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Kumar Bibek
By Wi-Fi, I meant, you phone's Wi-Fi could be turning on and off. There is no other reason I can think of. It happens for me as well, sometimes. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 1:10 AM, Ankur Avlani ankuravl...@gmail.com wrote: I am

Re: [android-developers] HttpClient on Android?

2011-01-12 Thread Nikola
On Wed, Jan 12, 2011 at 8:40 PM, Kumar Bibek coomar@gmail.com wrote: It works just fine. Most of us use HttpClient Tnx for quick reply. Just want to be sure :) -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are

[android-developers] Re: EditText with Cross

2011-01-12 Thread Richard Sámela
Yes that I know but I would like to do that the Button will be inside of EdiText. The Button will be a little bit like a cover of EditText. Is it possible to set the Button position to be above the EditText?? thanks for answering. On 12. Jan, 17:49 h., Kumar Bibek coomar@gmail.com wrote: It

Re: [android-developers] HttpURLConnection gives UnknownHostException

2011-01-12 Thread Ankur Avlani
Somehow I have this feeling it is related to my app only. Other apps on the phone, I don't see any such issue. Even when browsing on my phone, I don't see any error. On Wed, Jan 12, 2011 at 11:41 AM, Kumar Bibek coomar@gmail.com wrote: By Wi-Fi, I meant, you phone's Wi-Fi could be turning

Re: [android-developers] Re: EditText with Cross

2011-01-12 Thread Kumar Bibek
Well, it's possible, but it will be more complex. You have to give some padding in the edit text so that the button doesn't overlap the text on the edit text. And then, there might be focus problems. Another workaround is: Change the background of the edittext and the parent layout to whatever

  1   2   3   >