[android-developers] Fail to install Apk on device

2011-06-28 Thread Ankit Kasliwal
Hello Everyone please any one tell how i install apk file on my device.
when i install apk file it should show me a message "Application not
install" .

please any one help me or how i install application directly on my device
connecting with USB.

Thanks in advance

-- 

Thanks and Regards,

Ankit Kasliwal
kasliwalankit2...@gmail.com
+91-9300-940-136

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Install % not updating?

2011-06-28 Thread John Coryat
>>  As a result, the ranking of the app went from a stable 125 to 180+

Since everyone has the same problem, I doubt it has affected your position. 
There must be another issue, like total downloads or something else that's 
causing your drop.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Browser - Orientation Change on Google home page - Focus is lost

2011-06-28 Thread Neha
Hi,

I am working on Android Gingerbreead Platform.
I am facing a particular issue with Google Homepage.

This is related to screen orientation and context menu functioning.

When I long press on some specific links on Google Homepage, for eg:
iGoogle, a context menu opens.
Now if I rotate the device, to enable orientation change, the same
homepage, and context menu is redrawn. But the context menu items are
non-functioning now.
i.e. the context menu items when selected do not process the further
action.

When explored, it is observed that, this issue is caused because the
Browser looses focus of the selcted anchor, i.e. iGoogle in this case,
when the orientation is changed.
Due to this, the context menu handler does not gets called.

Has anyone faced a similar issue?
Can you suggest some solution?

This issue is observed on android phones of various vendors, and is
also seen on the emulator.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListView is no clickable

2011-06-28 Thread Manish Garg
Thanks a lot Zsolt. It works.

i have used android:focusable="false" , I didnt get why you have also
suggested   android:clickable="false". We want to that check box shoud
get checked/unchecked. Will making it unclickable not make it disable
or user will not be able to check it.

On Jun 28, 3:58 am, Zsolt Vasvari  wrote:
> Basic Java Tip #129:  @Override is an annotation for the compiler --
> it has no effect on how the code is executed.
>
> I am 100% sure it's because of those missing attributes.  I've
> wrestled with the same problem before.
>
> On Jun 28, 3:38 pm, Ali Chousein  wrote:
>
>
>
> > Manish,
>
> > A very basic question, but did you by change forget to put @Override
> > before the declaration of setOnItemClickListener?
>
> > --
> > Ali Chousein
> > Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/- 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] Is it possible to create pdf files in android using 3rd party library

2011-06-28 Thread ABS
Hi All,
I am new in android development, i am  working on one
application where i have to create pdf files through source code, Is
it possible to use iText library in andoid?
If  someone have solution for my problem please let me know.

Thanks in advance

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


[android-developers] Re: Install % not updating?

2011-06-28 Thread michael
I also have this problem. Active installs have not been updated for a
week now, so active install ratio has dropped by 5%. As a result, the
ranking of the app went from a stable 125 to 180+, and I am seeing a
significant drop in downloads.

Sigh...

/Michael.

On Jun 28, 4:10 am, Adam Ratana  wrote:
> Not since around the 21st or so.  Saw them drop to 0 today, and then
> revert back.  Theactiveinstallsseem to be working though, before it
> was the opposite problem.
>
> On Jun 27, 6:20 am, Michael Schollmeyer  wrote:
>
>
>
> > Same problem here, it stopped updating on June 21, dropped to 0 on June 25
> > and recently recovered to the previous value. Has anybody seen increasing
> >activeinstallssince then?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 pvrtc application.

2011-06-28 Thread Manu
hi

i want to write a openGl application which uses the GLES2 ext which i 
couldnot find in the sdk(2.3.3). how can i use the constants openGl 
parameters defined in GLES2ext.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] battery status check

2011-06-28 Thread Mark Murphy
On Tue, Jun 28, 2011 at 7:00 AM, Mystic Prowler  wrote:
> Juts asking, why is that when Android phones are charging or discharging, it
> shows in 10% intervals and below 20% it goes down to 5% intervals. Can it be
> changed to 1% intervals for more accuracy?

That is up to the device manufacturer. Some devices report 1%
intervals all along. Others -- notably some Motorola devices -- behave
has you describe.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] battery status check

2011-06-28 Thread Mark Murphy
See ACTION_BATTERY_CHANGED.

