[android-developers] Writing text on images in Android

2009-04-09 Thread jj

Hello folk
I want to edit image for Writing text on images, is it possible in
Android, if so, how to achieve this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to 
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Restoring the active Activity while resuming the application

2009-04-09 Thread Omer Saatcioglu

Actually, this code is a work around to get rid of the problem.
However; I think I found the root cause of my problem at
stackoverflow.com. I asked the same question and they told me that
there is a bug in emulator: 
http://code.google.com/p/android/issues/detail?id=2373

I think that all I need to do right now is clean the save/restore
state codes from my project and run the signed copy directly on my
device.

Thank your for your kind help.


On Apr 9, 8:58 am, for android  wrote:
> you are finishing the activity onPause..hence you are getting such results.
>
> @Override
>     protected void onPause(){
>         super.onPause();
>         if(SMBGuesstheNumber.isGameStarted)
>         {
>             savetheGame();
>         }
>         CtrlMaintanence ctrlMaintanence= new CtrlMaintanence();
>         ctrlMaintanence.savetheGame();
> *        finish();*
>     }
>
> if you need to do any wrk while the activity is finishing then use
> isFinishing() method
>
> On Thu, Apr 9, 2009 at 11:10 AM, Omer Saatcioglu wrote:
>
>
>
>
>
> > On Apr 7, 8:22 pm, Marco Nelissen  wrote:
> > > On Tue, Apr 7, 2009 at 10:04 AM, Omer Saatcioglu 
> > wrote:
>
> > > > Hello all,
>
> > > > I have two activities running: MainActivity and ChildActivity.
> > > > Whenever the user clicks in the button in MainActivity, the
> > > > ChildActivity is launched. What I want to do is this:
>
> > > > When the active activity is the ChildActivity and the user clicks the
> > > > home button then relaunch the application (like opening from the
> > > > beginning), I want to see the ChildActivity instead of MainActivity
> > > > that is launched. However; This is happening only when the user clicks
> > > > from recent activities window. (the window opened when you long press
> > > > the home button)
>
> > > It should already be doing what you want it to do, unless you have
> > > something in your manifest that specifically makes it not do this.
> > > What does your AndroidManifest.xml look like?
>
> > hello Mark,
>
> > Thank you for the interest. the following is my AndroidManifest.xml.
> > The MainActivity is GfxMain and ChildActivity is GfxGuesstheNumber
>
> > http://schemas.android.com/apk/res/android";
> >      package="com.saatcioglu.android.guessthenumber"
> >      android:versionCode="5"
> >      android:versionName="0.5">
> >        
> >        
> >    
> >         >                  android:label="@string/app_name">
> >            
> >                
> >                 > android:name="android.intent.category.LAUNCHER" />
> >            
> >        
> >         >                  android:label="@string/app_name">
> >        
> >         >                  android:label="Guess the Number Prefs">
> >        
> >         >                  android:label="Guess the Number Prefs">
> >        
> >    
> > 
>
> > you can find all the code athttp://code.google.com/p/guessthenumber/
--~--~-~--~~~---~--~~
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: Writing text on images in Android

2009-04-09 Thread Jeffrey Sharkey

Sure, use a Canvas wrapped around a mutable copy of the original
Bitmap.  Bitmap.copy() can get you a mutable bitmap of an existing
image, and then you can Canvas.drawText().

j


On Apr 9, 12:05 am, jj  wrote:
> Hello folk
> I want to edit image for Writing text on images, is it possible in
> Android, if so, how to achieve this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: setCursorVisible in the TextView

2009-04-09 Thread Jeffrey Sharkey

This might be a difference between how TextView and EditText behave.
If you're trying to let them edit text, use an EditText.  :)

j

On Apr 8, 11:42 pm, Asif k  wrote:
> Hi all,
>
>     In the android reference site, it is written in the
> serCursorVisible section that cursor is visible by default and you can
> give its value as either "true or "false" to change the its visibility
> on the GUI screen.
>
>    But in my case , cursor is remaining invisible irrespective of
> setting the visibility "true" or "false" using android:cursorVisible =
> "true"  in the layout/main.xml.
>
>    Should I do something more to make cursor visible on the GUI screen
> or its a bug in android???
>
> Please respond...
>
> regardz,
>
> Asif
--~--~-~--~~~---~--~~
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: Restoring the active Activity while resuming the application

2009-04-09 Thread for android
I am not sure whether you will get different results in the device.

It will behave the same way AFAIK.


When ever home button is pressed your Child activity is being
finished...There is no way it will behave differently on the device.

On Thu, Apr 9, 2009 at 12:35 PM, Omer Saatcioglu wrote:

>
> Actually, this code is a work around to get rid of the problem.
> However; I think I found the root cause of my problem at
> stackoverflow.com. I asked the same question and they told me that
> there is a bug in emulator:
> http://code.google.com/p/android/issues/detail?id=2373
>
> I think that all I need to do right now is clean the save/restore
> state codes from my project and run the signed copy directly on my
> device.
>
> Thank your for your kind help.
>
>
> On Apr 9, 8:58 am, for android  wrote:
> > you are finishing the activity onPause..hence you are getting such
> results.
> >
> > @Override
> > protected void onPause(){
> > super.onPause();
> > if(SMBGuesstheNumber.isGameStarted)
> > {
> > savetheGame();
> > }
> > CtrlMaintanence ctrlMaintanence= new CtrlMaintanence();
> > ctrlMaintanence.savetheGame();
> > *finish();*
> > }
> >
> > if you need to do any wrk while the activity is finishing then use
> > isFinishing() method
> >
> > On Thu, Apr 9, 2009 at 11:10 AM, Omer Saatcioglu  >wrote:
> >
> >
> >
> >
> >
> > > On Apr 7, 8:22 pm, Marco Nelissen  wrote:
> > > > On Tue, Apr 7, 2009 at 10:04 AM, Omer Saatcioglu <
> osaatcio...@gmail.com>
> > > wrote:
> >
> > > > > Hello all,
> >
> > > > > I have two activities running: MainActivity and ChildActivity.
> > > > > Whenever the user clicks in the button in MainActivity, the
> > > > > ChildActivity is launched. What I want to do is this:
> >
> > > > > When the active activity is the ChildActivity and the user clicks
> the
> > > > > home button then relaunch the application (like opening from the
> > > > > beginning), I want to see the ChildActivity instead of MainActivity
> > > > > that is launched. However; This is happening only when the user
> clicks
> > > > > from recent activities window. (the window opened when you long
> press
> > > > > the home button)
> >
> > > > It should already be doing what you want it to do, unless you have
> > > > something in your manifest that specifically makes it not do this.
> > > > What does your AndroidManifest.xml look like?
> >
> > > hello Mark,
> >
> > > Thank you for the interest. the following is my AndroidManifest.xml.
> > > The MainActivity is GfxMain and ChildActivity is GfxGuesstheNumber
> >
> > > http://schemas.android.com/apk/res/android";
> > >  package="com.saatcioglu.android.guessthenumber"
> > >  android:versionCode="5"
> > >  android:versionName="0.5">
> > >
> > >
> > >
> > > > >  android:label="@string/app_name">
> > >
> > >
> > > > > android:name="android.intent.category.LAUNCHER" />
> > >
> > >
> > > > >  android:label="@string/app_name">
> > >
> > > > >  android:label="Guess the Number Prefs">
> > >
> > > > >  android:label="Guess the Number Prefs">
> > >
> > >
> > > 
> >
> > > you can find all the code athttp://code.google.com/p/guessthenumber/
> >
>

--~--~-~--~~~---~--~~
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 point people to my app in the Android Marketplace?

2009-04-09 Thread rgelb

I am not clear on the concept.  Does pname stand for the namespace of
the application or the package name?
The name of my app is Better Deal and the package name is
com.vbrad.android.betterdeal
Would the URL the be market://search?q=pname:com.vbrad.android.betterdeal
???

Can someone test this out as I don't have a G1 handy?  Would be much
appreciated.

Thanks

On Apr 7, 9:44 am, Ivan Soto  wrote:
> market://search?q=pname:com.company.application
> Not sure if this works in mail or websites. I haven't tried.
>
> Ivan Soto Fernandez
> Web Developerhttp://ivansotof.com
>
> On Tue, Apr 7, 2009 at 9:22 AM, frizzo  wrote:
>
> > Ok, so I understand that Android Marketplace is not available on the
> > internet, just from the phone.
>
> > I would, however, like to point people to my application if possible.
> > If the person receives their emails on the G1, what type of link can I
> > give so that clicking on it will take them to the app in the Android
> > Marketplace?
--~--~-~--~~~---~--~~
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] running appl in background

2009-04-09 Thread jj

Hello folk
 I want to run application in background. When user close the
foreground screen, application should be running in background. so in
foreground there is no screen of this appl, while user can launch
other appl also.
 To achieve this with the "service component", is it necessary to
create separate process to run this service component or the main appl
process is enough to run service component in background.
While closing the foreground screen of main appl the process
of this appl is also killed? Or is it remain there to run background
service.

I want suggestion for this issue, Or any other way to attain the goal.

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

2009-04-09 Thread petunio

Hi everybody

I am having a problem displayin a ProgressDialog. I hope someone can
show me what I am doing wrong...


void doStuff()
{
  myProgressDialog = ProgressDialog.show(layout.getContext(),"Please
wait...", "Downloading content...", true);

  /*
  Here I do my stuff
  */
   myProgressDialog.dismiss();
}

The problem is that the progressDialog is not shown inmediately.
I have tried doing layout.invalidate(), or layout.postInvalidate(),
and still the same:
the progressDialog is only shown if, for example, I remove the .dismiss
() instruction, and I call the doStuff() again

so, the progressDialog is there, but I dont know how to show it
inmediately


any ideas?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Help required in using postInvalidate()

2009-04-09 Thread manohar

Hi all,

I am devleoping an application. In which one back ground image is
present. Above that i am drawing some animation. To animation to
happen i have to call postInvalidate() method every time.  It is
expecting every time to draw the back ground. Is there any solution so
that i will draw the back ground ONLY once and using clipping i can
draw the front and animation every time??.

I dont want to draw background every time.
--~--~-~--~~~---~--~~
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 could add a new src folder into android src for compiling?

2009-04-09 Thread chengli

I want to add a new src folder to android project,but there are so
many file "android.mk",so are my src folder.I have no ideas how these
makefiles are connected with each other while compiling, how could I
do ?
--~--~-~--~~~---~--~~
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: running appl in background

2009-04-09 Thread Dianne Hackborn
Please read the documentation on Service, the overview documentation on
applications (which has a section on process lifecycles/management), and
there are a number of examples in ApiDemos of creating services that run
after an activity finishes.

On Thu, Apr 9, 2009 at 12:29 AM, jj  wrote:

>
> Hello folk
> I want to run application in background. When user close the
> foreground screen, application should be running in background. so in
> foreground there is no screen of this appl, while user can launch
> other appl also.
> To achieve this with the "service component", is it necessary to
> create separate process to run this service component or the main appl
> process is enough to run service component in background.
>While closing the foreground screen of main appl the process
> of this appl is also killed? Or is it remain there to run background
> service.
>
> I want suggestion for this issue, Or any other way to attain the goal.
>
> Thank you
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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] Updating TextView Values

2009-04-09 Thread TrojanSnake12

Hello everyone, and thanks in advance for the help.  What I'm trying
to do is a relatively simple task, but one that doesn't seem to be
working.  What I'm trying to do is display the Orientation X,Y,Z
coordinates on the screen in basic TextView boxes.  The sensors are
constantly updating my Global.myOrientation float array, and then I'm
running a Timed thread (I'm very new to threading, so forgive me if
it's ugly, but it gets the job done almost).  In this thread I just
set the value of each TextView's text to the desired value.  The
problem is that it only seems to work the first time.

It correctly displays whatever my initial data is, but then subsequent
runs of the thread do nothign to update the onscreen values when I
change the orientation of the phone.  LogCat output shows me that
inside the run() method, the values of Global.getOrientationX,Y,Z are
being updated correctly, and that the right data is being passed to
TextView.  How can I get around this limitation of TextView being
initialized once and then immutable?

Any assistance in fixing this, or providing an alternate solution
would be greatly appreciated.  Code posted below:

public class DisplayOrientation extends Activity
{

private static Timer time;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.variableviewelement);
Log.d("DisplayOrientation", "onCreate");

time = new Timer();
UpdateO t = new UpdateO();

time.scheduleAtFixedRate(t, 0, 300);
}


private class UpdateO extends TimerTask implements Runnable {
@Override
public void run() {
Log.d("UPDATEO", "In run");
Log.d("UUPDATE0", "xUp = " + Global.getOrientationX() + " yUp = 
" +
Global.getOrientationY()
+ " zUp = " + Global.getOrientationZ());
TextView tv1 = (TextView) findViewById(R.id.TextView01);
TextView tv2 = (TextView) findViewById(R.id.TextView02);
TextView tv3 = (TextView) findViewById(R.id.TextView03);
tv1.setText("X = " + Global.getOrientationX() + "  ");
tv2.setText("Y = " + Global.getOrientationY() + "  ");
tv3.setText("Z = " + Global.getOrientationZ() + "  ");
}
}
--~--~-~--~~~---~--~~
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: Passing ArrayList across actvities

2009-04-09 Thread a...@lg

yeah,,thanks,..
I implemented thro Parcealable... But i need to know, if there could
be any overhead on implementing the same on Serializable...???

Because, Parcealable belongs to android.os.Parcealable And the
source data i get from 'another modul'e is completely a pure java
which has no knowledge abt Parcealable...

Please justify Why Parcelable instead of Serializable...

