[android-developers] Re: virtual call

2011-06-01 Thread Amita
Can you give more details as what are you trying to do?
If you making an app which does something on call receive, then for
sure you can virtually call your emulator so that you can test your
app.

>From command prompt you can call your emulator.

Thanks,
-A

On Jun 1, 3:04 am, Ralostx  wrote:
> as I make a virtual call android. what would my code in java

-- 
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]Why insert row into table return null?

2011-06-01 Thread Vicky Wang
Hi, all
When i want to insert one row into the table of database, i
use getContentResolver().insert(uri, contentvalues). But the return is null.
why? What error happed?
Thanks for your help.

Vicky

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

Re: [android-developers] rotation on emulators

2011-06-01 Thread Plmdev Android
Try Ctrl +F11

On Thu, Jun 2, 2011 at 11:49 AM, Jumana  wrote:

> Im trying out this example "RotationOneDemo" from "The Busy Coder's
> Guide to Android Development"
> I built it on 2.3.1 and trying to run it on emulators. But the
> emulator doesn't rotate after i press Ctrl+F12.
> Am i doing something wrong?
>
> --
> 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

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

Re: [android-developers] layoutopt

2011-06-01 Thread Romain Guy
The framework supports both dp and dip, there's no reason to get rid
of either one. As for weight, ignoring the height/width is not a
solution. The weight is used to distribute the remaining empty space,
and the remaining empty space is computed by looking at the
width/height. The combination of width/height is also useful to impose
a minimum size. For instance width=200dip + weight=1 means "take at
least 200 dip and then the remaining space if available." This is
extremely powerful to create UIs that scale nicely across multiple
form factors.

On Wed, Jun 1, 2011 at 11:08 PM, Chris  wrote:
> Hey Romain,
>
> Speaking of LinearLayouts and density-independent pixels can you proclaim
> once and for all whether, going forward, its going to be 'dip' or 'dp', or
> will the framework always support both?
>
> Sort of back on topic, can linear layouts with weighting simply ignore the
> layout_[height|width] attributes?  I had a bitch of a time with a custom
> list view (horizontal and vertical) before I found (conflicting) info about
> setting the relevant layout attribute to 0dp.
>
> Thanks,
> - 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



-- 
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] rotation on emulators

2011-06-01 Thread Jumana
Im trying out this example "RotationOneDemo" from "The Busy Coder's
Guide to Android Development"
I built it on 2.3.1 and trying to run it on emulators. But the
emulator doesn't rotate after i press Ctrl+F12.
Am i doing something wrong?

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


Re: [android-developers] layoutopt

2011-06-01 Thread Chris
Hey Romain,

Speaking of LinearLayouts and density-independent pixels can you proclaim 
once and for all whether, going forward, its going to be 'dip' or 'dp', or 
will the framework always support both?

Sort of back on topic, can linear layouts with weighting simply ignore the 
layout_[height|width] attributes?  I had a bitch of a time with a custom 
list view (horizontal and vertical) before I found (conflicting) info about 
setting the relevant layout attribute to 0dp.

Thanks,
- 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] Re: Are dialogs supposed to be modal?

2011-06-01 Thread Zsolt Vasvari
Of course, it's wise, but frankly, only an idiot would use that piece
of code -- and you cannot really help those people.

On Jun 2, 2:00 pm, Chris  wrote:
> The suggestion to avoid using private APIs is wise.  I had a company once
> that built a model on WinNT 4 and when XP/5.0 came out was rendered
> obsolete.
>
> Just sayin' is all.
>
> - 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


Re: [android-developers] Re: Are dialogs supposed to be modal?

2011-06-01 Thread Chris
The suggestion to avoid using private APIs is wise.  I had a company once 
that built a model on WinNT 4 and when XP/5.0 came out was rendered 
obsolete.

Just sayin' is all.

- 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

Re: [android-developers] music player issue

2011-06-01 Thread Plmdev Android
How your app playing song once you entered the app ?


Are you not checking whether your service is running or not in background
before playing song ?






On Tue, May 31, 2011 at 2:03 PM, RJN  wrote:

> hi everybody...
>
> i was create music player which is properly stopping and pausing. but
> when i exit the app the music run in background which i need.but when
> i enter the app again it starts to play new song then the problem is
> that could hear the both songs..so i need some help about this
> topic..p
>
> please help...
>
> thanks in advance...
>
> regards.
>
> Rjn.
>
> --
> 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

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

2011-06-01 Thread Pradeep
Thanks !

On May 30, 12:21 pm, Romain Guy  wrote:
> 0dip/weight=1 is a special case that LinearLayout can optimize. Also,
> match_parent/weight=1.0 is (almost) meaningless. You are telling
> LinearLayout to have this child take up all the space (match_parent)
> and then fill the remaining available empty space (weight=1.0.) What
> you really want is 0dip/weight=1.
>
>
>
>
>
>
>
>
>
> On Sun, May 29, 2011 at 11:45 PM,Pradeep wrote:
> > Hi,
>
> > I have a linearlayout and one of its element was as follows
>
> >  >                android:background="#22" 
> > android:layout_height="match_parent"
> >                android:layout_weight="1.0"
> >                >
> >                 > android:id="@+id/peoplelist"
> >                android:layout_height="wrap_content"
> >                >
> >                
> > 
>
> > on running layoutopt on this it gave following message
>
> > "Use an android:layout_height of 0dip instead of match_parent for
> > better performance"
>
> > How does this help in getting better performance ?
>
> > Regards,
> >Pradeep
>
> > --
> > 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
>
> --
> 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] Re: Re-scaling PNG image to fit screen results in file about 2X the screen size

2011-06-01 Thread Spooky


On Jun 2, 12:33 am, Spooky  wrote:

>  dimenstions,

DOH!  That's another of those side-effects...I can't always see
errors like that.  And sometimes, I see text where it isn't, and
it isn't where it's supposed to be.  Again, very annoying.

Later,
   --jim

--
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
< Running FreeBSD 7.0 > | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

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


Re: [android-developers] Re: Are dialogs supposed to be modal?

2011-06-01 Thread Dianne Hackborn
I care because I don't want to break people's applications.

On Wed, Jun 1, 2011 at 10:21 PM, Zsolt Vasvari  wrote:

> Why do you care?  If people are stupid enough to use it, they deserve
> that their apps break.
>
>
>
> On Jun 2, 12:35 pm, Dianne Hackborn  wrote:
> > And dang it, stop telling people to do this.
> >
> >
> >
> >
> >
> > On Wed, Jun 1, 2011 at 9:32 PM, Dianne Hackborn 
> wrote:
> > > You are using private APIs.  This CAN and WILL break.  Stop it.
>  Seriously.
> >
> > > On Wed, Jun 1, 2011 at 7:36 PM, Qi Luo 
> wrote:
> >
> > >> Check out my another 2 threads, I reflected Looper.loop() to run a
> nested
> > >> thread, and it worked, a real modal dialog
> >
> > >>http://stackoverflow.com/questions/6184831/android-how-to-take-over-m.
> ..
> >
> > >>http://stackoverflow.com/questions/6120567/android-how-to-get-a-modal.
> ..
> >
> > >> On Fri, Apr 15, 2011 at 6:10 AM, TreKing 
> wrote:
> >
> > >>> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
> > >>> satya.komatin...@gmail.com> wrote:
> >
> >  I guess it is possible to quick fast enough to beat the system. May
> >  be you need to set a variable to detect this.
> >
> > >>> Or just disable the second button before showing the dialog, as it
> states
> > >>> in the post linked to.
> >
> > >>>
> ---­--
> > >>> TreKing  -
> Chicago
> > >>> transit tracking app for Android-powered devices
> >
> > >>>  --
> > >>> 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
> >
> > >>  --
> > >> 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
> >
> > > --
> > > 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.- 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
>



-- 
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: Wifi lock with WIFI_MODE_SCAN_ONLY

2011-06-01 Thread seema
Hello All,

   Here is what I do to scan on wifi while connected to 3G.

WifiLock wifiLock =
wifiService.createWifiLock(WifiManager.WIFI_MODE_SCAN_ONLY,
"MyLock");

if(!wifiLock.isHeld()){
wifiLock.acquire();
}

if(wifiService.isWifiEnabled() == false){
 wifiService.setWifiEnabled(true);
 }

Is my usage of WIFI_MODE_SCAN_ONLY is correct. When I enable Wifi,
it automatically connects to the remembered network. I just want
to scan but not connect. The definition of WIFI_MODE_SCAN_ONLY is:
In this Wi-Fi lock mode, Wi-Fi will be kept active, but the only
operation that will be supported is initiation of scans, and the
subsequent reporting of scan results.

Please help me

Regards,
Seema

-- 
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-scaling PNG image to fit screen results in file about 2X the screen size

2011-06-01 Thread Spooky
Given the following code (indentation reduced to fit max line length):

---  CUT HERE  ---

// load and resize the original image
Bitmap image = BitmapFactory.decodeResource(getResources(),
mImageIds[info.position]);

// original size == w,h
int w = image.getWidth();
int h = image.getHeight();

// get display size in pixels --- this is the size we want...I think.
Display display = getWindowManager().getDefaultDisplay();
DisplayMetrics dm = new DisplayMetrics();
display.getMetrics(dm);
int nW =  dm.widthPixels;
int nH = dm.heightPixels;

// Calculate the scale factor
float sW = ((float) nW) / w;
float sH = ((float) nH) / h;

// do NOT fsck with the aspect ratio: make sure we scale at 1:1
if (sW > sH) sW = sH;
if (sH > sW) sH = sW;

// scale the image by the calculated scale factor
Matrix matrix = new Matrix();
matrix.postScale(sW, sH);
Bitmap resizedBitmap = Bitmap.createBitmap(image, 0, 0,
w, h, matrix, true);

// Load the resized image as wallpaper
try {
manager.setBitmap(resizedBitmap);
} catch (IOException e) {
e.printStackTrace();
}

---  CUT HERE  ---

As I understand this, based on reading the developers guide and
the examples for each item, this *SHOULD* take the original PNG
image, determine its dimenstions, determine the screen size,
calculate the scale factor (and make sure it's 1:1 to maintain
the correct aspect ratio), resize the original image to fit the
screen (again, keeping the original aspect ratio), and set it to
wallpaper.  Well, almost.

