[android-developers] Looper

2012-08-16 Thread Dilli
Hi all,

I am getting error like below.

E Looper : Error modifying epoll events for fd 163, errno=2

error = 2  indicates  no entry for FD

why it happened ??
what is the exact reason and 

thanks in advance.

Regards,
Dilli.

-- 
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] Dialog not displayed properly in Landscape mode

2010-10-31 Thread Dilli
Hi all,

@landscape mode

In messaging application screen i am trying to attach a audio , it pop
up a dialog and, at the same time some incoming call came, after
disconnecting the call the popup dialog displayed (half)  not full
dialog ( only header of dialog visible no buttons are visible to
select or cancel),

It is not happening in the portraite mode,

how to solve it.

need help

Regards,
Dilli

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

[android-developers] Re: Getting all of a long string in DDMS?

2010-03-29 Thread Dilli
In your code you should read the complete data available in the
responseStream because the stream may don't give complete data at one
attempt.
You need to call read method on responseStream  till it ends. ( i.e:
read bytes size -1)
i.e read the data till you got end of stream.
then convert it to String and display

better way is to read block by block and display.

May be this will help you.

Thank you

On Mar 29, 3:43 pm, Anna PS  wrote:
> Hi all,
>
> I'm getting a server response back in ddms, here's my code:
>
>                         InputStream responseStream = 
> method.getResponseBodyAsStream();
>                         responseString = 
> convertStreamToString(responseStream); // standard
> function for InputStream > String
>                         int statusCode = method.getStatusCode();
>                         method.releaseConnection();
>                         Log.e("httpPost", "Response string: " + 
> responseString + ", code: "
> + statusCode);
>
> But I'm finding that ddms logs only show about the first 50 lines of
> the response, then cuts everything else off, which isn't very helpful,
> since it means I can't see any of the useful info. I don't have much
> control over the content of the response - it's a standard Django
> debug page, i.e. quite long.
>
> Does anyone know how I can get ddms to show the whole thing?
>
> 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Video View

2010-03-29 Thread Dilli
Hi all,

How to add an icon on the top of VideoView,
I want my player  VideoView window should contain the brand image of
my player.
How to add it to the VideoView

Thank you
Dilli

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


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*





Thank you.


On Wed, Mar 3, 2010 at 5:52 PM, YCH  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.
>
> 
>   xmlns:android="http://schemas.android.com/apk/res/android";
>  android:layout_width="wrap_content"
>  android:layout_height="wrap_content">
> android:id="@+id/list"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content" />
> 
>
> 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.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  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  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 is>>>java.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  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.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] 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  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 is>>>java.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  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.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 wrote:

> 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.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] 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  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.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] Get supported media types ( programatically)

2010-01-05 Thread Dilli
Hi all

how to get the supported media types of a device

because all android devices not support all media formats

i behave my app based on supported media types

how can i get that information

Any ideas

Thank you

Dilli

-- 
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] Supported media Audio/video formats

2010-01-02 Thread Dilli
Hi all

How can i get the supported media formats (Audio/video) for a device
( like htc mytouch, droid, adp etc ...) programmatically ?

Thank you
Dilli

-- 
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] Uninstalling application - feedback

2009-12-23 Thread Dilli
Hi all,

i want to get the feed back of my application when the user try to
uninstall my app.

I added a Broadcast Receiver to my app, but in Documentation stated
that

public static final String ACTION_PACKAGE_REMOVED
Broadcast Action: An existing application package has been removed
from the device. The data contains the name of the package.  ***
The package that is being installed does not receive this Intent.
***

according to this my app does not get self removing broadcast.

Is there any way to get the feedback from user about my app while
uninstalling ??

OR

can i get the result of the default feedback form provided by Market
application ( from google ) while uninstalling the application


give me some suggestion.


Thank you
Dilli.




-- 
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] Simulating scrollable tables

2009-12-18 Thread Dilli
Hello,
I would like to create a web page with two iframes. The problem is
that even though my web browser one of the frames is scrollable and on
the browser, it shows up till the end. This is troubling me. Could
someone help me find a solution to scrolling between the iframes for
the android browser??

For example, try to view this http://www.cs.tut.fi/~jkorpela/html/iframe.html
link section

Simulating scrollable tables




using web browser as well as android browser.
I want to implement the same on android.

-- 
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] Multiple screen sizes problem ( layouts )

2009-12-16 Thread Dilli
Hi all,

I have created layout-large and testing against android 2.0.1 WVGA.
however, its picking layout-normal.
Can anybody suggest me what I am doing wrong.
Even though, I have 3 layouts ( layout-normal, layout-large, layout-
small),
Its always picking layout-normal.
why its so.
can anybody guide me.

i added properties to manifest file



and




thx

Dilli

-- 
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] Iphone like tab view

2009-12-01 Thread Dilli
Hi all