On Tue, Jun 28, 2011 at 6:51 AM, kaushik p  wrote:
> Hi all ,
> Can we write a program to check if the phone is being charged or not ?
> For example , I keep my phone charging in some room at my house and i need
> to check if the phone is getting charged with out going near it .To get that
> information can i send a message to this cell phone from other number "are
> you charging "so that , the phone being charged can reply me something like
> "charging , 70% charged " or "not charging , 70% charge remaining "
>
> --
> Thanks&Regards
> Kaushik Pendurthi
> http://kaushikpendurthi.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] battery status check

2011-06-28 Thread Mystic Prowler
Juts asking, why is that when Android phones are charging or discharging, it
shows in 10% intervals and below 20% it goes down to 5% intervals. Can it be
changed to 1% intervals for more accuracy?

On Tue, Jun 28, 2011 at 6:51 AM, kaushik p  wrote:

> Hi all ,
>
> Can we write a program to check if the phone is being charged or not ?
> For example , I keep my phone charging in some room at my house and i need
> to check if the phone is getting charged with out going near it .To get that
> information can i send a message to this cell phone from other number "are
> you charging "so that , the phone being charged can reply me something like
> "charging , 70% charged " or "not charging , 70% charge remaining "
>
> --
> Thanks&Regards
> Kaushik Pendurthi
>
> http://kaushikpendurthi.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Recommendations on Screenshot formats?

2011-06-28 Thread MarcoAndroid
Yup it's now a day later, images are looking fine now on my N1 in the
market. So 320x480 seems the way to go.

On 27 jun, 21:12, MarcoAndroid  wrote:
> Actually, just noticed that my screenshots of uploaded 480x800 format
> look in my phone'smarketexactly the same as the previews in the dev
> console, cropped with left say 20pixels cut off. Seems you can use
> that as a real indication on how they will look like...
>
> BTW just uploaded a 320x480 and indeed in the preview it now is fully
> shown, no cropping. Let's see what themarketshows now on my phone
> (N1). Nothing yet, waiting for the update of the images to appear...
>
> On 27 jun, 20:33, MarcoAndroid  wrote:
>
>
>
>
>
>
>
> > Reading this 
> > onehttp://groups.google.com/group/android-developers/browse_thread/threa...
> > it seems 320x480 is the size to go for, forget the others...
>
> > On 21 jun, 17:07, Santiago Lema  wrote:
>
> > > Hello,
>
> > >  I just published my first Android port (from my iOS app) and I am
> > > really puzzled as to how I should handle screenshots?
>
> > > Letting aside that the jpeg quality is awful and the inability to
> > > provide localized screenshots, I'll ask just one simple question.
>
> > > - What is the recommended size to upload screenshots so they look nice
> > > on all devices?
>
> > > I uploaded 800x480 PNG 24 bits screenshots, hoping a higher quality
> > > source would yield decent results but I was sorely disappointed. Not
> > > only the jpeg quality setting is awful but the androidmarketseems 
> > > tocropmy screenshots to a 1.5 ratio (like 320x480) at what seems to be
> > > random positions?
>
> > > If I upload screenshots in several formats will themarketuse the
> > > appropriate ones for each phone ? Or will it scale each one miserably
> > > just like it does for the ones I uploaded and display them in their
> > > full ugliness on all devices ?
>
> > > PS: If anyone cares, I have just written a long rant about issues when
> > > publishing to the AndroidMarketissues which details thescreenshot
> > > issues too:http://www.smallte.ch/blog-read_en_15001.html

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


[android-developers] battery status check

2011-06-28 Thread kaushik p
Hi all ,

Can we write a program to check if the phone is being charged or not ?
For example , I keep my phone charging in some room at my house and i need
to check if the phone is getting charged with out going near it .To get that
information can i send a message to this cell phone from other number "are
you charging "so that , the phone being charged can reply me something like
"charging , 70% charged " or "not charging , 70% charge remaining "

-- 
Thanks&Regards
Kaushik Pendurthi

http://kaushikpendurthi.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: NFC Secure Element

2011-06-28 Thread Michael Roland
Hallo Dominik,

> What would be the use-case which requires access to the emulated
> Mifare card from within an android application?
> Or asked another way round: What could be done additionally compared
> to NDEF Push?

Have a look at my reply a while ago in this thread:
https://groups.google.com/group/android-developers/tree/browse_frm/thread/418c9b370f08a9f7/f1d824274a797adf?rnum=1#doc_55a8c6f6ba10f98c