On Apr 7, 2:28 pm, Gavin  wrote:
> I have the same codes with you. I don't know the type of MyList, but I
> think you should new it before use it. like this:
>
> ArrayList aList = new ArrayList();
> aList.add(new String("hello1"));
> intent.putExtra("MyList", aList );
>
> it can work.
>
> On Apr 7, 1:07 pm, "a...@lg"  wrote:
>
>
>
> > Hi all,
> > I have an ArrayList aList in an activity. I would like to send
> > this data to another activty.  Such that,
>
> > ArrayList aList;
>
> > Intent intent = new Intent();
> > intent.setClass(mainactivity.this, newActivity.class);
> > intent.putExtra("MyList", aList );
> > startActivity(intent);
>
> > Will this work out..??
>
> > On the receiving activity,
>
> >  Intent i = getIntent();
> > newList = (ArrayList) i.getSerializableExtra("MyList");
>
> > But this gets me no where ERROR..!!!
>
> > Please help me..how to approach this problem...
>
> > My intention is to share this List between activities...- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 let an application as the default app of certain file type

2009-04-09 Thread Derek

Dianne, you are right. What I should say is that getIntent().getData()
returns null, even though the caller app uses intent.setData(). Any
idea why the data is not passed to the callee app?

On 8 Apr, 18:56, Dianne Hackborn  wrote:
> Um, getIntent() will never return null in onCreate().
>
>
>
>
>
> On Wed, Apr 8, 2009 at 10:44 AM, Derek  wrote:
>
> > I called getIntent in both onCreate and onPostCreate, but both return
> > null.
>
> > below is my test code
> > the caller
> >        Intent intent = new Intent(Intent.ACTION_VIEW);
> >        intent.setData(Uri.fromFile(new File("/sdcard/abc.doc")));
> >        //int.putExtra(Intent.EXTRA_TEXT, "/sdcard/abc.doc"); // tried
> > this one as well
> >        intent.setType("application/msword");
> >        startActivity(intent);
>
> > the callee's intent-filter
> >           
> >                
> >                 > android:name="android.intent.category.DEFAULT" />
> >                
> >            
>
> > the callee app can pop up, but getIntent return null in onCreate an
> > onPostCreate.
>
> > any idea what's going wrong?
>
> > On 8 Apr, 15:56, "nEx.Software"  wrote:
> > > This is how I get the filename:
>
> > > File f1 = new File(getIntent().getData().getPath());
>
> > > I don't know how to enumerate applications which can handle a certain
> > > type of file though.
>
> > > On Apr 7, 10:49 pm, Derek  wrote:
>
> > > > the other question is that if I'm develop an file explorer, how can I
> > > > know all the existing associations between file type (extensions) and
> > > > intents.- Hide quoted text -
>
> > > - Show quoted text -
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-09 Thread Gavin

which permission need be added?

On Apr 9, 10:49 am, Richard Schilling 
wrote:
> Problem solved.
>
> There was nothing wrong - it was a permissions problem.
>
> Richard
>
> On Apr 8, 6:43 pm, Richard Schilling 
> wrote:
>
>
>
> > O.K., Three problems in one, perhaps all related?
>
> > My application writes data to a file in the /sdcard directlry.  There
> > are no errors during the write.  But, the file never shows up on the
> > card, in the file browser (on the device - I use Glance).  Where did
> > the file go?
>
> > When trying to browse the device from my desktop, I notice the USB
> > Mass Storage option is missing .. .guess that's expected since others
> > in the forum explain that it was removed in this version.
>
> > But, I can't get my PC to browse the memory card when it's stored in
> > the phone.
>
> > So, I'm stuck.
>
> > Yech.
>
> > Any one know what's going on?   This all just seems to add up to a
> > flaky memory management problem, but I can't be sure.
>
> > Cheers,
>
> > Richard- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Parsing XML from the Net - Using the SAXParser

2009-04-09 Thread AlexNguyen

Hi,

I tried with some other file of xml. Gphone always get the last data
in xml file.
How can I get data in anywhere I want?

Anyone help me about it?

Thanks,

--Alex.
--~--~-~--~~~---~--~~
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: Can javax.xml.parsers.DocumentBuilder be used to parse html?

2009-04-09 Thread Mark Murphy

quill wrote:
> I think that the open-source html-parsers in java-source.net should do
> some fixes in order to run on android. Is there any version for
> android?

You would have to ask them. I have not tried parsing HTML on-device.

> And I find that android sdk provides android.text.Html.fromHtml(String
> source) to parse html data to a Spanned type text. But I wonder if
> there is any flag in this Spanned type text for me to get the
> information which I want(the sdk document seems not so clearly for
> me).
> For example, if I want to get the title, should I use Spanned.getSpanns
> (getSpanStart("title"),getSpanEnd("title"), type)? There is a title
> tag in html, but getSpanStart("title") return -1.

You may wish to use Google Code Search to find the source to fromHtml().
My guess is that it focuses on a small range of tags typically found
inside the  tag (e.g., , ), and  is not one of those.

Depending on what you are trying to build, you might consider whether
you should be creating a Web service that does this sort of processing
for you, rather than try to do it on the device.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~-~--~~~---~--~~
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: Restoring the active Activity while resuming the application

2009-04-09 Thread Omer Saatcioglu
Actually, I am really confused. Whenever I run the test application on the
device, it behaves like I wanted (the child activity is activated after
launching from home screen or recently launched screen) However; When I ran
my application after I removed overridden onPause and onResume methods, my
application behaves like you say (the main activity is activated after
launching from home screen or recently launched screen) I am still debugging
this problem though.

I think I will just say at the end "it is not a bug but it is a feature" :)

On Thu, Apr 9, 2009 at 10:12 AM, for android  wrote:

> I am not sure whether you will get different results in the device.
>
> It will behave the same way AFAIK.
>
>
> When ever home button is pressed your Child activity is being
> finished...There is no way it will behave differently on the device.
>
> On Thu, Apr 9, 2009 at 12:35 PM, Omer Saatcioglu wrote:
>
>>
>> Actually, this code is a work around to get rid of the problem.
>> However; I think I found the root cause of my problem at
>> stackoverflow.com. I asked the same question and they told me that
>> there is a bug in emulator:
>> http://code.google.com/p/android/issues/detail?id=2373
>>
>> I think that all I need to do right now is clean the save/restore
>> state codes from my project and run the signed copy directly on my
>> device.
>>
>> Thank your for your kind help.
>>
>>
>> On Apr 9, 8:58 am, for android  wrote:
>> > you are finishing the activity onPause..hence you are getting such
>> results.
>> >
>> > @Override
>> > protected void onPause(){
>> > super.onPause();
>> > if(SMBGuesstheNumber.isGameStarted)
>> > {
>> > savetheGame();
>> > }
>> > CtrlMaintanence ctrlMaintanence= new CtrlMaintanence();
>> > ctrlMaintanence.savetheGame();
>> > *finish();*
>> > }
>> >
>> > if you need to do any wrk while the activity is finishing then use
>> > isFinishing() method
>> >
>> > On Thu, Apr 9, 2009 at 11:10 AM, Omer Saatcioglu > >wrote:
>> >
>> >
>> >
>> >
>> >
>> > > On Apr 7, 8:22 pm, Marco Nelissen  wrote:
>> > > > On Tue, Apr 7, 2009 at 10:04 AM, Omer Saatcioglu <
>> osaatcio...@gmail.com>
>> > > wrote:
>> >
>> > > > > Hello all,
>> >
>> > > > > I have two activities running: MainActivity and ChildActivity.
>> > > > > Whenever the user clicks in the button in MainActivity, the
>> > > > > ChildActivity is launched. What I want to do is this:
>> >
>> > > > > When the active activity is the ChildActivity and the user clicks
>> the
>> > > > > home button then relaunch the application (like opening from the
>> > > > > beginning), I want to see the ChildActivity instead of
>> MainActivity
>> > > > > that is launched. However; This is happening only when the user
>> clicks
>> > > > > from recent activities window. (the window opened when you long
>> press
>> > > > > the home button)
>> >
>> > > > It should already be doing what you want it to do, unless you have
>> > > > something in your manifest that specifically makes it not do this.
>> > > > What does your AndroidManifest.xml look like?
>> >
>> > > hello Mark,
>> >
>> > > Thank you for the interest. the following is my AndroidManifest.xml.
>> > > The MainActivity is GfxMain and ChildActivity is GfxGuesstheNumber
>> >
>> > > http://schemas.android.com/apk/res/android";
>> > >  package="com.saatcioglu.android.guessthenumber"
>> > >  android:versionCode="5"
>> > >  android:versionName="0.5">
>> > >
>> > >
>> > >
>> > >> > >  android:label="@string/app_name">
>> > >
>> > >
>> > >> > > android:name="android.intent.category.LAUNCHER" />
>> > >
>> > >
>> > >> > >  android:label="@string/app_name">
>> > >
>> > >> > >  android:label="Guess the Number Prefs">
>> > >
>> > >> > >  android:label="Guess the Number Prefs">
>> > >
>> > >
>> > > 
>> >
>> > > you can find all the code athttp://code.google.com/p/guessthenumber/
>>
>>
>
> >
>


-- 
Omer

--~--~-~--~~~---~--~~
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: setCursorVisible in the TextView

2009-04-09 Thread Ask

yess, I got it using setSelection() method

On Apr 9, 2:53 pm, Ask  wrote:
> Hi Jef,
>
> Thanks 4 ur reply.
> Its working fine 4 EditText..
>
> But here there is no API to set cursor position like
> EditText.setcursorPosition(),
>
> I am updating EditText at different stages of application execution
> programatically using EditText.append();
> But cursor position is remaining at the first line only. I want cursor
> to be visible at the end..
>
> Is there anyway to accomplish it??
>
> On Apr 9, 12:11 pm, Jeffrey Sharkey  wrote:
>
>
>
> > This might be a difference between how TextView and EditText behave.
> > If you're trying to let them edit text, use an EditText.  :)
>
> > j
>
> > On Apr 8, 11:42 pm, Asif k  wrote:
>
> > > Hi all,
>
> > >     In the android reference site, it is written in the
> > > serCursorVisible section that cursor is visible by default and you can
> > > give its value as either "true or "false" to change the its visibility
> > > on the GUI screen.
>
> > >    But in my case , cursor is remaining invisible irrespective of
> > > setting the visibility "true" or "false" using android:cursorVisible =
> > > "true"  in the layout/main.xml.
>
> > >    Should I do something more to make cursor visible on the GUI screen
> > > or its a bug in android???
>
> > > Please respond...
>
> > > regardz,
>
> > > Asif- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem with Camera and layout orientation

2009-04-09 Thread mobilek...@googlemail.com

Hi,
I've been trying to solve this for awhile now, and still couldn't find
a solution to it.
To properly display my SirfaceView consumed by the camera, I have
forced my activity's layout in landscape mode. However, in my app the
camera functionaluty will be mostly used in portait mode, and
therefore all other views in the same activty have to be in portrait
mode. Needless to say if I don't force the activity in landscape, the
SurfaceView is 90 degrees rotated. Any ideas on how to solve it?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: InputMethodService

2009-04-09 Thread Ahmed Azzouz

I cant find a documentation for the InputMethodService. please if you
know i can find it please tell i would be very graceful. Thanks

On Apr 8, 7:00 pm, Dianne Hackborn  wrote:
> Have you looked at the documentation on InputMethodService?
>
> On Wed, Apr 8, 2009 at 3:59 AM, Ahmed Azzouz wrote:
>
>
>
>
>
> > Thanks for your reply i have downloaded the sample and I started
> > developing my input method. i want to develop a input method but the
> > problem is not knowing what to override and what to call :( . PS im
> > developing a Input method that can recognize handwriting.
> > thanks for your time.
>
> > On Apr 7, 9:32 pm, Dianne Hackborn  wrote:
> > > There is not yet an SDK for cupcake.  You can, however, get the current
> > > android source where there is sample code for writing a soft keyboard
> > > (called SoftKeyboard).
>
> > > On Tue, Apr 7, 2009 at 3:30 AM, Ahmed Azzouz  > >wrote:
>
> > > > Dear All
> > > >           I'm having a problem with developing my own keyboard. this
> > > > is because i  cant find any documentation for the InputMethodService
> > > > in the SDK. Can any one help and tell me where can i find any
> > > > information about this topic please. Thanks
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
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: setCursorVisible in the TextView

2009-04-09 Thread Ask

Hi Jef,

Thanks 4 ur reply.
Its working fine 4 EditText..

But here there is no API to set cursor position like
EditText.setcursorPosition(),

I am updating EditText at different stages of application execution
programatically using EditText.append();
But cursor position is remaining at the first line only. I want cursor
to be visible at the end..

Is there anyway to accomplish it??

On Apr 9, 12:11 pm, Jeffrey Sharkey  wrote:
> This might be a difference between how TextView and EditText behave.
> If you're trying to let them edit text, use an EditText.  :)
>
> j
>
> On Apr 8, 11:42 pm, Asif k  wrote:
>
>
>
> > Hi all,
>
> >     In the android reference site, it is written in the
> > serCursorVisible section that cursor is visible by default and you can
> > give its value as either "true or "false" to change the its visibility
> > on the GUI screen.
>
> >    But in my case , cursor is remaining invisible irrespective of
> > setting the visibility "true" or "false" using android:cursorVisible =
> > "true"  in the layout/main.xml.
>
> >    Should I do something more to make cursor visible on the GUI screen
> > or its a bug in android???
>
> > Please respond...
>
> > regardz,
>
> > Asif- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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] playing of wma audio

2009-04-09 Thread l hx
now , the opencore can not play the audio of wma. is it right? and the total
time of the wma file can not be find in the trackbrowseractivity. who know
why?