i want to develop application which UI should look like ( iphone
view )

ie ( by clicking on tab item it's content (different views like list
view, web view ,...)  to be loaded )

currently i am using Tab view  but i want my application view should
be like iphone tab view

suggest me how can i do it ??


Thank you

-- 
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 get the version of os used in the phone

2009-10-30 Thread Dilli

Thank you,


On Oct 30, 6:31 pm, Mark Murphy  wrote:
> Dilli wrote:
> > How can i get the os version currently using the android mobile
>
> > is any way to get that programatically
>
> Look at android.os.Build.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training
--~--~-~--~~~---~--~~
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 call an Activity method from another java file

2009-10-30 Thread Dilli

You can implement some listener concept

write a interface in your normal java file
and implement that method in activity

then by calling that method in the normal java file you can make a
call to implemented method in activity class

Use handlers to do any Operations in the activity ( in implemented
method - other wise it will give u error)

May be this will help you a little.

On Oct 30, 4:00 pm, Stefan  wrote:
> Hello,
>
> i have following problem:
> I have my "MainActivity". In this Activity, i start a thread
> (SaxParser in another "normal" java file). Now I want to call a method
> from the MainActivity out of the normal java file? I have read
> something of an Application object, but i only find things, where i
> have to create a new Intent (...).
> Is it possible to use the application object in the other "normal"
> java file like that:
>
> Second/normal/SaxParser-file:
>
> public class XMLHandler extends DefaultHandler implements Parcelable
> {
>    
>    ConstructorOfSecondJavaFile(  ApplicationObject o)
>    {
>       this.applicationObject = o;
>       ...
>    }
>
>     ...
>     o.callMethodOfMainActivity (int aValue);
>
> }
>
> MainActivity:
>
> private int val;
>
> public class MainAcitivity extends ...Acticity
> {
>   public onCreate (..)
>   {
>      ...
>   }
>
>   public callMethodOfManinActivity (int val)
>   {
>     this.val = val;
>   }
>
> }
>
> Thanks,
> Stefan
--~--~-~--~~~---~--~~
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 to get the version of os used in the phone

2009-10-30 Thread Dilli


Hi all,

How can i get the os version currently using the android mobile

is any way to get that programatically

Thank you

Dilli Rao.M
--~--~-~--~~~---~--~~
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] Write text in horizontal

2009-09-14 Thread Dilli

Hi

How to set text view properties to display it horizontal to the screen

ie. one line horizontal to the screen

--~--~-~--~~~---~--~~
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 to set border to linear layout

2009-09-10 Thread Dilli

Hi

I want to set a border ( thick line) to the linear layout

is it possible then how can i set it


Thank you

Dilli
--~--~-~--~~~---~--~~
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 wrote:

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

> use key lisener..
>
>
> On Tue, Sep 8, 2009 at 3:34 PM, sasi kumar wrote:
>
>> 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: 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 uninstallto 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  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: 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  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: 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.java>in
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  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: 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  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
-~--~~~~--~~--~--~---



[android-developers] wma and wmv format supportence in android mobile

2009-06-29 Thread Dilli


Hi all,

Based on documentation provided at
http://developer.android.com/guide/appendix/media-formats.html

android T-Mobile G1 supports WMA and WMV

my question is .

1) Is all mobiles based on Android OS supports WMA, WMV ?

and

2) Is there any api function ( like
mediaplayer.getSupportedContentTypes() in J2ME)
to get the supported media types

Thank you.
--~--~-~--~~~---~--~~
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] Make a application default launcher

2009-06-17 Thread Dilli


Hi,

i am developing a simple application which takes xml files and do the
operations

i am testing it on emulator.  1.5 sdk

I set the intent filters and data and mime types as follows in the
manifest file

 
 
 
 
 
 





  

Note:

 while loading the xml file from the browser directly loads it as a
text
 it gives data:htt://./file.xml
 but it don't give the mime type   ie: type:

 how to launh my activity as default for these type of xml files

 need help

 Thank you.

--~--~-~--~~~---~--~~
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 to play youtube urls in android?

2009-06-09 Thread Dilli

hi,

I have written a small example which plays youtube videos.

the code is:
startActivity(youtubeIntent = new Intent(Intent.ACTION_VIEW,Uri.parse
(youtubeUrl)));

but I got the alert as "sorry, this video is not available".

Any help? how to play youtube videos in android device by programming?

Thanks,
Dilli.
--~--~-~--~~~---~--~~
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: Audio streaming/progressive download over HTTP

2009-05-11 Thread Dilli

Hi Dave Sparks,

According to above discussion
raw aac file format not supported in the android.

If i send RTP packets which contains AAC audio frame in "mp4a-latm"
format , then the android will capable to play the stream ?

i am using android sdk  "android-sdk-windows-1.0_r2"



