[android-developers] How to start a new activity using the command of am,but not brought the activity to the front from its associated task?

2012-12-25 Thread lincoln
Hi,all: How to start a new activity using the command of am,but not brought the activity to the front from its associated task? I use the command of adb shell am start -a com.android.intent.MAIN -n com.android.browser/.BrowserActivity -f 0x34288000, and the flag value may be

[android-developers] Android Assets

2012-12-25 Thread Shubham Aggarwal
I want to add some files in assets folder in android and want to read them from native C code. But the problem is how to get the path of that file (in java or in C). I don't want to use asset manager to open the file to give support in Android 1.6 too. Plus, I want to read that file in C for

[android-developers] Contact for Hosting and Domains

2012-12-25 Thread Tanzeel
Hello If you want purchase a Domain or Hosting. So Kindly let me Know on my email or contact number as given below -- Thanks With Regards Mohd Tanzeel Sr. Software Engineer Magnon Solutions tanzeel.t...@gmail.com Cont No. 9953648399 -- You received this message because you are subscribed to

[android-developers] Re: Android Assets

2012-12-25 Thread RichardC
From API level 9 you can use native code see your: ndk/docs/STABLE-APIS.html Before level 9 I suggest you use JNI to call back into Java. On Tuesday, December 25, 2012 11:08:42 AM UTC, Shubham Aggarwal wrote: I want to add some files in assets folder in android and want to read them from

[android-developers] Re: How to perform multiple queries from different tables and show in single list view

2012-12-25 Thread lbendlin
Exactly as you describe it. Point a cursor to a query from different tables, and point the listview adapter to the cursor. On Monday, December 24, 2012 2:07:47 AM UTC-5, Vijay Krishnan wrote: Hi all, I have to query from different tables and show in single listview.How to do this?

Re: [android-developers] hi friends

2012-12-25 Thread Nitin Sethi
Here you go. http://stackoverflow.com/questions/6905262/how-do-i-show-a-custom-dialog-when-there-is-no-internet-connection On Monday, 24 December 2012 22:47:27 UTC+5:30, sree wrote: Thank u friend.Shall u share any code. On Dec 24, 2012 9:25 PM, nemi chhimpa ern...@gmail.com javascript:

[android-developers] error in custom list adapter

2012-12-25 Thread Gaurav
hey, i am making an application in which i have to list the attendance of people. I want to show name,total attendance, and present number in list of every person. i have made following files and tried. but i getting force close error. please help Thanks. Gaurav attendancelistadapter.java

[android-developers] Re: error in custom list adapter

2012-12-25 Thread Jonathan S
i see Attendance_print a=null; you don't need to import android.R; On Tuesday, December 25, 2012 12:18:06 PM UTC-5, Gaurav wrote: hey, i am making an application in which i have to list the attendance of people. I want to show name,total attendance, and present number in list of every

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-25 Thread Latimerius
On Sun, Dec 23, 2012 at 10:43 PM, Lew lewbl...@gmail.com wrote: Instances do not initialize static members in Java. The static members are initialized as part of class initialization. Instances can set static values if they're mutable, but that's not initialization. I don't know about

[android-developers] Use unrooted Android device to test web site running on desktop, through usb cable?

2012-12-25 Thread David Karr
If I have an unrooted Android device, a USB cable, and a laptop, can I run a web or application server on my laptop and test a site running on that server on the Android device? I know I can do some testing with the Android emulator, but I'd like other options. -- You received this message

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2012-12-25 Thread TreKing
On Tue, Dec 25, 2012 at 3:04 PM, Latimerius l4t1m3r...@gmail.com wrote: The thing I don't get is how would that be possible if Android doesn't collect individual Activity instances, just whole processes. I believe it is entirely possible and actually a frequent occurrence that Activities are

[android-developers] Re: How to start a new activity using the command of am,but not brought the activity to the front from its associated task?

2012-12-25 Thread lincoln
Add environment: GT-N7000,OS version 2.3.5/4.0.3 modify the am command to adb shell am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity -f 0x34288000 -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Android Assets

2012-12-25 Thread Lew
Shubham Aggarwal wrote: I want to add some files in assets folder in android and want to read them from native C code. But the problem is how to get the path of that file (in java or in C). I don't want to use asset manager to open the file to give support in Android 1.6 too. Plus, I

[android-developers] Re: deleting a ringtone programmatically

2012-12-25 Thread Narendra Singh Rathore
how do you insert a ringtone programmatically? Hi Skink, I used the following code for inserting/setting the ringtone. String filepath =/sdcard/my music/Dard-E-Tanhai.mp3; File ringtoneFile = new File(filepath); ContentValues content = new ContentValues();

Re: [android-developers] Re: deleting a ringtone programmatically

2012-12-25 Thread Narendra Singh Rathore
Now, what I actually want is to replace the current ringtone, and want to insert that with the same title as that of the previous one. Now, I guess there must be two ways to do that - i) updating the ringtone path to the new ringtone path, using its title (i.e. 'test' in my case) ii)

Re: [android-developers] Re: Android Assets

2012-12-25 Thread skink
Shubham Aggarwal wrote: Suppose you want to perform image processing on a bitmap of size 480x480 or bigger. and what does it have to do with assets? you do your image processing on in-memory bitmap representation not on the file your image is stored pskink -- You received this message