It is, in fact, rescaling the image to make it much larger (about
twice the size of the display on my Motorola Bravo---Android
2.2.1) than the window's dimensions.

I've been digging through this for over a week now, and finally
got this close tonight...but at this point, whatever it is, my
brain (with the aftermath of three tumors, triple brain surgery,
and radiation therapy, plus one chemo drug that is known to be
extremely nasty to the brain), will not allow me to see it.  It
does that sometimes, and it is incredibly annoying, to say the
least.

Can anyone please point me in the right direction?  What I'd
ultimately like to do is let the user select the desired
orientation (landscape or portrait), and resize to fit that
choice, and finally, lock (that might be the wrong word) the
orientation of the wallpaper to match the user's choice.

Thanks,
   --jim

--
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
< Running FreeBSD 7.0 > | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

-- 
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: Are dialogs supposed to be modal?

2011-06-01 Thread Zsolt Vasvari
Why do you care?  If people are stupid enough to use it, they deserve
that their apps break.



On Jun 2, 12:35 pm, Dianne Hackborn  wrote:
> And dang it, stop telling people to do this.
>
>
>
>
>
> On Wed, Jun 1, 2011 at 9:32 PM, Dianne Hackborn  wrote:
> > You are using private APIs.  This CAN and WILL break.  Stop it.  Seriously.
>
> > On Wed, Jun 1, 2011 at 7:36 PM, Qi Luo  wrote:
>
> >> Check out my another 2 threads, I reflected Looper.loop() to run a nested
> >> thread, and it worked, a real modal dialog
>
> >>http://stackoverflow.com/questions/6184831/android-how-to-take-over-m...
>
> >>http://stackoverflow.com/questions/6120567/android-how-to-get-a-modal...
>
> >> On Fri, Apr 15, 2011 at 6:10 AM, TreKing  wrote:
>
> >>> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
> >>> satya.komatin...@gmail.com> wrote:
>
>  I guess it is possible to quick fast enough to beat the system. May
>  be you need to set a variable to detect this.
>
> >>> Or just disable the second button before showing the dialog, as it states
> >>> in the post linked to.
>
> >>> ---­--
> >>> TreKing  - Chicago
> >>> transit tracking app for Android-powered devices
>
> >>>  --
> >>> 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
>
> >>  --
> >> 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
>
> > --
> > 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.- 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 do you deal with "skins" clashing with your UI?

2011-06-01 Thread Zsolt Vasvari
> It'd be a problem for anyone trying to make a TextView look like a
> Spinner and trying to get an OS-supplied, OEM-modified theme to do
> that for them.

Instead of a snarky answer, maybe you would realize that this could be
a problem for anyone who wants to coordinate the L&F of their app to
the platform's L&F.

So let me rephrase the question:  How can I provide resources that I
can select based on the UI skin/theme/whatever the user is running?

-- 
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 you deal with "skins" clashing with your UI?

2011-06-01 Thread Zsolt Vasvari
On Jun 1, 8:43 pm, Kostya Vasilyev  wrote:
> Zsolt -
>
> Couldn't you use an AutoCompleteTextView instead?

No, it's a date picker control.  I am displaying the textual date in a
non-editable field and invoke the date picker control when the user
presses the button.  It's a not fixed list of choices.


>
> Or a button of some sort (possibly an ImageView) next to an edit control?

I had it that way originally, but it had become a nightmare to
maintain when there have been at least 4 different official Android
UI's.

The spinnner looks works great everywhere but the fact that the
TextView mocks around with the TextAppearance messes it up.

I might end up just moving the TextView into my app and remove that
behavior.

-- 
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: libjingle ported to java

2011-06-01 Thread Krishna Shetty
I want to have libjingle client on the Android device.
Could you suggest tell me the best approaches for 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

Re: [android-developers] Are dialogs supposed to be modal?

2011-06-01 Thread Dianne Hackborn
And dang it, stop telling people to do this.

On Wed, Jun 1, 2011 at 9:32 PM, Dianne Hackborn  wrote:

> You are using private APIs.  This CAN and WILL break.  Stop it.  Seriously.
>
>
> On Wed, Jun 1, 2011 at 7:36 PM, Qi Luo  wrote:
>
>> Check out my another 2 threads, I reflected Looper.loop() to run a nested
>> thread, and it worked, a real modal dialog
>>
>>
>> http://stackoverflow.com/questions/6184831/android-how-to-take-over-message-loop-of-activity-like-getmessage-postmessage-i
>>
>> http://stackoverflow.com/questions/6120567/android-how-to-get-a-modal-dialog-or-similar-modal-behavior
>>
>>
>> On Fri, Apr 15, 2011 at 6:10 AM, TreKing  wrote:
>>
>>> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
>>> satya.komatin...@gmail.com> wrote:
>>>
 I guess it is possible to quick fast enough to beat the system. May
 be you need to set a variable to detect this.

>>>
>>> Or just disable the second button before showing the dialog, as it states
>>> in the post linked to.
>>>
>>>
>>> -
>>> TreKing  - Chicago
>>> transit tracking app for Android-powered devices
>>>
>>>  --
>>> 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
>>>
>>
>>  --
>> 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
>>
>
>
>
> --
> 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

Re: [android-developers] Are dialogs supposed to be modal?

2011-06-01 Thread Dianne Hackborn
You are using private APIs.  This CAN and WILL break.  Stop it.  Seriously.

On Wed, Jun 1, 2011 at 7:36 PM, Qi Luo  wrote:

> Check out my another 2 threads, I reflected Looper.loop() to run a nested
> thread, and it worked, a real modal dialog
>
>
> http://stackoverflow.com/questions/6184831/android-how-to-take-over-message-loop-of-activity-like-getmessage-postmessage-i
>
> http://stackoverflow.com/questions/6120567/android-how-to-get-a-modal-dialog-or-similar-modal-behavior
>
>
> On Fri, Apr 15, 2011 at 6:10 AM, TreKing  wrote:
>
>> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
>> satya.komatin...@gmail.com> wrote:
>>
>>> I guess it is possible to quick fast enough to beat the system. May
>>> be you need to set a variable to detect this.
>>>
>>
>> Or just disable the second button before showing the dialog, as it states
>> in the post linked to.
>>
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>>  --
>> 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
>>
>
>  --
> 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
>



-- 
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: Logcat View fails with "Could not create the view: For input string: "our" "

2011-06-01 Thread Swati Goel
I got the solution. I worked.

Solution is in your Eclipse workspace go 
to .metadata\.plugins\org.eclipse.core.runtime\.settings 

there is a file com.android.ide.eclipse.ddms.prefs

In this file there is an id which contains all the filters which you were 
using in DDMS.
You can compare that file with your colleague and find the difference.

I did the same and it worked.

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: Logcat View fails with "Could not create the view: For input string: "our" "

2011-06-01 Thread Swati Goel
Hi Mak,

I am also facing the same problem. Can you please tell me how did you 
resolve that problem?

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: Android LifeCycle and Singleton Instances

2011-06-01 Thread chandlersong
you can store the data to database or serialize the object.

I guess you need keep some data  or do something after app has been
stopped.

On 6月2日, 上午9时03分, Dianne Hackborn  wrote:
> If your process is killed, the next time you run a fresh process must be
> created and re-initialized.  There is no way to get a "stale" pointer across
> this.  If the pointer was stale, you'd probably have a native crash because
> it would be completely unrelated to the current process you are running.
>
> You can verify the behavior yourself just by using adb shell to kill your
> process.
>
>
>
>
>
>
>
>
>
> On Wed, Jun 1, 2011 at 5:39 PM, Jake Colman  wrote:
>
> > I was pretty sure that I understood the Android lifecycle and how
> > applications/processes might be start/stopped/removed and how that
> > effects whether variables remain initialized.  I am, however, seeing
> > some funky behavior in my app such that I am afraid I have missed
> > something.
>
> > I use a singleton pattern for some of my objects.  That is, the
> > constructor is private and you call a static getInstance() method to
> > construct the object.  The static instance variable is, of course,
> > initialized to NULL which is the trigger for getInstance to know whether
> > the object needs to be constructed.
>
> > I have learned that any code that calls getInstance() cannot assume that
> > the object it has constructed continues to live in memory since my
> > application might have been killed by Android.  So throughout my code I
> > always call getInstance() to ensure that I have a valid object.  Am I
> > correct in assuming that had I been killed that getInstance() will
> > create a new object?  In other words, will my static instance variable
> > have been reset to NULL or might my factory method give me back a stale
> > pointer?
>
> > ...Jake
>
> > --
> > Jake Colman -- Android Tinkerer
>
> > --
> > 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
>
> --
> 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: onRestart from Home button or from back button

2011-06-01 Thread albnok
Have Activity B call Activity C using startActivityOnResult(intent,
requestCode), override Activity C's onBackPressed to pass a kill flag
via intent and setResult. In Activity B override onActivityResult and
see if the kill flag is there and the request code matches then call
finish(). So pressing back in C will go to A.

On May 30, 3:22 pm, Fina Perez  wrote:
> Hi!
> I thought to use that, but I'm not sure if it's going to work. The
> thing is sometimes I break the "normal flow" between activities, I
> mean, from activity A I start activity B, and from B, C. But when I
> finish activity C, I go back to the activity A, so I really dont know
> if onStartActivityForResult waits for the result of the activity it
> launched or just for a result.
>
> On May 26, 7:56 pm, TreKing  wrote:
>
>
>
>
>
>
>
> > On Thu, May 26, 2011 at 3:44 AM, Fina Perez  wrote:
> > > when I press the back button and navigate from one activity to the 
> > > previous
> > > one inside my app. In this case, I dont need to check anything, but I 
> > > really
> > > dont know who to handle this situation.
>
> > > any ideas?
>
> >http://developer.android.com/reference/android/app/Activity.html#star...,
> > int)http://developer.android.com/reference/android/app/Activity.html#onAc...,
> > int, android.content.Intent)
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

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


Re: [android-developers] Are dialogs supposed to be modal?

2011-06-01 Thread Qi Luo
Sorry for typo, not a nested thread, but a nested loop :D

On Thu, Jun 2, 2011 at 10:36 AM, Qi Luo  wrote:

> Check out my another 2 threads, I reflected Looper.loop() to run a nested
> thread, and it worked, a real modal dialog
>
>
> http://stackoverflow.com/questions/6184831/android-how-to-take-over-message-loop-of-activity-like-getmessage-postmessage-i
>
> http://stackoverflow.com/questions/6120567/android-how-to-get-a-modal-dialog-or-similar-modal-behavior
>
>
> On Fri, Apr 15, 2011 at 6:10 AM, TreKing  wrote:
>
>> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
>> satya.komatin...@gmail.com> wrote:
>>
>>> I guess it is possible to quick fast enough to beat the system. May
>>> be you need to set a variable to detect this.
>>>
>>
>> Or just disable the second button before showing the dialog, as it states
>> in the post linked to.
>>
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>>  --
>> 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
>>
>
>

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

Re: [android-developers] Are dialogs supposed to be modal?

2011-06-01 Thread Qi Luo
Check out my another 2 threads, I reflected Looper.loop() to run a nested
thread, and it worked, a real modal dialog

http://stackoverflow.com/questions/6184831/android-how-to-take-over-message-loop-of-activity-like-getmessage-postmessage-i
http://stackoverflow.com/questions/6120567/android-how-to-get-a-modal-dialog-or-similar-modal-behavior

On Fri, Apr 15, 2011 at 6:10 AM, TreKing  wrote:

> On Thu, Apr 14, 2011 at 3:42 PM, Satya Komatineni <
> satya.komatin...@gmail.com> wrote:
>
>> I guess it is possible to quick fast enough to beat the system. May be you
>> need to set a variable to detect this.
>>
>
> Or just disable the second button before showing the dialog, as it states
> in the post linked to.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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
>

-- 
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 LifeCycle and Singleton Instances

2011-06-01 Thread Streets Of Boston
The code below will work fine for a singleton:
...
private static MyObject myObject = null;
public static MyObject getMyObject() {
  if (myObject == null {
myObject = new MyObject();
  }
  return myObject;
}
 
Note that variable won't be 'reset' to null. There is nothing to reset when 
your process is killed. It is gone, nohting left.
 
When a *new* process is started, i.e. the process that will run your app 
again, then the static fields are all properly initialized (in this case, 
'myObject' to the value '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

Re: [android-developers] Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread Nikolay Elenkov
On Thu, Jun 2, 2011 at 7:45 AM, Spooky  wrote:
> Ok, maybe that didn't make sense  What I'm looking for, *IF* it
> exists for Android/Java, is
> some way to open up, say, a console,  load the code, and check the
> value returned by some
> line in the code without having to use the AVD (which doesn't work on
> my system) or build,
> install on my phone, and view that way?  In other words, if I only
> want to check one tiny
> part of the code (e.g., to see if the value I was expecting to be
> returned was, in fact, what
> WAS returned by [whatever]).    OR, to run a simple command with test
> values and see if I
> get the result I expected (if not, it probably means I mis-read the
> examples in the reference
> page for whatever I was looking at).
>

It seems like what you need is a unit test. The default Android testing
framework only runs on a device (or emulator), but you can use
Roboelectric to test most things in your IDE. No device/emulator
involved, fast and easy.

http://pivotal.github.com/robolectric/

-- 
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: Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread eklv
creating android junit testcase has helped me to do same

On Jun 1, 9:40 pm, DanH  wrote:
> Open a command window and type "java".  (Well, you'll probably have to
> navigate to the correct directory and do a "javac" first, but it's not
> much more complicated than that.)
>
> On Jun 1, 5:45 pm, Spooky  wrote:
>
> > Ok, maybe that didn't make sense  What I'm looking for, *IF* it
> > exists for Android/Java, is
> > some way to open up, say, a console,  load the code, and check the
> > value returned by some
> > line in the code without having to use the AVD (which doesn't work on
> > my system) or build,
> > install on my phone, and view that way?  In other words, if I only
> > want to check one tiny
> > part of the code (e.g., to see if the value I was expecting to be
> > returned was, in fact, what
> > WAS returned by [whatever]).OR, to run a simple command with test
> > values and see if I
> > get the result I expected (if not, it probably means I mis-read the
> > examples in the reference
> > page for whatever I was looking at).
>
> > Basically, just a way to run a simple command/procedure/whatever
> > (with, perhaps,
> > some test data loaded from the same console) to see if I've correctly
> > understood how to use it, without having to build an application
> > around the test.
>
> > My guess is that the answer is no, but I'm asking in the hopes that my
> > guess is
> > wrong..

-- 
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: Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread DanH
Open a command window and type "java".  (Well, you'll probably have to
navigate to the correct directory and do a "javac" first, but it's not
much more complicated than that.)

On Jun 1, 5:45 pm, Spooky  wrote:
> Ok, maybe that didn't make sense  What I'm looking for, *IF* it
> exists for Android/Java, is
> some way to open up, say, a console,  load the code, and check the
> value returned by some
> line in the code without having to use the AVD (which doesn't work on
> my system) or build,
> install on my phone, and view that way?  In other words, if I only
> want to check one tiny
> part of the code (e.g., to see if the value I was expecting to be
> returned was, in fact, what
> WAS returned by [whatever]).    OR, to run a simple command with test
> values and see if I
> get the result I expected (if not, it probably means I mis-read the
> examples in the reference
> page for whatever I was looking at).
>
> Basically, just a way to run a simple command/procedure/whatever
> (with, perhaps,
> some test data loaded from the same console) to see if I've correctly
> understood how to use it, without having to build an application
> around the test.
>
> My guess is that the answer is no, but I'm asking in the hopes that my
> guess is
> wrong..

-- 
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: questions about android apk signature.

2011-06-01 Thread zhang ning
NO. It's no use.

Are there better solutions?

On Jun 2, 2:43 am, Mark Murphy  wrote:
> On Tue, May 31, 2011 at 11:33 PM, zhang ning  wrote:
> > android provide a mechanism sign an apk to identify who provide this
> > apk.
>
> > but it seems no away to identify who to use this apk.
>
> > if i want to limit my apk to given users, how can i do?
>
> Distribute the application yourself, from your own secure Web site,
> and hope none of your users redistributes the app.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC:http://marakana.com/training/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: Android LifeCycle and Singleton Instances

2011-06-01 Thread Jake Colman

So as long as I always call my getInstance() class I can be certain that
I will get a pointer to the already constructed object or that the
static instance variable had been reset to NULL triggering new
construction?


> "DH" == Dianne Hackborn  writes:

   DH> If your process is killed, the next time you run a fresh process
   DH> must be created and re-initialized.  There is no way to get a
   DH> "stale" pointer across this.  If the pointer was stale, you'd
   DH> probably have a native crash because it would be completely
   DH> unrelated to the current process you are running.

   DH> You can verify the behavior yourself just by using adb shell to
   DH> kill your process.

   DH> On Wed, Jun 1, 2011 at 5:39 PM, Jake Colman  wrote:

   >> 
   >> I was pretty sure that I understood the Android lifecycle and how
   >> applications/processes might be start/stopped/removed and how that
   >> effects whether variables remain initialized.  I am, however, seeing
   >> some funky behavior in my app such that I am afraid I have missed
   >> something.
   >> 
   >> I use a singleton pattern for some of my objects.  That is, the
   >> constructor is private and you call a static getInstance() method to
   >> construct the object.  The static instance variable is, of course,
   >> initialized to NULL which is the trigger for getInstance to know whether
   >> the object needs to be constructed.
   >> 
   >> I have learned that any code that calls getInstance() cannot assume that
   >> the object it has constructed continues to live in memory since my
   >> application might have been killed by Android.  So throughout my code I
   >> always call getInstance() to ensure that I have a valid object.  Am I
   >> correct in assuming that had I been killed that getInstance() will
   >> create a new object?  In other words, will my static instance variable
   >> have been reset to NULL or might my factory method give me back a stale
   >> pointer?
   >> 
   >> ...Jake
   >> 
   >> 
   >> --
   >> Jake Colman -- Android Tinkerer
   >> 
   >> --
   >> 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
   >> 

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

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

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

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Re: Running activity with parameter from status bar notification

2011-06-01 Thread Dianne Hackborn
Do you actually have permission to run the activity that is in another
application?

For debugging issues, you should try to isolate your problem.  For example
here you should make sure that you can directly do startActivity() with that
Intent in your own app.  Once you have verified that works, then throw the
PendingIntent and status bar into the mix.

Also be sure to look at log output, because that often has useful messages
when things are going wrong.

On Wed, Jun 1, 2011 at 4:40 PM, ivan harmady  wrote:

> Hmmm, but how should I use it??  I am not using any uri(i dont even
> know what for is it). I only need to start an activity from the click
> on the notification. But the problem is, i want to run an activity
> from different application.
> There are usually examples like  Intent notifyIntent = new
> Intent(context, notify.class); -> but this is for notify.class in the
> same application, but i want to run activity in different application.
> When i use the example above it is ok and the notify.class runs, but
> when i want to run the activity as i described in my code
> -> intent.setClassName("com.iwaneez", "com.iwaneez.PlaceSettings");
> nothing happens on the click.
> Aren't there any permission or something else?? I really don't
> understand why i cannot run it this way..
>
> I really need this...pls help :(
>
> On 31. Máj, 03:20 h., TreKing  wrote:
> > On Mon, May 30, 2011 at 7:50 PM, ivan harmady  >wrote:
> >
> > > but this activity never starts when i click on the notfication...can
> > > you help me please?? i really need this and I'm out of ideas.
> > > Every advice worth.
> >
> > Try this constructor:
> http://developer.android.com/reference/android/content/Intent.html#In...,
> > java.lang.Class)
> >
> >
> ---
> --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices
>
> --
> 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
>



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

Re: [android-developers] Android LifeCycle and Singleton Instances

2011-06-01 Thread Dianne Hackborn
If your process is killed, the next time you run a fresh process must be
created and re-initialized.  There is no way to get a "stale" pointer across
this.  If the pointer was stale, you'd probably have a native crash because
it would be completely unrelated to the current process you are running.

You can verify the behavior yourself just by using adb shell to kill your
process.

On Wed, Jun 1, 2011 at 5:39 PM, Jake Colman  wrote:

>
> I was pretty sure that I understood the Android lifecycle and how
> applications/processes might be start/stopped/removed and how that
> effects whether variables remain initialized.  I am, however, seeing
> some funky behavior in my app such that I am afraid I have missed
> something.
>
> I use a singleton pattern for some of my objects.  That is, the
> constructor is private and you call a static getInstance() method to
> construct the object.  The static instance variable is, of course,
> initialized to NULL which is the trigger for getInstance to know whether
> the object needs to be constructed.
>
> I have learned that any code that calls getInstance() cannot assume that
> the object it has constructed continues to live in memory since my
> application might have been killed by Android.  So throughout my code I
> always call getInstance() to ensure that I have a valid object.  Am I
> correct in assuming that had I been killed that getInstance() will
> create a new object?  In other words, will my static instance variable
> have been reset to NULL or might my factory method give me back a stale
> pointer?
>
> ...Jake
>
>
> --
> Jake Colman -- Android Tinkerer
>
> --
> 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
>



-- 
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] EditText and the unwanted Quick Search Box

2011-06-01 Thread Eric Carman
I have an app that uses an EditText for input and is very simple.



In the code I trap the OnKeyListener to listen for the enter key,
otherwise nothing else is going on with this EditText.

Problem (steps to reproduce):

1. Start the app.
2. Tap on the EditText to bring up the soft-keyboard.
> The keyboard displays as you would expect. The action is the return key.

3. Touch a letter on the keyboard ('n' for example).
> The Quick Search Box is brought up, the keyboard action changes to "Go". The 
> app isn't happy at this point.

It doesn't happen all the time, but I can reproduce it on a Nexus One
running 2.3.4. (I've reproduced it otherwise, but this is the only
device I currently have access to that reproduces it.)

Also, I do not use - setup - or anything else - with the qsb
functionality. It's not setup in the manifest or anything. This is
showing up all on its own.

Steps to resolve:

I've been refactoring the program, simplifying a lot of things in an
effort to locate this particular needle in the haystack. I've tried
various IMEOptions and InputTypes to no effect.

The app uses voice recognition. It turns out that when I comment out
the voice recognition code, the problem doesn't reproduce (yet?). I
don't have to have used voice recognition, just that it was set up for
use (in onCreate like the sample app) seems to be a sufficient
combination (unholy aliance?) with the EditText to cause this
behavior.

Question:

I really don't want to rip out Voice Recognition if I don't have to,
so I was hoping that someone has run into this issue and maybe has a
solution or suggestion. It's quite possible that this isn't the
solution, I just haven't had it re-appear. So looking for some sort of
rational explanation.

Thank you.

Best Regards,
Eric

-- 
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 LifeCycle and Singleton Instances

2011-06-01 Thread Jake Colman

I was pretty sure that I understood the Android lifecycle and how
applications/processes might be start/stopped/removed and how that
effects whether variables remain initialized.  I am, however, seeing
some funky behavior in my app such that I am afraid I have missed
something.

I use a singleton pattern for some of my objects.  That is, the
constructor is private and you call a static getInstance() method to
construct the object.  The static instance variable is, of course,
initialized to NULL which is the trigger for getInstance to know whether
the object needs to be constructed.

I have learned that any code that calls getInstance() cannot assume that
the object it has constructed continues to live in memory since my
application might have been killed by Android.  So throughout my code I
always call getInstance() to ensure that I have a valid object.  Am I
correct in assuming that had I been killed that getInstance() will
create a new object?  In other words, will my static instance variable
have been reset to NULL or might my factory method give me back a stale
pointer?

...Jake


-- 
Jake Colman -- Android Tinkerer

-- 
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: Show Text On Screen

2011-06-01 Thread EdwardComb
Thanks for your info.

I tried that but seems like the whole view changed. What I mean is
that what can i see
on the screen is just the text that was not running on top of my
application.

I google again and found out that we cannot straight away display text
on GLSurvaceView. (my mistake i didnt mention in the question)

Thus, I tried to bind the text as texture on an object like a 2D
square.
As a result:
1) My FPS drop from ~16 to ~3
2) My application crash.

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] Re: EditText stops displaying characters as I'm typing?

