[android-beginners] Re: Is it possible to append a value to R.string or any resource under R.?

2009-10-23 Thread David

@Farpoc

Your solution worked perfectly.  Thank you very much.  I have about
300 possible strings the user can choose.  Is there a less CPU
intensive way to do this without 300 else if statements?

If not, hey, the application works well enough.  But it would be
cleaner code if it were possible to use R.string.h + whatever the user
entered on prior screen.  Is this possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] SQLiteDatabase update?

2009-10-23 Thread Craig

I'm having a problem getting an update statement to work. I have tried
it a number of different ways, but it just isn't working - I must be
missing something.

private void changeScore(long personId, long categoryId, boolean
sign) {
int julianDay = getDayNumber();

String delta = (sign ? "+1" : "-1");
String update = "update " + TABLE_NAME + " set score=score " +
delta + " where " +
"" + KEY_DATE + "=" + julianDay + " and " + 
KEY_PERSONID + "="
+ personId +
" and " + KEY_CATEGORYID + "=" + categoryId;
db.rawQuery(update, null);
}

When I log this update String, I see it as:
  update score set score=score +1 where day=2440588 and person_id=2
and category_id=1

I can paste that into my SQLite Manager Firefox plugin and run that
against a copy of my database, and it executes as I would expect - the
where values match up.

I would have liked to use the SQLiteDatabase.update method, but I
didn't see a way to pass the expression "score + 1" - as a value in
the ContentValues it treated "score +1" as a String and not an
expression.

As an experiment, I change the line that defines the update String to:
  String update = "update " + TABLE_NAME + " set score=score " +
delta;

Still no love.

Is there any reason an UPDATE wouldn't work in a rawQuery call? Or am
I doing something else wrong?


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



[android-beginners] Re: Regular expressions help

2009-10-23 Thread jax

ok thanks,

as I understand \s matches all whitespace characters as there are some
extra unicode whitespace characters in other languages (not part of
ASCII).  Maybe it is not worth worrying about these characters though.

I will try you solution above.



On Oct 23, 11:40 pm, Jeffrey Blattman 
wrote:
> hi,
>
> i think it has to do with the multiline flag. that causes it to eat the
> newline (read the javadocs).  i don't see any neat way to do it, other
> than treating whitespace and newlines separately. for example, something
> lime
>
> /        String s1 = "hello\n  hello\n\n    hello\n hi\n";
>          Pattern p = Pattern.compile("^[ \t]+|[ \t]+$|\n$",
> Pattern.MULTILINE);
>          Matcher m = p.matcher(s1);
>          s1 = m.replaceAll("");/
>
> On 10/23/09 9:16 AM, jax wrote:
>
>
>
> > I am trying to strip all whitespace from "each line" in a EditText
> > View.  The expression I am using is this
>
> > String result =    Pattern.compile("^\\s+|\\s+$",
> > Pattern.MULTILINE).matcher(input).replaceAll("");
>
> > This works for the following input
>
> > 
> > hello
> >        hello
> >     hello
> >   hi
> > 
> > This will produce:
> > hello
> > hello
> > hello
> > hi
>
> > but
> > 
> > hello
> >        hello
>
> >     hello
> >   hi
> > 
> > will produce:
> > hello
> > hellohello
> > hi
>
> > Notice the new line (\n).  This is causing the problem.  What I want
> > is:
> > hello
> > hello
> > hello
> > hi
>
> > Any ideas about how to fix this?
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Is it possible to append a value to R.string or any resource under R.?

2009-10-23 Thread Farproc

 // popluate textView with the string R.string.h + whatever the
