[android-developers] Re: ADB driver...

2011-12-16 Thread JP




On Dec 12, 3:47 pm, sblantipodi  wrote:
> Hi,
> where can I download the ADB driver for my galaxy nexus?

Windows, here:
http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?platformId=1&cntsId=9480&listReturnUrl=http%3A%2F%2Finnovator.samsungmobile.com%3A80%2Fdown%2Fcnts%2FtoolSDK.list.do%3FplatformId%3D1%26indexType%3D1%26indexDirection%3D1%26sortType%3D0%26cateId%3D1025%26codeType%3DAll%26searchText%3D%26curPage%3D2%26listLines%3D%26formData%3Dnumber1%26nacode%3D&nacode=

(Hopefully the forum does not butcher the URL)

And no, the SDK provided drivers do not work, at least in my case and
at this time.

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


[android-developers] Android Network Provider sometimes stop using WiFi and start using Cell Tower even then person is still on same place. How to avoid that?

2011-12-16 Thread Alexey Zakharov


Android Network Provider sometimes stop using WiFi and start using Cell 
Tower even then person is still on same place. How to avoid that?

I have tested several apps. Google maps, mapquest, glympse. Only google 
maps works correct. My own app, mapquest and glympse show wrong location 
based on cell towers instead of using wifi. Im 100% sure that wifi location 
is available, because after about 20 minutes it starts using wifi.

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

Re: [android-developers] Re: How to root Android 2.3.3

2011-12-16 Thread Jim Graham
On Fri, Dec 16, 2011 at 05:54:48PM -0800, Indicator Veritatis wrote:
> While your response may have been somewhat harsh

That wasn't harsh...I CAN be harsh, but that was tame by comparison.
That was just being honest.  A bit blunt, perhaps, but not harsh.

> to say that the OP's command of English is nowhere near the level
> required to understand any of the lists of instructions for 'rooting'
> that he might find at any of the forums you so vaguely direct him to.
> He should focus on learning English instead. Otherwise he is just
> going to brick his phone.

That's why I said (for step 3) "If you don't already know what step 3 is,
do NOT proceed to step 4."

In other words, if he doesn't already know to backup his device before
even thinking about trying to root it, forget about trying to go any
further.  Btw, I haven't seen instructions for rooting any of my 3
devices (two tablets, one a cheap POS, one Acer Iconia A500, and one
phone---a Motorola Bravo MB520) as I'm not ready to void the warranty
for any of them...yet (and the A500 doesn't particularly NEED to be
rooted for anything I care about).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.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] GridLayoutCompatSample

2011-12-16 Thread J Handal
It doesn't open as an android project !

http://code.google.com/p/android-playground/source/browse/#svn%2Ftrunk%2FGridLayoutCompatSample%253Fstate%253Dclosed


I tried to add the file libs/android-support-v4.jar to my classpath.

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] Are layouts no longer considered Drawables in Ice Cream Sand....?

2011-12-16 Thread Romain Guy
Bitmaps are still drawable, but there's a bug in your code, you wrote:
@drawable/mybitmapdrawable.xml

It should be:
@drawable/mybitmapdrawable

On Fri, Dec 16, 2011 at 5:48 PM, Richard Schilling
 wrote:
> I've got this in my layout declaration in a file, let's call it
> mybitmapdrawable.xml:
>
>
> http://schemas.android.com/apk/res/android";
>
>   android:src="@drawable/mygraphic"
>
>   android:tileMode="repeat"
>
> />
>
>
> mygraphic is a .png file.  Prior to 4.0 I don't see a problem with the
> resource being inflated into a drawable.  But on 4.0 and above when I have
> this definition in mylayout.xml:
>
>
> http://schemas.android.com/apk/res/android";
>
>     android:layout_width="fill_parent"
>
>     android:layout_height="fill_parent"
>
>     android:orientation="vertical"
>
>     android:background="@drawable/mybitmapdrawable.xml">
>
> 
>
>
> I get an error at android.res.Resources.loadDrawable(Resources.java:1899):
>
> 12-16 16:50:02.567: E/AndroidRuntime(1542): Caused by:
> android.content.res.Resources$NotFoundException: Resource is not a Drawable
> (color or path): TypedValue{t=0x1/d=0x7f020095 a=-1 r=0x7f020095}
>
>
>
> Did the interpretation of the  tag change so it's no longer being
> inflated as a drawable, or is this a bug in the new platform?
>
>
> Thanks
>
>
> Richard
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] clearAnimation() Causes onAnimationEnd to fire Twice?? Please Help

2011-12-16 Thread Tommy Hartz
Hi,

 

I am trying to fade an ImageView Out, change the Image, then fade it back
in. Here is the code I am using:

 

private void fadeOut(){



AnimationSet myAnimationOut = new AnimationSet(true);



myAnimationOut.setAnimationListener(new AnimationListener(){

  @Override

  public void onAnimationEnd(Animation arg0) {

currWeatherAdRotator.clearAnimation();


if(currAd == 0){

 
currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner2);

  currAd = 1;

}else if(currAd == 1){

 
currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner3);

  currAd = 2; 

}else if(currAd == 2){

 
currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner4);

  currAd = 3; 

}else if(currAd == 3){

 
currWeatherAdRotator.setBackgroundResource(R.drawable.lbanner1);

  currAd = 0; 

}



fadeIn();







  }

  @Override

  public void onAnimationRepeat(Animation arg0) {

// TODO Auto-generated method stub



  }

  @Override

  public void onAnimationStart(Animation arg0) {

// TODO Auto-generated method stub



  }

  

});

 

It seems however that currWeatherAdRotator.clearAnimation(); causes this bit
of code to run twice which messes up my sequence. If I remove
currWeatherAdRotator.clearAnimation(); It creates a black flicker at the end
of the animation.

 

I have the fadeout feature set up on a timer that goes off every 15 seconds.
I tried creating a new class that extends the ImageView (as I read was a
work around) but when I do this I can't run my timers because I get an error
when calling runOnUiThread.

 

Basically I want to rotate through these image every 15 seconds
continuously. Can someone please tell me how I can do this or what I am
doing wrong?

 

Thanks for your help!

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

[android-developers] Re: Problem about passing intent between two activities

2011-12-16 Thread Indicator Veritatis
I would if I could, but you are the one who has to do it.

On Dec 13, 3:01 am, Abhishek Chaudhari  wrote:
> unsubscribe my email id from this group please.
>
> 
>  From: SH 
> To: Android Developers 
> Sent: Monday, 12 December 2011 10:22 AM
> Subject: [android-developers] Problem about passing intent between two 
> activities
>
> Hi all.
>
> I have an app and fixing errors/bugs. But I have problem when
> NewPictureNote.java calls PhotoTaker.java using
> startActivityForResult() to take a photo and save. My code uses
> callback and put binary data into Intent to return to previous
> activity. Here is the code:
>
> //PhotoTaker.java
> public class PhotoTaker extends BetterDefaultActivity implements
> SurfaceHolder.Callback{
>
> //..
>
>    public void clickHandler(view v){
>         //.
>         Intent returningIntent = new Intent();
>         returningIntent.putExtra(EXTRA_IMAGE_DATA, jpegPictureData);
>         setResult(RESULT_OK,returningIntent);
>         finish();
>         break;
>     }
>
> }
>
> //NewPictureNote.java
> public class NewPictureNote extends BetterDefaultActivity {
> //
>
> protected void onActivityResult(int requestCode, int resultCode,
> Intent data) {
>         super.onActivityResult(requestCode, resultCode, data);
>
> try
>         {
>             //If we are getting a response from our picture taking activity
>             if(requestCode ==REQUEST_CODE_TAKE_IMAGE)
>             {
>                 //If it was successful
>                 if(resultCode == Activity.RESULT_OK)
>                 {
>                     //do something
>                 }
>                 else
>                 {
>                     //The user cancelled or an error occured
>                     setResult(Activity.RESULT_CANCELED);
>                     finish();
>                 }
>             } else {
>                               //...
>             }
>         }
>         catch (Throwable e) {
>                       //...
>         }
>
> }
>
> When I debug code, clickHandler() method in  PhotoTaker.java works
> well. It calls till the end of the clickHanlder() but the Activity
> won't close and onActivityResult() does not work. Please let me know
> what problem is? 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 
> athttp://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 videoview fullscreen problem

2011-12-16 Thread Indicator Veritatis
You may not admit it, Pavan, but if the admins were to take any
punitive/disciplinary action, you would be at least as worthy a target
as Jim. For just as he said, everything he said about the difference
between what you did and what you should have done is true.

You do not have to take my word for it, you do not have to take his
word for it. You can figure it out for yourself by reading any one of
the several Internet etiquette FAQs with titles like "How to ask an
intelligent question" e.g. http://catb.org/~esr/faqs/smart-questions.html

People who actually get effective answers quickly follow the advice of
such sites and do not waste their own time and ours on petty flame-
wars.

On Dec 16, 1:54 am, pavan kumar valluru  wrote:
> Mr. Jim,
>             No thanks for your reply with unwanted and useless suggestions.
> I think it would be better if you can concentrate on your own shit other
> than smelling others. See Mr. a** ***e, I think this is not the place for
> amateur and impudent persons like you. It would be appreciated if you can
> unsubscribe from this group. In case you are an administrator, there are
> many people showing their middle fingers, as you have sent many unpleasant
> responses. If you think you are good enough with your English, start
> learning social behavior.
>
> PS:  If any of the administrators reading this mail who started this group
> for a good cause, Please rethink about the membership of this person(Jim
> Graham) again.
>
> On Fri, Dec 16, 2011 at 7:02 AM, Jim Graham  wrote:
> > On Wed, Dec 14, 2011 at 07:18:03AM -0800, pavan valluru wrote:
> > > Awaiting your suggestions. Thanks alot.
>
> > Suggestion #1:  Don't post the same sh*t a second time.
>
> > Suggestion #2:  You posted a second time after 25 minutes.  Were you
> > honestly expecting an answer within that time?  Sometimes you'll get
> > an answer that quickly.  Sometimes it takes longer before someone
> > decides to respond.  Other times, nobody will respond.  If you expect
> > to get an immediate response (or even get a response at all---here, you
> > rely on others to volunteer their time to help you, and you may or may
> > not get the help you're expecting), find a PAID tech support site, PAY
> > THEM, and get your answers.
>
> > Oh, and, by the way, "alot" is not a word.
>
> > Later,
> >   --jim
>
> > --
> > THE SCORE:  ME:  2  CANCER:  0
> > 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.
>
> > Android Apps Listing athttp://www.jstrack.org/barcodes.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

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

2011-12-16 Thread Indicator Veritatis
While your response may have been somewhat harsh, I think it is fair
to say that the OP's command of English is nowhere near the level
required to understand any of the lists of instructions for 'rooting'
that he might find at any of the forums you so vaguely direct him to.
He should focus on learning English instead. Otherwise he is just
going to brick his phone.

On Dec 15, 10:20 pm, Jim Graham  wrote:
> On Thu, Dec 15, 2011 at 04:04:38PM +0800, Teanor Soprano wrote:
> > Dears,
>
> We aren't your "dears".
>
> > Hope you are great day,
>
> I am not a day.  Days are merely a passage of time, consisting of
> 24 units of a smaller amount of time (which, in turn, consist of
> 60 even smaller units of time, which, . and so on).  They can't
> respond to your questions.
>
> > *1. How to root Android 2.3.3? I have many many android smartphones,
> > and tablets. But i don't make this Action. *
>
> Step 1) Find the appropriate forum to ask how to root your device.
>
> Step 2) Read the instructions that are probably already posted as a
> "sticky" post.
>
> Step 3) If you don't already know what step 3 is, do NOT proceed to
> step 4.
>
> Step 4) Follow instructions and hope you get it right.  If not, fall
> back to what you (hopefully) did in step three.
>
> > *2. **Also android tablets can't access local network servers(hostname
> > example:test). How can I access?*
>
> Really?  Mine does.
>
> Start by reading the relevant sections in the Android Developers Guide.
> Work through some example apps.  Then, if you have any specific questions
> about your code, post the relevant bits of code, relevant sections of the
> logcat output, and describe what is going wrong.
>
> Later,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 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.
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

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


[android-developers] Re: how to block application installation

2011-12-16 Thread Indicator Veritatis
Yes, it really does sound like malware. I hope someone is tracking who
asks these questions useful only for writing malware.

On Dec 15, 11:58 pm, Anil Jagtap  wrote:
> Sounds more malware than an application. You cannot do it, installing
> and removing apps is users choice.
> --
> anil jagtap
> Android Application Developer
>
> On Dec 16, 12:19 am, suganya lakshmanan
>
>  wrote:
> > I want to block application installation in android..The user
> > downloads the app from android market. If the user tries to install
> > the application i should block the application installation. i want to
> > create an app like that..If the user click the install button
> > my application should block the installation..
> > How i can block the installation ...can anyone help..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] Are layouts no longer considered Drawables in Ice Cream Sand....?

2011-12-16 Thread Richard Schilling
I've got this in my layout declaration in a file, let's call it 
mybitmapdrawable.xml:


http://schemas.android.com/apk/res/android";

  android:src="@drawable/mygraphic"

  android:tileMode="repeat"

/>


mygraphic is a .png file.  Prior to 4.0 I don't see a problem with the 
resource being inflated into a drawable.  But on 4.0 and above when I have 
this definition in mylayout.xml:


http://schemas.android.com/apk/res/android";

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:orientation="vertical" 

android:background="@drawable/mybitmapdrawable.xml">




I get an error at android.res.Resources.loadDrawable(Resources.java:1899): 

12-16 16:50:02.567: E/AndroidRuntime(1542): Caused by: 
android.content.res.Resources$NotFoundException: Resource is not a Drawable 
(color or path): TypedValue{t=0x1/d=0x7f020095 a=-1 r=0x7f020095}


Did the interpretation of the  tag change so it's no longer being 
inflated as a drawable, or is this a bug in the new platform?


Thanks


Richard


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

Re: [android-developers] Re: How to determine what Activities are bound to my Service

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 8:24 PM, Bsweet  wrote:
> I'm sorry if I am just slow here, but it still isn't clear to me how I
> would get the uid of the caller from the service.

:: smacks forehead ::

I forgot about the methods on Binder. You can use getCallingUid() on
your Binder to get the app UID of the caller, so long as you are on a
thread that is processing a Binder IPC transaction.

See also this thread:

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

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

Android Training in DC: 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] ICS Recent apps thumbnails

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 6:44 PM, Dianne Hackborn  wrote:
>  Applications can't access the thumbnails.

Um, well...

If nothing else, there have been a variety of devices that have
allowed apps to take screenshots, due to security flaws. I haven't
been trying to chase down those flaws, but there are more than enough
well-rated apps on the Market offering root-less screenshots that one
presumes that they work, for those flawed devices. If an app can take
a screenshot, it can read the contents of the recent tasks list when
it is on the screen. Admittedly, it'd be easier for them to just take
screenshots of the actual app, and there's a question of whether they
can determine when the recent tasks list is being displayed.

There's also another scenario that I want to investigate tomorrow,
plus Zsolt's concern (posted while I was composing this), plus perhaps
another angle that the OP encountered but did not elaborate upon.

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

Android Training in DC: 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: ICS Recent apps thumbnails

2011-12-16 Thread Zsolt Vasvari
Diane,  no offense, but please do see beyond the theoretical world of
Google.  If you want Android to be taken seriously as a productivity
platform,  these concerns shouldn't be summarily dismissed.

This is an absolutely valid concern for my app.  I have password
protection on my app so uses can control access to their financial
data, without necessarily locking their phones completely.   The
thumbnail feature defeats the password protection.

There needs to be a way of providing an alternate bitmap or a way to
force to show the launcher icon.



On Dec 17, 7:44 am, Dianne Hackborn  wrote:
> What do you mean the contents are being leaked outside of your app?
>  Outside of where?  The recents can't be brought up when the device is
> locked.  Applications can't access the thumbnails.
>
>
>
>
>
> On Fri, Dec 16, 2011 at 7:48 AM, Daz  wrote:
> > Is there any way to disable the thumbnail (or supply an alternate
> > thumbnail) for ICS  & honeycomb recent apps screen?
>
> > Sensitive information is being leaked from my app by this feature as the
> > contents of the screen are readable from outside the app.
>
> > I even tried blanking the screen in the OnPause override but it made no
> > difference. The thumbnail must be generated before that method is called.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: How to determine what Activities are bound to my Service

2011-12-16 Thread Bsweet
Thanks Dianne,

I'm sorry if I am just slow here, but it still isn't clear to me how I
would get the uid of the caller from the service.

Because it is a synchronous call to my remote service, is it just that
my remote service will be running on the same thread and I can get the
id from the Process.myTid()?

Thanks,

-Tony

On Dec 16, 3:39 pm, Dianne Hackborn  wrote:
> Yep.  What the platform typically does is have the service publish a
> factory interface, with a call to request a new session:
>
> interface IMySession {
>     void close();
>
> }
>
> interface IMyService {
>     IMySession makeSession();
>
> }
>
> In makeSession(), check the uid of the caller.
>
> If you want to check signing cert, you can get the packages associated with
> the calling uid and check the cert of one of them.  (All packages
> associated with the same uid must be signed with the same cert.)
>
> 2011/12/16 Harri Smått 
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > I would go for a simple handshaking mechanism quite likely. You can let
> > anyone bind to your service but disallow usage of IPC methods for
> > unidentified clients. E.g.
>
> > 1. Client connects to service.
> > 2. After connection is established, client is required to call, say,
> > identify() IPC method which returns a String, Integer, what so ever.
> > 3. After receiving this challenge, client has to call identify(result)
> > method which gives client a session id.
> > 4. For all of the later calls client has to use this session id among with
> > the call.
>
> > Quite obviously all this depends totally on how much security you're
> > required to have within your client-service interaction but some very
> > simple handshaking protocol might work surprisingly well if it's kept
> > secret.
>
> > --
> > H
>
> > On Dec 16, 2011, at 6:26 PM, Bsweet wrote:
>
> > > It is the spoof part that concerns me.
>
> > > Anyone else out there have any creative ideas?
>
> > > Right now I'm considering just checking who is on the top  of the
> > > activity stack, but that is hokey and not reliable.
>
> > > On Dec 16, 4:30 am, Mark Murphy  wrote:
> > >> On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
>
> > >>  wrote:
> > >>> When you get a bind in your service (your onBind) can you just take
> > >>> the intent and get component associated with it?
>
> > >>> From Intent:
> > >>> ComponentName    getComponent()
> > >>> Retrieve the concrete component associated with the intent.
>
> > >> That should be the recipient, not the sender.
>
> > >> The only way I know to find out whoboundto you is if you require
> > >> that information in an extra, and that can always be spoofed. The
> > >> expectation is that you should not care *who*boundto you, merely
> > >> whether they had sufficient permissions to do so.
>
> > >> --
> > >> Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > >> _Android Programming Tutorials_ Version 4.1 Available!
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] Re: openOptionsMenu not working on Honeycomb device

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 7:32 PM, Royston  wrote:
> A concern I had with the ActionBar was simply that on some devices
> (emulators) it does not provide a menu icon at the right side as for example
> an imaginary API 11/12 Large sized device or any Normal sized device. Are
> you able to confirm that in these circumstances there would definitely be a
> Menu option somewhere that the user could access?

With the r16 tools and the 2nd rev of the 4.0 emulator image, you can
now create emulators that emulate having the physical keys (so no
on-bar menu button) or do not have the physical keys (so the action
bar has the menu button).

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

Android Training...At Your Office: http://commonsware.com/training

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


[android-developers] Re: openOptionsMenu not working on Honeycomb device

2011-12-16 Thread Royston
Dianne,
Thank you for chipping in on this one. I take your point about hiding the 
status bar but i was considering doing this only to maximise the 
real-estate on smaller devices.

A concern I had with the ActionBar was simply that on some devices 
(emulators) it does not provide a menu icon at the right side as for 
example an imaginary API 11/12 Large sized device or any Normal sized 
device. Are you able to confirm that in these circumstances there would 
definitely be a Menu option somewhere that the user could access? Can you 
force the menu icon to be presented on these devices, though again if not 
there this is presumably by design.

Regards

Roy

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

2011-12-16 Thread Dianne Hackborn
You can definitely go fullscreen and have an action bar, you just need to
make a theme for this.

That said...  really, why?  Please don't.  It is freaking annoying when
applications hide the status bar for no good reason except they think they
are oh-so-important, and every time I want to see if I still have a good
network connection or what notifications I have I need to leave the app.  I
hate this.

And I really don't think it makes sense to do this when you are going to
have an action bar anyway.

Also, as far as not knowing exactly what the action bar will do...  that is
the whole point of it, there are lots of things it does to make its UI work
across a wide variety of device screens, so you don't have to.  Avoiding
the action bar because of this is really just shooting yourself in the foot.

On Thu, Dec 15, 2011 at 9:29 AM, Royston  wrote:

> Mark,
> Generally I would agree with you and if I were starting again would
> probably avoid menu/preferences. Unfortunately this would not be a good
> choice at this stage in my project. The issues I have with the ActionBar
> are to do with inconsistency and uncertainty. Depending  on the size of the
> device I may or may not get a menu icon on the ActionBar. It is asserted
> that if there is not a menu icon on the Action bar there will be one
> somewhere else but this troubles me. On some devices I would wish to get
> rid of a Status bar but you cannot go Fullscreen and still have an
> ActionBar it would seem.
>
> Again thanks for you feedback, very much appreciated.
>
> Regards
>
> Roy
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] ICS Recent apps thumbnails

2011-12-16 Thread Dianne Hackborn
What do you mean the contents are being leaked outside of your app?
 Outside of where?  The recents can't be brought up when the device is
locked.  Applications can't access the thumbnails.

On Fri, Dec 16, 2011 at 7:48 AM, Daz  wrote:

> Is there any way to disable the thumbnail (or supply an alternate
> thumbnail) for ICS  & honeycomb recent apps screen?
>
> Sensitive information is being leaked from my app by this feature as the
> contents of the screen are readable from outside the app.
>
> I even tried blanking the screen in the OnPause override but it made no
> difference. The thumbnail must be generated before that method is called.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Re: How to determine what Activities are bound to my Service

2011-12-16 Thread Dianne Hackborn
Yep.  What the platform typically does is have the service publish a
factory interface, with a call to request a new session:

interface IMySession {
void close();
}

interface IMyService {
IMySession makeSession();
}

In makeSession(), check the uid of the caller.

If you want to check signing cert, you can get the packages associated with
the calling uid and check the cert of one of them.  (All packages
associated with the same uid must be signed with the same cert.)

2011/12/16 Harri Smått 

> Hi,
>
> I would go for a simple handshaking mechanism quite likely. You can let
> anyone bind to your service but disallow usage of IPC methods for
> unidentified clients. E.g.
>
> 1. Client connects to service.
> 2. After connection is established, client is required to call, say,
> identify() IPC method which returns a String, Integer, what so ever.
> 3. After receiving this challenge, client has to call identify(result)
> method which gives client a session id.
> 4. For all of the later calls client has to use this session id among with
> the call.
>
> Quite obviously all this depends totally on how much security you're
> required to have within your client-service interaction but some very
> simple handshaking protocol might work surprisingly well if it's kept
> secret.
>
> --
> H
>
> On Dec 16, 2011, at 6:26 PM, Bsweet wrote:
>
> > It is the spoof part that concerns me.
> >
> > Anyone else out there have any creative ideas?
> >
> > Right now I'm considering just checking who is on the top  of the
> > activity stack, but that is hokey and not reliable.
> >
> > On Dec 16, 4:30 am, Mark Murphy  wrote:
> >> On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
> >>
> >>  wrote:
> >>> When you get a bind in your service (your onBind) can you just take
> >>> the intent and get component associated with it?
> >>
> >>> From Intent:
> >>> ComponentNamegetComponent()
> >>> Retrieve the concrete component associated with the intent.
> >>
> >> That should be the recipient, not the sender.
> >>
> >> The only way I know to find out whoboundto you is if you require
> >> that information in an extra, and that can always be spoofed. The
> >> expectation is that you should not care *who*boundto you, merely
> >> whether they had sufficient permissions to do so.
> >>
> >> --
> >> Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >>
> >> _Android Programming Tutorials_ Version 4.1 Available!
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Standard File System Locations for Specific File Types

2011-12-16 Thread Dianne Hackborn
http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String)



On Fri, Dec 16, 2011 at 3:22 PM, Bammer  wrote:

> Are there standard file system locations within Android for the
> following :
>
> - Music
> - Videos ( I believe it may be /sdcard/DCIM)
> - Downloads
> - Documents
>
> i.e. - if I am building an app that downloads these types of files to
> the device, is there a standard location to place each respectively?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Standard File System Locations for Specific File Types

2011-12-16 Thread Bammer
Are there standard file system locations within Android for the
following :

- Music
- Videos ( I believe it may be /sdcard/DCIM)
- Downloads
- Documents

i.e. - if I am building an app that downloads these types of files to
the device, is there a standard location to place each respectively?

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


[android-developers] Re: How to determine what Activities are bound to my Service

2011-12-16 Thread Bsweet
Ultimately what I would like to do is check the signature of the bound
application.

I want to have a mechanism where developers can register their
signatures with my service, then I will check to see if their package/
signature combination matches what I have in my web service.

This is exactly what the Facebook Android application does for Single
Sign On.

I just can't find a clean way to get the calling application.


