[android-developers] SQLite Open failed

2011-04-15 Thread Zsolt Vasvari
Out of thousands of users, one is getting the followiing error suddenly: I/Database( 9312): sqlite returned: error code = 14, msg = cannot open file at source line 25467 E/Database( 9312): sqlite3_open_v2(/data/data/com.mycom.package/ databases/My Bookback, handle, 2, NULL) failed Caused by:

[android-developers] Vertical text on canvas

2011-04-15 Thread Numeron
I have text which, when in portrait orientation, runs along the bottom of the screen. When the orientation is switched to landscape I want to draw the same text vertically along the same edge of the screen, so that it appears in exactly the same place as when in portrait mode. Other ui elements

[android-developers] Re: Android sqlite and multithreading

2011-04-15 Thread Evgeny Nacu
Hi everybody again! So, advices here helped! Thanks! After some research and testing this solutions seem to work OK: I have only one!! writable sqlite db. (implemented using singleton as some people suggested here) Also, I've got some db code to synchronize write operations. Only one thread can

[android-developers] Re: How to force use only gprs even though wifi is available

2011-04-15 Thread kiran
Yes you are right, But thing is my application itself making wifi on. Is it not possible to on wifi and gprs at a time? On Apr 14, 2:34 pm, Kostya Vasilyev kmans...@gmail.com wrote: You can disable WiFi by calling WifiManager.setWifiEnabled(false). Just don't forget to tell the user you're

[android-developers] Re: onSaveInstanceState(Bundle) onRestoreInstanceState(Bundle)

2011-04-15 Thread ravi teja
Presently, I am facing the same issue. How did you resolve it? Best, Ravi -- Raviteja http://about.me/raviteja -- 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

[android-developers] Re: String to Float Performance Ideas

2011-04-15 Thread String
If you have the rest of the code in place, I'd be reluctant to toss it out and start over with a SQLite implementation. Although it might do the conversion for free, it's going to be a much more general-purpose conversion routine, and thus is unlikely to be as fast as one you've optimized for

[android-developers] Geo Location and webview

2011-04-15 Thread Moose
I have a web app with a tool in it that uses google maps (the web tool, not the android one). On my computers web browser I test it and it works fine (gives a surprisingly accurate location, marked with a pin). However, when I try and use it in the webview within my app, it does not get a fix

[android-developers] Re: Android Debugger is DOG Slow

2011-04-15 Thread String
Sure, apps run slower when attached to the debugger, but that's hardly surprising given the overhead. I have noticed that one of my apps seems to slow down more than the others, which leads me to believe that certain operations are more affected than others. It's never been problematic enough

[android-developers] Re: SQLite Open failed

2011-04-15 Thread String
I see a handful of these in my Dev Console error logs, but have never had it happen somewhere I can chase it down. Here's a typical stack trace: android.database.sqlite.SQLiteException: unable to open database file Caused by: android.database.sqlite.SQLiteException: unable to open database file

[android-developers] Re: in app purchase question for RESTORE_TRANSACTIONS

2011-04-15 Thread LA_
You'll get that in onPurchaseStateChange in the sample app (called after RESTORE_TRANSACTIONS): {nonce:4728283427316410369,orders: [{orderId:1694851887421222,packageName:tv.app,productId:tv.options,purchaseTime: 1302452718521,purchaseState:2,developerPayload:null},

[android-developers] JOIN GRUP

2011-04-15 Thread ROYSUN TJHIU
THNKAS ADD GROPP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

[android-developers] Re: Vertical text on canvas

2011-04-15 Thread String
Have you tried Paint.setSubpixelText(false)? Or possibly Paint.setAntiAlias(false), if you're going the intermediate-canvas route. String -- 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] Problem with Bouncing ListView

2011-04-15 Thread st0le
We have an application that has a listview which shows some contacts, there are about 20 contacts shown at one time, and the user can use the swipe gesture to move to the next 20, (or the previous) page It works fine. Now, we've noticed Samsung (and maybe more) Devices have augmented the