2011-06-01 Thread Eric Carman
Testing seems to indicate that the work I was doing in the
OnKeyListener had some sort of impact, albeit intermittently.

I've modified the OnKeyListener to send a message to a handler and
that seems to keep everything in order. Since one of the things I was
doing in the listener, (when the enter key was pressed) was to set the
text of the EditText to an empty string. Perhaps this was just enough
to cause some trouble.

Thank you for your suggestion, it seems to have led me in a better
direction.

-- 
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] Load and use CDT and NDK into Android Eclipse

2011-06-01 Thread Kiet
I have been using ADT-JDK-Eclipse setting and quite happy with it.
Now I am looking at adding C/C++ and NDT by integrating them into
my current Eclipse.

I am looking for tutorial or howto articles on doing this to avoid
trap falls
destroying my stable ADT-JDK-Eclipse setup.

Thank you.
Kiet

-- 
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 activity with parameter from status bar notification

2011-06-01 Thread ivan harmady
Hmmm, but how should I use it??  I am not using any uri(i dont even
know what for is it). I only need to start an activity from the click
on the notification. But the problem is, i want to run an activity
from different application.
There are usually examples like  Intent notifyIntent = new
Intent(context, notify.class); -> but this is for notify.class in the
same application, but i want to run activity in different application.
When i use the example above it is ok and the notify.class runs, but
when i want to run the activity as i described in my code
-> intent.setClassName("com.iwaneez", "com.iwaneez.PlaceSettings");
nothing happens on the click.
Aren't there any permission or something else?? I really don't
understand why i cannot run it this way..

I really need this...pls help :(

On 31. Máj, 03:20 h., TreKing  wrote:
> On Mon, May 30, 2011 at 7:50 PM, ivan harmady wrote:
>
> > but this activity never starts when i click on the notfication...can
> > you help me please?? i really need this and I'm out of ideas.
> > Every advice worth.
>
> Try this 
> constructor:http://developer.android.com/reference/android/content/Intent.html#In...,
> java.lang.Class)
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread Simon Platten
Why not use the toast method to display data?

Regards,Sy

On 1 Jun 2011 23:45, "Spooky"  wrote:

Ok, maybe that didn't make sense  What I'm looking for, *IF* it
exists for Android/Java, is
some way to open up, say, a console,  load the code, and check the
value returned by some
line in the code without having to use the AVD (which doesn't work on
my system) or build,
install on my phone, and view that way?  In other words, if I only
want to check one tiny
part of the code (e.g., to see if the value I was expecting to be
returned was, in fact, what
WAS returned by [whatever]).OR, to run a simple command with test
values and see if I
get the result I expected (if not, it probably means I mis-read the
examples in the reference
page for whatever I was looking at).

Basically, just a way to run a simple command/procedure/whatever
(with, perhaps,
some test data loaded from the same console) to see if I've correctly
understood how to use it, without having to build an application
around the test.

My guess is that the answer is no, but I'm asking in the hopes that my
guess is
wrong..

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

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

Re: [android-developers] Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread Mark Murphy
On Wed, Jun 1, 2011 at 6:45 PM, Spooky  wrote:
> Ok, maybe that didn't make sense  What I'm looking for, *IF* it
> exists for Android/Java, is
> some way to open up, say, a console

adb shell

> load the code

What is "the code"?

> and check the
> value returned by some
> line in the code without having to use the AVD (which doesn't work on
> my system) or build,
> install on my phone, and view that way?

Java is a compiled programming language. The flow you are describing
fits for an interpreted language, like Ruby.

If you package your application code in a JAR, you can load that JAR
into a JVM interpreter (JRuby, BeanShell, etc.), and try calling it.
You might be able to do this via SL4A, or possibly via the shell as
mentioned above.

That being said, this may take more time and headache than simply
creating a unit test suite, in large part because you may not have
access to enough of Android via whatever interpreter you use. JRuby
with Ruboto *may* give you enough scaffolding to try to do meaningful
experiments this way, and even that may only give you an Activity.
IOW, the sorts of things you are trying to test this way ("examples in
the reference page") are the least likely things you will be able to
actually test this way.

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

Android Training in Oslo: http://bit.ly/fjBo24

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


[android-developers] Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread Spooky
Ok, maybe that didn't make sense  What I'm looking for, *IF* it
exists for Android/Java, is
some way to open up, say, a console,  load the code, and check the
value returned by some
line in the code without having to use the AVD (which doesn't work on
my system) or build,
install on my phone, and view that way?  In other words, if I only
want to check one tiny
part of the code (e.g., to see if the value I was expecting to be
returned was, in fact, what
WAS returned by [whatever]).OR, to run a simple command with test
values and see if I
get the result I expected (if not, it probably means I mis-read the
examples in the reference
page for whatever I was looking at).

Basically, just a way to run a simple command/procedure/whatever
(with, perhaps,
some test data loaded from the same console) to see if I've correctly
understood how to use it, without having to build an application
around the test.

My guess is that the answer is no, but I'm asking in the hopes that my
guess is
wrong..

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


Re: [android-developers] Result of two list adapters, merged in one View

2011-06-01 Thread Mark Murphy
Use MergeCursor:

http://developer.android.com/reference/android/database/MergeCursor.html

On Wed, Jun 1, 2011 at 5:23 PM, Arun N R  wrote:
> Hi,
>    I have some code which executes two queries against a database and
> returns two cursor objects. Is there any way that I can combine these
> two cursors are displayed one after another in one view.
>
> Currently one of the cursor is (Picked from samples)
>
>        Cursor c = mDbHelper.fetchNumber(searchNum);
>        startManagingCursor(c);
>
>        String[] from = new String[] { NumberDbAdapter.KEY_TITLE };
>        int[] to = new int[] { R.id.text1 };
>
>        // Now create an array adapter and set it to display using our
> row
>        SimpleCursorAdapter notes = new SimpleCursorAdapter(this,
> R.layout.notes_row, c, from, to);
>        setListAdapter(notes);
>
> If I have one more cursor of similar type, how do we display the
> output of these two in one view?
>
> Please help.
> Thanks in Adv
>
> --
> 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
>



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

Android Training in Oslo: http://bit.ly/fjBo24

-- 
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] Result of two list adapters, merged in one View

2011-06-01 Thread Arun N R
Hi,
I have some code which executes two queries against a database and
returns two cursor objects. Is there any way that I can combine these
two cursors are displayed one after another in one view.

Currently one of the cursor is (Picked from samples)

Cursor c = mDbHelper.fetchNumber(searchNum);
startManagingCursor(c);