user put on Screen A
if(desiredString.equals("1") {
 textView.setText(R.string.h1);
} else if(desiredString.equals("2") {
 textView.setText(R.string.h2);
} else if(){
// etc.
} else . {

}
On 10月24日, 上午9时59分, David  wrote:
> Screen A permits the user to input a value into an EditText field.
> Screen B populates a TextView using one of the entries in strings.xml
> based upon the TextView value.  For example, if the user inputs "2" on
> Screen A then Screen B should populate the TextView with
> R.strings.h2.  I have tried the following:
>
>      // get the bundle extras from Screen A's intent
>      Bundle extras = getIntent().getExtras();
>      // pull out the value from the UserInput EditText sent from
> Screen A
>      Str desiredString = extras != null ? extras.getString
> ("UserInput") : "";
>      // popluate textView with the string R.string.h + whatever the
> user put on Screen A
>      textView.setText(R.string.h + desiredString);
>
> I get a "cannot resolve R.string.h resource" error message because,
> evidently, the desiredString value is not appended onto R.string.h.
> So, I decided to come at it from another angle:
>
>      switch (desiredString) {
>      case 1:
>           textView.setText(R.string.h1);
>      case 2:
>           textView.setText(R.string.h2);
>      . . .
>      case 312:
>           textView.setText(R.string.h312);
>
> Note that you cannot switch on a string so I tried Integer.parseInt on
> the string but I wind up with a blank Screen B with the switch
> statement above.  It seems that the string is not turned into an int.
> So, my question is twofold: (1) is it possible to append a variable
> onto a R. entry and (2) if I am obliged to use the larger and uglier
> switch approach, how do I turn an EditText string value into an Int
> value?  Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Does anyone know how to set G1 use Wi-Fi with static IP?

2009-10-23 Thread Farproc

I set my G1 use static IP and disable DHCP of my router. But it seems
that my G1 still obtains a different IP address from router anyway.
Does anyone know why??

ps. I can visit internet through the auto obtained IP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Is it possible to append a value to R.string or any resource under R.?

2009-10-23 Thread David

Screen A permits the user to input a value into an EditText field.
Screen B populates a TextView using one of the entries in strings.xml
based upon the TextView value.  For example, if the user inputs "2" on
Screen A then Screen B should populate the TextView with
R.strings.h2.  I have tried the following:

 // get the bundle extras from Screen A's intent
 Bundle extras = getIntent().getExtras();
 // pull out the value from the UserInput EditText sent from
Screen A
 Str desiredString = extras != null ? extras.getString
("UserInput") : "";
 // popluate textView with the string R.string.h + whatever the
user put on Screen A
 textView.setText(R.string.h + desiredString);

I get a "cannot resolve R.string.h resource" error message because,
evidently, the desiredString value is not appended onto R.string.h.
So, I decided to come at it from another angle:

 switch (desiredString) {
 case 1:
  textView.setText(R.string.h1);
 case 2:
  textView.setText(R.string.h2);
 . . .
 case 312:
  textView.setText(R.string.h312);

Note that you cannot switch on a string so I tried Integer.parseInt on
the string but I wind up with a blank Screen B with the switch
statement above.  It seems that the string is not turned into an int.
So, my question is twofold: (1) is it possible to append a variable
onto a R. entry and (2) if I am obliged to use the larger and uglier
switch approach, how do I turn an EditText string value into an Int
value?  Thanks.

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



[android-beginners] Re: passing a fn thru SQLiteDatabase insert?

2009-10-23 Thread Craig

Thanks RichardC - that explains why there wasn't an error.

My guess as to why the julianday function call was not executed is
that this insert function uses a prepared statement and the entire
value got effectively quoted and escaped.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: passing a fn thru SQLiteDatabase insert?

2009-10-23 Thread RichardC

See:
http://www.sqlite.org/datatype3.html

"Each column in an SQLite 3 database is assigned one of the following
type affinities:

* TEXT
* NUMERIC
* INTEGER
* REAL
* NONE

A column with TEXT affinity stores all data using storage classes
NULL, TEXT or BLOB. If numerical data is inserted into a column with
TEXT affinity it is converted to text form before being stored.

A column with NUMERIC affinity may contain values using all five
storage classes. When text data is inserted into a NUMERIC column, an
attempt is made to convert it to an integer or real number before it
is stored. If the conversion is successful (meaning that the
conversion occurs without loss of information), then the value is
stored using the INTEGER or REAL storage class. If the conversion
cannot be performed without loss of information then the value is
stored using the TEXT storage class. No attempt is made to convert
NULL or blob values."

--
RichardC

On Oct 24, 1:12 am, Craig  wrote:
> I'm missing something here - here is a brief snippet showing what I'm
> trying to do, with "db" a SQLiteDatabase object:
>
>   ContentValues values = new ContentValues();
>   values.put(KEY_DATE, "julianday('now')");
>   return db.insert(TABLE_NAME, null, values);
>
> The KEY_DATE column is an integer column, but when I browse the data,
> it looks like the String "julianday('now')" is in the database.
>
> How is that possible - I would hope trying to set a string value into
> an integer column would cause an error.
>
> Is there a way to do this with passing the SQL function through
> insert? I know I could compute the value in Java and pass that, or
> issue a raw query and deal with the cursor; I'm trying to understand
> how this works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] passing a fn thru SQLiteDatabase insert?

2009-10-23 Thread Craig

I'm missing something here - here is a brief snippet showing what I'm
trying to do, with "db" a SQLiteDatabase object:

  ContentValues values = new ContentValues();
  values.put(KEY_DATE, "julianday('now')");
  return db.insert(TABLE_NAME, null, values);

The KEY_DATE column is an integer column, but when I browse the data,
it looks like the String "julianday('now')" is in the database.

How is that possible - I would hope trying to set a string value into
an integer column would cause an error.

Is there a way to do this with passing the SQL function through
insert? I know I could compute the value in Java and pass that, or
issue a raw query and deal with the cursor; I'm trying to understand
how this works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Sleep mode

2009-10-23 Thread Anders Feder
Hello,

Is it possible to programmaticly send the device into sleep mode (i.e. like
when pressing the power button once so screen the turns off and locks)?

Thanks in advance,
Anders Feder

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



[android-beginners] Re: going back without hitting back button

2009-10-23 Thread JasonMP

got it! thanks!

On Oct 23, 5:54 pm, Tim Clark  wrote:
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> 2009/10/23 JasonMP :
>
>
>
>
>
> > anyone able to tell me how i would progammatically go back a step in
> > the stack when say, for example, a user hits a button widget?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: going back without hitting back button

2009-10-23 Thread Tim Clark

http://groups.google.com/group/android-developers/browse_thread/thread/832f4356e60cc8ea

2009/10/23 JasonMP :
>
> anyone able to tell me how i would progammatically go back a step in
> the stack when say, for example, a user hits a button widget?
> >
>

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



[android-beginners] going back without hitting back button

2009-10-23 Thread JasonMP

anyone able to tell me how i would progammatically go back a step in
the stack when say, for example, a user hits a button widget?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: AutoCompleteTextView and ArrayAdapter with async update

2009-10-23 Thread Tim

Did you figure this one out?
I have a similar issue:
http://www.anddev.org/viewtopic.php?p=28428#28428

On Sep 18, 12:11 am, ordrune  wrote:
> I have anAutoCompleteTextViewusing anArrayAdapterfor its data.  I
> am trying to asynchronouslyupdatetheArrayAdapter, but if there is
> text typed into theAutoCompleteTextViewtheArrayAdapterwill notupdateuntil the 
> text in theAutoCompleteTextViewchanges.
>
> for example;
>
> actv =AutoCompleteTextView
> aa =ArrayAdapter
>
> 1) start the application
> 2) getCount on aa = 0
> 3) add on aa
> 4) getCount on aa = 1
> 5) type "r" into actv
> 6) getCount on aa = 1
> 7) add on aa
> 8) getCount on aa = 1
> 9) add on aa
> 10) getCount on aa = 1
> 11) type "e" into actv
> 12) getCount on aa = 3
>
> How can I force anupdateof the data?  I am doing anasyncupdate
> because I am getting the values to auto complete from a REST call.  I
> even tested this manually just by adding two buttons to the Activity
> along with the ACTV (one to show me the count and one to add an item).
>
> I tried notifyDataSetChanged on theArrayAdapter, but that doesn't
> seem to do anything.
>
> Thanks

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



