[android-developers] Apps can't find in all deivce's market

2010-08-05 Thread Jammy
I have publish a app with this AndroidManifest.xml:

supports-screens
android:smallScreens=true
android:normalScreens=true
android:largeScreens=true
android:anyDensity=false
/
uses-sdk android:minSdkVersion=3 /

and with publish option Copy Protection = ON(Helps prevent copying of
this application from the device. Increases the amount of memory on
the phone required to install the application.), Locations = all
Locations
but i found that some device can't find it in market , it including
Acer liquid, sony ericsson x10 mini pro, and even a Sansung Galaxy S
Any suggestion?

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

2010-06-13 Thread Jammy
I add a TableLayout in a listView, inside the TableLayout, it contains
some photo that will be load from network in another thread, but after
load is done, I call notifyDataSetChanged of the ListView, sometime it
just redraw the item. my code look like this :
public View getView(final int position, View convertView,
ViewGroup parent) {
 if (convertView == null ) {
convertView = Fanroid.this.getLayoutInflater().inflate(
R.layout.list_item, parent,false);
}
// some code to add photo into TableLayout
}

I guess maybe the Recycler of ListView reuse the current view and
think it not necessary to redraw, so I move to the slow way which
mentioned in Google I/O 2010 ListView session:
 public View getView(final int position, View convertView,
ViewGroup parent) {
// if (convertView == null ) {
convertView = Fanroid.this.getLayoutInflater().inflate(
R.layout.list_item, parent,false);
//}
// some code to add photo into TableLayout
}

Now It work find but slow, anyone help? Thanks

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


[android-developers] Re: ListView Recycler Kill my UI?

2010-06-13 Thread Jammy
sorry type, should be: After I call notifyDataSetChanged of the
ListView, sometime it
just DON'T redraw the item.

On Jun 13, 3:40 pm, Jammy mistapos...@gmail.com wrote:
 I add a TableLayout in a listView, inside the TableLayout, it contains
 some photo that will be load from network in another thread, but after
 load is done, I call notifyDataSetChanged of the ListView, sometime it
 just redraw the item. my code look like this :
 public View getView(final int position, View convertView,
                                         ViewGroup parent) {
          if (convertView == null ) {
                 convertView = Fanroid.this.getLayoutInflater().inflate(
                 R.layout.list_item, parent,false);
         }
         // some code to add photo into TableLayout

 }

 I guess maybe the Recycler of ListView reuse the current view and
 think it not necessary to redraw, so I move to the slow way which
 mentioned in Google I/O 2010 ListView session:
  public View getView(final int position, View convertView,
                                         ViewGroup parent) {
     //     if (convertView == null ) {
                 convertView = Fanroid.this.getLayoutInflater().inflate(
                 R.layout.list_item, parent,false);
         //}
         // some code to add photo into TableLayout

 }

 Now It work find but slow, anyone help? Thanks

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


[android-developers] AudioRecord.read keep blocking and throwing obtainBuffer timed out

2010-04-01 Thread Jammy
I am writing a VOIP phone application and testing it on MOTO
milestime. Sometime I meet a obtainBuffer timed out exception when i
am calling AudioRecord.read , it don't return me any result but just
block the thread. Runing on emulator with 1.5 OS won't get this
exception.  My codes:

AudioRecord record = new AudioRecord(
MediaRecorder.AudioSource.MIC, 8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
//  10
AudioRecord.getMinBufferSize(8000,

AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT)
);
record.startRecording();
int num = record.read(lin,offsetInShorts ,sizeInShorts);
...
..
when it is blocked , run these code can solve the problem.
AudioManager am = (AudioManager)
Receiver.mContext.getSystemService(Context.AUDIO_SERVICE);
am.setMode(mode);
am.setMode(AudioManager.MODE_NORMAL);
..
am.setMode(AudioManager.MODE_INCALL);



Anybody have any idea on this ?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: AudioRecord.read keep blocking and throwing obtainBuffer timed out

2010-04-01 Thread Jammy
fix some typo. I am testing on MOTO milestone (not milestime)

On Apr 2, 10:31 am, Jammy mistapos...@gmail.com wrote:
 I am writing a VOIP phone application and testing it on MOTO
 milestime. Sometime I meet a obtainBuffer timed out exception when i
 am calling AudioRecord.read , it don't return me any result but just
 block the thread. Runing on emulator with 1.5 OS won't get this
 exception.  My codes:

 AudioRecord record = new AudioRecord(
                                 MediaRecorder.AudioSource.MIC, 8000,
                                 AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                 AudioFormat.ENCODING_PCM_16BIT,
 //                              10
                                 AudioRecord.getMinBufferSize(8000,
                                                 
 AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                                 
 AudioFormat.ENCODING_PCM_16BIT)
                                 );
 record.startRecording();
 int num = record.read(lin,offsetInShorts ,sizeInShorts);
 ...
 ..
 when it is blocked , run these code can solve the problem.
 AudioManager am = (AudioManager)
 Receiver.mContext.getSystemService(Context.AUDIO_SERVICE);
                 am.setMode(mode);
 am.setMode(AudioManager.MODE_NORMAL);
 ..
 am.setMode(AudioManager.MODE_INCALL);

 Anybody have any idea on this ?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: AudioRecord.read keep blocking and throwing obtainBuffer timed out