[android-developers] Native PDF Viewer

2011-04-15 Thread Diogo Salaberri
Hi.. I need to know if the android have ,as a native mode, a PDF viewer. And if don't have, he has a lib native that can I work easily with PDF. Thanks. -- 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] about cursor

2011-04-15 Thread amey bura
Hi..initialize Cursor properly.. can any one tell how to initialize Cursor properly..? -- 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

Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread akruti patel
How can i leave this group.I have joint by mistake so how can i leave this? On Wed, Apr 13, 2011 at 10:57 PM, Nasif Noorudeen nas...@gmail.com wrote: By using LayoutInflater On Wed, Apr 13, 2011 at 10:27 PM, usher usher...@gmail.com wrote: So I have created this activity, and

[android-developers] Using cursor

2011-04-15 Thread amey bura
hi.. i have created login(empname , passwd) table.. I am trying to fetch passwd from table for perticular empname by calling a function getpwd ()from another activity .. I am using following query.. public String getpwd(String uname) throws SQLException { Cursor c = db.rawQuery(select

[android-developers] Progressive download with MediaPlayer

2011-04-15 Thread Fernando Valente
Hey, I'm using MediaPlayer for audio streaming. I'd like to be able to progressive download the audio and save it to the disk(i.e. record the audio). Does anyone knows a way to do that? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] java/lang/IllegalStateException

2011-04-15 Thread amey bura
How to prevent or avoid java/lang/IllegalStateException when dealing with Cursors. The program is giving this error while accessing data from 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] Capturing screens and sending it across from a device to another

2011-04-15 Thread gaurang...@gmail.com
Hi, I am trying to build an application which shares an android device screen with another android device. Mainly the way VNC or Microsoft remote desktop connection works. To do this i thought to capture the screen of the host android device and send it across to the secondary android device.

[android-developers] Webview Certificate

2011-04-15 Thread Valen
In webview,I saw public method setCertificate and getCertificate.Can we use setCertifiacate to add a CA certificate into webview?Will webview use it to check websites' certificate?Or those two methods are used to set and get websites' certificate?Thanks a lot! -- You received this message

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-04-15 Thread Ganesh
The problem is not due to Eclipse version but due to the outdate examples on the internet particularly app-for-android You can fix this by adding uses-sdk android:minSdkVersion=11 / In the Manifest.xml file and copying the proguard.cfg file from a blank project to the example project. ~gk On

[android-developers] Android and External Keyboard

2011-04-15 Thread Indresh Gajbhiye
Hi, I am working on connecting android phone 2.1 with external keyboard with bluetooth connectivity. Can suggest possible method to connect these two things, since the external keyboard has no display. Thanks n advance.. Indresh -- You received this message because you are subscribed to the

[android-developers] Re: MapActivity( 424): Couldn't get connection factory client

2011-04-15 Thread Ayush Sharma
could someone pls help me ? On Thu, Apr 14, 2011 at 11:12 PM, ayush ayush.sha...@gmail.com wrote: Hello Experts, I am facing the error mentioned in subject line on loading my app. I have generated the key as per the right method and added it at the right place in mail.xml. I also read that

[android-developers] Use Google Spreadsheets API in Android

2011-04-15 Thread Reptil
Hi, I have already made a Web Application using the Google Spreadsheets API with the following code giving my the liste of spreasheets i have in my google account: SpreadsheetService service = new SpreadsheetService(exampleCo- exampleApp-1); service.setUserCredentials(j...@gmail.com, mypassword);

[android-developers] Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-04-15 Thread Carl
Hi, It is now possible to unlock the boot loader for certain series of Sony Ericsson 2011 Android™ Gingerbread phones. Go to http://unlockbootloader.sonyericsson.com to get instructions and a key to unlock the boot loader. Please note that you may void the warranty of your phone if you unlock

[android-developers] Not able to connect with bluetooth keyboard using port

