[android-developers] Re: How to create new page / form

2010-08-02 Thread titleist
The first page and the default page is the page I see (main.xml). When I replaced getApplicationContext(); with "this", the application started to work. Thank you all for your help. Regards, Tadej On 2 avg., 20:50, TreKing wrote: > On Mon, Aug 2, 2010 at 6:56 AM, titleist wrote: > > I want to o

[android-developers] Re: RSS feed by HttpURLConnection - html issue

2010-08-02 Thread Paul Turchenko
Why DOM? Having large content of you feed you'll end up having HUGE memory blocks with DOM. Consider XmlPullParser instead. On Aug 2, 1:48 am, Obason wrote: > I would like to read RSS feed by following coding: > >         /** Get data from the list feed */ >         private void GetListFeed() { >

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
On Aug 2, 10:30 pm, Frank Weiss wrote: > This thread is a little like schadenfreude to me. A lot of it is about > taste - of which arguing about is of little use. I just saw some Java > code where every closing brace is commented with "// end of if", "// > end of for", "// end of method", etc. Y

Re: [android-developers] Android VNC server

2010-08-02 Thread Anil Sasidharan
Hi Danke, Great job. I've pulled your sources and re-built with Android-eclair. I'm able to deploy and run the vnc server on my target board. However there is some incompatibility in terms of color/pixel depth between my target and host-PC and because of which the vncviewer shows

[android-developers] Re: Interaction between an Activity and a Service ?

2010-08-02 Thread Paul Turchenko
See ApiDemos for 2way service communication sample. On Aug 1, 11:29 pm, Rajesh Bachani wrote: > Hello friends! > > I am trying to explore how information can be exchanged between > activities and services. > So, if we have Activity A and a Service S is started from A, using the > startService() m

[android-developers] want to unsubscribe from this group

2010-08-02 Thread Somashekhar Dhanashree
Hi there Thank you for all the help, I want to unsubscribe from this group. -- Thanks & Regards Somashekhar V. Dhanashree +91-9535162978 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Re: How to create new page / form

2010-08-02 Thread titleist
The default page and the first page is screen I see (main.xml). When I replaced the getApplicationContext(); with "this", it started working. Thanks again for your help. Regards, Tadej On 3 avg., 07:53, titleist wrote: > Thank you for your help, > > Regards > > On 3 avg., 05:21, Ed wrote: > >

Re: [android-developers] Re: LVL - A Massive Concern

2010-08-02 Thread Mark Carter
Ah yes, you are right. When installing the APK manually (using the Package Manager - or whatever its called) you have to touch "Show all" and then you can see it as a sub-description of "Network communication". Is it as difficult to see when installing from the Market app? Thanks for the heads-up

[android-developers] Re: How to store questions for quiz type application

2010-08-02 Thread Paul Turchenko
I would go with storing your questions in raw XML file (asset) and parsing it on the fly. This way, you can easily change it and (perhaps) later extend your aplication to communicate with web service that has questions. IMHO using database for this is a bit wasty. On Aug 3, 8:56 am, Sarwar Erfan

[android-developers] Re: AutoMMS code

2010-08-02 Thread Nikhil
Anyone, any idea? On Jul 27, 9:54 am, Nikhil wrote: > Hi all, > > I have been trying since last few days making an app which sends MMS > to a particular number and it takes the url of the image from the code > itself. although, i could enable these features but i do need to press > the "send" bu

[android-developers] Re: Capturing tap on screen

2010-08-02 Thread Sarwar Erfan
Hi, Have a look into this: http://developer.android.com/reference/android/view/TouchDelegate.html Regards Sarwar Erfan On Aug 3, 1:04 am, Ray Thomson wrote: > Hi Guys, > > I am looking for a way in which I can detect any tap on the screen (not just > in my app), I don't mind not having the info

[android-developers] Re: LVL - A Massive Concern

2010-08-02 Thread metal mikey
You will find what you are missing is mentioned under NETWORK ACCESS. On Aug 3, 5:49 am, Mark Carter wrote: > When I install an app (with that permission) I don't see the CHECK_LICENSE > permission mentioned. The other permissions are mentioned but not that one. > This is on N1 Froyo. > > Am I mi