String[] from = new String[] { NumberDbAdapter.KEY_TITLE };
int[] to = new int[] { R.id.text1 };

// Now create an array adapter and set it to display using our
row
SimpleCursorAdapter notes = new SimpleCursorAdapter(this,
R.layout.notes_row, c, from, to);
setListAdapter(notes);

If I have one more cursor of similar type, how do we display the
output of these two in one view?

Please help.
Thanks in Adv

-- 
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] Result of two list adapters, merged in one View

2011-06-01 Thread Arun N R
Hi,
I have some code which executes two queries against a database and
returns two cursor objects. Is there any way that I can combine these
two cursors are displayed one after another in one view.

Currently one of the cursor is (Picked from samples)

Cursor c = mDbHelper.fetchNumber(searchNum);
startManagingCursor(c);

String[] from = new String[] { NumberDbAdapter.KEY_TITLE };
int[] to = new int[] { R.id.text1 };

// Now create an array adapter and set it to display using our
row
SimpleCursorAdapter notes = new SimpleCursorAdapter(this,
R.layout.notes_row, c, from, to);
setListAdapter(notes);

If I have one more cursor of similar type, how do we display the
output of these two in one view?

Please help.
Thanks in Adv

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


Re: [android-developers] Re: All Renderscript samples fail to run on actual device (Samsung Galaxy Tab 10.1 'google io edition')

2011-06-01 Thread Xavier Ducrohet
we've now pushed a new platform-tools component (revision 5) that
fixes the problem (or at least half of it, the other half is to make
sure apps targeting 3.1+ use the new compiler instead of the old one,
but this is a tools update).

Xav

On Sat, May 28, 2011 at 10:35 PM, Xavier Ducrohet  wrote:
> No, the 3.1 r2 SDK fixes an issue with the rendering library used in
> the UI builder in Eclipse.
> The renderscript compiler is not part of the platform component but of
> the platform tools component which is used by all platforms.
>
> I'm planning on pushing an updated platform-tools component on Tuesday
> if I can fix the remaining issues.
>
> On Fri, May 27, 2011 at 7:42 PM, Zsolt Vasvari  wrote:
>> Is the SDK 3.1 V2 just released related to this?
>>
>> On May 28, 7:25 am, Xavier Ducrohet  wrote:
>>> oops wrong links. Here are the good ones:
>>>
>>> https://dl-ssl.google.com/android/repository/platform-tools_r03-windo...https://dl-ssl.google.com/android/repository/platform-tools_r03-macos...https://dl-ssl.google.com/android/repository/platform-tools_r03-linux...
>>>
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2011 at 4:24 PM, Xavier Ducrohet  wrote:
>>> > hey, we found an issue in the packaging that are delaying things.
>>>
>>> > However, here's a workaround, by downloading the previous
>>> > platform-tools, revision 03, which contains the compiler we used in
>>> > 3.0
>>>
>>> > Links:
>>> >https://dl-ssl.google.com/android/repository/platform-tools_r04-windo...
>>> >https://dl-ssl.google.com/android/repository/platform-tools_r04-macos...
>>> >https://dl-ssl.google.com/android/repository/platform-tools_r04-linux...
>>>
>>> > Download, unarchive and replace the existing folder at 
>>> > /platform-tools
>>>
>>> > Sorry for the inconvenience.
>>> > Xav
>>>
>>> > On Fri, May 27, 2011 at 3:32 PM, Streets Of Boston
>>> >  wrote:
>>> >> Hi Xav,
>>>
>>> >> Were you able to deploy a fix?
>>>
>>> >> --
>>> >> 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
>>>
>>> > --
>>> > Xavier Ducrohet
>>> > Android SDK Tech Lead
>>> > Google Inc.
>>> >http://developer.android.com|http://tools.android.com
>>>
>>> > Please do not send me questions directly. Thanks!
>>>
>>> --
>>> Xavier Ducrohet
>>> Android SDK Tech Lead
>>> Google Inc.http://developer.android.com|http://tools.android.com
>>>
>>> Please do not send me questions directly. Thanks!- 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
>>
>
>
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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


Re: [android-developers] get the HTML Code in Android WebView

2011-06-01 Thread Kristopher Micinski
On Wed, Jun 1, 2011 at 4:40 PM, Mark Murphy  wrote:

> On Wed, Jun 1, 2011 at 4:38 PM, Abhishek Soni 
> wrote:
> >  Actually this is a webpage and when i open this page.  I
> want
> > to read the Html code.  That is when html code comes into picture.
>
> There is no simple way to do this. With addJavascriptInterface() and
> loadUrl() of a javascript: URL, you can get the HTML by brute force.
>
>
Thanks for pointing this out Mark.

I also note that if you want to keep the browser from opening the default
Android browser, you'll have to change the behavior of the links:

http://stackoverflow.com/questions/2378800/android-webview-click-opens-default-browser

This might be a bit much to ask, but, out of interest, am I correct in
saying it is impossible to have similar actions performed by the plain old
Android browser?

I could imagine an application which the user might start, which starts a
service, which if the browser loaded a page would allow interacting from
javascript to an object in aforementioned service.  I understand that this
is a bit contrived, because your process might be eventually killed, so I
presume that the standard thing to do in this situation is to add a receiver
to capture links of some form and hand them to your app instead.  However, I
can imagine uses for such functionality that don't fit into this model:
during some research in the last year I wanted to have multiple pages
throughout the net interact with an Android app that users would run in the
background, that does things like record information about browsing
interests.  Obviously this situation should be outlawed in real apps because
the idea that a rouge application could intercept HTML from any site the
user was browsing would be a *major* security hole, however this wasn't
something we were worried about (as, again, the app was used just for
research.)  My question isn't for that particular situation, as we can just
root the phone and hack what we needed, but in general.

Kris

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

Re: [android-developers] get the HTML Code in Android WebView

2011-06-01 Thread Abhishek Soni
Ohh.k  Let me try this.  Thanks for replying

Regards
Aby


On Wed, Jun 1, 2011 at 1:40 PM, Mark Murphy  wrote:

> On Wed, Jun 1, 2011 at 4:38 PM, Abhishek Soni 
> wrote:
> >  Actually this is a webpage and when i open this page.  I
> want
> > to read the Html code.  That is when html code comes into picture.
>
> There is no simple way to do this. With addJavascriptInterface() and
> loadUrl() of a javascript: URL, you can get the HTML by brute force.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in Oslo: http://bit.ly/fjBo24
>
> --
> 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
>

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

Re: [android-developers] get the HTML Code in Android WebView

2011-06-01 Thread Mark Murphy
On Wed, Jun 1, 2011 at 4:38 PM, Abhishek Soni  wrote:
>              Actually this is a webpage and when i open this page.  I want
> to read the Html code.  That is when html code comes into picture.

There is no simple way to do this. With addJavascriptInterface() and
loadUrl() of a javascript: URL, you can get the HTML by brute force.

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

Android Training in Oslo: http://bit.ly/fjBo24

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


Re: [android-developers] get the HTML Code in Android WebView

2011-06-01 Thread Abhishek Soni
Hi there,
 Actually this is a webpage and when i open this page.  I want
to read the Html code.  That is when html code comes into picture.

Regards
Aby


On Wed, Jun 1, 2011 at 1:33 PM, TreKing  wrote:

> On Wed, Jun 1, 2011 at 3:17 PM, aby  wrote:
>
>> I have created a webview and i want to get the html code behind this page.
>
>
> If what you want is the page content then there's no need for a webview -
> just connect to the URL directly, read the contents, and do what you need.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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
>

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

Re: [android-developers] get the HTML Code in Android WebView

2011-06-01 Thread TreKing
On Wed, Jun 1, 2011 at 3:17 PM, aby  wrote:

> I have created a webview and i want to get the html code behind this page.


If what you want is the page content then there's no need for a webview -
just connect to the URL directly, read the contents, and do what you need.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Android Market App: How Update from v1.8.2?

2011-06-01 Thread TreKing
On Tue, May 31, 2011 at 12:23 PM, marcel  wrote:

> But on my HTC Desire the Android Market is v1.8.2 and I have no clue how to
> update it.
>

Try going to the manage apps screen and finding the Market app. Then force
stop it, clear the cache and data, and uninstall any updates, if there are
any already applied. Reboot the device then restart the Market app. Give it
some time after that and see if that gives it a kickstart.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] get the HTML Code in Android WebView

2011-06-01 Thread aby
Hello Everyone,
  I have created a webview and i want to get the html code behind this 
page.  Is there any way i can extract the HTML code or any specific tags in 
Android?

Thanks,
  Aby

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

Re: [android-developers] Android Market App: How Update from v1.8.2?

2011-06-01 Thread Kostya Vasilyev
Market 2.3 is for Android 1.6+

HTC Desire's official firmware is at least 2.1 (don't have one myself).

-- Kostya

2011/6/1 Mark Murphy 

> On Wed, Jun 1, 2011 at 3:02 PM, Kostya Vasilyev 
> wrote:
> > It does:
> >
> > http://market.android.com/support/bin/answer.py?answer=190860
>
> I assumed that the Market only updated to a point per Android version.
> Not sure why the OP's device isn't getting updated, then.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/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
>

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

Re: [android-developers] Android Market App: How Update from v1.8.2?

2011-06-01 Thread Mark Murphy
On Wed, Jun 1, 2011 at 3:02 PM, Kostya Vasilyev  wrote:
> It does:
>
> http://market.android.com/support/bin/answer.py?answer=190860

I assumed that the Market only updated to a point per Android version.
Not sure why the OP's device isn't getting updated, then.

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

Android Training in NYC: http://marakana.com/training/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] Fwd: Creating a good reference point for Android

2011-06-01 Thread Raghav Sood
This is from Jim. He can't post directly for some reason so.I am forwarding it

-- Forwarded message --
From: Jim Graham
Date: Thursday, June 2, 2011
Subject: Creating a good reference point for Android
To: Raghav Sood


Please post this if/when you followup to it---I still can't post via
e-mail.

On Wed, Jun 01, 2011 at 10:25:44PM +0530, Raghav Sood wrote:
> I know my aim seems lofty and a tad bit out of reach but if I can pull this
> off

It's definitely possible.  Look at Tcl/Tk Wiki (http://wiki.tcl.tk) as an
example of how useful such a site can be.  It's an incredibly good
resource