2011-04-15 Thread Tansen.In
I am not able to connect with blue tooth keyboard listening via port. I do get some beep in the keyboard initially but after that nothing happens. using android xperia phone and bluetooth keyboards (microsoft) can body suggest does this method listening via port is ok.. -- You received this

[android-developers] Re: usb-serial controller

2011-04-15 Thread Gerhard
You have to load an additional driver for the specific device, look for a pl2303.ko, which is the driver for your prolific converter. If you cannot find it you have to compile it from the kernel sources. I would be very interested in your findings, because I do some testing with rs232 conversion

[android-developers] Keyboard in Gmail rich text

2011-04-15 Thread Pradeep
Hi, If in Froyo we set browser user agent to desktop and then try to compose a message in gmail.com. Keyboard does not get launched until we move to plain text. Has anyone faced this problem ? What might be the reason ? Regards, Pradeep -- You received this message because you are subscribed

[android-developers] Re: Database shared by Activity and Service. What's the best approach?

2011-04-15 Thread bogde
Thank you both for taking the time to reply. I read about ContentProvider and also read the thread you gave me. It definitely looks like CP is the best approach for me. So I will have the service write data to the database via CP, and the Activity will use CP to display data. I wonder if this

[android-developers] MapActivity( 424): Couldn't get connection factory client

2011-04-15 Thread ayush
Hello Experts, I am facing the error mentioned in subject line on loading my app. I have generated the key as per the right method and added it at the right place in mail.xml. I also read that it might happen because of wrong debug.keystore. i also went and regenerated keystore corresponding key

Re: [android-developers] Unable to get system library for project

2011-04-15 Thread Greg Brown
On Wed, Apr 13, 2011 at 8:59 AM, Greg Brown gk_br...@verizon.net wrote: Does anyone have any suggestions as to how I might be able to permanently resolve this? In the project settings is an Android entry. Under there is where you should be specifying your build target. Try changing it to

[android-developers] remove app natives

2011-04-15 Thread Diego Barbosa
Hi Guys I wonder if it 's possible to leave my android running without anything, a clean room ...all without android market, browser, anything ... just running my application it 's possible? Hugs -- You received this message because you are subscribed to the Google Groups Android

[android-developers] services

2011-04-15 Thread SIC
Hi, I have a doubt about android services and how to properly use them. I will formulate my question by firstly explaining a scenario of an application. 1) The application has to get current data of different sensors and networks such as GPS, acceleration, orientation, magnetic field,

[android-developers] Ticker

2011-04-15 Thread yf2zhang
Hi there, I follow the codes in the link below and Ticker doesn't work. I can't find ticker interface or anything about ticker in the reference at Android Reference. Please help! http://java.dzone.com/articles/google-android-tutorial?page=0,3 Thank youv ery much. -- You received this message

[android-developers] Programmatically play DTMF tones during a call

2011-04-15 Thread keithfry
I've read that it does not seem possible to play audio files while in a phone call. However, I'd like to have an application play a DTMF tone during a phone call. There shouldn't be any hw restriction on this as the dial pad does this already when you press one of the number keys. Instead I would

[android-developers] Custom SeekBar View with x thumbs design

2011-04-15 Thread lmp
Hi group, I'm trying to make a custom seekbar that can have more than one thumb much like this one: http://jqueryui.com/demos/slider/#range-vertical (mine should be able to be both vertical and horizontal though). I'm trying to get my head around how to start - I've already looked into the

[android-developers] How to get the position of cursor in webview?

2011-04-15 Thread Bay
Dear all: I am developing an application that could allow users to annotate in webview page. The concept is just like the software Moon+ Reader and Dolphin Browser that could highlight, underline, and pop up a menu above the selected text. Because the function of one touch word selection is

[android-developers] Android2.1and External Bluetooth Keyboard

2011-04-15 Thread Indresh Gajbhiye
Hi, I like to know which is the best method of connecting the external bluetooth keyboard and android2.1. Rfcomm method Does there is any other method Let me know ...pls.. regards indresh -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How to run my applications more efficiently