--~--~-~--~~~---~--~~
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: zero duration for some media

2009-04-09 Thread l hx
today, i found this matter. and i see some code and found that the duration
of the file such as wma and wmv in the datebase is also 0. i will go on it.
who know why and how to solve, please give some advise.

On Thu, Apr 9, 2009 at 4:13 AM, Peter Jeffe  wrote:

>
> Some audio files return 0 from MediaPlayer.getDuration(), even though
> they're perfectly valid files that play ok and that players on Windows
> can find the duration of.
>
> There seem to be two different cases here: certain file types such
> as .wma and .wav always return 0 duration, and others only do so
> sometimes.  I haven't been able to find any pattern in the latter
> case, but it does seem consistent per file.
>
> The music player displays 0:00 duration for these, so it's not just my
> code.  Any ideas on what's causing this and whether there's a
> workaround?  Thanks.
>
> -- Peter
>
> >
>

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

2009-04-09 Thread l hx
can android now use overlay? and how to use 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: Accessing System Brightness

2009-04-09 Thread Todd Sjolander

Ah, that makes sense.  Thank you.

On Apr 8, 4:45 pm, Dianne Hackborn  wrote:
> It will only modify the screen while that window/activity is being shown to
> the user.  This allows it to be done in a safe way (no permission required)
> which the system can recover from if there is a bug in the application (or
> if the application gets killed for some reason, as we tend to do).
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
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: Changing background style of MenuItem

2009-04-09 Thread elDoudou

Thank you for posting your conclusion. However, according to me,
setting the "android:itemBackground" element in an applied theme does
not change anything neither, so this work-around is not working:
please, tell me if I'm wrong... I went to the same conclusion by
analyzing the Android source code, and find that it is a shame that we
cannot overload the menu style, by declaring a XML style entry on a
style XML element. I totally share your point of view :)
--~--~-~--~~~---~--~~
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: Exception locking surface - lockCanvas() returns a null?

2009-04-09 Thread ellipsoidmob...@googlemail.com

I hadn't realised you are doing openGL stuff. I've used surfaceview/
holder in the same was as the lunarlander, but I haven't used openGL
so I don't know how that works.

But, at a glance, it looks like you've got a mix of two different
approaches here - maybe the lockcanvas/unlockcanvasandpost approach is
not appropriate when using openGL as the openGL code is controlling
and locking the surface?
--~--~-~--~~~---~--~~
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] Project Name -> bin -> "classes.dex" , "resources.ap_" ??

2009-04-09 Thread Zhubham

Hi Experts,

Can you please throw some light on the contents of the "bin" folder
which is generated under the project folder. Generally we have:

(1) a folder containing all the .class files.
(2) a file with .apk extension. This is a zipped form of all the .dex
files created for each .class file. (Please correct me if I am not
correct).
(3) a file "classes.dex" . WHAT IS THIS FILE?? IS THIS UNZIPPED FORM
OF .apk FILE??
(4) a file "resources.ap_". WHAT IS THIS FILE??

Kindly ellaborate on points 3,4.

Thanks in advance.

Best Regards,
Zhubham

--~--~-~--~~~---~--~~
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: Gallery and setSelection

2009-04-09 Thread hapciu

Hi Alexey,

Try calling notifyDataSetIvalidated before repopulating your adapter
and/or notifyDataSetChanged after.

Cheers,
Horia

On Feb 12, 7:12 am, Alexey  wrote:
> Ok everything is being called correctly with setSelection. However in
> my case i'm not getting callback because i'm at item 0 in the gallery.
> Then i'm adding a view to the adapter, to the top and try to set a
> selection. And it doesn't trigger callback, because, i think , from
> gallery point of view nothing get changed, we're still at position 0.
> I'm not sure how to get around this yet .
>
> On Feb 11, 5:02 pm, Alexey  wrote:
>
> > Hi i have a gallery created from code and it has
> > OnItemSelectedListener .
> > I set selected item from the code by mGallery.setSelection(idx);
> > and expect a callback into my  onItemSelected
> > But it't doesn't happen - how i can trigger onItemSelected to get hit
> > from code ?
>
> > thanks Alex
>
>
--~--~-~--~~~---~--~~
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 determine when a ScrollView has reached the bottom

2009-04-09 Thread Al

This was a major headache for me also. Finally found the solution:

int calc = sv.getHeight() + sv.getScrollY(); //where sv is a
scrollview
boolean atBottom = tv.getBottom() - calc == 0; //where tv is a
textview

On Apr 9, 6:23 am, "nwmotog...@gmail.com" 
wrote:
> I have a TextView inside a ScrollView and I have loaded it with a
> bunch of text.  When the ScrollView gets to the bottom/top I would
> like to load the TextView with new data BUT there doesn't appear to be
> any way to find out when you have reached either location.  Could some
> one help me out with this?  How can this be done?
--~--~-~--~~~---~--~~
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] Analog Clock

2009-04-09 Thread vinny.s...@gmail.com

Can Anybody Help In Making a Analog Clock in ,java File of
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] Re: Uninstall reason survey - where are the results?

2009-04-09 Thread nEx.Software

I've been wondering this myself...
It seems that there should be a way for the developer to see the
"results" of this "survey", else it's not really worth having the
survey.

On Apr 8, 5:59 pm, Jesse McGrew  wrote:
> (No response on android-discuss, trying here instead.)
>
> I've noticed that when I uninstall applications from my G1, I'm asked
> to give a reason.
>
> I have an application on the market. Is there any way to see the
> reasons people have given for uninstalling? There's no mention of this
> in the developer console.
--~--~-~--~~~---~--~~
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] pricing model for a service based application

2009-04-09 Thread naru


I do understand that a self sufficient or standalone android
application
can be bought/sold for one time price.

But what are various ways a user can be charged if an android
application
was a service based application, meaning every time user playing a new
game
would fetch some data from a service.
It seems to me that the pricing model should be on usage bases,
be it periodically (monthly/yearly) or be it per use.

As an hypothetical example, if using gmail on a g1 has a price tag,
what options would
the google team may have, in terms of making users pay?

Can someone please throw some light on the subject?
--~--~-~--~~~---~--~~
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] HttpClient + Proxy with authentication

2009-04-09 Thread Erik H

I need to use HttpClient in my application. However, the network I'm
on when running the emulator has a proxy that requires authentication.

How do I configure the emulator to use this proxy with authentication
and how do I tell HttpClient to use this?

Currently, this is sort of blocking further development as I don't
wish to manually configure proxy in my code but use the one the device
is configured for.

Thanks,
Erik
--~--~-~--~~~---~--~~
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: HttpClient + Proxy with authentication

2009-04-09 Thread David Turner
On Thu, Apr 9, 2009 at 3:30 PM, Erik H  wrote:

>
> I need to use HttpClient in my application. However, the network I'm
> on when running the emulator has a proxy that requires authentication.
>
> How do I configure the emulator to use this proxy with authentication
> and how do I tell HttpClient to use this?
>

emulator -help-http-proxy will tell you how to activate the emulator's
transparent proxy feature.
Note that this is transparent, i.e. you should not need to tell HttpClient
anything special if you
activate it.

Another note: there is currently a bug in the 1.1 emulator that prevents it
to work with certain
MS proxies that insist on sending chunked answers. The fix is already in the
cupcake tree.

I know that there is more or less proxy support in the framework, but I'm
not sure it works
well or is officially supported (meaning: it could disappear/change in
cupcake or later)


>
> Currently, this is sort of blocking further development as I don't
> wish to manually configure proxy in my code but use the one the device
> is configured for.
>
> Thanks,
> Erik
> >
>

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

2009-04-09 Thread naru

I believe the right way to fire a ProcessDialog is thru a Handler
try the following...

-- create a Handler and processDialog somewhere before doStuff()
   private final Handler handler = new Handler();
   private ProcessDialog processDialog;

-- your doStuff method should look like this
void doStuff() {
  fireProcessDialog();

   /*
   do your stuff,
   typically a network operation
   */
   doSomeNetworkingOperation();

   // dismiss the dialog
   myProgressDialog.dismiss();
}

private void fireProgressDialog() {
Runnable updater = new Runnable() {
public void run() {
myProgressDialog = 
ProgressDialog.show(layout.getContext(),"Please
 wait...", "Downloading
content...", true);
}
};
handler.post(updater);
}


On Apr 9, 4:10 am, petunio  wrote:
> Hi everybody
>
> I am having a problem displayin a ProgressDialog. I hope someone can
> show me what I am doing wrong...
>
> void doStuff()
> {
>   myProgressDialog = ProgressDialog.show(layout.getContext(),"Please
> wait...", "Downloading content...", true);
>
>   /*
>   Here I do my stuff
>   */
>myProgressDialog.dismiss();
>
> }
>
> The problem is that the progressDialog is not shown inmediately.
> I have tried doing layout.invalidate(), or layout.postInvalidate(),
> and still the same:
> the progressDialog is only shown if, for example, I remove the .dismiss
> () instruction, and I call the doStuff() again
>
> so, the progressDialog is there, but I dont know how to show it
> inmediately
>
> any ideas?
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Application gets killed "because provider is in dying process"

2009-04-09 Thread GiladH

Hey,

After long running the Media|Player (audio mode) the app I'm
developing often crashes w/
the following error:

> Process android.process.media (pid 14795) has died.
> Killing  because provider com.android.providers.media.MediaProvider 
> is in dying process android.process.media

Now this one is a real bummer because Android kills the media process
_without_
activating my own app's onLowMemory(), which would allow me to do some
preemptive memory releasing.


Is there a way to either

 (a) get a notification that media process (or any other process my ap
depends upon for that matter) is about to be killed

-or-

 (b) avoid my own app's killing after media process kill



TIA,
GiladH



--~--~-~--~~~---~--~~
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] Key dispatching timed out

2009-04-09 Thread Ramesh

hi,
I am working on an android project where the local and remote image
files and their thumbnails are to be displayed. Now i have a problem
with displaying the remote images. If i click the back button when the
application is connected with the server, It waits for few seconds and
forces my application to close. Log has a message "Key dispatching
timed out". Once the image has downloaded completely back button is
working, Here is my log.. Kindly help me in this.

here is my log.


04-09 19:32:42.992: INFO/ActivityManager(52): Starting activity:
Intent { comp={com.androidstorage/com.androidstorage.ViewStorageImage}
(has extras) }
04-09 19:32:43.282: INFO/ActivityManager(52): Displayed activity
com.androidstorage/.ViewStorageImage: 288 ms
04-09 19:32:49.072: WARN/WindowManager(52): Key dispatching timed out
sending to com.androidstorage/com.androidstorage.ViewStorageImage
04-09 19:32:49.131: INFO/ActivityManager(52): ANR (application not
responding) in process: com.androidstorage
04-09 19:32:49.131: INFO/ActivityManager(52): Annotation:
keyDispatchingTimedOut
04-09 19:32:49.131: INFO/ActivityManager(52): CPU usage:
04-09 19:32:49.131: INFO/ActivityManager(52): Load: 0.01 / 0.1 / 0.07
04-09 19:32:49.131: INFO/ActivityManager(52): CPU usage from 7516ms to
51ms ago:
04-09 19:32:49.131: INFO/ActivityManager(52):   com.androidstorage: 7%
= 5% user + 1% kernel
04-09 19:32:49.131: INFO/ActivityManager(52):   system_server: 4% = 2%
user + 2% kernel
04-09 19:32:49.131: INFO/ActivityManager(52):   com.android.phone: 0%
= 0% user + 0% kernel
04-09 19:32:49.131: INFO/ActivityManager(52):   adbd: 0% = 0% user +
0% kernel
04-09 19:32:49.131: INFO/ActivityManager(52):   events/0: 0% = 0% user
+ 0% kernel
04-09 19:32:49.131: INFO/ActivityManager(52): TOTAL: 12% = 8% user +
3% kernel
04-09 19:32:49.131: INFO/ActivityManager(52): /proc/meminfo:
04-09 19:32:49.131: INFO/ActivityManager(52): MemTotal:94572
kB
04-09 19:32:49.131: INFO/ActivityManager(52): MemFree:  6260
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Buffers:   108
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Cached:  39188
kB
04-09 19:32:49.131: INFO/ActivityManager(52): SwapCached:  0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Active:  67572
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Inactive:11924
kB
04-09 19:32:49.131: INFO/ActivityManager(52): SwapTotal:   0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): SwapFree:0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Dirty:   0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Writeback:   0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): AnonPages:   40208
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Mapped:  22952
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Slab: 3256
kB
04-09 19:32:49.131: INFO/ActivityManager(52): SReclaimable:  676
kB
04-09 19:32:49.131: INFO/ActivityManager(52): SUnreclaim:   2580
kB
04-09 19:32:49.131: INFO/ActivityManager(52): PageTables:   2708
kB
04-09 19:32:49.131: INFO/ActivityManager(52): NFS_Unstable:0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Bounce:  0
kB
04-09 19:32:49.131: INFO/ActivityManager(52): CommitLimit: 47284
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Committed_AS:   958532
kB
04-09 19:32:49.131: INFO/ActivityManager(52): VmallocTotal:   876544
kB
04-09 19:32:49.131: INFO/ActivityManager(52): VmallocUsed: 11464
kB
04-09 19:32:49.131: INFO/ActivityManager(52): VmallocChunk:   852988
kB
04-09 19:32:49.131: INFO/ActivityManager(52): Removing old ANR trace
file from /data/anr/traces.txt
04-09 19:32:49.140: INFO/Process(52): Sending signal. PID: 652 SIG: 3
04-09 19:32:49.140: INFO/dalvikvm(652): threadid=7: reacting to signal
3
04-09 19:32:49.152: INFO/dalvikvm(652): Wrote stack trace to '/data/
anr/traces.txt'
04-09 19:32:49.152: INFO/Process(52): Sending signal. PID: 93 SIG: 3
04-09 19:32:49.152: INFO/dalvikvm(93): threadid=7: reacting to signal
3
04-09 19:32:49.162: INFO/dalvikvm(93): Wrote stack trace to '/data/anr/
traces.txt'
04-09 19:32:49.162: INFO/Process(52): Sending signal. PID: 194 SIG: 3
04-09 19:32:49.162: INFO/dalvikvm(194): threadid=7: reacting to signal
3
04-09 19:32:49.172: INFO/dalvikvm(194): Wrote stack trace to '/data/
anr/traces.txt'
04-09 19:32:49.181: INFO/Process(52): Sending signal. PID: 124 SIG: 3
04-09 19:32:49.181: INFO/dalvikvm(124): threadid=7: reacting to signal
3
04-09 19:32:49.181: INFO/dalvikvm(124): Wrote stack trace to '/data/
anr/traces.txt'
04-09 19:32:49.181: INFO/Process(52): Sending signal. PID: 170 SIG: 3
04-09 19:32:49.181: INFO/dalvikvm(170): threadid=7: reacting to signal
3
04-09 19:32:49.191: INFO/dalvikvm(170): Wrote stack trace to '/data/
anr/traces.txt'
04-09 19:32:49.191: INFO/Process(52): Sending signal. PID: 188 SIG: 3
04-09 19:32:49.191: INFO/dalvikvm(188): threadid=7: reacting to signal
3
04-09 19:32:49.201: INFO/Process

