Re: [android-developers] DDMS Allocations tracker not picking up activity when using a real phone

2010-08-05 Thread Dilli rao
probebly you need to enable the debugging option available in the settings
- applications-...

may be it will work for you.

Regards,
Dilli

On Wed, Aug 4, 2010 at 3:54 AM, Greg Siano gregmsi...@gmail.com wrote:

 I'm trying to use DDMS to track my allocations, but it only finds my
 activity if I run it on the emulator.  If I run my app on my phone it
 can't find it, even though it finds the phone.  Is there anything
 specific that I need to do that I might have missed?

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




-- 
Thank you
Dilli Rao

-- 
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] no devices in adb devices list

2010-04-06 Thread Dilli rao
You need to create emulator using AVD manager tool in eclips.
You can create multiple emulators based on sdk levels.
after running the emulator you can find the devices currently running by
 adb devices command

Use AVD Manager tool in eclips to create emulator

On Wed, Apr 7, 2010 at 10:31 AM, rakesh rakeshrap...@gmail.com wrote:

 Hi all,
  i have set android sdk, adt plug-in everything fine but i dont find
 devices when i type adb devices, the list is empty. how can i add
 emulators to the list or  how to get emulators

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

 To unsubscribe, reply using remove me as the subject.




-- 
Thank you
Dilli Rao

-- 
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] ExpandableListView Problem

2010-03-03 Thread Dilli rao
Hi

in your xml change the bold item you must specify the id respect to
*...@android:id/list
  not @+id/list*


ExpandableListView
   android:id=*...@android:id/list*
   android:layout_width=wrap_content
   android:layout_height=wrap_content /
/LinearLayout

Thank you.


On Wed, Mar 3, 2010 at 5:52 PM, YCH yip@gmail.com wrote:

 Hi all,

 I am encountering an exception in the onCreate method of an activity.

 java.lang.RuntimeException: Your content must have a
 ExpandableListView whose id attribute is 'android.R.id.list'

 The onCreate method is as below.

 public class TestActivity extends ExpandableListActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.tab1);
registerForContextMenu(getExpandableListView());
getData();
}
 

 The layout view XML is as below.

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=wrap_content
  android:layout_height=wrap_content
 ExpandableListView
android:id=@+id/list
android:layout_width=wrap_content
android:layout_height=wrap_content /
 /LinearLayout

 I've already changed the ID of the ExpandableListView to list. But
 it is not effective.

 Any ideas on what's wrong? Thanks!

 Thanks  Regards,
 YCH

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




-- 
Thank you
Dilli Rao

-- 
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] Down Tab Bar in Android

2010-02-18 Thread Dilli rao
implement your own layout with *tabhost, framelayout *and *tabwidget* you
can arrange the tabs at bottom of the layout

On Thu, Feb 18, 2010 at 11:06 AM, Sasikumar S sasikumar.it1...@gmail.comwrote:

 Hi,


 How to show tab bar in down in android like iphone ?

 Any suggestion?

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




-- 
Thank you
Dilli Rao

-- 
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: How to play a media file on emulator

2010-02-18 Thread Dilli rao
you have to start the player in onprepared listener

and also check the android media player compatibility with the media file
codec ( which you want to play)

On Wed, Feb 17, 2010 at 3:39 PM, prachi prachi.tya...@wipro.com wrote:

 hey hiii

 I didnt get u u mean to say dat the prob is wid the emulator

 actually my code looks lyk dis ---i hav saved my audio file on
 server...
 n den runnig dis code

 MediaPlayer m=new MediaPlayer();
 m.setDataSource(path);  //path is a String variable containing the
 path of audio file stored on server side
 m.prepare();
 m.start();

 Error it shows isjava.io.IOException:Prepare Failed:status=0x1

 can u plzz tell dat this error is coming bcozz dere is some problem
 with the emulator.
 On Feb 4, 10:37 am, prachi prachi.tya...@wipro.com wrote:
  Hey hii all
 
  I hav a code toruna start a media player a play anaudiofilesaved
  in my local disk.But the code is not running and it is showing an
  exception:
 
  PlayerDriver PVMFInfoErrorHandlingComplete
 
  Plzz help me out!!

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




-- 
Thank you
Dilli Rao

-- 
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: How to play a media file on emulator

2010-02-18 Thread Dilli rao
one more Q.  local disk means (hard disk or sdcard of emulator)



On Thu, Feb 18, 2010 at 7:15 PM, Dilli rao dilliraomca...@gmail.com wrote:

 you have to start the player in onprepared listener

 and also check the android media player compatibility with the media file
 codec ( which you want to play)


 On Wed, Feb 17, 2010 at 3:39 PM, prachi prachi.tya...@wipro.com wrote:

 hey hiii

 I didnt get u u mean to say dat the prob is wid the emulator

 actually my code looks lyk dis ---i hav saved my audio file on
 server...
 n den runnig dis code

 MediaPlayer m=new MediaPlayer();
 m.setDataSource(path);  //path is a String variable containing the
 path of audio file stored on server side
 m.prepare();
 m.start();

 Error it shows isjava.io.IOException:Prepare Failed:status=0x1

 can u plzz tell dat this error is coming bcozz dere is some problem
 with the emulator.
 On Feb 4, 10:37 am, prachi prachi.tya...@wipro.com wrote:
  Hey hii all
 
  I hav a code toruna start a media player a play anaudiofilesaved
  in my local disk.But the code is not running and it is showing an
  exception:
 
  PlayerDriver PVMFInfoErrorHandlingComplete
 
  Plzz help me out!!

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




 --
 Thank you
 Dilli Rao




-- 
Thank you
Dilli Rao