On Dec 16, 8:46 am, Harri Smått  wrote:
> Hi,
>
> I would go for a simple handshaking mechanism quite likely. You can let 
> anyone bind to yourservicebut disallow usage of IPC methods for unidentified 
> clients. E.g.
>
> 1. Client connects toservice.
> 2. After connection is established, client is required to call, say, 
> identify() IPC method which returns a String, Integer, what so ever.
> 3. After receiving this challenge, client has to call identify(result) method 
> which gives client a session id.
> 4. For all of the later calls client has to use this session id among with 
> the call.
>
> Quite obviously all this depends totally on how much security you're required 
> to have within your client-serviceinteraction but some very simple 
> handshaking protocol might work surprisingly well if it's kept secret.
>
> --
> H
>
> On Dec 16, 2011, at 6:26 PM, Bsweet wrote:
>
>
>
>
>
>
>
> > It is the spoof part that concerns me.
>
> > Anyone else out there have any creative ideas?
>
> > Right now I'm considering just checking who is on the top  of the
> > activity stack, but that is hokey and not reliable.
>
> > On Dec 16, 4:30 am, Mark Murphy  wrote:
> >> On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
>
> >>  wrote:
> >>> When you get a bind in yourservice(your onBind) can you just take
> >>> the intent and get component associated with it?
>
> >>> From Intent:
> >>> ComponentName    getComponent()
> >>> Retrieve the concrete component associated with the intent.
>
> >> That should be the recipient, not the sender.
>
> >> The only way I know to find out whoboundto you is if you require
> >> that information in an extra, and that can always be spoofed. The
> >> expectation is that you should not care *who*boundto you, merely
> >> whether they had sufficient permissions to do so.
>
> >> --
> >> Mark Murphy (a Commons 
> >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> >> _Android Programming Tutorials_ Version 4.1 Available!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Im trying to unlock boot loader on xperia play need help!

2011-12-16 Thread Danny.Zubiate
The "Android Boot loader Interface-file" is the "android_winusb.inf"
that you should have unzipped in step 9.  As mentioned in step 10, you
need to place it in the correct location within your Android SDK
directory that you downloaded and set up in step 8.  In step 13 (the
one you quoted) you must browse to the location in the Android SDK
directory where you replaced the "android_winusb.inf" with the
unzipped version from the SE website and select it.

Unlocking the boot loader is for advanced users only.  This is not
recommended for general consumers.  Some secure items and functions
that come loaded on the device will be removed and/or cease to work
when you unlock the boot loader.  Unlocking the boot loader will void
your warranty.  Please reread the entire warnings section on the
"Unlocking the boot loader" page before proceeding.

Danny Zubiate
Developer Support Engineer
Sony Ericsson Mobile Communications

On Dec 8, 12:12 pm, Quibriya Gulam  wrote:
> I'm following the Sony Ericsson (SE) website to unlock the boot
> loader. but it doesn't seem to work.
> "On your computer, you will be asked for drivers. Point to the
> usb_driver folder where you placed the android_winusb.inf-file, and
> select the Android Boot loader Interface-file."
> Nothing comes up absolutely nothing. (What is the Android Boot loader
> Interface-file and where do i find it?)
> And the drivers I've downloaded from SE website, what do I do with
> them?
>
> When i do put in the "fastboot.exe -i 0x0fce oem unlock
> 0x*..." it says;
> 
>
> Any help you guys

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

2011-12-16 Thread Kristopher Micinski
>> Are there any Android controllers you can get at a place like Best Buy or
>> MicroCenter?
>
>
> What is an "Android controller"?

http://lmgtfy.com/?q=What+is+an+%22Android+controller%22%3F

:-)...

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

2011-12-16 Thread joebowbeer
Here is a bug report and patch to Ant's signjar task:

https://issues.apache.org/bugzilla/show_bug.cgi?id=52344

More related discussion and proposed workarounds at:

http://stackoverflow.com/questions/8036422/android-signing-with-ant

Joe

On Nov 17, 8:27 pm, Nikolay Elenkov  wrote:
> On Fri, Nov 18, 2011 at 1:20 PM, gjs  wrote:
> > Hi,
>
> > Yes I can confirm the same problems happen with jarsigner & jdk 1.7
> > and Windows 7, must use jdk 1.6 or prior.
>
> Here's the related ADT issue:
>
> http://code.google.com/p/android/issues/detail?id=19567

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

2011-12-16 Thread James Black
If you have a database and you need to update the database then you can
delete a file that your activity checks and if it is not there ask for a
password
On Dec 16, 2011 4:26 AM, "suganya lakshmanan" 
wrote:

> I want to create an application  that allows you to require a password to
> be entered in order for new application to be installed on android
> os..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

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

2011-12-16 Thread TreKing
On Fri, Dec 16, 2011 at 11:51 AM, bob  wrote:

> I'd like to work on some decent Android games, but I feel like the touch
> screen is a pretty bad way to control the game character usually.  What
> other options are there?
>

Make a game for a different platform.
Or make a game that is suitable for the platform that you're developing on.

There's a reason most "waggle" Wii games are not ported.


> Are there any Android controllers you can get at a place like Best Buy or
> MicroCenter?
>

What is an "Android controller"?


>  How do they typically talk to an Android device?  Bluetooth?
>

There's a whole section on this in the documentation.

-
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] Re: android application gets killed in stand by mode

2011-12-16 Thread rich friedel
You may be having issues in the onPause() and onResume() callbacks.
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
 

On Friday, December 16, 2011 9:14:48 AM UTC-5, sktniran wrote:
>
> Hi friends,
>
>
> When the device screen blanks or goes to stand by mode (or they turn
> it off) my app gets killed and  sometimes forces closed as well .  but
> the app should keep running and show up as soon as they turn on and
> unlock the screen after it has gone blank. how to get this please help
> me.
>
>
> 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 application gets killed in stand by mode

2011-12-16 Thread rich friedel
You may be having issues in the onPause() and onResume() callbacks.
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] It doesn't open as an android project !!

2011-12-16 Thread J Handal
Hi,

http://code.google.com/p/android-playground/source/browse/trunk/GridLayoutCompatSample/

I checked out in my workspace,I added the file libs/android-support-v4.jar
to my classpath.

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 controllers

2011-12-16 Thread bob
I'd like to work on some decent Android games, but I feel like the
touch screen is a pretty bad way to control the game character
usually.  What other options are there?  Are there any Android
controllers you can get at a place like Best Buy or MicroCenter?  How
do they typically talk to an Android device?  Bluetooth?

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

2011-12-16 Thread rich friedel
I haven't messed with MMS too much but I do know that you need to use the 
RECEIVE_MMS permission in your manifest  
http://developer.android.com/reference/android/Manifest.permission.html#RECEIVE_MMS

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

2011-12-16 Thread Knutsford Software
Sorry -  ignore my last Email. I need isChecked()

Thnaks for pointing me in the right direction

Pam

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

2011-12-16 Thread Knutsford Software


- Original Message - 
From: TreKing

To: android-developers@googlegroups.com
Sent: Friday, December 16, 2011 4:59 PM
Subject: Re: [android-developers] How do you loop through check boxes


On Fri, Dec 16, 2011 at 10:29 AM, Knutsford Software 
 wrote:


It is a straight for then not a foreach?

There is no "foreach" in Java. If you mean the for (Object o : list) 
notation versus a regular for loop ... whatever floats your boat. It should 
be irrelevant.


-





for(Iterator i = FinalallCheckBoxes.iterator(); i.hasNext();) {

   CheckBox cb = i.next();

   if  (cb.isChecked) {


   }



}



Ok the fog has cleared a bit and I have now have the above  but how do you 
test if cb is checked? I thought it was isChecked but it doesn't like it?








Thanks

Pam









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

2011-12-16 Thread TreKing
On Fri, Dec 16, 2011 at 10:29 AM, Knutsford Software <
i...@knutsford-software.co.uk> wrote:

> It is a straight for then not a foreach?


There is no "foreach" in Java. If you mean the for (Object o : list)
notation versus a regular for loop ... whatever floats your boat. It should
be irrelevant.

-
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] Re: Showing DialogFragments crashes ICS

2011-12-16 Thread Flávio Faria
Thanks dude.

Actually, I was expecting a better solution, but It seems there's no
one. I'll do what you suggested.


On Dec 16, 1:16 pm, Streets Of Boston  wrote:
> That happens on Honeycomb as well.
>
> I had this happen when i tried to create/add a fragment while the
> onActivityResult was executing (which is just before an onResume is called).
> I got around this by deferring the creation/adding the fragment until the
> onResume is called: just set a boolean field in the code that would need to
> create this fragment and query this boolean in the onResume and actually
> create the fragment if this boolean is true.

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

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 10:22 AM, Neilz  wrote:
> I'm not sure where I can post the project file.

Web site, DropBox, GitHub repo, ...

> But from a new
> project, all you need is these two files, which is probably just as
> quick to implement:

I will try to take a look at this soonish.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] ICS Recent apps thumbnails

2011-12-16 Thread Mark Murphy
That's an **excellent** question, one you might consider forwarding to
secur...@android.com if you don't get an answer here. I certainly
can't think of a way to control this behavior, but I can certainly see
all sorts of trouble that this could cause.

:: pause while I kick myself for not thinking of this ::

If you think of it, keep me (or the list) apprised of any off-list
suggestions you may get.

On Fri, Dec 16, 2011 at 10:48 AM, Daz  wrote:
> Is there any way to disable the thumbnail (or supply an alternate thumbnail)
> for ICS  & honeycomb recent apps screen?
>
> Sensitive information is being leaked from my app by this feature as the
> contents of the screen are readable from outside the app.
>
> I even tried blanking the screen in the OnPause override but it made no
> difference. The thumbnail must be generated before that method is called.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Re: How to determine what Activities are bound to my Service

2011-12-16 Thread Harri Smått
Hi,

I would go for a simple handshaking mechanism quite likely. You can let anyone 
bind to your service but disallow usage of IPC methods for unidentified 
clients. E.g.

1. Client connects to service.
2. After connection is established, client is required to call, say, identify() 
IPC method which returns a String, Integer, what so ever.
3. After receiving this challenge, client has to call identify(result) method 
which gives client a session id.
4. For all of the later calls client has to use this session id among with the 
call.

Quite obviously all this depends totally on how much security you're required 
to have within your client-service interaction but some very simple handshaking 
protocol might work surprisingly well if it's kept secret.

--
H

On Dec 16, 2011, at 6:26 PM, Bsweet wrote:

> It is the spoof part that concerns me.
> 
> Anyone else out there have any creative ideas?
> 
> Right now I'm considering just checking who is on the top  of the
> activity stack, but that is hokey and not reliable.
> 
> On Dec 16, 4:30 am, Mark Murphy  wrote:
>> On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
>> 
>>  wrote:
>>> When you get a bind in your service (your onBind) can you just take
>>> the intent and get component associated with it?
>> 
>>> From Intent:
>>> ComponentNamegetComponent()
>>> Retrieve the concrete component associated with the intent.
>> 
>> That should be the recipient, not the sender.
>> 
>> The only way I know to find out whoboundto you is if you require
>> that information in an extra, and that can always be spoofed. The
>> expectation is that you should not care *who*boundto you, merely
>> whether they had sufficient permissions to do so.
>> 
>> --
>> Mark Murphy (a Commons 
>> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>> 
>> _Android Programming Tutorials_ Version 4.1 Available!
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Transferring User SD Card Data to New Device With No SD Card

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 11:08 AM, Nikolay Elenkov
 wrote:
> To have them
> show up, you need to explicitly invoke  MediaScannerConnection.scanFile().
> If he reboots the devices the files should show up, since, IIRC, it
> scans on startup.

There are existing Market apps that can do this as well -- I have
SDrescan on my XOOM, for example. I find it handy for when I push
stuff via adb and need the MediaStore updated.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Re: How to determine what Activities are bound to my Service

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 11:26 AM, Bsweet  wrote:
> It is the spoof part that concerns me.

Why do you care *who* connects to you? If it's a licensing thing,
implement an API key system.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] It doesn't open as an android project !

2011-12-16 Thread J Handal
http://code.google.com/p/android-playground/source/browse/trunk/GridLayoutCompatSample/

I checked out in my workspace,I added the file libs/android-support-v4.jar
to my classpath.

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] How to determine what Activities are bound to my Service

2011-12-16 Thread Kristopher Micinski
Wow Mark,

Thanks for pointing that out!  How dumb of me..,

Kris

On Fri, Dec 16, 2011 at 7:30 AM, Mark Murphy  wrote:
> On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
>  wrote:
>> When you get a bind in your service (your onBind) can you just take
>> the intent and get component associated with it?
>>
>> From Intent:
>> ComponentName    getComponent()
>> Retrieve the concrete component associated with the intent.
>
> That should be the recipient, not the sender.
>
> The only way I know to find out who bound to you is if you require
> that information in an extra, and that can always be spoofed. The
> expectation is that you should not care *who* bound to you, merely
> whether they had sufficient permissions to do so.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.1 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-12-16 Thread Nik Bhattacharya
Is there an intent that I can fire that opens the Android Marketplace
to a specific category.  Specifically, I would like to open directly
to the "Widgets" category.

Thanks,

Nik

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

2011-12-16 Thread Knutsford Software


- Original Message - 
From: Lew

To: android-developers@googlegroups.com
Sent: Friday, December 16, 2011 4:21 PM
Subject: Re: [android-developers] How do you loop through check boxes




On Friday, December 16, 2011 7:27:42 AM UTC-8, plw wrote:

- Original Message - 
From: TreKing