[android-developers] Re: How can get the latest version of google apks (market ,gmail ,yotube)

2010-08-02 Thread Kumar Bibek
You cannot. These are not open sourced apps. Sorry -Kumar Bibek http://tech-droid.blogspot.com On Aug 3, 11:09 am, GPU wrote: > Hi , > > How can i get the latest version of google apks ? .Is their any git > repository for this apk's .I am not able to find these apk's in the > android.git & QCT g

[android-developers] Re: Launching Calendar in AgendaView

2010-08-02 Thread Bob Kerns
On Aug 2, 1:18 pm, Mark Murphy wrote: > On Mon, Aug 2, 2010 at 3:21 PM, Bob Kerns wrote: > > Unpublished, undocumented, unsupported intents are part of the sin. > > The more you nail down an API, the more expensive innovation becomes, > because the legacy API becomes an albatross over time

[android-developers] Is Head First Android Book exists?

2010-08-02 Thread Sohan badaya
Hi All, I am a big fan of Head First Series. so is there any Head First Android Book exists? If not please let me know any similar kind of book for a begineer. Thanks, Sohan Badaya -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] How can get the latest version of google apks (market ,gmail ,yotube)

2010-08-02 Thread GPU
Hi , How can i get the latest version of google apks ? .Is their any git repository for this apk's .I am not able to find these apk's in the android.git & QCT git . Thanks Gopu -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

Re: [android-developers] Programming a target in an Android Application

2010-08-02 Thread Frank Weiss
Should we assume you know how to hit test for a circle and you want to know if the SDK can do it for you instead? On Aug 2, 2010 6:33 PM, "kingh32" wrote: Hello I'm currently trying to program a target as part of an Android Application. I want the user to be able to touch a particular band with

[android-developers] Re: How to store questions for quiz type application

2010-08-02 Thread Sarwar Erfan
Hi, Put your all questions in SQLiteDatabase. Then, load the necessary ones when required in the application. Storing and loading from file will not be very useful. Database will help you organize the questions better and also to retrieve the required ones smartly. Regards Sarwar Erfan On Aug

Re: [android-developers] Is it possible to get sensor data at regular intervals?

2010-08-02 Thread Frank Weiss
Closest I got for a digital filter was to ask for a notification rate somewhat higher than the desired sample rate an downsample the value sequence. On Aug 2, 2010 6:33 PM, "Tope" wrote: Hello everyone, Just joined the Android group. I'm having problems with the acceleration and orientation sens

[android-developers] Re: How to create new page / form

2010-08-02 Thread titleist
Thank you for your help, Regards On 3 avg., 05:21, Ed wrote: > I think we're possibly overlooking the simplicity of the question (I > may be wrong). > > My assumption is that the "page" you are referring to is the first > screen you see (main.xml). > > In your code at the moment you have a Clas

Re: [android-developers] How to store questions for quiz type application

2010-08-02 Thread Frank Weiss
I don't see how your problem is any different on Android than it would be for any program in any language on any device. Pick a data structure. Don't optimize it (yet). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] RSS feed by HttpURLConnection - html issue

2010-08-02 Thread Frank Weiss
Please understand what the DOM is. There you have two text nodes sandwiching a BR element. Either the feed should use CDATA to wrap the marked up text or you need to decide how you are going to reconstruct PCDATA, that is, turn the sandwiched BR element into text. -- You received this message bec

[android-developers] How to target and block a new text messages based on the senders' number?

2010-08-02 Thread Leonardo
Thank you, man. Well, I would try it again, please help me out. My question is, if you want to block a message based on the sender's number, probably you would code like this as I did, cursor = context.getContentResolver().query(, malicious_number, ...); Uri mUri = Uri.parse("content://sms/" +

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Frank Weiss
This thread is a little like schadenfreude to me. A lot of it is about taste - of which arguing about is of little use. I just saw some Java code where every closing brace is commented with "// end of if", "// end of for", "// end of method", etc. Yech!. That, to me, is worth arguing about! If the

Re: [android-developers] Many app share one Class?