> then it will solve a lot of newbie problems and be an extremely

If you look at the Tcl Wiki, you'll find that it can also go WAY beyond
just beginners like me.  I was once a beginner with Tcl/Tk, too...but for
the last 15 years or so, I've been developing and improving with new
features a freeware Tcl/Tk based hurricane tracking program called
JStrack (prn J S track).  It's online at http://www.jstrack.org/jstrack/
(site, domain name, system, system administrator, regular backups, backup
power, etc., provided by one of my users).)  The wiki and comp.lang.tcl
helped tremendously on the Tcl/Tk side, and NHC, NOAA, NWS, and a number
of hurricane researchers helped on the technical side, including all of
the maps (courtesy of Ron Murphy, NWS Birmingham).  The Tcl/Tk wiki has
topics ranging from just getting started, to stuff that's more for the
developers of the language itself.  I see (and hope) this wiki being very
much along the same lines, and I think that's what Raghav has in mind,
too.

Things the Tcl/Tk wiki has that, IMHO, this one could use:

1) "Example scripts everybody should have"

2) people who write packages, libraries, etc., post documentation
   on how to use it (commands, command-line args, one or more
   example(s), etc., and others comment, offer suggestions, fixes,
   pointers to similar or related pages on the wiki, etc.

There's more, but that's what comes to mind right now.  And again,
I'm mentioning the Tcl/Tk wiki, because I consider it a great example
to build from.  Just my opinion, of course.

> atleast someone and will grow at a slow but reasonable rate as some more
> people contribute. I am not saying that it will be ready by next week or
> even next year. I am saying that it is possible.

The Tcl/Tk wiki has now taken on a life of its own, and is a HUGE
resource that is likely to continue to grow for a long, long time.

Later,
   --jim

--
73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W

                   Saw something on TV about Psych-os.
             H, Psych OS.  Perhaps the next freeware OS   --me




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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

2011-06-01 Thread Streets Of Boston
>From discussions with the Google Engineers, the emulator emulates the *entire 
*device on the lowest levels, not just the DalvikVM. It emulates the ARM 
processor and the code that runs on it and a bunch of the in and output 
devices (keyboard, touchscreen in some form, screen, GPS, etc). You can run 
NDK code (c/c++) on your emulator. 

They told us at Google IO (and other conferences) that the biggest 
performance bottleneck is the rendering of (large) screens. 

They are working hard in having the screen rendered on the PC's hardware 
(GPU) instead of doing it all in software (rendering the screen pixel by 
pixel). Some early demo was shown at Google IO and it looks very promising.

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

2011-06-01 Thread Streets Of Boston
Yes there is. Intel has honeycomb running on their IA (Intel Architecture). 
But it's all in early phases.
But Google TV runs on x68 and Google TV will upgraded to Honeycomb (3.1) 
this year.

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

Re: [android-developers] Re: Regarding asynchronous communication in Android.

2011-06-01 Thread Kevin Anthony
I understand why you would want asynchronous communication, but can you
provide more information on what your trying to achieve.
On Jun 1, 2011 3:28 PM, "Ali Chousein"  wrote:
> You can achieve it by not making your communication synchronous. Set
> aside jokes, please have a look to the link TreKing posted.
>
>
> On May 30, 2:30 pm, cherry e  wrote:
>> Hi
>> I am new to Android. I want to know how would we achieve
>> asynchronous communication in android. for efficient programming
>
> --
> 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

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

2011-06-01 Thread jtoolsdev
The docs are a little vague about any ARM emulation.  It says "the SDK
contains ARM machine code for the Android Linux kernel".  Would it use
that on Windows?  And then it wouldn't be the first time the docs are
left vague as we all know.  Seems to me if you are running Java byte
code then all you need is a layer for that but maybe not.  I don't
have to time to play systems engineer on top of application
developer.  That will make you a "jack of all trades and master of
none" in today's tech world. :D

But I do know that I read a response on this group from support that
the problem had to do with not being able to use the graphics card
acceleration on the PCs.  Someone will probably figure that one out
though.

On May 31, 1:13 pm, Chris Stratton  wrote:
> On Tuesday, May 31, 2011 3:30:39 PM UTC-4, jtoolsdev wrote:
>
> Ah, the emulator isn't running ARM code just the Dalvik engine.
>
> Really?   There's an x86 build of honeycomb?  And an x86 toolchain in the
> NDK?
>
> I don't believe that is the case... unfortunately.

-- 
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: Regarding asynchronous communication in Android.

2011-06-01 Thread Ali Chousein
You can achieve it by not making your communication synchronous. Set
aside jokes, please have a look to the link TreKing posted.


On May 30, 2:30 pm, cherry e  wrote:
> Hi
>     I am new to Android. I want to know how would we achieve
> asynchronous communication in android. for efficient programming

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


Re: [android-developers] Show Text On Screen

2011-06-01 Thread TreKing
On Tue, May 31, 2011 at 10:29 PM, EdwardComb  wrote:

> I want to display the FPS on the screen but have no idea how to do it.


TextView.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Dialog and Progress Dialog issues on Orientation Change

2011-06-01 Thread TreKing
On Tue, May 31, 2011 at 4:23 AM, sahana uday  wrote:

> Can you let me know the problem asap?


You have a bug.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] How to verify camera view in Robotium

2011-06-01 Thread TreKing
On Tue, May 31, 2011 at 10:36 AM, Bharathiraja R <
bharathiraja.andr...@gmail.com> wrote:

> wanted to know how to check camera view in robotium.


This is not a robotium forum.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Regarding asynchronous communication in Android.

2011-06-01 Thread TreKing
On Mon, May 30, 2011 at 7:30 AM, cherry e  wrote:

> I am new to Android. I want to know how would we achieve asynchronous
> communication in android. for efficient programming
>

http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Frames Per Second FPS

2011-06-01 Thread TreKing
On Mon, May 30, 2011 at 9:14 PM, EdwardComb  wrote:

> Anyone can point me out how to show FPS on the Logcat.?


1 - Calculate FPS.
2 - Write what you find in step 1 to Logcat.

You can figure out how to do both 1 and 2 with simple Google queries.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] android

2011-06-01 Thread TreKing
On Mon, May 30, 2011 at 5:39 AM, RJN  wrote:

> i am just new to de world of android.. need suggestions to how to start
> well.!!
>

The Android website and a spell checker ...!!

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Need help in ListActivity inside TabActivity

2011-06-01 Thread TreKing
On Mon, May 30, 2011 at 5:17 AM, Raza Rahil Hussain wrote:

> It stop working and force me to close the app.
>

Try debugging your app.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Android Market App: How Update from v1.8.2?

2011-06-01 Thread Kostya Vasilyev
It does:

http://market.android.com/support/bin/answer.py?answer=190860

-- Kostya

2011/6/1 TreKing 

> On Wed, Jun 1, 2011 at 1:42 PM, Mark Murphy wrote:
>
>> > But on my HTC Desire the Android Market is v1.8.2 and I have no clue
>> > how to update it.
>>
>> You cannot update it except via an update to the firmware of your
>> device.
>
>
> I thought the Android Market app auto-updates? Even my G1 has the latest
> version.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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
>

-- 
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: notepadv1 tutorial problems

2011-06-01 Thread exax
Solved it!! :) not sure why, but i had accidentally but a : instead of
a / at @string/no_notes in the xml layout and this caused the project
not to generate the R.java file. thanks for the help anyways


On Jun 1, 2:41 pm, exax  wrote:
> I haven't imported R. anything. I put the minSdk in manually and it
> didn't help at all. It's still making errors wherever there is an
> R.variable saying that R. cannot being resolved to the variable. I
> have cleaned and rebuilt but to no avail. This is really confusing
> me??
>
> On May 27, 2:30 am, Peter Webb  wrote:
>
>
>
>
>
>
>
> > Your minimum SDK level is "greyed out"?
>
> > What happens if you directly enter the minSDK attribute into
> > Manifest.xml 
>
> > This all seems somewhat remote from your original problem, of R.java
> > not being generated.
>
> > Have a look at the import declarations at the start of your file.
> > Quite possibly, you are alrady importing R.something as a result of a
> > boob or over-zealous cut and paste. Comment out all the import R.
> > statements. Run project clean. Try to complie. You should get errors
> > where you use R. The intellisense will offer some suggestions for
> > fixing; one of these will be importing the correct R file.
>
> > This may fix your problem.
>
> > On May 27, 6:04 am,exax wrote:
>
> > > So I tried cleaning and rebuilding the project but still nothing is
> > > happening. I restarted eclipse and redid the project but it still
> > > doesn't work. I really think I need to be able to fill in that greyed
> > > out box. Does anybody know for sure/a way to fix the tutorial?

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


Re: [android-developers] Android Market App: How Update from v1.8.2?

2011-06-01 Thread TreKing
On Wed, Jun 1, 2011 at 1:42 PM, Mark Murphy  wrote:

> > But on my HTC Desire the Android Market is v1.8.2 and I have no clue
> > how to update it.
>
> You cannot update it except via an update to the firmware of your
> device.


I thought the Android Market app auto-updates? Even my G1 has the latest
version.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] questions about android apk signature.

2011-06-01 Thread Mark Murphy
On Tue, May 31, 2011 at 11:33 PM, zhang ning  wrote:
> android provide a mechanism sign an apk to identify who provide this
> apk.
>
> but it seems no away to identify who to use this apk.
>
> if i want to limit my apk to given users, how can i do?

Distribute the application yourself, from your own secure Web site,
and hope none of your users redistributes the app.

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

Android Training in NYC: http://marakana.com/training/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


Re: [android-developers] Android Market App: How Update from v1.8.2?

2011-06-01 Thread Mark Murphy
On Tue, May 31, 2011 at 1:23 PM, marcel  wrote:
> to develop In-app Billing I need Android Market of at least v.2.3.4 on
> my test device.
>
> But on my HTC Desire the Android Market is v1.8.2 and I have no clue
> how to update it.

You cannot update it except via an update to the firmware of your
device. Check with your carrier or with HTC to see if/when the Desire
is getting an update past your current version.

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

Android Training in NYC: http://marakana.com/training/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] using native protocol buffer library does not work

2011-06-01 Thread dom
Hi everyone,