On Apr 23, 10:16 pm, Dave Sparks  wrote:
> I'm not sure which reference you a referring to, but MPEG4-SP decode
> is supported.
>
> Encoding implies streaming upload, but the subject of this thread is
> download, not upload. If you are asking about RTSP upload streaming,
> that is not supported in any format today.
>
> On Apr 23, 12:02 am, tainy  wrote:
>
> > what is more:
>
> > according to "media-formats.html" in the reference, MPEG4 SP is not
> > supported for both encoding and decoding,
> > so how can it support streaming?
> > quite confusing.
>
> > On 4月23日, 上午7时59分, Dave Sparks  wrote:
>
> > > Progressive streaming using HTTP is well-supported.
>
> > > RTSP support isn't great yet, but it will get better with the 1.5
> > > release (Cupcake), which fixes the 302 redirect problem. There may be
> > > some issues with RTSP and H.264 - we found some issues with the
> > > hardware codec late in the test cycle that we're too risky to fix. H.
> > > 263 and MPEG4-SP should work pretty well.
>
> > > The caveat with RTSP is that carriers may block the streams.
>
> > > On Apr 22, 2:04 am, tainy  wrote:
>
> > > > Hi Dave:
>
> > > > for audio streaming, only MPEG-4(AAC LC/LTP decoding) is supported,
> > > > right?
> > > > what about video streaming? I found no place saying that is not
> > > > supported, but someone said video streaming is not available by now.
> > > > and if it will be supported, what format will be ok for streaming?
> > > > thanks!
>
> > > > tainy
>
> > > > On 4月16日, 上午3时40分, Dave Sparks  wrote:
>
> > > > > AAC inside an MP4 file is fine. There is no support for raw AAC
> > > > > streams.
>
> > > > > On Apr 15, 5:53 am, patrick  wrote:
>
> > > > > > When you say "no support for AAC", does it mean "no AAC support for
> > > > > > pure audio stream"?
> > > > > > Can we use rtspstreamingwith a MPEG-4 video containing an AAC audio
> > > > > > channel?
>
> > > > > > On Apr 14, 11:56 pm, Dave Sparks  wrote:
>
> > > > > > > We don't have an API for progressive download yet. Technically, 
> > > > > > > the
> > > > > > > website should say "progressivestreaming", but from a file 
> > > > > > > authoring
> > > > > > > perspective there is no distinction between the two.
>
> > > > > > > RTSP support is only available for MPEG-4 file formats. There is 
> > > > > > > no
> > > > > > > support for raw AMR, AAC, or MP3 streams.
>
> > > > > > > On Apr 14, 1:12 pm, Alexander  wrote:
>
> > > > > > > > Hi All,
>
> > > > > > > > I have a couple questions regarding audiostreaming/progressive
> > > > > > > > download over
> > > > > > > > HTTP. Could you please help me?
>
> > > > > > > > 1. MediaPlayer supports progressive download according to the
> > > > > > > > developer guide from
> > > > > > > > this 
> > > > > > > > linkhttp://developer.android.com/guide/topics/media/index.html
> > > > > > > > ("If you're
> > > > > > > > passing a URL to an online media file, the file must be capable 
> > > > > > > > of
> > > > > > > > progressive
> > > > > > > > download."). As far as I understand progressive download means 
> > > > > > > > media
> > > > > > > > playback during
> > > > > > > > download process with saving the media file to file system(SD 
> > > > > > > > card or
> > > > > > > > internal FS) after
> > > > > > > > the downloading is finished (if it's a file, not a stream in the
> > > > > > > > passed URL).
> > > > > > > > So, I tried to set the following URL: setDataSource
> > > > > > > > (http://84.204.154.49/mmapi/music.mp3). Playback is fine, but 
> > > > > > > > the file
> > > > > > > > isn't saved to
> > > > > > > > SD card or internal phone file system. Can MediaPlayer save 
> > > > > > > > media
> > > > > > > > content to the file system
> > > > > > > > after downloading is completed? Is there a way to turn on such
> > > > > > > > capability?
>
> > > > > > > > 2. Does MediaPlayer support HTTPstreaming? I tried to 
> > > > > > > > usehttp://217.10.32.134:8129/ultrafan128.mp3,http://62.32.66.180:8800,
> > > > > > > > also AMR-, AAC-
> > > > > > > > audio stream over HTTP on the local server, but playback does 
> > > > > > > > not
> > > > > > > > work. For example,
> > > > > > > > RTSPstreamingworks fine with AMR and AAC.
>
> > > > > > > > Thank you,
> > > > > > > >Alexander- 隐藏被引用文字 -
>
> > > > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -
--~--~-~--~~~---~--~~
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/andro

[android-developers] aac frame in rtp packet with media type audio "mp4a-latm" is supported in Android

2009-05-11 Thread Dilli

Hi Dave Sparks,

According to discussion
raw aac file format not supported in the android.

If i send RTP packets which contains raw AAC audio frame in "mp4a-
latm" format as payload, then the android will capable to play the
stream ?

i am using android sdk  "android-sdk-windows-1.0_r2".

need help



--~--~-~--~~~---~--~~
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 to enable log of Android OS code - opencore

2009-05-05 Thread Dilli

Hi

I want to enable the log of of the OS (android)

I enabled debugging mode to true,

i downloaded android source code of opencore  with  pvplayer and
protocols  etc

i cant see the errors printed in the source code in my logcat

is there any way to enable those log messages


need help

Thank you
--~--~-~--~~~---~--~~
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] Debugger Log information on device

2009-05-05 Thread Dilli


Hi all

I am developing an application using media player

I want to print total log to printed ( with the logs in the source
code of android - media player)

ie. the android(os) source code is in c++ and i trace the code and see
the printing of error messages.

but while compiling my project source and running on device i cant
see the messages printed in android source

I enabled device debugging in android manifest file.

I want to print the error messages those are placed in android source
(os)


can any one tell me how to achieve this.

Thank you
--~--~-~--~~~---~--~~
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] Audio record from Bluetooth headset