To: android-d...@googlegroups.com
Sent: Friday, December 16, 2011 3:16 PM
Subject: Re: [android-developers] How do you loop through check boxes

On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software
 wrote:
How do you loop through all the check boxes in thee onclick to the submit
button so that I can see which ones are set and ehich ones aren't
Save them in a list .
Sorry I don't follow you. How do I do that in the onclick?. I need to loop
throught them and make a list but how do I loop through them?
He meant save them when you create them.  Obviously it's too late to save 
them when you're in the 'onClick()'.



So, during the create loop:


public class YourScreen
{
 private final List allCheckBoxes = new ArrayList();
...


 private void createUI()
 {
   CheckBox cb = ...;
   allCheckBoxes.add(cb);
  ...
 }


 OnClickListener clickHandler = new OnClickListener()
 {
   @Override
   public void onClick(View v)
   {
 for (CheckBox cb : allCheckBoxes)
 {

   ...

 }

   }
 };






Thanks I suddenly realised that was what he meant but I still wasn't sure 
about looping through afterwards. It is a straight for then not a foreach?





Pam


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


[android-developers] Re: How to determine what Activities are bound to my Service

2011-12-16 Thread Bsweet
It is the spoof part that concerns me.

Anyone else out there have any creative ideas?

Right now I'm considering just checking who is on the top  of the
activity stack, but that is hokey and not reliable.

On Dec 16, 4:30 am, Mark Murphy  wrote:
> On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
>
>  wrote:
> > When you get a bind in your service (your onBind) can you just take
> > the intent and get component associated with it?
>
> > From Intent:
> > ComponentName    getComponent()
> > Retrieve the concrete component associated with the intent.
>
> That should be the recipient, not the sender.
>
> The only way I know to find out whoboundto you is if you require
> that information in an extra, and that can always be spoofed. The
> expectation is that you should not care *who*boundto you, merely
> whether they had sufficient permissions to do so.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] How do you loop through check boxes

2011-12-16 Thread Lew


On Friday, December 16, 2011 7:27:42 AM UTC-8, plw wrote:
>
>
> - Original Message - 
> From: TreKing
> To: android-d...@googlegroups.com
> Sent: Friday, December 16, 2011 3:16 PM
> Subject: Re: [android-developers] How do you loop through check boxes
>
>
> On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software 
>  wrote:
>
> How do you loop through all the check boxes in thee onclick to the submit 
> button so that I can see which ones are set and ehich ones aren't
>
> Save them in a list .
>
> Sorry I don't follow you. How do I do that in the onclick?. I need to loop 
> throught them and make a list but how do I loop through them?
>
> He meant save them when you create them.  Obviously it's too late to save 
them when you're in the 'onClick()'.

So, during the create loop:

public class YourScreen
{
  private final List allCheckBoxes = new ArrayList();
...

  private void createUI()
  {
CheckBox cb = ...;
allCheckBoxes.add(cb);
   ...
  }

  OnClickListener clickHandler = new OnClickListener()
  {
@Override
public void onClick(View v) 
{
  for (CheckBox cb : allCheckBoxes)
  {
...
  }
}
  };

Do please read the Java coding conventions so your variable names and 
indentation are compliant.

-- 
Lew

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

2011-12-16 Thread yohji narisawa
Hi everyone.
I want to know how to use AVRCP(META DATA transeport) on Android.
IF you know the method, do you let me know and get?
-- 
<<< -=-=-=-=-=-=-=-=-=-=-=-=-=- >>>

NAME : YOHJI NARISAWA
MAIL : youthfulda...@gmail.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


Re: [android-developers] Transferring User SD Card Data to New Device With No SD Card

2011-12-16 Thread Nikolay Elenkov
On Sat, Dec 17, 2011 at 12:44 AM, TreKing  wrote:

> The user said he tried manually copying my app's folder to his computer and
> then to the internal storage on the Gaxus, but it doesn't pick it up.
> When he creates backup files on the new device, my app reports that it
> succeeds, but the folder and data do not appear in the directory he has
> access to, where it normally would with an ordinary SD card. He tried
> searching and can't find my folder anywhere in the mounted drive.

I haven't checked but it probably works the same way as in Honeycomb:
since external storage is used over MTP, what is shown are not the actual
files, but the contents of the Android media store DB. To have them
show up, you need to explicitly invoke  MediaScannerConnection.scanFile().
If he reboots the devices the files should show up, since, IIRC, it
scans on startup. There is an example here:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.html

>
> So apparently there's storage he has access to but it's not where the
> external storage api points to?

'External' storage is under /mnt/sdcard so it shouldn't be different from
previous versions.

> Anyone else run into this yet? Any idea how I can get this guy to get his
> old SD card data on to the new Nexus device?

If he reboots, the files should show up. You might also want to update your
app to do a scan before looking for backups.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alternative (offline) implementation of Geocoder backend service

2011-12-16 Thread Chris Ostler
James Black  wrote:
> I haven't tried it, but one solution is to look at how they use Nominim,
> which is one api for openstreet
>
> https://gitorious.org/callerid-for-android/mainline/commit/ffe7607134085fc6ea1b2ce425f8ac26cbc2c3c6/diffs
>
> This link shows an example of using the built-in Android geocoder, but if
> not available then use the other option.

That's the same backend that I was planning to use - I was just hoping
that it would be possible to implement it at the service level so that
it would be available system wide, and not just to a single app.  I
don't want to write an entire app - just allow existing apps to work
offline.

It will be nice to have an existing implementation to reference - if
only I can figure out how to plumb it in, now.

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

2011-12-16 Thread Masahiro Minowa
Thanks!!

On Fri, Dec 16, 2011 at 6:39 AM, Kristopher Micinski  wrote:

> http://opencv.willowgarage.com/wiki/
>
> There's a port for Android.
>
> Kris
>
> On Tue, Dec 13, 2011 at 11:24 AM, Masa  wrote:
> > hi,
> >
> > I'm going to develop image processing app in Android.
> >
> > I wanna recognize leaf picture taken by android camera.
> >
> > what library can I use?
> > so if you have any information or knowledge about image processing.
> > please tell me about that.
> >
> > 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
>

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

2011-12-16 Thread Daz
Is there any way to disable the thumbnail (or supply an alternate 
thumbnail) for ICS  & honeycomb recent apps screen? 

Sensitive information is being leaked from my app by this feature as the 
contents of the screen are readable from outside the app.

I even tried blanking the screen in the OnPause override but it made no 
difference. The thumbnail must be generated before that method is called.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Slow scrolling in Date/TimePicker using Holo theme

2011-12-16 Thread Matt H
Hi Dirk,

I had the same problem (noticed it yesterday, too, coincidentally!).
The issue is that the ScrollView is intercepting and stealing the
touch events once your finger moves outside of the Date/Time Picker
controls.

To work around this, I created sub classes of Date/TimePicker which
prevent the parent from stealing events after the initial touch down
(see below). If you use those in your layout XML instead, you should
find the problem goes away.

Hope that is useful!

Matt.


import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.ViewParent;
import android.widget.DatePicker;

public class CustomDatePicker extends DatePicker
{
public CustomDatePicker(Context context, AttributeSet attrs, int
defStyle)
{
super(context, attrs, defStyle);
}

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

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

@Override
public boolean onInterceptTouchEvent(MotionEvent ev)
{
/* Prevent parent controls from stealing our events once we've
gotten a touch down */
if (ev.getActionMasked() == MotionEvent.ACTION_DOWN)
{
ViewParent p = getParent();
if (p != null)
p.requestDisallowInterceptTouchEvent(true);
}

return false;
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Transferring User SD Card Data to New Device With No SD Card

2011-12-16 Thread TreKing
Just got my first support email from a Galaxy Nexus user who wants to
transfer his data to his shiny new device.

The short of it: *how do I get a user's SD card data on to the Gaxus in the
location that my app will detect as "external storage"?*

The long of it:
Normally this works right out of the box: my app backs up to the SD
automatically using the Android external storage API.
If they put the SD card into a new device, the app looks for it if there's
no local data and restores the backup files, providing a seamless
transition to a new device (or re-install).
This is apparently not working so hot on the Gaxus with no SD card support.

There was a recent thread here about how the "external storage" would not
always be the SD card, with the workaround being to give the user the
option to manually specify the SD card path - but there is no SD card at
all in this case, so it's a little different.
I've Googled around and found the device specs and some information on how
it handles mounting and its internal storage, but I'm not completely clear
on why this doesn't work.
And since I don't have the device to see the issue first hand, I'm hoping
someone here does and can shed some light.

The user said he tried manually copying my app's folder to his computer and
then to the internal storage on the Gaxus, but it doesn't pick it up.
When he creates backup files on the new device, my app reports that it
succeeds, but the folder and data do not appear in the directory he has
access to, where it normally would with an ordinary SD card. He tried
searching and can't find my folder anywhere in the mounted drive.

So apparently there's storage he has access to but it's not where the
external storage api points to?
Anyone else run into this yet? Any idea how I can get this guy to get his
old SD card data on to the new Nexus device?

I'm probably missing something obvious - I'm having trouble believing they
would make a device - let alone the the flagship ICS device - that would
not allow users to transfer over their old SD card data.

Thanks.

-
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] Why do my posts never show?

2011-12-16 Thread Daz
Why do my posts never show? 

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

2011-12-16 Thread Arno den Hond
I am trying to make my MediaShortcut app http://code.google.com/p/image-shortcut
create launcher icons whose size depends on the density of the screen.
So first i get the screen's density using
http://developer.android.com/reference/android/util/DisplayMetrics.html#densityDpi
and then resize the image according to this table
https://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size
This seems to work fine on most of my devices but on my Asus slider
(and a friends transformer) the icon is significantly smaller than the
other icons on the home screen.
Does anybody have any idea why this could be? 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] How do you loop through check boxes

2011-12-16 Thread Knutsford Software


- Original Message - 
From: TreKing

To: android-developers@googlegroups.com
Sent: Friday, December 16, 2011 3:16 PM
Subject: Re: [android-developers] How do you loop through check boxes


On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software 
 wrote:


How do you loop through all the check boxes in thee onclick to the submit 
button so that I can see which ones are set and ehich ones aren't


Save them in a list .





Sorry I don't follow you. How do I do that in the onclick?. I need to loop 
throught them and make a list but how do I loop through them?






Pam 


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


[android-developers] Re: Passing Compressed bitmap from C to Android

2011-12-16 Thread Streets Of Boston
You'd have to show more of the code.
Where does *j*bitmap come from?

But at least you need to copy the pixels (pixel by pixel) into the buffer 
of 'bitmap' after you locked it and make sure that pixels copied into there 
are in the correct format (RGB_565).

Look at one of the examples in the API Demoes of the Android SDK.

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

2011-12-16 Thread Neilz
I'm not sure where I can post the project file. But from a new
project, all you need is these two files, which is probably just as
quick to implement:

// Main Java file

package com.android.test;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class SampleWebviewActivity extends Activity {

WebView webview;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

webview = (WebView) findViewById(R.id.webview);

final String mimeType = "text/html";
final String encoding = "utf-8";

webview.loadData("3O2Orange T-Mobile Virgin",
mimeType, encoding);
}
}


// XML layout


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



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

2011-12-16 Thread Streets Of Boston
Don't worry, we've all been there at least once :-)

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

2011-12-16 Thread TreKing
On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software <
i...@knutsford-software.co.uk> wrote:

> How do you loop through all the check boxes in thee onclick to the submit
> button so that I can see which ones are set and ehich ones aren't


Save them in a list .

-
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] Re: Showing DialogFragments crashes ICS

2011-12-16 Thread Streets Of Boston
That happens on Honeycomb as well.

I had this happen when i tried to create/add a fragment while the 
onActivityResult was executing (which is just before an onResume is called).
I got around this by deferring the creation/adding the fragment until the 
onResume is called: just set a boolean field in the code that would need to 
create this fragment and query this boolean in the onResume and actually 
create the fragment if this boolean is true.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Canvas.drawCircle() causes OpenGLRenderer to run out of memory

2011-12-16 Thread Christopher Golden
Great news!  I really want to give the user the option to see the
circles,
and it sounds like upgrading to 4.0 will allow this.  I'll wait for
said
upgrade before implementing it rather than use a software layer, as
the
speed loss when rendering in software is just too great.

To answer the other question as to how many times I could get it to
redraw
before it ran out of memory, on the Galaxy Tab 10.1 it worked three
times,
then failed on the fourth and subsequent times.

Anyway, good to hear that this is fixed in 4.0.  Thanks again.