br,
Michael

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: NFC send Url p2p

2011-06-28 Thread Michael Roland
Hallo,

>>   Stringurl= "http://example.com";;
>>   byte[] payload =url.getBytes();
>>   NdefRecord ndefRecord = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI,
>> NdefRecord.RTD_URI, new byte[0], payload);
> 
> this works, however I am not sure whether it completely follows the
> NDEF spec.

You are correct. This does not follow the NDEF spec. For
TNF_ABSOLUTE_URI, the type name field needs to be an absolute URI. The
constant NdefRecord.RTD_URI equals to "U", so this is no absolute URI.

> RTD_URI is a well-known type ("U") for record type
> definitions (RTDs), but in this case I would have expected WELL_KNOWN
> as TNF, i.e.
> 
>   new NdefRecord(
>   NdefRecord.TNF_WELL_KNOWN,
>   NdefRecord.RTD_URI,
>   new byte[0],
>   "http://example.com".getBytes())

The payload lacks the identifier code byte in this example.

> If TNF = TNF_ABSOLUTE_URI, i thought that this means that the type
> descriptor is a complete URI (as we know it from XML schema, for
> example). Can someone confirm this (and give an example on when to use
> TNF_ABSOLUTE_URI)?

Correct. TNF_ABSOLUTE_URI means that the type name is an absolute URI.
That URI defines the format of the payload.

An example would be the definition of custom record types for use with
Android.

Android currently implements automatic application launching only for
the well-known URI type, the well-known smart poster type, MIME types
and absolute URI types. The NFC Forum's external type is not (yet)
supported for application triggering.

Thus, you could use an absolute URI type as a replacement for external
types.
new NdefRecord(
NdefRecord.TNF_ABSOLUTE_URI,
"http://nfc-research.at/my-record-scheme".getBytes(),
new byte[0],
payload)

The contents of payload would be defined by the URI
http://nfc-research.at/my-record-scheme. Note however that, as opposed
to an XML schema's URL, the URI
"http://nfc-research.at/my-record-scheme"; is just a *name* for that
type. The resource behind the URI does not necessarily need to carry any
information about the type.

br,
Michael

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android apps in php

2011-06-28 Thread Marcin Orlowski
On 28 June 2011 10:18, Kostya Vasilyev  wrote:

> Huh?
>

"sarcasm" is what you just missed :)

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook * and
*Twitter
*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change grandient color for a shape programmatically

2011-06-28 Thread skink


Paolo wrote:
> Hi SofB thanks for your answer.
> I did it, but the problem is here. From ShapeDrawable object I don't
> figure out how to set the gradient color in the shape. Maybe I miss
> something, please give me a tip.
> http://developer.android.com/reference/android/graphics/drawable/ShapeDrawable.html
>
> On 27 Giu, 16:26, Streets Of Boston  wrote:
> > Depends.
> > Let's say you attach this drawable as the background of some View.
> > Call 'getBackgroundDrawable()' on this one and cast it to the correct
> > sub-class of Drawable. In your case that would be ShapeDrawable. Then
> > consult the online documentation to navigate your way to access and change
> > the gradient.

developer.android.com/reference/android/graphics/drawable/
ShapeDrawable.ShaderFactory.html

pskink

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


[android-developers] How to disable transparent textures for one object?

2011-06-28 Thread MobileVisuals
One object should be displayed in front of 2 objects with transparent
textures. The object in front should not be transparent, but I can not
disable  transparent textures for that object. I try with

gl.glColor4f(0.7f, 0.7f, 0.7f, 1f); and

 gl.glDisable(GL10.GL_BLEND);

This has however no effect and the object in front is still
transparent. What should I do to disable transparent textures for this
object?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 and real smartphone behaviour are different in lifecycle of activity

2011-06-28 Thread Zanarotti Michele
I written a game one months ago with andengine, wich extends the Activity 
class. I had no particular
problem with emulation and running the activity. 

Now i'm developing a new game, based on the copy/pasted code from the first, 
but actually is more
complex. However The activity lifecycle shouldn't be different. Furthermore 
i found some differences 
between real smartphone (samsung galaxy ace) and emulator responses :

ROTATION DURING PLAY
ADV emulator : the activity restarts
smartphone: does nothing