2011-04-15 Thread Joseph Du
When I was using Eclipse or IntelliJ to run my own android application, the IDE would start the emulator to verify how the application works. The period of starting the emulator is so long. Do you guys have any idea on how to reduce the cost on starting the emulator or some ways to deploy my

Re: [android-developers] new to andriod

2011-04-15 Thread Android K
http://developer.android.com/guide/basics/what-is-android.html On Thu, Apr 14, 2011 at 8:17 AM, TreKing treking...@gmail.com wrote: On Wed, Apr 13, 2011 at 5:52 AM, shwet shweta.ta...@gmail.com wrote: I wanted to know how can I proceed Read the documentation?

[android-developers] C2DMBroadcastReceiver in Activity

2011-04-15 Thread nino
I have an application that uses C2DM notifications. I'm pretty new to Android development because I think my problem is actually quite simple and I just don't know how the android architecture works so here it goes, I hope you guys can help. What I did basically is copy the classes

[android-developers] Tree View

2011-04-15 Thread JS
Hi, I am looking for some pointers on how to write a n level tree using expandable list view. Any suggestions or pointers to code samples will be great. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] [How To] Custom Component: hide parent class attributes

2011-04-15 Thread Nihal
Hello, I am kind of new to android development and I am developing custom components. I implemented InputField that extends EditText but do some validation according to class attributes ( I have done also the XML attributes part) My question is: How do I extend a specific widget and hide some

[android-developers] Trying to load a list of overlay positions from file

2011-04-15 Thread matt h
Hi, I am trying to develop an app to list the bus stops for my local Public Transit buses on a google map map, but i seem to be having problem loading the overlay markers locations from a text file Heres the code i use to load a new overlay onto the mapview: [CODE] public void

[android-developers] How to find bandwidth usage by different activity

2011-04-15 Thread Rajesh Rathod
Hi, I want to develop such application where we can find network bandwidth used by different activity installed in mobile device. I gone through google and found that TrafficStat class can provide some of the information. In there any other most efficient way to retrieve such information for

Re: [android-developers] WebView in service.

2011-04-15 Thread Android K
Answer to this one is you can't do it. It's not a good idea to run webview in a service. On Tue, Apr 12, 2011 at 9:24 AM, Newbie interconnectt...@gmail.com wrote: Hi, I am trying to run the webview.loadurl() in the service. I have javascript that sends notification to App asynchronously. Is

[android-developers] Memory Management between NDK based app Dalvik VM based App

2011-04-15 Thread AndriodDev
Hi, I want to know how internally memory management happen between NDK based app and Dalvik VM based App as lots of things are different in android like app not able to kill...get killed when memory require -- You received this message because you are subscribed to the Google Groups

[android-developers] ApiDemos

2011-04-15 Thread Don
Hi Is any one who can show where ApiDemos Project is located. I just join this group and wishing to complete all project until Jul Donatien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Is http://developer.android.com down...?

2011-04-15 Thread Lars
Not here On Thursday 14 April 2011 13:59:13 Jitesh dedhiya wrote: -- 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] Sending data continuously over NFC in mode P2P

2011-04-15 Thread azahara
Hello, I have an android application that is intended to send data over NFC in p2p mode based on the API demo provided by Android. I have already tested the program using two Nexus S (both with android 2.3.3). The program runs well; however it is possible to send only one message per device in

[android-developers] Content P

2011-04-15 Thread Android K
Hi, With my one week old knowledge of Android I am trying use content provider. I get this exception, it seems to occur if AndroidManifest.xml didn't have it. But my file does have it. Any pointers are appreciated. TIA. Newbie. 04-14 20:15:03.029: ERROR/ActivityThread(637): Failed to find

[android-developers] HTC hero z images problem