2010-08-02 Thread 汪健飞
I mean don't find MessageVo in the testTwoApp,because testTwoApp and MessageVo don't together project. 2010/8/3 Floaters > I think it's easy, maybe you can refre this document: > http://developer.android.com/guide/topics/intents/intents-filters.html > > 2010/8/3 汪健飞 > >> I want many app share

[android-developers] Re: Webview not fit to screen

2010-08-02 Thread Ken
Tried that - didn't work. I thought the default behavior of WebView is fit to screen (width), no? Thanks. On Aug 2, 4:53 pm, Doug wrote: > You might want to have height and width of the WebView itself fill the > parent, and don't bother using a LinearLayout if it contains just one > child view.

Re: [android-developers] Many app share one Class?

2010-08-02 Thread Floaters
I think it's easy, maybe you can refre this document: http://developer.android.com/guide/topics/intents/intents-filters.html 2010/8/3 汪健飞 > I want many app share one class,for example,I have MessageVo,I want testApp > and testTwoApp share MessageVo.but I don't know TestTwoApp use MessageVo. > >

[android-developers] Re: Tab Content Overlaps Problem

2010-08-02 Thread Sasikumar.S
Thanks for your reply raju. For my app i need a separate activity for each tab. B'coz for some tab i need to show my previous position itself. ( without using flag ) For some other tabs i need to call onCreate() each time when we click particular tab. ( using flag ) On Aug 2, 7:18 pm, raju bhusa

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-02 Thread Sasikumar.S
@Thierry Till Now I didn't got any solution for this. On Aug 3, 3:05 am, Thierry Legras wrote: > Hi Sasikumar, > > Could you find a solution to this problem? > I have been reported same issue on HTC Desire 2.2 new update and also > on some custom ROM. > The format i use is this one: > >     final

[android-developers] Re: How to test OpenGL?

2010-08-02 Thread SChaser
Source code is below. Robert Green provides some helpful information, for which I am thankful. However, I am not clear on two of the points. I currently have the situation where no lines at all show on the emulator (the background color does) and things work perfectly on the G1. On Aug 2, 11:2

RE: [android-developers] RSS feed by HttpURLConnection - html issue

2010-08-02 Thread Tommy
you could read the file into a string, then do a replace on it to remove the HTML characters then save that file temporarily as an XML file, parse it, delete it -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Obason Sen

[android-developers] Re: Missing network functionality?

2010-08-02 Thread Bob Kerns
I've often wondered whether there were some reasons behind this, like pressure from some carriers. On the other hand, the iPhone allows this. I wish it were smart enough to figure out which network actually connects to the Internet, though. I just spent some time in the hospital, where the Cisco r

[android-developers] Re: Sending a String over Bluetooth

2010-08-02 Thread perumal316
Hi, In android I used UUID from java.util and in j2SE I used UUID from javax.bluetooth. But in android when I remove the '-' and run the application it will show "The application has stopped unexceptedly" but I have solved the issue by using: static String uuid = "1101100080805f9b34fb"

[android-developers] Re: How to create new page / form

2010-08-02 Thread Ed
I think we're possibly overlooking the simplicity of the question (I may be wrong). My assumption is that the "page" you are referring to is the first screen you see (main.xml). In your code at the moment you have a Class that extends Activity. In this class you will have a method called onCreate

[android-developers] Re: LVL - A Massive Concern

2010-08-02 Thread Howard M. Harte
One thing I am considering is to check if Market is installed, and that the user is located in a country with access to paid apps before doing an LVL check. Just to bypass LVL and revert to the old behavior in case they dont have Market. My app has 5 users according to analytics, and 6500 acco

[android-developers] Re: onCreate, onStop..... super.onCreate, super.onStop... called before code or after?