On Dec 15, 8:52 pm, Romain Guy  wrote:
> Circles are currently drawn as texture, so every time you create
> acircle with a different radius, the OpenGL pipeline generates a
> newtexture. It should however not run out of memory since the
> circlestextures are kept in a fixed size cache. You should
> callsetLayerType(View.LAYER_TYPE_SOFTWARE, null) on your View to
> workaround this problem.
>
> Update: I checked and this out of memory error is a bug in 3.2 that we
> fixed in 4.0.
> On Thu, Dec 15, 2011 at 4:31 PM, Christopher Van Kirk
>
>
>
>
>
>
>
>
>
>  wrote:
> > How many times is 'a few'?
>
> > On 12/15/2011 12:45 AM, Christopher Golden wrote:
>
> >> In the course of developing an Android application, I'm finding a need
> >> to draw several unfilled concentric circles centered on an arbitrary
> >> point, enough that some of them are only partly visible on the
> >> display. However, this does not appear to work with hardware
> >> acceleration. My test rig is a stock Samsung Galaxy Tab 10.1 running
> >> Android 3.2.
>
> >> The following code comes from a test subclass of View I wrote to
> >> isolate the issue:
>
> >> private Paint paint = new Paint();
>
> >> private int count = 0;
>
> >> private static final int[] COLORS = { 0x, 0xff00ff00,
> >> 0xffff, 0x00ff };
>
> >> public TestCircles(Context context) {
> >>     super(context);
> >>     paint.setStrokeWidth(1.0f);
> >>     paint.setStyle(Paint.Style.STROKE);
> >> }
>
> >> public TestCircles(Context context, AttributeSet attributes) {
> >>     super(context, attributes);
> >>     paint.setStrokeWidth(1.0f);
> >>     paint.setStyle(Paint.Style.STROKE);
> >> }
>
> >> public boolean onTouchEvent(MotionEvent e) {
> >>     if (e.getAction() == MotionEvent.ACTION_DOWN)
> >>         invalidate();
> >>     return true;
> >> }
>
> >> protected void onDraw(Canvas canvas) {
>
> >>     // Pick the color to use, cycling through the colors list
> >> repeatedly, so that we can
> >>     // see the different redraws.
> >>     paint.setColor(COLORS[count++]);
> >>     count %= COLORS.length;
>
> >>     // Set up the parameters for the circles; they will be centered at
> >> the center of the
> >>     // canvas and have a maximum radius equal to the distance between
> >> a canvas corner
> >>     // point and its center.
> >>     final float x = canvas.getWidth() / 2f;
> >>     final float y = canvas.getHeight() / 2f;
> >>     final float maxRadius = (float) Math.sqrt((x * x) + (y * y));
>
> >>     // Paint the rings until the rings are too large to see.
> >>     for (float radius = 20; radius<  maxRadius;
> >>             radius += 20)
> >>         canvas.drawCircle(x, y, radius, paint);
> >> }
>
> >> I am running TestCircles as the only View in an Activity, laying it
> >> out to fill the available width and height (i.e. it is nearly full-
> >> screen). I can tap on the display (triggering redraws) only a few
> >> times before the redraws no longer occur (i.e. the circles' color
> >> doesn't change). Actually, the onDraw() code is still running in
> >> response to each tap -- as proven with diagnostic messages -- but
> >> nothing changes onscreen.
>
> >> When onDraw() first starts to fail to redraw, the debug log includes
> >> the following entry, once for every call to onDraw():
>
> >>     E/OpenGLRenderer(21867): OpenGLRenderer is out of memory!
>
> >> If I turn off hardware acceleration in the manifest, these problems go
> >> away -- not surprising since clearly OpenGL is having problems -- and
> >> actually it is a good deal faster than the few times it actually works
> >> under hardware acceleration.
>
> >> My questions are:
>
> >> First, am I misusing Canvas, or is this a bug, or both? Is Android
> >> allocating large bitmaps under the hood to draw these circles? It
> >> doesn't seem like this should be this challenging to OpenGL, but I'm
> >> new to hardware accelerated app development.
>
> >> Second, what's a good alternative way to draw large unfilled circles
> >> that have portions extending out of the clipping region of the Canvas?
> >> Losing hardware acceleration is not an option.
>
> >> 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

[android-developers] Re: how to use mvc architecture in android application development.

2011-12-16 Thread Streets Of Boston
Don't get hung up on 'pure' architectures/frameworks. Android supports 
somewhat of a MVC framework by having plain objects (M), Views and 
Fragments (V), and Activities (C and a bit of V if you're not using 
Fragments). Go to http://developer.android.com to learn more.

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

2011-12-16 Thread Knutsford Software


I have written several check boxes to the screen plus an update button





for(int x = 0 ; x < Tempstr.length; x++){

String[] TempTempstr = Tempstr[x].split("@");

CheckBox cb = new CheckBox(v.getContext());

if (TempTempstr[4].equals("1")) {

cb.setChecked(true);

}


cb.setText(TempTempstr[0] + ", " + TempTempstr[1] + ", " + TempTempstr[2] + ", 
" + TempTempstr[3] + ", " + TempTempstr[4]);


LinearLayout.addView(cb); 






Button Update = new Button(v.getContext());

Update.setText("Update vacancies list");

LinearLayout.addView(Update); 

Update.setOnClickListener(new OnClickListener() {


public void onClick(View v) {













How do you loop through all the check boxes in thee onclick to the submit 
button so that I can see which ones are set and ehich ones aren't







Thanks

Pam

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

2011-12-16 Thread skink


chowdary nani wrote:
> Hi All,
> I need help on Image zoom and Image rotate in android with in the same
> screen
> I am developing using below code.
>
> Here any one i.e, either zoom or image rotation is getting well but when
> trying to use both getting error

error?

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

2011-12-16 Thread skink


chowdary nani wrote:
> Hi All,
> I need help on Image zoom and Image rotate in android with in the same
> screen
> I am developing using below code.
>
> Here any one i.e, either zoom or image rotation is getting well but when
> trying to use both getting error

error?

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

2011-12-16 Thread TreKing
On Fri, Dec 16, 2011 at 8:14 AM, sktniran wrote:

> but the app should keep running
>

No, it shouldn't.

-
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 application gets killed in stand by mode

2011-12-16 Thread Harri Smått
Hi,

If there's a forced close from time to time, doesn't it indicate your code 
crashes during ramp down of your application for sleep mode, does it? Running 
application ought to be running once user returns from sleep mode without any 
extra work on your side. But for restarting your phone - do you really want it 
to be first thing the user sees?

--
H

On Dec 16, 2011, at 4:14 PM, sktniran wrote:

> Hi friends,
> 
> 
> When the device screen blanks or goes to stand by mode (or they turn
> it off) my app gets killed and  sometimes forces closed as well .  but
> the app should keep running and show up as soon as they turn on and
> unlock the screen after it has gone blank. how to get this please help
> 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] Re: Strange webview problem

2011-12-16 Thread Neilz
Will do.

On Dec 16, 2:18 pm, Mark Murphy  wrote:
> On Fri, Dec 16, 2011 at 9:11 AM, Neilz  wrote:
> > If anyone can shed any light on this I'll buy you a beer. It will have
> > to be in London though :)
>
> Can you create a sample project that demonstrates the issue and upload
> it somewhere?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] Re: How to ensure my root Activity is never duplicated?

2011-12-16 Thread eehouse
Thanks -- but I'm not sure what you're suggesting.  I don't see a
startActivity(Activity,Class) in the docs.  If I'm missing it or the
signature's different, when are you suggesting I call it?  After the
OS launches a second instance of my root Activity on top of the
browser?  I could see this working if I could transmit the Intent that
second instance is passed back to the first instance *and* if I could
then force that instance to come to the front (on top of the task the
browser's in that the user's interacting with).  But I've tried that
already -- calling into the first instance via private methods -- but
am stuck on how to bring it to the front.  Android doesn't want me to
do that, so I keep thinking there has to be an easier way to do this,
one that the APIs anticipate.

Thanks,

--Eric

On Dec 14, 9:17 pm, damodhar meshram 
wrote:
> when u call second activity from first one please finish first then call
> second one
>
> used following code :
>
> startactivity(this,yourclassname.class);
> finish();
>
>
>
> On Thu, Dec 15, 2011 at 10:42 AM, eehouse  wrote:
> > I'm writing a board game that follows a common pattern: main Activity
> > is a list of games, and if you tap on one it opens into a second
> > Activity in which the game is played.  You close one game to play
> > another.  Games can also be launched over the network, which happens
> > when the user goes to a .php page in the browser that redirects to a
> > custom URL scheme for which one of my Activities has an intent-filter.
>
> > I want to ensure three things
>
> > * If user opens the app, then launches a game into an Activity on top
> >  of the list Activity, then taps the home button and launches the app
> >  again, he'll be taken back to the second Activity with the game in
> >  progress, just as it was.  (This is standard behavior on Android.)
>
> > * If he browses to the .php page and triggers a new game, the app will
> >  display the new game in its own Activity on top of the list
> >  Activity, first closing any other game Activity that might be open.
>
> > * If this happens while the app is already running, whether in the
> >  same task as the browser or not, the new game will be launched on
> >  top of the existing game list Activity -- no new game list Activity
> >  will be created.
>
> > This last one's the problem.  The way things are working now, with the
> > game list Activity's launchMode set to singleTop, if the game's
> > already running in a different task and the user browses to the .php
> > page that triggers new game creation, a second instance of the game
> > list Activity is created with the new game Activity on top of it.
> > This is fixed if I make launchMode be singleTask, but then my first
> > goal fails: If the user hits the home button while a game is open then
> > relaunches the app it comes back not to the existing game Activity but
> > to a new root game list Activity.
>
> > I'm beginning to work toward a solution that has the root Activity
> > registering with a static class so that I can tell it's running (and
> > can have it finish() if the OS insists on launching a duplicate), and
> > the
> > child game Activities registering with their parent so the parent can
> > kill them if it needs to.  But it's going to be pretty complex, and
> > probably racy.  It seems this scenario should have been anticipated,
> > that there's probably a simple way to do it using launch modes and
> > Intent flags I'm not finding.  Suggestions?
>
> > Thanks,
>
> > --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
>
> --
> Thanks and Regards,
> Damodhar Meshram
> Sr Android Developer

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

2011-12-16 Thread Raul Ruiz
Well we have same trouble. I have UA-767PBT-C device too and with HDP
Demo doesnt connect.

Im doing a program that receive ACL_CONNECT from device and opens a
channel.
In the program, Health service is use by android BT and the link is
connected but device is in CONNECTING_STATE and then drops down.
Using a BT sniffer like HCIDUMP, i watch that android BT doest send
CONNECT RSP to device and I think that this is the problem.

If you want some help tell me i will continue working in this.

PD: Me too check this in linux, and it works finelly.I think that dbus
library is different.

On 16 dic, 12:29, jfernandez 
wrote:
> On 16 dic, 11:31, Raul Ruiz  wrote:
>
> > Hi  Jorge,
>
> Hi Raul,
>
>
>
> > What device are you using? I have a same problem using Nonin 9560BT
> > pulseoximeter. It conects and disconnects and any data had received in
> > the Android.
>
> I'm working with a board which is able to simulate several biomedical
> devices.
>
> On the other hand, I have a real device (blood pressure monitor
> UA-767PBT-C). In that case, the device opens the HDP channel
> automatically with the smartphone which acts as sink. But the truth is
> that I don't see anything in the LogCat related to this channel.
> However, if I try opening the connection channel from the HDP Demo
> Application, I obtain the same error.
>
> Anyway, I have checked all of this in a Linux laptop using the same
> BlueZ stack that we have in Android and everything works fine.
>
>
>
> > Do you have any solution?
>
> Not yet. I'm expecting some feedback.
>
>
>
>
>
>
>
>
>
> > Thanks
>
> > On Dec 15, 6:30 pm, jfernandez 
> > wrote:
>
> > > Hi all,
>
> > > I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0
> > > Ice Cream Sandwich) in my Android smartphone. When I have registered
> > > the application in order to receive data, and I have paired the
> > > biomedical device with the smartphone, I try to open the channel
> > > connection and I can see that the device starts sending data to the
> > > smartphone. However, the smartphone is unable to open the channel
> > > connectionHDP.
>
> > > At the end of this message you can see the output obtained in the
> > > LogCat.
>
> > > Has anybody achieved to run successfully this sample about the use of
> > > theBluetoothHealth Profile API? Any ideas?
>
> > > Thanks. Regards.
>
> > > [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html
>
> > > This is the log that I obtain:
>
> > > 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel()
> > > 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE:
> > > 00:80:25:14:A1:BC: 0 -> 1
> > > 12-15 16:40:55.169: D/ConnectivityService(147):
> > > handleInetConditionHoldEnd: net=1, condition=0, published condition=0
> > > 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
> > > changed: 00:80:25:14:A1:BC property: Connected value: true
> > > 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
> > > devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
> > > bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
> > > 12-15 16:41:00.034: E/BluetoothService.cpp(147):
> > > getChannelApplicationNative
> > > 12-15 16:41:00.044: E/bluetooth_common.cpp(147):
> > > dbus_func_args_timeout_valist: D-Bus error in Acquire:
> > > org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed)
> > > 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
> > > obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
> > > chan3115
> > > 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative
> > > 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
> > > onHealthDeviceConnectionResult: D-Bus error:
> > > org.bluez.Error.HealthError (Mdl is not created)
> > > 12-15 16:41:00.074: D/BluetoothEventLoop(147):
> > > onHealthDeviceConnectionResult 2 6001
> > > 12-15 16:41:00.214: D/BluetoothEventLoop(147):
> > > onHealthDeviceConnectionResult 2 6000
> > > 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of
> > > Property is: MainChannel Value:/org/bluez/278/hci0/
> > > dev_00_80_25_14_A1_BC/chan3115

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

2011-12-16 Thread chowdary nani
I already tried.But no use.Please help .

On Fri, Dec 16, 2011 at 7:33 PM, New Developer  wrote:

>  Look at the setRotationX()  setRotationY()  and  setScaleX()  setScaleY()
> They sure make the work much easier
>
>
>
> On 12/16/2011 08:59 AM, chowdary nani wrote:
>
>
> Hi All,
> I need help on Image zoom and Image rotate in android with in the same
> screen
> I am developing using below code.
>
>  public class ImageRotateActivity extends Activity {
>  /** Called when the activity is first created. */
>  private ImageView img;
>  private Button rotate;
>  private Button zoom;
>  float degrees =0;
>
>  @Override
>  protected void onCreate(Bundle savedInstanceState) {
>  super.onCreate(savedInstanceState);
>
>  zoom=(Button)findViewById(R.id.button2);
>  zoom.setOnClickListener(new OnClickListener() {
>   public void onClick(View v) {
>  // TODO Auto-generated method stub
>
>   setContentView(new Zoom(this));
>   }
> });
>   rotate = (Button) findViewById(R.id.button1);
>  rotate.setOnClickListener(new OnClickListener() {
>
>  public void onClick(View v) {
>  // TODO Auto-generated method stub
>  setContentView(R.layout.main);
>  make(degrees);
>  }
>  });
>
>  }
>
>
>
>  public void make(float x){
>
> android.util.Log.i("INSIDE MAKE", "inside make");
>
> LinearLayout linLayout = new LinearLayout(this);
>
>
>
> // load the origial BitMap (500 x 500 px)
>
>  Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(),
>
>R.drawable.honeycomb);
>
>
>
> int width = bitmapOrg.getWidth();
>
> int height = bitmapOrg.getHeight();
>
> int newWidth = 200;
>
> int newHeight = 200;
>
>
>
> // calculate the scale - in this case = 0.4f
>
> float scaleWidth = ((float) newWidth) / width;
>
> float scaleHeight = ((float) newHeight) / height;
>
>
>
> // createa matrix for the manipulation
>
> Matrix matrix = new Matrix();
>
>  // resize the bit map
>
> matrix.postScale(scaleWidth, scaleHeight);
>
> // rotate the Bitmap
>
> matrix.postRotate(x);
>
>
>
> // recreate the new Bitmap
>
> Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0,
>
>   width, height, matrix, true);
>
>
>
> // make a Drawable from Bitmap to allow to set the BitMap
>
> // to the ImageView, ImageButton or what ever
>
> BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);
>
>
>
> ImageView imageView = new ImageView(this);
>
>
>
> // set the Drawable on the ImageView
>
> imageView.setImageDrawable(bmd);
>
>
>
> // center the Image
>
> imageView.setScaleType(ScaleType.CENTER);
>
>
>
> // add ImageView to the Layout
>
>  linLayout.addView(imageView,
>
>   new LinearLayout.LayoutParams(
>
>   LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT
>
> )
>
> );
>
>
>
> // set LinearLayout as ContentView
>
> setContentView(linLayout);
>
> android.util.Log.i("GOING OUT MAKE", "going out make");
>
> }
>
>
>
> public boolean onKeyDown(int keyCode, KeyEvent event) {
>
>
>
>  if(keyCode==KeyEvent.KEYCODE_DPAD_UP)// rotate clockwise
>
>  // zoomControler+=10;
>
> {
>
>  degrees=degrees+10;
>
>  make(degrees);
>
>  //make(10);
>
>  android.util.Log.i("ONE","rotating clockwise by
> "+String.valueOf(degrees)+" degrees");
>
>  android.util.Log.i("DEGREES","current value
> "+String.valueOf(degrees)+" degrees");
>
> }
>
>
>
>
>
>  if(keyCode==KeyEvent.KEYCODE_DPAD_DOWN) // rotate anti-clockwise
>
>  {
>
>   degrees=degrees-10;
>
>  make(degrees);
>
>  //make(10);
>
>  android.util.Log.i("TWO","rotating anti-clockwise by
> "+String.valueOf(degrees)+" degrees");
>
>  android.util.Log.i("DEGREES","current value
> "+String.valueOf(degrees)+" degrees");
>
>
>
>  }
>
>
>
>  // invalidate();
>
>  return true;
>
> }
>
>  }
>
>
>  public class Zoom extends View {
>  private Drawable image;
>  private ImageView img;
>  float degrees = 0;
>
>  private int zoomControler = 20;
>
>  public Zoom(Context context) {
>  super(context);
>  image = context.getResources().getDrawable(R.drawable.honeycomb);
>  setFocusable(true);
>
>  }
>
>   @Override
>  protected void onDraw(Canvas canvas) {
>  // TODO Auto-generated method stub
>  super.onDraw(canvas);
>  // here u can control the width and height of the images this
>  // line is very important
>  image.setBounds((getWidth() / 2) - zoomControler, (getHeight() / 2)
>  - zoomControler, (getWidth() / 2) + zoomControler,
>  (getHeight() / 2) + zoomControler);
>  image.draw(canvas);
>  }
>
>   @Override
>  public boolean onKeyD

Re: [android-developers] Query

2011-12-16 Thread Meghal Adesra
@James Black

thanks for help...


-- 

Regards
Meghal Adesra

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

2011-12-16 Thread Mark Murphy
On Fri, Dec 16, 2011 at 9:11 AM, Neilz  wrote:
> If anyone can shed any light on this I'll buy you a beer. It will have
> to be in London though :)

Can you create a sample project that demonstrates the issue and upload
it somewhere?

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] android application gets killed in stand by mode

2011-12-16 Thread sktniran
Hi friends,


When the device screen blanks or goes to stand by mode (or they turn
it off) my app gets killed and  sometimes forces closed as well .  but
the app should keep running and show up as soon as they turn on and
unlock the screen after it has gone blank. how to get this please help
me.




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: Strange webview problem

2011-12-16 Thread Neilz
If anyone can shed any light on this I'll buy you a beer. It will have
to be in London though :)

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

2011-12-16 Thread New Developer

Look at the setRotationX()  setRotationY()  and  setScaleX()  setScaleY()
They sure make the work much easier


On 12/16/2011 08:59 AM, chowdary nani wrote:


Hi All,
I need help on Image zoom and Image rotate in android with in the same 
screen

I am developing using below code.

public class ImageRotateActivity extends Activity {
/** Called when the activity is first created. */
private ImageView img;
private Button rotate;
private Button zoom;
float degrees =0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

zoom=(Button)findViewById(R.id.button2);
zoom.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub

setContentView(new Zoom(this));
}
});
rotate = (Button) findViewById(R.id.button1);
rotate.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// TODO Auto-generated method stub
setContentView(R.layout.main);
make(degrees);
}
});

}


