[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread lbendlin
I don't think any 2.2 device or older has more than one camera.  So you only 
need to test for the existence of that one camera, possibly with 

Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

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

2011-04-05 Thread lbendlin
If you were a user would you like such an application on your phone?

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

2011-04-05 Thread Gorka Hernando
Hi,

The thing is, if I create an Activity it always will show something on
the screen, rigth?
Even if I do not set any view, like in this code, it always appear the
black screen of the activity. I can call to finish as soon as I read
the tag and I show the toast, but it is not nice.

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main)
}

When you say not to load any xml what do you mean really? It would be
great not to show nothing on screen, just the toast and then call to
finish and the user would not realize that an activity has been
opened.

I am a bit new to Android, so if you can explain me more in detail it
would be great.

Thanks for your time.

On 5 abr, 16:15, nathan forbes me.li...@nathanforbes.com wrote:
 Couldn't you just create a normal activity using onCreate and not load any
 XML layouts? Instead of creating receivers? Then you would have a context to
 work with to show a Toast and what not...

 Or am I way off here... I'm fairly new with this also.

 On Apr 5, 2011 9:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote:









  Maybe the LAUNCHER stuff is causing a problem?  If you have your
  intent filter set up ok, you should at least receive the intent.

  On Apr 5, 8:45 pm, Gorka Hernando g.herna...@ogmio.com wrote:
   Sorry, I forgot to say that after the broadcast is catched withing the
   onreceive I have this code:

   public void onReceive(Context context, Intent intent) {
               // show first message
               Toast toast = Toast.makeText(context, test,
 Toast.LENGTH_LONG);
               toast.show();

               context.startService(serviceIntent);

   }

   Maybe you meant this line: context.startService(serviceIntent); when
   you sais how to start a service.
   The problem as I said is that I cannot get the intent

   On 5 abr, 14:42, Gorka Hernando g.herna...@ogmio.com wrote:

Hi,

Thanks for your response.
I am taking a look at it.

I am not sure if I am working in the rigth way. Since I want the
service to execute when the tag is detected, I guess I have to declare
a BroadcastReceiver within my packet so that when I receive the intent
I can start the service. Is that correct? The thing is that I am not
receiving the intent at all, I am sure the action.NDEF is taking place
because I see it in the debug window. However, my receiver doesn´t get
it. The way I have declared the receiver in the manifest and in the
java class is above.

Can you please tell me if what I am doing make sense or not. Because
it seems to me that I am wasting my time because this is not the
correct form to work whit this things.

Thanks.

On 5 abr, 13:36, skink psk...@gmail.com wrote:

 On Apr 5, 10:45 am, Gorka Hernando g.herna...@ogmio.com wrote:

  Hi again,

  Sorry if I am posting too much, but I really need to make this
 work
  today.
  Here it is my manifest file. I have created a service and a
 receiver
  to get the NDEF_DISCOVERED intent.

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=

 http://schemas.android.com/apk/res/android;       
 package=com.android.nfcvoicereader android:versionCode=1
  android:versionName=1.0
      uses-sdk android:minSdkVersion=10 /

      application android:icon=@drawable/icon

 android:label=@string/ app_name
      service android:enabled=true android:name=MyService/
  service
      receiver android:enabled=true
  android:name=com.android.MyIntentReceiver
                  intent-filter
                  action android:name=android.intent.action.MAIN
 /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter

              intent-filter
                  action

 android:name=android.nfc.action.NDEF_DISCOVERED/

                          data android:mimeType=text/plain /

                          category

 android:name=android.intent.category.DEFAULT/







              /intent-filter
      /receiver

      uses-feature android:name=android.hardware.nfc
  android:required=true /
      /application
  /manifest

  Inside my project there is a receiver class which should get the
  intent so that I can start the service.

  public class MyIntentReceiver extends BroadcastReceiver {
          static final String TAG = BROADCAST RECEIVER;

            @Override
            public void onReceive(Context _context, Intent _intent)
 {
              .
           }

  }

  Can someone tell me what I am doing wrong ??

 See Context docs to find a method that starts a service

 pskink- Hide quoted text -

   - Show quoted text -

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 

[android-developers] Dispatch KeyDown on Listview

2011-04-05 Thread mihoelzl
Hi,
I want to manually dispatch a key down event in a listactivity. This
works when I just add the Event to the Activity by:

this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_DPAD_DOWN));
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP,
KeyEvent.KEYCODE_DPAD_DOWN));


I can now see that the cursor goes down and the next entry in the
listview is selected. But only the text is highlighted and not the
background (It stays black). What am I doing wrong? Any Idea?

BR
Michael

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


Re: [android-developers] Re: Continuously running service.

2011-04-05 Thread Mahavir Jain
Positively and productively, use of this application is to monitor the kids
action by parent or to track the sales man or employee (who is daily on
field/site) action..

Some may make the misuse of such application. And there are many such spy
applications in android market.

But my question is related to continuosly running service in the background.
I want to know if something like daemon process (continuously running
process) is possible in android?

Thanks for reply.

Thanks in advance.
Regards,
Mahavir

On Tue, Apr 5, 2011 at 8:29 PM, lbendlin l...@bendlin.us wrote:

 If you were a user would you like such an application on your phone?

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

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

Re: [android-developers] Re: Continuously running service.

2011-04-05 Thread TreKing
On Tue, Apr 5, 2011 at 10:10 AM, Mahavir Jain vir.j...@gmail.com wrote:

 But my question is related to continuosly running service in the
 background. I want to know if something like daemon process (continuously
 running process) is possible in android?


No. Android can and will kill your Service and its process at any time if
deemed necessary.

-
TreKing http://sites.google.com/site/rezmobileapps/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 Layouts Are Horrible

2011-04-05 Thread nation-x
I lol'd...

On Apr 5, 8:25 am, Craigbtx craig...@austin.rr.com wrote:
 I agree with Dirk and others. After using Microsofts development
 environment, Visual Studio and asp.net for me, there is no reason to
 code database connections, html tables of data etc., sql update,
 delete and insert commands. If you know them that is great and it is
 helpful. But by having a full mature visual development environment
 you can concentrate on the application and not the code, unless
 necessary. I have developed a fully functional asp.net application
 with 53 database driven pages with lists and forms with full insert
 update and delete capabilities, full security with logins, retrieve
 passwords, create new users all in 2 weeks.  No code!

 Later we added business rules and error trapping but what a head
 start. If needed then you dig into code but use the built in mature
 tools to the fullest. I had a problem once and got answers of 150
 lines of code. The solution was 1 line of code.

 We do not need to reinvent the wheel on every application. Thirty
 years ago we had database application software that didn't require you
 to code database connections, insert, deletes and update statements,
 button clicks etc. I hope we have progressed farther that that.

 Eclipse is the best visual environment for Android code but far from
 Microsofts Visual Studio development environment.

 Ever seen app_inventor, visual environment from Google? Interesting. I
 wonder if it will ever be released? It may be too visual and maybe no
 as powerful, butinteresting none the less.

 On Apr 5, 1:19 am, dirk dhaa...@gmail.com wrote:







  Hold on a minute. I really don't care the least bit about underlying
  code, that is, the XML that's generated by a really good design tool.
  Saying you should have to learn the XML (in this case) is like saying
  you have to learn the bytecode that's generated from the java code.
  Sure, you always need understand the structure, but with good tools,
  you can _focus_ on the structure and not worry about the details.

  On Apr 4, 7:01 pm, Robert rcope...@gmail.com wrote:

   Layout is part of development. Having tools to help with that are aids
   but should not be used as an excuse not to learn the underlying code.
   THe designer tools only generate the structures based on the rules
   programmed into them. You will always have a more detailed level of
   control by going to the lowest level available.  Learn it and it'll
   make you a better developer and your programs to be more
   efficient.     Using the higher level tools makes you only as
   efficient at they are.

   Yes, it takes time and yes you have to learn it but that's what being
   a real developer is all about.
   Robert- Hide quoted text -

  - Show quoted text -

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