[android-developers] Resetting checkboxes in a dialog with .setMultiChoiceItems()

2009-04-09 Thread DavidG

I'd like to have a dialog box which prompts the user to select from
various checkboxes, then confirm "Ok" or "Cancel". I have this
working, but my only issue is the dialog always retains the previous
checkbox selection state from the last time the dialog was shown. I'd
like to always force the checkboxes to be unchecked (false) every
time. Is there a way to accomplish this?

protected Dialog onCreateDialog(int id) {
switch (id) {
case DIALOG_OPTION:
return new AlertDialog.Builder(MyApp.this)
.setTitle(R.string.select_option_title)
.setMultiChoiceItems(R.array.select_option,
null,
new DialogInterface.OnMultiChoiceClickListener() {
public void onClick(DialogInterface dialog,
int whichButton, boolean isChecked) {
/* Do whatever with checked buttons */
}
})
.setPositiveButton("OK", new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
/* User clicked Yes so do some stuff */
/* Is there a way to reset the checked buttons state
to false from here? */
}
})
.setNegativeButton("Cancel", new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
/* User clicked No so do some stuff */
/* Is there a way to reset the checked buttons
state to false from here? */
}
})
   .create();
 }
 return null;
}
--~--~-~--~~~---~--~~
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] Android/G1 video driver

2009-04-09 Thread yarik...@gmail.com

Where can I find G1 video driver source?
--~--~-~--~~~---~--~~
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] Nightly Build for Emulator

2009-04-09 Thread Evan Ruff

Hey guys,

I'm a lame-o Windows developer trying to do some Browser specific
development targeting Android. I'm having some funny issues with my G1
and my older emulator (WebKit CSS/Layout, etc). I was wondering if any
of you Linux guys out there might be so kind as to give me a compiled
image of the latest nightly build? I believe I need three files out of
the tools directory:

/tools/lib/images/userdata.img
/tools/lib/images/system.img
/tools/lib/images/ramdisk.img

I'd build it myself, but my windows box can't do it!

Thanks!

Evan
--~--~-~--~~~---~--~~
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] Removing the default interpolator for xml based animation effects for views

2009-04-09 Thread quakeboy

When ever I try to animate a view using a simple xml based animation,
it seems to have default interpolator set of some kind as the motion
is not truly linear.

Is there a way to set the default animation interpolator to linear and
remove the lag in the start/end of the animation.
--~--~-~--~~~---~--~~
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] Bind Service between different APKs

2009-04-09 Thread Jorge Fonseca
*All*,

How to bind a client to service if they are in different applications?

I have a simple service running in a specific .apk and try to access it from
OTHER .apk.
I already declared permission in both manifest.xml:

*Service*:


*Client:*


Every time i try to access the service, i get the follow error msg:

"Not allowed to bind to service intent {comp={app.aidl,
app.aidl.MyService}}"

I already tried to use tag attributes like: exported, enabled but no success
is reached.

Does someone have any suggestion?

Regards,
Jorge.

--~--~-~--~~~---~--~~
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: Nightly Build for Emulator

2009-04-09 Thread Mark Murphy

> I'm a lame-o Windows developer trying to do some Browser specific
> development targeting Android. I'm having some funny issues with my G1
> and my older emulator (WebKit CSS/Layout, etc). I was wondering if any
> of you Linux guys out there might be so kind as to give me a compiled
> image of the latest nightly build?

There are no nightly builds at present that I am aware of. It's something
I and some others are working on. Watch this space for announcements.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
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: GWT and the Android Browser

2009-04-09 Thread Evan Ruff

JP,

Thanks for your response! I've downloaded 1.1_r1 and done a little bit
more testing and:

#5, #6. This is something that seems to ONLY happen on the Android
system. In Chrome it screams along like a scalded dog. Stuff pops up,
hides, fades etc like it was a native application.

#2. There's some work going on over in the GWT stack to have Gears/AIR/
HTML5 native storage/workers/caches abstracted in GWT. This is a
pretty exciting project and will hopefully lead to some truely awesome
android ports.

#4. Farts. Still there. Maybe a TICK faster, but not really.

#1. Still weird.

#3. ditto.

iPhone has implemented a mouse drag event framework that looks pretty
cool. No love for Android yet though. I'd love to try a nightly build,
but as I'm on Windows I can't do a image compilation from source.

E



On Apr 8, 9:10 pm, JP  wrote:
> I've done someGWTwork in 2007 so I've fired up the site and checked
> it withAndroid'sbrowser(for the first time, it never occurred to me
> to try this out. I also tried Opera Mini but it wouldn't even start
> loading).
> 1. I cannot confirm your layout issues. I need to add however that the
> web developer who provided the HTML framework used HTML tables for
> layout purposes (his task, not mine).
> 2. Gears wasn't around back then (;->)
> 3. I can confirm this, and it renders some of my web site's
> functionality mostly useless (table-based slider). I think some fine
> work inGWTwould be in order here (Note: I am onGWT1.5.3 as no
> maintenance is performed). Or, as you hope, the newer Webkit may help
> you out.
> 4. I can confirm this also. In my book, this is cosmetic, in
> particular considering all the other issues.
> 5. From your description - I've seen this effect with Firefox 2.x over
> an Internet connection. Never in a LAN environment and also not with
> IE 6 (both LAN/Internet). So this problem may not be specific 
> toAndroid'sbrowseronly.
> 6. Likely connected to 5.
>
> I would cross check your web app against other WebKit-based browsers
> as well as older and newer and other browsers in various environments
> so you can find some patterns that you can research/report on theGWT
> side of things. To answer your question where these questions
> belong... over toGWTIMHO, because it is a declared goal ofGWTto
> handlebrowser"quirks" for you - the developer.
> I hope you're not in a time crunch here... Good luck.
>
> JP
>
> On Apr 8, 10:53 am, Evan Ruff  wrote:
>
> > Hey guys,
>
> > Little stream of conciseness here, sorry if this is a bit long/
> > disjoined.
>
> > I was wondering if anyone had done any work withGWTand theAndroid
> >Browser. While I'm getting basic functionality to work, the general
> > speed, responsiveness and user experience seem very sluggish and,
> > well, sorta bad. Another issue I'm having is locating a group to go to
> > for support, examples and help. While I'm interested inGWTwith
> >Android, it seems thatAndroidDevelopers Group is really only
> > interested in native apps. Where to go forBrowserspecific help?
>
> > Anyways, some of the particulars I've run into:
>
> > What group to go to?
>
> > 1. Issues Controlling the viewport: No matter what I do, I can't seem
> > to get proper control of the viewport. Editing the meta data, overflow
> > CSS properties, insuring that the window's objects are small, etc. I'm
> > continually getting white space borders and stuff like that. This
> > causes weird finger behavior, especially allowing the user to browse
> > into the white space.
>
> > 2. HTML5/Gears Wrappers: I was wondering if the Gears API has an
> > implementation to support HTML5 storage/cache issues in case of a non-
> > gears enabled client. If not, is there a library anywhere that
> > supports the encapsulation forGWT?
>
> > 3. MouseListeners: The OS seems to swallow up the MouseUp event in
> > order to do detection of scroll/drag type stuff. I guess I understand
> > why it does it for the drag type thing, but it never fires MouseUp
> > even after the drag is done. Ehh... fair enough, I guess.
>
> > 4. Focus Panel ClickListeners: When I click a focus panel, a orange
> > circle shows up in the upper/left corner with what seems like a cursor
> > in it? (http://i243.photobucket.com/albums/ff2/gte619n/
> > selectBubble.png) Also seems like a non-trivial delay between the
> > press and then a following action. Makes the app seem especially
> > sluggish.
>
> > 5. Image Loading/Display: Seems really slow. Even when doing
> > background repositioning to flip sprites. Additionally, the images
> > don't seem to load in any fixed order and method. Also seems to hang
> > when loading images (http://i243.photobucket.com/albums/ff2/gte619n/
> > selectBubble.png) I've attempted to get around this by doing Prefetch
> > and such, but nothing seems to work. Seems like it needs to talk
> > itself into refreshing the screen after loading finishes (even in
> > localhost in the emulator)
>
> > 6. Visibility hide/show: Very sluggish in general.
>
> > 7. Scrol

[android-developers] Re: Nightly Build for Emulator

2009-04-09 Thread Al Sutton

There have been no checkins I'm aware of since my builds at;

http://andappstore.com/AndroidPhoneApplications/sdk/

Regards,

Al. 


---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries. 


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
Sent: 09 April 2009 15:40
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Nightly Build for Emulator


> I'm a lame-o Windows developer trying to do some Browser specific 
> development targeting Android. I'm having some funny issues with my G1 
> and my older emulator (WebKit CSS/Layout, etc). I was wondering if any 
> of you Linux guys out there might be so kind as to give me a compiled 
> image of the latest nightly build?

There are no nightly builds at present that I am aware of. It's something I
and some others are working on. Watch this space for announcements.

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!






--~--~-~--~~~---~--~~
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: Nightly Build for Emulator

2009-04-09 Thread Evan Ruff

That's just want I was looking for.

Thanks Al!

E


On Apr 9, 10:50 am, "Al Sutton"  wrote:
> There have been no checkins I'm aware of since my builds at;
>
> http://andappstore.com/AndroidPhoneApplications/sdk/
>
> Regards,
>
> Al.
>
> ---
>
> * Written an Android App? - List it athttp://andappstore.com/*
>
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
> Sent: 09 April 2009 15:40
> To: android-developers@googlegroups.com
> Subject: [android-developers] Re: Nightly Build for Emulator
>
> > I'm a lame-o Windows developer trying to do some Browser specific
> > development targeting Android. I'm having some funny issues with my G1
> > and my older emulator (WebKit CSS/Layout, etc). I was wondering if any
> > of you Linux guys out there might be so kind as to give me a compiled
> > image of the latest nightly build?
>
> There are no nightly builds at present that I am aware of. It's something I
> and some others are working on. Watch this space for announcements.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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/G1 video driver

2009-04-09 Thread David Turner
If you are referring to the accelerated OpenGL ES shared library used by
the system on G1 / ADP1 devices, its source is not available, it's a
proprietary
binary blob.

There is however a software-only OpenGL ES implementation that is part of
the system (and is used when you run in the emulator), released under the
Apache 2.0
license. Look for "pixelflinger" in the sources.

On Thu, Apr 9, 2009 at 4:28 PM, yarik...@gmail.com wrote:

>
> Where can I find G1 video driver source?
> >
>

--~--~-~--~~~---~--~~
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: GWT and the Android Browser

2009-04-09 Thread JP



On Apr 9, 7:43 am, Evan Ruff  wrote:
> #2. There's some work going on over in the GWT stack to have Gears/AIR/
> HTML5 native storage/workers/caches abstracted in GWT. This is a
> pretty exciting project and will hopefully lead to some truely awesome
> android ports.

Agree, not only that. I just saw the Java/App Engine release
yesterday. GWT is moving in the right direction. Tough to say this,
but I'm not so sure that's the case with Android. I am  increasingly
under the impression that noone at Google outside of the Android team
really cares about their own firm's product (in favor of the almighty
iPhone).

--~--~-~--~~~---~--~~
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/G1 video driver

2009-04-09 Thread yarik...@gmail.com

ok... thanks a lot.

I have another one question though. It' about framebuffer driver.
There are a lot of sources in git and I can't find out wich one is
used for MSM7201A chipset used in G1. Thanks for response.

On 9 апр, 18:09, David Turner  wrote:
> If you are referring to the accelerated OpenGL ES shared library used by
> the system on G1 / ADP1 devices, its source is not available, it's a
> proprietary
> binary blob.
>
> There is however a software-only OpenGL ES implementation that is part of
> the system (and is used when you run in the emulator), released under the
> Apache 2.0
> license. Look for "pixelflinger" in the sources.
>
> On Thu, Apr 9, 2009 at 4:28 PM, yarik...@gmail.com wrote:
>
>
>
>
>
> > Where can I find G1 video driver source?
--~--~-~--~~~---~--~~
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 login to the root of Android Dev Phone 1?