[android-beginners] Re: Update 1.6

2009-10-23 Thread Balwinder Kaur (T-Mobile USA)

This is a developer forum for Android SDK issues.

However,  to assist you, your options  are:
1. Contact Vodafone Tech support, if you want the official  update.
This is the safe, official, and probably easiest way.

If you want to have some hacking fun and can live with the thrill/risk
of having a bricked phone then there are other options like
2. You can root  the phone and flash  an image from the HTC site
http://developer.htc.com/google-io-device.html
[The Google-IO-Device is not the same as HTC Magic, so check the
versions of the s/w, bootloader etc. It may or may not be compatible.
I have flashed the HTC Dream image on a G1, but not the Google ION on
a HTC Magic. A thorough research and fully charged battery is always
advisable in this matter.]
3. Or even more fun and more thrill is using a third party distro of
Android (where some of your favorite apps may not be available).

Balwinder Kaur
Senior Mobile Software Engineer
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Oct 23, 2:59 am, tlascp00  wrote:
> Dear,
>
> we have 2 HTC Magic (Vodafone), one of them has done the upgrade to
> 1.6, but the seconde do not do the upgrade, when i choose "System
> updates", the message "your system is currently up to date". They are
> Vodafone branded, so there is no possibility to update with a PC. Is
> there a possibility to send a "push" or onther way to force the
> update?
>
> BV 65.50S.20.17U_2.22.1926I
> KV 2.6.27-00393-g6607056 s...@sandroid #1
>
> Build Number CRC1
>
> Thanks in adavnce for your help and information
>
> Best regards
>
> Patrice Schwab
> ___
> Specialiste Telecom
> Technical Support Unit
>
> Téléphone     0800 55 64 64
> Fax             021 344 85 39
> patrice.sch...@swisscom.com
> ___
> Swisscom SA
> Technical Customer Unit
> Technical Support Unit
> Rue des Bergières 42
> 1004 Lausannewww.swisscom.ch
>
> Adresse postale:
> Case postale 8002
> 1000 Lausanne 22
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: images from images.google.com

2009-10-23 Thread pti4ik

Thanks a lot!

On 21 окт, 08:13, jphaberman  wrote:
> On Oct 18, 3:33 pm, pti4ik  wrote:
>
> > Hi everybody!
> > I need to search web for images by keyword or phrase with
> >images.google.com and then to show some of the found images in my app.
> > So does that web site have any API for this? Or what are the ways for
> > solving this problem?
> > Thanks!
>
> > Andrew
>
> Google AJAX Search APIhttp://code.google.com/apis/ajaxsearch/
>
> Jeremy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Programming The UI

2009-10-23 Thread Alex (PS3 Friends)

Was a little weird at first with the XML inflate, but gotten used to
it.  I actually kind of like it now the more I play with it.

Alex

On Oct 22, 11:08 am, xdiscx  wrote:
> How do you guys find the learning curve for programming the UI?
>
> Thanks,
>
> XDiScX

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



[android-beginners] Maps not showing when used in activity group

2009-10-23 Thread Ulf Herge

Hi!

I have a slight problem with my android application. My thought was to
re-use as many acitivites as possible in different places so I thought
an activity group would be the best shot for me to use in some places
and hence I would be able to re-use my map and a couple of
ListActivities

On one screen I have a "standalone" map, that is, a map ativity shown
over the entire screen and that works just fine. The problem comes
when I try to add tjis map activity to an ActivityGroup just below a
ListAcitivity. The list works just as it should be the map just
refuses to render! Even though it doesn't show the map itself I can
still see how the map keeps switching position when i click something
in my list (tells it to move to the adress specified in the list). I
really don't get it, there must be something I forgot to do when
adding the MapActivity to the ActivityGroup!?

-Java begin --
// create new LinearLayout and
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
LinearLayout l = new LinearLayout(this);
l.setLayoutParams(lp);
l.setOrientation(LinearLayout.VERTICAL);

LocalActivityManager localActivityManager = this
.getLocalActivityManager();

