Re: [android-developers] Recieveing a notification when an activity is launched

2010-06-30 Thread Mark Murphy
On Wed, Jun 30, 2010 at 5:31 AM, Christoffer Davidsson wrote: > is there a way of recieving a notification of some sort when a > activity is launched. No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com

[android-developers] Re: How to send a photo over Bluetooth

2010-06-30 Thread Gorka
Hi, Thank you, it seems that is exactly what I wanted. I have not tested it but apparently it works. By the way, I saw there is not an specific function defined by the FileInputStream class to know the number of bytes of the picture; do you know how can I get this value. I mean, I am using this co

[android-developers] Re: Loading from a compiled xml file

2010-06-30 Thread piyu
Hi John, Can copy here code to know how you are reading fron input stream. Thanks in advance. On Jul 1, 12:36 am, "RespeckKnuckles (John Licato)" wrote: > Hey guys, > > I have some xml files with a custom format (based on the scxml > specifications) that I want my program to read. I've alre

[android-developers] Beginner's TableLayout question

2010-06-30 Thread hansamann
Hi all, I have a simple tablelayout with an imageView and textView as children. The textView contains a relatively long text and when I was using it as a child of a LinearLayout, is showed several lines of text. Now as part of the TableLayout it shows only one line and cuts the rest. Question: Ho

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-06-30 Thread piyu
Hi, In string.xml change only values of string ,If you want to change "name" of string then you must change in your project where you are using that name. like R.string.example. On Jun 30, 8:25 pm, Chappers wrote: > Hello all, > Firstly my appoogies in advance, I know this is a very newbie >

[android-developers] Request for test of a game on an Evo

2010-06-30 Thread Neil
Hi, Can someone help me out and try a game I've released on an Evo? A user has reported that the controls are the wrong way round on the device. Like most arrogant developers :) I initially thought "dumb user error", but I suppose it *might* draw with the Y axis reversed. The game is Pocket Racin

[android-developers] Re: Loading from a compiled xml file

2010-06-30 Thread ABhi
I'm not sure if i understand the question correctly. My need is slightly different for dynamic screen generation. Hi All, I'm dealing with a problem you guys might not have faced earlier. I'm having a use-case in my Android application where the actual screen that i want to show to user is not s

[android-developers] Dynamic loading of complete layout file.

2010-06-30 Thread ABhi
Hi All, I'm dealing with a problem you guys might not have faced earlier. I'm having a use-case in my Android application where the actual screen that i want to show to user is not stored in any layout file of my application. The layout of the of the screen is designed by server in this case, bas

[android-developers] Re: Generate key events on foreground application

2010-06-30 Thread Bob Kerns
You can't, and you shouldn't. This would be a serious security hole. What you can and should do, is let the user send the text to the application of his choice. For example, wrap an ACTION_SEND intent in a chooser, and run that activity, and the user will be prompted with a choice of email, SMS,

Re: [android-developers] Audio

2010-06-30 Thread y 00o00o0o0o000o00o0o0o
Hi, I checked the reference guide, and it says that setRouting() is a deprecated method, developers should call setSpeakerphoneOn() or setBluetoothScoOn instead. http://developer.android.com/reference/android/media/AudioManager.html#setRouting(int, int, int) -- You received this message because

[android-developers] Re: Secure an TCP-Connection

2010-06-30 Thread Bob Kerns
Both the Java and Bouncy Castle act as providers to the standard API. I think really, your question is, "how do you create a BKS keystore?" Answer: 1) If you don't already have them, extract the certificates and keys you want from your JKS keystore using keytool. 2) Put them into a BKS keystore --

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
I think I've isolated the problem through other means, I just need to discover if there is some limitation that is disallowing the overlay to be added. I can add it fine in other contexts. On Jun 30, 11:58 pm, Frank Weiss wrote: > Are you using Eclipse? Have you tried stepping through your code w