public void make(float x){
android.util.Log.i("INSIDE MAKE", "inside make");
LinearLayout linLayout = new LinearLayout(this);
// load the origial BitMap (500 x 500 px)
Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(),
   R.drawable.honeycomb);
int width = bitmapOrg.getWidth();
int height = bitmapOrg.getHeight();
int newWidth = 200;
int newHeight = 200;
// calculate the scale - in this case = 0.4f
float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;
// createa matrix for the manipulation
Matrix matrix = new Matrix();
// resize the bit map
matrix.postScale(scaleWidth, scaleHeight);
// rotate the Bitmap
matrix.postRotate(x);
// recreate the new Bitmap
Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0,
  width, height, matrix, true);
// make a Drawable from Bitmap to allow to set the BitMap
// to the ImageView, ImageButton or what ever
BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);
ImageView imageView = new ImageView(this);
// set the Drawable on the ImageView
imageView.setImageDrawable(bmd);
// center the Image
imageView.setScaleType(ScaleType.CENTER);
// add ImageView to the Layout
linLayout.addView(imageView,
  new LinearLayout.LayoutParams(
  LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT
)
);
// set LinearLayout as ContentView
setContentView(linLayout);
android.util.Log.i("GOING OUT MAKE", "going out make");
}

public boolean onKeyDown(int keyCode, KeyEvent event) {
 if(keyCode==KeyEvent.KEYCODE_DPAD_UP)// rotate clockwise
 // zoomControler+=10;
{
 degrees=degrees+10;
make(degrees);
 //make(10);
 android.util.Log.i("ONE","rotating clockwise by 
"+String.valueOf(degrees)+" degrees");
 android.util.Log.i("DEGREES","current value 
"+String.valueOf(degrees)+" degrees");

}
 if(keyCode==KeyEvent.KEYCODE_DPAD_DOWN) // rotate anti-clockwise
 {
 degrees=degrees-10;
 make(degrees);
 //make(10);
 android.util.Log.i("TWO","rotating anti-clockwise by 
"+String.valueOf(degrees)+" degrees");
 android.util.Log.i("DEGREES","current value 
"+String.valueOf(degrees)+" degrees");

 }
// invalidate();
 return true;
}
}
public class Zoom extends View {
private Drawable image;
private ImageView img;
float degrees = 0;

private int zoomControler = 20;

public Zoom(Context context) {
super(context);
image = context.getResources().getDrawable(R.drawable.honeycomb);
setFocusable(true);

}

@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
// here u can control the width and height of the images this
// line is very important
image.setBounds((getWidth() / 2) - zoomControler, (getHeight() / 2)
- zoomControler, (getWidth() / 2) + zoomControler,
(getHeight() / 2) + zoomControler);
image.draw(canvas);
}

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {

if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT)// zoom in
zoomControler += 10;
if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) // zoom out
zoomControler -= 10;
if (zoomControler < 10)
zoomControler = 10;

invalidate();
return true;
}
}




Here any one i.e, either zoom or image rotation is getting well but 
when trying to use both getting error


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

[android-developers] Help on Image Zoom and Rotate

2011-12-16 Thread chowdary nani
Hi All,
I need help on Image zoom and Image rotate in android with in the same
screen
I am developing using below code.

public class ImageRotateActivity extends Activity {
/** Called when the activity is first created. */
private ImageView img;
private Button rotate;
private Button zoom;
 float degrees =0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

zoom=(Button)findViewById(R.id.button2);
zoom.setOnClickListener(new OnClickListener() {
 public void onClick(View v) {
// TODO Auto-generated method stub

 setContentView(new Zoom(this));
 }
});
 rotate = (Button) findViewById(R.id.button1);
rotate.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// TODO Auto-generated method stub
setContentView(R.layout.main);
make(degrees);
}
});

}



public void make(float x){

android.util.Log.i("INSIDE MAKE", "inside make");

LinearLayout linLayout = new LinearLayout(this);



// load the origial BitMap (500 x 500 px)

Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(),

   R.drawable.honeycomb);



int width = bitmapOrg.getWidth();

int height = bitmapOrg.getHeight();

int newWidth = 200;

int newHeight = 200;



// calculate the scale - in this case = 0.4f

float scaleWidth = ((float) newWidth) / width;

float scaleHeight = ((float) newHeight) / height;



// createa matrix for the manipulation

Matrix matrix = new Matrix();

// resize the bit map

matrix.postScale(scaleWidth, scaleHeight);

// rotate the Bitmap

matrix.postRotate(x);



// recreate the new Bitmap

Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0,

  width, height, matrix, true);



// make a Drawable from Bitmap to allow to set the BitMap

// to the ImageView, ImageButton or what ever

BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);



ImageView imageView = new ImageView(this);



// set the Drawable on the ImageView

imageView.setImageDrawable(bmd);



// center the Image

imageView.setScaleType(ScaleType.CENTER);



// add ImageView to the Layout

linLayout.addView(imageView,

  new LinearLayout.LayoutParams(

  LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT

)

);



// set LinearLayout as ContentView

setContentView(linLayout);

android.util.Log.i("GOING OUT MAKE", "going out make");

}



public boolean onKeyDown(int keyCode, KeyEvent event) {



 if(keyCode==KeyEvent.KEYCODE_DPAD_UP)// rotate clockwise

 // zoomControler+=10;

{

 degrees=degrees+10;

make(degrees);

 //make(10);

 android.util.Log.i("ONE","rotating clockwise by
"+String.valueOf(degrees)+" degrees");

 android.util.Log.i("DEGREES","current value
"+String.valueOf(degrees)+" degrees");

}





 if(keyCode==KeyEvent.KEYCODE_DPAD_DOWN) // rotate anti-clockwise

 {

 degrees=degrees-10;

 make(degrees);

 //make(10);

 android.util.Log.i("TWO","rotating anti-clockwise by
"+String.valueOf(degrees)+" degrees");

 android.util.Log.i("DEGREES","current value
"+String.valueOf(degrees)+" degrees");



 }



// invalidate();

 return true;

}

}


public class Zoom extends View {
private Drawable image;
private ImageView img;
float degrees = 0;

private int zoomControler = 20;

public Zoom(Context context) {
super(context);
image = context.getResources().getDrawable(R.drawable.honeycomb);
setFocusable(true);

}

 @Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);
// here u can control the width and height of the images this
// line is very important
image.setBounds((getWidth() / 2) - zoomControler, (getHeight() / 2)
- zoomControler, (getWidth() / 2) + zoomControler,
(getHeight() / 2) + zoomControler);
image.draw(canvas);
}

 @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {

if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT)// zoom in
zoomControler += 10;
if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) // zoom out
zoomControler -= 10;
 if (zoomControler < 10)
zoomControler = 10;

invalidate();
return true;
}
}