-- 
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 read XML file from sdcard and parse it?

2010-01-08 Thread dilli rao
InputStream obj_is = null;
Document obj_doc = null;
DocumentBuilderFactory doc_build_fact = null;
DocumentBuilder doc_builder = null;
obj_is = new FileInputStream(/sdcard/xmlfile.xml);
doc_build_fact = DocumentBuilderFactory.newInstance();
doc_builder = doc_build_fact.newDocumentBuilder();

obj_doc = doc_builder.parse(obj_is);

 NodeList obj_nod_list = null;
  if(null != obj_doc)
{
org.w3c.dom.Element feed =  obj_doc.getDocumentElement();
obj_nod_list = feed.getElementsByTagName(tag name u want to parse);
}


to get the no of elements founded :  obj_nod_list.getLength();


On Fri, Jan 8, 2010 at 12:56 PM, ROHIT rohit...@gmail.com wrote:

 I want to access the XML file from sdcard and i want to parse thar
 file. How ta access this file and pass it to Parse method?

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




-- 
Thank you
Dilli Rao
-- 
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] Re: key lisener

2009-09-09 Thread dilli rao
By implementingonKeyDown   you can control key events


may be this will help you

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
//return super.onKeyDown(keyCode, event);
Log.i(getClass().getSimpleName(),  onKeyDown(int keyCode, KeyEvent event)
called ** );
if(keyCode == KeyEvent.KEYCODE_BACK)
{
Log.i(getClass().getSimpleName(), back key pressed   );
}
return true;
}

Thank you,

Dilli Rao


On Tue, Sep 8, 2009 at 3:36 PM, sasi kumar sasikumar.it1...@gmail.comwrote:

 use key lisener..


 On Tue, Sep 8, 2009 at 3:34 PM, sasi kumar sasikumar.it1...@gmail.comwrote:

 can any one give example for key lisener

 --
 Thanks  Regards
 Sasi Kumar.S




 --
 Thanks  Regards
 Sasi Kumar.S

 


--~--~-~--~~~---~--~~
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] Re: custom list view

2009-09-09 Thread dilli rao
see API demos   package : com.example.android.apis.view
file :   list14.java  example   in that you can modify the text view
properties as you need..

Thank you,
Dilli Rao

On Tue, Sep 8, 2009 at 11:21 AM, Sasi Kumar sasikumar.it1...@gmail.comwrote:


 I need a custom list view.

 For reducing the list view font size.

 I need a code for that..

 can any one help for this.

 thanks in advance.
 


--~--~-~--~~~---~--~~
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] Re: Http server at localhost

2009-09-03 Thread dilli rao
you can set a http server running in the local machine (Android)and you can
uset it as a simple server

try to port the server in android (as it is ) no modifications required


http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java

http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.javain
android

and use it it works for my requirements very well

may be it will use full for you

Thank you

Dilli


On Fri, Sep 4, 2009 at 5:19 AM, droidin.net bost...@gmail.com wrote:


 Is it possible to do something like WebView#loadUrl(http://10.0.0.2/
 index.html) with service acting as local http server? Where would one
 start? Will I need at least partial http server implementation that
 would listen on the socket?
 


--~--~-~--~~~---~--~~
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] Re: Please help _Confused_Server Side For android mobile application

2009-09-03 Thread dilli rao
Hi Mohith K M*
*
*
*you  may use php for your request page design at server side and for
interaction with mysql and do the large processing at server side and send
back the results to the client (ANDROID)

use post or get request methods while sending the request to the server and
process the response from the server

right now i am doing in the same way ( it works fine for me)

Thank you

Dilli



On Fri, Sep 4, 2009 at 1:02 AM, Mohith K M mohith3...@gmail.com wrote:


 I am beginner (Both Android and Server side programming),


 Am having doubt about Server side for my Android mob application

 My requirements are
 1. Receive request from android mob application
 2.Run algorithm on Huge Database Depending on some variable xxx
 inside query request from mob app
 3. Send back the result produced to Android mob application.


 What type of Server should i run?
 Database-mysql??How can i combine algorithm and database
 how can i parse the request from mobile application and run
 appropriate algorithm



 Will JBOSS satisfy my need?
 or please Tell me which one i should use..

 


--~--~-~--~~~---~--~~
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] Re: How do I delete an app from 'All Android Market listings'?

2009-09-03 Thread dilli rao
if u r connected your development machine
then then use   :  adb uninstall packagename   to uninstall from u r
mobile

or use   settings-applicationmanager- and choose old app and uninstall it

Thank you

Dilli

On Fri, Sep 4, 2009 at 4:34 AM, gsmd gsm...@gmail.com wrote:


 After changing package name, I've got an old version stalled in
 unpublished state. Any way to delete it?
 


--~--~-~--~~~---~--~~
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] Re: How to do we take a Screenshot using ADB Comand Line

2009-08-27 Thread dilli rao
If you want to get the screenshot of emulator or device ( screen )
while running the emulator open the ddms located in tools directory of
android sdk and choose

device - screen capture

you can do it for real device by connect it to the pc through usb cable and
do the same

I think this will help you.

Thank you.
Dilli Rao

On Thu, Aug 27, 2009 at 6:18 PM, Prakash Vel prakash...@gmail.com wrote:


 Read through Couple of articles , Most of them point to the DDMS
 through that we could take the Screenshot.

 However i am trying to capture the Emulator  screen from the Command
 Line.
 Not Sure how to tweak the framebuffer /Surface flinger to do the job.

 or is there any app that we could run in the background and get the
 job done.

 help will be much appreciated.

 Thanks and Regards
 Prakash Vel


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---