2010-04-01 Thread Jammy
The full exception messages:

04-01 14:16:06.288: ERROR/AudioHardwareMot(1056): AudioMgr
Error:AudioStreamInMot::read: codec device busy

04-01 14:16:06.288: ERROR/AudioFlinger(1056): Error reading audio
input

04-01 14:16:06.351: WARN/AudioRecord(4010): obtainBuffer timed out (is
the CPU pegged?) user=0640, server=0640
04-01 14:16:07.291: WARN/AudioRecord(4010): obtainBuffer timed out (is
the CPU pegged?) user=0640, server=0640

04-01 14:16:07.296: ERROR/AudioHardwareMot(1056): AudioMgr
Error:AudioStreamInMot::read: codec device busy


On Apr 2, 10:33 am, Jammy mistapos...@gmail.com wrote:
 fix some typo. I am testing on MOTO milestone (not milestime)

 On Apr 2, 10:31 am, Jammy mistapos...@gmail.com wrote:



  I am writing a VOIP phone application and testing it on MOTO
  milestime. Sometime I meet a obtainBuffer timed out exception when i
  am calling AudioRecord.read , it don't return me any result but just
  block the thread. Runing on emulator with 1.5 OS won't get this
  exception.  My codes:

  AudioRecord record = new AudioRecord(
                                  MediaRecorder.AudioSource.MIC, 8000,
                                  AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                  AudioFormat.ENCODING_PCM_16BIT,
  //                              10
                                  AudioRecord.getMinBufferSize(8000,
                                                  
  AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                                  
  AudioFormat.ENCODING_PCM_16BIT)
                                  );
  record.startRecording();
  int num = record.read(lin,offsetInShorts ,sizeInShorts);
  ...
  ..
  when it is blocked , run these code can solve the problem.
  AudioManager am = (AudioManager)
  Receiver.mContext.getSystemService(Context.AUDIO_SERVICE);
                  am.setMode(mode);
  am.setMode(AudioManager.MODE_NORMAL);
  ..
  am.setMode(AudioManager.MODE_INCALL);

  Anybody have any idea on this ?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] How to Custom Tab style

2010-03-01 Thread Jammy
The built-in 'Phone' app have a good looking 'tab bar', and I get the
source from git://android.git.kernel.org/platform/packages/apps/Contacts.git
, and found the main  Activity, 'DialtactsActivity' just using the
common way to build the tab, and in the 'res' folder ,there are some
specially files e.g. tab_indicator.xml , but I have no idea how it
works, Anybody can help?

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


[android-developers] Re: adb version failed

2009-03-21 Thread jammy

In the root directory of fedora linux there is a directory called
lib64. isn't that indicates that my linux distribution is 64 bit??? If
im right then why i should download again 32bit zlib package

On Mar 20, 8:02 pm, David Turner di...@android.com wrote:
 On Thu, Mar 19, 2009 at 11:29 PM, jammy jammy.fivef...@gmail.com wrote:

  i installed android in windows and checked it... the problem that i am
  facing is in windows eclipse R.java is created as soon as i create new
  project but in fedora 10 R.java is not created.. because of that it is
  showing error. Erron while loading shared libraries:libncurses.so.
  5:wrong ELF class:ELFCLASS64 This is error came after when i copied
  libncurses.so.5 into lib directory.

 what, you manually copied libncurses.so.5 into lib directory ?
 Do you know exactly what you're doing ? The error message seems to indicate
 that a 64-bit library is being loaded instead of a required 32-bit one.
 Where did
 you get this library that you copied ? what is lib exactly ?

 On Ubuntu, the following will install 32-bit versions of many required
 libraries:

 apt-get install ia32-libs

 There probably is something similar for your Linux distribution (and sorry,
 we really don't
 have time to check that ourselves) that will install the 32-bit ncurses
 library properly at
 a location that the system will be able to handle.

 Mixed 32 and 64-bit Linux distributions are extremely messy and copying
 libraries is
 extremely prone to failure.

  before that it was showing libz.so.1: cannot open shared object file:
  No such file or directory. I installed everything as it is given in
  installation page in android site..

 the installation page is for Ubuntu, if you are on a different distribution,
 you may need to
 find a different package name to install. Apparently, you need the 32-bit
 zlib package
 installed.



  On Mar 20, 6:02 am, Xavier Ducrohet x...@android.com wrote:
   it looks like you have a linux 64 bit only installation.
   Please follow the Installation Notes for linux at the bottom ofhttp://
  developer.android.com/sdk/1.1_r1/installing.html

   Xav

   On Thu, Mar 19, 2009 at 4:06 AM, jammy jammy.fivef...@gmail.com wrote:

hello every one.. im new to android... i have installed android in
eclipse every thing was going fine but at last when i gave path of
android sdk it is giving error as ' adb version failed!' error while
loading shared libraries:libncurses.so.5:wrong ELF class:ELFCLASS64.
im not able to rectify this error please somebody do help me.
im waiting for the solution to this problem. where i have gone
wrong...  thanx in advance.

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



[android-developers] Re: adb version failed

2009-03-21 Thread jammy

In the '/' directory of my fedora 10 linux there are two directories
for lib.. one is lib and other one is lib64. in lib64 all the files
(libz.so.1, libncurses.so.5, etc..) are there.. in eclipse whether it
is searching the files in lib or lib64...

On Mar 21, 6:01 pm, jammy jammy.fivef...@gmail.com wrote:
 In the root directory of fedora linux there is a directory called
 lib64. isn't that indicates that my linux distribution is 64 bit??? If
 im right then why i should download again 32bit zlib package

 On Mar 20, 8:02 pm, David Turner di...@android.com wrote:

  On Thu, Mar 19, 2009 at 11:29 PM, jammy jammy.fivef...@gmail.com wrote:

   i installed android in windows and checked it... the problem that i am
   facing is in windows eclipse R.java is created as soon as i create new
   project but in fedora 10 R.java is not created.. because of that it is
   showing error. Erron while loading shared libraries:libncurses.so.
   5:wrong ELF class:ELFCLASS64 This is error came after when i copied
   libncurses.so.5 into lib directory.

  what, you manually copied libncurses.so.5 into lib directory ?
  Do you know exactly what you're doing ? The error message seems to indicate
  that a 64-bit library is being loaded instead of a required 32-bit one.
  Where did
  you get this library that you copied ? what is lib exactly ?

  On Ubuntu, the following will install 32-bit versions of many required
  libraries:

  apt-get install ia32-libs

  There probably is something similar for your Linux distribution (and sorry,
  we really don't
  have time to check that ourselves) that will install the 32-bit ncurses
  library properly at
  a location that the system will be able to handle.

  Mixed 32 and 64-bit Linux distributions are extremely messy and copying
  libraries is
  extremely prone to failure.

   before that it was showing libz.so.1: cannot open shared object file:
   No such file or directory. I installed everything as it is given in
   installation page in android site..

  the installation page is for Ubuntu, if you are on a different distribution,
  you may need to
  find a different package name to install. Apparently, you need the 32-bit
  zlib package
  installed.

   On Mar 20, 6:02 am, Xavier Ducrohet x...@android.com wrote:
it looks like you have a linux 64 bit only installation.
Please follow the Installation Notes for linux at the bottom ofhttp://
   developer.android.com/sdk/1.1_r1/installing.html

Xav

On Thu, Mar 19, 2009 at 4:06 AM, jammy jammy.fivef...@gmail.com wrote:

 hello every one.. im new to android... i have installed android in
 eclipse every thing was going fine but at last when i gave path of
 android sdk it is giving error as ' adb version failed!' error while
 loading shared libraries:libncurses.so.5:wrong ELF class:ELFCLASS64.
 im not able to rectify this error please somebody do help me.
 im waiting for the solution to this problem. where i have gone
 wrong...  thanx in advance.

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



[android-developers] Re: adb version failed

2009-03-20 Thread jammy

i installed android in windows and checked it... the problem that i am
facing is in windows eclipse R.java is created as soon as i create new
project but in fedora 10 R.java is not created.. because of that it is
showing error. Erron while loading shared libraries:libncurses.so.
5:wrong ELF class:ELFCLASS64 This is error came after when i copied
libncurses.so.5 into lib directory.

before that it was showing libz.so.1: cannot open shared object file:
No such file or directory. I installed everything as it is given in
installation page in android site..

On Mar 20, 6:02 am, Xavier Ducrohet x...@android.com wrote:
 it looks like you have a linux 64 bit only installation.
 Please follow the Installation Notes for linux at the bottom 
 ofhttp://developer.android.com/sdk/1.1_r1/installing.html

 Xav

 On Thu, Mar 19, 2009 at 4:06 AM, jammy jammy.fivef...@gmail.com wrote:

  hello every one.. im new to android... i have installed android in
  eclipse every thing was going fine but at last when i gave path of
  android sdk it is giving error as ' adb version failed!' error while
  loading shared libraries:libncurses.so.5:wrong ELF class:ELFCLASS64.
  im not able to rectify this error please somebody do help me.
  im waiting for the solution to this problem. where i have gone
  wrong...  thanx in advance.

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

2009-03-19 Thread jammy

hello every one.. im new to android... i have installed android in
eclipse every thing was going fine but at last when i gave path of
android sdk it is giving error as ' adb version failed!' error while
loading shared libraries:libncurses.so.5:wrong ELF class:ELFCLASS64.
im not able to rectify this error please somebody do help me.
im waiting for the solution to this problem. where i have gone
wrong...  thanx 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
-~--~~~~--~~--~--~---