Here any one i.e, either zoom or image rotation is getting well but when
trying to use both getting error

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit

Re: [android-developers] Nullsoft WinAmp UI question

2011-12-16 Thread TreKing
On Fri, Dec 16, 2011 at 3:02 AM, romdroid  wrote:

> So, I just downloaded the Nullsoft Winamp Application and I wonder
> which UI element is used for their player?  Is here anybody who can
> tell me what they implemented? I mean the player which is hideable and
> then goes to the status bar if the app is closed? How did they manage
> it to let the player continue even if the Acitivity was closed? Is the
> media run in a separate Thread in a Service? How could a touch on the
> status bar show the actual song played and another touch on the
> information open the player again?
>

It would be very difficult for anyone that has not worked on this app to
say what was done, particularly when you are basing your questions on the
supposition that everyone you're asking is familiar with the UI in
question. I, for one, have never seen this app nor am I going to download
it just to see what you're talking about - I suspect that will be the case
for many others.

>From your description, I would venture to guess "they're using a foreground
Service", as that's what most (all?) media players do. At least post some
screenshots to illustrate what you're asking about. Or try asking Winamp
themselves - though it's unlikely you'll get an answer.

-
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 videoview fullscreen problem

2011-12-16 Thread Jim Graham
On Fri, Dec 16, 2011 at 10:54:37AM +0100, pavan kumar valluru wrote:

> No thanks for your reply with unwanted and useless suggestions.

Whether you like it or not, what I said was true.  This is NOT a paid
support line.  This group is all-volunteer.  You do NOT get ANY promises
of answers to your questions.  You only get answers IF others here choose
to be generous and give you those answers (for free).

When you re-post your question because you are too impatient to wait
for an answer, the ONLY thing you accomplish is to piss people off.
When you do so after such an insanely short time period (25 minutes,
in this case), you just make it even worse for yourself.  If you
honestly believe that the way to get your answers is to re-post over
and over again, and deliberately piss people off by doing so, you are
sadly mistaken.

Later (or, more likely, not),
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye!

Android Apps Listing at http://www.jstrack.org/barcodes.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


Re: [android-developers] Two problems

2011-12-16 Thread TreKing
On Fri, Dec 16, 2011 at 3:23 AM, Knutsford Software <
i...@knutsford-software.co.uk> wrote:

> TempTempstr[4]) is definately set to 1
>

How did you come to this conclusion?


> 2)  I also that this bit of code. How can I tell id fit is calling the
> onclick
>

Use a breakpoint.

-
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] Passing Compressed bitmap from C to Android

2011-12-16 Thread s.rawat
Hi,
I am trying to send the bitmap of v4l2 buffer(from an external UVC camera)
converted to "jpg from the yuv" to the android code but no success .Here is
my few code snippets.The code snippet below is more design oriented so plz
forgive the syntactics.


*Android Code  : *
Bitmap mBitmap = Bitmap.createBitmap(
holder.getSurfaceFrame().right-holder.getSurfaceFrame().left,
holder.getSurfaceFrame().bottom-holder.getSurfaceFrame().top,Bitmap.Config.RGB_565
);

*uvcConvert2Bitmap*(mBitmap);


*Native Code : *

struct vdIn *v4l2buff = 0;

JNI_inside_my_package_name>_*uvcConvert2Bitmap*(JNIEnv *env, jobject obj,
jobject bitmap)
{

char* buffer;
//grab the buffer using the V4l2 call :

uvcGrab (framesizeIn);

//encoding to jpeg :

 compress_yuyv_to_jpeg(v4l2buff, buf, v4l2buff->framesizeIn, 80,
v4l2buff->formatIn);
   if (AndroidBitmap_lockPixels(env, jbitmap, buffer)< 0)
   {


   }
   else
   {
  //i am assuming that the jbitmap has the buffer inside it
   jbmp = jbitmap;
   }


}


*Android code:*

DrawCanvas.this.onDraw(c, mBitmap);


protected void onDraw(Canvas canvas,Bitmap bmp) {
// TODO Auto-generated method stub

 canvas.drawColor(color.black);
canvas.drawBitmap(bmp, 0,0, null);
}
I am not able to get any bitmap in my android application .Can some one plz
tell what I m doing wrong.

Rgds,
Saurabh
"..pain is temporary.quitting lasts forever.."

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

2011-12-16 Thread Jakub Czaplicki
Hi David,

Yes, that's what I tried. I guess I'd need to add the DISABLE_KEYGUARD
permisson to the app that I am driving using jUnit, but I want to
avoid code modification. At the moment the app only needs to be
resigned before tests.

I've written a separate app that unlocks the screen, and once the
screen is unlocked, the jUnit test starts.

thanks,
Jakub

On Dec 13, 10:13 pm, David Strickland  wrote:
> On Dec 13, 5:02 pm, JakubCzaplicki wrote:
>
>
>
>
>
>
>
>
>
> > Hi All,
>
> > Is there a way to unlock the screen after boot-up in jUnit ?
>
> > I tried the deprecated keyguardManager.newKeyguardLock() method. I've
> > set the required DISABLE_KEYGUARD permission in jUnit manifest, but
> > the test still claims : "java.lang.SecurityException: Requires
> > DISABLE_KEYGUARD permission".
>
> > I have also tried to set the
> > WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD flags, but in this
> > case I've got the following err msg : "android.view.ViewRootImpl
> > $CalledFromWrongThreadException: Only the original thread that created
> > a view hierarchy can touch its views"
>
> > Thanks,
> > Jakub
>
> Latest technique recommended by Google found 
> here:http://developer.android.com/guide/topics/testing/activity_testing.ht...
>
> ... or is that what you've already tried?

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

2011-12-16 Thread TreKing
On Thu, Dec 15, 2011 at 11:31 PM, rachana govilkar <
rachana.govil...@gmail.com> wrote:

> Ya this is ANDROID group so no1 has posted iPhone query here..
> anyways hey TreKing i have problem in MMS.
>

How about starting your own thread instead of hijacking another pointless
one? You'll likely get more help that way.

Oh, and please proofread your post before you submit it. A few capital
letters, less "???" and "." action, and some correct spelling will
do *wonders* for people not dismissing your post immediately.

-
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 determine what Activities are bound to my Service

2011-12-16 Thread Mark Murphy
On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
 wrote:
> When you get a bind in your service (your onBind) can you just take
> the intent and get component associated with it?
>
> From Intent:
> ComponentName    getComponent()
> Retrieve the concrete component associated with the intent.

That should be the recipient, not the sender.

The only way I know to find out who bound to you is if you require
that information in an extra, and that can always be spoofed. The
expectation is that you should not care *who* bound to you, merely
whether they had sufficient permissions to do so.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Re: ADB driver...

2011-12-16 Thread Nikolay Elenkov
On Fri, Dec 16, 2011 at 8:50 PM, Kostya Vasilyev  wrote:
> Ok, I give up. You may want to try some Windows support forum / mailing list 
> :)
>
> 16 декабря 2011 г. 15:37 пользователь sblantipodi
>  написал:
>> I have Windows 7 64 bit and the driver isn't recognized at all.

People have extracted the drivers from Kies and packaged them
separately, there are a few packages floating around. This one works
for me on Vista x64. You can find more at XDA.

http://androidforums.com/galaxy-nexus-all-things-root/451898-galaxy-nexus-adb-usb-driver.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] How to configure a NFC tag in using the URI = "text/x-vCard"

2011-12-16 Thread tarun sablok
I am  trying to make an application of a business card which has
name , mob no , company and  other details .

I want to write all these details on to a NFC tag .

And from a different application i want to scan this tag and  save the
information received to the phones contact list

Now i am facing  problem in writing a tag , configuring it as V card
using the URI  "text/x-vCard"
i am  mentioning the command i am using

NdefRecord textRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA,"text/
x-vCard".getBytes(),new byte[] {}, textBytes);


also in the manifest i am using  this to read the tag



 
 
 


can anyone give some  pointers  where i should work around to get back
on the tracks.

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

2011-12-16 Thread Christian Eduardo Palomares Peralta
It works with a LinearLayout vertical and adding programmatically
linearlayout horizontal, and also managing the scrollview =)

Thxs for your answers =)!!!

2011/12/15 Kostya Vasilyev 

> Looks pretty close to me.
>
> 15 декабря 2011 г. 20:08 пользователь Christian Eduardo Palomares
> Peralta  написал:
> > like this???
> > http://www.marteinn.se/blog/?p=485
> >
> > I'll try it =)
> >
> >
> > 2011/12/15 Kostya Vasilyev 
> >>
> >> Um,
> >>
> >> @Override
> >> protected void onScrollChanged (int l, int t, int oldl, int oldt)
> >>
> >> ???
> >>
> >>
> >> 15 декабря 2011 г. 19:55 пользователь Christian Eduardo Palomares
> >> Peralta  написал:
> >> > Thanks for the help, but i was talking about that in a linearlayout
> with
> >> > a
> >> > scroll view :(
> >> >
> >> > 2011/12/15 Kostya Vasilyev 
> >> >>
> >> >> For dynamic content on the bottom, you can:
> >> >>
> >> >> - Override getView and check the item position (maybe not quite
> >> >> religiously pure, but it works).
> >> >>
> >> >> - Use an OnScrollListener to be notified of scroll state changes,
> wait
> >> >> for SCROLL_STATE_IDLE and check what's visible
> >> >>
> >> >>
> >> >>
> >> >>
> http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener)
> >> >>
> >> >> Or come up with something else, such as maybe subclassing the list
> >> >> view, overriding onLayout and checking the last visible position
> after
> >> >> calling super...
> >> >>
> >> >> -- Kostya
> >> >>
> >> >> 15 декабря 2011 г. 19:11 пользователь Christian Eduardo Palomares
> >> >> Peralta  написал:
> >> >> > I've tried again with listview but i had some problems to load more
> >> >> > items to
> >> >> > the adapter.
> >> >> >
> >> >> > Now i'm adding the controls programmatically and i think it should
> >> >> > work,
> >> >> > but
> >> >> > my only problem is detecting the scroll in the bottom to load more
> >> >> > items
> >> >> > :(.
> >> >> >
> >> >> > Thxs
> >> >> >
> >> >> > 2011/12/15 Kostya Vasilyev 
> >> >> >>
> >> >> >> That - I mean the right part - looks like some kind of custom
> >> >> >> adapter
> >> >> >> view, maybe with view recycling (harder) maybe not (easier).
> >> >> >>
> >> >> >> 15.12.2011 12:02, Christian Eduardo Palomares Peralta пишет:
> >> >> >>
> >> >> >> BTW, i'm not talking about the first view in UI youtube tablet
> >> >> >> version,
> >> >> >> i
> >> >> >> think that's a 3D carousel. I'm talking about the exploratory view
> >> >> >> (second
> >> >> >> tab).
> >> >> >>
> >> >> >> 2011/12/14 Kostya Vasilyev 
> >> >> >>>
> >> >> >>> As far the as the 3D panoramic scrolling goes:
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
> >> >> >>>
> >> >> >>> >>
> >> >> >>> Renderscript has been used in the creation of the new
> visually-rich
> >> >> >>> YouTube and Books apps.
> >> >> >>> <<
> >> >> >>>
> >> >> >>> -- Kostya
> >> >> >>>
> >> >> >>> 15 декабря 2011 г. 2:57 пользователь Ali Chousein
> >> >> >>>  написал:
> >> >> >>> >
> >> >> >>> > Mine is just a guess but YouTube might be using HTML5.
> >> >> >>> >
> >> >> >>> > -
> >> >> >>> > Ali Chousein
> >> >> >>> > Weather-Buddy
> >> >> >>> > http://weatherbuddy.blogspot.com |
> >> >> >>> > http://twitter.com/weather_buddy
> >> >> >>> > Geo-Filtered Assistant
> >> >> >>> > http://geo-filtered-assistant.blogspot.com
> >> >> >>> > https://marketplace.cisco.com/apphq/products/994
> >> >> >>> >
> >> >> >>> > --
> >> >> >>> > You received this message because you are subscribed to the
> >> >> >>> > Google
> >> >> >>> > Groups "Android Developers" group.
> >> >> >>> > To post to this group, send email to
> >> >> >>> > android-developers@googlegroups.com
> >> >> >>> > To unsubscribe from this group, 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
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Christian Eduardo Palomares Peralta (ShinjiDev) -
> >> >> >> http://learningwebdev.blogspot.com
> >> >> >> Administrador del Grupo Python-Perú
> >> >> >> --
> >> >> >> You received this message because you are subscribed to the Google
> >> >> >> Groups "Android Developers" group.
> >> >> >> To post to this group, send email to
> >> >> >> android-developers@googlegroups.com
>

Re: [android-developers] Re: ADB driver...

2011-12-16 Thread Kostya Vasilyev
Ok, I give up. You may want to try some Windows support forum / mailing list :)

