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".
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
>  --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 expected.

That is until you exit the app.  When you leave the app, and then
restart it, none of the Sound Buttons work.
I've noticed in my debug call that the it gives me:

create failed:
05-10 09:55:07.834: DEBUG/MediaPlayer(8167): java.io.IOException:
Prepare failed.: status=0x1

Now, I believe I have to call reset() on the mediaplayers for the
buttons, and I've tried doing it in the onCreate() and having the
button initializing in the onRestart() method.  But I still keep
getting this issue.

Additional details: I'm using the create(context, resource id)
constructor.
What am I doing wrong?

Regards,
Rebel

--
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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,
help!!!

-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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,
help!!!

-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 CrossProcessCursor that
> > implements Cursor.
> > Specify this interface in your aidl interface method.
> >
> > On May 8, 7:21 pm, westmeadboy  wrote:
> >
> >
> >
> >
> >
> > > In one activity I build a cursor which is used to populate a ListView.
> >
> > > I want a secondary activity to be able to step through the cursor
> > > entries. What's the best way to do this (bearing in mind cursor
> > > lifecycle).
> >
> > > I don't care if the the system kills and restarts the secondary
> > > activity since in that case the stepping through entries functionality
> > > could be temporarily automatically disabled.
> >
> > > --
> > > 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 email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
> >
> > --
> > 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 email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 color. color will differ according to the
> scenario because of that can't set the text color in the xml file.
>
> in android only few colors are available. if i want to set the colors
> like Pink,Orange it does not support.
> even if i set the int color code of those values it's not rendering.
>
> so anyone can give me a way to achieve this??
> i want to set the pro grammatically.
>
> regards,
> Ranidka
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 the
draw
// the view every time(such as the parent calls scrollTo()
method,
// etc.), only draw it when needed. when onDraw method is called
// again, by default if has nothing done, the view will be
cleared.
// Here we keep the background bitmap saved, we just show the
bitmap
// instead of draw the canvas.
if (null == mCanvas) {
Log.i(TAG, "prepareCanvas.");
prepareCanvas(mVisibleWidth, mVisibleHeight);
}
// else means we can not just show the background bitmap, which
is
// not enough, we should clear the bitmap and redraw it.
// This statement clear will clear the canvas
mCanvas.drawColor(0, PorterDuff.Mode.CLEAR);
drawContent();
mRedrawRequired = false;
}
if (null != *mContentBitmap*) {
canvas.drawBitmap(mContentBitmap, mBitmapRect, mBitmapRect,
mPaint);
}
}

take attention the mContentBitmap here, this is the cache of the canvas, if
it is unnessarry to redraw your whole view, just call canvas.drawBitmap()
method

-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 PGP SIGNED MESSAGE-
> Has...
> >> I think you are trying to useTelephonyManager.getLine1Number();
>
> >> Instead create an object of theTelephonyManagerand then call the

> >> getLine1Number();
>
> We're already doing that --- here's the code:
>
>TelephonyManagertm = (TelephonyManager)

> _context.getSystemService(Context.TELEPHONY_SERVICE);
> return despace(tm.getLine1Numb...
> For more options, visit this group athttp://
groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" ...

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 below:

mFootView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
  // my code
}
 });

after this, when i press down dpad, there is no response, so i Register a
callback to be invoked when a key is pressed in this mFootView. with code
below:

  mHiddenFolders.setOnKeyListener(new OnKeyListener(){

@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
// my code
   Log.v("onKey", "test");
return  true;
}

});