2010-08-02 Thread Moto
Thanks for the replies guys! Well Satya you have a point to call super before any code at onCreate()... but MB also has a point :) when calling onDestroy... onStop calling super at the end... I guess since it's not really enforced I'm not sure it really matters? I tried both ways and it work

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
I don't normally do this but +1 On Aug 2, 12:46 pm, DanH wrote: > "Preprocessing for j2me is supported by SUN via NetBeans.  It's pretty > clear that SUN fully backs preprocessing for j2me if you look at all > the > support provided." > > If it were really "supported" and "fully backed" by S

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
Note that you don't need a preprocessor to do this! Just a bit of language support. On Aug 2, 8:01 pm, Bob Kerns wrote: > Yes, I've seen a few cases like this. There are ways to cache the > runtime call, which can be a bit expensive, but they rely a bit much > on convention and are a bit more ver

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
Yes, I've seen a few cases like this. There are ways to cache the runtime call, which can be a bit expensive, but they rely a bit much on convention and are a bit more verbose than you'd like. On Aug 2, 7:02 pm, DanH wrote: > Lots of times it would be nice for logging.  Sometimes you'd like to >

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
OT, but I'll bite. What do you consider a really good GC setup? Sun's GC is good enough that I would hesitate to make blanket statements that it is better than X or worse than X. (Though I will say that the newer Sun GC implementations are clearly better than the older ones). There are a lot of d

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
I claim this is a good thing. You compile it once, you know it will compile and run everywhere. Introspection and/or moving code to platform-specific subclasses (and often into platform-specific jars compiled only on that platform) handle the "undefined symbols" problem quite nicely. They also pro

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Bob Kerns
First of all -- if you want to list the faults of the C language, the preprocessor is very near the top. That's why C++ went to great lengths to mostly remove the need for using it, with inline functions, constants, and the like. It's too bad they didn't remove it. It causes all kinds of difficul

[android-developers] Many app share one Class?

2010-08-02 Thread 汪健飞
I want many app share one class,for example,I have MessageVo,I want testApp and testTwoApp share MessageVo.but I don't know TestTwoApp use MessageVo. -- Cary -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread DanH
Lots of times it would be nice for logging. Sometimes you'd like to store an "I was here" indicator in a structure when you modify it. Yes, there are alternatives, but not as nice. On Aug 2, 7:53 pm, Dianne Hackborn wrote: > On Mon, Aug 2, 2010 at 2:16 PM, RichardC > wrote: > > > Yes I have the

[android-developers] Re: Multiple concurrent versions of same app, filtered by minSdkVersion?

2010-08-02 Thread Brian Rak
Cool, thanks for the detailed reply. I guess I'll just have to make do with what I have for now. But if there are any Android OS developers reading, this would be a really great feature to include in the future! Brian On Aug 1, 12:38 pm, "{ Devdroid }" wrote: > On 1 August 2010 19:25, Brian Rak

[android-developers] Re: Question about GPS permissions

2010-08-02 Thread greg
I have an interest in this and will hopefully also be writing some simple GPS applications this summer. Concerning the exception, does including android.permission.INTERNET with android.permission.ACCESS_COURSE_LOCATION help? Concerning the interaction of fine and coarse location listeners, a Goo

Re: [android-developers] I want Activity,Service to communicate with Intent.

2010-08-02 Thread 汪健飞
I run success.Thanks! 2010/8/2 Kostya Vasilyev > Do you give it enough time? I mean, let it run, don't leave it stopped in > the debugger once you've hit onCreate(). > > It's not supposed to be called from super.onCreate(). > > Also check your declarations: > > public class BlahService extends

[android-developers] How to store questions for quiz type application

2010-08-02 Thread amos
Hello, I want to create such application that would show a question to user and possible 3 (or n) answers and user should pick correct answer (some kind of learning quiz). I'm not sure about the storage for those data - questions and possible answers. What would be most natural way for Android. I k

[android-developers] Motoblur Gallery Share Intent

2010-08-02 Thread acabler
Hello, I created an app that adds an item to the "Share" menu in the Android Gallery using an Intent filter. This seems to be broken on Motorola Phones using Blur. I need to find the correct filter for the Blur gallery. Does anyone know how to get this information? thanks, adam -- You recei

[android-developers] how do I simply increase the internal storage on an emulator?

2010-08-02 Thread mhart
I am running Ubuntu 10.04 and I am trying to port an iphone app, I keep getting INSTALL_FAILED_INSUFFICIENT_STORAGE and if I try to install on the SD card I get a CONTAINER error, or it just stalls at "installing for hours. Thanks! -- You received this message because you are subscribed to the Go