16 декабря 2011 г. 15:37 пользователь sblantipodi
 написал:
> I have Windows 7 64 bit and the driver isn't recognized at all.
> No settings has been used to prevent unsigned drivers since I can
> install nvidia beta driver
> without problem.
>
> On Dec 16, 12:26 pm, Kostya Vasilyev  wrote:
>> Those drivers are not signed, and 64-bit versions of Windows (since
>> Vista, IIRC) show a warning when this is the case.
>>
>> You should get a red-themed dialog complaining about the driver not
>> being signed and asking you for a confirmation.
>>
>> Oh, and I vaguely remember that there is a Windows system policy to
>> prevent installation of any unsigned drivers, skipping the prompt
>> dialog. Perhaps it's somehow enabled on your computer.
>>
>> -- Kostya
>>
>> 16.12.2011 15:12, sblantipodi пишет:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > I have done it but windows does not recognize the drivers in the sdk
>> > folder as a valid driver.
>>
>> > On 15 Dic, 22:59, Kostya Vasilyev  wrote:
>> >> In that case, Davide, have you actually tried 1) getting the latest
>> >> version of the driver with the SDK Manager and 2) pointing the Windows
>> >> Device Manager at it?
>>
>> >> 16 ÄÅËÁÂÒÑ 2011šÇ. 1:52 ÐÏÌØÚÏ×ÁÔÅÌØ Mark Murphy
>> >>   ÎÁÐÉÓÁÌ:
>>
>> >>> 2011/12/15 Kostya Vasilyev:
>>  Doesn't the official Google driver, available in the Android SDK
>>  Manager, have support for the Galaxy Nexus?
>> >>> I would presume it does. The Win7 side of my dual-boot notebook
>> >>> recognized the Galaxy Nexus (GSM edition) without any changes on my
>> >>> part.
>> >>> --
>> >>> 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
>>
>> --
>> 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

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

2011-12-16 Thread sblantipodi
I have Windows 7 64 bit and the driver isn't recognized at all.
No settings has been used to prevent unsigned drivers since I can
install nvidia beta driver
without problem.

On Dec 16, 12:26 pm, Kostya Vasilyev  wrote:
> Those drivers are not signed, and 64-bit versions of Windows (since
> Vista, IIRC) show a warning when this is the case.
>
> You should get a red-themed dialog complaining about the driver not
> being signed and asking you for a confirmation.
>
> Oh, and I vaguely remember that there is a Windows system policy to
> prevent installation of any unsigned drivers, skipping the prompt
> dialog. Perhaps it's somehow enabled on your computer.
>
> -- Kostya
>
> 16.12.2011 15:12, sblantipodi пишет:
>
>
>
>
>
>
>
>
>
> > I have done it but windows does not recognize the drivers in the sdk
> > folder as a valid driver.
>
> > On 15 Dic, 22:59, Kostya Vasilyev  wrote:
> >> In that case, Davide, have you actually tried 1) getting the latest
> >> version of the driver with the SDK Manager and 2) pointing the Windows
> >> Device Manager at it?
>
> >> 16 ÄÅËÁÂÒÑ 2011šÇ. 1:52 ÐÏÌØÚÏ×ÁÔÅÌØ Mark Murphy
> >>   ÎÁÐÉÓÁÌ:
>
> >>> 2011/12/15 Kostya Vasilyev:
>  Doesn't the official Google driver, available in the Android SDK
>  Manager, have support for the Galaxy Nexus?
> >>> I would presume it does. The Win7 side of my dual-boot notebook
> >>> recognized the Galaxy Nexus (GSM edition) without any changes on my
> >>> part.
> >>> --
> >>> 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
>
> --
> 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:

2011-12-16 Thread Ali Chousein
When you know the phone number, and if the phone number is in your
contacts list, you can access the name from contacts DB. Google for
"android get contact name from number" and you are going to find
multiple examples.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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

2011-12-16 Thread jfernandez
On 16 dic, 11:31, Raul Ruiz  wrote:
> Hi  Jorge,

Hi Raul,

>
> What device are you using? I have a same problem using Nonin 9560BT
> pulseoximeter. It conects and disconnects and any data had received in
> the Android.

I'm working with a board which is able to simulate several biomedical
devices.

On the other hand, I have a real device (blood pressure monitor
UA-767PBT-C). In that case, the device opens the HDP channel
automatically with the smartphone which acts as sink. But the truth is
that I don't see anything in the LogCat related to this channel.
However, if I try opening the connection channel from the HDP Demo
Application, I obtain the same error.

Anyway, I have checked all of this in a Linux laptop using the same
BlueZ stack that we have in Android and everything works fine.

>
> Do you have any solution?

Not yet. I'm expecting some feedback.

>
> Thanks
>
> On Dec 15, 6:30 pm, jfernandez 
> wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0
> > Ice Cream Sandwich) in my Android smartphone. When I have registered
> > the application in order to receive data, and I have paired the
> > biomedical device with the smartphone, I try to open the channel
> > connection and I can see that the device starts sending data to the
> > smartphone. However, the smartphone is unable to open the channel
> > connectionHDP.
>
> > At the end of this message you can see the output obtained in the
> > LogCat.
>
> > Has anybody achieved to run successfully this sample about the use of
> > theBluetoothHealth Profile API? Any ideas?
>
> > Thanks. Regards.
>
> > [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html
>
> > This is the log that I obtain:
>
> > 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel()
> > 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE:
> > 00:80:25:14:A1:BC: 0 -> 1
> > 12-15 16:40:55.169: D/ConnectivityService(147):
> > handleInetConditionHoldEnd: net=1, condition=0, published condition=0
> > 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
> > changed: 00:80:25:14:A1:BC property: Connected value: true
> > 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
> > devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
> > bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
> > 12-15 16:41:00.034: E/BluetoothService.cpp(147):
> > getChannelApplicationNative
> > 12-15 16:41:00.044: E/bluetooth_common.cpp(147):
> > dbus_func_args_timeout_valist: D-Bus error in Acquire:
> > org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed)
> > 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
> > obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
> > chan3115
> > 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative
> > 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
> > onHealthDeviceConnectionResult: D-Bus error:
> > org.bluez.Error.HealthError (Mdl is not created)
> > 12-15 16:41:00.074: D/BluetoothEventLoop(147):
> > onHealthDeviceConnectionResult 2 6001
> > 12-15 16:41:00.214: D/BluetoothEventLoop(147):
> > onHealthDeviceConnectionResult 2 6000
> > 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of
> > Property is: MainChannel Value:/org/bluez/278/hci0/
> > dev_00_80_25_14_A1_BC/chan3115

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

2011-12-16 Thread Kostya Vasilyev
Those drivers are not signed, and 64-bit versions of Windows (since 
Vista, IIRC) show a warning when this is the case.


You should get a red-themed dialog complaining about the driver not 
being signed and asking you for a confirmation.


Oh, and I vaguely remember that there is a Windows system policy to 
prevent installation of any unsigned drivers, skipping the prompt 
dialog. Perhaps it's somehow enabled on your computer.


-- Kostya

16.12.2011 15:12, sblantipodi пишет:

I have done it but windows does not recognize the drivers in the sdk
folder as a valid driver.

On 15 Dic, 22:59, Kostya Vasilyev  wrote:

In that case, Davide, have you actually tried 1) getting the latest
version of the driver with the SDK Manager and 2) pointing the Windows
Device Manager at it?

16 ÄÅËÁÂÒÑ 2011šÇ. 1:52 ÐÏÌØÚÏ×ÁÔÅÌØ Mark Murphy
  ÎÁÐÉÓÁÌ:








2011/12/15 Kostya Vasilyev:

Doesn't the official Google driver, available in the Android SDK
Manager, have support for the Galaxy Nexus?

I would presume it does. The Win7 side of my dual-boot notebook
recognized the Galaxy Nexus (GSM edition) without any changes on my
part.
--
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


--
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: ADB driver...

2011-12-16 Thread sblantipodi
I have done it but windows does not recognize the drivers in the sdk
folder as a valid driver.

On 15 Dic, 22:59, Kostya Vasilyev  wrote:
> In that case, Davide, have you actually tried 1) getting the latest
> version of the driver with the SDK Manager and 2) pointing the Windows
> Device Manager at it?
>
> 16 ÄÅËÁÂÒÑ 2011šÇ. 1:52 ÐÏÌØÚÏ×ÁÔÅÌØ Mark Murphy
>  ÎÁÐÉÓÁÌ:
>
>
>
>
>
>
>
> > 2011/12/15 Kostya Vasilyev :
> >> Doesn't the official Google driver, available in the Android SDK
> >> Manager, have support for the Galaxy Nexus?
>
> > I would presume it does. The Win7 side of my dual-boot notebook
> > recognized the Galaxy Nexus (GSM edition) without any changes on my
> > part.
>
> > --
> > 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

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

2011-12-16 Thread Marcel Arts
buy a new model

On Dec 14, 5:25 am, Enton Packiaraj  wrote:
> hi,
>
>      I am having samsung i7500 model and android 1.6 version.since i
> bought this mobile 2 years
> before but my handset hanged and problem for most time.so can anyone
> help .

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


[android-developers] Re: Unable to execute Bluetooth HDP Demo

2011-12-16 Thread Raul Ruiz
Hi  Jorge,

What device are you using? I have a same problem using Nonin 9560BT
pulseoximeter. It conects and disconnects and any data had received in
the Android.

Do you have any solution?

Thanks

On Dec 15, 6:30 pm, jfernandez 
wrote:
> Hi all,
>
> I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0
> Ice Cream Sandwich) in my Android smartphone. When I have registered
> the application in order to receive data, and I have paired the
> biomedical device with the smartphone, I try to open the channel
> connection and I can see that the device starts sending data to the
> smartphone. However, the smartphone is unable to open the channel
> connectionHDP.
>
> At the end of this message you can see the output obtained in the
> LogCat.
>
> Has anybody achieved to run successfully this sample about the use of
> the Bluetooth Health Profile API? Any ideas?
>
> Thanks. Regards.
>
> [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html
>
> This is the log that I obtain:
>
> 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel()
> 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE:
> 00:80:25:14:A1:BC: 0 -> 1
> 12-15 16:40:55.169: D/ConnectivityService(147):
> handleInetConditionHoldEnd: net=1, condition=0, published condition=0
> 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
> changed: 00:80:25:14:A1:BC property: Connected value: true
> 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
> devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
> bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
> 12-15 16:41:00.034: E/BluetoothService.cpp(147):
> getChannelApplicationNative
> 12-15 16:41:00.044: E/bluetooth_common.cpp(147):
> dbus_func_args_timeout_valist: D-Bus error in Acquire:
> org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed)
> 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
> obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
> chan3115
> 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative
> 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
> onHealthDeviceConnectionResult: D-Bus error:
> org.bluez.Error.HealthError (Mdl is not created)
> 12-15 16:41:00.074: D/BluetoothEventLoop(147):
> onHealthDeviceConnectionResult 2 6001
> 12-15 16:41:00.214: D/BluetoothEventLoop(147):
> onHealthDeviceConnectionResult 2 6000
> 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of
> Property is: MainChannel Value:/org/bluez/278/hci0/
> dev_00_80_25_14_A1_BC/chan3115

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

2011-12-16 Thread Hrishi


On Nov 30, 7:49 pm, Kenny Riddile  wrote:
> On 11/30/2011 4:38 AM, Hrishi wrote:
>
>
>
> > Please bare if is repeated question...
>
> > I am able to connect to wifi device (printer). Now i want to print a
> >pdffileprogramatically using wifi connection. can someone tell me
> > how to do it because i am not getting any way to do it. I am able to
> > print text ,htmlfilen images butpdffilenot get printed in proper
> > format what is the way tosendpdffileto printer in proper
> > format ...
>
> > Is there any API available for printingpdffile?
>
> > Please suggest third party APIs..
>
> > Please help me !!
>
> > Thanks in advance !!!
>
> How are you printing the text, html files, and images?  I'd really like
> to know because I haven't been able to find anything on Android
> printing.  The online documentation for Google's Cloud Print intent has
> been a dead link for months.

Hi ... Actually we have develope android library for printing
text,html and images.

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

2011-12-16 Thread Tomas Prochazka
I'm developing application which can block unwanted calls, sms and MMS. If 
call or SMS is blocked, user can see it in log.

Only problem are MMS. I get only notification header which contain only 
sender phone number, expiration, type and URL to message body.
I want give use possibility to read MMS if it decide it later or make 
mistake in blocking configuration and block wanted MMS.

I tried to store notification data and try to reproduce the same broadcast 
as system do if MMS arrive.

So I create intent with 
action "android.provider.Telephony.WAP_PUSH_RECEIVED" and 
type  "application/vnd.wap.mms-message"; set extra data as byte[] with 
original notification data. But system app for receiving messages doesn't 
react for it or it doesn't get it. Why?  Only my application receive this 
broadcast (and I don't block them in this situation).

Do I need some special permission?


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