// our 2 different intents to be started.
Intent map = new Intent(this, ShowMapActivity.class);
Intent hallplatser = new Intent
(this,ListaHallplatserINarhetenActivity.class);

// start the activities
View mapview = localActivityManager.startActivity(KARTA_ID, map )
.getDecorView();
View hallplatsview = localActivityManager.startActivity(HALLPLATS_ID,
hallplatser).getDecorView();

WindowManager w = getWindowManager();
Display d = w.getDefaultDisplay();
int width = d.getWidth();
int height = d.getHeight();
map view.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, height / 2));
hallplatsview.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, height / 2));

// add the both views to the linearlayout and set it as the
contentview
l.addView(hallplatsview);
l.addView(mapview);

setContentView(l);

 Java end --

As I said before, the ShowMapActivity works just fine on it's own but
not when added to this activity group, any suggestions? :) All
permissions are also set (of course since the map works just fine
normally).

/ Ulf

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



[android-beginners] TimePicker Hour Dissapears on Rotate

2009-10-23 Thread Veyette Software

I have 2 timePickers declared in the xml layout file and defined in an
onClick method for a submit button. When I run the app and rotate the
screen, the hour text box in both timePickers goes blank. It still
remembers the number (if I select the down arrow next to it, it goes
to one less hour then what it showed before rotated), but does not
show any number until the user changes it. Any ideas?

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



[android-beginners] Camera app in Sprint htc phone

2009-10-23 Thread Tushar

There is a camera app on the phone but PackageManager does not list
it.
Has anyone tried to use this app in their application?
~Tushar

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



[android-beginners] Update 1.6

2009-10-23 Thread tlascp00

Dear,

we have 2 HTC Magic (Vodafone), one of them has done the upgrade to
1.6, but the seconde do not do the upgrade, when i choose "System
updates", the message "your system is currently up to date". They are
Vodafone branded, so there is no possibility to update with a PC. Is
there a possibility to send a "push" or onther way to force the
update?

BV 65.50S.20.17U_2.22.1926I
KV 2.6.27-00393-g6607056 s...@sandroid #1

Build Number CRC1

Thanks in adavnce for your help and information

Best regards

Patrice Schwab
___
Specialiste Telecom
Technical Support Unit

Téléphone   0800 55 64 64
Fax 021 344 85 39
patrice.sch...@swisscom.com
___
Swisscom SA
Technical Customer Unit
Technical Support Unit
Rue des Bergières 42
1004 Lausanne
www.swisscom.ch

Adresse postale:
Case postale 8002
1000 Lausanne 22


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



[android-beginners] 3D performance/capabilities of current Android handsets.

2009-10-23 Thread scratchresistor

Hi All,

I've been looking for some stats on Android handset 3d capabilities -
just some general numbers on how many polygons you can push etc. Does
anyone know any rough numbers? I'm assuming that stuff like Neocore
and Armadillo Roll are likely to be pushing the hardware as hard as
possible given that they are tech demonstrators - any info on poly
count etc. in these demos?

Thanks,

S

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



[android-beginners] how to set the hyperlink text with textview.

2009-10-23 Thread pp

I'm working on java for android and I need your help.

my question is set the text with textview, its style is look like the
hyperlink( color, underline etc...), and when i touch the text, i hope
i can hook the click event and handle it by myself. whether it's
feasible or not?


thanks in advance.




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



[android-beginners] setContentView - new

2009-10-23 Thread VBMichi

Hi,

ich have in res/layout/ two xml files:

main.xml
test.xml

I want to click a button in main.xml, and set the conent view to
test.xml.
The buttons id in main is "testshow".

The Code in my java file is:

package com.androidapp;

import android.app.TabActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TabHost;

public class androidapp extends TabActivity {
private TabHost mTabHost;
private Button mButton;

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

mTabHost = getTabHost();

mTabHost.addTab(mTabHost.newTabSpec
("tab_timetable").setIndicator("test1").setContent(R.id.tab1));
mTabHost.addTab(mTabHost.newTabSpec("tab_current").setIndicator
("test2").setContent(R.id.tab2));
mTabHost.addTab(mTabHost.newTabSpec("tab_options").setIndicator
("test3").setContent(R.id.tab3));

mTabHost.setCurrentTab(0);

mButton = (Button) findViewById(R.id.testshow);

mButton.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {
setContentView(R.layout.test);
}

});


}
}

It doenst work. The application force quit.
If i delete "setContentView(R.layout.test);" the application runs, but
the button have no code and doesnt show test.xml.

Anyone can help?

Regards,
Michael

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



[android-beginners] Re: auto-enable GPS

2009-10-23 Thread sangorys

> Honestly I was expecting such kind of response from both of you :-)
> The secret sauce is "android.permission.WRITE_SECURE_SETTINGS". Note
> _SECURE_. This is the only place where Android didn't tell me "You need
> XYZ permission to do ..." so far.
>

I am agree with trhe other guys, it does not work.

My code is:

  String allowedProviders = LocationManager.GPS_PROVIDER /*+ "," +
LocationManager.NETWORK_PROVIDER*/;
  Settings.Secure.putString(context.getContentResolver(),
Settings.Secure.LOCATION_PROVIDERS_ALLOWED, allowedProviders);


My permission is :
  
  

The compilation is good but the execution of the code fails just on
the putString command.

So, Martin-g, how do you do to do that without error.