2011-04-15 Thread maidul
HI all. I am maidul .I have one year exp with andoid os. Currently I face a problem that HTC DESIRE Z does not show images from sd card or gallary. I want to show images .How I show images by coding. Can anyone give some coding hints. Thanks and Regards Maidul Islam -- You received this

[android-developers] Eclipse Loan calculator help!

2011-04-15 Thread Jester
Hello all! I'm starting out and new to the development of android applications and also new to the java programming. I'm trying to make a app that will allow me to calculate a loan but I am running into some trouble and need assistance. Having virtually 0 experience with java I researched java

[android-developers] Creating scalable LinearLayout Background image

2011-04-15 Thread fr3sh
Hello, is it possible to create a LinearLayout background image that scales ? As for the EditText widgets, I am able to create background images (via draw9patch tool). There, I can define which image parts can be (horizontally/vertically) stretched and which not. So the resulting image is highly

[android-developers] Secure transport data between client and server

2011-04-15 Thread steben steben
Hi, I work into securing data between webservice and client android, I deloy my web service with https url,before that I created the server and client certficate,so when I try to access on it into android it gives me errors WARN/System.err(: org.apache.http.NoHttpResponseException: The target

[android-developers] C2DM : SERVICE_NOT_AVAILABLE

2011-04-15 Thread vokvince
Hi, Yesterday i was developing an application with C2DM and my registration was ok, I obtained a key : APA91bHL5- hShZFAMTNpQVwYXCxlvEPuXelUtpESrpFu96gbK-0dXC_5HLKk3h_mkoyHDr7ehudSb8ykx25NPdt7TApC2Cmd4w It seems pretty good. Unfortunately, today I try my application and i have an error

[android-developers] REQ: Webmethods Developer (F2F interview in Chicago)

2011-04-15 Thread pradeep kumar
Hello Partners, Please go through the following requirement I have with my client and let me know if you have any suitable resume. *Title: *Webmethods Developer *Location: *Chicago, IL (*LOCALS ONLY*, *need In-Person Interview*) *Duration: *6 months *Rate: *market *Description: * I need a

[android-developers] Augmented Reality - Please Help

2011-04-15 Thread vix
Hi , I am trying to work on Augmented Reality. Can you please help with some : Tools or some material or links etc. Please Help . Thanks Vikas Dhar -- 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] Is it possible to create Auto Call Recording ??

2011-04-15 Thread Manu
Hi, I am new to this technology so i am doing some test projects in various aspects..now my question is can we record calls automatically in android os? if so pls explain it how can we do that? will be very thankful to u if provide some example program. Thanks in advance. -- You received this

[android-developers] nexus s mifare desfire ev1

2011-04-15 Thread v.houba
Hello, im trying out some new nexus s nfc functionality. since mifare emulation is not (so far?) available for this device (or just software?) im playing with proximity cards. basically, i have a mifare desfire ev1 chip but for some reason i cannot communicate it using NfcA.transcieve - im gettin

[android-developers] Android widget eBook

2011-04-15 Thread Aungswee
The essential guide to Android widgets, an eBook featuring the top ten Android widgets from various categories provides practical information about widgets to help you choose the best widgets for your device. http://www.smashwords.com/books/view/49216 -- You received this message because you are

[android-developers] Correct way of accessing vibrator for haptic feedback in Andorid

2011-04-15 Thread Shreshtha
Hi, vibrator hardware is present in audio module and there is ASoC driver in kernel for same. In actual vibrator hardware (rotary) is connected to D class amplifier of audio chip (similar to how headphones are connected). set of alsa_amixer -Dhw set/sset vibrator commands ... configures (set the

[android-developers] VIDEO PLAYER Problem

2011-04-15 Thread Ansh
Other recipients: hey i m new to android and when i m trying to play a video file using the below code i m having the proble m tht its not forwading (buffering is not being done)the video.and it is displying the first scene only. HERE IS THE CODE: package com.examples; import

[android-developers] How to make it fast Android - Tls connection

2011-04-15 Thread lkalove
To make TLS connection using SSLSocketFactory between android App, it takes more than 10 Sec. (only the first time.. Once the it is completed, no need to wait 10 sec to make a connection.) I think TLS library has problem. but I can't figure it out. Do you know how to make connection properly?

[android-developers] about single user login in android

2011-04-15 Thread Prasanna
Hi want to make app for single user.how should i make 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] media player

