[android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread FrankG
Hello Frank, one reason for this kind of question could be, that his service get an hardware event and would like to start i.e. a dialog. But his service is not allowed to hide another Activity. Such a scenario I could imagine. Best regards. Frank On 23 Aug., 06:38, Frank Weiss wrote: > I'm c

Re: [android-developers] Thin white line runs through the in disabled state.

2010-08-22 Thread Romain Guy
You are trying to use the button with a height that's smaller than the minimum's button height. That's why you should use wrap_content :) On Sun, Aug 22, 2010 at 11:49 PM, dvs wrote: > I am using a widget in one of my layout. I created this > button in disabled state. A thin white line runs thro

[android-developers] Thin white line runs through the in disabled state.

2010-08-22 Thread dvs
I am using a widget in one of my layout. I created this button in disabled state. A thin white line runs through the button, at center horizontal, while it is in disabled state. And in enabled state it is normal like any other widgets. Below is the layout code: --

[android-developers] Re: Intent not opening correct ativity

2010-08-22 Thread pablisco
Hi, Can we assume that thenNnowMode is an extension of Activity? Also, I can see you pit the string "addPic" into the bundle. I hope you are not trying to start the activity in this manner. To open an activity, say called AddPic (which must be an activity class) and simply call: startActivity(new

[android-developers] Anyone has built SDK in cygwin successfully?

2010-08-22 Thread lee dallas
Hi, I've been trying to build SDK in cygwin from Android 2.2-r1.1 source code, and now I am facing some problems as below: 1. The adb couldn't be built successfully, it seems it couldn't find the header files in /usr/include/w32api/ddk 2. The fastboot also couln't be built 3. After disable adb an

[android-developers] Re: android 2.1 issue

2010-08-22 Thread pablisco
What's the exception? On Aug 23, 12:30 am, AUandroid wrote: > Hi All, > > I have a app that runs properly on andorid 1.6 and on my test G1 > phone. It is force closing on the new Android 2.1 phones.I am parsing > XML( from internet) and displaying in a listview.   Is the > openstream() method no

[android-developers] Re: opnegl es 2.0 on the Froyo is working now?

2010-08-22 Thread Nightwolf
AFAIK emulator comes with software rasterization that doesn't support 2.0. You should use real device for that. On Aug 23, 6:07 am, choi wrote: > It tested on the Emulator. not a device. > > On 8월23일, 오전11시01분, choi wrote: > > > > > Hello, > > > I am testing the opengl es 2.0 on the Froyo(SDK2.2

[android-developers] Re: Strange ActivityNotFoundException

2010-08-22 Thread Rahul Garg
This is not the correct way to declare in Manifest file it should be like http://schemas.android.com/apk/res/android"; package="com.example.AutoCompleteDemo" android:versionCode="1" android:versionName="1.0">

[android-developers] Re: Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..

2010-08-22 Thread sunrises
waiting for suggestion... On Aug 20, 10:26 am, sunrises wrote: > Hi,thanks for your suggestions > I have a lot of images to show as slide show,I did it using thread > concepts in which a slide show thread continuously updates the UI for > every 10 seconds(time interval between images) using handl

[android-developers] Market app version question

2010-08-22 Thread Alex Xin
Hi, Are there any ways I could use to get the installed app's latest version from Market? Just like some version tracking app. Thanks & BRs, Alex -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

Re: [android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread Frank Weiss
I'm curious what the OP was trying to accomplish. It seems to me that even if the informastion were available, it could be out of date in a very short matter of time. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread Pent
> Note that these methods are very much not intended for doing anything except > presenting UI to the user about what is running.  Do not rely on them to > drive logic in your app.  You will ultimately be unhappy. That paragraph should go in the docs IMO, save people finding out the hard way. Pen

[android-developers] Re: Android and Proguard

2010-08-22 Thread Pent
> As an indication of where I stand on that -- I have yet to apply > Proguard to an Android project. I expect it would take me a couple of > days of fiddling and testing and build engineering and testing and > setting up the tracking of the data for deobfuscation, and more > testing etc. If it's yo

[android-developers] For a published application if I upgrade minSdk requirement to higher level what will happen?

2010-08-22 Thread scadaguru
Hi All, I have a published application now if I upgrade minSdk requirement to higher level what will happen? 1. Published application has minSdk set to 3 that is OS V1.5 2. Now if I increase it to 5 (OS v2.0) and republish (upload upgrade) people using older OS than 2.0 who already have installed m

Re: [android-developers] sending and receiving LinkedHashMap through Bundle

2010-08-22 Thread Frank Weiss
I hope you realize I'm not psychic and can't see your display, so you'll have to provide more info. In fact, if you can describe the problem in more detail, chances are you'd be able to diagnose it yourself :-) What runtime error and the source code at which the error is apparently being thrown?

RE: [android-developers] sending and receiving LinkedHashMap through Bundle

2010-08-22 Thread shakeel
Its an run time error -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Frank Weiss Sent: Monday, August 23, 2010 8:40 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] sending and receiving Lin

Re: [android-developers] sending and receiving LinkedHashMap through Bundle

2010-08-22 Thread Frank Weiss
You haven't been specific about what the problem is. Can you provide compiler warnings or runtime errors? -- 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 unsubscrib

Re: [android-developers] Re: How to get absolute time ?

2010-08-22 Thread Frank Weiss
I assume you are trying to get current UTC time for purposes of DRM, such as expring a trial license. From what I can tell on my Droid, there are two ways the system time is set, automatically and manually. I'm pretty sure manually can be used to defeat time-based DRM, as it has been on desktops fo

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
alright... Date.getTime() is not available... when I change time in setting of emulator, the getTime() is changed as much again. How can I get current UTC time independent of local time? On 8월23일, 오전11시26분, optimusgeek wrote: > Is the Date.getTime() available? It will return milliseconds based on

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
Is the Date.getTime() available? It will return milliseconds based on GMT(UTC) = public long getTime () Since: API Level 1 Returns this Date as a millisecond value. The value is the number of milliseconds since Jan

[android-developers] Greystripe experiences?

2010-08-22 Thread andfan22
Hi all Is anyone using Greystrip for ads within their apps? Care to share experiences? In particular: 1. Any hassles getting payments from them? 2. eCPM comparisons with other ad networks? Many thanks ... -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] sending and receiving LinkedHashMap through Bundle