I haven't found nothing on internet to suuceed in enable/disable GPS
but it is possible because some widgets succeed like :
  o  HTC Widget : on off GPS
  o Switchers


So, what is the secret ?

Thanks

PS : I try to cut automatically the GPS during the night like Battery
Booster application do with communications.

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



[android-beginners] (Root) update to rc33

2009-10-23 Thread stephen rigg
I jus successfully rooted my g1
Nd all the links for updating it to rc33 nd they were unresponsive.
My situation is I am like the lowest buil of the phone trying to get these
amazing features like:
Multi-touch
Tethering, nd ect
How do I start on my way frum here?

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



[android-beginners] Re: Skipping the long load time by having the emulator on all the time

2009-10-23 Thread Xavier Ducrohet

On Thu, Oct 22, 2009 at 8:00 PM, Indicator Veritatis  wrote:
> But can't one of you Android SDK hotshots just grep the
> resources for the SDK (or is it the ADT) for the word 'push'? You will
> find it faster than I would (by either above method) if you do. Or do
> you think this message is really coming from the emulator itself?

Yes, the important part of the error is coming from the package
manager on the device, ADT then wrap this up is a normal message (or
in some case we rewrite it completely so that it's easier to
understand).

If you check the package manager code, there are a LOT of reasons for
installations to fail.

Xav
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

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



[android-beginners] Re: Regular expressions help

2009-10-23 Thread Jeffrey Blattman




hi,

i think it has to do with the multiline flag. that causes it to eat the
newline (read the javadocs).  i don't see any neat way to do it, other
than treating whitespace and newlines separately. for example,
something lime

    String s1 = "hello\n  hello\n\n    hello\n hi\n";
    Pattern p = Pattern.compile("^[ \t]+|[ \t]+$|\n$",
Pattern.MULTILINE);
    Matcher m = p.matcher(s1);
    s1 = m.replaceAll("");

On 10/23/09 9:16 AM, jax wrote:

  
I am trying to strip all whitespace from "each line" in a EditText
View.  The _expression_ I am using is this

String result =	Pattern.compile("^\\s+|\\s+$",
Pattern.MULTILINE).matcher(input).replaceAll("");

This works for the following input


hello
  hello
   hello
 hi

This will produce:
hello
hello
hello
hi


but

hello
  hello

   hello
 hi

will produce:
hello
hellohello
hi

Notice the new line (\n).  This is causing the problem.  What I want
is:
hello
hello
hello
hi

Any ideas about how to fix this?

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

  


-- 





[android-beginners] Re: user can't see my app in market?

2009-10-23 Thread Jeffrey Blattman




never mind, version issue.

On 10/23/09 8:35 AM, Jeffrey Blattman wrote:

  
i have an app published to the market, and a user is telling me that
they can't see it ... through searching, or even when they scan the QR
code i comes up as not found. 
  
the user is not in the US, but i published it to "all locations".
  
any ideas?
  -- 
  


-- 





[android-beginners] Regular expressions help

2009-10-23 Thread jax

I am trying to strip all whitespace from "each line" in a EditText
View.  The expression I am using is this

String result = Pattern.compile("^\\s+|\\s+$",
Pattern.MULTILINE).matcher(input).replaceAll("");

This works for the following input


hello
  hello
   hello
 hi

This will produce:
hello
hello
hello
hi


but

hello
  hello

   hello
 hi

will produce:
hello
hellohello
hi

Notice the new line (\n).  This is causing the problem.  What I want
is:
hello
hello
hello
hi

Any ideas about how to fix this?

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



[android-beginners] user can't see my app in market?

2009-10-23 Thread Jeffrey Blattman




i have an app published to the market, and a user is telling me that
they can't see it ... through searching, or even when they scan the QR
code i comes up as not found. 

the user is not in the US, but i published it to "all locations".

any ideas?
-- 





[android-beginners] Re: Poor Documentation

2009-10-23 Thread shobhit kasliwal
Thank you naveen I will read the documents and try to solve the problem as
guided by you.

Thanks,
Shobhit

On Fri, Oct 23, 2009 at 5:42 AM, Naveen Krishna Ch  wrote:

> 2009/10/23 Dori 
>
>>
>> i dont know if thats a joke or not?!
>>
>> the docs are not that bad,
>
>
> Docs exists ??? tell where,
> look for "android doc" in google
> (or)
> touch this
> http://developer.android.com/guide/index.html
>
>
>
>> try developing for facebook stuff, so out
>> of date it hurts!
>>
>> On Oct 22, 2:00 pm, usharani ganapathy 
>> wrote:
>> > hi i m new to androidwhat is intent?
>>
>>
>
>
> --
> Shine bright,
> (: Naveen Krishna Ch :)
>
>
> >
>


-- 
Shobhit Kasliwal
Application Developer Intern
Liventus Designs
3400 Dundee Rd Northbrook IL 60062
skasli...@liventus.com
office: 847-291-1395 ext. 192
Cell: (309) 826 4709

Samuel Goldwyn
- "I'm willing to admit that I may not always be right, but I am never
wrong."

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



[android-beginners] storage location for barcode read

2009-10-23 Thread Abhishek

Hello,

I have installed barcode scanner application. Does anyone have idea
when the application scans the barcode image where the image is stored
on the phone??

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



[android-beginners] removing the dictionary from the ime

2009-10-23 Thread jax