2009-04-09 Thread Dilli



Hi all

I am developing a recorder application
It works fine with Microphone.

I want to record from Blue tooth headset

i set it like

 my_Aud_Mgr.setMicrophoneMute(true);   //AudioManager  my_Aud_Mgr;
 my_Aud_Mgr.setBluetoothScoOn(true);

but it cant record from Blue tooth device

Ho to record from Blue tooth device

Need help

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] Phone call recorder

2009-04-06 Thread Dilli


Hi i am developing a recorder application

It works fine

but when phone call comes it records only one way conversation

but the caller voice is not recorded..

I found audio sources as

 recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);

OR

 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

How can i enable my application to record phone call ( Both
conversation)

Need help

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] Is Android browser supports Content-Encoding : gzip ???

2009-03-23 Thread Dilli

HI all

I am developing a application which launches automatically when the
user clicks on any link of pls / m3u in browser it works fine.

But some links the response from server is like bellow  it dos't
launches my activity

i founded that the difference is only Content-Encoding: gzip is extra
in those not working links

The android browser also dos't support these links


url : http://dir.xiph.org/by_format/MP3


HTTP/1.1 200 OK
Date: Tue, 24 Mar 2009 06:22:48 GMT
Server: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3
X-Powered-By: PHP/5.2.3-1ubuntu6.3
Content-Disposition: inline; filename="listen.m3u"
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 82
Connection: close
Content-Type: audio/x-mpegurl



How can i specify the Content-Encoding in intent filter

is Android browser supports Content-Encoding : gzip

Need help

Thank you
Dilli



--~--~-~--~~~---~--~~
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: set application as default

2009-03-15 Thread Dilli

Ok i got the solution
by adding the some lines to manifest.xml

 






On Mar 16, 9:58 am, Dilli  wrote:
> Hi all ,
>
> I am developing a shoutcast(streaming) player,
> it works fine..
> I want to launch my player automatically if user clicks any shoutcast
> link's in the browser.
> How can i set my player activity as default player if user clicks on
> streaming
> audio(.pls/m3u) links in the browser
--~--~-~--~~~---~--~~
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] set application as default

2009-03-15 Thread Dilli

Hi all ,

I am developing a shoutcast(streaming) player,
it works fine..
I want to launch my player automatically if user clicks any shoutcast
link's in the browser.
How can i set my player activity as default player if user clicks on
streaming
audio(.pls/m3u) links in the browser
--~--~-~--~~~---~--~~
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] launch application

2009-03-14 Thread Dilli


Hi all ,

I am developing a shoutcast(streaming) player,

it works fine..

I want to launch my player automatically if user clicks any shoutcast
link's in the browser.

How can i set my player as default player if user clicks on streaming
audio(.pls/m3u) links in the browser
--~--~-~--~~~---~--~~
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] apply color to Button

2009-03-12 Thread Dilli


Hi all,

I am developing a simple GUI with three buttons

i want to fill the button with color

but i found back ground color. if i set mybutton.setBackgroundcolor
(color);

it's not visible

how can i fill the button with color..

need help

Thank you

Dilli


--~--~-~--~~~---~--~~
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] get the md5 of sign key

2009-03-11 Thread Dilli


Hi all,

Is there any way to get the md5 hash of the signed key of the apk

I want to get the md5 hash of the sign key of the apk installed in my
device.

need help

Thank you
Dilli
--~--~-~--~~~---~--~~
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] get the signkey of the apk

2009-03-10 Thread Dilli


Hi all,

I want to get the key (by which the apk signed) of the apk file
installed

how to get the key (by which the apk signed) of apk