Re: [android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread Chris Stewart
 I lol'd...

+1

--
Chris Stewart
http://chriswstewart.com



On Tue, Apr 5, 2011 at 11:30 AM, nation-x shawn.payme...@gmail.com wrote:

 I lol'd...

 On Apr 5, 8:25 am, Craigbtx craig...@austin.rr.com wrote:
  I agree with Dirk and others. After using Microsofts development
  environment, Visual Studio and asp.net for me, there is no reason to
  code database connections, html tables of data etc., sql update,
  delete and insert commands. If you know them that is great and it is
  helpful. But by having a full mature visual development environment
  you can concentrate on the application and not the code, unless
  necessary. I have developed a fully functional asp.net application
  with 53 database driven pages with lists and forms with full insert
  update and delete capabilities, full security with logins, retrieve
  passwords, create new users all in 2 weeks.  No code!
 
  Later we added business rules and error trapping but what a head
  start. If needed then you dig into code but use the built in mature
  tools to the fullest. I had a problem once and got answers of 150
  lines of code. The solution was 1 line of code.
 
  We do not need to reinvent the wheel on every application. Thirty
  years ago we had database application software that didn't require you
  to code database connections, insert, deletes and update statements,
  button clicks etc. I hope we have progressed farther that that.
 
  Eclipse is the best visual environment for Android code but far from
  Microsofts Visual Studio development environment.
 
  Ever seen app_inventor, visual environment from Google? Interesting. I
  wonder if it will ever be released? It may be too visual and maybe no
  as powerful, butinteresting none the less.
 
  On Apr 5, 1:19 am, dirk dhaa...@gmail.com wrote:
 
 
 
 
 
 
 
   Hold on a minute. I really don't care the least bit about underlying
   code, that is, the XML that's generated by a really good design tool.
   Saying you should have to learn the XML (in this case) is like saying
   you have to learn the bytecode that's generated from the java code.
   Sure, you always need understand the structure, but with good tools,
   you can _focus_ on the structure and not worry about the details.
 
   On Apr 4, 7:01 pm, Robert rcope...@gmail.com wrote:
 
Layout is part of development. Having tools to help with that are
 aids
but should not be used as an excuse not to learn the underlying code.
THe designer tools only generate the structures based on the rules
programmed into them. You will always have a more detailed level of
control by going to the lowest level available.  Learn it and it'll
make you a better developer and your programs to be more
efficient. Using the higher level tools makes you only as
efficient at they are.
 
Yes, it takes time and yes you have to learn it but that's what being
a real developer is all about.
Robert- Hide quoted text -
 
   - Show quoted text -

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


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

2011-04-05 Thread TreKing
On Tue, Apr 5, 2011 at 12:20 AM, Laxmi Verma
laxmiverma.andr...@gmail.comwrote:

 Is there any other option available instead of ActivityGroup to change the
 views in the tab.


Yes, use Views or Fragments, as I said.


 If yes, then please provide some link or some code example on it.


Look through the documentation for TabView or Fragment. You should find
plenty of info.

-
TreKing http://sites.google.com/site/rezmobileapps/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] Re: Android Layouts Are Horrible

2011-04-05 Thread Chris Stewart
At the end of the day, it comes down to an allocation of resources on
Google's part.  I'd much rather have them spending time innovating Android,
it's APIs, the Android Market, and so forth, rather than building a better
GUI editor because people don't want to put in the time to learn how to do
it.  There are beautiful user experiences on the Android platform -- so it's
a matter of putting away the hold my hand mentality of Visual Studio and
learning how it's done.

Would I like a better editor?  Of course.  But not at the expense, or
opportunity cost, of innovating in more compelling areas of Android.

--
Chris Stewart
http://chriswstewart.com



On Tue, Apr 5, 2011 at 11:37 AM, Chris Stewart cstewart...@gmail.comwrote:

  I lol'd...

 +1

 --
 Chris Stewart
 http://chriswstewart.com



 On Tue, Apr 5, 2011 at 11:30 AM, nation-x shawn.payme...@gmail.comwrote:

 I lol'd...

 On Apr 5, 8:25 am, Craigbtx craig...@austin.rr.com wrote:
  I agree with Dirk and others. After using Microsofts development
  environment, Visual Studio and asp.net for me, there is no reason to
  code database connections, html tables of data etc., sql update,
  delete and insert commands. If you know them that is great and it is
  helpful. But by having a full mature visual development environment
  you can concentrate on the application and not the code, unless
  necessary. I have developed a fully functional asp.net application
  with 53 database driven pages with lists and forms with full insert
  update and delete capabilities, full security with logins, retrieve
  passwords, create new users all in 2 weeks.  No code!
 
  Later we added business rules and error trapping but what a head
  start. If needed then you dig into code but use the built in mature
  tools to the fullest. I had a problem once and got answers of 150
  lines of code. The solution was 1 line of code.
 
  We do not need to reinvent the wheel on every application. Thirty
  years ago we had database application software that didn't require you
  to code database connections, insert, deletes and update statements,
  button clicks etc. I hope we have progressed farther that that.
 
  Eclipse is the best visual environment for Android code but far from
  Microsofts Visual Studio development environment.
 
  Ever seen app_inventor, visual environment from Google? Interesting. I
  wonder if it will ever be released? It may be too visual and maybe no
  as powerful, butinteresting none the less.
 
  On Apr 5, 1:19 am, dirk dhaa...@gmail.com wrote:
 
 
 
 
 
 
 
   Hold on a minute. I really don't care the least bit about underlying
   code, that is, the XML that's generated by a really good design tool.
   Saying you should have to learn the XML (in this case) is like saying
   you have to learn the bytecode that's generated from the java code.
   Sure, you always need understand the structure, but with good tools,
   you can _focus_ on the structure and not worry about the details.
 
   On Apr 4, 7:01 pm, Robert rcope...@gmail.com wrote:
 
Layout is part of development. Having tools to help with that are
 aids
but should not be used as an excuse not to learn the underlying
 code.
THe designer tools only generate the structures based on the rules
programmed into them. You will always have a more detailed level of
control by going to the lowest level available.  Learn it and it'll
make you a better developer and your programs to be more
efficient. Using the higher level tools makes you only as
efficient at they are.
 
Yes, it takes time and yes you have to learn it but that's what
 being
a real developer is all about.
Robert- Hide quoted text -
 
   - Show quoted text -

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




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

2011-04-05 Thread cipher_neo
I have a small javascript keypad which is used for loggin into a web
application.

It is very responsive on the desktop, but when I view the web app
through the browser in the android tablet, the response is sluggish.

I need to be able to make the keypad very responsive, it will serve as
a kind of calculator in the web app, and a user should be able to tap
the buttons pretty quickly.

I simply have each number in the keypad wrapped in a div which has an
onclick event launched every time a key is clicked, which, in turn,
displays the key that has been pressed.

Is there any way to increase the responsiveness of it?

thanks

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


[android-developers] Re: Response time for web app on android

2011-04-05 Thread Maps.Huge.Info (Maps API Guru)
Is it slow on the emulator only? What device are you testing with?

-John Coryat

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


[android-developers] Replace ADBD on emulator

2011-04-05 Thread TheVirus
I am trying to debug some adbd stuff for an app I'm writing but I need
more debug output. I've compiled adbd from AOSP source but cannot find
out how to overwrite it on the emulator. I've copied it to /sdcard and
tried copying it but when I restart the emulator, it reverts. It seems
the emulator can't properly close when I remount the rootfs with rw
permission and I'm not sure why.

I looked into building yaffs2 into my kernel but the documentation is
outdated and I'm not sure how to do it.

I'm on Ubuntu 10.10.

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] FACEBOOK ANDROID SDK API Problem to get access token

2011-04-05 Thread elioncho
Hello,

I've been using the Facebook class on the FACEBOOK ANDROID SDK to sign
up users with Facebook on my Android app. The authorize method has an
onComplete callback where I call the getAccessToken method and it just
works. The problem that I encounter right now is when I call the
dialog method to post a message to the user wall. Sometimes the user
may not be login to facebook and once the feed dialog is called it
shows first the authorize or sign up dialog. My guess is that I
should also be able to call the getAccessToken on the onComplete
callback of the dialog but nothing is returned. Does anyone knows a
workaround for this?

Elioncho

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: (File export) What's going on with my code?[NEED HELP]

2011-04-05 Thread Alaeddine Ghribi
So i just have this problem to solve now. I'm trying everything, followed
this link(http://www.brighthub.com/mobile/google-android/articles/33240.aspx)
as well, and always have the problem of sdcard not mounted!I verified with
Settings-Storage and it indicated unavailable . Any idea ?
Thank you.

2011/4/5 Kostya Vasilyev kmans...@gmail.com

 05.04.2011 15:47, Alaeddine Ghribi пишет:


 However, i'm facing a problem when writing the file to the SDCARD. I have
 permission denied and SDCARD not mounted exception.
 Here is the code:

  Do you have a memory card in the phone?

 If you do, make sure it's not mounted as a disk drive by your computer. If
 it is, use the phone's menu to disable this (this is manufacturer dependent,
 look for a status bar notification).

 Finally, make sure that the permission is outside your application tag,
 and directly inside manifest.

 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com


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


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

Re: [android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread TreKing
Comparing ADT to Visual Studio is a little ridiculous. Using a .Net language
like C# in VS to design a GUI is a thing of beauty, but it's gotten to its
current point of sophistication after *a lot* of time, money, and
engineering effort. This is one of Microsoft's premier products and they've
been perfecting it for a long time and do so because it makes them a lot of
money.

Considering how long it's been around and the limited resources (I assume, I
don't know for sure) that are available for ADT, it's pretty damn good.

Honestly, this thread kind of reminds me of the type of whiny users who
would leave 1-star ratings for an image editor app because it's not as good
as PhotoShop. Most of us have gotten these kinds of reviews and it's
freaking annoying.

Complaining and comparing the tool to VS without even clarifying what the
issues are doesn't help anyone. Leave some useful, constructive criticism
for the developers. Like I said before, they're on this list and are very
responsive.

Also, isn't it open-source? So if it's not good enough for you ... well, um
... quit yer bitchin' and contribute to making it as it good as you think it
should be, eh? :-)

-
TreKing http://sites.google.com/site/rezmobileapps/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] OpenGL ES for Android tutorial

2011-04-05 Thread J
Hi,

  anybody can sugest a tutorial for OpenGL ES on Android?

  The official documentation is not very extensive...

Thanks,
J

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

2011-04-05 Thread Nick Kulikaev
Did you consider a bit different approach and use alarm manager to wake up 
your app after regular interval? If you only need to send device location 
to the server this should work just fine. 

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

2011-04-05 Thread Vikash
Hi

Can any body tel give me any link og android tutorial. so that i can
start Android application building??


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] Android Tutorial

2011-04-05 Thread TreKing
On Tue, Apr 5, 2011 at 11:49 AM, Vikash
srivastava.vikash.bs...@gmail.comwrote:

 Can any body tel give me any link og android tutorial. so that i can start
 Android application building??


google.com

-
TreKing http://sites.google.com/site/rezmobileapps/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] Re: Activity lifecycle

2011-04-05 Thread TreKing
On Mon, Apr 4, 2011 at 9:29 AM, Gino ginolee...@gmail.com wrote:

 In my tests, it looks like onSavedInstanceState() does not get called when
 switching from portrait to landscape mode, or vice versa.


Do you have any flags set to lock the orientation? Rotating the device
always causes a destroy - recreate under normal circumstances, AFAIK.

-
TreKing http://sites.google.com/site/rezmobileapps/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] Layout and GraphicsView

2011-04-05 Thread TreKing
On Mon, Apr 4, 2011 at 11:20 AM, henry zhlu...@gmail.com wrote:

 I need to add two buttons and one textView with a Graphicsview.


What is a Graphicsview?


 How do I do this?


Read the documentation?


 I noticed an expert, Tony Obrien, has an code example, Could you share with
 me?


If *you* noticed the example, why do you need *us* to share it with you?

-
TreKing http://sites.google.com/site/rezmobileapps/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] Keycode EVENTs

2011-04-05 Thread TreKing
On Mon, Apr 4, 2011 at 12:41 PM, kiros88 ghui...@gmail.com wrote:

 Iono if it is KEYCODE_HOME cuz when i try to manipulate like small task
 while keeping it the same it won't do it.


If you're trying to do what I think you're trying to do, you can't.

-
TreKing http://sites.google.com/site/rezmobileapps/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] Make Text View Editable upon longclick

2011-04-05 Thread TreKing
On Sat, Apr 2, 2011 at 11:00 PM, Srinivas VG
srinivas.rvcegov...@gmail.comwrote:

 But I was unable to perform the function...plz let me know if there are any
 other approaches...


Swap the TextView out with an EditText.

-
TreKing http://sites.google.com/site/rezmobileapps/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: Activity lifecycle

2011-04-05 Thread Hari Edo

On Apr 4, 10:29 am, Gino ginolee...@gmail.com wrote:
 In my tests, it looks like onSavedInstanceState() does not get called
 when switching from portrait to landscape mode, or vice versa.

There is no 'onSavedInstanceState' method in Activity.
Is that a typo in your question, or a typo in your code?
Did you mean 'onSaveInstanceState'?

Eclipse will put a little arrow in the left margin if you
are correctly overriding a base class's method.  You can
of course make a method of any name you want, but there is
a very small likelihood that it will ever get 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


Re: [android-developers] App shows up on PC search but not on mobile device search

2011-04-05 Thread TreKing
On Sat, Apr 2, 2011 at 4:22 AM, Godalot mze...@gmail.com wrote:

 Anybody know what's up?


Android Market search is crap.

-
TreKing http://sites.google.com/site/rezmobileapps/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] FACEBOOK ANDROID SDK API Problem to get access token

2011-04-05 Thread TreKing
On Tue, Apr 5, 2011 at 11:30 AM, elioncho elion...@gmail.com wrote:

 Does anyone knows a workaround for this?


Ask on a forum dedicated to the Facebook API. This group is for the Android
SDK.

-
TreKing http://sites.google.com/site/rezmobileapps/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] can't find my location through gps

2011-04-05 Thread TreKing
2011/4/2 henry12 henry12...@gmail.com

 Location location=locationManager.getLastKonwLocation(provider); i find
 that location==null; through my G4 i can find my location but int System 1.5
 i find nothing,who can tell me why?


If by System 1.5 you mean the emulator, there is no last known location
until you set it with the Emulator control.

-
TreKing http://sites.google.com/site/rezmobileapps/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 Layouts Are Horrible

2011-04-05 Thread Leo

I agree with the sentiment of the post.There is definitely a lot of
scope for improvment in layouts. If layout designing was on par with
other technologies it would make life easy for a lot of developers.

It is not just a matter of learning xml. I know xml fully well, and
haven't used the gui tool yet. I only create layouts with handwritten
xml. But when you encounter two attributes like gravity and
layout_gravity you scratch your head and  question why the names are
not more intuitive (for something that sound so close).