Is is possible to remove the automatic dictionary from the ime when in
a particular text field?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Skipping the long load time by having the emulator on all the time

2009-10-23 Thread Indicator Veritatis

Well, I haven't seen the message recur, I distinctly remember the word
'push' in it, but not "in use". So it is not clear that you are seeing
the same message, you were probably seeing a different one.

Now that I am almost done with Part 5 of the tutorial, I will likely
soon backup to to steps 3 and 4 to try to reproduce the message.

On Oct 23, 3:29 am, Dori  wrote:
> I was having on and off problems from pushing apk's onto the emulator,
> but on my machine sometimes when the emulator has started up it is not
> visable to ddms or the ADT in eclispe, and i recieve an error that the
> emulator image is already in use. Not sure if this is the problem you
> are having but i solved it by just starting the ddms service then the
> emuator both by the command line. Also if the emulator screen is
> locked the app will not strat most of the time, makes sense as how
> would you start an app from a locked screen with an actual device?
>
> On Oct 23, 4:00 am, Indicator Veritatis  wrote:
>
> > True. But then to be sure of getting it, I would have to do one of two
> > things: 1) wait until it pops up again on new code as I continue the
> > tutorial (for example), or 2) undo what I have done and go back a
> > couple pages until it happens again.
>
> > Neither option really appeals to me. So I gave the vague message and
> > hoped someone would recognize it, since I can't be the only person
> > having the problem. Does anyone else want to volunteer to try the
> > tutorial? It has rough spots, but nevertheless provides good coverage
> > of a few points I have not seen covered in any other Android tutorial;
> > just don't forget to back up to the very first page.
>
> > However, if I do see it again, I will append the exact message to this
> > thread. But can't one of you Android SDK hotshots just grep the
> > resources for the SDK (or is it the ADT) for the word 'push'? You will
> > find it faster than I would (by either above method) if you do. Or do
> > you think this message is really coming from the emulator itself?
>
> > On Oct 22, 6:07 pm, Xavier Ducrohet  wrote:
>
> > > If you gave us the exact warning it would help :)
>
> > > On Thu, Oct 22, 2009 at 6:03 PM, Indicator Veritatis 
> > > wrote:
>
> > > > I thought of that solution too. But the problem is, that in a lot of
> > > > my code iterations, say, for example, following the tutorial at
>
> > > >http://activefrequency.com/blog/2009/ground-up-android-part-5-tweetin...
> > > > ,
> > > > I get a warning message from Android saying that it cannot push the
> > > > code to the emulator.
>
> > > > This appears to imply that if I really want to execute the just-built
> > > > code, I have to restart the emulator. On my machine, that causes me to
> > > > wait about 15S watching 'android', then about 30S watching the same
> > > > word in a funny font. Only then am I offered the opportunity to unlock
> > > > the phone via the menu key and finally, finally, see my app.
>
> > > > Or are you experienced developers so familiar with what code can be
> > > > pushed, and what cannot, that you can minimize changes that cannot be
> > > > pushed?
>
> > > > On Oct 7, 9:33 am, Romain Guy  wrote:
> > > > > Just don't quit theemulator:))
>
> > > > > On Wed, Oct 7, 2009 at 4:41 AM, Mika  wrote:
>
> > > > > > Hello,
>
> > > > > > I'm developing a game on the Android and the problem I'm running 
> > > > > > into
> > > > > > is the fact that the actualemulatortakes long time to boot. I have
> > > > > > to wait roughly 45s to 75seconds to get into my program. And when
> > > > > > actually doing lot of recompiling I'm wasting too much time for 
> > > > > > that.
>
> > > > > > So what can be done to get around this? I'd like to have theemulator
> > > > > > running and just upload the new program into it and run it 
> > > > > > instantly.
> > > > > > Is there a way to have theemulatorup and running and upload the
> > > > > > program into it every time I compile, so I wouldn't have to wait for
> > > > > > the boot up time of theemulator?
>
> > > > > > All tips and tricks are definitely welcome.
> > > > > > Thank you.
>
> > > > > > - Mika
>
> > > > > --
> > > > > 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
>
> > > --
> > > Xavier Ducrohet
> > > Android SDK Tech Lead
> > > Google Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~

[android-beginners] Re: Web servers

2009-10-23 Thread D G
Already got it - many thanks Alan

On Oct 23, 2009, at 4:49 AM, Alan Cassar   
wrote:

> You can take a look at iJetty: http://code.google.com/p/i-jetty/
>

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



[android-beginners] Re: Using external font in android application

2009-10-23 Thread kk_Kiran



On Oct 21, 4:30 pm, Mark Murphy  wrote:

> No, I have no idea.
>

anyways, thx. Hope we will soon get this support.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] FREE! FREE! FREE!

2009-10-23 Thread mr.cash

ITS FREE TO JOIN IN WEBSITE AND GET MORE FRIENDS,BOOKS,STUFFS, TIPS
ETC...

IF U LUCKY, U CAN ALSO WIN PRIZES... JUST TRY

BY THE FOLLOWING WEBSITE

http://123maza.com/1011/cook/

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



[android-beginners] Re: Intercept an outgoing call

2009-10-23 Thread Sean Hodges