2009-04-09 Thread Gavin Aiken
Hi Guys,

I'm having the same issue. I just go a dev phone and i'm used to wiping the
database of my ap by removing it using eclipse from the
/data/data//databse.db location.

Now i'm developing on a dev phone I don;t have access to /data/.

I've installed terminal emulator but I need to know what command to use as a
recursive chmod on data returns the error message 'bad mode'.

# chmod 777 -R /data/

Any help greatly appreciated! I'm trying different database setups, the sql
is bundled with the apk, the database remains upon reinstallation of the app
via eclipse and hence I need to remove it manually (A better approach would
also be a welcome suggestion).

Cheers,

Gav


On Sun, Apr 5, 2009 at 4:26 AM, havexz  wrote:

>
> Well i finally get the solution..u have to use the "su" command to
> login as root and then have to change the permissions for the folder
> (in my case its data). Once done that then you can easily move files
> using the eclipse DDMS from the Android Dev Phone 1. But remember you
> also need to change the permissions for the file that you want to copy
> from the deviceAnd the "pull" and "push" commands only work
> outside "su" so you have to change permissions using "su" and den try
> "pull" or "push".
>
> Thanks a lot to Jean-Baptiste Queru who helped me with su.
>
>
>
> On Mar 25, 4:30 am, David Turner  wrote:
> > "pull" is an adb command, you need to run it on the host (there is no
> easy
> > way to send a file to your host from the system). E.g.
> >
> > adb pull  
> >
> > On Wed, Mar 25, 2009 at 4:34 AM, havexz  wrote:
> >
> > > well i am able to access the folder but still unable to get the files
> > > out to local system ..
> > > the following is the snap shot. Here i had run the "su" command and
> > > the prompt changes from $ to #
> >
> > > # pull
> > > pull
> > > pull: not found
> > > # help
> > > help
> > > help: not found
> > > #
> >
> > > On Mar 24, 1:28 am, havexz  wrote:
> > > > THANKS ITS WOKRING..:)
> >
> > > > BTW is there a way i can access using the UI DDMS which comes with
> > > > eclipse IDE.?
> >
> > > > On Mar 23, 10:40 pm, Jean-Baptiste Queru  wrote:
> >
> > > > > Run "su" in your shell, and you'll be running arootshell.
> >
> > > > > JBQ
> >
> > > > > On Mon, Mar 23, 2009 at 7:45 PM, havexz 
> > > wrote:
> >
> > > > > > Also tried login to shell using adb but i am unable to browse to
> that
> > > > > > directory.. the error is given below:
> > > > > > $ ls
> > > > > > ls
> > > > > > sqlite_stmt_journals
> > > > > > cache
> > > > > > sdcard
> > > > > > etc
> > > > > > init
> > > > > > default.prop
> > > > > > logo.rle
> > > > > > init.trout.rc
> > > > > > data
> > > > > > system
> > > > > > init.goldfish.rc
> > > > > > sys
> > > > > > proc
> > > > > > init.rc
> > > > > > sbin
> > > > > >root
> > > > > > dev
> > > > > > $ ls data
> > > > > > ls data
> > > > > > opendir failed, Permission denied
> > > > > > $
> >
> > > > > > On Mar 23, 9:43 pm, havexz  wrote:
> > > > > >> I am unable to copy the files from the data folder of the
> Android
> > > Dev
> > > > > >> Phone 1. I used to do that on the Emulator. I need to back up
> the
> > > > > >> application data so that I can restore it.
> >
> > > > > --
> > > > > Jean-Baptiste M. "JBQ" Queru
> > > > > Android Engineer, Google.
> >
> > > > > Questions sent directly to me that have no reason for being private
> > > > > will likely get ignored or forwarded to a public forum with no
> further
> > > > > warning.
> >
> >
> >
>

--~--~-~--~~~---~--~~
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/G1 video driver

2009-04-09 Thread David Turner
2009/4/9 yarik...@gmail.com 

>
> I have another one question though. It' about framebuffer driver.
> There are a lot of sources in git and I can't find out wich one is
> used for MSM7201A chipset used in G1. Thanks for response.
>

ah, I don't know the answer to this, but you should ask on android-porting
instead, since this is a forum for application developers.


>
> On 9 апр, 18:09, David Turner  wrote:
> > If you are referring to the accelerated OpenGL ES shared library used by
> > the system on G1 / ADP1 devices, its source is not available, it's a
> > proprietary
> > binary blob.
> >
> > There is however a software-only OpenGL ES implementation that is part of
> > the system (and is used when you run in the emulator), released under the
> > Apache 2.0
> > license. Look for "pixelflinger" in the sources.
> >
> > On Thu, Apr 9, 2009 at 4:28 PM, yarik...@gmail.com  >wrote:
> >
> >
> >
> >
> >
> > > Where can I find G1 video driver source?
> >
>

--~--~-~--~~~---~--~~
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/G1 video driver

2009-04-09 Thread Streets Of Boston

Thanks!
This likely answers the problem i saw with calling
GL11Ext.glDrawTexiOES as well. It behaves differently (quite
differently) on the emulator than on an actual phone (G1)

On Apr 9, 11:09 am, David Turner  wrote:
> If you are referring to the accelerated OpenGL ES shared library used by
> the system on G1 / ADP1 devices, its source is not available, it's a
> proprietary
> binary blob.
>
> There is however a software-only OpenGL ES implementation that is part of
> the system (and is used when you run in the emulator), released under the
> Apache 2.0
> license. Look for "pixelflinger" in the sources.
>
> On Thu, Apr 9, 2009 at 4:28 PM, yarik...@gmail.com wrote:
>
>
>
>
>
> > Where can I find G1 video driver source?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 dispatching timed out

2009-04-09 Thread Streets Of Boston

How are you downloading your images?
Are you doing this in your main message-thread?  (e.g. in a
onSomethingSomething(...) method?)

If so, this causes your problem.

Start a new thread. Have this thread download your image when
necessary.
When you thread is done, have it post back to the main message-thread
with the resulting bitmap.

On Apr 9, 10:12 am, Ramesh  wrote:
> hi,
> I am working on an android project where the local and remote image
> files and their thumbnails are to be displayed. Now i have a problem
> with displaying the remote images. If i click the back button when the
> application is connected with the server, It waits for few seconds and
> forces my application to close. Log has a message "Key dispatching
> timed out". Once the image has downloaded completely back button is
> working, Here is my log.. Kindly help me in this.
>
> here is my log.
>
> 04-09 19:32:42.992: INFO/ActivityManager(52): Starting activity:
> Intent { comp={com.androidstorage/com.androidstorage.ViewStorageImage}
> (has extras) }
> 04-09 19:32:43.282: INFO/ActivityManager(52): Displayed activity
> com.androidstorage/.ViewStorageImage: 288 ms
> 04-09 19:32:49.072: WARN/WindowManager(52): Key dispatching timed out
> sending to com.androidstorage/com.androidstorage.ViewStorageImage
> 04-09 19:32:49.131: INFO/ActivityManager(52): ANR (application not
> responding) in process: com.androidstorage
> 04-09 19:32:49.131: INFO/ActivityManager(52): Annotation:
> keyDispatchingTimedOut
> 04-09 19:32:49.131: INFO/ActivityManager(52): CPU usage:
> 04-09 19:32:49.131: INFO/ActivityManager(52): Load: 0.01 / 0.1 / 0.07
> 04-09 19:32:49.131: INFO/ActivityManager(52): CPU usage from 7516ms to
> 51ms ago:
> 04-09 19:32:49.131: INFO/ActivityManager(52):   com.androidstorage: 7%
> = 5% user + 1% kernel
> 04-09 19:32:49.131: INFO/ActivityManager(52):   system_server: 4% = 2%
> user + 2% kernel
> 04-09 19:32:49.131: INFO/ActivityManager(52):   com.android.phone: 0%
> = 0% user + 0% kernel
> 04-09 19:32:49.131: INFO/ActivityManager(52):   adbd: 0% = 0% user +
> 0% kernel
> 04-09 19:32:49.131: INFO/ActivityManager(52):   events/0: 0% = 0% user
> + 0% kernel
> 04-09 19:32:49.131: INFO/ActivityManager(52): TOTAL: 12% = 8% user +
> 3% kernel
> 04-09 19:32:49.131: INFO/ActivityManager(52): /proc/meminfo:
> 04-09 19:32:49.131: INFO/ActivityManager(52): MemTotal:        94572
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): MemFree:          6260
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Buffers:           108
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Cached:          39188
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): SwapCached:          0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Active:          67572
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Inactive:        11924
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): SwapTotal:           0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): SwapFree:            0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Dirty:               0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Writeback:           0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): AnonPages:       40208
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Mapped:          22952
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Slab:             3256
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): SReclaimable:      676
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): SUnreclaim:       2580
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): PageTables:       2708
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): NFS_Unstable:        0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Bounce:              0
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): CommitLimit:     47284
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Committed_AS:   958532
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): VmallocTotal:   876544
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): VmallocUsed:     11464
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): VmallocChunk:   852988
> kB
> 04-09 19:32:49.131: INFO/ActivityManager(52): Removing old ANR trace
> file from /data/anr/traces.txt
> 04-09 19:32:49.140: INFO/Process(52): Sending signal. PID: 652 SIG: 3
> 04-09 19:32:49.140: INFO/dalvikvm(652): threadid=7: reacting to signal
> 3
> 04-09 19:32:49.152: INFO/dalvikvm(652): Wrote stack trace to '/data/
> anr/traces.txt'
> 04-09 19:32:49.152: INFO/Process(52): Sending signal. PID: 93 SIG: 3
> 04-09 19:32:49.152: INFO/dalvikvm(93): threadid=7: reacting to signal
> 3
> 04-09 19:32:49.162: INFO/dalvikvm(93): Wrote stack trace to '/data/anr/
> traces.txt'
> 04-09 19:32:49.162: INFO/Process(52): Sending signal. PID: 194 SIG: 3
> 04-09 19:32:49.162: INFO/dalvikvm(194): threadid=7: reacting to signal
> 3
> 04-09 19:32:49.172: INFO/dalvikvm(194): Wrote stack trace to '/data/
> anr/traces.txt'
> 04-09 19:32:49.181: INFO/Process(52): Sending signa

[android-developers] Re: Help required in using postInvalidate()

2009-04-09 Thread Romain Guy

You have to draw the background every time.

On Thu, Apr 9, 2009 at 1:12 AM, manohar  wrote:
>
> Hi all,
>
> I am devleoping an application. In which one back ground image is
> present. Above that i am drawing some animation. To animation to
> happen i have to call postInvalidate() method every time.  It is
> expecting every time to draw the back ground. Is there any solution so
> that i will draw the back ground ONLY once and using clipping i can
> draw the front and animation every time??.
>
> I dont want to draw background every time.
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
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] Ultra-Competitive FireWallet supporters

2009-04-09 Thread John Lauricella

Somebody named "Peter", who has a comment on the FireWallet finance application 
review page on the Android Market that says something like this "Firewallet is 
the greatest program ever, the best finance program, and the best application 
period, for Android.." 5 STARS, went on a competing finance application 
(BudgetProt) review site and wrote "Firewallet is way way better" 2 STARS!!!
That crushed the review stars average for the application and IS HURTING SALES.
This is highly confrontational behaviour, and will lead to retaliation. It was 
not a real review, it was a way to hurt a competing product, by LYING.

PLEASE STOP HURTING OTHER DEVELOPERS IN YOUR RACE TO OUTCOMPETE.

_
Rediscover Hotmail®: Get e-mail storage that grows with you. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
--~--~-~--~~~---~--~~
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] can replace default dialer?

2009-04-09 Thread Fred Grott(shareme)

I want to verify something..

I already did some app tests but I am coming to the conclusion that I
can nnto as non root replace the default dialer like one might replace
the HomeScreen.

is this assumption correct?



--~--~-~--~~~---~--~~
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: Nightly Build for Emulator

2009-04-09 Thread Evan Ruff

Hey Al,

Sorry to bother you about this, but when I installed your package, I
can't seem to get any network access.

When I used the regular emulators, I get 3G without problem, but your
dist seems to say no connection. Any ideas?

Thanks!

E

On Apr 9, 10:50 am, "Al Sutton"  wrote:
> There have been no checkins I'm aware of since my builds at;
>
> http://andappstore.com/AndroidPhoneApplications/sdk/
>
> Regards,
>
> Al.
>
> ---
>
> * Written an Android App? - List it athttp://andappstore.com/*
>
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
> Sent: 09 April 2009 15:40
> To: android-developers@googlegroups.com
> Subject: [android-developers] Re: Nightly Build for Emulator
>
> > I'm a lame-o Windows developer trying to do some Browser specific
> > development targeting Android. I'm having some funny issues with my G1
> > and my older emulator (WebKit CSS/Layout, etc). I was wondering if any
> > of you Linux guys out there might be so kind as to give me a compiled
> > image of the latest nightly build?
>
> There are no nightly builds at present that I am aware of. It's something I
> and some others are working on. Watch this space for announcements.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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: can replace default dialer?

2009-04-09 Thread Dianne Hackborn
You can replace the entire "dialtacts" activity.  You can't replace just one
tab in it.  This is regardless of whether you are running as root.

On Thu, Apr 9, 2009 at 9:03 AM, Fred Grott(shareme) wrote:

>
> I want to verify something..
>
> I already did some app tests but I am coming to the conclusion that I
> can nnto as non root replace the default dialer like one might replace
> the HomeScreen.
>
> is this assumption correct?
>
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Application gets killed "because provider is in dying process"

2009-04-09 Thread Dianne Hackborn
You can avoid this by not holding an open cursor on the media content
provider.

