Re: [android-developers] Re: Memory Info

2010-07-14 Thread chethan kumar
Go thru this API , you may get some information.
http://developer.android.com/reference/java/lang/Runtime.html
you have some methods like

FreeMemory, TotalMemory  MaxMemory

you could access in this way
Runtime.getRuntime().freeMemory();
Runtime.getRuntime().totalMemory();
Runtime.getRuntime().maxMemory();



On Thu, Jul 15, 2010 at 12:18 AM, aparna aparnakakkar2...@gmail.com wrote:

 I want
 totalphysicalmemory,availphysicalMemory,TotalStorageMemory
 ,AvailStorageMemory.

 On Jul 13, 11:11 pm, chethan kumar ckumar...@gmail.com wrote:
  Check out this linkhttp://
 developer.android.com/reference/android/app/ActivityManager.Me...
  it gives you memory info of the device.
  Regards
  Chethan
 
  On Mon, Jul 12, 2010 at 4:18 PM, aparna aparnakakkar2...@gmail.com
 wrote:
   Hello,
 
   How can I fetch the memory Information(physical and storage) from
   mobile device.
 
   I didn't get any API's..
 
   Plz help
 
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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] RadioGroup

2010-07-13 Thread chethan kumar
You mean you want to fire some action based on which RadioButton is Clicked
rite...
If that is the case use *isChecked() method*  in your Button.ONclick
ListenerHope it helps

Regards
Chethan

On Tue, Jul 13, 2010 at 9:01 PM, anil kukreti success.anil...@gmail.comwrote:

 use the setChecked(boolean) method for particular radiobutton which you
 want to get selected on clicking submit button


 On Tue, Jul 13, 2010 at 9:48 AM, perumal316 perumal...@gmail.com wrote:

 Hi All,

 In my application I have a RadioGroup within which has 2 RadioButtons
 Then I have another 'submit' button.

 Upon clicking submit button I want to do tasks based on which button
 is selected in the RadioGroup.

 I can do this when there is no RadioGroup involved and there are only
 2 buttons but with RadioGroup nothing happens when I click submit
 button.

 Any idea how to resolve 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Thanks for Cooperating!
  Anil Kukreti

 Network transforms ideas to reality.
 09312646623
 Linked In : http://in.linkedin.com/in/anilkukreti
 Skype Id : anil.kleward

 --
 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.comandroid-developers%2bunsubscr...@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] Memory Info

2010-07-13 Thread chethan kumar
Check out this link
http://developer.android.com/reference/android/app/ActivityManager.MemoryInfo.html
it gives you memory info of the device.
Regards
Chethan
On Mon, Jul 12, 2010 at 4:18 PM, aparna aparnakakkar2...@gmail.com wrote:

 Hello,

 How can I fetch the memory Information(physical and storage) from
 mobile device.

 I didn't get any API's..

 Plz help

 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.comandroid-developers%2bunsubscr...@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: Launch an Activity Form a Service

2010-07-13 Thread chethan kumar
you want to start activity from a service rite

So you can just do this.

Intent intent = new Intent(*Your Service Class Name.this*, *Activity You
Want to Go.class*);
startActivity(intent);

MAke sure you have added the activity in your Manifest.

regards
Chethan

On Tue, Jul 13, 2010 at 11:52 PM, Boozel boozelcl...@gmail.com wrote:

 It now gives this error
 Unable to find explicit activity class {com.example.test/
 TsandCs.class}; have you declared this activity in your
 AndroidManifest.xml?
 here is the code i used

 try{

Intent i = new Intent( Intent.ACTION_MAIN );
Log.d( LOG_TAG,onCreate - 3 );
i.setComponent(
new ComponentName( com.example.test,
 TsandCs.class )
);
Log.d( LOG_TAG,onCreate - 4 );
i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
i.addFlags( Intent.FLAG_FROM_BACKGROUND);
Log.d( LOG_TAG,onCreate - 5 );
 startActivity( i );
  Log.d( LOG_TAG,onCreate - 6 );
}
 and my manifest is shown in the other post.
 ant ideas?


 On Jul 13, 7:33 pm, Pent tas...@dinglisch.net wrote:
  Intent i = new Intent( Intent.ACTION_MAIN );  // don't think main is
  necessary actually :)
 
  i.setComponentName(
  new ComponentName( pkgname, activityclassname )
  );
 
  i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
  i.addFlags( Intent.FLAG_FROM_BACKGROUND);
 
  try {
   startActivity( i );}
 
  catch ( ActivityNotFoundException e ) {
 
  }
 
  If the user has just left an app via Home, you might find it takes 5
  seconds for your activity to appear. An Android bug I logged about 9
  months ago,
  grouse grouse :)
 
  Pent

 --
 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.comandroid-developers%2bunsubscr...@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: Launch an Activity Form a Service

2010-07-13 Thread chethan kumar
Also Add this in between
Intent intent = new Intent(Your Service Class Name.this, Activity You
Want to Go.class);
intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );

startActivity(intent);


On Wed, Jul 14, 2010 at 12:02 AM, chethan kumar ckumar...@gmail.com wrote:

 you want to start activity from a service rite

 So you can just do this.

 Intent intent = new Intent(*Your Service Class Name.this*, *Activity
 You Want to Go.class*);
 startActivity(intent);

 MAke sure you have added the activity in your Manifest.

 regards
 Chethan

   On Tue, Jul 13, 2010 at 11:52 PM, Boozel boozelcl...@gmail.com wrote:

 It now gives this error
 Unable to find explicit activity class {com.example.test/
 TsandCs.class}; have you declared this activity in your
 AndroidManifest.xml?
 here is the code i used

 try{

Intent i = new Intent( Intent.ACTION_MAIN );
Log.d( LOG_TAG,onCreate - 3 );
i.setComponent(
new ComponentName( com.example.test,
 TsandCs.class )
);
Log.d( LOG_TAG,onCreate - 4 );
i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
i.addFlags( Intent.FLAG_FROM_BACKGROUND);
Log.d( LOG_TAG,onCreate - 5 );
 startActivity( i );
  Log.d( LOG_TAG,onCreate - 6 );
}
 and my manifest is shown in the other post.
 ant ideas?


 On Jul 13, 7:33 pm, Pent tas...@dinglisch.net wrote:
  Intent i = new Intent( Intent.ACTION_MAIN );  // don't think main is
  necessary actually :)
 
  i.setComponentName(
  new ComponentName( pkgname, activityclassname )
  );
 
  i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
  i.addFlags( Intent.FLAG_FROM_BACKGROUND);
 
  try {
   startActivity( i );}
 
  catch ( ActivityNotFoundException e ) {
 
  }
 
  If the user has just left an app via Home, you might find it takes 5
  seconds for your activity to appear. An Android bug I logged about 9
  months ago,
  grouse grouse :)
 
  Pent

 --
 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.comandroid-developers%2bunsubscr...@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