unfortunately, still nothing happened :(

After some attempt, i found this ugly way:

@Override
public void onItemClick(AdapterView parent, View view, int position,
long id) {
// TODO Auto-generated method stub

if (id == -1) {
if (position == 0) {
   * // when click a header view*
} else {
   *// when click a footer view*
}
} else {
   * // when click other normal row*
}
}

finally, it works, but i'm wondering if there is a smart way to do this?


 --
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 for MediaStore.Images that I think will work for
> audio also,
>
> public String getRealPathFromURI(Uri contentUri) {
>
>// can post image
>String [] proj={MediaStore.Images.Media.DATA};
>Cursor cursor = managedQuery( contentUri,
>proj, // Which columns to return
>null,   // WHERE clause; which rows to return (all
> rows)
>null,   // WHERE clause selection arguments (none)
>null); // Order-by clause (ascending by name)
>int column_index =
> cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
>cursor.moveToFirst();
>
>return cursor.getString(column_index);
> }
>
> This way I´m left with two questions:
>
> How can I get the name of the track?
> Will any changes to the container also change the data in the real
> file?
>
> Tnx
>
> On 4 maio, 22:46, Gabriel Simões  wrote:
> > Hello,
> >
> > I´ve been trying to understand how to get data about all the audio
> > files in the device using MediaAudio but unfortunately the
> > documentation is far from clear. Also, there´s almost nothing about it
> > on the forum right now and I couldn´t find good resources over the
> > internet.
> >
> > I´ve seen pretty quick and objective examples on how to access the
> > main information from the containers but I couldn´t find in any place
> > how I could get the names of the tracks (MediaStore.Audio.AudioColumns
> > doesn´t have  an specific constant for it) and the most important, how
> > I could retrieve the path for the media (audio file in this case) I´ve
> > found using the info on MusicStore.Audio.
> >
> > am I missing something here? It seems it should be so easy but I can´t
> > find the info!
> >
> > Also ... if I change any data on the container, will this data be also
> > changed in the real file as well?
> >
> > Thanks for your help,
> > Gabriel
> >
> > --
> > 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 email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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
>> application to read configuration's file and so on
>>
>
> No, you don't.
>
>
>> Can you suggest me how to solve this problem?
>>
>
> You don't. This is not allowed, and for good reason.
>
> Why, exactly, do you think you need to read into other apps' data?
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 has
> anyone heard about PDF support? I am reading an RSS feed and it has some
> notes in PDF format that I would like to display within my app.
>
> --Sean
>
> Calendar: http://www.google.com/calendar/embed?src=darkmane%40gmail.com
> Livejournal: http://darkmane.livejournal.com
>
> Every 5 minutes you spend writing code in a new language is more useful
> than 5 hours reading blog posts about how great the language is.
>
>
>  --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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"
>android:layout_height="wrap_content"
>android:textSize="20dip"
>android:text="JJJ says hello!"
>android:layout_marginLeft="10dip"
>android:paddingLeft="10dip"
>android:textColor="@android:color/black"
>android:background="@android:color/background_light"
>/>
> 
>
> On May 3, 11:55 am, Anurag Singh  wrote:
> > Paste your xml file.
> >
> > - Anurag Singh
> >
> >
> >
> > On Mon, May 3, 2010 at 11:59 PM, bwin  wrote:
> > > I'm having a problem with TextView and would appreciate some help
> > > finding out what I might be doing wrong.  (Or if this is in fact an
> > > Android problem, a workaround :-)
> >
> > > If the first letter of text in a TextView is capital "J", the first
> > > pixel or two are cut off so that the "J" starts looking a bit more
> > > like an "I".  If I set the gravity to, say, "center", the "J" looks
> > > OK.  Setting layout_marginLeft or paddingLeft to a non-zero value does
> > > not help.
> >
> > > If you would like to see this effect for yourself, the easiest way is
> > > to create a default generic Android project and change the "hello"
> > > text to something like "JJJ".
> >
> > > Thanks for any help you may be able to give me.
> > > Brian.
> >
> > > PS: I just typed in "JJ" into the search widget of the generic Android
> > > Browser and its got the same problem.  OK, so maybe it's an Android
> > > bug.  Anyone have an idea for a workaround?  I could stick a space in
> > > the front of all initial "J"s, but that's, um..., a little
> > > distasteful.
> >
> > > --
> > > 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 email to
> > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > 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 email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
---
Thanks

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 interface in a .aidl file, which android will
> then implement (partially) in a dynamically generated class. Android
> will create an abstract class called Stub, which you then need to
> instantiate and add the implementation of the methods which you
> defined in your .aidl interface. Once all of that is in place, the
> remote service can be instantiated, and the methods declared in
> the .aidl interface file (and defined in your instantiation of the
> Stub class) can be called.
>
> That is my impression of how this mechanism works, however when I
> tried implementing it, I notice that the definitions for the methods I
> declared in the Stub class are not being run; instead what is being
> run is IBinder.transct()
>
> Here is a snippet of what I'm trying to do:
>
> This is implemented in my Service:
>
> public final INetService.Stub mBinder = new INetService.Stub() {
>
>public void sendString(String ID, String data) throws
> RemoteException {
>ServiceConnectionHandler connHandler = new
> ServiceConnectionHandler(ID, data);
>}
>
>public void sendObject(String ID, NetMessage data) throws
> RemoteException {
>ServiceConnectionHandler connHandler = new
> ServiceConnectionHandler(ID, data.getData());
>}
>
> };
>
> And this is inside my Activity, which tries to use and talk to the
> service:
>
> private INetService mService = null;
> private NetServiceConnection conn = null;
>
> class NetServiceConnection implements ServiceConnection
> {
>public void onServiceConnected(ComponentName name, IBinder
> service) {
> mService = INetService.Stub.asInterface(service);
>  Log.d( "ADDERSERVICECLIENT","onServiceConnected" );
>}
>
>@Override
>public void onServiceDisconnected(ComponentName name) {
>mService = null;
>Log.d( "ADDERSERVICECLIENT","onServiceDisconnected" );
>}
> };
>
>  private void initService()
> {
>conn = new NetServiceConnection();
>Intent i = new Intent();
>i.setClassName( "framework.network",
> "framework.network.NetService" );
>if (!bindService( i, conn, Context.BIND_AUTO_CREATE))
>{
>Toast.makeText(this, "bindService fails..",
> Toast.LENGTH_LONG).show();
>}
> }
>
> 
>
> mService.sendString((char)0, finalMessage);
>
> The methods defined in INetService.Stub, like sendString, appear never
> to be called; clearly I'm missing something; any thoughts?
>
> Thanks a lot!
>
> Iva
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
---
Thanks

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 one.
>
> Any advice is very appreciated.
>
>
> br, Robin.
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
---
Thanks

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 LayoutInflater.
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
>  --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
---
Thanks

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 like to set the background for all buttons
> dynamically, then it would be neat to do it just after creation.
> Anyway, the question still is: why doesn't onCreateView() get called?
> /Michael
>
>
> On 3 Maj, 01:34, TreKing  wrote:
> > On Sun, May 2, 2010 at 2:39 PM, Michael Scott 
> wrote:
> > > I have an Acitivity and I would like to fiddle with the views upon
> creation
> >
> > Can't you just findViewById(int) for whichever view you want to fiddle
> with
> > and set whatever properties you want on if after you get it? After
> calling
> > setContentView() of course.
> >
> >
> ---­--
> > TreKing - Chicago transit tracking app for Android-powered deviceshttp://
> sites.google.com/site/rezmobileapps/treking
> >
> > --
> > 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 email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
---
Thanks

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

回复: [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_ardcore.chm"};

Process p = Runtime.getRuntime().exec(prog);

so if anyone knows how to do that than please reply.


Regards,
Brijesh Masrani

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 1 or Button 2 are clicked, onDraw is dispatched to
> My View also.
> Is this the correct behaviour?
> Since drawing in my view is resource intensive, can this be avoided?
>
> What's the best way / practices for the same?
>
>
> --
> Happy Hacking,
> Gaurav Vaish
> www.mastergaurav.com
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en