need help

Thank you
Dilli



--~--~-~--~~~---~--~~
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] media player error

2009-03-08 Thread Dilli



i am also getting the same error
while playing the media file

E/MemoryHeapBase(   31): mmap(fd=20, size=233472) failed (Invalid
argument)
E/VideoMIO(   31): Error creating frame buffer heap

any suggetions
--~--~-~--~~~---~--~~
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] wifi lock exception

2009-03-03 Thread Dilli



Hi all,

In my application  i am implementing wifilock

but it gives me exception

code


wifi_ManagerObj = (WifiManager) getSystemService
(Context.WIFI_SERVICE);
wifi_LockObj = wifi_ManagerObj.createWifiLock("wifi_myLock");
wifi_LockObj.acquire();

exception
--
E/AndroidRuntime(  331):java.lang.Exception: WifiLock finalized
while still held: wifi
E/AndroidRuntime(  331):at android.net.wifi.WifiManager
$WifiLock.finalize(WifiManager.java:720)
E/AndroidRuntime(  331):at dalvik.system.NativeStart.run(Native
Method)


How to avoid this exception

Need help

Thanks
Dilli
--~--~-~--~~~---~--~~
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] wifi manager

2009-02-28 Thread Dilli


Hi all i am developing an application regarding with the use wifi
nmanager

it works fine but

when i flip the screen repeatedly then it shows exception

E/AndroidRuntime(  921): java.lang.Exception: WifiLock finalized while
still held: wifi
E/AndroidRuntime(  921):at android.net.wifi.WifiManager
$WifiLock.finalize(WifiManager.java:720)
E/AndroidRuntime(  921):at dalvik.system.NativeStart.run(Native
Method)

i am getting the wifi lock once and releasing it at the time of
closing the application

Need help

Thank you
Dilli
--~--~-~--~~~---~--~~
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] xml parsing

2009-02-28 Thread Dilli


Hi all

I am developing a simple application to parse the xml content

but while parsing the xml data i am getting some attribute values like

  Español"

  België (nl)

How to get the original values  by avoid these symbols

currently i am using


at the top of the xml file

is it correct or i need to do more ???

Need help,

Dilli


--~--~-~--~~~---~--~~
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] expandable list

2009-02-26 Thread Dilli

Hi all,

I am developing a simple application

in that i am using a simple expandable list.
how can i set the list will be always opened (expanded).

Need help

Thank You
Dilli
--~--~-~--~~~---~--~~
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] Http connection

2009-02-24 Thread Dilli

Hi all,

I am developing a simple application

in that i display a list of URL's and when user clicks on any URL
connect to the url and display the content .

but when the url is not working it still try to connect and the
emulator not responding
after some time it gives me force close option

is there any way to prevent crash when the channel not work

i want to wait only form few seconds for getting reply from the
selected url

Need help.

Dilli


--~--~-~--~~~---~--~~
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] Tab view exception

2009-02-22 Thread Dilli


Hi all,

I am implementing a application which contains tab view

in tab view there is two tabs( two views)

 1) Expandable ListView

 2)  ListView

All goes well but when i switch from portraite to landscape mode

it gives me exception   --" java.lang.ClassCastException: "

W/dalvikvm( 1505): threadid=3: thread exiting with uncaught exception
(group=0x40010e28)
E/AndroidRuntime( 1505): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1505): java.lang.RuntimeException: Unable to start
activity ComponentInfo{dilli.tabView/dilli.tabView.Tabtest}:
java.lang.ClassCastException: android.widget.ListView$SavedState
E/AndroidRuntime( 1505):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2140)
E/AndroidRuntime( 1505):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2156)
E/AndroidRuntime( 1505):at
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
3086)
E/AndroidRuntime( 1505):at android.app.ActivityThread.access$1900
(ActivityThread.java:112)
E/AndroidRuntime( 1505):at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:1584)
E/AndroidRuntime( 1505):at android.os.Handler.dispatchMessage
(Handler.java:88)
E/AndroidRuntime( 1505):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1505):at android.app.ActivityThread.main
(ActivityThread.java:3742)
E/AndroidRuntime( 1505):at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime( 1505):at java.lang.reflect.Method.invoke
(Method.java:515)
E/AndroidRuntime( 1505):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime( 1505):at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:497)
E/AndroidRuntime( 1505):at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 1505): Caused by: java.lang.ClassCastException:
android.widget.ListView$SavedState
E/AndroidRuntime( 1505):at
android.widget.ExpandableListView.onRestoreInstanceState
(ExpandableListView.java:1049)
E/AndroidRuntime( 1505):at
android.view.View.dispatchRestoreInstanceState(View.java:5014)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchThawSelfOnly(ViewGroup.java:1090)
E/AndroidRuntime( 1505):at
android.widget.AdapterView.dispatchRestoreInstanceState
(AdapterView.java:761)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1077)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1077)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1077)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1077)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1077)
E/AndroidRuntime( 1505):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1077)
E/AndroidRuntime( 1505):at android.view.View.restoreHierarchyState
(View.java:4993)
E/AndroidRuntime( 1505):at
com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState
(PhoneWindow.java:1350)
E/AndroidRuntime( 1505):at
android.app.Activity.onRestoreInstanceState(Activity.java:826)
E/AndroidRuntime( 1505):at
android.app.TabActivity.onRestoreInstanceState(TabActivity.java:58)
E/AndroidRuntime( 1505):at
android.app.Activity.performRestoreInstanceState(Activity.java:792)
E/AndroidRuntime( 1505):at
android.app.Instrumentation.callActivityOnRestoreInstanceState
(Instrumentation.java:1171)
E/AndroidRuntime( 1505):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2117)