On Apr 5, 9:36 am, TreKing treking...@gmail.com wrote:
 Comparing ADT to Visual Studio is a little ridiculous. Using a .Net language
 like C# in VS to design a GUI is a thing of beauty, but it's gotten to its
 current point of sophistication after *a lot* of time, money, and
 engineering effort. This is one of Microsoft's premier products and they've
 been perfecting it for a long time and do so because it makes them a lot of
 money.

 Considering how long it's been around and the limited resources (I assume, I
 don't know for sure) that are available for ADT, it's pretty damn good.

 Honestly, this thread kind of reminds me of the type of whiny users who
 would leave 1-star ratings for an image editor app because it's not as good
 as PhotoShop. Most of us have gotten these kinds of reviews and it's
 freaking annoying.

 Complaining and comparing the tool to VS without even clarifying what the
 issues are doesn't help anyone. Leave some useful, constructive criticism
 for the developers. Like I said before, they're on this list and are very
 responsive.

 Also, isn't it open-source? So if it's not good enough for you ... well, um
 ... quit yer bitchin' and contribute to making it as it good as you think it
 should be, eh? :-)

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/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 Position a android button properly?

2011-04-05 Thread TreKing
On Sun, Apr 3, 2011 at 2:18 PM, Ibrahim Khan phirebur...@gmail.com wrote:

 Does anyone know how to position a android button exactly where you want
 it?


Yes.

-
TreKing http://sites.google.com/site/rezmobileapps/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] Blowfish encryption

2011-04-05 Thread madushanka
can i use the Blowfish encryption algorithm to encrypt and decrypt the
files? i read that Android SDK not support to the Blowfish
encryption.  If so what is the good algorithm should i use? Please
give me some detail description.

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

2011-04-05 Thread TreKing
On Sun, Apr 3, 2011 at 3:39 PM, Saurabh Patil hi5ranjits...@gmail.comwrote:

 some times it shows me message to force to close without any changes to
 code


Debug your code 

-
TreKing http://sites.google.com/site/rezmobileapps/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] Blowfish encryption

2011-04-05 Thread madushanka
can i use the Blowfish encryption algorithm to encrypt and decrypt the
files? i read that Android SDK not support to the Blowfish
encryption.  If so what is the good algorithm should i use? Please
give me some detail description.

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


[android-developers] Using a 9 patch as a listSelector affects padding

2011-04-05 Thread jsera
I don't want this. How do I prevent the 9 patch from adding padding to
the ListView.

I have NO, repeat, NO pixels on the bottom, or the right hand side,
which the docs say add padding. They are not there.

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

2011-04-05 Thread Cliff Davies
You can do this by setting the margins appropriately

On Tue, Apr 5, 2011 at 6:16 PM, TreKing treking...@gmail.com wrote:

 On Sun, Apr 3, 2011 at 2:18 PM, Ibrahim Khan phirebur...@gmail.comwrote:

 Does anyone know how to position a android button exactly where you want
 it?


 Yes.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

[android-developers] Re: Blowfish encryption

2011-04-05 Thread Sudhakar Chavali
You can always go with AES or 3DES algorithm. I would always prefer
AES over 3DES when it meant for local storage and security is
concerned. As a blackberry developer I would prefer using 3DES
(Because it was one of the practice adopted by Blackberry world) when
it is meant for data transfer over net. I continued the same practice
for Android applications too. But if you are not concerned with very
high security DES is OK, but I have not tested that.

http://www.tutorials-android.com/learn/How_to_encrypt_and_decrypt_strings.rhtml

One more thing is never forget about bouncy castle API it shall
support all most all preferred encryption techniques.


http://stackoverflow.com/questions/3150830/android-encryption

Best Regards
Sudhakar Chavali




On Apr 5, 1:17 pm, madushanka chamilhewag...@gmail.com wrote:
 can i use the Blowfish encryption algorithm to encrypt and decrypt the
 files? i read that Android SDK not support to the Blowfish
 encryption.  If so what is the good algorithm should i use? Please
 give me some detail description.

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

2011-04-05 Thread Justin Anderson
* You can do this by setting the margins appropriately*

It would probably be better to do this using layouts appropriately.  But I
like TreKing's answer... It answers the OP's question quite nicely.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 11:47 AM, Cliff Davies cliff.dav...@gmail.comwrote:

 You can do this by setting the margins appropriately


 On Tue, Apr 5, 2011 at 6:16 PM, TreKing treking...@gmail.com wrote:

 On Sun, Apr 3, 2011 at 2:18 PM, Ibrahim Khan phirebur...@gmail.comwrote:

 Does anyone know how to position a android button exactly where you want
 it?


 Yes.


 -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using a 9 patch as a listSelector affects padding

2011-04-05 Thread Justin Anderson
Without showing us what you are doing exactly (i.e. some code), you aren't
going to get a good answer.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 11:37 AM, jsera gall.blad...@gmail.com wrote:

 I don't want this. How do I prevent the 9 patch from adding padding to
 the ListView.

 I have NO, repeat, NO pixels on the bottom, or the right hand side,
 which the docs say add padding. They are not there.

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

2011-04-05 Thread social hub
Hi

I am trying to connect over bluetooth.

after initiating connection through the app the system prompts for pairing
request and it takes  1 0r 3 seconds to get to that prompt. Finally I
select pair

The other device also prompts for pairing request and  I selected pair

After these things I still get connection refused

I have android 2.1 devices.

Any one has any suggestions how to get this resolved or any thoughts or
ideas

thanks

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

Re: [android-developers] Bluetooth connection refused

2011-04-05 Thread Kristopher Micinski
This has also happened to me, where even after you accept the pairing
request you still get a connection refused error. I'm not sure why it
happens, but to fix it in my code I've always just used some strategy
to try again if this happens.

However, when I try it the next time it (usually) works, I've never
had prolonged problems with it, because once you're paired you should
be good to go.

Kris

On Tue, Apr 5, 2011 at 3:09 PM, social hub shubem...@gmail.com wrote:
 Hi

 I am trying to connect over bluetooth.

 after initiating connection through the app the system prompts for pairing
 request and it takes  1 0r 3 seconds to get to that prompt. Finally I
 select pair

 The other device also prompts for pairing request and  I selected pair

 After these things I still get connection refused

 I have android 2.1 devices.

 Any one has any suggestions how to get this resolved or any thoughts or
 ideas

 thanks

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

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

2011-04-05 Thread Kristopher Micinski
On Tue, Apr 5, 2011 at 7:29 AM, Marcin Orlowski
webnet.andr...@gmail.com wrote:

 On 5 April 2011 12:32, Kirti Joshi joshikirti...@gmail.com wrote:

 i wanna code for same application,  can any one help me


 https://market.android.com/details?id=br.com.android.appointments.otavio.massard.mendes

 No.


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

Generally if the developer does not release the code themselves no one
else will have it.  If you feel you really need it (which you
shouldn't, because this is a common problem) contact the developer.
However, if they actually want to make money off their app, they
probably won't give the code to you, and if you're asking for it it
probably won't be of much use to you in the first place.

Look in the SDK examples and publicly available apps for inspiration
instead and try to emulate what you want to do,

Kris

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


Re: [android-developers] How to Position a android button properly?

2011-04-05 Thread Cliff Davies
I assumed he was looking to do precise positioning but otherwise I totally
agree.  And also with TreKing who, as always, puts the answer very
succinctly :)

On Tue, Apr 5, 2011 at 8:00 PM, Justin Anderson magouyaw...@gmail.comwrote:

 * You can do this by setting the margins appropriately*

 It would probably be better to do this using layouts appropriately.  But I
 like TreKing's answer... It answers the OP's question quite nicely.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Tue, Apr 5, 2011 at 11:47 AM, Cliff Davies cliff.dav...@gmail.comwrote:

 You can do this by setting the margins appropriately


 On Tue, Apr 5, 2011 at 6:16 PM, TreKing treking...@gmail.com wrote:

 On Sun, Apr 3, 2011 at 2:18 PM, Ibrahim Khan phirebur...@gmail.comwrote:

 Does anyone know how to position a android button exactly where you want
 it?


 Yes.


 -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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


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

2011-04-05 Thread Kristopher Micinski
On Tue, Apr 5, 2011 at 5:07 AM, Filip Havlicek havlicek.fi...@gmail.com wrote:
 Then it should work just fine.

 2011/4/5 Brad Stintson geek.bin...@gmail.com

 Firstly, I send data using putExtra from A to B. Then I store data in
 variable and then I send again from B to C.

 On Tue, Apr 5, 2011 at 1:18 PM, Filip Havlicek havlicek.fi...@gmail.com
 wrote:

 What error? How exactly are you sending the string from A to B and from B
 to C? Are you reusing the same intent or are you creating a new one?

 Best regards,
 Filip Havlicek
 2011/4/5 Brad Stintson geek.bin...@gmail.com

 I have three activities say A,B and C. They are linked as A--B--C.
 Now I want to send a string of data from activity A to activity B and C.
 When I use putextra() then from A to B it works perfectly but from B to
 C it shows error. How to achieve that?
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 will have to elaborate, first give an example of the error you are
getting. Is it a null pointer dereference or something? This is most
likely the cause of your error, because putExtra isn't likely to
fail this way.

Provide a small sample of your code (50 lines) and also a small stack
dump showing exactly where the error is, then try to identify where
your error might be coming from. Then we can help you figure it out.

Kris

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


[android-developers] Re: Blowfish encryption

2011-04-05 Thread madushanka
Thank you very much for your support.

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

2011-04-05 Thread b_t
Hi,

In my app there is a possibility to add a shortcut to my widget.
It works well for almost every shortcut type.

But doesn't work well for shortcuts of a specific application. When I
add this
shortcut to my home screen by the launcher and click on it the
following intent will be
executed:


04-05 20:59:39.384: INFO/ActivityManager(184): Starting: Intent
{ act=android.intent.action.VIEW flg=0x1000
cmp=vStudio.Android.GPhotoPaid/.GPhotoMain bnds=[125,553][235,671]
(has extras) } from pid 12552

It works as expected. But when I create this shortcut from my app and
I click on its icon, then


04-05 20:59:05.844: INFO/ActivityManager(184): Starting: Intent
{ flg=0x1000 cmp=vStudio.Android.GPhotoPaid/.GPhotoMain
bnds=[133,408][201,456] (has extras) } from pid -1


The difference is the VIEW action. When I add the VIEW action manually
to this intent,
then this shortcut works well too, but I cannot do that of course
because it makes
other type of shortcuts wrong.

I have looked throught the Launcher source code how it handles
shortcut intents but
it doesn't do anything with it, just adds a FLAG_ACTIVITY_NEW_TASK to
it.

Can anybody help me what cause this difference?

Thanks,
Tamás

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

2011-04-05 Thread b_t
Maybe it depends on the Launcher. I just tried Launcher Pro,
and it creates the same wrong shortcut intent as created
from my app. I wish I knew what Launcher is the default launcher
in my device ...


On ápr. 5, 21:38, b_t bartata...@gmail.com wrote:
 Hi,

 In my app there is a possibility to add a shortcut to my widget.
 It works well for almost every shortcut type.

 But doesn't work well for shortcuts of a specific application. When I
 add this
 shortcut to my home screen by the launcher and click on it the
 following intent will be
 executed:

 04-05 20:59:39.384: INFO/ActivityManager(184): Starting: Intent
 { act=android.intent.action.VIEW flg=0x1000
 cmp=vStudio.Android.GPhotoPaid/.GPhotoMain bnds=[125,553][235,671]
 (has extras) } from pid 12552

 It works as expected. But when I create this shortcut from my app and
 I click on its icon, then

 04-05 20:59:05.844: INFO/ActivityManager(184): Starting: Intent
 { flg=0x1000 cmp=vStudio.Android.GPhotoPaid/.GPhotoMain
 bnds=[133,408][201,456] (has extras) } from pid -1

 The difference is the VIEW action. When I add the VIEW action manually
 to this intent,
 then this shortcut works well too, but I cannot do that of course
 because it makes
 other type of shortcuts wrong.

 I have looked throught the Launcher source code how it handles
 shortcut intents but
 it doesn't do anything with it, just adds a FLAG_ACTIVITY_NEW_TASK to
 it.

 Can anybody help me what cause this difference?

 Thanks,
 Tamás

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