Re: [android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Frank Weiss
Are you using Eclipse? Have you tried stepping through your code with the debugger? I highly recommend you do that. -- 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: Loading from a compiled xml file

2010-06-30 Thread Bob Kerns
Don't put it in the xml/ directory. That does indeed get compiled into a binary format, and you'd need to use the corresponding API for reading it. (Or you could recode to use that API, and gain efficiency and space -- but first, you'd like to test the code you've already written, right?) So put

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-06-30 Thread Bob Kerns
There may not be; he may have the wrong editor. Even if he has the right editor, a workaround may be to use a different one. See my reply here for more detailed suggestions. http://groups.google.com/group/android-developers/browse_frm/thread/c8be17f1927932f0 On Jun 30, 6:31 pm, Frank Weiss wrot

[android-developers] Re: Error in an XML file eclipse

2010-06-30 Thread Bob Kerns
There are several possible editors to use to edit these files. I'd suggest trying a different one. First, close the editor that's giving you problems. Right click on the file in the Project Explorer, and choose Open With... Try "Android Resource Editor" first, as that's probably the one you rea

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread Bob Kerns
Congratulations on a very cute and clever idea. I really hope it catches on -- and that it makes you a lot of money! I can't quite see myself using it until I get Android phones for the family, but I think it will be wildly successful among teens! And we all benefit as a result. On Jun 30, 10:50 

[android-developers] Re: Why Android is using alsa device in block mode?

2010-06-30 Thread Nilly
Thank You Mark Regards, Nilly On Jun 30, 3:09 pm, Mark Murphy wrote: > On Wed, Jun 30, 2010 at 5:29 AM,Nilly wrote: > > I am using android device ...ported android cup cake version on beagle > > board... > > Here also Android is opening device in block mode ... > > Ah, my apologies. You will prob

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
I tried it with the StringBuffer to no avail, the problem still persists. public void endElement(String uri, String localName, String qName) { if (localName.equalsIgnoreCase("registry")) { System.out.pri

[android-developers] Re: live stream error

2010-06-30 Thread schwiz
updating to release 85b fixed this issue On Jun 30, 4:40 pm, schwiz wrote: > I am making a basic activity to stream this live > showhttp://ice2.securenetsystems.net/WHBRM here is the pastebin of my > activityhttp://pastebin.com/N5g69j7i > > I realize that it is better to be in a service but this

[android-developers] Re: Problems installing Eclipse with Android.

2010-06-30 Thread Zigurd
Does your question 1 refer to the step in installation where you use the AVD and SDK Manager to install build target packages? If so, you can choose to install all of them without using up too much space on a big machine. If you install all of the build targets you will be sure to be compatible wit

Re: [android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Frank Weiss
In the endElement() method, also check for the other elements and save the contents of the StringBuffer: > if (qName.equalsIgnoreCase("business-name")) > { > businessName = sb.toString(); > } -

[android-developers] Unlock KeyGuard

2010-06-30 Thread mike
hi guys, i'm having three different devices. Tattoo,Milestone and a Droid. what my application does is when receiving a call i'm starting a activity. which works fine in all three. but if the phone is locked in Motorola Droid it's not unlocking the screen in other two phones it's working fine. th

[android-developers] Re: Froyo still breaks compatibility

2010-06-30 Thread Bob Kerns
Yes, "Open Source" != "Open Process". Moving to an open process wouldn't mean that Google would have to give up control; they'd just have to make their incomplete work more visible, and deal somehow with the extra comments and such that result. But it could mean a lot more and better and earlier

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
Either way the if statement is still accessed and the addElement() is run. However, it still will not add the item to the arraylist for some reason. On Jun 30, 9:18 pm, Streets Of Boston wrote: > Don't check the qName. Use the localName instead. > (localName.equals("event")). > > On Jun 30, 10:07

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
It doesn't make a difference as it still passes the if statement and runs the addElement() method, which for some reason still won't add it. On Jun 30, 9:18 pm, Streets Of Boston wrote: > Don't check the qName. Use the localName instead. > (localName.equals("event")). > > On Jun 30, 10:07 pm, Mic

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread Streets Of Boston
Thanks Jake, I already had a hard time believing Bump would do that... :-) I think it's a great idea to let friends (bumpers? :-)), share app- discoveries like that! On Jun 30, 1:50 pm, Jake Mintz wrote: > Hi all, I am one of the founders of Bump Technologies, the company > behind the Bump app o

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Streets Of Boston
Don't check the qName. Use the localName instead. (localName.equals("event")). On Jun 30, 10:07 pm, Michael wrote: > Thanks again, but I'm still having a problem. > > public void endElement(String uri, String localName, String qName) >                 { >                         if (qName.equalsI

[android-developers] Re: Speed of device

2010-06-30 Thread gjs
Hi there, You can get speed in meters per second from the GPS (if present). see - http://developer.android.com/reference/android/location/Location.html Regards On Jul 1, 1:42 am, ranjan ar wrote: > Hi all, > How to determine the speed of moving android device.any pointers hints are > apprecia

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
Thanks again, but I'm still having a problem. public void endElement(String uri, String localName, String qName) { if (qName.equalsIgnoreCase("event")) { addElement(); }

[android-developers] Re: update activity/layout from within broadcast receiver

2010-06-30 Thread AUandroid
thanks Jeremy, I will try the onresume option. A separate thread is not feasible. -vk On Jun 30, 1:23 am, Jeremy wrote: > Here's one crazy workaround, but I'm sure there's an easier way: > > When your receiver get's set off, you can set a hidden boolean > preference (since they are global) and th

Re: [android-developers] Problems installing Eclipse with Android.

2010-06-30 Thread Frank Weiss
Hmm. I've heard that the resources editor is buggy. Work around is to edit the XML directly. If you really need to use the resource editor, might I suggest fixing the code yourself and submitting to the Android project? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Loading from a compiled xml file

2010-06-30 Thread Frank Weiss
My first guess is you're trying to read the compiled resource class file. I hope you understand that the R object is a graph of static classes. The idea being that at run time, you simply access the resources via the R object graph and avoid any further XML parsing. -- You received this message b

Re: [android-developers] java.lang.NullPointerException when trying to edit strings.xml

2010-06-30 Thread Frank Weiss
Look at the bottom of the editor pane. There should be a tab labeled "Resources" and a tab labeled "strings.xml". Which tab is selected when the NPE ocurrs? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Re: Error in an XML file eclipse

2010-06-30 Thread Gorman Ho
I am also experiencing this issue. When I edit strings.xml directly, I get 1 NullPointerException for each string in the file each time I type a letter. I eventually did something to make it go away, but I'm not sure what. However, I'm able to reproduce the behavior by creating a new Android projec

[android-developers] java.lang.NullPointerException when trying to edit strings.xml

2010-06-30 Thread Chappers
Hello all, Firstly my appoogies in advance, I know this is a very newbie question, but I have looked and looked, and cant seem to get to the bottom of this. I am getting the error: "java.lang.NullPointerException" whenever I try to change anything at all within "strings.xml" when using eclipse,

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread Jake Mintz
Hi all, I am one of the founders of Bump Technologies that makes the Bump app for Android. Bump does not allow users to share paid apps for free. All we do is share a link to the App Market so your friend can find the app (and hopefully purchase it) easier. Our goal was to make it easier for your

[android-developers] Secure an TCP-Connection

2010-06-30 Thread Markus Keil
Hi! I try to secure an TCP-Connection bewteen an Android-App and an Java- Application. I try to use SSL and CipherInputStream/CipherOutputStream but i can't get it working. on the JAVA-Application it's fine with an JKS-Keystore created with keytool. Code of creating an listening SSL-Socket in th

[android-developers] Loading from a compiled xml file

2010-06-30 Thread RespeckKnuckles (John Licato)
Hey guys, I have some xml files with a custom format (based on the scxml specifications) that I want my program to read. I've already written the code to read it, but I'm running into problems actually reading the file itself. I want the file to be compiled with the apk, as it will not be changed

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread Jake Mintz
Hi all, I am one of the founders of Bump Technologies, the company behind the Bump app on Android. Bump does not allow users to share paid apps for free. All we do is share a link to the App Market so your friend can find the app (and hopefully purchase it) easier. Our goal was to make it easier

[android-developers] Re: How to access a AIDL service from different packages?

2010-06-30 Thread Priyank
Hi, I am kind of facing a similar problem with my project. I have an existing project which has 2 parts. Services module and Application module. The VMService.aidl file is in a package in the services. When the service module is compiled, the generated VMService.java file appears in the /gen folder

[android-developers] Re: Context.getExternalFilesDir() folder is removed on app upgrade? Where to store data?

2010-06-30 Thread BenV
I'm running into this same issue. It seems like this functionality isn't very useful if things are being removed upon upgrading. Does anyone have any insight into this problem? Thanks, Ben On May 23, 11:11 pm, jean-guy wrote: > Greetings all, > > Since API 8 (Froyo) we have a standard place to s

[android-developers] Error in accessing java file genetated from .aidl file

2010-06-30 Thread Priyank
Hi, I am trying to launch an existing project which has 2 parts. Services module and Application module. The VMService.aidl file is in a package in the service module. When the service module is compiled, the generated VMService.java file appears in the /gen folder. I have exported this in the sou

[android-developers] Generate key events on foreground application

2010-06-30 Thread biginner
I am new android developer. I am writing an application to receive data from barcode scanner. I am able to receive data from barcode scanner via bluetooth connection. If user open notepad or other application, I want to display the data to the application, so I want to generate key events on foregr

[android-developers] Custom widget height always 0?

2010-06-30 Thread selmixxx
hi in short: what could cause situation where LinearLayout.getWidth() returns correct values and LinearLayout.getHeight() returns always 0? in details: In screen layout i want one custom widget to stretch over screen to use all possible free space for testing this ScrolledPicture layo

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread fry15
It doesn't actually send the app itself, it just sends a link to a search on the marketplace. No need to panic! :p On Jun 30, 1:16 am, jsdf wrote: > It looks like you can send an app with the new version of Bump. > This seems to include paid apps. > Which completely circumvents the Android Market

[android-developers] Click/press events on multiple resolutions

2010-06-30 Thread Mark H
Say I'm using a canvas, or other surface that I can directly draw to. Instead of buttons, I have pictures and text areas that are 'clickable'. Now, to find out how to handle the MotionEvent, I just use a case select procedure and find out which area was clicked. For example, if the x position was

[android-developers] Unable to specify the bucket to Gallery3D

2010-06-30 Thread Diego Moreira Rosa
Hi guys, I am using the default photo picker (usually Gallery or CoolIris Gallery3D) to pick an image from my application. The problem is that, when using Gallery3D, the user always needs to choose the album (aka "bucket") and then the image, while it would be more intuitive to open directly the a

[android-developers] WebView Features

2010-06-30 Thread Paulo
Hey everyone! I am pretty new to android development, and kindly request some help from you, please. I'm trying to find information regarding the webview capabilities, in different API versions, including: CSS, Javascript and HTML 5. I am really more interested in HTML 5, and confused, since some

[android-developers] hello everyone..

2010-06-30 Thread asim khatri
does anyone know how to use the zoom in / zoom out functionality on android phones camera.. i have tried camera.setSmoothZoom(i) but i haven't got any success, i have also tried camera.getParameters().setZoom(i), but still no success.. plzz help needed. thanks in advance -- You received this mess

[android-developers] Re: Stopping or Killing a Thread

2010-06-30 Thread nicholas
>From the jls: >http://java.sun.com/docs/books/jls/first_edition/html/javalang.doc18.html#2658 : "Once a thread has been stopped, it is no longer alive and it cannot be restarted.". There is a known bug in the lunar lander demo: http://code.google.com/p/android/issues/detail?id=972 On May 3, 10:

[android-developers] double tap zoom on Google maps

2010-06-30 Thread SilentCoders
Hello, I am a newbie android developer. I am developing an application in which i am using google maps. I want to know how can i implement double tap on google maps. I want to zoom in when i double click on google map. I need a sample code which i can use in my application. BR, SilentCoder -- Y

[android-developers] surfaceview - how to make two independent boxes

2010-06-30 Thread ArcDroid
Hello, I have been working through samples and I have been able to make one icon move when drag it over the screen, but how do I make two icons move around independently. Ex. drag one icon left ontouch, then drag another icon down on touch. Thanks in advance! Jake -- You received this message b

[android-developers] Problem with clicking on a Spinner causing blank box

2010-06-30 Thread Connie Walsh
I am new to android programming. I imagine that my problem is that the spinner is defined but is not connected to the array that I have defined in res>values>strings.xml I have code related to the spinner in 3 different places, is that correct? I am open to improving my coding style. In main.xml

[android-developers] Recieveing a notification when an activity is launched

2010-06-30 Thread Christoffer Davidsson
Hi, is there a way of recieving a notification of some sort when a activity is launched. I'd like to monitor which applications are used and how often. Is is possible to register for some broadcast telling me when an application is launched, installed, unistalled etc? I believe I found a discuss

[android-developers] What is the maximum size limit of android application ?

2010-06-30 Thread ravi
Hello friends I am new to Android development. I want to know the size limit for android application. what will be the maximum size of a "application.apk" file ? Thakns -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] How to lunch new Activity while doing a GSM call to a number (CALL_STATE_OFFHOOK) state.

2010-06-30 Thread Abhit
Hi everybody, I am new In android, stuck with a task to lunch a new screen (Activity) while doing or reeving a GSM call. For same I have done fallowing but that activity which I want to launch is launched at background and that screen is visible only when click on back key. public void onCallStat

[android-developers] Payouts made easy for non US Android Developers

2010-06-30 Thread YanivC
Hi, If you are an android developer living outside the US and don't have a way to accept the android market payouts?, we can help you. We can give you the option to have all the payouts directly to your pocket utilizing our Prepaid Debit MasterCard system. To read more about us, go to: http://www.

Re: [android-developers] Hello World App in Ubuntu won't run

2010-06-30 Thread Christian Kuen
Hi, the letters 'ANDROID_' are displayed during the start up of the AVD. You need to wait longer until the device has finished the start up process. After a while you should see the home screen of Android and then you can start your 'Hello World' application. best regards, Chris 2010/6/29 kism

[android-developers] chrome

2010-06-30 Thread Ryan Hammill
Hi, how is it that we don't have Google Chrome on android yet? And do you know when froyo is out on HTC LEGEND? Thanks Ryan Hammill -- 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@goo

[android-developers] ViewFlipper Animation - Changing Duration During Animation Causes Strange Behaviour

2010-06-30 Thread fry15
Hello I'm using a ViewFlipper to change between several views. I initially have the animation duration set to quite a high value. Then during the animation, I change the duration to a much lower value. I would expect this to change the length of the animation that it's currently doing. Instead it

Re: [android-developers] Re: help connecting my app to an external Mysql DB

2010-06-30 Thread Duleep Sahadevan
Hi Gabriel This can be done. Ive earlier implemented an app which talks to a customer crm oracle db. You simply need to build a web service for the android app to talk to Cheers http://twitter.com/duleepsahadevan On Wed, Jun 30, 2010 at 1:55 PM, gabri wrote: > hi Brad, > > Yes, I mean the Da

[android-developers] Drawing pre-scaled bitmap on a scaled canvas.

2010-06-30 Thread Andrew
I am drawing on a SurfaceView canvas. To make it look roughly the same on various screen densities I use canvas.scale(...) with DisplayMetrics.density as parameters. This works great overall. My drawn primitives and text look exactly right across all screen sizes. But if I try to draw a bitmap o

[android-developers] BroadcastReceiver

2010-06-30 Thread Eli Gelernter
I am looking to turn a BroadcastReceiver on and off. The receiver used to be turned on in the manifest xml file but i believe there is no way to turn it off when it is turned on that way. Instead I am trying to turn it on locally and thereby be able to turn it off. I am having a few problems with t

[android-developers] Problems installing Eclipse with Android.

2010-06-30 Thread Albion
I've been following the tutorial at this page... http://www.vogella.de/articles/Android/article.html I had originally sent an e-mail to the author of the tutorial who promptly told me that I shouldn't e-mail him about his tutorial, but should ask this group instead. Below is a copy of the e-mail

[android-developers] mixing in audioflinger

2010-06-30 Thread shaireen dhingra
Can Audioflinger in android support mixing of sounds from multiple applications running simultaneously? -- 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

[android-developers] Re: Media Player - crop video for fullscreen mode

2010-06-30 Thread TeddybearCrisis
I've got the same question though I have a slightly different use for it. I must render only a part of the video fullscreen. Any Ideas? I didn't make any experiments with the ImageView yet. Do you think it is possible to extend it to some kind of video-player? -- You received this message because

[android-developers] unlock security pattern from code

2010-06-30 Thread Juan José Garibay Cervantes
Hi, I am writing an application that displays an activity as soon as Android boots WITHOUT user interaction. When the unlock pattern is disabled, I am able to accomplish this by first listening to BOOT_COMPLETED action, then launching my Activity and finally setting the flag FLAG_DISMISS_KEYG

[android-developers] Re: Failing JUnit tests, not breaking my Ant script like I expect?

2010-06-30 Thread Zoon
That would work, but I guess you'd have to copy the run-tests-helper task from ant_test_rules_r2.xml into your own build file so you could run the exec yourself to capture the output? I'd prefer to just rely on the Android configured platform's script rather than copy and paste what they already h

[android-developers] Audio

2010-06-30 Thread Shard
Hi, Has anyone gotten audio routing to work succesfully on eclair? SetRouting and a number of functions don't work anymore. -- 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] Re: Android 2.1 Simulator Very Very slow

2010-06-30 Thread claesh
Emulator is slow. Major reason is that emulator actually emulates another processor with another instruction set than the Intel processor. Also other devices on the phone needs to be software emulated. It simply takes time... You can experiment with android-x86 if you just want to see you app runn

[android-developers] missing broadcast intents

2010-06-30 Thread Brendan
Hi, I was just working on an app that will do stuff when a call is missed or made; and am left wondering why do you have to register a listener using a long lived background service for phone state changes instead of being able to use broadcast intents? Thanks for any insights, Brendan -- You re

[android-developers] HeapWorker taking 80%-95% of cpu

2010-06-30 Thread Joe Yuan
Dear all! I got a problem that when i run my app the whole system may get blocked!and then i 'top' the tasklist,see 'HeapWorker' thread of my app takes 80%-95% of cpu.What's the problem? The feature is When I use the jni (*env)->CallVoidMethod to call the java function of my class,the running th

[android-developers] Re: Eclipse NullPointerException when editing strings.xml

2010-06-30 Thread claesh
Just add xml namespace to the resource tag. This will make the nullpointerexception to go away. http://schemas.android.com/apk/res/android";> On Jun 28, 2:05 pm, stenlik wrote: > Hello, > > I am using Eclipse 3.6.0, when I try to edit the strings.xml the > Eclipse show me NullPointerExce

[android-developers] Re: refresh gallery after saving photo in android

2010-06-30 Thread Julian
Well, for starters most of the code samples include "file://" before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Triboletti wrote: > Hi, > I have an application where I

Re: [android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Frank Weiss
Yes. Assuming your XML is like this: ,,, ... ... ... Check for the closing entry element in the endElement() method and add the new item to your list. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Re: Can I start a new activity that’s not specified in the AndroidManifst.xml file?

2010-06-30 Thread Bob Kerns
If you're doing what I think you're doing -- do not use a new class for each activity. Instead, use a single wrapper class, that instantiates and invokes your dynamic class. Pass the name of the class to load and run as an extra value in your intent -- or possibly include it in the getData() field

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
Thanks for your reply! Would it help if I added the object to the arraylist in the endelement() method? On Jun 30, 6:40 pm, Frank Weiss wrote: > I'm assuming that your input XML is very simple and uses no element > attributes, namespaces, or recursively nested elements. I recommend > you use the

Re: [android-developers] Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Frank Weiss
I'm assuming that your input XML is very simple and uses no element attributes, namespaces, or recursively nested elements. I recommend you use the following pattern, which I've used countless times: Use a StringBuffer or StringBuilder to collect character data. Initialize it in startElement. In t

[android-developers] Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Michael
Hello, I'm trying to add to an ArrayList of custom objects in the Characters method but I'm not having any luck with it adding. I've attached the code below, if anyone has any advice on how to get it to add that would be great. I've tried adding the code directly in the method (as opposed to a sepa

[android-developers] Re: How to change ClassLoader of Activity

2010-06-30 Thread fadden
On Jun 25, 5:59 pm, Mark Murphy wrote: > On Fri, Jun 25, 2010 at 8:47 PM, James Wang wrote: > > So what Thread's ContextClassLoader for? > > Beats me -- can't even find it in the source code. All I know is that > this question of replacing the system ClassLoader has come up before, > and the answ

[android-developers] Placing focusable & clickable views in a custom expanded view in the notification bar

2010-06-30 Thread Marc Reichelt
Hi! Has anyone tried to put Views, e.g. Buttons, into a list item of the notification bar? In my opinion this would be really helpful for actions that should be accessible in a very fast manner, like activating/deactivating WiFi or the 3G network. In fact I saw something like this implementet on t

[android-developers] live stream error

2010-06-30 Thread schwiz
I am making a basic activity to stream this live show http://ice2.securenetsystems.net/WHBRM here is the pastebin of my activity http://pastebin.com/N5g69j7i I realize that it is better to be in a service but this is just a test. Anyways it seems to be working fine except for in froyo my error l

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread String
Just tried it between my G1 & N1, and it does just send a Market link. Cancel yellow alert. String On 30 June, 19:23, Bob Kerns wrote: > I would be extremely surprised if they do anything other than send the > market URL. To do otherwise would be more work, and a worse user > experience. > > My

[android-developers] Re: ContentProvider onCreate() onDestroy()

2010-06-30 Thread Natanael Arndt
Thank you I have found the model.commit() method for Jena-Models now. Natanael On 30.06.2010 20:49, Dianne Hackborn wrote: You shouldn't leave open transactions. Generally the expectation is that upon returning from an insert or whatever the corresponding transaction has been committed. On We

[android-developers] Re: Intercepting the Android phone dialer

2010-06-30 Thread Jaap
Maybe I did not explain myself well. What I want is somebody to use the default phone application on Android but when the call button is pressed my application gets the number and no call is being placed. Jaap On Jun 26, 10:30 pm, Jaap wrote: > Hi, > > There are some programs to make calls via S

Re: [android-developers] Arabic :(

2010-06-30 Thread Muhammad Hakim
On Thu, Jul 1, 2010 at 12:05 AM, mohammed sabri wrote: > i can't beleive that no one of android developers can support arabic > in android . there's millions of arabian people have an android > phone . and they need the arabic language :( > > -- salam mohammed, you can use arabic reshap

[android-developers] Re: How to dismiss the soft keyboard

2010-06-30 Thread skooter500
Thanks! I used: txtQuery.setOnKeyListener(this); ... ... public boolean onKey(View arg0, int keyCode, KeyEvent event) { if ((event.getAction() == KeyEvent.ACTION_UP) && (keyCode == KeyEvent.KEYCODE_ENTER)) { doSearch(); ... ... And used the answer from the previou

Re: [android-developers] Re: Removing applications programatically.

2010-06-30 Thread Nando Android
Thank you NightGospel! On Tue, Jun 29, 2010 at 11:48 PM, NightGospel wrote: > Hi Nando, > > When a package is installed or removed, system will broadcast out the > messages: "android.intent.action.PACKAGE_ADDED" or > "android.intent.action.PACKAGE_REMOVED". > You can write a broadcast receiver t

[android-developers] Re: Can I start a new activity that’s not specified in the AndroidManifst.xml file?

2010-06-30 Thread Indicator Veritatis
Well, yes, that is the obvious response. For by design, every Activity must be declared in the manifest. That is WHY it is named 'manifest': it is like the manifest that a shipper fills out, listing all the goods in the shipment. But I am curious what programming problem Snap believed was best sol

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

2010-06-30 Thread Danny Backx
Can anyone help me to understand this ? It's as if something clears the screen inbetween my drawing calls. I can get similar incomplete drawings with other sequences too :-( Is there a way to figure out which events are on the queue for the UI thread while debugging ? Danny On Sat, 2010

[android-developers] Re: Pre-defined text styles?

2010-06-30 Thread paladin
Thanks! On Jun 30, 2:02 pm, Kostya Vasilyev wrote: > In > > \platforms\android-\data\res\values > > styles.xml > > -- Kostya > > 30.06.2010 21:45, paladin пишет: > > > Where can I see what typeface, size, color, etc. are used for > > Android's pre-defined text styles? Like the default text style

Re: [android-developers] Re: ContentProvider onCreate() onDestroy()

2010-06-30 Thread Dianne Hackborn
You shouldn't leave open transactions. Generally the expectation is that upon returning from an insert or whatever the corresponding transaction has been committed. On Wed, Jun 30, 2010 at 11:30 AM, Natanael Arndt wrote: > Thank you, > but when should I or is than the best time to save database

Re: [android-developers] Implementing a toolbar/taskbar kind of thing.

2010-06-30 Thread TreKing
On Sun, Jun 27, 2010 at 9:23 PM, Bhavya Siddappa wrote: > How this can be done in Android? Not sure but I would look at TabViews, ViewFlippers, and PopupWindows to start with. - TreKing - Chicago tr

[android-developers] Re: ContentProvider onCreate() onDestroy()

2010-06-30 Thread Natanael Arndt
Thank you, but when should I or is than the best time to save database changes to the filesystem? Natanael On 30.06.2010 18:36, Dianne Hackborn wrote: Content providers are never destroyed. They exist for the entire lifetime of their process. On Wed, Jun 30, 2010 at 2:19 AM, Natanael Arndt

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread Bob Kerns
I would be extremely surprised if they do anything other than send the market URL. To do otherwise would be more work, and a worse user experience. My own app, in an upcoming version, will send a link to itself. It was trivial to implement, and I think it's a great marketing tool. I think we'd all

Re: [android-developers] crashing map

2010-06-30 Thread Pedro Teixeira
I traced it down to this snippet of code... for (int j=0; jHave you ensured you're calling ItemizedOverlay.populate() before adding the overlay to the map view? Steve On Tue, Jun 29, 2010 at 5:42 PM, Pedro Teixeira > wrote: Hey there... My applicatio

Re: [android-developers] crashing map

2010-06-30 Thread Steve Howard
Have you ensured you're calling ItemizedOverlay.populate() before adding the overlay to the map view? Steve On Tue, Jun 29, 2010 at 5:42 PM, Pedro Teixeira wrote: > Hey there... > > My application using google maps was working just fine.. I left it for > a while.. and suddenly out of the blue..

Re: [android-developers] Pre-defined text styles?

2010-06-30 Thread Kostya Vasilyev
In \platforms\android-\data\res\values styles.xml -- Kostya 30.06.2010 21:45, paladin пишет: Where can I see what typeface, size, color, etc. are used for Android's pre-defined text styles? Like the default text style or textAppearanceMedium, for example? -- Kostya Vasilev -- WiFi Man

[android-developers] Froyo still breaks compatibility

2010-06-30 Thread webmonkey
You can no longer send the ACTION_ATTACH_DATA intent with an image URI to a custom content provider without crashing the Gallery app. This bug was reported more than a month ago. http://code.google.com/p/android/issues/detail?id=8543 It is a stupid bug that is super easy to fix, and as soon as Fr

  1   2   3   >