[android-developers] Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Al Sutton
OK, I'm going to float an idea that I'd like some feedback on from developers and (hopefully) someone at Google (Justin, I'd appreciate any clarification you can give on this). My company (Funky Android) is a UK Registered company and I would be willing to allow it to act as a publisher for *s

[android-developers] Re: Margin-problem with changed layout for titlebar

2009-02-14 Thread $§Kalle§$
I uploaded a screenshot, which shows the problem, I have with the changed titlebar http://hphone.eu/Android/Titlebar.html KalLe On 11 Feb., 21:09, $§Kalle§$ <__kalle...@hphone.eu> wrote: > I am using the following Layout for thetitlebarwith a blue backround > color > >         android:id="@+id

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Mads Kristiansen
That's an interesting idea - I might sign up for something like that. In any case it will be very interesting first of all to see how well the paid apps will perform compared to a certain other Application Store. Another option for me personally would be to take a "field trip" to Germany and regist

[android-developers] Re: Setup Merchant Account link now available

2009-02-14 Thread Mariano Kamp
You wouldn't be on equal footing with us/uk developers. The category winners could already be picked when you are allowed to finally publish your app. On Sat, Feb 14, 2009 at 8:41 AM, Mads Kristiansen < mads.kristian...@nullwire.com> wrote: > I'd like to see someone create a solution like armadil

[android-developers] Re: Setup Merchant Account link now available

2009-02-14 Thread Mads Kristiansen
Yes, well hopefully I can create apps that are able to compete with the other really skillful developers out there. What happens is that I'll probably just give it away for free and make it my mission in life ruin it for somebody else trying to sell a similar app until I can charge myself. ;) .. We

[android-developers] SimpleCursorAdapter and ListView.setTextFilterEnabled()

2009-02-14 Thread Parakoos
I want to display all contacts with a phone number in a list. I got the data, it is displayed in the list but my problem is that I can't get the text filter functionality to work. E.g. when the user types 'fre' it should filter out all entries not containing 'fre'. This is what I've got in the Li

[android-developers] How to force MediaStore to rescan the SD card

2009-02-14 Thread info.sktechnol...@gmail.com
If I progammatically store new media files on the SD card, the MediaStore does not know about them until I remove and reinsert the SD card. Is there a way to tell the MediaStore to rescan the SD card without first unmounting the SD card? --~--~-~--~~~---~--~~ You r

[android-developers] Re: Getting location with multiple providers

2009-02-14 Thread Aaron Smith
Aha. I didn't know it was possible to register more than one provider at a time. I'll give that a go. Cheers. On Feb 13, 2009 5:47 PM, "Timo Bruck" wrote: I believe you have to register for multiple location providers (network, gps). In my code, I call requestLocationUpdates() on each provider,

[android-developers] Share component as APK file

2009-02-14 Thread kevin
I am working on couple android applications which share a common component. The component has Activities, Service and own AndroidManifest.xml. After research, it seems there is no concept of run time share library among applications in Android. So I am looking for a way to linked the share compone

[android-developers] Re: Share component as APK file

2009-02-14 Thread Mark Murphy
kevin wrote: > I am working on couple android applications which share a common > component. The component has Activities, Service and own > AndroidManifest.xml. After research, it seems there is no concept of > run time share library among applications in Android. So I am looking > for a way to l

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Mark Murphy
Al Sutton wrote: > OK, I'm going to float an idea that I'd like some feedback on from > developers and (hopefully) someone at Google (Justin, I'd appreciate any > clarification you can give on this). > > My company (Funky Android) is a UK Registered company and I would be > willing to allow it

[android-developers] Re: Has anyone succeeded in displaying non latin-1 characters in Webview after RC33?

2009-02-14 Thread kolby
Mark, thanks for the tip on the URI encoding of the data for loadData. It worked like a charm. Apparently, I'm not the only one with this problem though. API documentation would go along way. Michael --~--~-~--~~~---~--~~ You received this message because you ar

[android-developers] Re: [Split the Android screen into two parts and run 2 applications simultaneously on both screen]

2009-02-14 Thread सरोज
Hello Faber, One more thing you told that "you can combine App A and App B into App C and have each sub App write into their own view which would be contained in another view". How to do this .can you show some example/sample ? Thanking you. Regards, Saroj On Sat, Feb 14, 2009 at 6:33 PM,

[android-developers] Re: Problem in sending messages with special characters

2009-02-14 Thread for android
any help? On Fri, Feb 13, 2009 at 4:00 PM, for android wrote: > I donot have a device.I am testing on the emulator. > > When i send a message(problematically and through the device) with special > characters i am not able to view them properly. > > For eg: when i send a message from one emulato

[android-developers] Re: [Split the Android screen into two parts and run 2 applications simultaneously on both screen]

2009-02-14 Thread सरोज
Hello Faber, Here App A and App B are system apps like contacts, dialer, browser, etc. I want to run these two apps simultaneously in two separate part/view of the android screen. Regards, Saroj K Pradhan On Sat, Feb 14, 2009 at 1:12 AM, Faber Fedor wrote: > Are App A and App B your own apps (

[android-developers] Re: [Split the Android screen into two parts and run 2 applications simultaneously on both screen]

2009-02-14 Thread Mark Murphy
Saroj (सरोज) wrote: > Here App A and App B are system apps like contacts, dialer, browser, etc. > I want to run these two apps simultaneously in two separate part/view of > the android screen. I do not believe that is possible, especially if they are not your applications (e.g., dialer, browser).

[android-developers] Re: [Split the Android screen into two parts and run 2 applications simultaneously on both screen]

2009-02-14 Thread सरोज
Hello Faber, I want to implement these idea in the android framework.The android screen is divided into two parts called dual screen. The android framework would manage the 2 system application and run first application on first part of screen and run second application on second part of screen of

[android-developers] Re: Has anyone succeeded in displaying non latin-1 characters in Webview after RC33?

2009-02-14 Thread Fred Grott(shareme)
Kolby, Someone just updated javadocs for webview and etc in source..its in code review.. I found a lot of more answers ot webview question i had..hold on link is http://review.source.android.com/Gerrit#patch,sidebyside,8267,1,core/java/android/webkit/WebView.java On Feb 14, 7:55 am, kolby wrot

[android-developers] Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Hansen
Is there some method in which i can identify a phone, a serial number or something similar that's accessible by code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Sunil . Maharana
Hi Hans, Thanks for your help Hans, i have created two projects same as your project name and added your files, the TestService project is fine, but for  ServiceMonitor project it is giving error at the import statement only.It is not allowing to import the TestService as  "The import 'com.android

[android-developers] Unable to start service Intent error in Client-Server project

2009-02-14 Thread Android
Hi Hans, Thanks for your help Hans, i have created two projects same as your project name and added your files, the TestService project is fine, but for ServiceMonitor project it is giving error at the import statement only. It is not allowing to import the TestService as "The import 'com.and

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Murphy
Mark Hansen wrote: > Is there some method in which i can identify a phone, a serial number > or something similar that's accessible by code? That depends on how you define "identify" and "phone". ;-) You can get at the IMEI number via android.telephony.TelephonyManager's getDeviceId() method...b

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread sm1
There are a few such serial numbers in a G1. For example, using the TelephonyManager you can obtain the SIM Serial Number and also the Device ID. Application {Device Internals for r1} will show you these, as well as other data. --~--~-~--~~~---~--~~ You received th

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Hansen
Basically I'm reporting a score via a webservice, instead of having a login password I was just wanting to use a unqiue phone id to track the user. Is ANDRIOD_ID just an accesible global type variable? Thanks for the help. Mark On Feb 14, 10:50 am, Mark Murphy wrote: > Mark Hansen wrote: > >

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Murphy
Mark Hansen wrote: > Basically I'm reporting a score via a webservice, instead of having a > login password I was just wanting to use a unqiue phone id to track > the user. > > Is ANDRIOD_ID just an accesible global type variable? It's a static public field on android.provider.Settings.System.

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Al Sutton
The first step is, of course, Google saying that they won't shut down the agents account as soon as they list someone elses app Al. Mark Murphy wrote: > Al Sutton wrote: > >> OK, I'm going to float an idea that I'd like some feedback on from >> developers and (hopefully) someone at Goog

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread Mark Hansen
That should work nicely.. thanks for the information. On Feb 14, 11:02 am, Mark Murphy wrote: > Mark Hansen wrote: > > Basically I'm reporting a score via a webservice, instead of having a > > login password I was just wanting to use a unqiue phone id to track > > the user. > > > Is ANDRIOD_ID j

[android-developers] Programmatically get resource information

2009-02-14 Thread stanchat
I have a SQLite database and one of the tables has a column that is the string name of a jpeg file.. For instance the column is called "PhotoID" and a record value is say "photoone.jpg" I have strored all the actual jpegs in the drawable resouce directory. I would like to be able to programmatic

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Hans
Make sure you have added TestService to your build path for the service monitor :). I'm new to Eclipse myself :). The two projects are in the same workspace, yes? Just different folders I presume? The zip file I provided was the contents of my workspace, it had those two folders in it. You sh

[android-developers] Can I bind to the MediaPlaybackService?

2009-02-14 Thread info.sktechnol...@gmail.com
The MediaPlaybackService has exported=true but no intent filters. How do I create an Intent to bind to it? --~--~-~--~~~---~--~~ 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: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Hans
You should only need the AIDL file to reside in the TestService's folder because the IDL compiler will find it there. Again, make sure you have your build path setup properly for Service Monitor. Iirc, I tested this on a laptop I'd not used for anything and it built for me straight away when I p

[android-developers] howto access music file properties?

2009-02-14 Thread robotissues
I would like to retrieve the properties that describe an mp3 file's properties (ie: author, album, title ...). I was not able to use javax.sound.sampled.AudioFileFormat to do this. Advice super appreciated. Thank you, i++ --~--~-~--~~~---~--~~ You received this m

[android-developers] Need some help at testing an Android game

2009-02-14 Thread LuchoLaf
Hi from Argentina! we are a little team working on a tower defense- like game for Android. Our problem is that it's really complicated to get a real Android device here and we need it in order to see how the game performs. So this is a little help request for those who own a G1 or similar: here i

[android-developers] Re: Need some help at testing an Android game

2009-02-14 Thread Al
Hi, here are the results I got: Min fps: 8 Max fps: 43 avg fps: 24 The game looks quite interesting, good luck. On Feb 14, 5:02 pm, LuchoLaf wrote: > Hi from Argentina! we are a little team working on a tower defense- > like game for Android. Our problem is that it's really complicated to > ge

[android-developers] Re: G1 detected as 'offline' by Eclipse plugin

2009-02-14 Thread GiladH
Hi, If you're ALWAYS having this problem - your best bet it so go to the driver manager and look for yellow (i.e. incompletely installed) USB drivers If you're having this problem every now & again - just boot your PC when it happens. couldn't figure out anything smarter than that.. GiladH O

[android-developers] Re: Need some help at testing an Android game

2009-02-14 Thread LuchoLaf
Ups, I get avg fps: 38 on the emulator. Anyway, does it feel right the motion and animations or does it look choppy? Thanks buddy! On 14 feb, 14:10, Al wrote: > Hi, here are the results I got: > > Min fps: 8 > Max fps: 43 > avg fps: 24 > > The game looks quite interesting, good luck. > > On Feb

[android-developers] Re: How to force MediaStore to rescan the SD card

2009-02-14 Thread kolby
You can make an android.media.MediaScannerConnection, connect to it, and provide a client to scan a directory. Michael On Feb 14, 7:05 am, "info.sktechnol...@gmail.com" wrote: > If I progammatically store new media files on the SD card, the > MediaStore does not know about them until I remove a

[android-developers] Re: Has anyone succeeded in displaying non latin-1 characters in Webview after RC33?

2009-02-14 Thread kolby
Apparently the problem was not documentation, but my lack of understanding of the data: scheme. My bad, Michael On Feb 14, 10:08 am, "Fred Grott(shareme)" wrote: > Kolby, Someone just updated javadocs for webview and etc in > source..its in code review.. > > I found a lot of more answers ot webv

[android-developers] Question about defining selector drawable

2009-02-14 Thread Meryl Silverburgh
Hi, I am trying to setup a selector drawable in my asset file like this: * 2 different images for 'on'/'off' mode in rest mode (i.e. it does not has focus) * another 2 different images for 'on'/'off' mode in focus mode (i.e. it has the focus). In my case, the rest mode works, but the 'focus' mod

[android-developers] Re: Playing video in android

2009-02-14 Thread Ash
Thank u so much for the reply but The program does Not execute at all.. Can u please help On Feb 9, 2:53 am, Dilli wrote: >  Hi > >  i think you fixed the size ofvideodisplay > >     >>  mHolder.setFixedSize(176, 144); > >   it may cause the problem of  videodisplaying > >  use  

[android-developers] Re: Playing video in android

2009-02-14 Thread Ash
Thank u so much for the reply but The program does not work even after changing Thank you for much for the replyCan you please help me.. On Feb 9, 12:04 pm, Dave Sparks wrote: > First, the surface type needs to be push buffers. In your Preview > constructor, add the following: > >    

[android-developers] Re: Playing video in android

2009-02-14 Thread Dave Sparks
We can't help you if you can't describe the errors you are seeing. What is in the log? On Feb 14, 10:01 am, Ash wrote: > Thank u so much for the reply but The program does Not execute at > all.. Can u please help > > On Feb 9, 2:53 am, Dilli wrote: > > > Hi > > > i think you fixed the siz

[android-developers] Re: G1 detected as 'offline' by Eclipse plugin

2009-02-14 Thread Al Sutton
If you're running Vista you may just be stuffed. I have two machines, an XP one and a Vista one. The Vista one always lists the G1 as being offline and reports no problems with the driver installation (no yellow triangle, no error message, just a "This device is working properly." in the Devic

[android-developers] Re: RTSP and MMS - mediaplayer shenanigans

2009-02-14 Thread Dave Sparks
I'm pretty sure that OpenCore is going to reject the mms URI. On Feb 13, 8:57 pm, Rob Franz wrote: > I believe this is WMA on the other end. Does this present a problem? > > On Feb 13, 2009 11:13 PM, "Rob Franz" wrote: > > Hi all > I'm trying to get an RTSP stream going with a verified source

[android-developers] local classes and starting new activity

2009-02-14 Thread automerc
I am having trouble running my application as every time i try to run it the simulator gives me a an error. I looked through the Documentation but I couldn't find anything on user created classes. import android.app.Activity; import android.os.Bundle; import android.view.View; import android.vie

[android-developers] Re: howto access music file properties?

2009-02-14 Thread Jason Van Anden
I sorted this out. MusicDroid example is a bit of a red herring. MusicStore is clearly the way to go! On another note ... can the Music App pre loaded with Android be accessed as a service? Essentially I would like to have the selected song pass back to my app. On Sat, Feb 14, 2009 at 11:36 AM

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-02-14 Thread Guillaume Perrot
Sadly, the javadoc is not included in the new android.jar, so we can't have the doc in Eclipse anymore when auto-completing... Is there a way to restore that ? On Feb 14, 12:27 am, Mark Murphy wrote: > DavidLanz wrote: > > do you guys know what's the different from 1.0.r2 to 1.1r1? > > is there

[android-developers] Dumb question about SMS - what port does a normal text SMS come in...

2009-02-14 Thread Hans
...on? Is that defined by the carrier or whoever has 'branded' the phone? For example, on the G1 in the US, does T-Mobile define that? If so, does anyone know? I was hoping that I could find out more information about where an SMS message came from when I received an Intent but it seems to jus

[android-developers] Re: Has anyone succeeded in displaying non latin-1 characters in Webview after RC33?

2009-02-14 Thread Chister Nordvik
Thanks! That did the trick :-) Seems like they changed the behavior in RC33, but now it works perfectly again. -Christer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: How to force MediaStore to rescan the SD card

2009-02-14 Thread Dave Sparks
You want something like this in your activity: import android.media.MediaScannerConnection; import android.media.MediaScannerConnection.MediaScannerConnectionClient; private static class MediaScannerNotifier implements MediaScannerConnectionClient { private Context mContext; private Medi

[android-developers] ViewFlipper & bringChildToFront(View v)

2009-02-14 Thread gsmd
I have this ViewFlipper populated with views via addView(View v). Now, the simple task is to bring specific (not just next or previous) view to the top. Looks like bringChildToFront(View v) with a passed reference to a View should do this. It doesn't, the "top" view doesn't change. Plz suggest wha

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Dianne Hackborn
There apparently is an implementation of that class in your local client .apk. It is very clear from the logs that the client is trying to interact with -some- component in its package, as you can see right in the component name. On Thu, Feb 12, 2009 at 2:37 PM, Hans wrote: > > On Feb 12, 5:09

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Dianne Hackborn
On Sat, Feb 14, 2009 at 7:38 AM, wrote: > import com.android.TestService.*; Is this code part of the android platform? No? Then please don't use this namespace. Thanks. :) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as

[android-developers] Re: [Split the Android screen into two parts and run 2 applications simultaneously on both screen]

2009-02-14 Thread Dianne Hackborn
This list is for programming with the SDK, please use android-framework or android-platform for talking about changes to the system. That said, doing this is extremely non-trivial. Your first step is to go into ActivityManagerService and WindowManagerService and have a good understanding of that

[android-developers] Re: ViewFlipper & bringChildToFront(View v)

2009-02-14 Thread Mark Murphy
gsmd wrote: > I have this ViewFlipper populated with views via addView(View v). Now, > the simple task is to bring specific (not just next or previous) view > to the top. Looks like bringChildToFront(View v) with a passed > reference to a View should do this. It doesn't, the "top" view doesn't > c

[android-developers] Re: Comments/Ratings need to expire!

2009-02-14 Thread Dianne Hackborn
How about publishing it as a new app? As a user, I certainly wouldn't want ratings dropped quickly just because someone uninstalls an app. On Fri, Feb 13, 2009 at 10:32 PM, Beshoy wrote: > > A scenario: > You release an app... brand new.. tested locally, but not globally... > you receive some g

[android-developers] Re: Playing video in android

2009-02-14 Thread Marco Nelissen
> s_filePath = "/data/local/video/test_qcif_200_aac_64.mp4"; This is probably not going to work, since playback is actually handled by a different process, which probably doesn't have permissions to access that file. The preferred way of handling this is to get a FileDescriptor for the file

[android-developers] Re: Comments/Ratings need to expire!

2009-02-14 Thread Timothy DeWees
Preach IT I'm glad we can now mark ratings as spam but they still need to expire. I've released something like 20+ updates to my application and I am still dinged for version 1.0 because a user rated me 1 star and said "needs this feature". I've since added that feature but I'm still dinged

[android-developers] Re: ViewFlipper & bringChildToFront(View v)

2009-02-14 Thread gsmd
Thanks, Mark, that worked. bringChildToFront(View v) seems to be a non-functional inheritance legacy for ViewFlipper. For anyone who will implement smth like this later, I suggest adding the views with addView(View v, int index), just a safety net; indexes MUST be sequential & increasing. Otherwi

[android-developers] Re: ViewFlipper & bringChildToFront(View v)

2009-02-14 Thread Romain Guy
> For anyone who will implement smth like this later, I suggest adding > the views with addView(View v, int index), just a safety net; indexes > MUST be sequential & increasing. Just use addView(View), it guarantees that it will work. -- Romain Guy Android framework engineer romain...@android.c

[android-developers] Re: orange in R.color ?

2009-02-14 Thread gsmd
Thanks. Unfortunately, this doesn't seem to work out. Here's a sample TextView that I inflate: -- http://schemas.android.com/apk/res/android"; android:textAppearance="?android:attr/textAppearanceMedium" android:gravity="center" android:background="@android:drawable/list_sel

[android-developers] Re: ViewFlipper & bringChildToFront(View v)

2009-02-14 Thread gsmd
Yeah, but if the view order changes, you'll get an unexpected behavior. On Feb 14, 10:58 pm, Romain Guy wrote: > > For anyone who will implement smth like this later, I suggest adding > > the views with addView(View v, int index), just a safety net; indexes > > MUST be sequential & increasing. >

[android-developers] Re: Can I bind to the MediaPlaybackService?

2009-02-14 Thread Marco Nelissen
On Sat, Feb 14, 2009 at 8:33 AM, info.sktechnol...@gmail.com < info.sktechnol...@gmail.com> wrote: > > The MediaPlaybackService has exported=true but no intent filters. > How do I create an Intent to bind to it? You don't :) MediaPlaybackService is internal the music player at this point. With s

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Hans
I'm not trying to be argumentative for the sake of being argumentative Dianne, but if that was the case, how could the IPC calls to the remote process be resolved if they are only declared in the manifest for the service project which is in a different *.apk? This would mean that android was acci

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Hans
On Feb 14, 3:12 pm, Dianne Hackborn wrote: > On Sat, Feb 14, 2009 at 7:38 AM, wrote: > > import com.android.TestService.*; > > Is this code part of the android platform?  No?  Then please don't use this > namespace.  Thanks. :) > > -- > Dianne Hackborn > Android framework engineer > hack...@andr

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Jon Colverson
On Feb 14, 4:21 pm, Al Sutton wrote: > The first step is, of course, Google saying that they won't shut down > the agents account as soon as they list someone elses app I don't see why Google would have a problem with this, as long as the "agent" is willing to accept legal responsibility for

[android-developers] Re: Comments/Ratings need to expire!

2009-02-14 Thread Marco Nelissen
If a single 1-star rating brings your average rating down noticeably, you've got bigger problems :) In any case, this could be dealt with by weighing recent comments heavier than older comments, no need to remove old comments/ratings. This would be more fair to the customers who took the time to co

[android-developers] MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
I'm just trying to play a local video that is a resource with the MediaPlayer class in the most simple way possible. I have confirmed that the video works with players that I download from the marketplace, so I'm assuming that's not the issue. The problem is that I just get a black screen with no

[android-developers] Re: Dumb question about SMS - what port does a normal text SMS come in...

2009-02-14 Thread Marco Nelissen
SMS normally doesn't travel over an IP connection (note that you can send/receive SMS messages with phones that don't otherwise have a network connection), so there is no associated port. On Sat, Feb 14, 2009 at 11:25 AM, Hans wrote: > > ...on? > > Is that defined by the carrier or whoever has

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Marco Nelissen
Several things potentially wrong with your code: - you're using MediaPlayer.create(), which calls prepare() for you. IIRC, setDisplay() needs to be called *before* prepare(), so you won't be able to use any of the MediaPlayer.create convenience methods. - the way you create and use the SurfaceView,

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Marco Nelissen
On Sat, Feb 14, 2009 at 1:32 PM, Marco Nelissen wrote: > Several things potentially wrong with your code: > - you're using MediaPlayer.create(), which calls prepare() for you. IIRC, > setDisplay() needs to be called *before* prepare(), so you won't be able to > use any of the MediaPlayer.create c

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Hans
Crud Suni - I accidentally left an error call (from when I was testing out the weirdness of service creation the 'wrong' way) in the "StartService" method in the Service Monitor class... Right below the comment "//Attempt to start the service" there's a call: startService( new Intent( this, Test

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Hans
Fixed and re-uploaded in case anyone else uses it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe fro

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-02-14 Thread blake
Justin, For those of us following along at home, is there a tag or branch, in the source that corresponds to the 1.1 release? Thanks! -blake On Feb 9, 2:31 pm, "Justin (Google Employee)" wrote: > Hey developers, today we released the new, 1.1_r1 SDK. This SDK > includes some minor updates t

[android-developers] Re: sound effect using SoundPool

2009-02-14 Thread Sundog
I am using your class and setting it up as you indicate, but having the same difficulty I did last time I tried to use SoundPool; I have seven one-shot sounds that trigger from buttons and in the emulator it works every time, but on the phone itself, occasionally all 7 work but usually only a rand

[android-developers] Alarm Manager forgets repeating alarms?

2009-02-14 Thread Mariano Kamp
This question is a bit strange, but does anybody know about a common gotcha when using the AlarmManager? And not knowing it sometimes leads to the AlarmManger forgetting alarms? I have a repeating task that runs once an hour. Some nights it runs without a hitch and some nights it runs a coupl

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Mariano Kamp
Germany, Old Europe and all, is also on the axis of the forgotten. So your field trip would need to go to the UK. On Sat, Feb 14, 2009 at 10:12 AM, Mads Kristiansen < mads.kristian...@nullwire.com> wrote: > > That's an interesting idea - I might sign up for something like that. In > any case it w

[android-developers] How to Check Key Status?

2009-02-14 Thread iAmACyborg
Hi, I'm killing myself here, any help would be appreciated. Is there any way to poll the state of a given hardware key? I'm not talking about using an event. Matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-14 Thread Mariano Kamp
Sounds like a great idea. But then all the uploads would need to go through you, right? That could make it a burden for you. All rights remain with the developer, so that when the wonderful and popular google checkout opens with a minutes notice in the respective country the app can be published b

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
Wow that sounds really convenient. Since the signature of the MediaPlayer.create() that takes a SurfaceHolder requires the second argument to be a URI and not a resource id, I tried creating a URI for the resource by doing this: Uri uri = Uri.parse("android.resource://com.example.www/" + R.raw.vi

[android-developers] Re: How to Check Key Status?

2009-02-14 Thread Dianne Hackborn
I don't believe there currently is, sorry. On Sat, Feb 14, 2009 at 2:16 PM, iAmACyborg wrote: > > Hi, > > I'm killing myself here, any help would be appreciated. > > Is there any way to poll the state of a given hardware key? I'm not > talking about using an event. > > Matthew > > > -- Dianne

[android-developers] Re: Dumb question about SMS - what port does a normal text SMS come in...

2009-02-14 Thread Hans
So default text based SMS traffic does not travel over IP, but SMS traffic can travel over IP? --~--~-~--~~~---~--~~ 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: sound effect using SoundPool

2009-02-14 Thread Dave Sparks
There are a lot of fixes to SoundPool coming in the Cupcake release. I need to check on the crash you mentioned - I don't recall seeing that before and it should give you an error, not crash. The range is dependent on the ratio of the sample rate of the source and the hardware output. On Feb 13,

[android-developers] Re: Dumb question about SMS - what port does a normal text SMS come in...

2009-02-14 Thread george_c
No SMS can NOT ever travel over IP to your handset. Between carriers networks they can, but thats all on the backend of the networks. e.g SS7/SIGTRAN stuff. George On Sun, Feb 15, 2009 at 1:10 AM, Hans wrote: > > So default text based SMS traffic does not travel over IP, but SMS > traffic can

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Marco Nelissen
On Sat, Feb 14, 2009 at 3:01 PM, Brendan wrote: > > Wow that sounds really convenient. Since the signature of the > MediaPlayer.create() that takes a SurfaceHolder requires the second > argument to be a URI and not a resource id, I tried creating a URI for > the resource by doing this: Oh, righ

[android-developers] Re: Unable to start service Intent error in Client-Server project

2009-02-14 Thread Dianne Hackborn
On Sat, Feb 14, 2009 at 1:14 PM, Hans wrote: > I'm not trying to be argumentative for the sake of being argumentative > Dianne, but if that was the case, how could the IPC calls to the > remote process be resolved if they are only declared in the manifest > for the service project which is in a d

[android-developers] Re: Resize based on orientation.

2009-02-14 Thread David
Alright, In the new SDK found here: http://dl.google.com/android/android-sdk-windows-1.1_r1.zip Google added an OrientationListener package (android.view.OrientationListener) that has an onOrientationChanged (int orientation) function. This helps immensly. However, I agree with you Dianne, having

[android-developers] Re: Has anyone succeeded in displaying non latin-1 characters in Webview after RC33?

2009-02-14 Thread yhfudev
you may use: loadDataWithBaseURL (null, content, "text/html", "utf-8", "about:blank"); On Feb 13, 2:33 pm, Mark Murphy wrote: > Chister Nordvik wrote: > > String xml = "" + > >   "" + > >         "Norwegian chars: åø" + > >   "" + > > ""; > > myWebView.loadData(xml, "text/html", "UTF-8"); > >

[android-developers] Re: # special characters in webview

2009-02-14 Thread yhfudev
You may use: loadDataWithBaseURL (null, content, "text/html", "utf-8", "about:blank"); On Jan 27, 7:45 am, Bob wrote: > Hi, > I am populating awebviewwith the loaddata option but special > characters such as "'" for quotation mark aren't showing up and > end the display.  What am I doing wrong?

[android-developers] ViewGroup, Views and Animation

2009-02-14 Thread mobilek...@googlemail.com
Hi, I have a few views and animations and I need to figure out a way to package them so I can use them throughout my app. I thought I should be able to use ViewGroup, however, things are getting a bit complicated as my animations need to repeat and to achieve that I have applied the technique with

[android-developers] Re: ViewGroup, Views and Animation

2009-02-14 Thread Romain Guy
Animations have a repeat mode, no need to do it yourself. Also, why wouldn't ViewGroup handle the startOffset? From your email, I don't really understand what your problem is exactly :) On Sat, Feb 14, 2009 at 3:52 PM, mobilek...@googlemail.com wrote: > > Hi, > I have a few views and animations

[android-developers] Re: Margin-problem with changed layout for titlebar

2009-02-14 Thread Marco Nelissen
On Wed, Feb 11, 2009 at 12:09 PM, $§Kalle§$ <__kalle...@hphone.eu> wrote: > > I am using the following Layout for the titlebar with a blue backround > color > > android:id="@+id/RelativeLayout01" >xmlns:android="http://schemas.android.com/apk/res/android"; >android:layout_w

[android-developers] Re: Some bugs of WebView

2009-02-14 Thread yhfudev
After I have tried some methods, it could work now. use: loadDataWithBaseURL (null, content, "text/html", "utf-8", "about:blank"); Thank you very much! On Feb 11, 3:21 pm, Mark Murphy wrote: > kolby wrote: > > Hmmm, > > >    String test = "some text > \"#00ff00\">in green"; > >    web.loadDat

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Brendan
Thanks for all your help! I've been trying out your original idea, but I still seem to be having issues. I have moved the SurfaceView to main.xml, it looks like this: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" andro

[android-developers] Re: Resize based on orientation.

2009-02-14 Thread David
Timo Bruck's tip worked like a charm. Each item now takes up exactly 1/2 of the screen, which is what I want. You guys are great, thank you very, very much. On Feb 14, 6:27 pm, David wrote: > Alright, In the new SDK found > here:http://dl.google.com/android/android-sdk-windows-1.1_r1.zip > Goog

[android-developers] Re: ViewGroup, Views and Animation

2009-02-14 Thread mobilek...@googlemail.com
Ok, well I'm a bit new to animations on android, and wasn't sure if ViewGropus was the right path for me. Btw how would you set the repeat mode for an animation? I've tried the java way but it didn't work. On Feb 14, 11:57 pm, Romain Guy wrote: > Animations have a repeat mode, no need to do it y

[android-developers] Re: Resize based on orientation.

2009-02-14 Thread Dianne Hackborn
OrientationListener is not new in 1.1, and it is for monitoring the accelerometer sensor not keeping track of the screen display. :} On Sat, Feb 14, 2009 at 3:27 PM, David wrote: > > Alright, In the new SDK found here: > http://dl.google.com/android/android-sdk-windows-1.1_r1.zip > Google added

[android-developers] Re: ViewGroup, Views and Animation

2009-02-14 Thread Romain Guy
Use Animation.setRepeatMode() and Animation.setRepeatCount(). On Sat, Feb 14, 2009 at 4:31 PM, mobilek...@googlemail.com wrote: > > Ok, well I'm a bit new to animations on android, and wasn't sure if > ViewGropus was the right path for me. Btw how would you set the repeat > mode for an animation

[android-developers] Re: MediaPlayer plays sound but screen is black

2009-02-14 Thread Marco Nelissen
I think you have to use the SurfaceHolder callbacks to find out when the surface has actually been created, and *then* call setDisplay/prepare/start On Sat, Feb 14, 2009 at 4:28 PM, Brendan wrote: > > Thanks for all your help! I've been trying out your original idea, but > I still seem to be hav

[android-developers] Re: Margin-problem with changed layout for titlebar

2009-02-14 Thread $§Kalle§$
Don't worry. I will not try to make my apps like Windows x.x. I just want to understand the changebale titlebar for the moment ;-) Here is the complete layout, which fits to the scrrenshot I mentioned. I do not think, that the icons caused the problem. ## http://schemas.and

  1   2   >