[android-developers] Re: Content provider / ListView - Close the database but leave the cursor open?

2010-06-21 Thread grace
Hi, did u use Cursor.setNotificationUri(...) before closing the database in the query function of the provider.?? On Jun 19, 5:40 am, Jawon wrote: > I have a ContentProvider that stores data in a SQLite database. I also > have an app with a ListView that displays data queried from the > ContentP

[android-developers] Re: Should I put "Please visit our sponsors" above my ads ?

2010-06-21 Thread EboMike
Who's the provider for your apps? If it's AdSense, then the guidelines clearly prohibit you from doing that: Misleading to clicks Publishers are not allowed to use language to lead users to click Google ads, such as: * "Feel free to click an ad" * "Contribute to the cau

Re: [android-developers] Re: help on singleinstance launchmode

2010-06-21 Thread Dianne Hackborn
First, you almost certainly don't want to use singleInstance. It is for very special situations, and has significant repercussions on UI flow that you need to understand before touching it. The key point about this is this statement in "Launch modes" http://developer.android.com/guide/topics/fund

[android-developers] Re: the android calendar api question

2010-06-21 Thread EboMike
Mark, when using the gdata API, you will need to query the user for the username and password of the gmail account to use. Is that correct? Or is there a nifty way to get an authentication token with the account linked to the phone (if there is one?). I haven't found any good samples on the web, b

[android-developers] Should I put "Please visit our sponsors" above my ads ?

2010-06-21 Thread hzakimoto
Hi. Have anyone try putting a message like "Please visit our sponsors" or something cuter like "Please support our free games by visiting our sponsors ^_^" above you ads banner? I want to hear everyone's opinion about this. Do you think it'll help increase CTR or not, and why? Thank you in a

Re: [android-developers] Re: help on singleinstance launchmode

2010-06-21 Thread Vibhor Mahajan
Hello, As per the documentation, standard and singletop differ in just one way, standard activity instance is created every time but singletop instance may or may not be created. I verified this, if in the above code, reverse launchmode of activity A & B i.e. Now A has STANDARD and B as SINGLEINST

[android-developers] Problem in Contacts restoring

2010-06-21 Thread pramod.deore
Hi, All I have developing one application in that I am sending contacts to server and restoring them back to mobile. I have stored contacts to server successfully but there is problem in restoring them back to mobile. One of my method throws NullPointerException while restoring. The method is pub

[android-developers] Re: Transparent textures in OpenGL ES.. How?

2010-06-21 Thread Nightwolf
Part of my texture loading code looks like this: final Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), resId); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); bitmap.recycle(); Following lines should be somewhere in initialization: // Blending Function For Translucency

Re: [android-developers] Native codes do not respect Overriding

2010-06-21 Thread Dianne Hackborn
WebKit draws directly using skia, so you can't intercept it. On Wed, Jun 16, 2010 at 11:34 AM, Mehdy wrote: > In an struggle to fix something in drawing of Webkit engine I ended up > with this code to change the canvas to my canvas on the draw method: > > > class MyWebView extends WebView { > >

Re: [android-developers] Re: READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-21 Thread Dianne Hackborn
As usual, when new features are added or changes made, targeting the platform version (or better) where that was done will turn off any compatibility code in the platform for older apps. So if you use android:targetSdkVersion="4", the platform knows that your app was written after these permission

Re: [android-developers] Re: VM aborted and Framework disconnected

2010-06-21 Thread Dianne Hackborn
Please if you are going to file a bug, include at least an .apk with steps to reproduce. It is even more useful to have a stripped down app that demonstrates the problem. Also since there are a lot of content service things, there is a non-zero chance that this is just the app leaking resources

[android-developers] UI Stack over flow

2010-06-21 Thread shakeel
My application works fine if launch independently, but gives stack over flow when I use add my class to tabhost. Please suggest Thanks shakeel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-21 Thread Bara
Wait, what exactly should I be returning with onRetainNonConfigurationInstance? Wouldn't anything I return with that be from the original activity, not the new one? So wouldn't that cause the same problem? Bara On Jun 21, 7:27 pm, Streets Of Boston wrote: > This probably happens because your r

[android-developers] Re: Getting user input and turning it into int,double,float