[android-developers] Remote access to phones

2011-04-05 Thread kypriakos
Hi all,

I am trying to figure out a way to access the htc phones (running
Android 1.6 and 2.2) over ssh.
I used the following I found from a posting:

setprop service.adb.tcp.port 
stop adbd (by the way this means reboot unless you have a 
terminal
on the phone)
start adbd
   and from remote node use adb connect ip addr:

Is there an open-source ssh server package somewhere? I didn't find
one on Market.

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] Keycode EVENTs

2011-04-05 Thread Justin Anderson
The Android OS does not allow an application to intercept the home button
key...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 11:02 AM, TreKing treking...@gmail.com wrote:

 On Mon, Apr 4, 2011 at 12:41 PM, kiros88 ghui...@gmail.com wrote:

 Iono if it is KEYCODE_HOME cuz when i try to manipulate like small task
 while keeping it the same it won't do it.


 If you're trying to do what I think you're trying to do, you can't.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

[android-developers] Re: Using a 9 patch as a listSelector affects padding

2011-04-05 Thread jsera
ListView
android:id=@+id/mainList
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_below=@+id/topNav
android:layout_above=@+id/zgallery
android:cacheColorHint=#FFF
android:divider=@null
android:drawSelectorOnTop=true
android:listSelector=@drawable/list_selected/

That's 100% it. The selector is a 9-patch called list_selected.9.png.

With the last two attributes, and a 9-patch, I get extra padding.
Without the last two attributes, I don't get extra padding.



On Apr 5, 12:01 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Without showing us what you are doing exactly (i.e. some code), you aren't
 going to get a good answer.

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Tue, Apr 5, 2011 at 11:37 AM, jsera gall.blad...@gmail.com wrote:
  I don't want this. How do I prevent the 9 patch from adding padding to
  the ListView.

  I have NO, repeat, NO pixels on the bottom, or the right hand side,
  which the docs say add padding. They are not there.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Promotional Graphic in PNG gets converted to _very lossy_ JPEG in Android Market?

2011-04-05 Thread Marc Reichelt
Hi!

I have a problem with the Android Market. I uploaded a promotional
graphic (180w x 120h) as PNG. However, the Android Market seems to
apply a _very_ lossy JPEG compression on it - it just looks ugly.
Here is the image I uploaded to the Android Market:
  http://marcreichelt.de/misc/nichtlustig/before.png
It gets converted to this PNG image (which basically is a JPEG image,
but with .png extension):
  http://marcreichelt.de/misc/nichtlustig/after.png

Is this a bug in the Android Market, or am I doing something wrong? I
even tried to upload a JPEG image with not so high compression or as a
PNG image with an optimized 256 color palette (which is even smaller
than the resulting JPEG file of the market) - but he is still screwing
up the image. :-/


Thanks for your help  regards

Marc Reichelt   ||   http://www.marcreichelt.de/

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

2011-04-05 Thread TreKing
On Sun, Apr 3, 2011 at 9:21 PM, adri adrianadalto...@gmail.com wrote:

  it alwayd says socket is not connected what does thay mean?


http://tinyurl.com/3wpmd4v :/

-
TreKing http://sites.google.com/site/rezmobileapps/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] When to set android:anyDensity to what value?

2011-04-05 Thread MarcoAndroid
Hello there,

I've read http://developer.android.com/guide/practices/screens_support.html
and
http://groups.google.com/group/android-developers/browse_thread/thread/ed305e5d08f11202/6b8feb7a05d9ef6b
and
http://groups.google.com/group/android-developers/browse_frm/thread/518ee3894af29650
and more related sources.

Still, what and when to set android:anyDensity to I find hard to
figure out.

So, are these conclusions correct:

1- android:anyDensity has been introduced really only for older apps
(1.6 level 4 or lower) because those were most likely built with
hardcoded density-dependent values like 'px'? And apps with level
before 4 even don't understand density dependent resource directories
like res/drawable-hdpi?
By setting android:anyDensity=false, Android tries to scale those
resources that use px values and in 'res/drawable' to match the
device's real screen density.
From level 5 onwards it is a well-known best-practice to always use dp
and sp and density dependend resource directories, so usually apps
take care themselves of being independent using those. And thus
normally for those apps android:anyDensity=true is sufficient (no
auto-density-scaling).

2- If android:anyDensity=false are these density dependend resource
directories plainly ignored as mentioned in this thread?
http://groups.google.com/group/android-developers/browse_frm/thread/518ee3894af29650
But: how does the android:anyDensity=true or false relate to
resources that you might have put in res/drawable-mdpi and res/
drawable-hdpi etc? Does that setting then only have effect for those
density resources you didn't specify in any configuration specific
density-directory, and how?

3- And what if I'm lazy and for any app I make I don't want to create
density specific resources (like images), so only have the 'res/
drawable' dir, but do use dp and sp everywhere... What should
android:anyDensity be set to then? My guess is false so Android will
alwyas scale my resources from 'drawable'...

Regards,
Marco

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: JUnit test case blocking main UI thread for AsyncTask

2011-04-05 Thread Jason
Hi,

Missed your response.  This didn't work for me unfortunately.

Interestingly if I mark the test with @UiThreadTest I get the same
deadlock behavior, which makes me wonder whether there is some sort of
JUnit test state being re-used when the test is run in a suite?

As it stands I have a bunch of important test cases that I'm having to
just comment out because they hang when run in the suite (although
they all run and pass when executed individually).

I feel like I've tried everything to get these to work, but clearly
I'm missing something here.

Any other ideas?

Thanks,

Jason.

On Mar 17, 7:59 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 JUnit test-methods in the instrumentation test-case classes always run in
 another thread than the main UI thread. I run both indiviual test-cases and
 test-suites (that execute lists of test-cases) and test-methods are always
 called in a different thread than the background thread.

 I read this in your original question: *... This method call (internally)
 launches an AsyncTask ...*. I ran into a problem and this may be related to
 your issue:
 You have to *create the first AsyncTask of your (test-)process in the main
 UI thread*. If you don't do this, and the (first) AsyncTask is created in a
 non-UI thread (e.g. during a test() method), weird stuff can happen. In
 other words: Be sure that the VM loads the AsyncTask *class* in the main UI
 thread. From then on, you can create and execute AsynTasks in any thread.

 E.g in your first test's setup or the first testX() method:
   ...
   runTestOnUIThread(new Runnable() {
     public void run() {
       new AsyncTask(); // just create one and let it go; doing this makes
 sure that the class loads in the main UI thread.
     }
   }
   ...
   ... // now you're free to create and execute AsyncTasks (directly or
 through other method calls).

 Maybe this problem is related to the one you see.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using a 9 patch as a listSelector affects padding

2011-04-05 Thread Justin Anderson
What does your 9 patch look like?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 2:27 PM, jsera gall.blad...@gmail.com wrote:

 ListView
android:id=@+id/mainList
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_below=@+id/topNav
android:layout_above=@+id/zgallery
android:cacheColorHint=#FFF
android:divider=@null
android:drawSelectorOnTop=true
android:listSelector=@drawable/list_selected/

 That's 100% it. The selector is a 9-patch called list_selected.9.png.

 With the last two attributes, and a 9-patch, I get extra padding.
 Without the last two attributes, I don't get extra padding.



 On Apr 5, 12:01 pm, Justin Anderson magouyaw...@gmail.com wrote:
  Without showing us what you are doing exactly (i.e. some code), you
 aren't
  going to get a good answer.
 
  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
  On Tue, Apr 5, 2011 at 11:37 AM, jsera gall.blad...@gmail.com wrote:
   I don't want this. How do I prevent the 9 patch from adding padding to
   the ListView.
 
   I have NO, repeat, NO pixels on the bottom, or the right hand side,
   which the docs say add padding. They are not there.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, 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

Re: [android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread Dianne Hackborn
On Tue, Apr 5, 2011 at 10:15 AM, Leo allway...@gmail.com wrote:

 It is not just a matter of learning xml. I know xml fully well, and
 haven't used the gui tool yet. I only create layouts with handwritten
 xml. But when you encounter two attributes like gravity and
 layout_gravity you scratch your head and  question why the names are
 not more intuitive (for something that sound so close).


This isn't really related to UI builder tools or the IDE, it is just an
aspect of the platform APIs.  By convention, attributes with a layout_
prefix are parsed by the parent layout manager.  So layout_gravity applies
to the view's layout manager if it supports the gravity attribute,
controlling how the layout of it happens.  gravity is just a regular
attribute for the view, controlling its internal behavior; for example it
tells TextView how to position the text inside itself.

-- 
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] When to set android:anyDensity to what value?

2011-04-05 Thread Dianne Hackborn
Always set it to true...  or better, just make android:targetSdkVersion =
4.  Having it false is only for compatibility with old apps that were
written before there was a concept of density in the APIs.  Using this
compatibility mode can cause some undesirable artifacts such as text metrics
being slightly inconsistent with actual rendering.

On Tue, Apr 5, 2011 at 1:42 PM, MarcoAndroid marco...@gmail.com wrote:

 Hello there,

 I've read
 http://developer.android.com/guide/practices/screens_support.html
 and

 http://groups.google.com/group/android-developers/browse_thread/thread/ed305e5d08f11202/6b8feb7a05d9ef6b
 and

 http://groups.google.com/group/android-developers/browse_frm/thread/518ee3894af29650
 and more related sources.

 Still, what and when to set android:anyDensity to I find hard to
 figure out.

 So, are these conclusions correct:

 1- android:anyDensity has been introduced really only for older apps
 (1.6 level 4 or lower) because those were most likely built with
 hardcoded density-dependent values like 'px'? And apps with level
 before 4 even don't understand density dependent resource directories
 like res/drawable-hdpi?
 By setting android:anyDensity=false, Android tries to scale those
 resources that use px values and in 'res/drawable' to match the
 device's real screen density.
 From level 5 onwards it is a well-known best-practice to always use dp
 and sp and density dependend resource directories, so usually apps
 take care themselves of being independent using those. And thus
 normally for those apps android:anyDensity=true is sufficient (no
 auto-density-scaling).

 2- If android:anyDensity=false are these density dependend resource
 directories plainly ignored as mentioned in this thread?

 http://groups.google.com/group/android-developers/browse_frm/thread/518ee3894af29650
 But: how does the android:anyDensity=true or false relate to
 resources that you might have put in res/drawable-mdpi and res/
 drawable-hdpi etc? Does that setting then only have effect for those
 density resources you didn't specify in any configuration specific
 density-directory, and how?

 3- And what if I'm lazy and for any app I make I don't want to create
 density specific resources (like images), so only have the 'res/
 drawable' dir, but do use dp and sp everywhere... What should
 android:anyDensity be set to then? My guess is false so Android will
 alwyas scale my resources from 'drawable'...

 Regards,
 Marco

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-04-05 Thread Mrid
referring to the solution in bug report, I tried to play a .m3u8
format file by using httplive:// instead of http:// in the url. I was
able to play the sample video from apple but I am not able to
play .m3u8 files which I have. These are directly from inlet and I am
able to play them on iphones and safari web browser, but not on
android's media player and web browser. Url is in the log