need help

Thank you

Dilli



--~--~-~--~~~---~--~~
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] Socket timeout exception

2009-02-19 Thread Dilli


Hi all,

I am developing an application which download data from web

while running on the emulator it works fine

but on device after some time (3-5 min) it gives exception

D/WifiStateTracker(   51): Deconfiguring interface and stopping DHCP
W/System.err( 1079): java.net.SocketException: The operation timed out
W/System.err( 1079): at
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl
(Native Method)
W/System.err( 1079): at
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream
(OSNetworkSystem.java:230)
W/System.err( 1079): at
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:
552)
W/System.err( 1079): at
org.apache.harmony.luni.net.SocketInputStream.read
(SocketInputStream.java:87)
W/System.err( 1079): at
org.apache.harmony.luni.net.SocketInputStream.read
(SocketInputStream.java:67)
..


Any suggetions.

Is there any limitations in time of connection on device ??

need help

Dilli
--~--~-~--~~~---~--~~
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] m4v files in android

2009-02-18 Thread Dilli



Hi all

I am developing a simple application to play m4v files

while try to play the m4v files it shows exception

E/QCvdecH264(   31): get_parameter: unknown param 0ff7a347
W/QCvdec  (   31): vdec: opened
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!
W/QCvdec  (   31): There is no input node available
E/QCvdec  (   31): partner/qct/proprietary/libOmxH264Dec/
vdecoder_i.cpp:952 *** ERROR ASSERT(0)
W/(   31): [vdec_core] vdec_queue error: 5
W/(   31): [vdec_core] frame buffer malloc failed, index: 8
W/QCvdec  (   31): Unable to allocate buffers (out of memory)
W/QCvdec  (   31): VDL_Configure_HW: Interface Not supported
E/QCvdec  (   31): Driver Layer hardware config failed with error code
7
W/QCvdec  (   31): error - H264Decoder::InitializeDecInternal()
failed!!


Is Android supports m4v files??

need help

Thank you
Dilli


--~--~-~--~~~---~--~~
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] Thread stopping

2009-02-17 Thread Dilli

Hi all,


I am developing a simple application with thread concept

problem:

 In one thread i write

 {
   Thread.sleep(1)  //10 sec sleep
   m_handler.post(my_runnable);  // to post to run another
runnable
 }


 before  the thread wake up ( <10 sec)  i stopped my application
exiting my application

 but the thread sleeped not killed and it wakes up after 10 sec and
try to post message
 and it causes exception.


 is there any way to kill the threads those are in sleep mode while
exiting the application ??

 and prevent to post using m_handler.

 Need suggetions

Thank You..

Dilli.






--~--~-~--~~~---~--~~
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] web view reloading problem

2009-02-17 Thread Dilli

Hi all


I am developing a simple application which displays web content

after loading total page when i transfer from landscape mode to
portarite mode it again reloads the entire page

is there any way to store the web page on onSaveInstanceState().

and load saved content

Thank you

Dilli


--~--~-~--~~~---~--~~
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] Mediaplayer with streaming

2009-02-16 Thread Dilli

Hi all

I am developing a media player which will download the media content
from
network (Shoutcast)

It works fine. Problem is a small gap between players (2 players)

I am using two mediaplayers to play the data while a thread downloads
and stores the data and stores in to 100Kb files continuously.

on first players oncompletelistener() i started the second player wise
versa.


I think there is a problem with mp3 frames(header sync byte) while
splitting 100kb files.

how to resole the gap between players.


Any suggestions

Thank U
Dilli
--~--~-~--~~~---~--~~
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 get horizontal and vertical events in android

2009-02-15 Thread Dilli


Hi Gulfam,


 In your application no need to catch events for Landscape to
portarite mode

In your application

under res section create 2 folders

  1) layout-land

  2) layout-port

and place your layout.h_splash in  layout-land

and place layout.v_splash in layout-port folders

 ( delete the folder named layout)

 rename both "layout.v_splash",  "layout.h_splash"  to