2010-08-22 Thread shakeel
I am having problem with getting LinkedHashMap from a Bundle. Help to solve this issue. Sample code would be of great help. 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-de

[android-developers] Re: opnegl es 2.0 on the Froyo is working now?

2010-08-22 Thread choi
It tested on the Emulator. not a device. On 8월23일, 오전11시01분, choi wrote: > Hello, > > I am testing the opengl es 2.0 on the Froyo(SDK2.2) for the code thing > and make it as normal. > but it has been failed all the time. > > Always it says, "No configs match configSpec" what prablem is here? > is

[android-developers] opnegl es 2.0 on the Froyo is working now?

2010-08-22 Thread choi
Hello, I am testing the opengl es 2.0 on the Froyo(SDK2.2) for the code thing and make it as normal. but it has been failed all the time. Always it says, "No configs match configSpec" what prablem is here? isn't opengl es 2.0 working on the android sdk 2.2?? Please someone tell why... Regards -

[android-developers] Strange ActivityNotFoundException

2010-08-22 Thread Matt
The error I receive is, "android.content.ActivityNotFoundException: Unable to find explicit activity class {com.droidea.birthday/ EditBirthdayActivity}; have you declared this activity in your AndroidManifest.xml?" The error seems simple enough, but I don't see a problem with the way I have identi

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
In case of #4, the rest time for timer will be set. ex) new rest time = get current time - saved remind time; start timer for the rest time... On 8월23일, 오전9시17분, optimusgeek wrote: > Yes... the reboot is problem... so I think I need a current time and > remind time. > > 1. get current time -> thi

[android-developers] Re: No underline for texts candidates in html before committing

2010-08-22 Thread James Wang
We just found there is no such problem on 1.6. This bug was introduced since 2.0. -- 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

[android-developers] Button State does not toggle automatically!! Help!

2010-08-22 Thread Abhi
Guys, I am trying to get the button in my layout to have focus as I am programmatically changing its state. My application is a video player using VideoView. I am toggling the state of the button based on where my video is. So basically, I am doing videoview.getCurrentPosition() and if it is in a