[android-developers] Re: nested layouts

2010-08-02 Thread David
I would suggest using the gravity attribute. If the layout fills the parent, then you should be able to use the gravity "bottom" I think. I would change to a LinearLayout for the top level element and make sure it fills the parent. Also, you can accomplish the spacing you need by using padding/marg

[android-developers] Re: nested layouts

2010-08-02 Thread David
I would use a LinearLayout as the base. You should be able to accomplish what you want by using the gravity attribute. Try setting it to "bottom" I think. Make sure that the layout that it is in is set to "fill parent". If you use the gravity (not Layout gravity), and a linear layout, you have to h

[android-developers] Programming a target in an Android Application

2010-08-02 Thread kingh32
Hello I'm currently trying to program a target as part of an Android Application. I want the user to be able to touch a particular band within the target with the app being able to acknowledge the area selected i.e. coordinates and put that data into a database. Does anyone have any suggestions a

[android-developers] Can anything be published?

2010-08-02 Thread Stan W
1. Who screens through apps to check for copyright infringement? 2. Are there absolutely any reasons why an app would not be accepted for quality reasons? Example: an app that really does nothing. Just curious. -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Capturing tap on screen

2010-08-02 Thread Ray Thomson
Hi Guys, I am looking for a way in which I can detect any tap on the screen (not just in my app), I don't mind not having the information of what the tap was (control/letter), just the fact that a tap was made will suffice for me for now Is there any possible way to achieve this? Thanks, Ray

[android-developers] problems with Developing on a Device on newer ubuntu

2010-08-02 Thread treaki
hi, the developing on android devices is very easy. you plug on your device on the computer, start the sdk and its work. i wish many more devices with easy ways like this:) but since i upgradet from ubuntu hardy to Jaunty (9.04) its don't work any more. i speak over http://developer.android.com/g

[android-developers] Re: Interaction between an Activity and a Service ?

2010-08-02 Thread David
My suggestion (the one I have used) is to persist the data using either shared preferences or something of that nature. Then have your service read that data during oncreate. You could also have a way to pump a message to the service to reload the data once it is running or if you want to force it