I've built the Google protocol buffer library (native c++ version)
into a static library using the standalone toolchain.  I modified the
HelloJni sample in the NDK development to use this library, but when I
go to run it on the emulator nothing works.

I created a small test library to check that I was doing everything
correctly and the test library functions correctly.  I was able to run
this from Eclipse and also using ndk-gdb.  When I went back to the
protocol buffer library, nothing ran anymore.  In ndk-gdb I could not
see any symbols or source.  The code just seems to hang somewhere.

I'm trying to build the code natively as we have developed a bunch of
software around it and are trying to avoid having to re-implement all
this software in Java.

Any help would be greatly appreciated.

Dominique

-- 
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] Snake game

2011-06-01 Thread GameDev
Hi

I am new to android technology.So i need help to learn the same.
I copied the snake game from the sample example.
When i try to run it .. Following things are displayed on the console


11-06-01 20:11:32 - Snake] Android Launch!
[2011-06-01 20:11:32 - Snake] adb is running normally.
[2011-06-01 20:11:32 - Snake] Performing
com.example.android.snake.Snake activity launch
[2011-06-01 20:11:32 - Snake] Automatic Target Mode: Preferred AVD
'Pratyush_android' is not available. Launching new emulator.
[2011-06-01 20:11:32 - Snake] Launching a new emulator with Virtual
Device 'Pratyush_android'
[2011-06-01 20:11:33 - Snake] New emulator found: emulator-5554
[2011-06-01 20:11:33 - Snake] Waiting for HOME
('android.process.acore') to be launched...
[2011-06-01 20:11:54 - Snake] WARNING: Application does not specify an
API level requirement!
[2011-06-01 20:11:54 - Snake] Device API version is 4 (Android 1.6)
[2011-06-01 20:11:54 - Snake] HOME is up on device 'emulator-5554'
[2011-06-01 20:11:54 - Snake] Uploading Snake.apk onto device
'emulator-5554'
[2011-06-01 20:11:54 - Snake] Installing Snake.apk...
[2011-06-01 20:12:06 - Snake] Success!
[2011-06-01 20:12:06 - Snake] Starting activity
com.example.android.snake.Snake on device emulator-5554
[2011-06-01 20:12:11 - Snake] ActivityManager: Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.example.android.snake/.Snake }


and i can see a Android Emulator . On the screen of Emulator ,it says
 SCREEN is LOCKED ,Unlock it by pressing Menu

When i Press Menu
There is a message box
The application(process com.example.android.snake) has stopped
unexpectedly.
Please try again.

plz help to rectify 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


Re: [android-developers] Connection Issues

2011-06-01 Thread Mark Murphy
"server-PC" is not a valid domain name. getByName() uses DNS, as far as I know.

On Tue, May 31, 2011 at 4:59 PM, Luiz  wrote:
> Hello everyone.
>
> I'm trying to connect with a computer (face it as a "server", I just
> have to access a database) in my app, based on the computer's name. It
> works fine with the IP, but I truly need to establish this connection
> based in the hostname (the IP is not guaranteed to be static). The
> computer is on windows 7.
>
> This line of code keeps giving me an UnknownHostException
>>> String ip = InetAddress.getByName("server-PC").getHostAddress();
>
> That's where the weird stuff begins: it works perfectly if put
> "www.google.com" instead of "server-PC". It also works if I try to get
> the IP from a random non-android project in another computer in the
> same local network.
>
> I believe it's important to highlight the fact that I don't need a
> connection with the Internet, just with my "local server", and that
> I'm running my application in a real device, not in a emulator.
>
> Thanks in advance,
> Luiz
>
> p.s.: sorry if something is not fully comprehensible because of my
> english.
>
> --
> 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
>



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

Android Training in NYC: http://marakana.com/training/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: notepadv1 tutorial problems

2011-06-01 Thread exax
I haven't imported R. anything. I put the minSdk in manually and it
didn't help at all. It's still making errors wherever there is an
R.variable saying that R. cannot being resolved to the variable. I
have cleaned and rebuilt but to no avail. This is really confusing
me??

On May 27, 2:30 am, Peter Webb  wrote:
> Your minimum SDK level is "greyed out"?
>
> What happens if you directly enter the minSDK attribute into
> Manifest.xml 
>
> This all seems somewhat remote from your original problem, of R.java
> not being generated.
>
> Have a look at the import declarations at the start of your file.
> Quite possibly, you are alrady importing R.something as a result of a
> boob or over-zealous cut and paste. Comment out all the import R.
> statements. Run project clean. Try to complie. You should get errors
> where you use R. The intellisense will offer some suggestions for
> fixing; one of these will be importing the correct R file.
>
> This may fix your problem.
>
> On May 27, 6:04 am,exax wrote:
>
>
>
>
>
>
>
> > So I tried cleaning and rebuilding the project but still nothing is
> > happening. I restarted eclipse and redid the project but it still
> > doesn't work. I really think I need to be able to fill in that greyed
> > out box. Does anybody know for sure/a way to fix the tutorial?

-- 
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] mpeg2ts(H264) http streaming error on Gingerbread 2.3.4

2011-06-01 Thread Ashwath Kumar K
Hi ,

I am trying to achieve a http streaming of mpeg2ts stream containing
MPEG4-AVC(H264) on Gingerbread 2.3.4 after upgrading my Nexus S to 2.3.4.
Playback was fine on 2.3.3,
Now I am getting the error has  "ERROR_END_OF_STREAM" from the stage fright
library.
Has any one else faced the same error?
The same app works perfectly on honeycomb versions.

Any pointers in resolving this issue on Ginger bread 2.3.4 will be of great
help.

Below is the log cat messages.
D/LivePlayer(  685): playHttpVideo called
V/LivePlayer(  685): url:
http://173.68.173.216:8080/video?&token=dacghibefgio34xue
V/LivePlayer(  685): releaseMediaPlayer
V/LivePlayer(  685): doCleanUp
I/StagefrightPlayer(   76): setDataSource('
http://173.68.173.216:8080/video?&token=dacghibefgio34xue')
I/NuHTTPDataSource(   76):
173.68.173.216:8080/video?&token=dacghibefgio34xue @0
I/NuCachedSource2(   76): ERROR_END_OF_STREAM
I/ActivityManager(  106): Displayed com.http.LivePlayer/.PlayerActivity:
+258ms
E/MediaPlayer(  685): error (1, -2147483648)
E/MediaPlayer(  685): Error (1,-2147483648)
D/LivePlayer(  685): onError called: MEDIA_ERROR_UNKNOWN(1) extra
(-2147483648)
V/LivePlayer(  685): onPause
V/LivePlayer(  685): onDestroy
V/LivePlayer(  685): releaseMediaPlayer
V/LivePlayer(  685): doCleanUp

Regards,
droidDev

-- 
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: Communication with Flash (swf)

2011-06-01 Thread gaara
Hi,
i have the same problem? you think that we have this possibility even
if swf file is big?
Peace
Gaara

On May 31, 8:05 am, sleith  wrote:
> Hi,
> Is there anyway app/webview can communicate with flash?
> Is fscommand able to do this? Or anyone have tried using tcp/udp
> communication to communicate with flash?
> need 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] Android emulator.

2011-06-01 Thread Dr.Bot
I can't get the emulator to start under Ubuntu.  the android command
under /tools works and I created a AVD using the 3.1 platform with no
SD card - it refused to create a virtual device with any size SD card
I tried.  At any rate

I get a 'file not found'  when either cd to the directrory and
typing ./emulator  (with or without  -avd def31)  The virtual device
is created and is sitting in ~/.android/avd/.

The permissions look the same as for the 'android' command which
works.  Seems like a path/permission issue - but perhaps there is some
memory gotcha.  Running a 1gig laptop Ubuntu 10.  Latest eclipse,
Java, SDK.


BTW  I do have the hardware on the ADK working, now If I only had a
nice Xoom

http://www.youtube.com/watch?v=dh0BcO8yB1Y


Thanks  - I am new to this group -  but a search for emultor won't
start, won't run didn't come up with anything.

Also can I even run the ADK with an emulator?  Not sure if the USB
port mapping might barf.

-- 
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] App Installation Issue

2011-06-01 Thread bigD
Hi,

I've developed a Timer App that consists of 1 count down timer and 1 count 
up timer.  I recently installed it to my Droid X phone for the first time 
from by connecting my phone to my development box via USB, running the app 
from the Eclipse IDE, choosing my phone from the Eclipse device list.  The 
installation worked.  However, when I run my Timer App on my phone and 
another app runs concurrently, my phone freezes up and I have to pull the 
battery to unlock the phone.   For example, I was running my Timer App and 
while it was running, I received a text message.  This caused the phone to 
freeze up.  Another time, the Timer App was running, I opened up a web 
browser while it was running, and this caused the phone to freeze up.  

I don't know what's causing this problem as this is the first Android App 
I've developed and installed to my phone.  Under my phone's app settings, I 
have 'Unknown Sources' checked.  Under the phone's App Settings->Development 
settings.  USB debugging is checked, Stay Awake is Checked.  My app manifest 
file has debuggable set to true.

Please help.

Thanks in Advance,

Donny

-- 
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] OpenGL - CPU pegged

2011-06-01 Thread Ratamovic
Hi all,


When I run my application which embeds Irrlicht 3D engine to draw a 3D
terrain using OpenGL, a very strong slow-down happens very often. When
looking at the log, I can find this message:

05-31 09:53:39.480: WARN/SharedBufferStack(2580):
waitForCondition(LockCondition) timed out (identity=101, status=0).
CPU may be pegged. trying again.


I found a few threads about this problem but no satisfying solution
(http://groups.google.com/group/android-developers/browse_thread/
thread/d5b7e87f4b42fa8f/d6214ed7a02efc98?q=OpenGL&lnk=ol&). Basically,
it seems there is a lock happening when processing surfaces which
happen mainly on HTC devices (mine included of course)...

The only solution proposed is to call eglWaitGL before swapping
buffers which indeed solves "sudden and awful" slow-down problems but
which also "continuously" reduces the frame rate (FPS becomes barely
acceptable).


Any news on that or planned fix? Or maybe a better trick to solve 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


Re: [android-developers] center buttons

2011-06-01 Thread kamilia amellal
Hi,
use the weight attribute,may this help!!!
Peace

2011/6/1 Knutsford Software 