"layout_splash"

and  use only one statement

setContentView(R. layout_splash)


  In this application automatically assigns the layout's ( when you
switch your phone to landscape to portrite vice versa)




On Feb 16, 12:15 pm, Gulfam  wrote:
> Hi all,
>
>     I have two splash screens for my android app one for horizontal
> and second for vertical
> and also have two xml layout file like h_splash.xml and second is
> v_splash.
>
> and i want to show these file like this in my code
>
> if(horizontal or event which for horizontal )
> {
>   setContentView(R.layout.h_splash)}
>
> else
> {
>   setContentView(R.layout.v_splash)
>
> }
>
> issue is this how i can get horizontal and vertical event in my code?
> On the base of that event i want to show my splash.
>  i have used also getOrientation()or like this method in my code but
> it give same value on both horizontal and vertical.
> any one can help ragarding this.
>
> Thanks and Regards,
> Gulfam Hassan
--~--~-~--~~~---~--~~
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: what is command to check SDCARD is present ?

2009-02-09 Thread Dilli




 Hi

  I think u r testing on Emulator

  if it is emulator

  If you configured the application with the sdcard (exat image
location)

  then go to

  command prompt

  adb shell

  and cd sdcard

  and you can browse througe the sdcard

 If you want to check programatically

 then

   ///

String Sdcard_status = Environment.getExternalStorageState();
if(Sdcard_status.equals(Environment.MEDIA_REMOVED))
{

   Toast.makeText(Helloworld.this, "INSERT MEMORY CARD
(sdcard)--->Not available",Toast.LENGTH_SHORT ).show();
finish();
}
else
{
   Toast.makeText(Helloworld.this, "MEMORY CARD (sdcard)>
is available",Toast.LENGTH_SHORT ).show();
}


  ///





On Feb 9, 12:47 pm, jj  wrote:
> somebody will tel me thecommandfor checkingsdcardof device
>
> what iscommandtocheckSDCARDispresent?
>
> or in other words how to appl thesdcardis there or not?
>
> thank you

--~--~-~--~~~---~--~~
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: Android Development Phone Setup - Vodafone India

2009-02-09 Thread Dilli

Thank you

It's worked fine for me.

But a small modification

1) I need to install the driver for android ( Available at SDK
Usb_Driver)

2) Change to adb shell

3) and change to super user by enter the command ( su )

4) and do the steps

   a)  echo app.setupwizard.disable=1 > /data/local.prop

   b) reboot




On Jan 21, 9:29 am, Vinay  wrote:
> You can skip the initial setup by connecting the phone to PC via USB and
> then type :
>
> # adb shell "echo app.setupwizard.disable=1 > /data/local.prop"
> # adb shell reboot
>
> Register later when you are connect to a WiFi network.
>
> Cheers!
> V
>
> On Wed, Jan 21, 2009 at 7:20 AM, marj...@gmail.com wrote:
>
> > Hello All,
>
> > I am trying to setup the phone using vodafone connection but its
> > unable to sign up google services. It says there is a problem in
> > connecting to the Google services.
>
> > Please help me in setting up the android development phone.
>
> > 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: Playing video in android

2009-02-09 Thread Dilli



 Hi

 i think you fixed the size of video display

>>  mHolder.setFixedSize(176, 144);

  it may cause the problem of  video displaying


 use   mHolder.setFixedSize(mp.getVideoWidth(),
mp.getVideoHeight());


 Regards