2011-04-15 Thread Ansh
hey i m new to android and when i m trying to play a video file using the below code i m having the proble m tht its not forwading (buffering is not being done)the video.and it is displying the first scene only. HERE IS THE CODE: package com.examples; import java.io.InputStream; import

[android-developers] Secure transport data between client and server

2011-04-15 Thread steben steben
Hi, I work into securing data between webservice and client android, I deloy my web service with https url,before that I created the server and client certficate,so when I try to access on it into android it gives me errors WARN/System.err(: org.apache.http.NoHttpResponseException: The target

[android-developers] ANDROID IMAGE TRANSMISSION IN A LOOP CONTINUOUSLY

2011-04-15 Thread Raghavaraju K
HI, I am a new to android programming and I want to know how to move an image in a loop continuously on android layout 1)I have stored the Image in res/drawable folder 2) The Image which I stored is a hand Image and that Image should show the button which is at the bottom of the

[android-developers] ANDROID IMAGE TRANSMISSION

2011-04-15 Thread Raghavaraju K
HI, I am new bie to android and i want to know how can we place two images on a layout and move them in a opposite sides 1) I have placed the two images in two image-views 2) I want to apply transmission animation on the Images so that the two Images will move,one Image towards left side and

[android-developers] Get text to string from website

2011-04-15 Thread Rob
I've got an environment set up where a call to a coldfusion page (http://apps.company.com/appstartup.cfm) will return nothing but a text string (no HTML, just the text string). I need my app to grab that and build a string in the background when my app starts up. I have no idea how to get the HTTP

Re: [android-developers] ApiDemos

2011-04-15 Thread yogendra G
Hi Donatien, It will be located in C:\android-sdk-windows\samples\android-10\ApiDemos Regards, Yogi On Fri, Apr 15, 2011 at 6:54 AM, Don musamudonat...@gmail.com wrote: Hi Is any one who can show where ApiDemos Project is located. I just join this group and wishing to complete all project

[android-developers] Re: How to export the project as a JAR file.

2011-04-15 Thread Dan
You generally do not export the project as a JAR file. If you would take the time to explain precisely and clearly what it is that you are trying to accomplish, we may be better able to provide assistance. I have a similar issue that I would have described the same way, but I'll go with some

[android-developers] Re: Vertical text on canvas

2011-04-15 Thread Numeron
subpixel and antialiasing are both off for drawing the text, and the image is even drawn with a paint with both these off though it still appears antialiased anyway. Same result as drawing the image with a null paint. I think that the canvas rotate uses its interpretation algorithm even for

Re: [android-developers] Augmented Reality - Please Help

2011-04-15 Thread Robin Talwar
There is Layar API available and wikitude api is also good But if you are using any of the above mentioned api's then the device must have the Layar or Wikitude application installed respectively. considering the complexity of AR if you wanna develop a stand alone application then its HARD On

Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread Kostya Vasilyev
Start by reading the bottom of this email. 15.04.2011 11:01, akruti patel ?: How can i leave this group.I have joint by mistake so how can i leave this? On Wed, Apr 13, 2011 at 10:57 PM, Nasif Noorudeen nas...@gmail.com mailto:nas...@gmail.com wrote: By using LayoutInflater On

[android-developers] Re: How to force use only gprs even though wifi is available

2011-04-15 Thread Jens
It is. http://developer.android.com/reference/android/net/ConnectivityManager.html#TYPE_MOBILE_HIPRI On 15 Apr, 07:18, kiran saikiran@gmail.com wrote: Yes you are right, But thing is my application itself making wifi on. Is it not possible to on wifi and gprs at a time? On Apr 14, 2:34 

Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread Robin Talwar
First create a class file not an activity and extend it with linearlayout This will create your custom view . Now lets suppose the package of your custom view is org.customView and class is mylayoutfile.class Then in the main.xml you can add this layout file just as you add a button, textview or