On Fri, Oct 23, 2009 at 10:04 AM, Nemat  wrote:
>
> Hi,
> I am trying to disconnect an outgoing call by injecting END key but it
> gives a security exception.I have added INJECT_EVENT permission in
> manifest.Here is my code:
>
> Handler handler;
> Thread t = new Thread() {
>          Object sync = new Object();
>          public void run() {
>              Log.d( "Handler11","Creating handler ..." );
>              Looper.prepare();
>              handler = new Handler();
>              Looper.loop();
>              Log.d( "Handler22", "Looper thread ends" );
>          }
>      };
>      t.start();
>
> handler.post( new Runnable() {
>                                // Log.d( "Generate key","Generating keys 
> w/inst..." );
>                public void run() {
>                         Log.d( "","111" );
>                    Log.d( "Generate key","Generating keys w/
> inst..." );
>                    Instrumentation inst = new Instrumentation();
>                    inst.sendKeyDownUpSync
> ( KeyEvent.KEYCODE_ENDCALL );
>                }
>            } );

Do you have a stacktrace? The security exception should have a description...

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



[android-beginners] Re: Poor Documentation

2009-10-23 Thread Naveen Krishna Ch
2009/10/23 Dori 

>
> i dont know if thats a joke or not?!
>
> the docs are not that bad,


Docs exists ??? tell where,
look for "android doc" in google
(or)
touch this
http://developer.android.com/guide/index.html



> try developing for facebook stuff, so out
> of date it hurts!
>
> On Oct 22, 2:00 pm, usharani ganapathy 
> wrote:
> > hi i m new to androidwhat is intent?
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Poor Documentation

2009-10-23 Thread Dori

i dont know if thats a joke or not?!

the docs are not that bad, try developing for facebook stuff, so out
of date it hurts!

On Oct 22, 2:00 pm, usharani ganapathy 
wrote:
> hi i m new to androidwhat is intent?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Skipping the long load time by having the emulator on all the time

2009-10-23 Thread Dori

I was having on and off problems from pushing apk's onto the emulator,
but on my machine sometimes when the emulator has started up it is not
visable to ddms or the ADT in eclispe, and i recieve an error that the
emulator image is already in use. Not sure if this is the problem you
are having but i solved it by just starting the ddms service then the
emuator both by the command line. Also if the emulator screen is
locked the app will not strat most of the time, makes sense as how
would you start an app from a locked screen with an actual device?

On Oct 23, 4:00 am, Indicator Veritatis  wrote:
> True. But then to be sure of getting it, I would have to do one of two
> things: 1) wait until it pops up again on new code as I continue the
> tutorial (for example), or 2) undo what I have done and go back a
> couple pages until it happens again.
>
> Neither option really appeals to me. So I gave the vague message and
> hoped someone would recognize it, since I can't be the only person
> having the problem. Does anyone else want to volunteer to try the
> tutorial? It has rough spots, but nevertheless provides good coverage
> of a few points I have not seen covered in any other Android tutorial;
> just don't forget to back up to the very first page.
>
> However, if I do see it again, I will append the exact message to this
> thread. But can't one of you Android SDK hotshots just grep the
> resources for the SDK (or is it the ADT) for the word 'push'? You will
> find it faster than I would (by either above method) if you do. Or do
> you think this message is really coming from the emulator itself?
>
> On Oct 22, 6:07 pm, Xavier Ducrohet  wrote:
>
>
>
> > If you gave us the exact warning it would help :)
>
> > On Thu, Oct 22, 2009 at 6:03 PM, Indicator Veritatis 
> > wrote:
>
> > > I thought of that solution too. But the problem is, that in a lot of
> > > my code iterations, say, for example, following the tutorial at
>
> > >http://activefrequency.com/blog/2009/ground-up-android-part-5-tweetin...
> > > ,
> > > I get a warning message from Android saying that it cannot push the
> > > code to the emulator.
>
> > > This appears to imply that if I really want to execute the just-built
> > > code, I have to restart the emulator. On my machine, that causes me to
> > > wait about 15S watching 'android', then about 30S watching the same
> > > word in a funny font. Only then am I offered the opportunity to unlock
> > > the phone via the menu key and finally, finally, see my app.
>
> > > Or are you experienced developers so familiar with what code can be
> > > pushed, and what cannot, that you can minimize changes that cannot be
> > > pushed?
>
> > > On Oct 7, 9:33 am, Romain Guy  wrote:
> > > > Just don't quit theemulator:))
>
> > > > On Wed, Oct 7, 2009 at 4:41 AM, Mika  wrote:
>
> > > > > Hello,
>
> > > > > I'm developing a game on the Android and the problem I'm running into
> > > > > is the fact that the actualemulatortakes long time to boot. I have
> > > > > to wait roughly 45s to 75seconds to get into my program. And when
> > > > > actually doing lot of recompiling I'm wasting too much time for that.
>
> > > > > So what can be done to get around this? I'd like to have theemulator
> > > > > running and just upload the new program into it and run it instantly.
> > > > > Is there a way to have theemulatorup and running and upload the
> > > > > program into it every time I compile, so I wouldn't have to wait for
> > > > > the boot up time of theemulator?
>
> > > > > All tips and tricks are definitely welcome.
> > > > > Thank you.
>
> > > > > - Mika
>
> > > > --
> > > > 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
>
> > --
> > Xavier Ducrohet
> > Android SDK Tech Lead
> > Google Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Intercept an outgoing call

2009-10-23 Thread Nemat

Hi,
I am trying to disconnect an outgoing call by injecting END key but it
gives a security exception.I have added INJECT_EVENT permission in
manifest.Here is my code:

Handler handler;
Thread t = new Thread() {
  Object sync = new Object();
  public void run() {
  Log.d( "Handler11","Creating handler ..." );
  Looper.prepare();
  handler = new Handler();
  Looper.loop();
  Log.d( "Handler22", "Looper thread ends" );
  }
  };
  t.start();

handler.post( new Runnable() {
// Log.d( "Generate key","Generating keys 
w/inst..." );
public void run() {
 Log.d( "","111" );
Log.d( "Generate key","Generating keys w/
inst..." );
Instrumentation inst = new Instrumentation();
inst.sendKeyDownUpSync
( KeyEvent.KEYCODE_ENDCALL );
}
} );
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Web servers

2009-10-23 Thread Alan Cassar
Title: Alan Cassar, Software Developer | Tel: +356 21334457 | Fax: +356
21
334156





You can take a look at iJetty: http://code.google.com/p/i-jetty/














Alan Cassar, Software
Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd., Northfields Suite 4, Independence Avenue,
Mosta MST9026 - MALTA
email:  alan.cas...@ricston.com
| web:ricston.com

--
Disclaimer
- This email and any files transmitted with it are confidential and
contain
privileged or copyright information. You must not present this message
to
another party without first gaining permission from the sender. If you
are not
the intended recipient you must not copy, distribute or use this email
or the
information contained in it for any purpose other than to notify us. If
you
have received this message in error, please notify the sender
immediately and
delete this email from your system. We do not guarantee that this
material is
free from viruses or any other defects although due care has been taken
to minimise
the risk. Any views stated in this communication are those of the
actual sender
and not necessarily those of Ricston Ltd.
or its
subsidiaries.
 




Demetris wrote:

  
Hi all,

is it possible to run a web server on the Android emulator?

Thanks



  


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





[android-beginners] Re: make seekbar (un)clickable depending on RadioButton

2009-10-23 Thread Alan Cassar
Title: Alan Cassar, Software Developer | Tel: +356 21334457 | Fax: +356
21
334156





if the user can change the value of the radio button, which I am
assuming he can, then you need to change the clickable value of the
seekbar everytime the value of the radio button change. you can easily
do that in the activity by implementing the OnCheckedChangedLister of
the radio button:

    seekBar = (SeekBar) findViewById(R.id.seekBar);
    radio01 = (RadioButton) findViewById(R.id.RadioButton01);
    
    radio01.setOnCheckedChangeListener(new OnCheckedChangeListener()
    {
    
    @Override
    public void onCheckedChanged(CompoundButton buttonView,
boolean isChecked)
    {
    seekBar.setClickable(isChecked);
    
    }
    });













Alan Cassar, Software
Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd., Northfields Suite 4, Independence Avenue,
Mosta MST9026 - MALTA
email:  alan.cas...@ricston.com
| web:ricston.com

--
Disclaimer
- This email and any files transmitted with it are confidential and
contain
privileged or copyright information. You must not present this message
to
another party without first gaining permission from the sender. If you
are not
the intended recipient you must not copy, distribute or use this email
or the
information contained in it for any purpose other than to notify us. If
you
have received this message in error, please notify the sender
immediately and
delete this email from your system. We do not guarantee that this
material is
free from viruses or any other defects although due care has been taken
to minimise
the risk. Any views stated in this communication are those of the
actual sender
and not necessarily those of Ricston Ltd.
or its
subsidiaries.
 




Stefan wrote:

  Hello,

i want to have following layout:

if a radiobutton is checked:  the user can't use the seekbar.
if the radiobutton is unchecked: the user can use the seekbar.

Can I implement this behaviour in the layout xml file or must i check
the the status of the radiobutton in the onCreate method and than make
the seekbar (un)clickable?!

Thanks,
Stefan

PS: if the radiobutton is checked, i want to see the seekbar, but it
shouldnt be active. perhaps the color of the seekbar should become
gray to show the user, that this seekbar isnt available now.

  


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





[android-beginners] Re: Android 1.6 SDK is here!

2009-10-23 Thread Alan Cassar





You do not download the android sdk to your phone, you download it to
your computer and use it for development. Your phone should have
android installed though.







Alan Cassar, Software Developer | Tel: +356 21334457 | Fax: +356
21
334156






Alan Cassar, Software
Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd., Northfields Suite 4, Independence Avenue,
Mosta MST9026 - MALTA
email:  alan.cas...@ricston.com
| web:ricston.com

--
Disclaimer
- This email and any files transmitted with it are confidential and
contain
privileged or copyright information. You must not present this message
to
another party without first gaining permission from the sender. If you
are not
the intended recipient you must not copy, distribute or use this email
or the
information contained in it for any purpose other than to notify us. If
you
have received this message in error, please notify the sender
immediately and
delete this email from your system. We do not guarantee that this
material is
free from viruses or any other defects although due care has been taken
to minimise
the risk. Any views stated in this communication are those of the
actual sender
and not necessarily those of Ricston Ltd.
or its
subsidiaries.
 




knightsarm...@gmail.com wrote:

  i am in need of help. i am trying to download android1.5 or 1.6 to my
phone, but i cant access it through my phone. do i need to download it
to my computer then to my phone? if so how do i do that?

On Sep 15, 6:22 pm, Xavier Ducrohet  wrote:
  
  
http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here...

Enjoy!
--
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

  
  

  


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