2010-06-21 Thread Kevin
Float.parseFloat( EditText.getText().toString() ); Double.parseDouble( EditText.getText().toString() ); Int.parseInt( EditText.getText().toString() ); On Jun 19, 6:50 am, kille6525 wrote: > Does anyone know how to get user input for floats,doubles,ints. I have > tried looking everywhere on here

[android-developers] How do the DivX players render the video?

2010-06-21 Thread Andy Savage
Hi there, Small question. Does anybody know how the current closed-source DivX players available on the market work in Android? Are there any open-source versions? I presume that obviously they bypass the built in Android MediaPlayer and render the frame's directly (after porting a native DivX co

[android-developers] Re: Emulator behaving like I´m pressing "=", but I´m not!

2010-06-21 Thread Gabriel Simões
And it seems I´m not alone in this one! http://stackoverflow.com/questions/2640086/android-emulator-typing On 21 jun, 23:08, Gabriel Simões wrote: > Also I have updated android sdk tools and the problem persists ... > > Anyone got any idea of what could be going on here? My emulator says it > ´s

[android-developers] Re: Emulator behaving like I´m pressing "=", but I´m not!

2010-06-21 Thread Gabriel Simões
Also I have updated android sdk tools and the problem persists ... Anyone got any idea of what could be going on here? My emulator says it ´s receiving keyboard inputs that I´m not doing and this way I can ´t develop! :( Please help On 21 jun, 22:22, Gabriel Simões

Re: [android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-06-21 Thread Andy Savage
*Hi Everyone,* This problem is *really* bugging me. It's a lot bigger than a few of us not being able to receive RTP. It's the fact that Android currently *does not support incoming real time streaming*! This is a *huge* problem for a new platform that wants to really become the device people buy

[android-developers] Re: Emulator behaving like I´m pressing "=", but I´m not!

2010-06-21 Thread Gabriel Simões
Infinitely: >> KEY [0x00d,down] emulator: could not handle Now I ask myself ... why and how is it happening? I´m not pressing anything and I´ve been using this system for months! This happens to ALL my avds :( On 21 jun, 21:50, Gabriel Simões wrote: > It´s weird by default > I´m not

[android-developers] Re: Emulator behaving like I´m pressing "=", but I´m not!

2010-06-21 Thread Gabriel Simões
It´s weird by default I´m not pressing any button ... in windows the same effect can´t be seing but if I load ANY AVD, there it is ... Gonna create a new AVD and try it but right now I´m afraid I will have to work a lot on it ... was about to release a new version of an app :(

Re: [android-developers] adding C libraries to library layer

2010-06-21 Thread David Turner
It's not possible unless you build your own firmware (or root your phone and modify the system). On Sun, Jun 20, 2010 at 10:49 PM, shoi wrote: > Hi > > I have a few already written C libraries which i want to embed into > the library layer of the android architecture at the same level as the > a

Re: [android-developers] Emulator behaving like I´m pressing "=", but I´m not!

2010-06-21 Thread David Turner
mmm, seems really weird. Can you start the emulator with the -debug-keys option and see what keycodes are dumped. If they are different (for different key strokes on your keyboard), something is weird inside the emulated system. If all codes are the same, something is weird in the emulator binary o

[android-developers] Re: Camera preview - works on all devices apart from the Droid

2010-06-21 Thread Peter Sankauskas
I have the exact same issue - did you ever solve it? Peter On May 25, 1:39 am, mscwd01 wrote: > Surely I cant be the only one to encounter problems with this? > > On May 24, 6:19 pm, mscwd01 wrote: > > > > > > > Hey, > > > This is my code I use to display a preview from thecameraon a > > Surfa

[android-developers] using a-gps make data fee?

2010-06-21 Thread lch1721
Hi~ I have a question about data fee. when using a-gps(i mean network provider), 3g data fee will occur? Many peoples are afraid of data fee, so I consider use network gps. Thank you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Emulator behaving like I´m pre ssing "=", but I´m not!

2010-06-21 Thread Gabriel Simões
Guys can you help me in this one too? Yesterday I was coding and everything in my system was working great. Turned off the computer, turned on today ... Now when I run the emulator, it behaves like I´m pressing the "=" key, and opens the search for "" (infinite) .. I´ve re

[android-developers] soft keyboard

2010-06-21 Thread intbt
I have an app that takes a series of letters (EditText) and uses an Enter button to save the letters and move to the next action. I would like to have the 'soft' Enter key do the same thing but am having problems sorting it out. 1/ How do I call the keyboard with the Enter key? (Not CR) 2/ My o

Re: [android-developers] Android & Corba

2010-06-21 Thread Isaac Wagner
CORBA no. However, you can do client server apps using ICE from ZeroC (http://www.zeroc.com/labs/android/index.html). I did CORBA programming several years ago and stumbled onto ICE a year or so ago. I've not done anything other than simple stuff, but from what I've seen it is fairly easy to use.

[android-developers] Re: Making the Java assert statement work

2010-06-21 Thread fadden
On Jun 16, 12:26 am, A Curious Developer wrote: > But ... I noticed that assert statements bloat the .apk, which seems > like a bad thing. So I am now using a pattern of checking a static > final constant: if(ASSERTS) { asserts( someCondition, "Some > explanation" ); } Java-language assert statem

[android-developers] Re: VM aborted and Framework disconnected

2010-06-21 Thread fadden
On Jun 15, 3:12 am, sweetdevil wrote: > 01-06 07:45:07.814: WARN/dalvikvm(1063): JNI global reference table > summary (2001 entries): ... > 01-06 07:45:07.854: WARN/dalvikvm(1063):   934 of Ljava/lang/ref/ > WeakReference; 28B (934 unique) > 01-06 07:45:07.874: WARN/dalvikvm(1063):    33 of Ljava

[android-developers] Re: Getting Hprof dump from application code

2010-06-21 Thread fadden
On Jun 15, 10:32 pm, Natraj wrote: > Do we need to have any special permission to kill other process from > our process ? Or is it a built issue ? can you please suggest some > possible way to get Hprof dump for other processes from application > code?. You're running up against the Linux user ID

[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-21 Thread Streets Of Boston
This probably happens because your runnable 'mUpdateDisplayRunnable' has an implicit reference to 'this' activity that calls 'this.updateDisplay()' in its run() method. When an orientation-change happens the current activity ('this') is destroyed a brand-new activity is created. When the handler

[android-developers] Re: Native codes do not respect Overriding

2010-06-21 Thread fadden
On Jun 16, 11:34 am, Mehdy wrote: > I've chased the chain of method calls and reached native methods and > my only explanation is android Native codes to not respect method > overriding and call the original version of methods in Canvas. What native code are you referring to? -- You received th

[android-developers] Re: How to debug endless loop?

2010-06-21 Thread fadden
On Jun 16, 1:15 pm, MartinB wrote: > What kind of debugging mechanisms are available in this case? I've had > a quick look at 'traceview' but the problem is that I have to call > Debug.stopMethodTracing() to write profiling data from the recording > buffer to file, and I am of course unable to mak

[android-developers] Re: Thread Problem

2010-06-21 Thread fadden
On Jun 17, 9:40 am, YuviDroid wrote: > what you need is a boolean var that checks whether to continue 'doing work', > or stop the thread. Like this: > > public void run () { >     while (!stopThread) { >         doSomeWork(); >     } > > } If you use this approach, declare stopThread "volatile".

[android-developers] Re: Media.insertImage locked to heavy compression

2010-06-21 Thread Streets Of Boston
Compress (Bitmap.compress) the image yourself into a file. Then use the getContentProvider().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, ) to insert your image into the database/content-provider. When inserting, you can create a ContentValues name-value pair with MediaStore.MediaColum

[android-developers] Re: READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-21 Thread joebowbeer
Good coverage at: http://stackoverflow.com/questions/1747178/android-permissions-phone-calls-read-phone-state-and-identity Apps targeting 1.5 will always request these permissions implicitly. But what about apps *targeting* 1.6 whose minSdkVersion includes 1.5? On Jun 21, 1:27 am, Viktor Lin

[android-developers] Re: How to get dimensions of soft keyboard?

2010-06-21 Thread folecr
Dianne, Thanks. Adding android:windowSoftInputMode="adjustResize" in the AndroidManifest enables the Window to be resized when the soft keyboard is shown. This was sufficient for my application. On Jun 18, 6:16 pm, Dianne Hackborn wrote: > Your view hierarchy (and thus surface view) will be res

[android-developers] Re: Using barcode scanner as input method?

2010-06-21 Thread brucko
I'm not sure what the question is here, but barcode scanner usually reads the barcode in less than a couple of seconds - depending on focus, and how steady your hand is. In my limited experience, I have had few problems with it. The app is not usually present on phones and needs to be downloaded f

[android-developers] Re: “Failed to find provider info for android.server.checkin ” ?

2010-06-21 Thread tarek attia
Any Idea about that?! On Mon, Jun 21, 2010 at 9:31 PM, tarek attia wrote: > Hi , > > I'm doing a GPS application ,and it worked fine till I updated the SDK for > API 8 ,,then after close and open eclipse once again I got this error in my > LgCat > > “Failed to find

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-21 Thread brucko
kamiseq, Only just saw your posts. I have to regularly create db's on sdCard due to my requirements. The code I use is below. The main thing that stands out in your code to me is File.pathSeparator, from memory this returns ":" when you need File.separator which is "/" - on my system anyhow.

[android-developers] Re: Xml parsing

2010-06-21 Thread Manfred Moser
There is also ksoap2 that you can use to work with SOAP which supports marshalling. Check it out at http://code.google.com/p/ksoap2-android/ or use my patched version if you need attribute support as well. http://www.simpligility.com/2010/05/attribute-support-for-ksoap2-on-android/ Manfred Moser

[android-developers] Re: ItemizedOverlay.hitTest incorrect

2010-06-21 Thread tfriest
I did change the getBounds to copyBounds since it is offsetting the bounds... On Jun 16, 12:47 pm, tfriest wrote: > It appears that the hitTest method is not working right when I iterate > through the items in myItemizedOverlayand call hittest on them in > theonTap(GeoPoint, MapView) method. > >

Re: [android-developers] Re: IllegalArgumentException when trying to run an OpenGL ES 2.0 application

2010-06-21 Thread Romain Guy
The emulator doesn't support OpenGL ES 2.0 at this time. On Mon, Jun 21, 2010 at 2:04 PM, Skute wrote: > Sorry Romain, should have said in the original post. I'm using an > emulator with Android 2.2. > > Does the emulator support OpenGL ES 2.0? > > > On Jun 15, 9:01 am, Romain Guy wrote: >> On w

[android-developers] Re: IllegalArgumentException when trying to run an OpenGL ES 2.0 application

2010-06-21 Thread Skute
Sorry Romain, should have said in the original post. I'm using an emulator with Android 2.2. Does the emulator support OpenGL ES 2.0? On Jun 15, 9:01 am, Romain Guy wrote: > On what phone/AVD are you trying this? Not all devices supportOpenGLES2.0. > > > > On Sat, Jun 12, 2010 at 2:50 AM, Skute

Re: [android-developers] Any Tree (Swing/JTree-like) widget for Android?

2010-06-21 Thread Mark Murphy
On Mon, Jun 21, 2010 at 9:26 AM, Paul wrote: > I want to display a tree like data structure, for the Swing JTree is > ideal.  Is there any widget that provides that? There is ExpandableListView, which offers a two-level tree-ish UI. Otherwise, there are no tree widgets built into Android. > Or a

Re: [android-developers] Animated widgets?

2010-06-21 Thread Mark Murphy
On Sun, Jun 20, 2010 at 2:14 PM, Ryan Detwiler wrote: > I would like to make a simple 2x2 widget that displays a canvas that's > updated every second - how can I go about doing this? Write your own home screen application. You cannot have a Canvas in an app widget, and you cannot animate an app w

Re: [android-developers] Xml parsing

2010-06-21 Thread Mark Murphy
On Sun, Jun 20, 2010 at 10:56 AM, Davide wrote: > Does Android support jaxb? No. > It look no. Any framework you can tell me? DOM, SAX, and the XML Pull Parser (org.xmlpull) are available in Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://c

Re: [android-developers]

2010-06-21 Thread Mark Murphy
On Sun, Jun 20, 2010 at 12:02 PM, Sivan Chakravarthy wrote: > I found out a Software called DRODDRAW ( www.droiddraw.org ) which is > very easy for designing Android Applications . This tool is very out of date and should no longer be used. -- Mark Murphy (a Commons Guy) http://commonsware.com

Re: [android-developers] ExpandableListView with certain top-level elements expandable and others selectable

2010-06-21 Thread TreKing
On Mon, Jun 14, 2010 at 6:15 PM, patbenatar wrote: > Is this possible with an ExpandableListView or any standard widget? > Don't think so, at least not by default, but here's an idea for a cheap hack workaround: Use ExpandableListView and track the indices of the "singular" items. When a row is

Re: [android-developers] Fast screen update

2010-06-21 Thread Miguel Morales
Well, it looks like you're setting every pixel on the bitmap on every frame. Android is not a PC, it's equivalent to a 10-15 year old pc, you'll have to optimize your code. You can try drawing directly to the canvas, instead of drawing to a bitmap, and then drawing that bitmap onto the canvas. Wat

[android-developers] Re: AudioHardware pcm playback is going to standby

2010-06-21 Thread k_day
Bumping this. Still having this issue, and I cannot seem to find any good information anywhere regarding how I can resolve this. Any help would be really appreciated. On Jun 15, 1:19 am, k_day wrote: > Occasionally when I have a lot going on in my app, and I am playing a > number of sounds using

Re: [android-developers] TCP connections from android device as client

2010-06-21 Thread Miguel Morales
Showing your actual code might help, looks like it's just timing out. So i'd guess there's a firewall issue. Also, make sure you have the correct INTERNET permissions on your android manifest file. On Sun, Jun 20, 2010 at 2:11 PM, Sanju wrote: > Hello, > > I am trying to do a simple program wher

[android-developers] pesky problems with AVD at wits end what the hell am I doing wrong?

2010-06-21 Thread YoYo
I get this error every time I click create AVD [2010-06-17 13:28:16 - SDK Manager] Failed to create the SD card. I also have another problem. When I try to open my simple hello world app in the emulator I get a bus error. Example: * I launch the emulator from an avd with no sd card size settings.

[android-developers] Media.insertImage locked to heavy compression

2010-06-21 Thread Julian
I've done some tests with the insertImage call and it looks like it hard coded to always use a high rate of compression. In my tests I took a 3000x2000 pixel image, which is ~6MB as a jpeg at max quality, and passed the file path in to insertImage. The image that was saved to the phone's DCIM folde

Re: [android-developers] Android Database and PC Applications

2010-06-21 Thread Steven Maitlall
There is a .NET Sync Framework that you could use with C#. http://msdn.microsoft.com/en-us/sync/default.aspx On Mon, Jun 21, 2010 at 10:33 AM, Mark Murphy wrote: > On Mon, Jun 21, 2010 at 10:30 AM, Boardy > wrote: > > How can I get a PC application ideally in C# to be able to get the > > inform

[android-developers] Audio plugin.

2010-06-21 Thread dmoti
I'm developing an Audio plugin for the android platform. The plugin suppose to process all audio from the device. I've already implemented an alsa plugin which work with android too, but I must change alsa configuration files and install a dynamic link library. My question is: is it possible to cr

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 22 Messages in 18 Topics

2010-06-21 Thread epg1.a...@gmail.com
-- Sent from my Palm Device On Jun 16, 2010 11:23 PM, android-developers+nore...@googlegroups.com wrote:   Today's Topic Summary Group: http://groups.google.com/group/android-developers/topics power manager (Light off) in android [2 Updates]

[android-developers] Extremely Simple Question

2010-06-21 Thread HeyYouThere
Here goes: I have a very simple listview going on. The list just consists of strings, when you click the string it opens a new activity blah blah. Here's the problem, I enabled settextfilter and while it did filter the list, when you click the result, it always performs the action of the string l

[android-developers] AudioTrackTread

2010-06-21 Thread Unni
Hi, I am new to android stuffs...Currently, I am trying to understand the source codes... I am in AudioTrack.cpp... Could someone explain to me what is AudiotrackTread. Thank You -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Android paid apps in Ireland

2010-06-21 Thread skooter500
Hi guys I have a popular music search engine app for the iPhone called Tunepal (http://www.youtube.com/watch?v=Gr0xnlYZ_gM) and in response to multiple requests I have been working hard to port it Android. The port will be finished in the coming weeks and I want to sell it on the Android Marketpla

[android-developers] Gmail, Youtube, Maps

2010-06-21 Thread Fina Mesina
Hello! I have a question regarding the Gmail, Youtube, and Maps applications. I was wondering if aside from directly downloading the application to the phone, can we download the actual apk files and then try to install them in the simulator? Also, when I searched for apk files in the net, all I

[android-developers] This Community Map could not be displayed because it contains errors

2010-06-21 Thread François Masurel
Hi everybody, I'm try to display a map from a Google Maps Data API query (calling intent "geo:0,0?q=") and I get this message : "This Community Map could not be displayed because it contains errors" Does anybody have an idea what the problem could be ? Here is the query URL : http://maps.googl

[android-developers] adding C libraries to library layer

2010-06-21 Thread shoi
Hi I have a few already written C libraries which i want to embed into the library layer of the android architecture at the same level as the already existing libraries such as libc etc i dont want to insert it as .jar packages at the application or framework layer. is that possible. if so, co

[android-developers] Media.insertImage locked to heavy compression

2010-06-21 Thread Julian
So from what I can tell Media.insertImage is locked to heavy compression on all images. This includes when passing in the path to a photo in the filesystem. As a test I used a 3000x2000 pixel jpg which had been previously saved at maximum quality and was ~6MB. After passing the path to Media.insert

[android-developers] Social networking gateway performance....

2010-06-21 Thread SKore
Hello All I think Social NetWorking sites which support on Mobile will get data from SNG(Social Networking Gateway). SNG will get mass data from all the social networks and send to phone that means SNG acts as server. I want to know performance,scalabilty etc of SNG. Is there any proces

[android-developers] help in service

2010-06-21 Thread Vineet Mail Delivery
Hi there, I have been doing with the android for a while, but I am totally confused with the service part. I can create a service, start / stop from the activity. I have seen many examples but besides clearing, they have infact confused me more. But what I need is that the service as resp

[android-developers] Send DTMF tones during call

2010-06-21 Thread Jay
Hi, One feature which i did not fiund on the Android 2.0 is the ability to send DTMF tones during a call using the contacts list. Whilst on a call i would like to be able to select contacts and send that contact as a DTMF tone. I've sean all the different dialler apps. but nothing allows you to

[android-developers] Display flicker when a video is played

2010-06-21 Thread deepa.sundar...@wipro.com
Hi All, When I play a video file from gallery, before the actual video starts playing, there is a black screen with a small triangle on the top right corner appears on the screen. Why does it happen, how can it be resolved. When I debugged the code the intermediate screen is launched at this poin

[android-developers] Any Tree (Swing/JTree-like) widget for Android?

2010-06-21 Thread Paul
I want to display a tree like data structure, for the Swing JTree is ideal. Is there any widget that provides that? Or any implementation of Swing for Android? Thanks, Paul -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Custom Contact Fields

2010-06-21 Thread Chiggins
How can I add and get custom fields to contact entries? -- 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-developer

[android-developers] notifyDataSetChanged() not updating listview after orientation change

2010-06-21 Thread Bara
Hello all, I have a semi-complicated problem and hoping that someone here will be able to help me. On a click event I create a thread and start a long-running operation based on this method (http://jnb.ociweb.com/jnb/jnbJan2009.html). After the long-running task is completed, it does a callback t

[android-developers] application space files access.

2010-06-21 Thread changdeo
Hi, I want to create a log file for my application in application space, so that user can review what went wrong. But We can not access files created in application space(access in the sense that we can not pull it to desktop , or can not view on phone using some editor). Can anybody please help m

[android-developers] Forcing Sensor Readout?

2010-06-21 Thread Christian Schneider
Is there a way to force a sensor readout, without waiting for the SensorEnventListener to get triggered? The problem i encountered playing around with Sensors, is the lightsensor won't call the EventListener unless i cover up the Hole on the smartphone where the Light sensor/Proximity sensor is. Tu

[android-developers] standard UI style for "there's more..." ?

2010-06-21 Thread Daniel Ahlstrom
I working on an app where the screen is divided in two parts: a data area above, and a set of possible actions below (containing radio buttons, edit boxes, check boxes, et al). Some of those actions are atomic and take effect immediately, and some will invoke a dialog for the user to enter more in

[android-developers] using Linear Layout with Table Row

2010-06-21 Thread Eason
I cant figure out why the program keep having bugs if i use Linear Layout with Table Row. Can any one help? http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="0,1">

[android-developers] Simple drawing sample, I seem to miss something

2010-06-21 Thread Danny Backx
Hi, I must be misunderstanding something. I am trying to draw some simple stuff, and things appear to clear (so not to display) in moments I don't expect it. The sample included is a simplified version of a larger application I'm porting to Android. What I would expect is a circle in green, with

[android-developers] Animated widgets?

2010-06-21 Thread Ryan Detwiler
I would like to make a simple 2x2 widget that displays a canvas that's updated every second - how can I go about doing this? I noticed you can't make the onUpdate() update more than every half hour now, so that shoots down that idea... -- You received this message because you are subscribed to th

[android-developers] How to load Gmail, Youtube, and Maps applications on avd.

2010-06-21 Thread Evonie Ytac
Hello, I have successfully installed and run an AVD targetted on Android 2.2 (Froyo). I wanted to test the Youtube, Gmail, and Maps applications that usually come pre-installed on Android phones. i want to use the emulator to run these applications. Is there a way for me to do this? -- You recei

[android-developers] Re: Android 2.2 cutting off MediaPlayer?

2010-06-21 Thread Jesse
Yeah I'm seeing the same issue myself, hopefully this turns out to be a bug not a 'feature' :) On May 22, 8:04 am, rofl newb creations wrote: > Hello, > > Suddenly, when playing audio usingMediaPlayerin an Android 2.2 > emulator, the audio seems to be getting the last 5-10%cutoff.  I'm > using th

[android-developers] Can't create MediaPlayer from sound resource in res/raw

2010-06-21 Thread Simuloid
Hello, I am getting a resource not found exception when I attempt to create a MediaPlayer via MediaPlayer.create. The full text of the exception is "android.content.res.Resources $NotFoundException:File res/raw/dice_land.ogg from drawable resource ID #7f03" I have done a google search and fou

[android-developers] Fast screen update

2010-06-21 Thread qute
Hi I'm new to this android development. I've read a lot on the net how to do it, but I can't get the speed I want/expect. In init: bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_); my onDraw method: protected void onDraw(Canvas canvas) { for (int j = 0; j < HEIGHT-2; j++) {

[android-developers] android menu and selection

2010-06-21 Thread Kroepoek
Hi, I'm bit of a newbie. I'm trying to create a menu. What I've managed so far is create a imageview and some normal text under it with textview. But what I actually need is that both the image and text are somehow linked and both are clickable (leading to the same page/action/younameit ofcourse).

[android-developers] Content provider / ListView - Close the database but leave the cursor open?

2010-06-21 Thread Jawon
I have a ContentProvider that stores data in a SQLite database. I also have an app with a ListView that displays data queried from the ContentProvider. I run a query() on the ContentProvider, then I take the returned Cursor, make an adaptor, and set it to the ListView, like so: dbA

[android-developers] Reference Chooser

2010-06-21 Thread bartek
Hi, where can i find a Reference Chooser like this: http://www.vogella.de/articles/Android/images/first46.gif -- 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 unsubs

[android-developers] Xml parsing

2010-06-21 Thread Davide
Hi, Does Android support jaxb? It look no. Any framework you can tell me? I have tried to use annotation myself, but is a little slow. Android is very slow reading annotations... -- _| _.o _| _ (_| (_| \/ | (_| (/_ -- You received this message because you are subscribed to the Goog

[android-developers] Getting user input and turning it into int,double,float

2010-06-21 Thread kille6525
Does anyone know how to get user input for floats,doubles,ints. I have tried looking everywhere on here and there hasnt been anything that could help me. All it has is EditText.GetText().toString() very fustrated that there isnt a tutorial for this. -- You received this message because you are s

[android-developers] How to click multiple buttons through sliding motion

2010-06-21 Thread yousefm
Hello, I was wondering if there is a way to click multiple items (buttons,checkboxes,radiobuttons,etc) by doing a sliding over multiple items in one motion. For example, say I have a vertical layout of three buttons and I would like to click them all quickly. I want to be able to slide my finger

[android-developers] How to reverse android.graphics.Path

2010-06-21 Thread RadoK
Hi, is there a way how to reverse the Path object? My paths are simple polygons (moveTo, lineTo, lineTo, ...). Thanks. Rado -- 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@googlegroup

[android-developers] Youtube, Gmail, Google Maps

2010-06-21 Thread Fina Mesina
Hello! I've read that the Gmail, Youtube, Google Maps applications are either needs to be downloaded in the phone or comes pre-installed in the phone. I don't have a device yet and I needed to test something on the said applications. Is it possible to add them in the simulator? Thank you! -- Fi

[android-developers] Android to be published and sold on private website

2010-06-21 Thread SaiSriOrl
Dear All, Regarding the publishing strategy in response to Linkedin. The Apps will be published and sold on private web sites Not Andorid market, or Not App Store. So we are seeking code imbedded in the apps to prevent duplication. Sri -- You received this message because you are subscribed to

[android-developers]

2010-06-21 Thread Sivan Chakravarthy
Hi ... I found out a Software called DRODDRAW ( www.droiddraw.org ) which is very easy for designing Android Applications . After inserting some buttons , i clicked on the Generate button and it Generate the XML code for it... Next for testing it , I copied the XML code and pasted it in ECLIPSE

[android-developers] Using living infornmation in an application

2010-06-21 Thread Todilo
I am going to create an app which basicly is like a charachter builder for a game. I will have a lot of "buttons" for each hero type which will be bitmaps, that part should not be too hard. The thing is that it is not once-created-it-is-done-app. Instead when the game it refers to is updated new it

[android-developers] List all groups for an account

2010-06-21 Thread jmatthewsr
Hi, Is it possible to list all of the ContactsContract.Groups for a particular Account? It looks like account_type and account_name from ContactsContract.RawContacts can be used along with the GroupMembership from the ContactsContract.Data table to build a list of all of the Groups currently in u

[android-developers] What maps is Google Maps for Android available for?

2010-06-21 Thread GGGames
I've read that Google Maps is not available for the Android version of the Acer Aspire. It would like to get an Android netbook or tablet, but Maps is a requirement. Does Google Maps, Turn by Turn navigation, etc not work at all, or are just not installed by default? Thank you, Russ -- You rec

[android-developers] TCP connections from android device as client

2010-06-21 Thread Sanju
Hello, I am trying to do a simple program where in I need to communicate between a TCP Server and a client (android device). First I simulated the complete communication on local server and things worked fine. Now I tried to test it from device. I installed my activity on the device and tried to c

[android-developers] Re: Loading random image when activity is brought up...Not working any ideas?

2010-06-21 Thread BryBam
Well I appreciate the thought on another way I could go about doing this. However I have a very similar approach on another activity with text and it works great. I probably will want to look into your suggestion later on. But for now im simply looking to see what i'm doing wrong with my current

[android-developers] Sip stack

2010-06-21 Thread André Barbosa
hi all, i need to porting a sip stack to android! after search in google and read several posts in android groups, i think that the best choice is sofia-sip or PJSIP. At this time, i think in use the PJSIP! what is your opinion? after download the PJSIP, i saw your code and i understand how compil

[android-developers] “Failed to find provider info for android.server.checkin ” ?

2010-06-21 Thread tarek attia
Hi , I'm doing a GPS application ,and it worked fine till I updated the SDK for API 8 ,,then after close and open eclipse once again I got this error in my LgCat “Failed to find provider info for android.server.checkin ” and anytime I call "Location = locationManager.getLastKnownLocation(provide

[android-developers] Re: Hi, anyone knows how to install python on android?

2010-06-21 Thread intbt
Go to this blog for ASE, it worked on my Eclipse running >2.0 http://www.akeric.com/blog/?p=879 On Jun 19, 8:39 pm, asicwizard wrote: > Read: > > Command your shiny Android > inPythonhttp://indefinitestudies.org/2009/06/20/command-your-shiny-android-in... > > Have fun. > > On Jun 16, 8:24 pm,

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-21 Thread Nathan
True enough. In the case I am using it, I would be happy with an activity context *if* Google Analytics would not hold on to it, causing a huge memory leak and subsequent crashes. Nathan On Jun 21, 10:46 am, Bob Kerns wrote: > My claim is that it is always incorrect but will usually work. (A b

  1   2   >