Re: [android-developers] Re: String to Float Performance Ideas

2011-04-15 Thread Kostya Vasilyev
I haven't see the native part, but it's probably only useful for two things: 1 - Doing the final scaling by a power of ten, being able to handle very large or very small exponent values. You could have your own lookup table for the range you need, say from 10^-20 to 10^30, and use it when

Re: [android-developers] Re: Database shared by Activity and Service. What's the best approach?

2011-04-15 Thread Kostya Vasilyev
Two values? Service running all the time? Just put them into static variables accessible from both your Service and Activity classes. Back up into shared preferences or a file, so you can reload the latest values if/when the service/process is killed. -- Kostya 14.04.2011 11:17, bogde

Re: [android-developers] java/lang/IllegalStateException

2011-04-15 Thread Kostya Vasilyev
Most likely, by not closing the cursors before you read data from them. Can't tell for sure until you post a stack trace from logcat. -- Kostya 14.04.2011 11:01, amey bura пишет: How to prevent or avoid java/lang/IllegalStateException when dealing with Cursors. The program is giving this

[android-developers] Re: new to andriod

2011-04-15 Thread gjs
Hi, Copy and paste http://developer.android.com/resources/samples/LunarLander/index.html ? The moon has long days, so there should be plenty of time ;-) Regards On Apr 14, 10:20 pm, Android K interconnectt...@gmail.com wrote: http://developer.android.com/guide/basics/what-is-android.html

[android-developers] Re: Fragment Support forward compatibility?

2011-04-15 Thread alevapi
in the current static library animations are broken. I have a fix that will be available in a later update When do you think the fixed version will be available? I'd love to use fragments on Gingerbread, but fragments with no transition animation are a little too boring :( -- Alexis. On 11

[android-developers] Re: C2DM : SERVICE_NOT_AVAILABLE

2011-04-15 Thread vokvince
I find the problem ! It was because I didn't have SIM , so the synchronization didn't work. + On Apr 14, 3:12 pm, vokvince vokvi...@gmail.com wrote: Hi, Yesterday i was developing an application with C2DM and my registration was ok, I obtained a key : APA91bHL5-

[android-developers] how to play inputstream from file?

2011-04-15 Thread Hitendrasinh Gohil
hi, I am having mp3 file stored on my sdcard.Is there anyway to play stream from that file. i.e i dont want to give a direct file url in mediaplayer.i just want to set inputstream to media player. Is there anyway to do this? -- You received this message because you are subscribed to the

[android-developers] Re: Android Apps, move apps into phone's memory, or switch them into external memory.

2011-04-15 Thread sblantipodi
I note that you are always here answering posts all the day, you should improve the management of your time so don't think to my time, think to yours :) Ok, just if someone is searching for this: http://developer.android.com/guide/appendix/install-location.html On Apr 15, 2:22 am, TreKing

Re: [android-developers] Backward compatibility when compiling.

2011-04-15 Thread Marcin Orlowski
On 15 April 2011 11:26, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, I have some apps that can run without problem in Android 1.6 so I compile them using Android 1.6. Do you think that is better to compile using the newer SDK? Don't fix it until is broken. Is it safe to do it in

Re: [android-developers] remove app natives

2011-04-15 Thread Marcin Orlowski
On 14 April 2011 17:10, Diego Barbosa diegobcarne...@gmail.com wrote: I wonder if it 's possible to leave my android running without anything, a clean room ...all without android market, browser, anything ... just running my application it 's possible? Theoretically yes, but it's

[android-developers] Re: Backward compatibility when compiling.

2011-04-15 Thread sblantipodi
Don't fix it until is broken. Ok, this is common but what is the real answer? :) I would like to add this attribute to my manifest: android:installLocation=preferExternal but this requires SDK Level 8 to build the source. Isn't safe to compile using Level 8 SDK only for this attribute and