The onLowMemory() thing is not for this purpose.  In fact this may not have
anything to do with memory at all -- if a process you have a cursor on
crashes for whatever reason, your process needs to be killed as well.

On Thu, Apr 9, 2009 at 6:55 AM, GiladH  wrote:

>
> Hey,
>
> After long running the Media|Player (audio mode) the app I'm
> developing often crashes w/
> the following error:
>
> > Process android.process.media (pid 14795) has died.
> > Killing  because provider
> com.android.providers.media.MediaProvider is in dying process
> android.process.media
>
> Now this one is a real bummer because Android kills the media process
> _without_
> activating my own app's onLowMemory(), which would allow me to do some
> preemptive memory releasing.
>
>
> Is there a way to either
>
>  (a) get a notification that media process (or any other process my ap
> depends upon for that matter) is about to be killed
>
> -or-
>
>  (b) avoid my own app's killing after media process kill
>
>
>
> TIA,
> GiladH
>
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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: Ultra-Competitive FireWallet supporters

2009-04-09 Thread Al Sutton
I've had a few instances like this. I tend to mark the comment as spam and
hope for the best.
 
At the end of the day with they may really think their app is 2.5 times
better, and with the way market works you can only hope real users who like
your app will chip in with votes.
 
Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.



 

  _  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of John Lauricella
Sent: 09 April 2009 16:57
To: android group
Subject: [android-developers] Ultra-Competitive FireWallet supporters


Somebody named "Peter", who has a comment on the FireWallet finance
application review page on the Android Market that says something like this
"Firewallet is the greatest program ever, the best finance program, and the
best application period, for Android.." 5 STARS, went on a competing finance
application (BudgetProt) review site and wrote "Firewallet is way way
better" 2 STARS!!!
That crushed the review stars average for the application and IS HURTING
SALES.
This is highly confrontational behaviour, and will lead to retaliation. It
was not a real review, it was a way to hurt a competing product, by LYING.

PLEASE STOP HURTING OTHER DEVELOPERS IN YOUR RACE TO OUTCOMPETE.


  _  

Rediscover HotmailR: Get e-mail storage that grows with you. Check it
 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
-~--~~~~--~~--~--~---



[android-developers] Re: Nightly Build for Emulator

2009-04-09 Thread Al Sutton

Network connectivity is currently broken in the SDKs. Once Google release a
fix I'll be rolling a new build.

Al.


---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries. 


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Evan Ruff
Sent: 09 April 2009 17:18
To: Android Developers
Subject: [android-developers] Re: Nightly Build for Emulator


Hey Al,

Sorry to bother you about this, but when I installed your package, I can't
seem to get any network access.

When I used the regular emulators, I get 3G without problem, but your dist
seems to say no connection. Any ideas?

Thanks!

E

On Apr 9, 10:50 am, "Al Sutton"  wrote:
> There have been no checkins I'm aware of since my builds at;
>
> http://andappstore.com/AndroidPhoneApplications/sdk/
>
> Regards,
>
> Al.
>
> ---
>
> * Written an Android App? - List it athttp://andappstore.com/*
>
> ==
> Funky Android Limited is registered in England & Wales with the 
> company number  6741909. The registered head office is Kemp House, 
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not 
> necessarily those of Funky Android Limited, it's associates, or it's 
> subsidiaries.
>
> -Original Message-
> From: android-developers@googlegroups.com
>
> [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
> Sent: 09 April 2009 15:40
> To: android-developers@googlegroups.com
> Subject: [android-developers] Re: Nightly Build for Emulator
>
> > I'm a lame-o Windows developer trying to do some Browser specific 
> > development targeting Android. I'm having some funny issues with my 
> > G1 and my older emulator (WebKit CSS/Layout, etc). I was wondering 
> > if any of you Linux guys out there might be so kind as to give me a 
> > compiled image of the latest nightly build?
>
> There are no nightly builds at present that I am aware of. It's 
> something I and some others are working on. Watch this space for
announcements.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's 
> Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
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: Make My App Available By Intent

2009-04-09 Thread droozen

No, when I try to call the intent with startActivity I get a Force
Close error, whether I try:

Intent intent = new Intent();
intent.setAction("intent.action.VOLUME_CONTROL");
startActivity(intent);

or

Intent intent = new Intent("intent.action.VOLUME_CONTROL");
startActivity(intent);

with this filter in my manifest for the other app it's trying to call:






I don't have any special permissions I'm asking for, and I'm not using
any special permissions in the calling app. I have a feeling that I'm
missing something very simple, but I can't find any documentation that
says I'm doing anything wrong. Anyone know what I'm doing wrong?

(I know, to avoid the error at least, I could check to see if that
intent is available and whatnot, but I'm just trying to test to see if
it can work so i can make the intent available from my app)

On Apr 8, 9:07 pm, Birjodh Tiwana  wrote:
> So did the second  way work for you?
>
> On Wed, Apr 8, 2009 at 12:24 PM, droozen  wrote:
>
> > Sorry. The second way I tried to start the intent was:
>
> > Intent intent = new Intent("intent.action.VOLUME_CONTROL");
> > startActivity(intent);
>
> > (without the com.roozen in front)
>
> > On Apr 8, 11:12 am, droozen  wrote:
> > > Maybe this belongs in the beginners group, but I'm trying to make my
> > > application available through an intent. It's a volume controller app,
> > > so I figured it might be handy for another application to be able to
> > > call it to adjust volume without having to write their own.
>
> > > In my volume controller app, I have this activity as my main screen:
>
> > > 
> > >                         
> > >                                  > android:name="android.intent.action.MAIN" />
> > >                                  > android:name="android.intent.category.LAUNCHER" />
> > >                         
> > >             
> > >                 
> > >                                  > android:name="android.intent.category.DEFAULT" />
> > >             
> > > 
>
> > > From another app, I call with:
>
> > > Intent intent = new Intent();
> > > intent.setAction("intent.action.VOLUME_CONTROL");
> > > startActivity(intent);
>
> > > Or I've tried:
>
> > > Intent intent = new Intent("com.roozen.intent.action.VOLUME_CONTROL");
> > > startActivity(intent);
>
> > > Neither works. The process trying to call the other app fails. I've
> > > also tried removing the category.DEFAULT category from my intent
> > > filter, with no success.
>
> > > What am I missing?
--~--~-~--~~~---~--~~
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 launch a viewer for common file types?

2009-04-09 Thread Jay-andro

Is there a way to launch a viewer for common file types like TXT, DOC,
XLS, PDF from within an app, like Gmail does. Maybe a Google Docs api
to pass the file to GD and have it open 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] Re: How to launch a viewer for common file types?

2009-04-09 Thread Mark Murphy

> Is there a way to launch a viewer for common file types like TXT, DOC,
> XLS, PDF from within an app, like Gmail does.

If there is a component registered that recognizes the MIME type, you can
use startActivity().

So, for example, one hopes that DataViz' Documents to Go is set up to
handle ACTION_VIEW or ACTION_EDIT Intents on whatever the Microsoft
document MIME types are, so apps (like email clients) can ask Android to
open them via startActivity(), and Android will know how to process the
request.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
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: Webview Question: onCreate always get called when activity comes to foreground

2009-04-09 Thread UBZack

Hi Mark, thank you very much for your reply.

I have some more findings to report!  Turns out it's not just
launching it from Eclipse that causes this behavior, but also
downloading the apk from the Android web browser, installing it, and
tapping the launch button.

I set up a basic hello world app, uploaded it to my site, downloaded
it on my G1, installed it, hit the Launch button after it said the
install was successful, and it opened the app, showing the root
activity.  I then hit the Home button, and re-opened the app.  It
opened and showed the root activity, but then I hit the back button,
and it showed the same root activity that was previously instantiated
when it first launched.

I have not tried this with downloading an app from the Android Market,
but I would say that this is a bug in Android that should be fixed,
specifically in its package installer, or perhaps just in launching an
app in general right after installing it.  Anyway, thank you again for
your contributions, and if you have anything else to add to my
observations I'd be more than glad to hear it!

Best,
Zack



On Apr 8, 6:44 pm, Mark Murphy  wrote:
> UBZack wrote:
> > I did a little poking around and I think I can DEFINITELY shine some
> > light on this.
>
> > Basically, I think the difference lies in the way Eclipse ports the
> > apk to the emulator and launches it.
>
> 
>
> > It seems that eclipse ports the app to the emulator in such a way that
> > each successive launch that is made while the app is running pushes
> > another instance of the app onto the stack, unless you hit the back
> > button before relaunching.
>
> I don't use Eclipse. If I understand correctly, from this post and
> others, is that when you run the application from Eclipse, you are taken
> right to the initialactivityof that application, bypassing the home
> screen and launcher.
>
> In that case, what may be happening is that Eclipse tells the emulator
> to launch the rootactivity...and specifies FLAG_ACTIVITY_NEW_TASK and
>  FLAG_ACTIVITY_MULTIPLE_TASK on the launching Intent. That would provide
> the behavior you're experiencing, if I understand correctly.
>
> > Any light that you guys can shine on this would help a lot, and well
> > done on providing very helpful examples and suggestions
>
> Clearly, Eclipse is part of a broader Hulu-led initiative to "turn our
> chunky brain matter into creamy goo". ;-)
>
> > Mark, you've been quite a legend on this forum!
>
> Legend? I hope not. Legends are frequently rather dead.
>
> But, thanks!
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
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: Make My App Available By Intent

2009-04-09 Thread droozen

I've been trying some other stuff, too, now. And this doesn't even
seem to work:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);

I would expect that to ask me which app I want to launch. Instead I
get a Force Close error.

On Apr 9, 11:59 am, droozen  wrote:
> No, when I try to call the intent with startActivity I get a Force
> Close error, whether I try:
>
> Intent intent = new Intent();
> intent.setAction("intent.action.VOLUME_CONTROL");
> startActivity(intent);
>
> or
>
> Intent intent = new Intent("intent.action.VOLUME_CONTROL");
> startActivity(intent);
>
> with this filter in my manifest for the other app it's trying to call:
>
> 
>                 
>                  android:name="android.intent.category.DEFAULT" />
> 
>
> I don't have any special permissions I'm asking for, and I'm not using
> any special permissions in the calling app. I have a feeling that I'm
> missing something very simple, but I can't find any documentation that
> says I'm doing anything wrong. Anyone know what I'm doing wrong?
>
> (I know, to avoid the error at least, I could check to see if that
> intent is available and whatnot, but I'm just trying to test to see if
> it can work so i can make the intent available from my app)
>
> On Apr 8, 9:07 pm, Birjodh Tiwana  wrote:
>
> > So did the second  way work for you?
>
> > On Wed, Apr 8, 2009 at 12:24 PM, droozen  wrote:
>
> > > Sorry. The second way I tried to start the intent was:
>
> > > Intent intent = new Intent("intent.action.VOLUME_CONTROL");
> > > startActivity(intent);
>
> > > (without the com.roozen in front)
>
> > > On Apr 8, 11:12 am, droozen  wrote:
> > > > Maybe this belongs in the beginners group, but I'm trying to make my
> > > > application available through an intent. It's a volume controller app,
> > > > so I figured it might be handy for another application to be able to
> > > > call it to adjust volume without having to write their own.
>
> > > > In my volume controller app, I have this activity as my main screen:
>
> > > > 
> > > >                         
> > > >                                  > > android:name="android.intent.action.MAIN" />
> > > >                                  > > android:name="android.intent.category.LAUNCHER" />
> > > >                         
> > > >             
> > > >                 
> > > >                                  > > android:name="android.intent.category.DEFAULT" />
> > > >             
> > > > 
>
> > > > From another app, I call with:
>
> > > > Intent intent = new Intent();
> > > > intent.setAction("intent.action.VOLUME_CONTROL");
> > > > startActivity(intent);
>
> > > > Or I've tried:
>
> > > > Intent intent = new Intent("com.roozen.intent.action.VOLUME_CONTROL");
> > > > startActivity(intent);
>
> > > > Neither works. The process trying to call the other app fails. I've
> > > > also tried removing the category.DEFAULT category from my intent
> > > > filter, with no success.
>
> > > > What am I missing?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How does an Activity being drawn

2009-04-09 Thread samuel.zachar...@gmail.com

Hi,

When android start an Activity, I assume it has it runs under its own
thread.
I would like now know how the Activity get drawn? Is it by the same
application thread? or it has a Paint thread created by the VM?  What
about UI handling (user presses UP/DOWN key) which thread handles
that?

Thank you for any idea.


--~--~-~--~~~---~--~~
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] Beginner Question / Calendar API

2009-04-09 Thread andreas

Hi,

I'm really just a beginner and fiddling a little bit around with java
and my G1. I'd like to create a calendar event from the phone and
learned, that there is no Android API for the calendar.

I thought it should be possible to access the google calendar via web.
I googled a bit and found some code to try. If I start it as a java
programm on my home pc, it works well and adds an event to my
calendar:

com.google.gdata.client.calendar.CalendarService;
import com.google.gdata.data.DateTime;
import com.google.gdata.data.Person;
import com.google.gdata.data.PlainTextConstruct;
import com.google.gdata.data.extensions.EventEntry;
import com.google.gdata.data.extensions.When;
import com.google.gdata.util.ServiceException;
import java.io.IOException;
import java.net.URL;

