Re: [android-developers] Set android:layout_gravity from code ??

2010-05-16 Thread Second Dancer
LayoutParams provides that 2010/5/16 TreKing > On Sat, May 15, 2010 at 1:22 PM, pawan nimje wrote: > >> now i want to set the android:layout_gravity from code ... > > > Step 1: Try searching the documentation for "layout gravity". > > > --

Re: [android-developers] MediaPlayer Resource Issue

2010-05-12 Thread Second Dancer
May be you have to release thr player before exiting On May 12, 2010 3:15 PM, "rebeldev" wrote: Hello All, I'm hoping someone in this group could help me with a problem I'm currently encountering. I've created a soundboard application (Android 1.6). Sound board works great, and plays as expecte

[android-developers] How does NotificationService work?

2010-05-10 Thread Second Dancer
I Know there is a system service out there handling toast, notification. But how does it handle these events. In android.widget.Toast.java, I only found INotificationManager(which is defined by an aidl file) that handles it, I couldn't no found any class in android system implemented the interface,

[android-developers] How does NotificationService work?

2010-05-10 Thread Second Dancer
I Know there is a system service out there handling toast, notification. But how does it handle these events. In android.widget.Toast.java, I only found INotificationService(which is defined by an aidl file) that handles it, I couldn't no found any class in android system implemented the interface,

Re: [android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-09 Thread Second Dancer
Check your logic, sharing a cursor between 2 activities is really necessary? 2010/5/9 westmeadboy > Thanks but isn't that more for across processes rather than across > activities within a process? > > On May 9, 7:17 am, Senthil ACS wrote: > > I remember there is an interface named CrossProcess

Re: [android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Second Dancer
Just get the reference of the activity, can you achieve that? On May 6, 2010 11:52 AM, "Raj" wrote: Hi, I want to stop an Activity that is in some other application from my Applications service. Is there any mechanism to do so? Thanks, Raj -- You received this message because you are subscribe

Re: [android-developers] TextView.setTextColor

2010-05-06 Thread Second Dancer
The params in setTextColor is not the resource id in xml file, but the real ARGB value combination, so here you hava two choice. 1. setTextColor(context.getResources.getColor(int resId)); 2. setTextColor(int value), for example white 0x 2010/5/6 mike > hi guys, > > i want to set the text

Re: [android-developers] how to measure video file size?

2010-05-05 Thread Second Dancer
See android.media.MediaStore class, this class provides you enough info for any kind of media on the device. If this infomation is not helpful, see MediaProvider -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

Re: [android-developers] Re: onDraw being called - is that correct?

2010-05-05 Thread Second Dancer
The calendar app has a costom view, here is another code snippet @Override protected void onDraw(Canvas canvas) { if (mRedrawRequired) { // if canvas is null, we get the canvas prepared for drawing, and // the background bitmap is needed because we do not need t

Re: [android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Second Dancer
You can get an reflection call on the internal Api On May 6, 2010 5:48 AM, "Vinay S" wrote: Hi, Are you sure, you are getting the context correctly..? Are you able to get other deatils, like Network type phone type, sim status etc? -Vinay On May 5, 9:32 pm, David Given wrote: > -BEGIN P

Re: [android-developers] how to handle the Dpad event in headview/footview of listview?

2010-05-05 Thread Second Dancer
That is the right way and still the smart way, unless you don't use listview On May 6, 2010 3:58 AM, "Vincent Tsao" wrote: i have add a footview in listview with this code: mListView.addFooterView(mFootView); and also Register a callback to be invoked when this mFootView is clicked with code

Re: [android-developers] Re: MediaStore.Audio

2010-05-05 Thread Second Dancer
Hi Gabriel I'm not quite sure whether the data in the real file changes when changes occurs in the database, i only has done some querying operation. If you wanna to see the details about the media file, you may see into the external-xxx.db file 2010/5/5 Gabriel Simões > I´ve found a snipplet fo

Re: [android-developers] troubles reading other apps config files

2010-05-05 Thread Second Dancer
On Android, all application data (including files) are private to that application. If you expose your private application data via contentprovider 2010/5/4 TreKing > On Fri, Apr 30, 2010 at 4:42 AM, Aivlis wrote: > >> I have to access to the data folder of other applications from my >> applica

Re: [android-developers] FroYo and PDF

2010-05-05 Thread Second Dancer
Apple has been long complained about flash on mobile device, they had listed many problems about running flash. I think it will be a unwelcome feature if flash should be supported by platform 2.2 2010/4/30 Sean Chitwood > So we heard recently that Flash will be supported by the 2.2 release of h

Re: [android-developers] Re: TextView cuts off part of an initial capital "J"

2010-05-04 Thread Second Dancer
This may result from its background property 2010/5/4 bwin > OK, here you go: > > > http://schemas.android.com/apk/res/ > android" >android:orientation="vertical" >android:layout_width="fill_parent" >android:layout_height="fill_parent" >> > android:layout_width="fill_parent"

Re: [android-developers] AIDL: Stub class methods not being called

2010-05-04 Thread Second Dancer
Such a strange problem, check your androidmanifest.xml, register your sevice with the right propety 2010/5/3 Iva > Hello, > > I am using AIDL to pass objects from an Activity to a Service and am > getting some strange behavior. To my understanding, the idea behind > AIDL is to create an interfac

Re: [android-developers] How to create the same activity in a new process?

2010-05-04 Thread Second Dancer
Intent.FLAG_ACTIVITY_NEW_TASK may help 2010/4/30 davidrobin > Hi, > > I want to create a new process to run a new instance of the current > activity. > How can I do that? > I tried to modify the manifest.xml and the intent flag. But only to > get new instance in the same process of the current o

Re: [android-developers] Question concerning View creation

2010-05-04 Thread Second Dancer
LayoutInflater is used to inflat layout of xml. You can create view just like constructing a common object, like Button btn = new Button(context); 2010/5/4 TreKing > On Mon, May 3, 2010 at 1:14 PM, Patrick wrote: > >> Is there a way to create such a view out of a layout.xml file? >> > > Yes, use

Re: [android-developers] Re: Activity and view inflation

2010-05-04 Thread Second Dancer
TreKing had given you the answer. If you wanna iterate the views, you may use methods like getChildAt() 2010/5/4 Michael Scott > Well, I could I guess, but what I was looking for was a way to iterate > through the views in a layout to do some common stuff to them. Say for > instance that I would

回复: [android-developers] Problem in renaming f ile in Sdcard

2010-05-03 Thread Second Dancer
probably you have to enter the parent dir of the file. You can test the command on terminator to find whether it work 在 2010-5-3 上午7:24,"brijesh masrani" 编写: Hello Everyone, I want to rename a file in sdcard using program, i am not able to do that using String[] prog ={"mv HArdcore.chm h_ardcor

Re: [android-developers] onDraw being called - is that correct?

2010-05-03 Thread Second Dancer
Yes, this is the correct behavior. In order to avoid drawing your whole view, you should define a bitmap to cache your canvas. 2010/5/3 Gaurav Vaish > Hi, > > I have a custom view that I use in the activity. > Here's the final structure: > > Button 1 > My View > Button 2 > > > When either Button