[android-developers] Re: Adding a contact without a READ_CONTACTS permission

2010-08-22 Thread Indicator Veritatis
Giving the program permission to write what it cannot read sounds like a recipe for trouble. If anything, I would expect the finer granulation of permission to go exactly the other way, i.e. granting permission to read contacts w/o permission to write them. But we don't get that either. Not having

[android-developers] Re: How to get absolute time ?

2010-08-22 Thread optimusgeek
Yes... the reboot is problem... so I think I need a current time and remind time. 1. get current time -> this time should not be changed by user or location or anything else : absolute time?? 2. save remind time as a sharedreference. ( ex. remind time = current time + 30minutes) 3. start timer 4.

[android-developers] setBackgroundColor changes button shape

2010-08-22 Thread ecforu
I have a button on my app that I want to change the color of during different states of my application. However when I call btn.setBackgroundColor(Color.GREEN); the shape of the button changes. The rounded edges go away and I get a flat looking rectangle that is green. Is there a reason the sh

Re: [android-developers] Animation support different resolution rate?

2010-08-22 Thread CaryWang
I use % in animation xml in 320*280 ok.but 480*800.. 2010/8/23 Kostya Vasilyev > Cary, > > Redo your layouts using device-independent units (dp) instead of pixels if > you use them, and use % values in animation definitions (e.g. animate > "-100%" to "0%" or some such). > > -- Kostya > >

Re: [android-developers] Re: Adding a contact without a READ_CONTACTS permission

2010-08-22 Thread Dianne Hackborn
If we can't ensure that an application with WRITE_CONTACTS can't actually use that to extract contact information, it is lame to lie to the user that there is such a guarantee. As I said, my recommendation would be to use the add contact UI, which requires *no* permissions. On Sun, Aug 22, 2010 a

[android-developers] android 2.1 issue

2010-08-22 Thread AUandroid
Hi All, I have a app that runs properly on andorid 1.6 and on my test G1 phone. It is force closing on the new Android 2.1 phones.I am parsing XML( from internet) and displaying in a listview. Is the openstream() method no longer supported. If I debug the app in api level 7, xml is correctly par

[android-developers] Re: Weird behaviour on Nexus phone ?

2010-08-22 Thread RichardC
Post the LogCat please On Aug 22, 11:46 pm, tarek attia wrote: > Hi all, > > After developing my application and Installing it on nexus phone,and open it > after a while it causes the phone to be switched off ?? > > Is it possible for an application to cause that ??? however in this > application

[android-developers] Re: Android and Proguard

2010-08-22 Thread Bob Kerns
To integrate an Ant build step into your Eclipse project, go to the Builders section in the project properties, and add an Ant builder, tell it what targets and when to run them, etc. You get to tell it what changes trigger it, and what changes it produces. But I wouldn't recommend integrating Pro

[android-developers] Weird behaviour on Nexus phone ?

2010-08-22 Thread tarek attia
Hi all, After developing my application and Installing it on nexus phone,and open it after a while it causes the phone to be switched off ?? Is it possible for an application to cause that ??? however in this application I didn't involve any power management API's Regards, -- tarek -- You re

[android-developers] Intent not opening correct ativity

2010-08-22 Thread Pedro Teixeira
Hello, I'm having a struggle understanding why my intent is not working.. I basically just copied paste from other examples in my code that work perfectly like this.. here it is: Intent addIntent = new Intent(v.getContext(), thenNnowMode.class);

[android-developers] Re: connecting mysql database

2010-08-22 Thread Bob Kerns
Sometimes it is black and white. And sometimes, just a very dark gray against a very bright background. On the surface, at least, your Sync Server would appear to be a far superior approach. On Aug 22, 2:32 am, Tim wrote: > I think it is rather presumptuous of some commentators to suggest one >