public class TestMyCal {

/**
 * @param args
 */
public static void main(String[] args) throws IOException,
ServiceException {
// Set up the URL and the object that will handle the
connection:
URL postUrl = new 
URL("http://www.google.com/calendar/feeds/MYEMAIL/
private/full");
CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
myService.setUserCredentials("MYNAME", "MYPASSWORD");

EventEntry myEntry = new EventEntry();

myEntry.setTitle(new PlainTextConstruct("My test event"));
myEntry.setContent(new PlainTextConstruct("It might work."));

Person author = new Person("It's me", null, "m...@home.com');
myEntry.getAuthors().add(author);

DateTime startTime = DateTime.parseDateTime
("2009-04-08T15:00:00-08:00");
DateTime endTime = DateTime.parseDateTime
("2009-04-08T17:00:00-08:00");
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
myEntry.addTime(eventTimes);

// Send the request and receive the response:
EventEntry insertedEntry = myService.insert(postUrl, myEntry);
}

}

Great. Now I tried to put that into a Android application:

package com.android.hello;

import android.app.Activity;
import android.os.Bundle;
import com.google.gdata.client.calendar.CalendarService;
import com.google.gdata.data.DateTime;
import com.google.gdata.data.Person;
import com.google.gdata.data.PlainTextConstruct;
import com.google.gdata.data.extensions.EventEntry;
import com.google.gdata.data.extensions.When;
import com.google.gdata.util.AuthenticationException;
import com.google.gdata.util.ServiceException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Set up the URL and the object that will handle the
connection:
URL postUrl = null;
try {
postUrl = new 
URL("http://www.google.com/calendar/feeds/MYEMAIL/
private/full");
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
try {
myService.setUserCredentials("MYNAME", "MYPASSWORD");
} catch (AuthenticationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

EventEntry myEntry = new EventEntry();

myEntry.setTitle(new PlainTextConstruct("My test event"));
myEntry.setContent(new PlainTextConstruct("It might work."));

Person author = new Person("It's me", null, "m...@home.com');
myEntry.getAuthors().add(author);

DateTime startTime = DateTime.parseDateTime
("2009-04-08T15:00:00-08:00");
DateTime endTime = DateTime.parseDateTime
("2009-04-08T17:00:00-08:00");
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
myEntry.addTime(eventTimes);

try {
EventEntry insertedEntry = myService.insert(postUrl, 
myEntry);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

setContentView(R.layout.main);
}
}

The program just runs fine, no errors (not using the emulator, not
using the G1) - but there is no calendar entry anywhere.

Any pro out there who can give me a hint, what I am doing wrong?

Greetings,
Andreas

--~--~-~--~~~---~--~~
You received this 

[android-developers] ListView not touchable in my Activity

2009-04-09 Thread monn3t

Hello:

I developed an activity that extends the ListActivity.
It has a ListView that binds to a DB.

Thing is that I can click on the items of the view only with the
trackball.  When I try touching the items or the view I can't, is not
responsive.

Below the view I have a button that works just fine in touch screen
mode.

I already tried removing the button (I thought that was it) but no.

Any thoughts?

Thanks in advance.

Here is a snippet of my code:

public class Activity_CardList extends ListActivity {

private DbAdapter myDbAdapter;
private DbHelper myDbHelper;
private Cursor HolderCursor;
private String[] from;
private int[] to;
private static final int ADDCARD_DIALOG = 1;
private static final int ABOUT_DIALOG = 2;

static String barcodeNumber = "";
static String cardNote = "";
static String retailerName = "";
static String cardIcon = "";

// private ImageView storeLogo;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.card_list);

myDbAdapter = new DbAdapter(this);
myDbAdapter.open();
HolderCursor = myDbAdapter.getAllEntries();
from = new String[] { myDbHelper.FIELD1, myDbHelper.FIELD2,
myDbHelper.FIELD3 };

to = new int[] { R.id.icon_iv, R.id.field1,
R.id.field2};

SimpleCursorAdapter notes = new SimpleCursorAdapter(this,
R.layout.row,
HolderCursor, from, to);

setListAdapter(notes);

this.getListView().setChoiceMode(1);
this.getListView().setSelectionFromTop(1, 1);

Button addCard = (Button) this.findViewById
(R.id.cardlist_addCard_btn);
addCard.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
showDialog(ADDCARD_DIALOG);
}
});
}

--~--~-~--~~~---~--~~
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] StartActivity() in BroadcastReceiver

2009-04-09 Thread yeons...@gmail.com

Hello,

I'd like to launch one of settings app screen when received a certain
broadcast event in idle state.
For that, I added my event to PhoneAppBroadcastReceiver() in
PhoneApp.java (because it seems this receiver handles the misc events)
But if I called startActivity() in here, it does not work.
ex. startActivity(new Intent(this, NetworkSetting.class));

1. How I can start activity in BroadcastReceiver?

2. If the activity which I want to start is already started, how I can
check it?
I read that can use "NEW_TASK_LAUNCH" but don't know how to use it.
If you have an example code, could post 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] Application to determine location in home -- upstairs or downstairs

2009-04-09 Thread Neil

I'd like to create an android application that can determine whether
you are upstairs or downstairs in a house. My advisor does not want us
to use GPS because he says it won't work well indoors. Instead, he
wants us to build the app using the accelerometer on the phone. Can
you offer any ideas on how I can go about doing this?

I thought at first I could obtain an acceleration vs. time graph and
then integrate twice to obtain displacement. If the displacement
reached a certain value, then you would know the user has traveled
either downstairs or upstairs. However, this seems really
computationally intensive and it requires the app be running for a
long period of time, so I doubt I could build the app using this
approach...

Any suggestions would be greatly appreciated.

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] sample source code for beginner

2009-04-09 Thread tonyc...@gmail.com

Dear all android experts,

I'm trying to get my 1st android application (blackjack) going and am
so confused with layouts button etc etc. Are there any sample source
code for me to review? I have ran through the source that come with
the SDK and the android source tree.

Still pretty confused. am I stupid?

really appreciate your help in advance

Tony
in Beijing


--~--~-~--~~~---~--~~
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 add SMS to inbox in android programmatically?

2009-04-09 Thread sermojohn

But, does anyone know how I could access the sms inbox from my phone's
database?
As far as I have figured out, this was better documented on pervious
version of the Android API.
I cant even find the constants of the perimssion that I have to add to
the Manifest file of my application.
Has anyone figured out these issues?

On Mar 27, 9:04 am, John  wrote:
> try this method:
>
> PendingIntent pi = PendingIntent.getActivity(this, 0,
>             new Intent(this,SMS.class), 0);
>         SmsManagersms= SmsManager.getDefault();
>        sms.sendTextMessage(phoneNumber, null, message, pi,
> null);
>
> it works well.
>
> On Mar 18, 4:53 am, Seer  wrote:
>
> > > Thanks for your update. So you exactly have done two things:
> > > 1. Call SmsManager::sendTextMessage( )
> > > 2. Put the sentSMSto its database via ContentResolver::insert( )
>
> > The code i gave you only adds a record to the phonessmsdatabase to
> > say ansmshas been sent and it will be visible to the user.  In my
> > own code else where i have the code to send thesms.
>
> > On Mar 18, 1:53 am, Kenny  wrote:
>
> > > Thanks for your update. So you exactly have done two things:
> > > 1. Call SmsManager::sendTextMessage( )
> > > 2. Put the sentSMSto its database via ContentResolver::insert( )
>
> > > Kenny
>
> > > On Mar 17, 6:42 am, Seer  wrote:
>
> > > > i have been trying to do the same thing and just worked it out.  you
> > > > want to do something similar to this.
> > > > 
>
> > > >    public static final String ADDRESS = "address";
> > > >    public static final String PERSON = "person";
> > > >         public static final String DATE = "date";
> > > >         public static final StringREAD= "read";
> > > >         public static final String STATUS = "status";
> > > >         public static final String TYPE = "type";
> > > >     public static final String BODY = "body";
> > > >     public static final int MESSAGE_TYPE_INBOX = 1;
> > > >     public static final int MESSAGE_TYPE_SENT = 2;
>
> > > > ContentValues values = new ContentValues();
> > > >            values.put(SMSHelper.ADDRESS, "+61408219690");
> > > >            values.put(SMSHelper.DATE, "1237080365055");
> > > >            values.put(SMSHelper.READ, 1);
> > > >            values.put(SMSHelper.STATUS, -1);
> > > >            values.put(SMSHelper.TYPE, 2);
> > > >            values.put(SMSHelper.BODY, "SMSinserting test");
> > > >                 Uri inserted = 
> > > > getContentResolver().insert(Uri.parse("content://
> > > >sms"), values);
>
> > > > That is from a few different classes but i am sure you can work out
> > > > how it fits.
>
> > > > On Mar 13, 8:09 pm, senthil  wrote:
>
> > > > > HI,
> > > > > Iam sending thesmsby using the below code,
> > > > > SmsManager smsManager = SmsManager.getDefault();
> > > > > smsManager.sendTextMessage(destAddr, null, mMessageText, il, null);
>
> > > > > But, the sameSMSmessage needs to be reflected in the Nativesms
> > > > >inbox,
> > > > > Can anyone help me out in achieving this
>
> > > > > Thanks in Advance !- Hide quoted text -
>
> > > > - Show quoted text -

--~--~-~--~~~---~--~~
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: Read the SMS already stored

2009-04-09 Thread sermojohn

You could probably, call a Cursor's method that returned the field of
the specified content's datbase table.
I have actually  faced the same problem today, while trying to build
an SMS application. My problem is that
when trying to retrieve any info from the Cursor, I get a Security
exception mentioning something about Permissions.

Do you have any idea what this might be? Should I add any permission
declaration in the Manifest file of my application?

Concerning the URI, I have read around that it is content://sms/inbox

Hope I helped, while it seems that I m looking for the same
information as you do.
Please let me know if you have any new on that.

many thanx

On Apr 2, 6:35 pm, binklee  wrote:
> Hi everybody,
>
> I unfortunately don't find the necessary documentation to retrieve 
> theSMSalready received in theinbox.
>
> My goal is to do smthg like :
>
>             ContentResolver cr = mCtx.getContentResolver();
>             Cursor cur = cr.query(Uri.parse("content://sms/inbox"),
> null, null, null, null);
>
>             while (cur.moveToNext()) {
>                       // HOW TO KNOW HOW SHOULD I USE MY CURSOR?
>             }
>
> My questions are :
> * Is the URI correct ? I heard about content://sms/inbox and
> content://sms/conversation.
> * What are the columns where my cursor points ? Where can I find this
> kind of information?
> * Am I using the good method ?
>
> Thank you for your help,
> Deniz

--~--~-~--~~~---~--~~
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] Plugin download site gives 404

2009-04-09 Thread Mitch Patenaude

I was trying to install the newest SDK onto my new vista laptop, and
after downloading Eclipse (ganymede) I was following the instructions
to install the plugin, but https://dl-ssl.google.com/android/eclipse/
is returning 404.  (the http version is also returning 404).

Is this a known issue?

  -- MItch

--~--~-~--~~~---~--~~
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: content://sms/sent Read SMS

2009-04-09 Thread sermojohn

Have you tried to use the destination number of the SMS, in order to
find the Contact's name from the
phone's Contact list?

On Mar 19, 4:36 pm, Martin  wrote:
> Hi, I'm having a problem reading theSMSmessages from the device.
> When acquiring a content provider for the URI content://sms/inbox-
> everything is fine, I read the "person" column to find the foreign key
> into the people table and I can ultimately reach the contact and their
> name.
>
> However, I also want to traverse the sent messages too. When reading
> from content://sms/sent, the person field always appears to be 0. Is
> this the correct field to be reading to locate the recipient data for
> the sent message? If so - why is it always 0.
>
> All my testing has been done in the emulator and I've created 3
> contacts. I've sent messages to those contacts from the emulator in
> the normal manner you'd send a message.
>
> Just to reiterate, I can see the 4 sent messages and read the
> associated body text. My problem is that I can't seem to read the
> "person" ID and hence I can't work out who the recipient is.
>
> Any help would be greatly appreciated.
>
> Many thanks,
>
> Martin.

--~--~-~--~~~---~--~~
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] What widget frameworks are available on Android platform?

2009-04-09 Thread clemsongrad


Folks,

I searched a lot and could not find answer to this.  I am hoping to
post it here on the developer group with a hope that fellow developers
can chime in.

Thanks

I am trying to find which mobile widget frameworks are available on
the android platform.  The main reason i am looking for these
frameworks is to develop code that is portable across different
devices.  I know of a few frameworks out there, like Yahoo blueprint,
opera mini and streamezzo.  Some of these are like the yahoo one is
not available on android.

My question is simple:

1. What frameworks are you aware of that are available on android
platform?

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: content://sms/sent Read SMS

2009-04-09 Thread sermojohn

May be you should associate the two tables by using the destination
number of the SMS and not the destination name.
This is probable not stored for every SMS that is sent.
Opening up your source code, would help a lot.

On Mar 31, 5:39 am, binklee  wrote:
> same interest for this part of the code.
>
> On Mar 19, 9:36 am, Martin  wrote:
>
> > Hi, I'm having a problem reading theSMSmessages from the device.
> > When acquiring a content provider for the URI content://sms/inbox-
> > everything is fine, I read the "person" column to find the foreign key
> > into the people table and I can ultimately reach the contact and their
> > name.
>
> > However, I also want to traverse the sent messages too. When reading
> > from content://sms/sent, the person field always appears to be 0. Is
> > this the correct field to be reading to locate the recipient data for
> > the sent message? If so - why is it always 0.
>
> > All my testing has been done in the emulator and I've created 3
> > contacts. I've sent messages to those contacts from the emulator in
> > the normal manner you'd send a message.
>
> > Just to reiterate, I can see the 4 sent messages and read the
> > associated body text. My problem is that I can't seem to read the
> > "person" ID and hence I can't work out who the recipient is.
>
> > Any help would be greatly appreciated.
>
> > Many thanks,
>
> > Martin.

--~--~-~--~~~---~--~~
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] textfields for objects like in androids maps