STAND BY WITH LOCK SCREEN (pressed or timed)
ADV emulator : the activity is correctly resumed in its last state before 
the screen goes black
smartphone : the activity is completely restarted. 

HOME BUTTON :
The activity in both case is correctly resumed.

How can avoid this ???

Also i can't find the right way to log activity on the phone emulator (also 
with debug android within eclipse).


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Log file on device

2011-06-28 Thread Nikolay Elenkov
On Tue, Jun 28, 2011 at 6:04 PM, EdwardComb  wrote:
> okay. so..
> -d mean we dump everything in one shot to log.txt?

Yes. You can filter the output by specifying additional options to adb
if you don't need everything.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Log file on device

2011-06-28 Thread EdwardComb
okay. so..
-d mean we dump everything in one shot to log.txt?

thank's for the really helpful info!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change grandient color for a shape programmatically

2011-06-28 Thread Zsolt Vasvari
> Do you think this is the only way? :|

Yes, what's wrong with it?

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


[android-developers] Re: Change grandient color for a shape programmatically

2011-06-28 Thread Zsolt Vasvari
You set it in the consructor:

GradientDrawable(GradientDrawable.Orientation orientation, int[]
colors)



On Jun 28, 4:47 pm, Kostya Vasilyev  wrote:
> How about GradientDrawable instead?
>
> http://developer.android.com/reference/android/graphics/drawable/Grad...
>
> ( I don't see any methods to set gradient colors, though )
>
> -- Kostya
>
> 28.06.2011 12:40, Paolo пишет:
>
> > Hi SofB thanks for your answer.
> > I did it, but the problem is here. From ShapeDrawable object I don't
> > figure out how to set the gradient color in the shape. Maybe I miss
> > something, please give me a tip.
> >http://developer.android.com/reference/android/graphics/drawable/Shap...
>
> > On 27 Giu, 16:26, Streets Of Boston  wrote:
> >> Depends.
> >> Let's say you attach this drawable as the background of some View.
> >> Call 'getBackgroundDrawable()' on this one and cast it to the correct
> >> sub-class of Drawable. In your case that would be ShapeDrawable. Then
> >> consult the online documentation to navigate your way to access and change
> >> the gradient.
>
> --
> Kostya Vasilyev

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change grandient color for a shape programmatically

2011-06-28 Thread Kostya Vasilyev

How about GradientDrawable instead?

http://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html

( I don't see any methods to set gradient colors, though )

-- Kostya

28.06.2011 12:40, Paolo пишет:

Hi SofB thanks for your answer.
I did it, but the problem is here. From ShapeDrawable object I don't
figure out how to set the gradient color in the shape. Maybe I miss
something, please give me a tip.
http://developer.android.com/reference/android/graphics/drawable/ShapeDrawable.html

On 27 Giu, 16:26, Streets Of Boston  wrote:

Depends.
Let's say you attach this drawable as the background of some View.
Call 'getBackgroundDrawable()' on this one and cast it to the correct
sub-class of Drawable. In your case that would be ShapeDrawable. Then
consult the online documentation to navigate your way to access and change
the gradient.


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change grandient color for a shape programmatically

2011-06-28 Thread Paolo
Exactly! It seems the only way is to create a new GradientDrawable
using the constructor programmatically.

GradientDrawable(GradientDrawable.Orientation orientation, int[]
colors)

Do you think this is the only way? :|

On 28 Giu, 10:47, Kostya Vasilyev  wrote:
> How about GradientDrawable instead?
>
> http://developer.android.com/reference/android/graphics/drawable/Grad...
>
> ( I don't see any methods to set gradient colors, though )
>
> -- Kostya
>
> 28.06.2011 12:40, Paolo пишет:
>
> > Hi SofB thanks for your answer.
> > I did it, but the problem is here. From ShapeDrawable object I don't
> > figure out how to set the gradient color in the shape. Maybe I miss
> > something, please give me a tip.
> >http://developer.android.com/reference/android/graphics/drawable/Shap...
>
> > On 27 Giu, 16:26, Streets Of Boston  wrote:
> >> Depends.
> >> Let's say you attach this drawable as the background of some View.
> >> Call 'getBackgroundDrawable()' on this one and cast it to the correct
> >> sub-class of Drawable. In your case that would be ShapeDrawable. Then
> >> consult the online documentation to navigate your way to access and change
> >> the gradient.
>
> --
> Kostya Vasilyev

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Looking for Android language translation partners

2011-06-28 Thread Rocky
We can do?
let me details
rkj...@hotmail.com

On Tue, Jun 28, 2011 at 7:35 AM, Indicator Veritatis wrote:

> I see the app is also getting rather poor ratings. I am sure this has
> nothing to do with the bad translations, but is due to poor
> performance of the app. Why would a dog quiet down just because he
> heard a metallic noise? It just doesn't make sense.
>
> On Jun 26, 11:46 pm, "Bernard T. Higonnet" 
> wrote:
> > It's not that I want to be cruel, but the English shown on your app's
> > page is rather poor. For ex > translation would produce the word "quite" when the word should be
> "quiet".
> >
> > Though it is true that both users and possible translators could work
> > from the present English version, starting with a good English one would
> > help...
> >
> > Bernard Higonnet
> >
> > On 06/24/11 15:00, WeiLong wrote:> Dear whom may concern,
> >
> > > I'm looking for a language exchange partners of Android developing who
> > > can help on various language translation.
> >
> > > This is the application that I developed , Stop dog barking
> > >https://market.android.com/details?id=com.wuhome.stopDogBarking
> >
> > > Although I m using Google translation to do roughly translation, I m
> > > searching for help to make it more colloquialism and easy to
> > > understand.
> >
> > > As a partner, I will provide Traditional Chinese&  simple Chinese
> > > translation service for you.
> >
> > > Below is language exchange partners that I'm looking for.
> > > 1. Russian,  http://dl.dropbox.com/u/25164515/Russian.doc
> > > 2. Dutch,  http://dl.dropbox.com/u/25164515/Dutch.doc
> > > 3. Italian,  http://dl.dropbox.com/u/25164515/Italian.doc
> > > 4. Czech,  http://dl.dropbox.com/u/25164515/Czech.doc
> > > 5. Polish,  http://dl.dropbox.com/u/25164515/Polish.doc
> > > 6. Portuguese,  http://dl.dropbox.com/u/25164515/Portuguese.doc
> > > 7. Finnish,  http://dl.dropbox.com/u/25164515/Finnish.doc
> > > 8. Swedish,  http://dl.dropbox.com/u/25164515/Swedish.doc
> > > 9. Norwegian Bokm l,
> http://dl.dropbox.com/u/25164515/Norwegian%20Bokm%C3%A5l.doc
> > > 10.Danish,  http://dl.dropbox.com/u/25164515/Danish.doc
> >
> > > If you are interesting, please contact me at wuwei...@gmail.com
> >
> > > Weilong 2011/6/24
> > > Taiwan, Taipei
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards

Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030274295
(R) +919886336619

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change grandient color for a shape programmatically

2011-06-28 Thread Paolo
Hi SofB thanks for your answer.
I did it, but the problem is here. From ShapeDrawable object I don't
figure out how to set the gradient color in the shape. Maybe I miss
something, please give me a tip.
http://developer.android.com/reference/android/graphics/drawable/ShapeDrawable.html

On 27 Giu, 16:26, Streets Of Boston  wrote:
> Depends.
> Let's say you attach this drawable as the background of some View.
> Call 'getBackgroundDrawable()' on this one and cast it to the correct
> sub-class of Drawable. In your case that would be ShapeDrawable. Then
> consult the online documentation to navigate your way to access and change
> the gradient.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: socket connect through a bluetooth issue

2011-06-28 Thread wu mark
Dear Indicator Veritatis :

 Thanks for your reply.

I had coed 2 android API to pass the data from a BT Client to BT Server
through the Bluetooth.

It works.

Now I want to pass the data from the BT client to a non-android server (for
example, windows 7 server). So I try to use the hyperterminal to receive &
display the data.

My ckient code is simple. Could you help me to check? Thanks.

package tw.android.test.BTClient;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.util.UUID;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
public class BTClient extends Activity {
 private BluetoothAdapter adapter;

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
adapter = BluetoothAdapter.getDefaultAdapter();
if (!adapter.isEnabled()){
Intent intent = new
Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(intent, 2);
if (!adapter.enable()) finish();
}
// 遠端藍牙的 MAC
new
ClientThread(adapter.getRemoteDevice("00:11:94:1A:0D:51")).start();

}
 private class ClientThread extends Thread {
 private final BluetoothSocket mmSocket;
 private final BluetoothDevice mmDevice;
 public ClientThread(BluetoothDevice device) {
 BluetoothSocket tmp = null;
 mmDevice = device;
 try {
 tmp =
device.createRfcommSocketToServiceRecord(UUID.fromString("fa87c0d0-afac-11de-8a39-0800200c9a66"));
 } catch (IOException e) { }
 mmSocket = tmp;
 }
 public void run() {
  adapter.cancelDiscovery();
 try {
  Log.i("BTClient", "start to connect");
 mmSocket.connect();
  Log.i("BTClient", "connecting");
 BufferedOutputStream bout = new
BufferedOutputStream(mmSocket.getOutputStream());
 bout.write("1234567再測試一下".getBytes());
 bout.flush();
 bout.close();
 bout = null;
  Log.i("BTClient", "connectless");
 } catch (IOException connectException) {
 Log.i("BTClient", "not connect");
 try {
 mmSocket.close();
 } catch (IOException closeException) { }
 return;
 }
 }
 public void cancel() {
 try {
 mmSocket.close();
 } catch (IOException e) { }
 }
 }
}


Thanks.

BR,
Mark

2011/6/28 Indicator Veritatis 

> You have not posted quite enough information for us to be sure we can
> help you. Can I assume, for example, that your variable 'Socket' is a
> BluetoothSocket? Why have you not followed any of the coding standards
> for the name, then? The Sun standards, and many others, all call for
> class names to start with capital letters, but object and primitive
> variables names to start with lower case. If you want people to be
> able to help you, make our job easier: follow the standards so that we
> can read the code without more effort than we feel helping you is
> worth.
>
> For that matter, how do we know you did not implement it as
> BluetoothServerSocket? This too, is an example of insufficient
> information.
>
> For my final example of insufficient information, what did you do in
> between the "first time" and the second? Did you call run() again? How
> do you determine when it is time to call run() again? You will need to
> do this to talk to the remote device again, since you closed not only
> the BufferedOutputStream, but even the BluetoothSocket (assuming that
> is what 'Socket' really is).
>
> BTW: how did you decide that you have to close the socket itself
> rather than just the output stream? Have you considered leaving the
> socket connected? Look at
>
> http://developer.android.com/resources/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChat.html
> and see how it does it.
>
> On Jun 27, 2:48 am, mark2011  wrote:
> > Dear All :
> >
> >I'm a new to Android.
> >
> >I try to code a client API to allow the user to input some data in
> > an android 2.1 to send out through the bluetooth. The hyperterminal
> > can displays the received data in a Windows pc in the first time. But
> > When I input data the second time from the Android, the pc can't
> > receive the data any more.
> >
> > My code is the below :
> > public void run() {
> > adapter.cancelDiscovery();
> >
> > try {
> > Socket.connect();
> > BufferedOutputStream bout = new
> > BufferedOutputStream(Socket.getOutputStream());
> > bout.write(str1.getBytes());
> >
> > bout.flush();
> > bout.close();
> > } catch 

Re: [android-developers] Re: Bluetooth Serial Port Question

2011-06-28 Thread wu mark
Dear Gis :

   I had copied the code from the URL that you shared(
http://developer.android.com/resources/samples/BluetoothChat/index.html)

But In my eclipse there are 2 error.

1.import android.app.ActionBar in the BluetoothChat.java can't be resolved.
2.DeviceListActivity.java can't find the variables that I Had defined in the
layout & string.

Maybe I forgot to do some step first. Could you hint me?

Thanks.

BR,
mark


2011/6/25 gjs 

> Hi,
>
> Yes I have this working correctly in similar scenario you describe
> with InsecureRfcomm, try creating & connecting an outgoing socket
> connection to the device and make sure you are using the correct UUID
> string for the device. eg
>
> 'Hint: If you are connecting to a Bluetooth serial board then try
> using the well-known SPP UUID 1101--1000-8000-00805F9B34FB.
> However if you are connecting to an Android peer then please generate
> your own unique UUID.'
>
>
> http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html
>
> Yes you need 2.3.3 or greater.
>
> Regards
>
> On Jun 24, 9:23 pm, Si  wrote:
> > I have done some further trawling around the internet and as far as I
> > can tell until recently the standard API only supported pairing (with
> > a passkey).
> >
> > It would appear though that this functionality has been included in
> > 2.3.3 (http://developer.android.com/sdk/android-2.3.3.html)
> >
> > "Android 2.3.3 adds platform and API support for Bluetooth nonsecure
> > socket connections. This lets applications communicate with simple
> > devices that may not offer a UI for authentication."
> >
> > Has anybody got any examples that connect to "non-secure" devices that
> > do not exchange a passkey?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Re: Android apps in php

2011-06-28 Thread Kostya Vasilyev
Huh?

http://www.google.co.in/

And it's not like Google is the only way to search the Internet...

Entering "android php" here:

http://in.yahoo.com/

... returns phpforandroid.net as the second result.

-- Kostya

2011/6/28 Zsolt Vasvari 

> I don't think Goolge Search works in India.  That's the only
> explanation.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 apps in php

2011-06-28 Thread Zsolt Vasvari
I don't think Goolge Search works in India.  That's the only
explanation.

On Jun 28, 4:06 pm, "JAlexoid (Aleksandr Panzin)" 
wrote:
> Looky here!http://www.phpforandroid.net/
>
> I guess some people are just too lazy or stupid, or both to google
> "php android" and click on the very first result
>
> On Jun 27, 3:10 pm, Mark Murphy  wrote:
>
>
>
> > On Mon, Jun 27, 2011 at 8:07 AM, JAlexoid (Aleksandr Panzin)
>
> >  wrote:
> > > If you can't be bothered to learn the most adequate language for
> > > Android, try SL4Ahttp://code.google.com/p/android-scripting/
> > > PHP is not supported though and I doubt it will ever be supported.
>
> > Actually, SL4A supports PHP, though not via a Web server, the way most
> > people think of PHP.
>
> > --
> > 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/- Hide quoted 
> > text -
>
> - Show quoted text -

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


[android-developers] Re: how to get phone number through other method

2011-06-28 Thread Zsolt Vasvari
Exactly.  The phone # is not used for routing calls, so it's not at
all surprising that the phone doesn't know its own number.

On Jun 28, 3:56 pm, "JAlexoid (Aleksandr Panzin)" 
wrote:
> In a lot of cases it's impossible to get the phone number. My phone
> certainly does not report any phone number (Nexus S)
>
> On Jun 28, 9:12 am, Ellen  wrote:
>
>
>
> > thanks for your reply!
>
> > I have set the permission for READ_PHONE_STATE.
>
> > it couldn't get the phone number, because the Internet Operator didn't
> > store this info to SIM card, and TelephonyManager.getLine1Number()
> > seems only could read phone number from the SIM card :(
>
> > So, any other ideas?
>
> > On 6月28日, 上午8时13分, Indicator Veritatis  wrote:
>
> > > Did you set the permission READ_PHONE_STATE?
>
> > > On Jun 25, 4:14 am, "ellen...@hotmail.com" 
> > > wrote:
>
> > > > Dear Android experts,
>
> > > > I'm trying togetthephonenumberthrough
> > > > TelephonyManager.getLine1Number().
> > > > As many threads discussed before, it couldn't work in a real device,
> > > > null as the result.
>
> > > > Now my question is, whether there is some other way togetthephone
> > > >number?
>
> > > > I searched one method said that it could send a sms to Internet
> > > > Operator somewhere.
> > > > 1. could you please provide the detail interface if it is a possible
> > > > way?
> > > > 2. And, is there any difference for the interface among different
> > > > Internet Operator?
> > > > 3. After sent the sms, where togetthephonenumber? please also
> > > > provide the interface if possible.
>
> > > > Looking for your response..- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- 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: Android apps in php

2011-06-28 Thread JAlexoid (Aleksandr Panzin)
Looky here! http://www.phpforandroid.net/

I guess some people are just too lazy or stupid, or both to google
"php android" and click on the very first result

On Jun 27, 3:10 pm, Mark Murphy  wrote:
> On Mon, Jun 27, 2011 at 8:07 AM, JAlexoid (Aleksandr Panzin)
>
>  wrote:
> > If you can't be bothered to learn the most adequate language for
> > Android, try SL4Ahttp://code.google.com/p/android-scripting/
> > PHP is not supported though and I doubt it will ever be supported.
>
> Actually, SL4A supports PHP, though not via a Web server, the way most
> people think of PHP.
>
> --
> 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


Re: [android-developers] Re: Android application blocked by Market for Motorola Xoom

2011-06-28 Thread Carlos Silva
On Tue, Jun 28, 2011 at 06:22, laminina  wrote:

> I'm also able to install your package in my Xoom.
>
> Something that brings to my mind is which ROM version does the Xoom
> you have is currently using.
>

I have the stock 3.1 with root and changed kernel.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListView is no clickable

2011-06-28 Thread Zsolt Vasvari
Basic Java Tip #129:  @Override is an annotation for the compiler --
it has no effect on how the code is executed.

I am 100% sure it's because of those missing attributes.  I've
wrestled with the same problem before.



On Jun 28, 3:38 pm, Ali Chousein  wrote:
> Manish,
>
> A very basic question, but did you by change forget to put @Override
> before the declaration of setOnItemClickListener?
>
> --
> Ali Chousein
> Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/

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


[android-developers] Re: how to get phone number through other method

2011-06-28 Thread JAlexoid (Aleksandr Panzin)
In a lot of cases it's impossible to get the phone number. My phone
certainly does not report any phone number (Nexus S)

On Jun 28, 9:12 am, Ellen  wrote:
> thanks for your reply!
>
> I have set the permission for READ_PHONE_STATE.
>
> it couldn't get the phone number, because the Internet Operator didn't
> store this info to SIM card, and TelephonyManager.getLine1Number()
> seems only could read phone number from the SIM card :(
>
> So, any other ideas?
>
> On 6月28日, 上午8时13分, Indicator Veritatis  wrote:
>
>
>
>
>
>
>
> > Did you set the permission READ_PHONE_STATE?
>
> > On Jun 25, 4:14 am, "ellen...@hotmail.com" 
> > wrote:
>
> > > Dear Android experts,
>
> > > I'm trying togetthephonenumberthrough
> > > TelephonyManager.getLine1Number().
> > > As many threads discussed before, it couldn't work in a real device,
> > > null as the result.
>
> > > Now my question is, whether there is some other way togetthephone
> > >number?
>
> > > I searched one method said that it could send a sms to Internet
> > > Operator somewhere.
> > > 1. could you please provide the detail interface if it is a possible
> > > way?
> > > 2. And, is there any difference for the interface among different
> > > Internet Operator?
> > > 3. After sent the sms, where togetthephonenumber? please also
> > > provide the interface if possible.
>
> > > Looking for your response..- 隐藏被引用文字 -
>
> > - 显示引用的文字 -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListView is no clickable

2011-06-28 Thread Ali Chousein
Manish,

A very basic question, but did you by change forget to put @Override
before the declaration of setOnItemClickListener?

--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Screenshots that are uploaded to the marketplace are cropped.

2011-06-28 Thread MarcoAndroid
In case you haven't seen this thread yet:
http://groups.google.com/group/android-developers/browse_thread/thread/9fa04470b4b61beb/ff1d27cd8e77d0be

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Recommendations on Screenshot formats?

2011-06-28 Thread MarcoAndroid
Yeah I used to do this too, using DDMS, no problems with weird
cropping.
With my recent new app I uploaded Galaxy S2 screenshots 480x800,
showing the cropping problem.
Maybe that's the difference: DDMS vs real phone...

On 28 jun, 01:14, rich friedel  wrote:
> I just take screenshots from my device using DDMS, save them and upload them
> without editing. It saves them as png files. Quality isn't the absolute best
> but it works well enough for me.

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


[android-developers] Android Honeycomb 3.1 webclient with flash content - not working :-(

2011-06-28 Thread MarkG123
I am trying to embed a webclient in my app, and the page has flash
content, i'm pretty sure it's loading the flash, but it's not
displaying it. Anyone know the problem?

public class FlashTestActivity extends Activity {

final Activity activity = this;

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


WebView webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);

webView.setWebChromeClient(new WebChromeClient() {
public void onProgressChanged(WebView view, int progress)
{
activity.setTitle("Loading...");
activity.setProgress(progress * 100);

if(progress == 100)
activity.setTitle(R.string.app_name);
}
});

webView.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedError(WebView view, int errorCode,
String description, String failingUrl)
{
// Handle the error
}

@Override
public boolean shouldOverrideUrlLoading(WebView view, String
url)
{
view.loadUrl(url);
return true;
}
});

webView.loadUrl("http://www.adobe.com/software/flash/about/";);
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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