04-05 13:45:11.506: ERROR/PATH(630): Path =
http://wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/sample4/playlist.m3u8
04-05 13:45:12.007: INFO/StagefrightPlayer(33): setDataSource('http://
wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/sample4/
playlist.m3u8')
04-05 13:45:12.087: INFO/NuHTTPDataSource(33): connect to
http://wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/sample4/playlist.m3u8
@0
04-05 13:45:12.377: INFO/NuCachedSource2(33): ERROR_END_OF_STREAM
04-05 13:45:12.387: ERROR/MediaPlayer(630): error (1, -2147483648)
04-05 13:45:12.447: ERROR/StreamingPlayer(630): error: Prepare
failed.: status=0x1
04-05 13:45:12.447: ERROR/StreamingPlayer(630): java.io.IOException:
Prepare failed.: status=0x1






On Feb 24, 9:38 am, Fox Mulder zebeub...@gmail.com wrote:
 @Samuh

 I finaly discovered why we have the same error..
 It is because, the streams we are trying to play are in main-profil
 and SDK3.0 only can play Baseline-profil
 take a look herehttp://developer.android.com/guide/appendix/media-formats.html

 All the stream i tried in baseline-profile were OK
 02-24 16:25:06.901: INFO/avc_utils(33): found AVC codec config (192 x
 144, Baseline-profile level 1.1)
 02-24 16:28:39.220: INFO/avc_utils(33): found AVC codec config (320 x
 240, Baseline-profile level 1.3)
 02-24 16:30:45.821: INFO/avc_utils(33): found AVC codec config (480 x
 360, Baseline-profile level 2.1)
 02-24 16:39:48.302: INFO/avc_utils(33): found AVC codec config (320 x
 240, Baseline-profile level 1.2)
 02-24 16:41:18.690: INFO/avc_utils(33): found AVC codec config (176 x
 144, Baseline-profile level 1.0)

 These one were KO
 02-24 16:45:59.700: INFO/avc_utils(33): found AVC codec config (640 x
 360, Main-profile level 3.0)
 02-24 16:52:53.350: INFO/avc_utils(33): found AVC codec config (320 x
 180, Main-profile level 1.3)

 Zbb

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

2011-04-05 Thread TreKing
On Mon, Apr 4, 2011 at 10:43 AM, Narinder Beri narinderb...@gmail.comwrote:

 I am passing a member variable of AsyncTask from onPostExecute method to a
 method of the UI thread as below - is it safe OR am I doing something very
 wrong here?


Have you stepped through the code? Can you confirm the value is not-null
before passing up to the PostManager?

My guess is you're just not initializing the value.

-
TreKing http://sites.google.com/site/rezmobileapps/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: JUnit test case blocking main UI thread for AsyncTask

2011-04-05 Thread Jason
OK.. So after re-thinking this I realized why the problem is
occurring, although I still do not have a solution.

When the test is running it seems to be treating itself as the main UI
thread, which would make sense since it's an
ActivityInstrumentationTestCase2.  The AsyncTask performs the
necessary callbacks in the onPostExecute method, which also runs on
the main UI thread.

Because my test is entering a wait loop so it ensures the AsyncTask
has completed, it is essentially blocking the main UI thread and the
onPostExecute method cannot execute.

So.. the question becomes.. how do we assert the results of an
AsyncTask in JUnit?  We can't wait for the Async task to complete for
the reasons described above, and I don't want to move my callback code
to the doInBackground method because in the real world I need/want
the callback to be on the main UI thread.

Hopefully someone out there has a pattern for asserting asynctask
outcomes in a test case...

Thanks.

On Apr 5, 1:46 pm, Jason jason.poli...@gmail.com wrote:
 Hi,

 Missed your response.  This didn't work for me unfortunately.

 Interestingly if I mark the test with @UiThreadTest I get the same
 deadlock behavior, which makes me wonder whether there is some sort 
 ofJUnittest state being re-used when the test is run in a suite?

 As it stands I have a bunch of important test cases that I'm having to
 just comment out because they hang when run in the suite (although
 they all run and pass when executed individually).

 I feel like I've tried everything to get these to work, but clearly
 I'm missing something here.

 Any other ideas?

 Thanks,

 Jason.

 On Mar 17, 7:59 pm, Streets Of Boston flyingdutc...@gmail.com wrote:







 JUnittest-methods in the instrumentation test-case classes always run in
  another thread than the main UI thread. I run both indiviual test-cases and
  test-suites (that execute lists of test-cases) and test-methods are always
  called in a different thread than the background thread.

  I read this in your original question: *... This method call (internally)
  launches an AsyncTask ...*. I ran into a problem and this may be related to
  your issue:
  You have to *create the first AsyncTask of your (test-)process in the main
  UI thread*. If you don't do this, and the (first) AsyncTask is created in a
  non-UI thread (e.g. during a test() method), weird stuff can happen. In
  other words: Be sure that the VM loads the AsyncTask *class* in the main UI
  thread. From then on, you can create and execute AsynTasks in any thread.

  E.g in your first test's setup or the first testX() method:
    ...
    runTestOnUIThread(new Runnable() {
      public void run() {
        new AsyncTask(); // just create one and let it go; doing this makes
  sure that the class loads in the main UI thread.
      }
    }
    ...
    ... // now you're free to create and execute AsyncTasks (directly or
  through other method calls).

  Maybe this problem is related to the one you see.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using a 9 patch as a listSelector affects padding

2011-04-05 Thread jsera
It looks like this:

http://www.yourmomsa.com/misc/screenshot.png



On Apr 5, 2:03 pm, Justin Anderson magouyaw...@gmail.com wrote:
 What does your 9 patch look like?

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Tue, Apr 5, 2011 at 2:27 PM, jsera gall.blad...@gmail.com wrote:
  ListView
                 android:id=@+id/mainList
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 android:layout_below=@+id/topNav
                 android:layout_above=@+id/zgallery
                 android:cacheColorHint=#FFF
                 android:divider=@null
                 android:drawSelectorOnTop=true
                 android:listSelector=@drawable/list_selected/

  That's 100% it. The selector is a 9-patch called list_selected.9.png.

  With the last two attributes, and a 9-patch, I get extra padding.
  Without the last two attributes, I don't get extra padding.

  On Apr 5, 12:01 pm, Justin Anderson magouyaw...@gmail.com wrote:
   Without showing us what you are doing exactly (i.e. some code), you
  aren't
   going to get a good answer.

   Thanks,
   Justin Anderson
   MagouyaWare Developerhttp://sites.google.com/site/magouyaware

   On Tue, Apr 5, 2011 at 11:37 AM, jsera gall.blad...@gmail.com wrote:
I don't want this. How do I prevent the 9 patch from adding padding to
the ListView.

I have NO, repeat, NO pixels on the bottom, or the right hand side,
which the docs say add padding. They are not there.

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

2011-04-05 Thread Leon Parker
Hello Folks,

Please go through the below requirements and let me know if you have any
consultant for the below position?

*Job Title : Java Developer
Location: Nashville, TN.
Duration: 3+ months contract

Bill rate is max 45hr/hr on C2C*

I have a client who wants someone to get started Monday. and they have to be
very solid.

Required:
Core Java/J2EE
OOAD
JavaScripting
I  consultant who is strong in java.
Communciation skills

Thanks
Leon Parker - l...@panzersolutios.com
203-983-9475

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

2011-04-05 Thread TreKing
On Tue, Apr 5, 2011 at 4:42 PM, Leon Parker leon.pan...@gmail.com wrote:

 and they have to be very solid.


Will you accept highly viscous?

-
TreKing http://sites.google.com/site/rezmobileapps/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 Layouts Are Horrible

2011-04-05 Thread jsera
Having developed for Android since the launch of the G1, and having
spent the last 10-11 months writing Android apps full-time, the
layouts aren't actually that bad.

Actually, RelativeLayout isn't that bad. I've never had a layout
simple enough for LinearLayout or FrameLayout, and having spent a
decent amount of time in HTML-land, just the name TableLayout gives me
the willies.

The API itself still needs polishing. Bugs like TextView not being
able to ellipsize anything other than 2 lines, and cutting descenders
off if you mess with the line height are two glaring examples of
things that make Android look beta-ish, but neither one of those have
anything to do with the concept of a layout.

The tools are tolerable, but I wish there was a good way of pulling
them out of Eclipse. (Which would probably be difficult, since a
layout editor not only needs to know where all the project's bitmaps
are, but also has to deal with custom View subclasses and whatnot,
which implies a compiler and virtual machine at the very least)

Truthfully, without the concept of a layout, Android would be much
more of a pain to code for, since differing screen sizes and aspect
ratios would introduce all sorts of complications to even the simplest
UI.

HTML and Android's layouts exist as they do because of the constraints
of not knowing exactly what kind of container you're going to have to
fit your UI into. It means you'll have to wrap your head around
exactly how they abstract things away, but they exist as they do for a
good reason.

On Apr 5, 2:07 pm, Dianne Hackborn hack...@android.com wrote:
 On Tue, Apr 5, 2011 at 10:15 AM, Leo allway...@gmail.com wrote:
  It is not just a matter of learning xml. I know xml fully well, and
  haven't used the gui tool yet. I only create layouts with handwritten
  xml. But when you encounter two attributes like gravity and
  layout_gravity you scratch your head and  question why the names are
  not more intuitive (for something that sound so close).

 This isn't really related to UI builder tools or the IDE, it is just an
 aspect of the platform APIs.  By convention, attributes with a layout_
 prefix are parsed by the parent layout manager.  So layout_gravity applies
 to the view's layout manager if it supports the gravity attribute,
 controlling how the layout of it happens.  gravity is just a regular
 attribute for the view, controlling its internal behavior; for example it
 tells TextView how to position the text inside itself.

 --
 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: Android Layouts Are Horrible

2011-04-05 Thread Xavier Ducrohet
Our layout editors in Eclipse have been somewhat low priority for a
long time but we are now focusing some effort on it. You may have seen
that ADT 10 includes a lot of new features and we have more coming for
the next versions.

We are working on:
- better interactivity in the editor itself.
- better integration into Eclipse (*much* better autocompletion in the
XML editor, quick assist, refactoring, go to declaration)
- better rendering (3.0 is a huge step in the right direction already,
but we're adding some improvements and back porting it to earlier
versions)
- new features to help you design layouts (extract as include
refactoring, show included in, data in listviews, etc...)

If you want to follow our progress you can look at
http://tools.android.com/recent

As someone said, this is open source, and worked on directly in the
open (you can go to
http://android.git.kernel.org/?p=platform/sdk.git;a=summary to see the
latest changes or to
https://review.source.android.com//#q,status:open+project:platform/sdk,n,z
to see pending changes), and while we aren't forcing (or expecting)
anyone to contribute, if you feel passionate about tools and want to
contribute, please let us know (see http://tools.android.com/feedback)

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

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Using a 9 patch as a listSelector affects padding

2011-04-05 Thread Justin Anderson
From the Dev Guide on 9-Patch drawables (
http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
):
*A NinePatch drawable is a standard PNG image that includes an extra
1-pixel-wide border. It must be saved with the extension .9.png, and saved
into the res/drawable/ directory of your project.
*
From the image you supplied it looks like you have much more than 1 extra
pixel to define the stretchable areas...  That very well could be the cause
of your padding

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 3:35 PM, jsera gall.blad...@gmail.com wrote:

 It looks like this:

 http://www.yourmomsa.com/misc/screenshot.png



 On Apr 5, 2:03 pm, Justin Anderson magouyaw...@gmail.com wrote:
  What does your 9 patch look like?
 
  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
  On Tue, Apr 5, 2011 at 2:27 PM, jsera gall.blad...@gmail.com wrote:
   ListView
  android:id=@+id/mainList
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:layout_below=@+id/topNav
  android:layout_above=@+id/zgallery
  android:cacheColorHint=#FFF
  android:divider=@null
  android:drawSelectorOnTop=true
  android:listSelector=@drawable/list_selected/
 
   That's 100% it. The selector is a 9-patch called list_selected.9.png.
 
   With the last two attributes, and a 9-patch, I get extra padding.
   Without the last two attributes, I don't get extra padding.
 
   On Apr 5, 12:01 pm, Justin Anderson magouyaw...@gmail.com wrote:
Without showing us what you are doing exactly (i.e. some code), you
   aren't
going to get a good answer.
 
Thanks,
Justin Anderson
MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
On Tue, Apr 5, 2011 at 11:37 AM, jsera gall.blad...@gmail.com
 wrote:
 I don't want this. How do I prevent the 9 patch from adding padding
 to
 the ListView.
 
 I have NO, repeat, NO pixels on the bottom, or the right hand side,
 which the docs say add padding. They are not there.
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Promotional Graphic in PNG gets converted to _very lossy_ JPEG in Android Market?

2011-04-05 Thread Marc Reichelt
Hi again,

by the way, the app (German language) can be viewed here:
https://market.android.com/details?id=de.nichtlustig.android
All other images apart from the Promotional Graphic look ok.


Regards

Marc Reichelt   ||   http://www.marcreichelt.de/

On 5 Apr., 22:31, Marc Reichelt mcreich...@googlemail.com wrote:
 Hi!

 I have a problem with the Android Market. I uploaded a promotional
 graphic (180w x 120h) as PNG. However, the Android Market seems to
 apply a _very_ lossy JPEG compression on it - it just looks ugly.
 Here is the image I uploaded to the Android Market:
  http://marcreichelt.de/misc/nichtlustig/before.png
 It gets converted to this PNG image (which basically is a JPEG image,
 but with .png extension):
  http://marcreichelt.de/misc/nichtlustig/after.png

 Is this a bug in the Android Market, or am I doing something wrong? I
 even tried to upload a JPEG image with not so high compression or as a
 PNG image with an optimized 256 color palette (which is even smaller
 than the resulting JPEG file of the market) - but he is still screwing
 up the image. :-/

 Thanks for your help  regards

 Marc Reichelt   ||  http://www.marcreichelt.de/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Fade in animation is not getting displayed?

2011-04-05 Thread Justin Anderson
Where is the code for actually running the animation?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 5:47 AM, Pink sivareddy.j...@gmail.com wrote:

 Hi,


I am using fade in animation in my application.

When i try to play fade in animation it is getting played but not
 displayed.

I have layout as follows.


FrameLayout
   Button
android:layout_width=20dip
 android:layout_height=10dip
  .../
ImageView
 android:layout_width=20dip
 android:layout_height=10dip
 android:background=@android:color/white/

/FrameLayout


 By default Button is visible and ImageView is invisible.

  When user selects one option menu item  i am playing fade in
 animation by making ImageView as visible.

  The fade in animation is as follows.

   android:fromAlpha=0.0 android:toAlpha=1.0
android:interpolator=@android:anim/decelerate_interpolator
android:duration=200 android:repeatCount=0

  After 200milli seconds i am making m imageView as INVISIBLE.

  The fade in animation is not getting displayed.

  What is the wrong in the above code?

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

2011-04-05 Thread Justin Anderson
huh?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 4:04 AM, rahul katoc...@gmail.com wrote:

 I m using ase_r25_2.1_04-02-2011.apk for android SDK. From where I
 will get the supported facade?

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

2011-04-05 Thread Justin Anderson
http://www.catb.org/~esr/faqs/smart-questions.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 1:43 AM, Kirti Joshi joshikirti...@gmail.com wrote:

 how to make
 timetable and schedule for a day, week
 and month. in android application.?

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

2011-04-05 Thread Sarath Krishna
Hello every one,

This is the code I wrote a code for uploading data from android phone
to a server

String url = http://www.orsas.com/ServiceMatalan.php;;
MapString, String kvPairs = new HashMapString, String();
kvPairs.put(vehicle, dataRecord.toString());
// Normally I would pass two more JSONObjects.
HttpResponse re = HTTPPoster.doPost(url, kvPairs);
String temp = EntityUtils.toString(re.getEntity());
if (temp.compareTo(SUCCESS)==0)
{
Toast.makeText(this, Sending complete!,
Toast.LENGTH_LONG).show();
}


I get an error that  Httposter could not be resolved. Can anyone plese
help me out with this issue. 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


Re: [android-developers] MediaPlayer

2011-04-05 Thread Justin Anderson
What problem are you having?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Apr 2, 2011 at 4:16 PM, pharaoh edelcides.goncal...@gmail.comwrote:

 Can anyone tell me what is wrong with this code?

 package infinite.fenix.android;

 import java.io.IOException;

 import android.app.Activity;
 import android.media.MediaPlayer;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.ImageButton;

 public class AudioPlayer extends Activity implements OnClickListener {

MediaPlayer player;
ImageButton playButton, nextButton, previousButton;
String audioFile = getString(R.raw.be_oss);

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

playButton = (ImageButton) findViewById(R.id.playButton);
playButton.setOnClickListener(this);
player = new MediaPlayer();
try {
player.setDataSource(audioFile);
} catch (IllegalArgumentException e) {
Log.v(IlegalArgumentException, e.getMessage());
e.printStackTrace();
} catch (IllegalStateException e) {
Log.v(IllegalStateException, e.getMessage());

e.printStackTrace();
} catch (IOException e) {
Log.v(IOException, e.getMessage());
e.printStackTrace();
}

player.setLooping(false);
try {
player.prepare();
} catch (IllegalStateException e) {
Log.v(IllegalStateException, e.getMessage());
e.printStackTrace();
} catch (IOException e) {
Log.v(IOException, e.getMessage());
e.printStackTrace();
}


}

@Override
public void onClick(View v) {

if (player != null){
player.start();
}
}

 }

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

2011-04-05 Thread Justin Anderson
Gee... that's nice.  Thanks for sharing.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Apr 2, 2011 at 4:51 PM, penfoldcrumbs
vortex.planetar...@gmail.comwrote:

 Still unable to upload  and intermittent page load issues as of 22.50
 GMT, April 2nd. Totally unacceptable...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Using a 9 patch as a listSelector affects padding

2011-04-05 Thread jsera
That extra area is transparent pixels, and they are there by design.
They do not define stretchable areas, and the framework pays no
attention to them.

I'm using the draw9patch app that comes with the Android tools. I'm
dragging a completely standard png into the tool, which is outputting
a 9 patch that is exactly what the OS is expecting. I'm not editing
the resulting 9 patch myself at all. I'm relying entirely on the
provided tools.

--

Here's the situation I'm trying to solve:

I have an item in a list that looks abstractly like this:

http://www.yourmomsa.com/misc/sampleItem.png

The code looks like this:

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:paddingLeft=8dip
android:paddingRight=8dip
android:paddingTop=3dip
android:paddingBottom=2dip
android:gravity=center
RelativeLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=@drawable/list_raft
android:padding=8dip
TextView
android:id=@+id/itemHeadline
android:layout_width=fill_parent
android:layout_height=wrap_content
android:textSize=16dip
android:textColor=#000
android:textStyle=bold/
TextView
android:id=@+id/itemDate
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/itemHeadline
android:text=January 86th, 1056 25:66 ZM
android:textColor=#838383
android:textSize=14dip/
/RelativeLayout
/LinearLayout

The gray area would be the LinearLayout, the blue would be the
RelativeLayout.

The item can be variable height, and when a list item is tapped, I
want the overlay to be only over the blue part, or the RelativeLayout.
Since the padding of the LinearLayout is constant, this would seem to
be the perfect situation for a 9 patch.


BBB  U  U TN   N  
B  B U  U   T  NN  N OO
BBB  U  U   T  N N N OO
B  B U  U   T  N  NN OO
BBB   UUT  N   N  

Because the bloody 9 patch is adding Extra padding and making me very
grumpy which all my long-suffering co-workers don't like.






On Apr 5, 3:32 pm, Justin Anderson magouyaw...@gmail.com wrote:
 From the Dev Guide on 9-Patch drawables 
 (http://developer.android.com/guide/topics/graphics/2d-graphics.html#n...
 ):
 *A NinePatch drawable is a standard PNG image that includes an extra
 1-pixel-wide border. It must be saved with the extension .9.png, and saved
 into the res/drawable/ directory of your project.
 *
 From the image you supplied it looks like you have much more than 1 extra
 pixel to define the stretchable areas...  That very well could be the cause
 of your padding

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Tue, Apr 5, 2011 at 3:35 PM, jsera gall.blad...@gmail.com wrote:
  It looks like this:

 http://www.yourmomsa.com/misc/screenshot.png

  On Apr 5, 2:03 pm, Justin Anderson magouyaw...@gmail.com wrote:
   What does your 9 patch look like?

   Thanks,
   Justin Anderson
   MagouyaWare Developerhttp://sites.google.com/site/magouyaware

   On Tue, Apr 5, 2011 at 2:27 PM, jsera gall.blad...@gmail.com wrote:
ListView
               android:id=@+id/mainList
               android:layout_width=fill_parent
               android:layout_height=fill_parent
               android:layout_below=@+id/topNav
               android:layout_above=@+id/zgallery
               android:cacheColorHint=#FFF
               android:divider=@null
               android:drawSelectorOnTop=true
               android:listSelector=@drawable/list_selected/

That's 100% it. The selector is a 9-patch called list_selected.9.png.

With the last two attributes, and a 9-patch, I get extra padding.
Without the last two attributes, I don't get extra padding.

On Apr 5, 12:01 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Without showing us what you are doing exactly (i.e. some code), you
aren't
 going to get a good answer.

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Tue, Apr 5, 2011 at 11:37 AM, jsera gall.blad...@gmail.com
  wrote:
  I don't want this. How do I prevent the 9 patch from adding padding
  to
  the ListView.

  I have NO, repeat, NO pixels on the bottom, or the right hand side,
  which the docs say add padding. They are not there.

  --
  You received this message because you 

Re: [android-developers] help

2011-04-05 Thread Justin Anderson
What?


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Apr 3, 2011 at 8:14 AM, nainfanta nainfa...@gmail.com wrote:

   Can not account registration, who can help me upload an application?

 From Robin 2011-04-03 22:13:01

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-04-05 Thread Mrid
can anyone tell me what can be the problem?
I am stuck on this !!


On Apr 5, 2:15 pm, Mrid mrid@gmail.com wrote:
 referring to the solution in bug report, I tried to play a .m3u8
 format file by using httplive:// instead of http:// in the url. I was
 able to play the sample video from apple but I am not able to
 play .m3u8 files which I have. These are directly from inlet and I am
 able to play them on iphones and safari web browser, but not on
 android's media player and web browser. Url is in the log

 04-05 13:45:11.506: ERROR/PATH(630): Path 
 =http://wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/samp...
 04-05 13:45:12.007: INFO/StagefrightPlayer(33): setDataSource('http://
 wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/sample4/
 playlist.m3u8')
 04-05 13:45:12.087: INFO/NuHTTPDataSource(33): connect 
 tohttp://wealthtv.apple-vod-geo.adaptive.level3.net/sample/samsung/samp...
 @0
 04-05 13:45:12.377: INFO/NuCachedSource2(33): ERROR_END_OF_STREAM
 04-05 13:45:12.387: ERROR/MediaPlayer(630): error (1, -2147483648)
 04-05 13:45:12.447: ERROR/StreamingPlayer(630): error: Prepare
 failed.: status=0x1
 04-05 13:45:12.447: ERROR/StreamingPlayer(630): java.io.IOException:
 Prepare failed.: status=0x1

 On Feb 24, 9:38 am, Fox Mulder zebeub...@gmail.com wrote:







  @Samuh

  I finaly discovered why we have the same error..
  It is because, the streams we are trying to play are in main-profil
  and SDK3.0 only can play Baseline-profil
  take a look 
  herehttp://developer.android.com/guide/appendix/media-formats.html

  All the stream i tried in baseline-profile were OK
  02-24 16:25:06.901: INFO/avc_utils(33): found AVC codec config (192 x
  144, Baseline-profile level 1.1)
  02-24 16:28:39.220: INFO/avc_utils(33): found AVC codec config (320 x
  240, Baseline-profile level 1.3)
  02-24 16:30:45.821: INFO/avc_utils(33): found AVC codec config (480 x
  360, Baseline-profile level 2.1)
  02-24 16:39:48.302: INFO/avc_utils(33): found AVC codec config (320 x
  240, Baseline-profile level 1.2)
  02-24 16:41:18.690: INFO/avc_utils(33): found AVC codec config (176 x
  144, Baseline-profile level 1.0)

  These one were KO
  02-24 16:45:59.700: INFO/avc_utils(33): found AVC codec config (640 x
  360, Main-profile level 3.0)
  02-24 16:52:53.350: INFO/avc_utils(33): found AVC codec config (320 x
  180, Main-profile level 1.3)

  Zbb

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

2011-04-05 Thread SImplyG2010
Good evening,

I have a Gallery view in which each item consists of a table view with
two rows of three cells. Each time someone clicks on the image in one
of these cells I would like to launch a image specific intent however
if I set an on click listener for each of the image views then the
Gallery loses its ability to scroll and if I use on item click from
the gallery I just get the table view back as the clicked view. Does
anyone know a work around?

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


Re: [android-developers] Re: Start Dialer with delay

2011-04-05 Thread TreKing
On Tue, Apr 5, 2011 at 2:28 AM, viktor victor.scherb...@gmail.com wrote:

 Have any ideas?


Clarify your question?

-
TreKing http://sites.google.com/site/rezmobileapps/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: PreferenceActivity.Header -- is there a better way

2011-04-05 Thread Zsolt Vasvari
Dianne, could you perhaps comment on this, since you seem to be the
person who actually developed this fragment stuff.

Thanks.

On Apr 5, 2:27 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 I am trying to replace the setPreferenceScreen() functionality to
 switch to a particular header of my new style Preference Activity.

 I cannot find a straightforward way of doing is.

 Currently, I am saving the list of headers:

     @Override
     public void onBuildHeaders(ListHeader target)
     {
         loadPreferenceHeadersFromResource(R.xml.id, target);

         this.headers = target;
     }

 Then searching for and setting the appropriate one:

     private void switchToHeaderByFragment(Class? fragmentClass)
     {
             for (Header header : this.headers)
                 if (header.fragment.equals(fragmentClass.getName()))
                 {
                     switchToHeader(header);
                     break;
                 }
     }

 There has to be a better way?  What am I missing?

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


[android-developers] Re: help

2011-04-05 Thread Spiral123
I can.  Assuming its a paid app I'll give you 20% of any sales.  If
its free, you will need to pay me $1,000 USD upfront.

On Apr 3, 10:14 am, nainfanta nainfa...@gmail.com wrote:
  Can not account registration, who can help me upload an application?  

 From Robin 2011-04-03 22:13:01

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

2011-04-05 Thread droid-stricken
Hi All,

I have a TableLayout with one TableRow.
The first column/cell is a ListView. The second cell/column is a
TableLayout again which consists of 2 ListViews.

When i inflate the xml layout, everything looks fine and i have set of
adapters for each of the 3 ListViews.

I have added dummy elements into these lists via adapters and am able
to scroll up and down the list.

But the onItemClick is not getting triggered.

The following is my layout file -

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/linearLayout1
android:orientation=vertical

RelativeLayout android:id=@+id/top_header
android:layout_width=fill_parent
android:layout_height=wrap_content
Button
android:text=Edit
android:id=@+id/button1
android:layout_width=wrap_content
android:layout_height=wrap_content
/Button
TextView
android:text=dummy1
android:textStyle=bold
android:id=@+id/textView3
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toRightOf=@+id/button1
android:layout_centerVertical=true
android:paddingLeft=25dip
android:textSize=18dip
/TextView
Button
android:id=@+id/button2
android:layout_alignParentTop=true
android:layout_height=wrap_content
android:layout_width=wrap_content
android:text=Cancel
android:layout_alignParentRight=true
/Button
TextView
android:layout_alignParentTop=true
android:text=dummy2
android:textStyle=bold
android:layout_height=wrap_content
android:layout_width=wrap_content
android:id=@+id/textView4
android:layout_toLeftOf=@+id/button2
android:layout_centerVertical=true
android:paddingRight=25dip
android:textSize=18dip
/TextView
/RelativeLayout

TableLayout android:id=@+id/tableLayout1
android:layout_width=fill_parent
android:layout_height=fill_parent
android:shrinkColumns=1

TableRow android:id=@+id/tableRow1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:divider=@android:color/black
android:dividerPadding=2dip
ListView
android:id=@+id/listView1
android:layout_height=wrap_content
android:layout_width=0dip
android:layout_weight=1
android:clickable=true
android:focusable=true

/ListView
TableLayout android:id=@+id/tableLayout2
android:layout_width=0dip
android:layout_height=wrap_content
android:layout_weight=1
android:shrinkColumns=1
TextView
android:text=dummy3
android:id=@+id/textView1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textStyle=bold
android:padding=8dip
android:textSize=18dip
android:background=#ff238E23
/TextView
ListView
android:id=@+id/listView2
android:layout_height=0dip
android:layout_weight=1
android:drawSelectorOnTop=false
android:divider=@android:color/white
android:dividerHeight=2dip
android:layout_width=match_parent
android:clickable=true
android:focusable=true

/ListView
TextView
android:text=dummy4
android:textSize=18dip
android:textStyle=bold
android:id=@+id/textView2

[android-developers] Re: Replace ADBD on emulator

2011-04-05 Thread TheVirus
Do I need to recompile from AOSP source and replace my default .img
files (if those are re-created)?

On Apr 5, 12:26 pm, TheVirus thevi...@gmail.com wrote:
 I am trying to debug some adbd stuff for an app I'm writing but I need
 more debug output. I've compiled adbd from AOSP source but cannot find
 out how to overwrite it on the emulator. I've copied it to /sdcard and
 tried copying it but when I restart the emulator, it reverts. It seems
 the emulator can't properly close when I remount the rootfs with rw
 permission and I'm not sure why.

 I looked into building yaffs2 into my kernel but the documentation is
 outdated and I'm not sure how to do it.

 I'm on Ubuntu 10.10.

 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] Google Music

2011-04-05 Thread imsopov
Does anybody know if Google are planning to sell music with Google
Music, and more importantly are they going to have a commission scheme
like Amazon or Apple? or is it going to just be a service which hosts
peoples MP3s they already have?

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


Re: [android-developers] Google Music

2011-04-05 Thread Mark Murphy
This has nothing to do with this list.

On Tue, Apr 5, 2011 at 8:49 PM, imsopov imso...@gmail.com wrote:
 Does anybody know if Google are planning to sell music with Google
 Music, and more importantly are they going to have a commission scheme
 like Amazon or Apple? or is it going to just be a service which hosts
 peoples MP3s they already have?

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using a 9 patch as a listSelector affects padding

2011-04-05 Thread Dianne Hackborn
I believe ListView just uses whatever padding the selector drawable reports.
 The first thing, then, is to verify there isn't a problem in your drawable.
 Write a little code that retrieves the resource, calls
Drawable.getPadding() to retrieve the padding, and see what you get.  That
will isolate the problem either to something in list view or the drawable.

Also I'm not clear on where the 9-patch is adding extra padding, but as far
as I know it will only add padding around the entire contents of the list
(that is in addition to the padding on the ListView itself), not to
individual items.

I'd also recommend you explicitly set the padding on your graphic instead of
leaving it empty.  That is, if you don't want the selection to extend
outside of the list item at all, fill the entire right and bottom rows with
black pixels; the black pixels indicate where the list item content should
be positioned within the overall selector graphic.  This is how the standard
list selector is designed, for example:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/res/res/drawable-hdpi/list_selector_background_focus.9.png;hb=HEAD

On Tue, Apr 5, 2011 at 4:12 PM, jsera gall.blad...@gmail.com wrote:

 That extra area is transparent pixels, and they are there by design.
 They do not define stretchable areas, and the framework pays no
 attention to them.

 I'm using the draw9patch app that comes with the Android tools. I'm
 dragging a completely standard png into the tool, which is outputting
 a 9 patch that is exactly what the OS is expecting. I'm not editing
 the resulting 9 patch myself at all. I'm relying entirely on the
 provided tools.

 --

 Here's the situation I'm trying to solve:

 I have an item in a list that looks abstractly like this:

 http://www.yourmomsa.com/misc/sampleItem.png

 The code looks like this:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=wrap_content
android:paddingLeft=8dip
android:paddingRight=8dip
android:paddingTop=3dip
android:paddingBottom=2dip
android:gravity=center
RelativeLayout
 android:layout_width=fill_parent
 android:layout_height=wrap_content
android:background=@drawable/list_raft
android:padding=8dip
TextView
android:id=@+id/itemHeadline
 android:layout_width=fill_parent
 android:layout_height=wrap_content
android:textSize=16dip
android:textColor=#000
android:textStyle=bold/
TextView
android:id=@+id/itemDate
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/itemHeadline
android:text=January 86th, 1056 25:66 ZM
android:textColor=#838383
android:textSize=14dip/
/RelativeLayout
 /LinearLayout

 The gray area would be the LinearLayout, the blue would be the
 RelativeLayout.

 The item can be variable height, and when a list item is tapped, I
 want the overlay to be only over the blue part, or the RelativeLayout.
 Since the padding of the LinearLayout is constant, this would seem to
 be the perfect situation for a 9 patch.


 BBB  U  U TN   N  
 B  B U  U   T  NN  N OO
 BBB  U  U   T  N N N OO
 B  B U  U   T  N  NN OO
 BBB   UUT  N   N  

 Because the bloody 9 patch is adding Extra padding and making me very
 grumpy which all my long-suffering co-workers don't like.






 On Apr 5, 3:32 pm, Justin Anderson magouyaw...@gmail.com wrote:
  From the Dev Guide on 9-Patch drawables (
 http://developer.android.com/guide/topics/graphics/2d-graphics.html#n...
  ):
  *A NinePatch drawable is a standard PNG image that includes an extra
  1-pixel-wide border. It must be saved with the extension .9.png, and
 saved
  into the res/drawable/ directory of your project.
  *
  From the image you supplied it looks like you have much more than 1 extra
  pixel to define the stretchable areas...  That very well could be the
 cause
  of your padding
 
  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
  On Tue, Apr 5, 2011 at 3:35 PM, jsera gall.blad...@gmail.com wrote:
   It looks like this:
 
  http://www.yourmomsa.com/misc/screenshot.png
 
   On Apr 5, 2:03 pm, Justin Anderson magouyaw...@gmail.com wrote:
What does your 9 patch look like?
 
Thanks,
Justin Anderson
MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
On Tue, Apr 5, 2011 at 2:27 PM, jsera gall.blad...@gmail.com
 wrote:
 ListView

[android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread Leo

Is it possible to address the lack of examples in samples section on
layouts in future releases? I spent two days trying to figure how to
put 4 large images into a 2x2 grid for option selection in my first
app that I am working on. Granted my UI experience is next to NIL but
such things should be a breeze if there are illustrative examples in
the SDK.

It would be great to see 20-40 layout examples with images and
animation etc illustrating various aspects of the layouts. The other
parts of the online android  framework documentation is vast and very
helpful, but layout attributes are like hit or miss for non UI
(basically java only) developers like me.

Thanks.

On Apr 5, 3:20 pm, Xavier Ducrohet x...@android.com wrote:
 Our layout editors in Eclipse have been somewhat low priority for a
 long time but we are now focusing some effort on it. You may have seen
 that ADT 10 includes a lot of new features and we have more coming for
 the next versions.

 We are working on:
 - better interactivity in the editor itself.
 - better integration into Eclipse (*much* better autocompletion in the
 XML editor, quick assist, refactoring, go to declaration)
 - better rendering (3.0 is a huge step in the right direction already,
 but we're adding some improvements and back porting it to earlier
 versions)
 - new features to help you designlayouts(extract as include
 refactoring, show included in, data in listviews, etc...)

 If you want to follow our progress you can look 
 athttp://tools.android.com/recent

 As someone said, this is open source, and worked on directly in the
 open (you can go 
 tohttp://android.git.kernel.org/?p=platform/sdk.git;a=summaryto see the
 latest changes or 
 tohttps://review.source.android.com//#q,status:open+project:platform/sd...
 to see pending changes), and while we aren't forcing (or expecting)
 anyone to contribute, if you feel passionate about tools and want to
 contribute, please let us know (seehttp://tools.android.com/feedback)

 thanks,
 Xav
 --
 Xavier DucrohetAndroidSDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Android Layouts Are Horrible

2011-04-05 Thread Xavier Ducrohet
I'm sure this is possible.

We would also like have templates in Eclipse so that you can create a
new layout with some pre-built items arranged in different ways.

We know that sometimes it's not easy to make the layouts do what you
want and we are working on making this easier.

Xav

On Tue, Apr 5, 2011 at 6:31 PM, Leo allway...@gmail.com wrote:

 Is it possible to address the lack of examples in samples section on
 layouts in future releases? I spent two days trying to figure how to
 put 4 large images into a 2x2 grid for option selection in my first
 app that I am working on. Granted my UI experience is next to NIL but
 such things should be a breeze if there are illustrative examples in
 the SDK.

 It would be great to see 20-40 layout examples with images and
 animation etc illustrating various aspects of the layouts. The other
 parts of the online android  framework documentation is vast and very
 helpful, but layout attributes are like hit or miss for non UI
 (basically java only) developers like me.

 Thanks.

 On Apr 5, 3:20 pm, Xavier Ducrohet x...@android.com wrote:
 Our layout editors in Eclipse have been somewhat low priority for a
 long time but we are now focusing some effort on it. You may have seen
 that ADT 10 includes a lot of new features and we have more coming for
 the next versions.

 We are working on:
 - better interactivity in the editor itself.
 - better integration into Eclipse (*much* better autocompletion in the
 XML editor, quick assist, refactoring, go to declaration)
 - better rendering (3.0 is a huge step in the right direction already,
 but we're adding some improvements and back porting it to earlier
 versions)
 - new features to help you designlayouts(extract as include
 refactoring, show included in, data in listviews, etc...)

 If you want to follow our progress you can look 
 athttp://tools.android.com/recent

 As someone said, this is open source, and worked on directly in the
 open (you can go 
 tohttp://android.git.kernel.org/?p=platform/sdk.git;a=summaryto see the
 latest changes or 
 tohttps://review.source.android.com//#q,status:open+project:platform/sd...
 to see pending changes), and while we aren't forcing (or expecting)
 anyone to contribute, if you feel passionate about tools and want to
 contribute, please let us know (seehttp://tools.android.com/feedback)

 thanks,
 Xav
 --
 Xavier DucrohetAndroidSDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. Thanks!

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




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

Please do not send me questions directly. Thanks!

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


[android-developers] Re: Google Music

2011-04-05 Thread imsopov
nothing to do with this group?

I want to know because I am thinking of making a android app that has
the ability to let a user buy music from Google music if it is going
to be selling music one the API becomes available or if not I will use
the amazon API

On Apr 6, 9:55 am, Mark Murphy mmur...@commonsware.com wrote:
 This has nothing to do with this list.

 On Tue, Apr 5, 2011 at 8:49 PM, imsopov imso...@gmail.com wrote:
  Does anybody know if Google are planning to sell music with Google
  Music, and more importantly are they going to have a commission scheme
  like Amazon or Apple? or is it going to just be a service which hosts
  peoples MP3s they already have?

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

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

2011-04-05 Thread Zsolt Vasvari
 nothing to do with this group?

No, it doesn't.  This is not a market research group.

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

2011-04-05 Thread Corey Ledin, LLC
We have really pushed to get the site in perfect owrking order and
after todays hard work the site seems bug free and working better the
expected new features and more go check it out and any feedback would
be great.

also ranks by country coming soon.

On Mar 22, 9:23 am, Jake Colman col...@ppllc.com wrote:
  CL == Corey Ledin Corey writes:

    CL Hi All,

    CL I have yet to contribute to this group just start off by saying
    CL hi and if you haven't heard of me I developed Beer Pong Free for
    CL the android and iPhone etc. Recently I was trying to find a
    CL decent app rank website for the android like that of all of
    CL iPhone pones with not really any luck besides that one app. So I
    CL said what the heck and built my own...  It is still in beta /
    CL testing phase since i only started the project with my partner 4
    CL days ago lol. But go check it out!

    CLhttp://androidapptracker.com

    CL Let me know what you think and if you have any ideas.

 Looks good.  Is tracking of my own apps supposed to be working?  I tried
 adding my app and it says that it is not found.

 --
 Jake Colman -- Android Tinkerer

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


[android-developers] Re: Android App Tracker - market rank tool

2011-04-05 Thread Corey Ledin, LLC
We have really pushed to get the site in perfect working order and
after today's hard work the site seems bug free and working better the
expected pro app tracking available which updates by the hour plus new
features and more go check it out and any feedback would be great!

also ranks by country coming soon.

Let me know what you think

Jake Colman wrote:
  CL == Corey Ledin Corey writes:

CL Hi All,

CL I have yet to contribute to this group just start off by saying
CL hi and if you haven't heard of me I developed Beer Pong Free for
CL the android and iPhone etc. Recently I was trying to find a
CL decent app rank website for the android like that of all of
CL iPhone pones with not really any luck besides that one app. So I
CL said what the heck and built my own...  It is still in beta /
CL testing phase since i only started the project with my partner 4
CL days ago lol. But go check it out!

CL http://androidapptracker.com

CL Let me know what you think and if you have any ideas.

 Looks good.  Is tracking of my own apps supposed to be working?  I tried
 adding my app and it says that it is not found.

 --
 Jake Colman -- Android Tinkerer

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


Re: [android-developers] Re: help

2011-04-05 Thread nainfanta
Too expensive


2011-04-06 



nainfanta 



发件人: Spiral123 
发送时间: 2011-04-06  08:00:20 
收件人: Android Developers 
抄送: 
主题: [android-developers] Re: help 
 
I can.  Assuming its a paid app I'll give you 20% of any sales.  If
its free, you will need to pay me $1,000 USD upfront.
On Apr 3, 10:14 am, nainfanta nainfa...@gmail.com wrote:
  Can not account registration, who can help me upload an application?  

 From Robin 2011-04-03 22:13:01
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Gallary Scroll and click event

2011-04-05 Thread Justin Anderson
Seems odd to me that setting the onItemClickListener would cause your
Gallery to lose its ability to scroll...  I have used Gallery views
extensively and have never seen this behavior.

What does the code look like when you set the listener?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Apr 5, 2011 at 5:45 PM, SImplyG2010 thomas.sheppar...@gmail.comwrote:

 Good evening,

 I have a Gallery view in which each item consists of a table view with
 two rows of three cells. Each time someone clicks on the image in one
 of these cells I would like to launch a image specific intent however
 if I set an on click listener for each of the image views then the
 Gallery loses its ability to scroll and if I use on item click from
 the gallery I just get the table view back as the clicked view. Does
 anyone know a work around?

 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] Re: openGL texture render size

2011-04-05 Thread a a
After two days thinking your explanation, i have understand very well
now, thanks very much!

There are two point with my acquaintance:
1. --x at the first, it advoid next power of two is double with
the power of two, like 1000(dec is 8), it will became 16.

2. i=1 (doing i++ in the for loop), it is very very profound and
effective. I coat almost 2 hours about this.



2011/4/2 Hari Edo hari@gmail.com:

 On Apr 1, 11:16 pm, a a harvey.a...@gmail.com wrote:
 But i can't understand the following algorithm

 function nextHighestPowerOfTwo(x) {
     --x;
     for (var i = 1; i  32; i = 1) {
         x = x | x  i;
     }
     return x + 1;

 }

 On the first loop, take the value and smear its bits
 once rightward:

  x was:        10010111
  x  1:       01001011
  x | x  1:   11010001

 On the second loop, you could smear the bits once
 rightward again (doing i++ in the for loop), but that
 would be a waste of time since there can be no more
 single 1 bits.  All the runs of 1 bits are now fatter.
 So on the second loop, smear the bits TWICE rightward,
 by doing (i = 1) in the for loop instead.

  x was:        11010001
  x  2:       00110100
  x | x  2:   1101

 On the third loop, smear the bits FOUR rightward,
 since any 1 bit is now fatter.

  x was:        1101
  x  4:       
  x | x  4:   

 We're done in this example, but the loop here
 also tries to smear by 8 and smear by 16.

 We then add 1, to roll over to the next power of
 two.

  x was:        
  next power:   0001

 However, because you don't want to have the
 nextHighestPowerOfTwo(2048) to return 4096,
 the function starts with x-1 instead of x.

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

2011-04-05 Thread rashmi
I want to encrypt the data before insertion through content provider
and decrypt while reading the data. So that encrypted data will be
saved in database. Please provide me the information

On Apr 5, 6:20 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 5 April 2011 15:00, rashmi rashmi@gmail.com wrote:

  Hi,
  I am using content provider to access the database. I want to secure
  my data by encryption. Please let me know, how we can encrypt and
  decrypt the data from content provider.

 If you encrypt it yourself it will be encrypted. It's still content. Ensure
 your app design is right. It'd would be rather pointless to i.e. encrypt
 data returned by your CP, while your real data in DB is unencrypted.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
 *Twitterhttp://webnetmobile.com/twitter/
 *

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


[android-developers] How to pass configuration parameters to custom views during construction

2011-04-05 Thread android.xi...@gmail.com
Hello Guys,

I defined a customer view, e.g. MyView, which need to be constructed
with some own parameter, e.g. line number in the view, an integer.
The view will be employed by my activity, MyActivity.
It seems that the View's constructors are fixed and will be called by
the system, and I can do nothing on it.

The question is:
 How to pass the integer to the view during construction from
the activity, while I've known the integer in MyActivity?

Thanks in advance.
Mike

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