On Feb 9, 3:58 am, Ash  wrote:
> Playvideoonandroid
> -
>
> I'm trying toplayvideofiles onandroid...can anyone please help
> me...
> I'm not able to see thevideobut audio works fine... here is the code
>
> PLEASE HELP ME... BY GUIDING ME.. BY CORRECTING THE CODE
> OR WITH ANY NEW CODE
>
> package com.vi3;
>
> import java.io.IOException;
> importandroid.app.Activity;
> importandroid.os.Bundle;
> importandroid.content.Context;
> importandroid.graphics.PixelFormat;
> importandroid.media.MediaPlayer;
> importandroid.media.MediaPlayer.OnBufferingUpdateListener;
> importandroid.media.MediaPlayer.OnCompletionListener;
> importandroid.media.MediaPlayer.OnErrorListener;
> importandroid.util.Log;
> importandroid.view.Menu;
> importandroid.view.SurfaceHolder;
> importandroid.view.SurfaceView;
> importandroid.view.Surface;
> importandroid.view.Window;
> //importandroid.view.Menu.Item;
>
> public class vi3 extends Activity
> {
>    private static final String LOG_TAG = "|";
>    private MediaPlayer mp;
>
>    private Preview mPreview;
>    //private myAcListener myListener = new myAcListener()this;
>    /** Called when the activity is first created. */
>   �...@override
>    public void onCreate(Bundle icicle)
>    {
>       super.onCreate(icicle);
>       Log.i(LOG_TAG, "CameraApp.onCreate");
>       mPreview = new Preview(this);
>       //requestWindowFeature(W);
>
>     //  stopMedia();
>        //     releaseMedia();
>       setContentView(R.layout.main);
>
>       //setContentView(mPreview);
>       playMedia("");
>
>    }
>
>    private void playMedia(String s_filePath)
>    {
>       setContentView(mPreview);
>       //s_filePath = "/tmp/mp4.mp4";
>       s_filePath =  "/data/local/video/test_qcif_200_aac_64.mp4";
>       //s_filePath = "/tmp/test.mpg";
>       //s_filePath = "/tmp/3.3gp";
>       Log.i(LOG_TAG, "CameraApp.playMedia");
>       mp = new MediaPlayer();
>       try
>       {
>          mp.setDataSource(s_filePath);
>       }
>       catch (IllegalArgumentException e)
>       {
>          // TODO Auto-generated catch block
>          Log.v(LOG_TAG,
> "CameraApp.playMedia:IllegalArgumentException");
>          e.printStackTrace();
>       }
>       catch (IOException e)
>       {
>          Log.v(LOG_TAG, "CameraApp.playMedia:IOException");
>          // TODO Auto-generated catch block
>          e.printStackTrace();
>       }
>       try
>       {
>
>          //mp.setDisplay(mPreview.getHolder().getSurface());
>          mp.prepare();
>          int i = mp.getDuration();
>          Log.i(LOG_TAG, "Duration:" + String.valueOf(i));
>          mp.start();
>       }
>       catch (Exception e)
>       {
>          Log.v(LOG_TAG, e.toString());
>          mp.stop();
>          mp.release();
>       }
>       //setContentView(mPreview);
>    }
>
>    private void pauseMedia()
>    {
>       Log.i(LOG_TAG, "CameraApp.pauseMedia");
>       if (null != mp)
>       {
>          mp.pause();
>       }
>    }
>
>    private void stopMedia()
>    {
>       Log.i(LOG_TAG, "CameraApp.stopMedia");
>       if (null != mp)
>       {
>          mp.stop();
>       }
>    }
>    private void releaseMedia()
>    {
>       Log.i(LOG_TAG, "CameraApp.releaseMedia");
>       if (null != mp)
>       {
>          mp.release();
>       }
>    }
>    class Preview extends SurfaceView implements
> SurfaceHolder.Callback
>    {
>        SurfaceHolder   mHolder;
>        private boolean         mHasSurface;
>        Preview(Context context) {
>            super(context);
>
>            mHolder = getHolder();
>            mHolder.addCallback(this);
>            mHasSurface = false;
>
>            //mHolder.setFixedSize(320, 240);
>            mHolder.setFixedSize(176, 144);
>            //mHolder.setFixedSize(192, 242);
>        }
>
>        public void surfaceCreated(SurfaceHolder holder) {
>            // The Surface has been created, start our main acquisition
> thread.
>            mHasSurface = true;
>        }
>
>        public void surfaceDestroyed(SurfaceHolder holder) {
>            // Surface will be destroyed when we return. Stop the
> preview.
>            mHasSurface = false;
>        }
>
>        public void surfaceChanged(SurfaceHolder holder, int format,int
> w, int h) {
>            // Surface size or format has changed. This should not
> happen   in this
>            // example.
>        }
>    }
>
> }

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

[android-developers] Re: what is command to check SDCARD is present ?

2009-02-09 Thread Dilli


in Shell

adb shell

# cd sdcard


   In application

  String Sdcard_status = Environment.getExternalStorageState();

if(Sdcard_status.equals(Environment.MEDIA_REMOVED))
{

   Toast.makeText(Helloworld.this, "INSERT MEMORY CARD
(sdcard)",Toast.LENGTH_SHORT ).show();

}
   else
{
   Toast.makeText(Helloworld.this, "MEMORY CARD (sdcard)  
INSERTED",Toast.LENGTH_SHORT ).show();
}

On Feb 9, 1:13 pm, for android  wrote:
> android.os.Environment
>
> On Mon, Feb 9, 2009 at 1:17 PM, jj  wrote:
>
> > somebody will tel me the command for checking sdcard of device
>
> > what is command to check SDCARD is present ?
>
> > or in other words how to appl the sdcard is there or not?
>
> > thank you

--~--~-~--~~~---~--~~
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] Bluetooth enabling

2009-02-09 Thread Dilli

Hi all

I just bought a new a android device

I try to connect my device to bluetooth.
I am able to recive phone calls to from that bluetooth headset device,
but i can't listen to music
using the bluetooth headset.

I think i missed some settings in the device

Any suggestions

Thanks & 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] Hi

2009-02-08 Thread Dilli

New join

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