[android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-08-02 Thread rolle
Well, the good news are that only Google customers are out of options, as Moto and HTC have added the feature in question by now (common sense miraculously at work). However this little episode makes me wonder about some search engine's employees' attitude towards security. I for one would have go

[android-developers] Specs for graphics

2010-08-02 Thread Stan W
1. What size should graphics intended to promote your app in the Market be designed for? 2. What about the larger graphics that depict screenshots of the app in the Market? 2. What size should app icons for devices be? Thanks! -- You received this message because you are subscribed to the Google

[android-developers] Controlling Camera Settings

2010-08-02 Thread rh4games
Hi, My app needs to control the camera settings to make over & under- exposed pictures, amongst other special effects. Is there a way (and how?) to control the camera's shutter speed, aperture, pseudo-ISO, ..., etc. My device is the HTC EVO 4G, so the question applies both to the front a back fa

[android-developers] Is it possible to get sensor data at regular intervals?

2010-08-02 Thread Tope
Hello everyone, Just joined the Android group. I'm having problems with the acceleration and orientation sensors.I would like to obtain sensor data (acceleration and orientation values) at regular intervals (10 milliseconds). However, the SensorEventListener doesn't allow you to do that. Does anyon

Re: [android-developers] I want Activity,Service to communicate with Intent.

2010-08-02 Thread 汪健飞
I dont't stopped in the debugger once you're hit OnCreate().but don't into OnStart().in the OnStart method add @Override,Program error, 2010/8/2 Kostya Vasilyev > Do you give it enough time? I mean, let it run, don't leave it stoppe

[android-developers] Re: creating a WebView in the top of a view

2010-08-02 Thread HeHe
i guess you need to capture BACK key events and hide WebView accordingly. On Aug 2, 1:56 pm, guich wrote: > Hi, > > I'm trying to do a fairly simple thing but i'm failing since 3 hours. > > I have a WebView that i show with some pictures and html stored in > local sdcard. After the user clicks a

Re: [android-developers] Re: Missing network functionality?

2010-08-02 Thread Mark Murphy
Your analysis seems the same as mine -- while it is clearly technically possible, the API does not appear to support it. On Mon, Aug 2, 2010 at 8:54 PM, RickB wrote: > Echo...echo...echo... > > On Jul 31, 4:30 pm, RickB wrote: >> Can any version of Android supportsimultaneousconnections on both

[android-developers] Re: Missing network functionality?

2010-08-02 Thread RickB
Echo...echo...echo... On Jul 31, 4:30 pm, RickB wrote: > Can any version of Android supportsimultaneousconnections on both a > mobile network (e.g.3G) and aWiFinetwork?  Here's the requirement: > > I want to connect to a localWifinetwork of sensors/devices that is > not connected to the Internet,

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread Dianne Hackborn
On Mon, Aug 2, 2010 at 2:16 PM, RichardC wrote: > Yes I have the code to get them but it's a runtime call > So what? What are you trying to do with the line number where the overhead of a runtime call is significant? Honestly, I spent years programming in C++, and this is not a feature I h

Re: [android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-08-02 Thread Dianne Hackborn
On Mon, Aug 2, 2010 at 5:44 PM, tomei.ninge...@gmail.com < tomei.ninge...@gmail.com> wrote: > I could wait a little time after going in BG, and then clear cache. > But what if the app gets killed before my timer expires? > The alarm manager would allow you to wake up. > I can't clear cache imme

[android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-08-02 Thread tomei.ninge...@gmail.com
> As far as a cache -- you shouldn't count on your process being evicted to > clear a cache.  This has problems the other way -- there is no guarantee > your app will be killed *ever* while in the background, since it may never > clear its cache.  You should use other policies for this.  For exampl

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread DanH
What RichardC said. On Aug 2, 3:44 pm, dm1973 wrote: > Getting the file name, line number, class and method are all available > in Java today. There is no need for a preprocessor to get them. I > haven't checked if they work on android but I imagine they would since > all the other stack trace me

[android-developers] Re: Problem in SimpleDateFormat MMM return month number

2010-08-02 Thread DanH
I would be suspicious that the application is not finding its locale information, and is therefore defaulting to non-textual data. On Aug 2, 5:05 pm, Thierry Legras wrote: > Hi Sasikumar, > > Could you find a solution to this problem? > I have been reported same issue on HTC Desire 2.2 new update

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-02 Thread Zsolt Vasvari
I can confirm that. If you are a resident of country where you can sell your apps from, meaning you have an address and a bank account, you can still sell apps. It's not like Google is checking your IP address when you are uploading your app. On Aug 2, 4:10 pm, Mark Carter wrote: > AFAIK, wheth

Re: [android-developers] Re: Resource Directory Qualifier Limitation?

2010-08-02 Thread Mark Murphy
I will try to take a peek at this tomorrow evening. On Mon, Aug 2, 2010 at 7:14 PM, Greg wrote: > Mark, thanks for getting back to me.  I zipped up my sample project > that has a surfaceview and a thread (based off of the lunar lander > example) just because it is a very similar format to my appl

[android-developers] Re: Resource Directory Qualifier Limitation?

2010-08-02 Thread Greg
Mark, thanks for getting back to me. I zipped up my sample project that has a surfaceview and a thread (based off of the lunar lander example) just because it is a very similar format to my application. I uploaded it here: http://www.megaupload.com/?d=VKBXZU9C The only thing it does is draw a ba

Re: [android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-08-02 Thread Dianne Hackborn
Correct, onDestroy() is not called when it is killed. This is the same as activity -- the kernel kills processes when needed, not waiting for the app. The status bar is correctly keeping the icon. The service will later be restarted; it has not been stopped. It is normal for background services

Re: [android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-08-02 Thread Dianne Hackborn
Everything in the system that handles RESTARTED is to clear its state when the app is force stopped. It is all correct. Task managers can no longer force stop. Again, task managers can no longer do anything more than the low memory killer does. There is not a problem here that apps haven't alre

Re: [android-developers] Problem in SimpleDateFormat MMM return month number

2010-08-02 Thread Thierry Legras
Hi Sasikumar, Could you find a solution to this problem? I have been reported same issue on HTC Desire 2.2 new update and also on some custom ROM. The format i use is this one: final static SimpleDateFormat sDisplayDayFormat = new SimpleDateFormat(" d M"); and later set it in a textv

Re: [android-developers] Looking for a design tip/advice/doc

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 5:20 PM, TreKing wrote: >> I have read from many sources that findViewById() is a "costly" operation. > > What sources? Actually, it's described in several places as being costly, such as the books from some "commons guy". I suspect the source material for this was some rec

Re: [android-developers] Looking for a design tip/advice/doc

2010-08-02 Thread TreKing
On Mon, Aug 2, 2010 at 12:11 PM, Sebastián Treu wrote: > I have read from many sources that findViewById() is a "costly" operation. > What sources? Define "costly". Sounds like premature optimization. I haven't looked at the source, but I can't imaging findViewById() does much worse than a breadt

[android-developers] Re: .wav music and mediaScanner

2010-08-02 Thread Kevin
Sorry not .wav, I meant .wma On 2 Aug, 01:32, Kevin wrote: > Hi everyone. > Does the android mediaScanner not support .wav music files? > I have some .mp3 and some .wav in my sd > only the .mp3 files are shown in the default music player. > then I tried Uri musicUri = > MediaStore.Audio.Media.EXT

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread RichardC
Yes I have the code to get them but it's a runtime call On Aug 2, 9:44 pm, dm1973 wrote: > Getting the file name, line number, class and method are all available > in Java today. There is no need for a preprocessor to get them. I > haven't checked if they work on android but I imagine they w

Re: [android-developers] Issue with populating a ViewFlipper child View with a ListView

2010-08-02 Thread Victoria Busse
*But what could I do so that the Flipper displays the ListView correctly when the button is pressed because I am not even sure if my attempt was going into the right direction as I didn't know how to include the childView while setting up the listView at the same time. * * * *I also tried around a

Re: [android-developers] Incoming Ring Control

2010-08-02 Thread TreKing
On Mon, Aug 2, 2010 at 11:30 AM, ricky123 wrote: > I am working on a application ,where I want to assign a silent > ringtone to a particular contact for a duration of time period . > > Please provide me some suggestion I do not have any idea to implement it . > You're probably not going to get m

Re: [android-developers] creating a WebView in the top of a view

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 4:56 PM, guich wrote: > I'm trying to do a fairly simple thing but i'm failing since 3 hours. > > I have a WebView that i show with some pictures and html stored in > local sdcard. After the user clicks a button in my app, i want to show > the webview, and when he press the

[android-developers] Re: intent to play mp4 problems

2010-08-02 Thread Kyle
Here is my code that I'm currently using: final class MyWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.endsWith(".mp4")) { Intent intent = new Intent("an

[android-developers] creating a WebView in the top of a view

2010-08-02 Thread guich
Hi, I'm trying to do a fairly simple thing but i'm failing since 3 hours. I have a WebView that i show with some pictures and html stored in local sdcard. After the user clicks a button in my app, i want to show the webview, and when he press the back button, i want to return to the previous view

[android-developers] Re: Best practice for changing min SDK

2010-08-02 Thread Warren
Thanks. I found this post for others who are looking: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html Warren On Aug 2, 12:42 pm, TreKing wrote: > On Mon, Aug 2, 2010 at 12:23 PM, Warren wrote: > > I want to update the apps to take advantage of some of t

[android-developers] Re: Webview not fit to screen

2010-08-02 Thread Doug
You might want to have height and width of the WebView itself fill the parent, and don't bother using a LinearLayout if it contains just one child view. On Aug 2, 11:40 am, Ken wrote: > anyone? > > On Jul 30, 3:10 pm, Ken wrote: > > > Hi, > > > When I load a URL in my webview, the page always ap

Re: [android-developers] Issue with populating a ViewFlipper child View with a ListView

2010-08-02 Thread Mark Murphy
No, it means your variable lv is null. On Mon, Aug 2, 2010 at 4:43 PM, Victoria Busse wrote: > The Logcat says that there is a 08-02 22:33:45.704: > ERROR/AndroidRuntime(6918): java.lang.NullPointerException >                                               08-02 22:33:45.704: > ERROR/AndroidRuntim

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-02 Thread dm1973
Getting the file name, line number, class and method are all available in Java today. There is no need for a preprocessor to get them. I haven't checked if they work on android but I imagine they would since all the other stack trace methods do. On Aug 2, 3:57 pm, DanH wrote: > " using __FILE__

Re: [android-developers] Issue with populating a ViewFlipper child View with a ListView

2010-08-02 Thread Victoria Busse
The Logcat says that there is a 08-02 22:33:45.704: ERROR/AndroidRuntime(6918): java.lang.NullPointerException 08-02 22:33:45.704: ERROR/AndroidRuntime(6918): at com.mobilevideoeditor.moved.EditorView.onClick(EditorView.java:82), which is lv.setAdap

Re: [android-developers] Syntax error in C2DM Registering in Google example

2010-08-02 Thread Trevor Johns
Thanks for the heads up! I've just submitted a change to fix this. -- Trevor Johns Google Developer Programs, Android http://developer.android.com On Fri, Jul 30, 2010 at 8:21 AM, feras wrote: > Well, its not that big deal but i found a Syntax error in the code for > C2DM Registering from this

Re: [android-developers] Issue with populating a ViewFlipper child View with a ListView

2010-08-02 Thread Mark Murphy
If your error report is accurate, you are not setting lv to a value, and so it is null. On Mon, Aug 2, 2010 at 4:25 PM, kivy wrote: > Hi > > I am trying to populate a ViewFlipper with a ListView when a certain > button is clicked...but I only get a NullPointerException for > lv.setAdapter(new Arr

Re: [android-developers] connections problem ...

2010-08-02 Thread Frank Weiss
Have you enabled Allow USB Debugging on the device? -- 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+un

Re: [android-developers] Re: LVL, ServerManagedPolicy...

2010-08-02 Thread Trevor Johns
If you use a test response (in other words, you're using a developer/test account and have the Market publisher console set to something other than "Respond Normally" for licensing requests), the server doesn't send any response "extras". This means that your local cache will expire after 1 minute

[android-developers] Issue with populating a ViewFlipper child View with a ListView

2010-08-02 Thread kivy
Hi I am trying to populate a ViewFlipper with a ListView when a certain button is clicked...but I only get a NullPointerException for lv.setAdapter(new ArrayAdapter(this, R.layout.specialeffectsview, specialEffects)); To be honest I don't really know how to do this, I just learned about the ViewF

Re: [android-developers] LVL, ServerManagedPolicy...

2010-08-02 Thread Trevor Johns
The lifetime of the cache used by ServerManagedPolicy is controlled by the server (as the name suggests), and has three variables: VT License validity timestamp. Specifies the date/time at which the current (cached) license response expires and must be rechecked on the licensing server. GT Grace

Re: [android-developers] Re: Launching Calendar in AgendaView

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 3:21 PM, Bob Kerns wrote: > Unpublished, undocumented, unsupported intents are part of the sin. The more you nail down an API, the more expensive innovation becomes, because the legacy API becomes an albatross over time. It's one of the reasons why APIs are slow to be promo

Re: [android-developers] Re: LVL Sample application problems

2010-08-02 Thread Trevor Johns
The LVL sample app should be able to be built. We've tested it under Eclipse, IntelliJ, and Ant. That being said, you'll need to change the package name for it to get it working properly, since you need to upload it to Android Market (in draft mode), and you can't upload an application in the com.

[android-developers] Re: LVL returns always LICENSED...

2010-08-02 Thread devesh
This behavior is correct. Setting the test response won't change the response for external users. The test response is for testing how your application handles the response, not for changing the response your users get. -- Devesh On Aug 1, 6:22 am, sblantipodi wrote: > I'm sure that the problem

Re: [android-developers] Re: LVL handler on a dead thread

2010-08-02 Thread Trevor Johns
It was the weekend, I've got to step away from the computer sometime. ;) It is indeed a harmless error. We shut down the handler thread when onDestroy() is called, and Handler can detect when a thread is dead (as you just experienced). However, as you also noted, we should indeed be swallowing th

  1   2   3   >