Re: [android-developers] what`s the difference between inflate and reference directly

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 9:09 PM, asdf wrote: > for example,i want to get a view object in java file.there are > two ways:inflate view and R.id.view.what`t the difference between > them.and when to use them. thanks Read the documentation - this is fairly thoroughly covered.

Re: [android-developers] Frustrating but quite common taking SNAPSHOT problem

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 4:49 AM, mathcat wrote: > This mechanism is so frustrating, how to handle such situation?? Sounds you're already doing it with onSaveInstanceState. If you have Singletons, the whole point behind them is they are initialized on access if they're not already. If you need t

Re: [android-developers] Music for background

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 4:42 AM, Nikolay Yanev wrote: > How can I set mp3 for background music in my app? Read the relevant sections in the documentation and / or Google for examples. - TreKing

[android-developers] startActivity from a Fragment doesn

2011-03-24 Thread jotobjects
startActivity from a fragment starts the Activity and then returns immediately. It executes the onCreate in the new Activity but never brings it to the front. Has anyone seen this behavior? -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Starting an Android App from a Website

2011-03-24 Thread perumal316
Hi All, Is it possible to start an Android App from a browser. I would like to create a website that has a button, and whenever the button is pushed, an android application already previously installed have to start. Is this possible? In some of the earlier post here, it was mentioned that Intent

Re: [android-developers] Starting an Android App from a Website

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 9:14 PM, perumal316 wrote: > Sorry couldn't find much info regarding this. Read this: https://groups.google.com/group/android-developers/browse_thread/thread/4462c79065294680 ---

[android-developers] Re: startActivity from a Fragment doesn

2011-03-24 Thread jotobjects
More information - - there are no errors in the logcat log - the logcat shows ActivityManager starting the new Activity and then immediately start the first Activity again. On Mar 24, 7:11 pm, jotobjects wrote: > startActivity from a fragment starts the Activity and then returns > immediately.  

[android-developers] Re: Developers Phone Program

2011-03-24 Thread Kevin TeslaCoil Software
I root all my phones. Root lets you access your app's data directory, which is handy for viewing/editing a database or shared preferences file. But I don't run custom roms (Unless I'm actually tested something related to that rom). Custom roms definitely can lead to ridiculous problems. I've gott

[android-developers] Starting An Android App From An Url

2011-03-24 Thread Syner
is there a way to add a 'custom url scheme' to an Android app that when a user goes to a certain http:// url in the web browser it will open the app? i need functionality that is the same as this on Android. http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-schem

[android-developers] Re: ActionBar problems

2011-03-24 Thread Jake Wharton
Going to throw a shameless plug... If you're looking to implement the action bar design pattern on all platforms in your app I have written a library which automatically abstracts and marshalls interactions to either the native ActionBar on 3.0+ or a custom third-party control on pre-3.0. You c

[android-developers] Re: ActionBar problems

2011-03-24 Thread Zsolt Vasvari
Good to know, thanks! On Mar 25, 11:24 am, Jake Wharton wrote: > Going to throw a shameless plug... > > If you're looking to implement the action bar design pattern on all > platforms in your app I have written a library which automatically abstracts > and marshalls interactions to either the nat

[android-developers] Assets directory

2011-03-24 Thread Demetris
Does Android expand the apk files into a filesystem structure? If yes where? I don't seem to find much in /data/data/ (package name as defined in the AndroidManifest.mf. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: Music for background

2011-03-24 Thread Nightwolf
http://developer.android.com/intl/de/guide/topics/media/index.html Playing from a Raw Resource MediaPlayer mp = MediaPlayer.create(context, R.raw.sound_file_1); mp.start(); On Mar 24, 12:42 pm, Nikolay Yanev wrote: > How can I set mp3 for background music in my app? -- You received this mes

Re: [android-developers] Assets directory

2011-03-24 Thread Dianne Hackborn
No they remain in the .apk, and you must use the AssetManager APIs to access them. On Thu, Mar 24, 2011 at 9:55 PM, Demetris wrote: > > Does Android expand the apk files into a filesystem structure? If yes > where? > I don't seem to find much in /data/data/ (package name > as defined in the Andr

Re: [android-developers] Starting An Android App From An Url

2011-03-24 Thread Dianne Hackborn
Yes, for example here is the declaration in the activity of Market that handles the user clicking on an Android Market URI link:

Re: [android-developers] startActivity from a Fragment doesn

2011-03-24 Thread Dianne Hackborn
There is nothing special about calling this from a fragment; all it is doing is calling the containing activity's startActivity(). If you say the logcat is showing the first activity being started again, then most likely you are calling startActivity() somewhere and causing that. On Thu, Mar 24,

[android-developers] eclipse/sdk combo crash

2011-03-24 Thread Keith Wiley
If I right-click the res folder of a project, I can create a menu folder. If I right click that folder and try to create a menu.xml file, eclipse hangs. I have to force quit it. After relaunching eclipse, menu.xml is there. I've seen this behavior on two different computers now. If I then try

[android-developers] Re: How do i upload the file from android mobile to public server

2011-03-24 Thread snehalal gangadharam
Thanks for your valuable reply, i have to develop speed test application in andorid. i have developed upload application in java , i can upload the file from java to public server, when i put that application to android , it is not working , i will attach the upload code and log. kinldy guid me ho

Re: [android-developers] Widget and Changing Orientation

2011-03-24 Thread Justin Anderson
Create a new layout that looks better in landscape mode... You can have separate layouts for both portrait and landscape Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 24, 2011 at 7:47 PM, Jake Colman wrote: > > My app is designed to use a 2

[android-developers] Re: Starting An Android App From An Url

2011-03-24 Thread perumal316
Hi Hackborn, For the example you have specified what will be the URL be? Is it something like market://? Regards, Perumal On Mar 25, 1:46 pm, Dianne Hackborn wrote: > Yes, for example here is the declaration in the activity of Market that > handles the user clicking on an Android Market UR

<    1   2   3