> I have this layout
>
>
> 
> http://schemas.android.com/apk/res/android";
>   android:orientation="vertical"
>   android:layout_width="fill_parent"
>   android:layout_height="fill_parent"
>
>>
>>   android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:text="Please enter your login details"
>   android:typeface="sans"
>   />
>  android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:typeface="sans"
>   android:text="Login:"
>   />
>  android:id="@+id/username"
>   android:typeface="sans"
>   android:singleLine="true"
>   android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:hint="username"
>   />
>  android:layout_width="fill_parent"
>   android:typeface="sans"
>   android:layout_height="wrap_content"
>   android:text="Password:"
>   />
>  android:id="@+id/password"
>   android:typeface="sans"
>   android:password="true"
>   android:singleLine="true"
>   android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:hint="password"
>   />
>   http://schemas.android.com/apk/res/android";
>   android:orientation="horizontal"
>   android:layout_width="fill_parent"
>   android:layout_height="fill_parent"
>   >
>  android:id="@+id/login_button"
>   android:typeface="sans"
>   android:text="Login"
>   android:layout_width="wrap_content"
>   android:layout_height="wrap_content"
>   android:hint="Login"
>   android:layout_centerHorizontal="true"
>   />
>  android:id="@+id/cancel_button"
>   android:typeface="sans"
>   android:text="Cancel"
>   android:layout_width="wrap_content"
>   android:layout_height="wrap_content"
>   android:hint="Cancel"
>   android:layout_centerHorizontal="true"
>   />
>   
>  android:id="@+id/result"
>   android:typeface="sans"
>  android:layout_width="fill_parent"
>  android:layout_height="wrap_content"
>   />
> 
>
>
>
>
> How do I get the two buttons to horizontally centre
>
>
> 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

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

2011-06-01 Thread gaara
Hi,
When i tried to use resp.setContentType("text/html"); in my servlet i
get the html tags instead of web content,can anyone help?
Peace,
Gaara

-- 
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] Integrated SIP Client on Nexus S: no 30 ms packetization supported

2011-06-01 Thread sNi
Hi,

when testing the integrated SIP Client on the Nexus S (Android 2.3.4)
against FRITZ!Box CPEs (highly spread WiFi/VoIP router across Europe)
we experience the following issue:

When placing an outgoing or incoming VoIP call over the CPE the
playback of the incoming RTP audio is scrambled. The outgoing RTP
audio is alright.
The reason for that is that the CPE uses 30 ms packetization for the G.
711 data. The audio playback works alright when the packetization is
adjusted to 20 ms.

As it is highly common here to have 30 ms packetization for G.711 we
badly need 30 ms support in the native SIP stack in android.
Is there any chance to get that support into the framework? Usually
that can be easely done by only adjusting the buffer size and allowing
30 ms packets to be received.
For the corresponding CPE it would be alright if received 30 ms
packets would be processed and still packets would be sent using 20 ms
packetization.

Thanks
Sven

-- 
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] Connection Issues

2011-06-01 Thread Luiz
Hello everyone.

I'm trying to connect with a computer (face it as a "server", I just
have to access a database) in my app, based on the computer's name. It
works fine with the IP, but I truly need to establish this connection
based in the hostname (the IP is not guaranteed to be static). The
computer is on windows 7.

This line of code keeps giving me an UnknownHostException
>> String ip = InetAddress.getByName("server-PC").getHostAddress();

That's where the weird stuff begins: it works perfectly if put
"www.google.com" instead of "server-PC". It also works if I try to get
the IP from a random non-android project in another computer in the
same local network.

I believe it's important to highlight the fact that I don't need a
connection with the Internet, just with my "local server", and that
I'm running my application in a real device, not in a emulator.

Thanks in advance,
Luiz

p.s.: sorry if something is not fully comprehensible because of my
english.

-- 
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 add edit delete database application

2011-06-01 Thread durgesh.ostech
I want to create a sample database application to add/edit/delete
record. I want to know that how to edit record when click on item. my
application  is below


package ost.android.DatabaseTest;

import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

public class EmployeeList extends ListActivity {

DatabaseHelper dbHelper;
private Cursor mNotesCursor;


public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.list_example);


dbHelper=new DatabaseHelper(this);
try
{

mNotesCursor=dbHelper.getAllEmployees();
startManagingCursor(mNotesCursor);



String [] from=new String []
{DatabaseHelper.colName,DatabaseHelper.colMobile};
int [] to=new int [] {R.id.colName,R.id.colMobile};
SimpleCursorAdapter sca=new
SimpleCursorAdapter(this,R.layout.employeelist,mNotesCursor,from,to);
this.setListAdapter(sca);





}
catch(Exception ex)
{
AlertDialog.Builder b=new AlertDialog.Builder(this);
b.setMessage(ex.toString());
b.show();
}



}


@Override
protected void onListItemClick(ListView listView, View v, int
position, long id) {
super.onListItemClick(listView, v, position, id);
// Get the item that was clicked
//String selection =
listView.getItemAtPosition(position).toString();


Intent intent = new Intent(this, EmployeeEdit.class);
intent.putExtra(DatabaseHelper.colID, id);
// Activity returns an result if called with 
startActivityForResult

startActivity(intent);


}


}


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 start a web application

2011-06-01 Thread kamilia amellal
Hi Everyone,
I wanna start my web application on android but i still have problems with
screen resolution?can i have some recommendations for beginning that and
which web server can i choose?
Peace,
Gaara

-- 
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] virtual call

2011-06-01 Thread Ralostx
as I make a virtual call android. what would my code in java

-- 
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 on Samsung monte

2011-06-01 Thread cheesecorn
hello, i just to know if there is existing method to port android on
Samsung monte.. i think samsung monte has caple of running android
with its minimum requirements of ARM11 300MHz, its chipset is the
BCM2153, im not sure if it has 128mb RAM or 256mb RAM..

can someone help me? or guide me.. 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] Android with Whell

2011-06-01 Thread Marcelo Ferreira Barros
Hello,

I would like to know, if I do an application for Android that uses a
system of "Wheel, " which slipped turning a list (moving up and down),
the idea IdenTIC Wheel iPod, I can is violating a patent from Apple?
The truths is that I only use the idea, then I make my code.

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] Android Market App: How Update from v1.8.2?

2011-06-01 Thread marcel
Hi,

to develop In-app Billing I need Android Market of at least v.2.3.4 on
my test device.

But on my HTC Desire the Android Market is v1.8.2 and I have no clue
how to update it.

Thank you
Marcel

-- 
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] Show Text On Screen

2011-06-01 Thread EdwardComb
Hi All,

Actually, I want to show my FPS on the screen.
I already calculated the FPS and able to show on the Logcat. But,
that's not my intention.
I want to display the FPS on the screen but have no idea how to do it.

Should I use the XML Layout?

-- 
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] Looking for Sunspider Benchmark Visualization

2011-06-01 Thread harrisJ
Hi

I am looking for Sunspider Benchmark Visualization (javascript
benchmark) what was used in google-android-froyo release demo
Does anyone knows where can I use this benchmark test?

You can find it from http://www.youtube.com/watch?v=yAZYSVr2Bhc  (at
2:08)

-- 
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] questions about android apk signature.

2011-06-01 Thread zhang ning
android provide a mechanism sign an apk to identify who provide this
apk.

but it seems no away to identify who to use this apk.

if i want to limit my apk to given users, how can 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


Re: [android-developers] change system partition

2011-06-01 Thread Mark Murphy
On Mon, May 30, 2011 at 7:15 AM, Yishai  wrote:
> I want to build the android emulator but add some files with specific
> permissions to its system partition.
>
> Where should I change in makefiles ? Is there some script that can be
> added and its commands will be done via building the system
> partition ?
>
> Any help will be appreciated.

This list is for developing Android applications using the SDK. To
learn more about custom firmware for an emulator, visit
http://source.android.com.

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

Android Training in NYC: http://marakana.com/training/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: Creating a good reference point for Android

2011-06-01 Thread Raghav Sood
Oh and please check
http://wiki.androidappcheck.com/index.php?title=Special:WantedPages&limit=100&offset=0first
and see if you can make any of those pages. You are also most welcome
to create any other page.

Thank you

On Thu, Jun 2, 2011 at 12:06 AM, Raghav Sood  wrote:

> Hi all,
>
> I have noticed how often there are questions regarding problems with the
> market, in-app billing, documentation etc. It seems that the Android
> references are spread very far and wide and in some places non-existant
> alltogether. I plan to solve this bye creating a "Wikipedia" of all android
> related topics. Two days ago I started the process and created the wiki at
> http://wiki.androidappcheck.com/ Right now I am its only contributor and
> by no stretch of imagination know all about Android. I would like it if all
> of you people could help me with this. I have so far made only 9 pages in
> the time it has been up and none of them are as detailed as I would like.
>
> Please help with this project as it will be a good starting base for all
> Android developers.
> Thanks
> ===
> That was my previous message which I think most of you missed.
>
> Please help make this what I intend for it to be so that is\t is useful for
> everyone.]
>
> Thanks
>
> --
> Raghav Sood
> http://www.raghavsood.com/
> http://www.androidappcheck.com/
> http://www.telstop.tel/
>
>


-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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

Re: [android-developers] Google TV

2011-06-01 Thread Mark Murphy
Questions regarding the use of a Google TV device are best asked of
the firm who made your Google TV device.

On Mon, May 30, 2011 at 11:10 AM, Enrico De Majorca  wrote:
> Is it possible to add a comment/icon on the video currently playing on
> google tv?
>
> --
> 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
>



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

Android Training in NYC: http://marakana.com/training/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: Creating a good reference point for Android

2011-06-01 Thread Raghav Sood
Hi all,

I have noticed how often there are questions regarding problems with the
market, in-app billing, documentation etc. It seems that the Android
references are spread very far and wide and in some places non-existant
alltogether. I plan to solve this bye creating a "Wikipedia" of all android
related topics. Two days ago I started the process and created the wiki at
http://wiki.androidappcheck.com/ Right now I am its only contributor and by
no stretch of imagination know all about Android. I would like it if all of
you people could help me with this. I have so far made only 9 pages in the
time it has been up and none of them are as detailed as I would like.

Please help with this project as it will be a good starting base for all
Android developers.
Thanks
===
That was my previous message which I think most of you missed.

Please help make this what I intend for it to be so that is\t is useful for
everyone.]

Thanks
-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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