2009-04-09 Thread puk

After clicking on an Map Object, I want this speech bubble(like in
androids map application) showing the objectname and arrow-buttons to
scroll through the map-objects. I tried something with canvas. But i
have no idea of how to use canvas. And I'm not sure if that generaly
helps.
Another idea i had was using setMarker.

I want to show moving objects on the map(by using an arrow for the
direction as symbol).
I used the mapview tutorial to show objects.

Thank You for helping me.

--~--~-~--~~~---~--~~
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] Preferences Question

2009-04-09 Thread Travis James

I have a quick question. My main class file has this:
Button update = (Button) findViewById(R.id.update);
update.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
EditText status = (EditText) findViewById(R.id.status);
String updtext = status.getText().toString();

SharedPreferences preferences = 
getPreferences(MODE_PRIVATE);

String usertext = preferences.getString("user", null);
String passtext = preferences.getString("pass", null);

Twitter twitter = new Twitter(usertext,passtext);
twitter.setSource("twitterit");
twitter.updateStatus(updtext);
status.setText("");
}
});
}

and I am trying to access preferences from this XML file:
http://schemas.android.com/apk/res/android";>






but for some reason it keeps returning a null string:

--~--~-~--~~~---~--~~
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] Stopping all services..

2009-04-09 Thread greggnic

Hi,

I just started writing an application for android and have run into a
wall. I would like my program to wait a certain amount of time and
then stop all currently running services. This would be useful when
falling asleep and you want to listen to music for say 30 minutes and
then the music player turns off automatically. I have tried this bit
of code:

ActivityManager am = (ActivityManager)
context.getSystemService(Context.ACTIVITY_SERVICE);

List myList =
am.getRunningServices(20);

for(int i=0; i < myList.size(); i++){

//Toast.makeText(context, myList.get(i).process,
Toast.LENGTH_LONG).show();
android.os.Process.killProcess(myList.get(i).pid);
 }

However, this does not work. Does anyone have a better way to do this
or any suggestions? Thanks,

-Nick

--~--~-~--~~~---~--~~
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 could I put tab widget at the right or left side ?

2009-04-09 Thread milton

Hi all

Currently I could find tab widget which located at the upper side of
the screen. (ex. Dialer, Contacts)
How could I put the tab widget at the left or right side of the
screen?
I had checked the reference of SDK and some parts of the source code
but I could not find a way to do it.
Could anyone kindly give me advice or clue about how to do it ?

Thanks in advance.

Regards
Milton

--~--~-~--~~~---~--~~
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] Incorrect clip rect in onDraw()?

2009-04-09 Thread Leisuresuit Larry

Hi all,

We came across a strange behavior. The clip rect of our custom view is
getting reset to its entire visible region, if we change the value of
another view.

Below is a sample app to demonstrate the behavior:

main.xml:

http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>







ClipTest.java:
package com.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.TextView;

public class ClipTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}


@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
TextView tv = (TextView)findViewById(R.id.text);
tv.setText("Test");

findViewById(R.id.view).invalidate(100, 0, 150, 75);
return true;
}
}

MyView.java:
package com.test;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.View;

public class MyView extends View {

public MyView(Context context) {
super(context);
}

public MyView(Context context, AttributeSet attrs) {
super(context, attrs);
}

protected void onDraw(Canvas canvas) {
super.onDraw(canvas);

Rect clip = canvas.getClipBounds();
System.out.println("clip " + clip);
}
}

If you run the above app, MyView.onDraw() prints "clip Rect(0, 0, 320,
100)". If you comment out "tv.setText("Test");", then MyView.onDraw()
prints "clip Rect(100, 0, 150, 75)".

Why does setting the TextView's text affect MyView's clip rect? How
can we get the correct clip rect in MyView.onDraw()? Thanks for any
help!

Larry

--~--~-~--~~~---~--~~
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] Playback of dynamic MIDI?

2009-04-09 Thread meantime

For one of my apps I generate MIDI data on the fly.  Is there any way
to play MIDI data from a java.io.InputStream or directly from a byte
[]?  So far I've only seen ways to do MIDI playback from files.  Given
the continuous and dynamic nature of my audio there is no way I can
write it to a file first.

-c

--~--~-~--~~~---~--~~
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] opening gmail attachments in an activity

2009-04-09 Thread Bill

I've got a certain formatted text file that I want to have a special
reader for. I can open it fine in HTMLViewer, but since it isn't
really HTML, the formatting makes it difficult to read. So, I've
created an activity to read it. I tested the reading part by loading
an example onto the sdcard, opening it in the activity and formatting
the results like I wanted and this worked fine.

But, what I really want is when I get an email with this file type, I
hit "Preview" for the attachment, it gives me a list of preview types
(HTMLViewer is always there and now my activity is there), then my
activity opens it and displays as it did above when reading a file.
The problem is that I can't figure out how to open the file in java.
When I log the intent it looks like:

04-08 21:24:42.760: INFO/LogLister(30942): intent = Intent
{ action=android.intent.action.VIEW data=content://gmail-ls/messages/
bill%40dork.com/367/attachments/0.1/BEST/false type=text/plain
flags=0x301 comp={com.dork.android/com.dork.android.LogLister} }

I feel certain that somewhere in the data part is the path that I
should use as file in

 new FileReader(new File(file))

but, I can't seem to home in on it. Does anybody know what it would
be?

--~--~-~--~~~---~--~~
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 a default phone number?

2009-04-09 Thread qflri...@gmail.com

If I have multiple phone numbers how can I pick a number to be default?

--~--~-~--~~~---~--~~
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: Application developer wanted for contract work

2009-04-09 Thread LeO_o

Hello!
I have 3 Android developers available.
I'm not a recrutier, I'm a representative of software development
company.
I'll send you Profile of our Android Team per request.
I can be reached by email elena.gredasova AT enterra-inc.com

On 10 мар, 07:08, AndroidDev  wrote:
> We am looking for a expert Android developer for Android application
> development. You must have documented experience in following areas:
>
> - UI development
> - file handling
> - multimedia decoding
> - authentication
>
> We already have our application running on other devices and can
> provide you with functioning models.
> We will provide you with a well documented API for you to interface to
> our servers.
> The UI will change a little compared to what we have now. You will
> have access to an experienced graphics designer for any necessary
> design changes.
>
> We expect that you will sign an NDA and a contract with us.
> Compensation will be $20,000.00. Payment will occur as we launch the
> application. It will be based on a revenue share model where you will
> get 30% of the revenues up to a max of $20,000.00. We estimate you
> will reach the $20,000.00 mark within 2 months of application launch
> date.  We are only looking for expert developers and you should be
> able to initiate the work within the next couple weeks. If succesful,
> we would be interested in extending additional work as the application
> evolves.
>
> If interested, please respond to petersmail66 at gmail

--~--~-~--~~~---~--~~
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 become root in emulator?

2009-04-09 Thread tibigiur...@gmail.com

Hi Meryl
You are always root in the emulator. That link is about how to gain
root access on a real G1 device.
I think the problem is you are trying to (re)mount a wrong partition.
On my emulator /dev/block/mtdblock0 is mounted on /system, and
remounting it with rw works fine. To make sure what partition you need
to remount use the mount command and see what is mounted on /system.


Regards.

On Apr 6, 10:36 pm, Meryl Silverburgh 
wrote:
> Hi,
>
> Can you please tell me how can I become root in android emulator?
> I have googled and find this 
> link:http://www.androidhere.com/ANDROID-NEWS/Technology/200811/19-Hack--Ho...
>
> so i tried
> # adb shell
> and the follow the steps
>
> #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
> #cd /system/bin
> #cat sh > su
> #chmod 4755 su
>
> and run 'su'
>
> but I still can't access files which only allow to be accessed by root.
>
> Thank you for 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
-~--~~~~--~~--~--~---



[android-developers] weird accelerometer readings?

2009-04-09 Thread Yuan

I implemented a simple program to record the accelerometer values as I
move it around. When I'm NOT moving anything, that is, it's lying flat
on a table, the values still seem to fluctuate wildly.

Does anyone else notice this weirdness?

I'm pasting some of the readings below:
x, y, z, time
Adata: 0.23154591, 0.44947147, -9.043911, 1239240099132
Adata: 0.23154591, 0.23154591, -8.812365, 1239240099152
Adata: 0.2860273, 0.2860273, -8.866846, 1239240099192
Adata: 0.3405087, 0.23154591, -8.812365, 1239240099212
Adata: 0.2860273, 0.23154591, -8.812365, 1239240099292
Adata: 0.2860273, 0.2860273, -8.812365, 1239240099322
Adata: 0.3405087, 0.2860273, -8.812365, 1239240099342
Adata: 0.3405087, 0.2860273, -8.866846, 1239240099362
Adata: 0.3949901, 0.23154591, -8.866846, 1239240099402
Adata: 0.3405087, 0.23154591, -8.866846, 1239240099423
Adata: 0.3405087, 0.23154591, -8.812365, 1239240099442
Adata: 0.3405087, 0.23154591, -8.771504, 1239240099525
Adata: 0.3405087, 0.2860273, -8.825985, 1239240099553
Adata: 0.3405087, 0.2860273, -8.866846, 1239240099575
Adata: 0.3949901, 0.3405087, -8.866846, 1239240099593
Adata: 0.3405087, 0.3949901, -8.825985, 1239240099616
Adata: 0.3949901, 0.3405087, -8.771504, 1239240099636

--~--~-~--~~~---~--~~
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] BundleException - not able to load this type of class, while porting Felix application to Android

2009-04-09 Thread Padma shankar
I am trying to port the Sip communicator application to android. This is
done by launching felix from the android activity. The other bundles are
installed by reading the bundles a Inputstream from the res/raw. The bundles
are getting installed.

The bundle.start() function is successful for bundles, which doesn't have
the Bundle-Activator constant in the manifest file. But if the
Bundle-Activator is present, the activator class fails to get loaded and
hence the bundle.start() fails with

BundleException - unable to load this type of class and a reference to the
defineClass function of the Dalvik vm.

Is the problem due to Dalvik vm not able to load the bytes. If so what is
the solution.

-Padma

--~--~-~--~~~---~--~~
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] Getting Preferences from Settings.java

2009-04-09 Thread Travis James

I have a settings.java file that has the following code:

import android.os.Bundle;
import android.preference.PreferenceActivity;

public class Settings extends PreferenceActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

addPreferencesFromResource(R.layout.preferences);
}
}

and I also have a preferences.xml file that has this:
http://schemas.android.com/apk/res/android";>






My question: Is there anyway I can access the string values of the
EditTextPreference's?
If so, can someone give me an example.
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] Getting Preferences from Settings.java

2009-04-09 Thread Travis James

I have a settings.java file that has the following code:

import android.os.Bundle;
import android.preference.PreferenceActivity;

public class Settings extends PreferenceActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

addPreferencesFromResource(R.layout.preferences);
}
}

and I also have a preferences.xml file that has this:
http://schemas.android.com/apk/res/android";>






My question: Is there anyway I can access the string values of the
EditTextPreference's?
If so, can someone give me an example.
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] Remote debugging ddms

2009-04-09 Thread Androidphan

Is it possible to use ddms over a remote connection?

I can run adb over a remote connection with setting ADBHOST=[ipaddr].
But when run ddms and try to connect with Eclipse ddms says:

35:40 W/ddms: Connection on 'debug selected' port, but none selected

Does ddms use the ADBHOST setting?

--~--~-~--~~~---~--~~
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 become root in emulator?

2009-04-09 Thread tibigiur...@gmail.com

Hi Meryl
You are always root in the emulator. That link is about how to gain
root access on a real G1 device.
I think the problem is you are trying to (re)mount a wrong partition.
On my emulator /dev/block/mtdblock0 is mounted on /system, and
remounting it with rw works fine. To make sure what partition you need
to remount use the mount command and see what is mounted on /system.


Regards.

On Apr 6, 10:36 pm, Meryl Silverburgh 
wrote:
> Hi,
>
> Can you please tell me how can I become root in android emulator?
> I have googled and find this 
> link:http://www.androidhere.com/ANDROID-NEWS/Technology/200811/19-Hack--Ho...
>
> so i tried
> # adb shell
> and the follow the steps
>
> #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
> #cd /system/bin
> #cat sh > su
> #chmod 4755 su
>
> and run 'su'
>
> but I still can't access files which only allow to be accessed by root.
>
> Thank you for 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
-~--~~~~--~~--~--~---



[android-developers] dtmf detection

2009-04-09 Thread PI9

did someone find a way to detect dtmf tones on the phone which is
called send by the one who's calling ??
I tried to record the tones with MediaRecorder but when they are
recorded as files i can't compare them to the dtmf tones played by the
funtion ToneGenerator...
Can I have some help please ?
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] Get An image then do something with it

2009-04-09 Thread iPhoneDev101

Hi,

Coming from an iphone background porting an application to android i
am looking at how i can get an image from the phone's library and then
do something with that image can anyone help?

thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How I call startActivity() in BradocastReceiver

2009-04-09 Thread yeons...@gmail.com

hello,

I'd like to launch one of settings app screen when I received a
certain event in idle state.
For that, I added my new intent to PhoneAppBroadcastReceiver() in
PhoneApp.java
(because it seems this receiver handles the misc intents)
But if I called startActivity(), seems phone goes to panic.
ex. startActivity(new Intent(this, NetworkSetting.class));

1. How can I launch the activity inside of bradcastreceiver?

2. If the activity which I want to start is already started, how can I
check it?
I read can use NEW_TASK_LAUNCH but don't know how to use  it.
If you have a sample code, could you post 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
-~--~~~~--~~--~--~---



  1   2   3   >