Re: [android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread Mark Murphy
On Sun, Aug 22, 2010 at 5:44 PM, William Ferguson wrote: > Is the shipped SDK doing something to specifically hide fields and > methods like AdapterView#mOldItemCount and > AdapterView#setselectedPositionInt in 2.1 and 2.2? Well, the latter might have an @hide directive. You may need to copy mor

[android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread William Ferguson
No need to apologise. I appreciate the help, I really do. I guess I just wasn't clear enough in my original post. I'll try and do better next time. On Aug 23, 2:47 am, TreKing wrote: > On Sun, Aug 22, 2010 at 4:52 AM, William Ferguson > gmail.com> wrote: > > Thanks, though I wasn't confused abou

[android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread Chris Stratton
I had something sort of working once, but it kept doing things like reporting an ime as the foreground, rather than the activity it was accepting input on behalf of... which made it useless for my purpose. On Aug 22, 4:29 pm, Dianne Hackborn wrote: > Note that these methods are very much not inte

[android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread William Ferguson
I tried that, but AbsSpinner#setAdapter makes use of package private fields and methods of its super classes which I don't have access to. I even tried creating my subclass in the same package (android.widget) but to no avail. Is the shipped SDK doing something to specifically hide fields and meth

Re: [android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread Dianne Hackborn
Note that these methods are very much not intended for doing anything except presenting UI to the user about what is running. Do not rely on them to drive logic in your app. You will ultimately be unhappy. On Sat, Aug 21, 2010 at 11:35 PM, Pent wrote: > > Does anyone know how to, or if it's ev

Re: [android-developers] Re: How to check the Foreground Process from a Service

2010-08-22 Thread Kostya Vasilyev
The OP didn't specify whether he needs to track activities of other apps, or his own. If it's his own activities, it could be as simple as tracking state changes in activities' onStart/onStop or onResume/onPause. More reliable, too. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 23.08.2010

Re: [android-developers] Re: Best way to scale for different screen resolutions/dimensions?

2010-08-22 Thread Dianne Hackborn
Or just android:targetSdkVersion="4" or better. On Sun, Aug 22, 2010 at 10:59 AM, Kostya Vasilyev wrote: > Do you have this in your manifest? > > android:normalScreens="true" android:largeScreens="true" > android:anyDensity="true" /> > > Are you compiling against Android 1.6 (at least)? > > --

Re: [android-developers] Re: Must pass Context to other classes?

2010-08-22 Thread Dianne Hackborn
On Sun, Aug 22, 2010 at 10:41 AM, TreKing wrote: > On Sun, Aug 22, 2010 at 7:05 AM, Doug Gordon wrote: > >> I also miss the ability to simplify life (at least as far as writing the >> initial code is concerned) by being able to fall back on "global" variables >> that are visible everywhere. >> >

[android-developers] Want titles different on home icon versus activity

2010-08-22 Thread jotobjects
When the app starts up it shows the activity label property in the title bar. If you set a different title for the activity in onCreate that will show up later. You see the launcher activity title for a while and then the programmatic title replaces it, which is not very nice visually. The icon

[android-developers] Re: Toggle Button state programatically

2010-08-22 Thread Abhi
Any clue on this anyone? On Aug 20, 10:32 am, Abhi wrote: > Hi > > I am trying to toggle button state programatically. I want to go > between setEnabled(False) and setEnabled(True) for a given duration. I > have a timer and I want to toggle between these states at regular time > intervals. > > I

Re: [android-developers] Re: "Share" library

2010-08-22 Thread Dianne Hackborn
On Sun, Aug 22, 2010 at 8:57 AM, Moto wrote: > I use the share options available by Android devices. Most apps such > as facebook or other twitter apps support the share intent. You can > actually see the intent call on the logcat if you do a share on a > picture > >Intent s

[android-developers] Re: connecting mysql database

2010-08-22 Thread DanH
In other words, "eat cake". On Aug 21, 6:26 pm, Bob Kerns wrote: > Re: "This is a limitation/shortcoming/"feature" of Android." > > No, it's not. It's a characteristic of SQL database connections, vs > the characteristics of distributed clients. > > This is not new with Android -- well-written de

[android-developers] TabIndicator's tab_selected/tab_unselected drawables are white in v1.6 and grey in v2.x

2010-08-22 Thread jamesc
Hi >From the TabWidget example in the docs, this is what the tabs look like in v1.5/1.6: http://developer.android.com/resources/tutorials/views/images/hello-tabwidget.png As you can see, the TabIndicator is white, with the icon in grey. In v2.x the TabIndicator is no longer white, but grey. Th

[android-developers] Re: "Share" library

2010-08-22 Thread samspade79
Hmmm it never occured to me that I could just use that. On Aug 22, 4:57 pm, Moto wrote: > I use the share options available by Android devices.  Most apps such > as facebook or other twitter apps support the share intent.  You can > actually see the intent call on the logcat if you do a share on

Re: [android-developers] Re: connecting mysql database

2010-08-22 Thread Kostya Vasilyev
One more thing to consider: network latency. Requesting data over HTTP requires one round-trip for data, in addition to TCP session setup. The latter can be all but eliminated by using HTTP connection keep-alive. DB protocols can be more chatty, requiring more network round-trips to get the

Re: [android-developers] Animation support different resolution rate?

2010-08-22 Thread Kostya Vasilyev
Cary, Redo your layouts using device-independent units (dp) instead of pixels if you use them, and use % values in animation definitions (e.g. animate "-100%" to "0%" or some such). -- Kostya 22.08.2010 19:23, CaryWang пишет: I use Animation Translate in my application,my mobile phone resol

Re: [android-developers] Re: Best way to scale for different screen resolutions/dimensions?

2010-08-22 Thread Kostya Vasilyev
Do you have this in your manifest? Are you compiling against Android 1.6 (at least)? -- Kostya 22.08.2010 15:54, powerdroid пишет: The problem, and it may be that I'm misunderstanding how Android handles different screen sizes, is that when trying to incorporate the material found on the "S

Re: [android-developers] Re: Any Interview Question

2010-08-22 Thread Frank Weiss
I don't know why you think there's something Android-specific on the server side. Excepting, of course the market, LVL and perhaps C2DM. However most client-server communication between Android and a server, respectively, generally follow these three patterns: 1) document-centric, such as XML, RSS

Re: [android-developers] Re: Must pass Context to other classes?

2010-08-22 Thread TreKing
On Sun, Aug 22, 2010 at 7:05 AM, Doug Gordon wrote: > I also miss the ability to simplify life (at least as far as writing the > initial code is concerned) by being able to fall back on "global" variables > that are visible everywhere. > Well, you can, technically still use "global" variables in

[android-developers] Re: Any Interview Question

2010-08-22 Thread crajesh
Hi, I don't know what is there in the post which made u to think it's funny. But anyway i have experience in android application development. But i don't have experience in android server side. I also searched in google for interview questions related to android server side. But i couldn't get mu

Re: [android-developers] How to distribute expensive Android app

2010-08-22 Thread TreKing
On Sat, Aug 21, 2010 at 5:13 PM, RLScott wrote: > So the $300 price point is necessary. However I have heard that the > Google Android Market puts a limit of $200 on apps. > Also, for your $200 limit problem, here's an idea: distribute TWO $150 apps - one that's the primary app and another that

Re: [android-developers] Re: How to distribute expensive Android app

2010-08-22 Thread TreKing
On Sun, Aug 22, 2010 at 6:04 AM, RLScott wrote: > Sure. It is TuneLab Piano Tuner, and among my competition, which are > similar programs on the Pocket PC (Verituner and Reyburn CyberTuner), > mine is actually the cheapest. > Thanks. That's the cheapest? I think I'm working on the wrong type of

Re: [android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread TreKing
On Sun, Aug 22, 2010 at 4:52 AM, William Ferguson wrote: > Thanks, though I wasn't confused about which Listener I needed to set in > order to respond to a selection from a user. > Oh, well you posted you tried two different things that were throwing exceptions ... so that's the implication I go

[android-developers] Re: C2DM properly working on the emulator, anybody?

2010-08-22 Thread German
Answering my own question here. I solved it and in my case the problem was that my Google account on the phone wasn't set up to sync and do background data. You can enable that by going to Settings and editing you Google account info under Accounts. Now I have the ChromeToPhone app working fine on

[android-developers] Re: Adding a contact without a READ_CONTACTS permission

2010-08-22 Thread Pinheiro
> It is very hard to ensure that someone with write access can't also get data > back from the provider, so generally no. It's a bit lame, imho. According to Google, developers should use the least permissions possible. But how can we do that if we have to use READ_CONTACTS to write contacts? Per

[android-developers] Re: "Share" library

2010-08-22 Thread Moto
I use the share options available by Android devices. Most apps such as facebook or other twitter apps support the share intent. You can actually see the intent call on the logcat if you do a share on a picture Intent shareIntent = new Intent(android.content.Intent.ACTION_SE

Re: [android-developers] So can we use Directions API or not in Android?

2010-08-22 Thread Filip Havlicek
As far as I know, the 2500 requests per day is for all applications out there (be it desktop, mobile or whatever), so your application really can't rely on this directions API since it can be brought offline in less then an hour by all the applications using it. (And in my opinion that's why noone

[android-developers] Animation support different resolution rate?

2010-08-22 Thread CaryWang
I use Animation Translate in my application,my mobile phone resolution rate is 320*280,but In the 480*800 resolution rate don't support.I want ask I should how to do ? -- Cary -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Any Interview Question

2010-08-22 Thread Moto
I agree I generally don't like to see packed resumes with so much bs... :P In any case assuming you are proficient in Android they will probably ask: Q: Can you start an activity via a Broadcast Intent? A: try it out... Prbl many things in regards to Intents... how to use them... etc... That's o

[android-developers] Re: Running JUnit 4 Tests on Android Device

2010-08-22 Thread The.French.DJ
Just put the JUnit 4 jar before the Android jar in the classpath. This will hide the JUnit 3 classes. Note that you must not use any Android classes in your test! You will get "Stub!" exceptions if you do. If you need a few basic Android classes in your tests (like Intent and Bundle), add simple re

[android-developers] Re: "Share" library

2010-08-22 Thread samspade79
Hi Mark, What I mean is, rather than writing code that talks to Facebook, Twitter, etc, I wonder if anyone had already released this as a library I can use. I tried googling but "share xxx" brings up unrelated stuff. On Aug 22, 10:16 am, Mark Murphy wrote: > On Sun, Aug 22, 2010 at 5:10 AM, sams

[android-developers] Using Multiple Viewports in OpenGL|ES

2010-08-22 Thread souza
Hi, I'm trying to get two viewports setup on the screen of the Android Emulator (I have no real Android device as my University only gave me a tablet pc with Windows 7 for development). The FIRST VIEWPORT (orthographic projection) fills the emulators screen and displays a white, screen filling pol

[android-developers] Re: Calling the stop() function of MediaPlayer

2010-08-22 Thread Luca Carlon
Thank, I see... this can be useful. But I suppose this wouldn't solve this issue... As far as I can see, the problem is almost exclusively related to remote resources. Local resources seem to work as expected with the same code. The method setDataSource doesn't hang and no other unexpected behavior

[android-developers] Re: Must pass Context to other classes?

2010-08-22 Thread Zsolt Vasvari
> Yes. The more you find that you are doing this, the more you have > over-engineered your object model, IMHO. I don't know, I would actually argue the opposite. IMHO, any object that doesn't need a Context or one of its super or subclasses, is not really targeting the Android platform. The Andr

[android-developers] So can we use Directions API or not in Android?

2010-08-22 Thread davemac
I would love to be able to use the Directions API in my Android app, but I'm confused by the information in the Directions API documentation: http://code.google.com/apis/maps/documentation/directions/ so the short form of my question is: can Android apps use the Google Directions API? It clearly s

[android-developers] Re: Failed installs

2010-08-22 Thread Teo [GD API Guru]
Users are referring to the main icons, but the funny thing is i indeed renamed the main activity, thanks for the tip! I'll try naming it back and see what happens. On Aug 22, 3:17 pm, RichardC wrote: > Did you change the MAIN/LAUNCHER activity when you released the > update? > > If you did you wi

[android-developers] Re: installing sdk problems

2010-08-22 Thread elix
Problem solved. It was a local problem in my country, Turkey. dl- ssl.google.com is not reachable here. Adding this line 209.85.229.99 dl-ssl.google.com to host file under windows/system32/drivers/etc resolved problem. btw, "wrong size" errors were probably because of download limit of the proxie

[android-developers] how to upgrade android emulator to Android2.2 froyo.

2010-08-22 Thread lokesh gupta
Hi, As of now I am using Eclairs but wanna upgrade the same to froyo. Please let me know which Adt to use and how to do the same. -- Thanks & Regards Lokesh Gupta -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Failed installs

2010-08-22 Thread RichardC
Did you change the MAIN/LAUNCHER activity when you released the update? If you did you will invalidate any "shortcuts" the users have created. Only the Icon in the applications panel will work until the user re-creates their shortcuts. On Aug 22, 9:26 am, "Teo [GD API Guru]" wrote: > Hi, > > l

Re: [android-developers] Re: Must pass Context to other classes?

2010-08-22 Thread Mark Murphy
On Sun, Aug 22, 2010 at 8:05 AM, Doug Gordon wrote: > But learning to program in Java will eventually cure me of this > ailment. :-) That's OK. You'll come down with new and exciting ailments once you start getting into Java... :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://

Re: [android-developers] Re: Calling the stop() function of MediaPlayer

2010-08-22 Thread lokesh gupta
You can use Async class as welll wherein u have three methods, onPreexecution, doInbackgound and OnPostexecution. You can try out these .. Lokesh On Sun, Aug 22, 2010 at 12:02 PM, Luca Carlon wrote: > Thanks for the link! > I see in that code they do: > > mediaPlayer.stop(); > mediaPlayer.prep

[android-developers] Re: Must pass Context to other classes?

2010-08-22 Thread Doug Gordon
Yes, I'm admittedly weak on object-oriented design experience and still tend to treat classes more like "subroutine libraries" than true objects. I also miss the ability to simplify life (at least as far as writing the initial code is concerned) by being able to fall back on "global" variables that

[android-developers] Re: Calling the stop() function of MediaPlayer

2010-08-22 Thread Luca Carlon
Thanks for the link! I see in that code they do: mediaPlayer.stop(); mediaPlayer.prepare(); mediaPlayer.seekTo(0); This way it seems to stop correctly. Still unfortunately, I'm experiencing a strange behavior: after the stop, I let the user open another resource, with: mediaPlayer.reset(); media

Re: [android-developers] Calling the stop() function of MediaPlayer

2010-08-22 Thread lokesh gupta
can u try calling exit once it is stopped. Lokesh On Sun, Aug 22, 2010 at 11:17 AM, Mark Murphy wrote: > On Sun, Aug 22, 2010 at 7:09 AM, Luca Carlon > wrote: > > Hi! I don't know if I'm doing something wrong, but I see calling the > > stop function of MediaPlayer simply does nothing. The playb

[android-developers] Re: Best way to scale for different screen resolutions/dimensions?

2010-08-22 Thread powerdroid
The problem, and it may be that I'm misunderstanding how Android handles different screen sizes, is that when trying to incorporate the material found on the "Supporting Multiple Screens" developer doc, it appears to always display in compatibility mode. If one has a custom layout, or a SurfaceVie

Re: [android-developers] Calling the stop() function of MediaPlayer

2010-08-22 Thread Mark Murphy
On Sun, Aug 22, 2010 at 7:09 AM, Luca Carlon wrote: > Hi! I don't know if I'm doing something wrong, but I see calling the > stop function of MediaPlayer simply does nothing. The playback goes > on. I looked in the documentation and I found: > > "Stops playback after playback has been stopped or p

[android-developers] Calling the stop() function of MediaPlayer

2010-08-22 Thread Luca Carlon
Hi! I don't know if I'm doing something wrong, but I see calling the stop function of MediaPlayer simply does nothing. The playback goes on. I looked in the documentation and I found: "Stops playback after playback has been stopped or paused." So, I tried to pause() it before stopping, but the Me

[android-developers] Re: How to distribute expensive Android app

2010-08-22 Thread RLScott
On Aug 22, 12:34 am, TreKing wrote: > On Sat, Aug 21, 2010 at 5:13 PM, RLScott wrote: > > I have a $300 iPhone app that I might like to port to Android. > > Any chance of you naming this app? I'm really curious what kind of app > justifies $300. Sure. It is TuneLab Piano Tuner, and among my c

Re: [android-developers] Re: I don't know how to use Animation translate

2010-08-22 Thread CaryWang
I want suit different screen,I don't now how to do? 2010/8/22 Paul Turchenko > Set fillEnabled and fillAtfer properies of your aimation > > On Aug 21, 2:28 pm, CaryWang wrote: > > I use translate move image from top to bottom,but translate finish image > > jump to image initial position.I don'

Re: [android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread Mark Murphy
On Sun, Aug 22, 2010 at 5:52 AM, William Ferguson wrote: > It all hinges on the code in AbsSpinner#setAdapter > > if (mAdapter != null) { >  ... >  mItemCount = mAdapater.getCount(); >  int position = mItemCount > 0 ? 0 : INVALID_POSITION; > >  setSelectedPositionInt(position); >  setNextSelectedP

[android-developers] Re: vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread Jason
lol.. yep.. my coding skills strike again. Works as expected, when you're not an idiot. On Aug 22, 7:56 pm, Jason wrote: > Hmm.. ok.  I wonder if it's something crufty in my code.. sounds like > my call to vibrate may be looping somewhere. > > I'll assume I've done something wrong. > > Thanks f

[android-developers] Re: I don't know how to use Animation translate

2010-08-22 Thread Paul Turchenko
Set fillEnabled and fillAtfer properies of your aimation On Aug 21, 2:28 pm, CaryWang wrote: > I use translate move image from top to bottom,but translate finish image > jump to image initial position.I don't know why,I want move image from A to > B,finsih this image stay B. > > -- > Cary -- Yo

[android-developers] Re: vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread Jason
Hmm.. ok. I wonder if it's something crufty in my code.. sounds like my call to vibrate may be looping somewhere. I'll assume I've done something wrong. Thanks for the info. On Aug 22, 7:36 pm, YuviDroid wrote: > Hey, > > I just tried on my HTC Desire (with Android 2.2) and vibrate() works as

[android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread William Ferguson
Thanks, though I wasn't confused about which Listener I needed to set in order to respond to a selection from a user. Nor how to ignore the initial selection using a switch in that Listener (though that is something that is also annoying). I was hoping to use those Listeners to switch from a null A

Re: [android-developers] Re: connecting mysql database

2010-08-22 Thread Mark Murphy
On Sun, Aug 22, 2010 at 5:32 AM, Tim wrote: > A direct connection to a remote database is perfectly secure, usable > and technically possible particularly if the Android device is > connecting via a secure wi-fi network or a GPRS/3G network where the > SIM is part of a private APN.  Unlike J2ME fo

Re: [android-developers] vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread YuviDroid
Hey, I just tried on my HTC Desire (with Android 2.2) and vibrate() works as expected...(i.e. the parameter is milliseconds). On Sun, Aug 22, 2010 at 11:16 AM, Jason wrote: > Hi folks, > > I'm trying to get a simple vibration working and according to the api > docs (http://developer.android.co

[android-developers] Re: connecting mysql database

2010-08-22 Thread Tim
I think it is rather presumptuous of some commentators to suggest one approach is either right or wrong. The real world is never this black or white. A direct connection to a remote database is perfectly secure, usable and technically possible particularly if the Android device is connecting via

Re: [android-developers] "Share" library

2010-08-22 Thread Mark Murphy
On Sun, Aug 22, 2010 at 5:10 AM, samspade79 wrote: > Does anyone know of a library that will give me the "share" > functionality for pictures? Ie, how in many apps now you are given the > option of sharing a page or image with facebook, twitter, email, sms, > etc. I am not quite certain what you

[android-developers] vibrate() does not behave according to API docs (HTC Desire)

2010-08-22 Thread Jason
Hi folks, I'm trying to get a simple vibration working and according to the api docs (http://developer.android.com/reference/android/os/Vibrator.html) all I need to use is this: public void vibrate (long milliseconds) Turn the vibrator on. Parameters millisecondsHow long to vibrate for. Ho

[android-developers] "Share" library

2010-08-22 Thread samspade79
Does anyone know of a library that will give me the "share" functionality for pictures? Ie, how in many apps now you are given the option of sharing a page or image with facebook, twitter, email, sms, etc. -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Failed installs

2010-08-22 Thread Teo [GD API Guru]
Hi, lately i've been receiving reports of failed updates (e.g. myTouch 3G, HTC Incredible) for my app. After the 'failed' update, they're saying they're able to launch the app only from the Open button in the Market, but not from the app icon. Is this happening to other devs too? Anyone knows what

  1   2   >