Re: [android-developers] Re: Backward compatibility when compiling.

2011-04-15 Thread Marcin Orlowski
On 15 April 2011 11:57, sblantipodi perini.dav...@dpsoftware.org wrote: Don't fix it until is broken. Ok, this is common but what is the real answer? :) I would like to add this attribute to my manifest: android:installLocation=preferExternal but this requires SDK Level 8 to build the

[android-developers] Backward compatibility when compiling.

2011-04-15 Thread sblantipodi
Hi, I have some apps that can run without problem in Android 1.6 so I compile them using Android 1.6. Do you think that is better to compile using the newer SDK? Is it safe to do it in terms of compatibility? What about the automatic obfuscation when compiling using new SDK? Thanks. -- You

Re: [android-developers] Re: How to export the project as a JAR file.

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 3:03 AM, Dan dan.schm...@gmail.com wrote: I have a nice .apk with a service and 4 activities, a shared native library with some jni goodness, some drawable files in the res directory and some other data in the assets directory.   Another company would like to package

[android-developers] In android how to search that sharedpreference contains some value or not?

2011-04-15 Thread Prasanna
In android how to search that sharedpreference contains some value or not? Actually I m making application which takes password and confirm password as fields.when user start app for first time he must enter both password and confirm password. But i want when user restart that app he must ask to

Re: [android-developers] Is it possible to create Auto Call Recording ??

2011-04-15 Thread Mark Murphy
You have no access to the in-call audio stream, unless the device happens to be in speakerphone mode. On Fri, Apr 15, 2011 at 2:16 AM, Manu sathyamanoj.andr...@gmail.com wrote: Hi, I am new to this technology so i am doing some test projects in various aspects..now my question is can we

Re: [android-developers] How to run my applications more efficiently

2011-04-15 Thread Mark Murphy
Leave the emulator running. Eclipse, at least, will deploy to the existing running emulator rather than start a new one. A normal development day would have you start the emulator once in the morning and leave it run all day. On Thu, Apr 14, 2011 at 11:07 AM, Joseph Du josephdu...@gmail.com

Re: [android-developers] Programmatically play DTMF tones during a call

2011-04-15 Thread Mark Murphy
On Thu, Apr 14, 2011 at 10:53 AM, keithfry keith...@gmail.com wrote: I've read that it does not seem possible to play audio files while in a phone call. You can play audio files while in a phone call, but they only come out the earpiece or speaker of the phone your app is running on. The only

Re: [android-developers] Capturing screens and sending it across from a device to another

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 1:28 AM, gaurang...@gmail.com gaurang...@gmail.com wrote: I am trying to build an application which shares an android device screen with another android device. Mainly the way VNC or Microsoft remote desktop connection works. This is not possible with an ordinary SDK

[android-developers] Re: Backward compatibility when compiling.

2011-04-15 Thread sblantipodi
Ok, so you got the real reason :) In this case you have to use higher SDK as I am not aware of any other trick you could use for Manifest to add new attribute and still be able to build against older SDK. I have the real reason yes but if this reason will damage backward compatibility I will

Re: [android-developers] Native PDF Viewer

2011-04-15 Thread Mark Murphy
On Thu, Apr 14, 2011 at 1:14 PM, Diogo Salaberri caxix...@gmail.com wrote: I need to know if the android have ,as a native mode, a PDF viewer. No. And if don't have, he has a lib native that can I work easily with PDF. Android has nothing built in for PDFs. Some Android devices ship with PDF

Re: [android-developers] In android how to search that sharedpreference contains some value or not?

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 7:05 AM, Prasanna prasanna.kada...@gmail.com wrote: For that i store password in sharedPreferences but now how do i know that their is already password exists in sharedPreferences or not? Read in the value using getString() on SharedPreferences. Supply null as the 2nd

  1   2   3   >