[android-developers] thousands of strings

2010-10-04 Thread Éva Lovrencsics
Hello,

Maybe some of you has an application with quotations or jokes or
something. I would like to make a similar.
So how can I get the i. element of my string array (which is in
arrays.xml)? I don't want to load the whole array in a String[],
because it can be too big.
Or it's not a good idea to put them into arrays.xml? How do you handle
thousands of strings?

Evi

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

2010-10-04 Thread Rocky
thnx for replay,

but its not working with list view.
if i set the height=0dip, my entire list item gone.


On Fri, Oct 1, 2010 at 9:42 PM, letlite letl...@gmail.com wrote:

 Set its height to 0 and give it a weight.

android:layout_weight=1
 android:layout_height=0dip


 On Sep 30, 11:08 pm, RKJ (Android developer) rkjhaw1...@gmail.com
 wrote:
  Hi Techie,
 
  I'm facing a problem in height of ListView (in my list i'v some time 1
  item or some times 20-30 items)
 
  ListView android:id=@+id/ListView01
   android:layout_height=330px
   android:layout_width=fill_parent
   /ListView
 
  Here I want
  android:layout_height =  wrap_content
 
  or
 
  android:layout_height = fill_parent
 
  but in both the case lower part of button is not showing, if i fix
  height=330px, den its comming appropriately in my emumlator,
 
  i want height should be dynamic, wrap_content
 
  so please help me, how to fix the height of list view according to
  devices, so that it will fit in any devices,
 
  thaanks
 
  __RKJ

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




-- 
Thanks  Regards

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

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

[android-developers] Re: video player

2010-10-04 Thread AnasSamara
Salam Ahmad
do the same exactly instead .3gp use .mp4

salam

On Oct 3, 10:02 am, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
wrote:
 but i want it for mp4 files

 On Oct 3, 9:05 am, AnasSamara anas86sam...@gmail.com wrote:

  1-ADD VideoView in the layout.
  2- push video file to sdcard
  3- put the code
  VideoView videoHolder = (VideoView) activity
                                  .findViewById(R.id.VideoView01);
                  videoHolder.stopPlayback();
                  videoHolder.clearFocus();
                  videoHolder.requestFocus();
                  videoHolder.setMediaController(new 
  MediaController(activity));
                  videoHolder.setVideoURI(Uri.parse(sdcard/androidVideo + i 
  + .
  3gp));

                  videoHolder.start();

  On Oct 2, 11:09 pm, Sudsak jpidd...@gmail.com wrote:

   READ THE DOCUMENTATION.

  http://developer.android.com/guide/index.html

   Google is your friend, use it.

   On Oct 2, 6:57 am, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

hi,
i want to play video on android
can anyone help me to play video ?

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: Internal or External Storage

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 9:39 AM, John Gaby jg...@gabysoft.com wrote:
 Thanks for the input.  I am going to have full and 'lite' versions of
 my application.  If I use internal storage, is there a way to arrange
 it so that both versions can read and write the same data

Yes, and no.

Yes, if you use android:sharedUserId and sign both with the same
signing key, they can access one another's files.

No, if they start with free, install paid, then uninstall free, unless
paid copied the files over to its own area, the files will be lost,
because they will be removed when the free app is itself removed.

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

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

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


[android-developers] Re: WebView - Unable to call a dynamically added Javascript (part of a HTML) inside a DIV using innerHTML

2010-10-04 Thread Swaroop
Thanks Doug, I will try to implement the same in JQuery and see if the
results are any different and post back here.

On Oct 4, 2:35 am, Doug beafd...@gmail.com wrote:
 On Oct 2, 8:11 pm, Swaroop gnanaswar...@gmail.com wrote:

  I agree that this is more of a HTML/JS question, but I've posted it
  here because the Browser implementation behind WebView is Android
  Specific and wish to understand a generic way to putinnerHTMLif any
  one has done the same in Android Development. Android's WebView and
  browser implement theinnerHTMLin the same way that HTML spec wants,
  but its just different when talking about Javascript availability (in
  question here)

 Android WebView just uses WebKit, so if you can get your code to work
 on Safari or Chrome (which both use WebKit), then you should be OK.

 Again, jQuery or any modern JS framework will abstract away any
 implementation-specific details in dealing with the DOM.

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

2010-10-04 Thread Mark Murphy
Try a smaller query. You are returning over 1MB of data.

On Mon, Oct 4, 2010 at 6:33 AM, Kenneth WON kenneth...@gmail.com wrote:
 Hi , all,
 I got the following error:

 ERROR/CursorWindow(6924): need to grow: mSize = 1048576, size = 63,
 freeSpace() = 15, numRows = 11460
 ERROR/CursorWindow(6924): not growing since there are already 11460
 row(s), max size 1048576
 ERROR/CursorWindow(6924): The row failed, so back out the new row
 accounting from allocRowSlot 11459
 ERROR/Cursor(6924): Failed allocating fieldDir at startPos 0 row 11459

 I just select all the data from SQLite, then call the method
 c.moveToFirst() and the error occurred.
 How can I solve the problem?
 Thank you for your help!

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Will my app receive a Broadcast if it is not running?

2010-10-04 Thread Nick
Refer to 
http://developer.android.com/reference/android/R.styleable.html#AndroidManifestReceiver:
The receiver tag declares an BroadcastReceiver class that is available
as part of the package's application components, allowing the
application to receive actions or data broadcast by other applications
even if it is not currently running.

example of how to set up SMS filtering could be found here
http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/

On 4 окт, 10:42, Greg Siano gregmsi...@gmail.com wrote:
 I have an app that I want to start when people recieve a text.  Is
 this possible? 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] ActivityManager(): Timeout executing service

2010-10-04 Thread kronos
I get the error

ActivityManager(): Timeout executing service

When the phone goes to sleep with a service running in the
background.  The service goes into wait() because it uses text-to-
speech, and it awakes to push the next sentence.

If the Activity that controls the service is in the forground, (with
SET_PROCESS_FORGROUND enabled), the service will do its job as
expected.  But if the service is left by itself running in the
background, it will be kicked out of the phone.  Once it crashes it is
brought back in, but it cannot recover after that.

I was using WAKE_LOCK when the whole application was an Activity, but
now that it is a Service and an Activity, WAKE_LOCK does not seem to
work if used from the Service.

Any help is appreciated.

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

2010-10-04 Thread Mark Murphy
2010/10/4 Éva Lovrencsics lovi...@gmail.com:
 Or it's not a good idea to put them into arrays.xml? How do you handle
 thousands of strings?

Use a database.

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

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

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


[android-developers] Using sliding motion to click multiple buttons

2010-10-04 Thread yousefm
Hello,

I was wondering if there is a way to click multiple items
(buttons,checkboxes,radiobuttons,etc) by doing a sliding over
multiple
items in one motion. For example, say I have a vertical layout of
three buttons and I would like to click them all quickly. I want to be
able to slide my finger across the three of them instead of clicking
them one at a time. I thought that this would be possible by using the
ontouchlistener but this didn't work.

I know its possible given certain examples such as the default patten
lock screen and word up.

Any help would be greatly appreciated.

Thank You.

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


[android-developers] Re: Internal or External Storage

2010-10-04 Thread John Gaby
Thanks for the input.  I am going to have full and 'lite' versions of
my application.  If I use internal storage, is there a way to arrange
it so that both versions can read and write the same data, or would I
need to use external storage if I want that feature?

Thanks.


On Oct 3, 5:50 pm, Dianne Hackborn hack...@android.com wrote:
 Also important: internal storage is secure (other apps can't read or modify
 your data), external storage very much is not.



 On Sun, Oct 3, 2010 at 5:36 PM, Mark Murphy mmur...@commonsware.com wrote:
  On Sun, Oct 3, 2010 at 8:25 PM, John Gaby jg...@gabysoft.com wrote:
   I have a question about where people expect me to store my application
   data.  I have an application where the user will enter information via
   the keypad, and download information (including images) from a
   website.  Where is the proper place to save this?  Internal or
   External Storage?

  Yes.

  :-)

  If you don't care, you might give the user the option via a preference.

  If the user may want the images after your application is uninstalled,
  then external storage is the better answer.

  External storage also has more room, typically, than on-board flash.
  OTOH, external storage is not always available (e.g., if user has the
  device mounted), is accessible by all applications, etc.

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

  Android Training in London:http://skillsmatter.com/go/os-mobile-server

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

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

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

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


Re: [android-developers] Re: Problem in height of Listview

2010-10-04 Thread Rocky
Hi paulb,

thanx for reply its working fine.
I was stick at this point since long time.



On Sun, Oct 3, 2010 at 7:37 PM, paulb pbizan...@gmail.com wrote:

 Hey Rocky,

 If you are still experiencing a problem with the layout, and the
 RelativeLayout does not work, you can use a solution along the lines
 of:


  LinearLayout
 android:orientation=vertical
  android:layout_width=fill_parent
  android:layout_marginBottom=60dp
  android:layout_height=fill_parent

ListView android:id=@+id/ListView01
android:layout_height=wrap_content
   android:layout_weight=1
android:layout_width=fill_parent
   /ListView

   /LinearLayout

 ... and then, in your /inbox_page_edit_mode_footer_button layout, you
 set the attribute:

android:layout_marginTop=-60dp



 On Sat, Oct 2, 2010 at 4:50 AM, letlite letl...@gmail.com wrote:
  Set its layout_height to 0 and give it a layout_weight :
 android:layout_height=0dip
 android:layout_weight=1
 
  As it was mentioned, wrap_content should not be used for ListView's
  layout_height.
  See  why here: a href=http://code.google.com/events/io/2010/sessions/
  world-of-listview-android.htmlThe world of ListView /a
 
  On Sep 30, 11:08 pm, RKJ (Android developer) rkjhaw1...@gmail.com
  wrote:
  Hi Techie,
 
  I'm facing a problem in height of ListView (in my list i'v some time 1
  item or some times 20-30 items)
 
  ListView android:id=@+id/ListView01
   android:layout_height=330px
   android:layout_width=fill_parent
   /ListView
 
  Here I want
  android:layout_height =  wrap_content
 
  or
 
  android:layout_height = fill_parent
 
  but in both the case lower part of button is not showing, if i fix
  height=330px, den its comming appropriately in my emumlator,
 
  i want height should be dynamic, wrap_content
 
  so please help me, how to fix the height of list view according to
  devices, so that it will fit in any devices,
 
  thaanks
 
  __RKJ
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Thanks  Regards

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

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

[android-developers] Re: The Market App has a CACHE !

2010-10-04 Thread Doug
I've noticed that the Market app client has its own cache that it will
consult.  If you force the Market app to terminate, you're more likely
to see fresh results from the server.

Doug

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Could use some help (free game on Galaxy S problem)

2010-10-04 Thread Zarah Dominguez
Hi Patrick!

Will try to download your game.  Looks like Market is acting up over
here and it won't start the download.  Will try again later.

For a relatively expensive phone, it looks like Galaxy S gives us
developers quite a headache. ;)

- Zarah.



On Oct 2, 10:44 pm, Patrick specter...@gmail.com wrote:
 I put a free trial version of my game (RGBbot Trial Version)
 out on the market and although it seems to run well on my
 N1 and a friend's Droid X, I'm getting error reports
 from Samsung Galaxy S owners with an IllegalStateException
 trying to play an audiotrack.

 If a Galaxy S owner could send me a logcat after trying
 the game, I'd really appreciate it.

 The game has an error reporter class in place to catch
 exceptions (which is how I'm getting the reports) and it's
 SUPPOSED to also send some recent lines from the device log,
 but the log sending part doesn't seem to be working on the
 Galaxy S phones...

 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: Problem after reopen the application !!!

2010-10-04 Thread tarek attia
any idea ?

On 10/3/10, tarek attia tarek.m.at...@gmail.com wrote:
 On Sun, Oct 3, 2010 at 10:27 PM, Prajakta Shitole
 prajakt...@gmail.comwrote:

 is it possible to paste ur code here..

 what code do u hv in ur onResume?? may be there is some problem with ur
 onResume as that gets called if the activity is brought to the front
 again..


 @Override
 public void onResume() {
   IntentFilter netFilter;
 netFilter=new IntentFilter(serverService.New_NET_STATUS);
 newNetReceiver =new NetStatusReceiver();
 registerReceiver(newNetReceiver,netFilter);
 super.onResume();
 }
 just Register listeners for the broadcast receivers .Nothing more






 On Sun, Oct 3, 2010 at 1:19 PM, tarek attia
 tarek.m.at...@gmail.comwrote:



 On Sun, Oct 3, 2010 at 10:14 PM, Prajakta Shitole
 prajakt...@gmail.comwrote:

 have u checked the value of noConnectionAlert.. as it is a null pointer
 exception it is possible that the value is null..


 It's an object of Runnable .



 On Sun, Oct 3, 2010 at 1:10 PM, tarek attia
 tarek.m.at...@gmail.comwrote:



 On Sun, Oct 3, 2010 at 9:14 PM, fernando
 fernandoler...@gmail.comwrote:

 It seems that you might have problems somewhere on onResume or
 onPause
 or onNewIntent. Do you have logcats showing the stack trace of the
 exception?


 The LogCat as follow :-


 10-02 16:18:17.067: ERROR/AndroidRuntime(511): Uncaught handler:
 thread
 Background exiting due to uncaught exception
 10-02 16:18:17.077: ERROR/AndroidRuntime(511):
 java.lang.NullPointerException
 10-02 16:18:17.077: ERROR/AndroidRuntime(511): at
 hello.world.Example.Test$2.run(Test.java:144)
 10-02 16:18:17.077: ERROR/AndroidRuntime(511): at
 java.lang.Thread.run(Thread.java:1060)


 Line 144 contains call for the thread handler to handle gui operation
 as
 follow :-

 guiHandler.post(noConnectionAlert);

 What could be the issue,however if i waited then reopened it again it
 will work fine .


 On Oct 2, 3:56 pm, tarek attia tarek.m.at...@gmail.com wrote:
  Hi all,
 
  I have a weird behaviour on T-mobile ,as I made an application,then
  after closing it and reopen it immediately after closing ,a message
  box telling me that the application had to stop and fatal error
  occurred,then I reopen it again after this,it opens normally
 
  Any Idea ? Do I miss something ?
 
  Regards,
  --
  tarek

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




 --
 tarek

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




 --
 tarek

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




 --
 tarek



-- 
tarek

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

2010-10-04 Thread Ganapathy.C
I Want to use Scrolling Menu same as UIScrollView in iPhone..

The below link for that scroll view ...


http://picasaweb.google.co.in/cganapathi/Android#


On Oct 3, 11:23 am, TreKing treking...@gmail.com wrote:
 On Sat, Oct 2, 2010 at 12:14 PM, Ganapathy.C cganapa...@gmail.com wrote:
  If anybody know the code for create scrollable menubar in app..
  Insted of tab i want that scrollable menu

 You should explain what you mean by scrollable menu - perhaps with a
 picture. Don't assume people know what the Fox News apps looks like or are
 going to download it to see what you're talking about.

 --- 
 --
 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: Mapping 6 faces of cube with 6 different images

2010-10-04 Thread Girish H T
Hi  Lance,

Thanks for your answer.

If i want to change the images dynamically how can that be possible ? Is it
possible to generate the atlas @ runtime programatically ?

Can you point me the the tools used for generating texture atlas ?

Regards
Girish

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

2010-10-04 Thread tony obrien
For those thinking I meant a BROWSER's cache -- perhaps I was not
clear...  I meant that on the PHONE,the MARKET APPLICATION has a
cache.  (Settings = Applications = Manage Applications = Menu: Show
ALL = Choose MARKET. You'll see a button to CLEAR CACHE.

And my point is -- why would the designers of that APP use a cache?
It doesn't 'minimize network traffic' since it always seems to go up
to the net anyway to do a D/L but (perhaps maybe) its not REALLY
going out to the net, since it will load from that cache instead; as
both Zarah and I discovered.

And having to either KILL the MARKET app on the device, or Clear its'
cache still confounds me as to why it has one at all.

If the thing is smart enough to know when an update is ready, why
isn't it smart enough to know that its' cache is stale?

tob


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

2010-10-04 Thread { Devdroid }
On 4 October 2010 14:32, tony obrien tobsourcecode...@gmail.com wrote:

 And my point is -- why would the designers of that APP use a cache?
 It doesn't 'minimize network traffic' since it always seems to go up
 to the net anyway to do a D/L

Cache in Market app does reduce network traffic.

 And having to either KILL the MARKET app on the device, or Clear its'
 cache still confounds me as to why it has one at all.
 If the thing is smart enough to know when an update is ready, why
 isn't it smart enough to know that its' cache is stale?

You do not have to do that. Sparringly Market may lag a bit
when you update anything, but it does not last too long.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Stagefright Mediaextractor: how to detect interlaced streams in video files?

2010-10-04 Thread Deva R
[resolved now]

i realized lately that its beyond the scope of file parser., and
supposed to be done by codec component.
written a custom parser to detect interlaced content,
and posted to local gerrit - http://review.omapzoom.org/#change,6889

-- 
Regards,
Deva
www.bittoggler.com

On Tue, Sep 7, 2010 at 4:14 PM, Deva R r.deva...@gmail.com wrote:
 Hi,
 Is it possible to detect scan type (progressive or interlaced) of a video
 file in stagefright?

 I see below listed fields are query-able with metadata of file through
 stagefright, but not scan-type which i guess is avaiable in MP4 file header.
 Any hint on how to detect scan-type of video file at Stagefright player
 driver? Or is it available in opencore??
 Thanks,
 Deva
 PS.
 From .\frameworks\base\include\media\stagefright\MetaData.h
 enum {
     kKeyMIMEType          = 'mime',
     kKeyWidth             = 'widt',
     kKeyHeight            = 'heig',
     kKeyChannelCount      = '#chn',
     kKeySampleRate        = 'srte',
     kKeyBitRate           = 'brte',
     kKeyESDS              = 'esds',
     kKeyAVCC              = 'avcc',
     kKeyVorbisInfo        = 'vinf',
     kKeyVorbisBooks       = 'vboo',
     kKeyWantsNALFragments = 'NALf',
     kKeyIsSyncFrame       = 'sync',
     kKeyIsCodecConfig     = 'conf',
     kKeyTime              = 'time',
     kKeyDuration          = 'dura',
     kKeyColorFormat       = 'colf',
     kKeyPlatformPrivate   = 'priv',
     kKeyDecoderComponent  = 'decC',
     kKeyBufferID          = 'bfID',
     kKeyMaxInputSize      = 'inpS',
     kKeyThumbnailTime     = 'thbT',
     kKeyAlbum             = 'albu',
     kKeyArtist            = 'arti',
     kKeyAlbumArtist       = 'aart',
     kKeyComposer          = 'comp',
     kKeyGenre             = 'genr',
     kKeyTitle             = 'titl',
     kKeyYear              = 'year',
     kKeyAlbumArt          = 'albA',
     kKeyAlbumArtMIME      = 'alAM',
     kKeyAuthor            = 'auth',
     kKeyCDTrackNumber     = 'cdtr',
     kKeyDiscNumber        = 'dnum',
     kKeyDate              = 'date',
     kKeyWriter            = 'writ',
 };



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

2010-10-04 Thread MobDev
Actually, as I mentioned in my post, it's already a 1.6 project... I
can only make a 1.6 project if I have the SDK that supports it rigth ?
Actually my SDK has been updated up to 2.2
Anyhow, after changing the Project Library (and the project using the
library) to a 2.2 project it started working out of the blue...


On 2 okt, 19:58, Xavier Ducrohet x...@android.com wrote:
 The link you referenced shows which version of the 1.6 SDK component
 supports library projects
 (http://developer.android.com/guide/developing/eclipse-adt.html#librar...).

 I'm guessing you have an older version. rev 3 (for 1.6) is needed. Use
 the SDK updater to get an update to the 1.6 SDK component. 
 (seehttp://developer.android.com/sdk/adding-components.htmlfor more info)

 Xav



 On Fri, Oct 1, 2010 at 12:28 AM, MobDev developm...@mobilaria.com wrote:
  Hi,
  I have been trying to work with a Library Project, just like it's
  mentioned in the documentation :
 http://developer.android.com/guide/developing/eclipse-adt.html

  I have created my Library Project as a Android 1.6 Project and now I
  have been trying to reference to it out of my second project (also an
  Android 1.6 project) and I am getting the following error :
  Target 'Android 1.6' does not support building project with
  libraries.

  The documentation states that supported platfroms are the 1.5 onwards
  (with exception for the 2.0  2.0.1) and that the second project
  should have the same platform or higher (in my case the same)...

  So any idea what's ahppening here ? And most importantly : any idea
  how to solve this ?
  Thx 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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 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: Scrollable Menu Bar like Fox news app

2010-10-04 Thread TreKing
On Mon, Oct 4, 2010 at 2:29 AM, Ganapathy.C cganapa...@gmail.com wrote:

 I Want to use Scrolling Menu same as UIScrollView in iPhone..


Android is not iPhone so you're not guaranteed to find equivalent controls.
However, you may find a Gallery may suit your needs.

-
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] thousands of strings

2010-10-04 Thread Éva Lovrencsics
Ok, but how can I fill the database with my thousands of strings?
I said, I don't want to load the whole array in a String[], because it
can be too big.
Maybe I don't have so much memory.



On Mon, Oct 4, 2010 at 15:49, Mark Murphy mmur...@commonsware.com wrote:
 2010/10/4 Éva Lovrencsics lovi...@gmail.com:
 Or it's not a good idea to put them into arrays.xml? How do you handle
 thousands of strings?

 Use a database.

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

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

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

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


[android-developers] problem to run video stream in 1.5

2010-10-04 Thread zohar lerman
Hi

I am trying to play the streaming video using the API demo
application.
I set the path to mp4 link from the web.

when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but
on HTC Dream (SDK 1.5) it throws the following exception:

10-04 10:46:42.073: ERROR/ZL(3984): error: Prepare failed.: status=0x1
10-04 10:46:42.073: ERROR/ZL(3984): java.io.IOException: Prepare
failed.: status=0x1
10-04 10:46:42.073: ERROR/ZL(3984): at
android.media.MediaPlayer.prepare(Native Method)
10-04 10:46:42.073: ERROR/ZL(3984): at
com.example.android.apis.media.MediaPlayerDemo_Video.playVideo(MediaPlayerDemo_Video.java:
109)
10-04 10:46:42.073: ERROR/ZL(3984): at
com.example.android.apis.media.MediaPlayerDemo_Video.surfaceCreated(MediaPlayerDemo_Video.java:
154)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.SurfaceView.updateWindow(SurfaceView.java:352)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:259)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.View.draw(View.java:5841)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.drawChild(ViewGroup.java:1536)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.drawChild(ViewGroup.java:1534)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.View.draw(View.java:5841)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
10-04 10:46:42.073: ERROR/ZL(3984): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:1898)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewRoot.draw(ViewRoot.java:1217)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.os.Looper.loop(Looper.java:123)
10-04 10:46:42.073: ERROR/ZL(3984): at
android.app.ActivityThread.main(ActivityThread.java:3948)
10-04 10:46:42.073: ERROR/ZL(3984): at
java.lang.reflect.Method.invokeNative(Native Method)
10-04 10:46:42.073: ERROR/ZL(3984): at
java.lang.reflect.Method.invoke(Method.java:521)
10-04 10:46:42.073: ERROR/ZL(3984): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
10-04 10:46:42.073: ERROR/ZL(3984): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
10-04 10:46:42.073: ERROR/ZL(3984): at
dalvik.system.NativeStart.main(Native Method)


any idea?

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


[android-developers] Re: LG Ally from Verizon 2.1-update1 has broken apps

2010-10-04 Thread pistol
Apart from a couple more complaints I haven't heard any more - I think
LG have acknowledged it but they don't seem to be rushing out a fix.

On Oct 3, 2:41 pm, lloyd1949 lloydmcfarl...@comcast.net wrote:
 Hi:
 I just received the same complaint from a couple of my users with LG
 phone. Has anyone learnt anything more about this problem.

 On Oct 1, 2:10 am, Sheado chad...@gmail.com wrote:

  Hi Pete,

  I got about 6 reports fromLGAlly users having this same issue with
  my app since theOTAupdate.
  Unfortunately, I have not figured out if there's anything I can do
  from my end to prevent this from happening in the future.

  Anybody have any info on this?

  Thanks!
  -Chad

  On Sep 26, 10:50 am, pistol lava.d...@gmail.com wrote:

   I have been told by one of my customers that myapp(and some others)
   no longer works on his phone since he got anOTAfor2.1-update.

   a bit of a Google about and it sounds like yes - my customer and myappare 
   not alone.

   Has any-one else encountered this - is itVerizon'sfault or has myappgot 
   some obscure bug?

   thanks,
              Pete

   User's quote:

   The icon has changed from the normal group text icon to a generic
   android icon, and
   instead of being called group text, the name that shows up in myapp
   menu is
   com.smallbould. When I click on the icon, every time I get an
   immediate
   message saying that Andriod Home has to be force closed. I never even
   make
   it to the group text main screen... nothing from group text loads,
   period.

   I can uninstall theappand then reinstall it from Android market
   and
   everything goes back to normal... the icon and theappname go back
   to
   normal and theapploads and works without a problem. But as soon as I
   power
   down the phone, theappreverts to the generic icon and becomes
   totally non
   functional
   again.

   For what its worth, Fandango and History Eraser also have this problem
   after
   2.1-update1. All of these apps worked flawlessly before the update. My
   phone
   is anLG AllyfromVerizon.



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


Re: [android-developers] Android market update fails

2010-10-04 Thread TreKing
On Sun, Oct 3, 2010 at 5:30 AM, marlan marlan12...@googlemail.com wrote:

 Is there something broken?


When dealing with the Android Market, the answer is usually a resounding
YES =P

Try temporarily changing your app's title and / or description (add or
remove a character). I've found this helps updates take if you run into
this problem.

-
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] thousands of strings

2010-10-04 Thread Mark Murphy
2010/10/4 Éva Lovrencsics lovi...@gmail.com:
 Ok, but how can I fill the database with my thousands of strings?

Option #1: Download the database

Option #2: Package the database in assets/ or res/raw/ and copy it to
the local file system

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

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

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


Re: [android-developers] Re: The Market App has a CACHE !

2010-10-04 Thread TreKing
On Mon, Oct 4, 2010 at 7:32 AM, tony obrien tobsourcecode...@gmail.comwrote:

 And my point is -- why would the designers of that APP use a cache?


Images, descriptions, comments, app lists you just viewed?

Try this: after you clear the market cache, open it up and navigate to some
app. See how long it takes. Now open the comments section and see how long
that takes. Now back out of that app, then go right back to it. How long
does it take to load that now?

It hardly makes sense to re-fetch the exact same data 10 seconds after
originally getting it.


  If the thing is smart enough to know when an update is ready, why isn't it
 smart enough to know that its' cache is stale?


Actually, I've found it's not really smart enough to know when an update is
ready (I never get update notifications). And it might not know the cache is
stale for the same reason - it's simply buggy.

-
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: ExternalStorage, ContentProviders, and Startup

2010-10-04 Thread Adam Hammer
I found it and it does exactly what I need. My api was set to 2.1, but
that function is 2.2. My min-sdk is level 8 so I'm ok with that.

Adam

On Oct 4, 4:50 am, Adam Hammer adamhamm...@gmail.com wrote:
 The answer I think I was looking for was
 ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, I can't exactly find it in
 the Intent class though.

 That would solve at least one of my problems. If it was guaranteed to
 be triggered even when there were no applications, in the case that
 the card is ready and loaded and done with, it would be perfect.

 Thanks.
     Adam

 On Oct 3, 9:39 pm, Dianne Hackborn hack...@android.com wrote:



  I would strongly recommend not putting such apps on the SD card.  There is a
  reason that apps must explicitly opt-in to being on the SD card, and why we
  recommend so many types of apps don't do 
  so:http://developer.android.com/guide/appendix/install-location.html#Sho...

  http://developer.android.com/guide/appendix/install-location.html#Sho...(I
  guess add apps that publish content providers for other apps to use to
  that list.)

  With the transient nature of the SD card, we generally consider it to be a
  good place for large apps that are self-contained.  Games, for example. :)

  On Sun, Oct 3, 2010 at 7:27 PM, Adam Hammer adamhamm...@gmail.com wrote:
   I have a ContentProvider in a separate apk that supplies data to my
   live wallpaper. At boot time my content provider does not seem to be
   available. I can wait until the SD is mounted, but it's still not
   ready, as I assume it makes the provider available post mount.

   So how do I wait for the providers to be loaded when stored on sd?

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
cr...@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] Image encoders and decoders

2010-10-04 Thread sowmya
Hi All ,

I want to know the APIs which i can call from my activity to get image
information like image width,height,decodedbuffer etc .similarly i
want to the image encoder apis(jpeg) to encode rawdata

Thanks and Regards,
Sowmya

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

2010-10-04 Thread TreKing
On Sun, Oct 3, 2010 at 5:22 PM, Umer Farooq uu_far...@hotmail.com wrote:

 How we can create run time button click evernts in androif application.


Read the documentation for buttons - this should provide you all you need.
If you still have trouble, post back with a more specific question with
whatever problem you're having.

-
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] bitmap magnification

2010-10-04 Thread n2v2rda2
with imageview and network-thread,i am making live cam-view ,bitmap
size is 360 240,
after parsing network-data to bitmap
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 2;
Bitmap orgBitmap = BitmapFactory.decodeByteArray();
Bitmap bitmap = Bitmap.createScaledBitmap(orgBitmap, width, 
height /
2 , true);

if (bitmap != null) {
Message msg = Message.obtain(handler, 0, current_ch, 0, 
bitmap);
handler.sendMessage(msg);
 }

send bitmap by Message to ImageView.setImageBitmap(bitmap);

all thing is good ,i can see live-cam
but, to fit image in screen like 
Bitmap.createScaledBitmap(orgBitmap, width, height / 2 , true)
Seeing bitmap is getting slow , the bigger bitmap is , the more speed
down
finally, shut-downed

how to fit image in screen without pain

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

2010-10-04 Thread MobDev
Hi, I have created a Library Project which I import into another
project. In that Library Project at some point I retrieve it's
android:versionName To do that you need to supply the package name.
The problem arises when that code is executed when the Library Project
is included within another project, then it seems that that code
throws an exception : 10-04 10:15:36.987: WARN/System.err(1407):
getSoftwareVersion(), Caught Exception :
android.content.pm.PackageManager$NameNotFoundException:
mobilaria.android.LandenPlayerCodeBase.baseplayer

Thats the package name of the package of the Project Library... it
seems it cannot find it even though the same code that is executing
that call is part of the Library itself...

Does anyone have experienced something like this or has an idea on how
to solve this ?

/edit : I posted this on stackoverflow as well and someone responded
with :
As far as I know android library project manifest is ignored at the
moment, manifest is not merged into end application when you reference
a library. Hence you cant extract any data from the library's
manifest.

So my question now is :
hhmmm ok, that would explain it I guess... But is there any official
statement or anyone who knows this for sure ? For example someone who
has already worked with a Library Project extensively before ?

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

2010-10-04 Thread Jakke
Hi,
I've received messages from users that my application crashes after
users have used camera. This works fine on my test phone Nexus One.
Starting intent -
Uri imageUri = Uri.fromFile(imageFile);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
activity.startActivityForResult(intent,
LogicUtils.CAPTURE_IMAGE_ACTIVITY_REQUEST);

As I understand intent is started (since in reports doesn't says that
after picture is taken, application crashes)
So problem should be in here.
Handling Intent results -
@Override
public void onActivityResult(int requestCode, int resultCode, final
Intent data) {
if (requestCode == LogicUtils.CAPTURE_IMAGE_ACTIVITY_REQUEST) {
if (resultCode == RESULT_OK) {
Thread getPictureFromUri = new Thread(){
@Override
public void run() {
Bitmap bitmap = null;
try{
bitmap =
(Bitmap)intent.getExtras().get(data);
saveAndRelease(tempFile, bitmap);
//http://www.jondev.net/articles/
Capturing,_Saving,_and_Displaying_an_Image_in_Android_
%281.5,_1.6,_2.0,_2.1,_2.2,_Sense_UI_-_Hero%29
l.i(using the Sense UI);

}
catch (NullPointerException ex) {
Uri chosenImageUri = intent.getData(); //this
works at least for some phone models
if(chosenImageUri == null){
chosenImageUri =
intent.getParcelableExtra(Intent.EXTRA_STREAM); //Not tested if this
works
}
try {
bitmap =
Media.getBitmap(context.getContentResolver(), chosenImageUri);
saveAndRelease(tempFile, bitmap);
}
catch (FileNotFoundException e) {}
catch (IOException e) {}
}
catch(Exception e) {}
//This image file is same file
//as the one that were used to create 
Uri from and given to the
camera intent
}
};
getPictureFromUri.start();
}
else if (resultCode == RESULT_CANCELED) {
}
}
}

I assume that camera intent didn't store captured image to given File
imageFile. I've tried this with other variations and and haven't
managed to resolve this issue. I've use my own camera activity to take
photo on phones that use platform 1.6 and older and that works fine.
So this isn't platform issue.

There must be away to use native camera app to take picture. What do I
do wrong?

Sorry that I can't give any more information like stack trace. I would
really appreciate if somebody with Motorola droid with platform 2.2
could give some input on this 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


[android-developers] Re: Hi All, Please help me!!

2010-10-04 Thread Ulzii
Thanks you so much. Your suggestion is working.

On Oct 1, 2:55 am, TreKing treking...@gmail.com wrote:
 On Thu, Sep 30, 2010 at 12:56 PM, Ulzii ter...@gmail.com wrote:
  The certificate that signed this apk is not valid until the future.

 This usually means the time on your computer, at the time you signed your
 app, was ahead of the real current time.

 Try manually resetting your system clock to like a day in the past and try
 again.

 --- 
 --
 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: how to detect if a phone is running HTC sense UI

2010-10-04 Thread Denis Souza
 I would really like to know why people want to know they are running with
 Sense UI.  Is it just for notifications?  Are there other things?

Yes, there are. The Sense UI changes some of the API's behavior. I
know of two things that work differently on Sense UI. Both of them
have to do with my app, which changes the number being dialed.

1) The call log won't allow updates. It strangely allows inserts but
even though it lets you insert the phone number dialed it won't allow
you to also insert the display name (if you do it stays as unknown
and looks really awkward). I opened a discussion about this a while
back and didn't realize back then that it only happened on Sense UI
phones. Some people argued that you shouldn't touch the call log (even
though there's nothing about that in the documentation). On the
emulator and on non-Sense UI devices it works flawlessly (at leas on
all of those that I've tested so far). My app need this to keep the
original dialed number in the call log. In this case, when running
Sense UI it's better not to touch the call log that to touch it and
have it look awkward.

2) In particular HTC Desire with Android 2.2 won't allow you to change
the number being dialed.
(see thread:
http://groups.google.com/group/android-developers/browse_thread/thread/1e23230cfaae5038/3fd980598e78c479?lnk=gstq=desire+2.2)
I do admit that in this case I'm not completely sure it's a Sense UI
problem (I've seen it happen on Motorola devices but it was an easy
fix, removing the priority setting from the Intent). I also had
reports from Desire 2.2 users that had this working and one day, it
just stopped to never work again.


On Sep 28, 12:36 am, GodsMoon godsm...@gmail.com wrote:
 Looks like a good solution for an unfortunate problem David.

 Anyone know what package is MotoBlur would be?

 @Dianne
 I'm using this to instruct the user to change the Lock phone after
 or the Security lock timer for SenseUI or MotoBlur respectively.
 I need to use the right terminology. Also these two settings are
 value added features that break my app, Smart Lock.
 I'm pretty sure I can't access those custom skin api's.
 I know my app is a statistical outlier, but I'd call this
 fragmentation.

 Thanks,
 David Shellabarger

 On Aug 7, 12:50 pm, David david_almi...@yahoo.com wrote:







  This is how I do it. I would use it sparingly though so you don't bind
  your app to a particular phone.  I really only use it to determine
  whether or not I should be showing light or dark icons in the
  notification bar.  This seems to work fine with my HTC Incredible and
  the emulator to determine whether it is there or not.  Of course I
  don't have two home screens installed on my incredible so I don't know
  what would happen in that case.

  Hope this helps,
  David

          private static final String SENSE_UI_LAUNCHER_NAME =
  com.htc.launcher.Launcher;
          private static BooleansenseUI;

          public static final boolean isSenseUI(Context context) {
                  if (senseUI== null) {
                         senseUI= false;
                          PackageManager packageManager =
  context.getPackageManager();

                          Intent intent = new
  Intent(Intent.ACTION_MAIN);
                          intent.addCategory(Intent.CATEGORY_HOME);
                          ListResolveInfo list =
  packageManager.queryIntentActivities(intent,
  PackageManager.MATCH_DEFAULT_ONLY);
                          for (ResolveInfo info : list) {
                                  if (info.activityInfo != null 
  SENSE_UI_LAUNCHER_NAME.equals(info.activityInfo.name)) {
                                         senseUI= true;
                                          break;
                                  }
                          }
                  }
                  returnsenseUI;
          }

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

2010-10-04 Thread Zarah Dominguez
Hi Tony!

I experienced the same thing last Friday!  I updated my app but when I
checked the market it still shows the old version.  I was in a panic
too! ;)

I forced the Market app to terminate and then restarted it (pretty
much what Doug said, eh?), and it showed the update.  I am not sure if
there is some other way to force a page on the Market app to refresh
other than this way.


- Zarah.

On Oct 4, 2:30 pm, Doug beafd...@gmail.com wrote:
 I've noticed that the Market app client has its own cache that it will
 consult.  If you force the Market app to terminate, you're more likely
 to see fresh results from the server.

 Doug

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

2010-10-04 Thread dmtrl...@gmail.com
Hi all,

I have code for capture video:

Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(android.intent.extra.durationLimit, 3);
intent.putExtra(EXTRA_VIDEO_QUALITY, 0);
startActivityForResult(intent, ActivityRequests.REQUEST_TAKE_VIDEO);

This code works good on 2.2 but duration limit not works on 2.1
(Galaxy S). Is available some parameter for set this time ? I ask
because i found application, that works on Galaxy S (Vibrant) and
after some time recording stops.

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


[android-developers] Re: unable to play rtsp video (H.264) stream in Froyo using MediaPlayer

2010-10-04 Thread Doug
On Oct 3, 8:12 pm, Aamir a2zbu...@gmail.com wrote:
 I have an app that worked fine on Android 2.1 (Eclair) but is no
 longer working in 2.2.1 (Froyo).  I think this may have to do with the
 shift from OpenCore to StageFright for video encoding and decoding,
 but am unsure.

Something happened in 2.2 with StageFright that dropped support for
videos that used to play in 2.1.  I only know this from (many)
anecdotes but I have no idea what happened, how to qualify it, or even
an example of a video that exhibits this behavior.  This is the most
information I've ever seen on the issue on in one place.  :-)

Doug

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


[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-10-04 Thread Zarah Dominguez
Hi Mike,


Seeing as you already had a workaround, do you still need the snippet?

On second thought, your email seems to be deleted. Oh well.


Salamat!


-Zarah.

On Oct 4, 10:10 am, mikedroid michan...@gmail.com wrote:
 actually we had a small workaround but i guess if samsung will not
 update soon(although we did catch that as an exception),
 using componentName...

 On Oct 1, 1:22 pm, Zarah Dominguez zarah.doming...@gmail.com wrote:



  I was also able to insert a contact into the address book.  So far it
  looks like the only action not supported is viewing the wholecontacts
  list.

  Pasted the stacktrace I got in 
  StackOverflow:http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on...

  I guess what happened is thatSamsung'sowncontactsapp has an
  incomplete manifest.  Oh well, for the meantime I managed to get
  around it by disabling the button to access the phonebook using
  PackageManager so that users won't be confused.

  -Zarah.

  On Oct 1, 9:10 am, mikedroid michan...@gmail.com wrote:

   actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
   using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
  samsung'snativecontactsactivity which is named something like
   PhoneBookTopMenuActivity. Also i noticed that instead of the two
   actions i;ve mentions they are using this activity with filters
   action=main; category=launcher which is odd right?

   On Sep 30, 3:42 pm, Zarah Dominguez zarah.doming...@gmail.com wrote:

Yeah, hope we get feedback soon.  Mark Murphy referred me to 
this:http://code.google.com/p/android/issues/detail?id=10143

Hi Mike,

How did you handle this on your end?

-Zarah.

On Sep 30, 1:04 pm, mikedroid michan...@gmail.com wrote:

 yes im having this problem also hope they can check it soon

 On Sep 28, 12:45 am, Zarah Dominguez zarah.doming...@gmail.com
 wrote:

  Hi Alberto,

  Sorry, I only saw this thread again today.

  I wasn't able to launch the Phonebook, I just added a small bit of
  code to check if there is someone who can receive the phonebook
  intent.

  PackageManager pkgMgr = getPackageManager();
  ListResolveInfo list = pkgMgr.queryIntentActivities(new
  Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
  PackageManager.MATCH_DEFAULT_ONLY);
  if (list.isEmpty()){
          // I just remove the menu item to access the phonebook
          menu.removeItem(R.id.app_menu_contacts);

  }

  Maybe you can try this approach also.

  Hope this helps,
  Zarah.

  On Aug 28, 3:36 am, Albert albert8...@googlemail.com wrote:

   Hi Zarah,

   I have reports of the app launching a blank screen but not crash. 
   I am
   getting aSamsungSpica this week but you have already stated that 
   it
   works there so that won't be of any use. For my app is wan't so
   critical so I just instructGalaxySusers to insert those details
   manually. The best is probably to contactSamsungdevelopment
   department and find out what mess they have done and from there 
   find a
   suitable solution.

   If you ever find a solution, please let me know.

   Alberto

   On Aug 23, 10:20 am, Zarah Dominguez zarah.doming...@gmail.com
   wrote:

Hi Alberto,

I saw this on theGalaxySalso.  I have tested the app on 
theGalaxy
Spica (i5700), it is working perfectly.  But when I tested the 
app on
theGalaxyS, the app crashes.

I haven't found a solution yet, but this is what I found from 
Logcat:
08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed 
activity
com.android.contacts/
com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms 
(total
452 ms)

Versus what is seen from the emulator:
08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
com.android.contacts/.DialtactsContactsEntryActivity: 348 ms 
(total
348 ms)

Looks like theGalaxyShas a different way of handling intents for
the Phonebook.

If you find a solution, please let me know also.

Thanks!
-Zarah

On Aug 12, 7:06 pm, Albert albert8...@googlemail.com wrote:

 I have an user from my app that has reported this issue on 
 aSamsung
GalaxyS. Do you know why it's happening? Did you find a 
solution?

 -Alberto

 On Aug 6, 1:46 pm, Alok Kulkarni kulsu...@gmail.com wrote:

  yeah it is only happening on that deviuce. But i have found 
  a different
  solution to it which i will put up here tomorrow.

  On Wed, Aug 4, 2010 at 12:51 PM, dan raaka 
  danra...@gmail.com wrote:
   Is this happening only on Europa ?

   -Dan

   On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni 
   

Re: [android-developers] Retrieve android:versionName from Library Project

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 8:27 AM, MobDev developm...@mobilaria.com wrote:
 /edit : I posted this on stackoverflow as well and someone responded
 with :
 As far as I know android library project manifest is ignored at the
 moment, manifest is not merged into end application when you reference
 a library. Hence you cant extract any data from the library's
 manifest.

 So my question now is :
 hhmmm ok, that would explain it I guess... But is there any official
 statement or anyone who knows this for sure ?

I am fairly certain the quoted passage above is correct. At the
moment, AFAIK, there is no concept of the library's version being
carried forward into the application, simply because there is no place
to put it.

Use a string resource instead of android:versionName.

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

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

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


[android-developers] Re: The Market App has a CACHE !

2010-10-04 Thread DanH
Keep in mind that phone apps are/should be designed to minimize
network traffic.  So caching is a good thing, generally.  The Market
app is designed to sell stuff, not give the developers warm fuzzies.

On Oct 4, 3:33 am, Zarah Dominguez zarah.doming...@gmail.com wrote:
 Hi Tony!

 I experienced the same thing last Friday!  I updated my app but when I
 checked the market it still shows the old version.  I was in a panic
 too! ;)

 I forced the Market app to terminate and then restarted it (pretty
 much what Doug said, eh?), and it showed the update.  I am not sure if
 there is some other way to force a page on the Market app to refresh
 other than this way.

 - Zarah.

 On Oct 4, 2:30 pm, Doug beafd...@gmail.com wrote:

  I've noticed that the Market app client has its own cache that it will
  consult.  If you force the Market app to terminate, you're more likely
  to see fresh results from the server.

  Doug

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

2010-10-04 Thread Adam Hammer
The answer I think I was looking for was
ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, I can't exactly find it in
the Intent class though.

That would solve at least one of my problems. If it was guaranteed to
be triggered even when there were no applications, in the case that
the card is ready and loaded and done with, it would be perfect.

Thanks.
Adam


On Oct 3, 9:39 pm, Dianne Hackborn hack...@android.com wrote:
 I would strongly recommend not putting such apps on the SD card.  There is a
 reason that apps must explicitly opt-in to being on the SD card, and why we
 recommend so many types of apps don't do 
 so:http://developer.android.com/guide/appendix/install-location.html#Sho...

 http://developer.android.com/guide/appendix/install-location.html#Sho...(I
 guess add apps that publish content providers for other apps to use to
 that list.)

 With the transient nature of the SD card, we generally consider it to be a
 good place for large apps that are self-contained.  Games, for example. :)



 On Sun, Oct 3, 2010 at 7:27 PM, Adam Hammer adamhamm...@gmail.com wrote:
  I have a ContentProvider in a separate apk that supplies data to my
  live wallpaper. At boot time my content provider does not seem to be
  available. I can wait until the SD is mounted, but it's still not
  ready, as I assume it makes the provider available post mount.

  So how do I wait for the providers to be loaded when stored on sd?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] google voice native phone dialer control

2010-10-04 Thread Alejandro D. Garin
Hi All,

Does anyone know how google voice application is taking control of the
default phone native dialer?
Is it using the public android API? I saw how google voice display a bubble
at top and mask the dialed out number in the native dialer.

We need to do something like this in our application but I can't find
nothing about how to do it. Please google guys give me a tip about if it's
native code or public api.

Thanks.
Alejandro.

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

2010-10-04 Thread JavaMan
Hi,
I am trying to take a picture using the phone's built-in camera
utility. I am passing the intent filter
MediaStore.ACTION_IMAGE_CAPTURE, and the camera app starts up, but
once I take a picture and press ok, nothing happens. Nothing appears
in the DDMS either. Here is my code to launch the camera:

 Intent cam = new 
Intent(MediaStore.ACTION_IMAGE_CAPTURE);
 cam.putExtra(MediaStore.EXTRA_OUTPUT,
MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
 
NoteViewer.this.startActivityForResult(cam,
NoteViewer.this.TAKE_PICTURE);

Any ideas on what I am doing wrong here?
Vance

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

2010-10-04 Thread ColletJb
Hi,

I'm trying to use Google Maps Navigation from within my application.

I've found on the net it can be done with this intent :

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(geo:+lat
+,+lng));

where lat and lng are the latitude and longitude.

Unfortunately, I get a SecurityException :'(. Can someone tell me
which permission I should ask ?

Thanks a lot for your help.

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


[android-developers] DDMS and Eclipse debugger in SDK 8

2010-10-04 Thread Bret Foreman
Since upgrading to SDK 8 I cannot use the Eclipse debugger and DDMS at
the same time. The error I get in the Eclipse console when I start
DDMS is:

[2010-10-04 08:00:12 - DeviceMonitor]Adb connection Error:An existing
connection was forcibly closed by the remote host
[2010-10-04 08:00:13 - DeviceMonitor]Connection attempts: 1

After this error, the Eclipse debugger cannot attach. The only way to
fix it is to shut down DDMS and Eclipse and restart Eclipse. This is
quite inconvenient. Anyone know a way to fix this or at least a better
way to manage it so I don't have to restart Eclipse?

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


[android-developers] Re: Mapping 6 faces of cube with 6 different images

2010-10-04 Thread Robert Green
Girish,

There are 2 tools you will need:

1)  Canvas APIs
2)  Your programming intuition

It's not hard.  Just load the 6 bitmaps, create your atlas one and
draw the 6 bitmaps to it, then store the percentages (learn about UV
coordinates somewhere) and use those percentages as your UVs.  Get the
redbook if you need more help - it's in there.

:)

On Oct 4, 2:23 am, Girish H T htgir...@gmail.com wrote:
 Hi  Lance,

 Thanks for your answer.

 If i want to change the images dynamically how can that be possible ? Is it
 possible to generate the atlas @ runtime programatically ?

 Can you point me the the tools used for generating texture atlas ?

 Regards
 Girish

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

2010-10-04 Thread Kenneth WON
Hi , all,
I got the following error:

ERROR/CursorWindow(6924): need to grow: mSize = 1048576, size = 63,
freeSpace() = 15, numRows = 11460
ERROR/CursorWindow(6924): not growing since there are already 11460
row(s), max size 1048576
ERROR/CursorWindow(6924): The row failed, so back out the new row
accounting from allocRowSlot 11459
ERROR/Cursor(6924): Failed allocating fieldDir at startPos 0 row 11459

I just select all the data from SQLite, then call the method
c.moveToFirst() and the error occurred.
How can I solve the problem?
Thank you for your help!

Best Regards,
Kenneth WON

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

2010-10-04 Thread Justin Giles
The way I handle this is I have a small database packaged with the initial
application install.  Upon first run, it attempts to download the full
database from my server.  If it fails, then the user still has a subset of
items to choose from with the smaller database until the next time the game
loads when it tries to download the db again.  This minimizes the initial
size of the app as well as guarantees playability in the onset in case the
user loses network connectivity for some reason.  The app checks for the
full database until it officially gets downloaded.  I guess you can see this
as a hybrid version of Mark's suggestions.

Justin

On Mon, Oct 4, 2010 at 9:17 AM, Mark Murphy mmur...@commonsware.com wrote:

 2010/10/4 Éva Lovrencsics lovi...@gmail.com:
  Ok, but how can I fill the database with my thousands of strings?

 Option #1: Download the database

 Option #2: Package the database in assets/ or res/raw/ and copy it to
 the local file system

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

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] ActivityManager(): Timeout executing service

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 3:11 AM, kronos jeremyvillalo...@gmail.com wrote:
 I was using WAKE_LOCK when the whole application was an Activity, but
 now that it is a Service and an Activity, WAKE_LOCK does not seem to
 work if used from the Service.

A WakeLock works just fine in a service.

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

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

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


[android-developers] Re: LG Ally from Verizon 2.1-update1 has broken apps

2010-10-04 Thread keno
The problem seems to be with copy protected apps. LG seems to have a
broken mechanism for managing these in the latest update.

If you toggle copy protection off in the marketplace, everything works
fine after a reinstall of the app. Just my observations so far.

On Sep 26, 1:50 pm, pistol lava.d...@gmail.com wrote:
 I have been told by one of my customers that my app (and some others)
 no longer works on his phone since he got an OTA for2.1-update.

 a bit of a Google about and it sounds like yes - my customer and my
 app are not alone.

 Has any-one else encountered this - is it Verizon's fault or has my
 app got some obscure bug?

 thanks,
            Pete

 User's quote:

 The icon has changed from the normal group text icon to a generic
 android icon, and
 instead of being called group text, the name that shows up in my app
 menu is
 com.smallbould. When I click on the icon, every time I get an
 immediate
 message saying that Andriod Home has to be force closed. I never even
 make
 it to the group text main screen... nothing from group text loads,
 period.

 I can uninstall the app and then reinstall it from Android market
 and
 everything goes back to normal... the icon and the app name go back
 to
 normal and the app loads and works without a problem. But as soon as I
 power
 down the phone, the app reverts to the generic icon and becomes
 totally non
 functional
 again.

 For what its worth, Fandango and History Eraser also have this problem
 after
 2.1-update1. All of these apps worked flawlessly before the update. My
 phone
 is an LG Ally from Verizon.

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

2010-10-04 Thread Bret Foreman
I've tried it both ways that Mark describes and I highly recommend you
package it in your /res folder if you can stand the increased
application memory footprint. You can't be sure that your user has
network connectivity all the time and handling the various cases of no/
intermittent/slow network connectivity creates a lot of complexity.

On Oct 4, 7:17 am, Mark Murphy mmur...@commonsware.com wrote:
 2010/10/4 Éva Lovrencsics lovi...@gmail.com:

  Ok, but how can I fill the database with my thousands of strings?

 Option #1: Download the database

 Option #2: Package the database in assets/ or res/raw/ and copy it to
 the local file system

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

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

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


[android-developers] Re: thousands of strings

2010-10-04 Thread DanH
It's dumb to use a database -- would take up much more space than the
strings in arrays.xml, and be slower to access.  Of course, if there
is no way to access a single element from arrays.xml ...

... one could, since this is a fixed database, use a dope vector
into a file:  Create a file with all the strings end-to-end, and
another file that contains the start-end offsets of each string.
Access the second file randomly (or have it loaded into an array) to
get the offsets, then access the first file at those offsets to get
the string.  I don't know if you can somehow access a file in assets
randomly, but if so you could put these files there and name them .jpg
or some such (to prevent compression).  Otherwise you should copy them
from assets to real files (taking care to name the string file .jpg or
some such if it might be 1M).

On Oct 4, 8:49 am, Mark Murphy mmur...@commonsware.com wrote:
 2010/10/4 Éva Lovrencsics lovi...@gmail.com:

  Or it's not a good idea to put them into arrays.xml? How do you handle
  thousands of strings?

 Use a database.

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

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

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


[android-developers] Bluetooth headset noise-cancellation activation through android app

2010-10-04 Thread Garima
I have read that in-call audio is not available to SDK applications.
Does that mean that there is no way by which we can access the uplink/
downlink audio stream?

I don't want to do any call recording but instead I would like to use
VOICE_CALL or VOICE_UPLINK or VOICE_DOWNLINK through my app which is
interfaced with the bluetooth headset, so that I can use the Noise
Cancellation capability of my bluetooth (which gets activated only
when you are in phone-call mode). But am not sure how to go about
doing it. To record and playback am using AudioRecord and AudioTrack
classes.

Any help or suggestions would be greatly appreciated.

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

2010-10-04 Thread niko20
I don't think it's a breach of NDA terms to ask  - has anyone here
decided to yes, take the offer to join the Amazon store?

Personally I'm still unsure if I want to do so. The problem I have
isn't that they want to have more control over the apps, it's their
store, but that it seems like that control may extend beyond their
store.

What's everyone else been thinking?

-niko

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

2010-10-04 Thread dashman
i've got an activity that contains just one image.
- the style is DialogTheme.

i'd like to width of the image to about 80% of the
width of the screen.

how can i get the dimensions of the screen/device.

or is there a way in layouts i can specify 80% and will
the height be adjusted for proper aspect ratio.

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

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 11:44 AM, DanH danhi...@ieee.org wrote:
 It's dumb to use a database -- would take up much more space than the
 strings in arrays.xml, and be slower to access.

You will note that the OP didn't put constraints on those criteria.
The OP put a constraint on memory usage. Given the stated constraints,
a database is a reasonable solution.

 Of course, if there
 is no way to access a single element from arrays.xml ...

Correct, other than by loading the whole array, which the OP is trying to avoid.

 ... one could, since this is a fixed database, use a dope vector
 into a file:  Create a file with all the strings end-to-end, and
 another file that contains the start-end offsets of each string.
 Access the second file randomly (or have it loaded into an array) to
 get the offsets, then access the first file at those offsets to get
 the string.  I don't know if you can somehow access a file in assets
 randomly but if so you could put these files there and name them .jpg
 or some such (to prevent compression).  Otherwise you should copy them
 from assets to real files (taking care to name the string file .jpg or
 some such if it might be 1M).

This is a perfectly delightful solution for somebody with a background
in algorithms. Do you know of any Java code generator that creates
such structures?

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

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

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


[android-developers] Re: Android media player not reading ID3 tags

2010-10-04 Thread Jeremy Wadsack
On Oct 3, 3:51 pm, DraganA dand...@gmail.com wrote:
 I wonder if anyone knows whether the built in media player uses some
 kind of caching of mp3 files ID3 tag information, because after I
 change the tag of a file it doesn't show the updated data. Only after
 the phone restart, I guess after /sdcard remount, does it show correct
 tag info.

Android has the MediaScanner that looks at the media on the device
(internal and external storage) and builds a database of the tags for
MP3 (and other files). This runs one start-up and can be triggered by
sdcard mount/unmount. There is an open API to the MediaScanner that
you can use to tell it to re-scan a single file.

See scanFile in the MedisScannerConnection class.
http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context,
java.lang.String[], java.lang.String[],
android.media.MediaScannerConnection.OnScanCompletedListener)

--
Jeremy Wadsack

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

2010-10-04 Thread A. Elk
I would like to point out that, as far as I can tell, you're not doing
a real unit test.

It seems that you have at least two components. So let's say you have
two, component A and component B. You would like to test both, but you
first have to call A, which calls an asynchronous process that does
something and then triggers B. Is this correct? If so, the whole
sequence is not a unit test. A true unit test would be to call A and
then verify its results. To do that, you might have to have a test
version of the asynchronous process. To test B, you'd have to set up a
fixture that mocks the results of the asynchronous process, then you'd
have to call B.

The classes in android.test.* are not a substitute for a full test
harness. Instead, they're extensions of junit.framework.TestCase that
allow you to run JUnit within Android. To do testing of more than one
component at a time, you have to write your own test harness, and
notice that it has to be an Android app.

On Oct 3, 2:28 pm, Doug beafd...@gmail.com wrote:
 On Oct 2, 9:28 pm, Alex aleksm...@gmail.com wrote:

  I was wondering what is the best  way to accomplish this ?

 I can suggest a solution, though it may not be the best.

 You probably going to have to set up some kind of listener interface
 to be implemented in your unit test that triggers after the result is
 processed by the UI thread.  Otherwise, you'll have to figure out
 another way to detect when the processing is complete.

 In you make a listener the responds to completion, you'll have to then
 signal junit that it completed so it can assert what it needs to
 assert.

 An easy way to do that is:
 - Define a CountDownLatch that you create before executing AsyncTask
 - After executing, call await on the latch (with a timeout if you need
 it)
 - In the callback listener, call countDown on the latch to notify the
 test that it's done

 Basically, you just need to make the junit thread to wait for the
 results, and you can use any standard multithreading technique to do
 it.

 But if all you need to do is validate the results of a task without
 needing to run it on the UI thread, you could just try to call the
 methods on the AsyncTask directly (don't use execute()) and detect the
 results when the methods complete normally.

 Doug

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

2010-10-04 Thread Bret Foreman
My app creates a lot of TextView objects and this turns out to be
really slow. A look at the traceview output reveals that the bulk of
the time is spent in the TextView methods that grab all the default
parameters from /res and /util. The thing is, all my TextViews share
99% of these parameters. Is it possible to clone a TextView rather
than create one from scratch? If not, what about if I created a pool
of TextView objects and reused them?

Just to give some context, I'm generating a spreadsheet to show some
data provided from an online source and the spreadsheet can be as big
as 20 columns by 50 rows = 1000 cells, each with a TextView. It takes
about 25 seconds just to create 1000 TextViews on my Moto Droid.

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

2010-10-04 Thread kypriakos

Hi all,

I didn't find much on this anywhere and I have a feeling it is not
really possible but just in case - is there a way to launch the
emulator remotely without the necessary GUI (I can do that
using VNC etc. but it turns out to be too slow) and install/launch
apps on 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: thousands of strings

2010-10-04 Thread DanH
 This is a perfectly delightful solution for somebody with a background
 in algorithms. Do you know of any Java code generator that creates
 such structures?

Background in algorithms???  It's a Programming 101 problem -- anyone
with a modicum of programming skill should be able to do it.  It's no
harder than writing the program to read lines from a file and write
them to a database -- the only real difficulty is navigating through
the maze of Java classes you need to do file access.

On Oct 4, 11:08 am, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Oct 4, 2010 at 11:44 AM, DanH danhi...@ieee.org wrote:
  It's dumb to use a database -- would take up much more space than the
  strings in arrays.xml, and be slower to access.

 You will note that the OP didn't put constraints on those criteria.
 The OP put a constraint on memory usage. Given the stated constraints,
 a database is a reasonable solution.

  Of course, if there
  is no way to access a single element from arrays.xml ...

 Correct, other than by loading the whole array, which the OP is trying to 
 avoid.

  ... one could, since this is a fixed database, use a dope vector
  into a file:  Create a file with all the strings end-to-end, and
  another file that contains the start-end offsets of each string.
  Access the second file randomly (or have it loaded into an array) to
  get the offsets, then access the first file at those offsets to get
  the string.  I don't know if you can somehow access a file in assets
  randomly but if so you could put these files there and name them .jpg
  or some such (to prevent compression).  Otherwise you should copy them
  from assets to real files (taking care to name the string file .jpg or
  some such if it might be 1M).

 This is a perfectly delightful solution for somebody with a background
 in algorithms. Do you know of any Java code generator that creates
 such structures?

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

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

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


Re: [android-developers] Headless emulator

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 12:35 PM, kypriakos demet...@ece.neu.edu wrote:
 I didn't find much on this anywhere and I have a feeling it is not
 really possible but just in case - is there a way to launch the
 emulator remotely without the necessary GUI (I can do that
 using VNC etc. but it turns out to be too slow) and install/launch
 apps on it?

Try -no-window on the emulator command:

http://developer.android.com/guide/developing/tools/emulator.html#startup-options

I'm fairly sure this can be done, as I've seen others post here about
operating in headless mode for continuous integration and test farms
and such.

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

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

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


[android-developers] How could I be interfering with context menu longclick?

2010-10-04 Thread CodeFusion
My app used to use a standard ListView, and
registerForContextMenu(getListView()) and everything worked just fine.

I needed to change my app to accommodate nested lists so I replaced
the ListView with ExpandableListView. I changed the Activity to
ExpandableListActivity. I also changed my adapter to a tree adapter
and implemented a custom view class to populate the list with (based
on a LinearLayout viewgroup).

I have been trying to track down where I screwed it up and I've found
several things.

The most important is that when I add a longclick listener to my
custom view and return false from it, my context menu pops up and
functions properly.  However, I don't get the fading orange-to-white
long click animation because the long click is being sucked up
somewhere else until it is handled by a longclicklistener and ignored
(thus being thrown back up the chain until it reaches the
ExpandableListView (which is registered for context menus).

I am using a TouchInterceptor model to handle certain gestures from my
listview with the following implementation:

public class TouchInterceptor extends ExpandableListView {
...
protected MotionEvent downStart = null;

public boolean onInterceptTouchEvent(MotionEvent event) {

switch(event.getAction()) {
case MotionEvent.ACTION_DOWN:
// keep track of the starting down-event
downStart = MotionEvent.obtain(event);
break;
case MotionEvent.ACTION_MOVE:
// if moved horizontally more than slop*2, capture the 
event for
ourselves
if(downStart == null)
{
break;
}
float deltaX = event.getX() - downStart.getX();
if(Math.abs(deltaX)  ViewConfiguration.getTouchSlop() 
* 2)
return true;
break;
}

// otherwise let the event slip through to children
return super.onInterceptTouchEvent(event);
}

public boolean onTouchEvent(MotionEvent event) {

// check if we crossed an item
if(downStart != null)
{
float targetWidth = this.getWidth() / 4;

float deltaX = event.getX() - downStart.getX(),
deltaY = event.getY() - downStart.getY();

boolean movedAcross = (Math.abs(deltaX)  targetWidth);
boolean steadyHand = (Math.abs(deltaX / deltaY)  2);

if(movedAcross  steadyHand) {
boolean crossRight = (deltaX  0);

// figure out which child view we crossed
ListView list = 
(ListView)this.findViewById(android.R.id.list);
int position = 
list.pointToPosition((int)downStart.getX(),
(int)downStart.getY());

// pass crossed event to any listeners
onCross(crossRight, position);
downStart = null;
// and return true to consume this event
return true;
}
}
return super.onTouchEvent(event);
}
...
}


Is there something wrong with how I'm handling these events?


Note: although my context menu pops up, it only does so when the long-
click event is triggered, not a long OK button click.

Something is screwed up here and I'm not sure how to track it down.

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

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 12:38 PM, DanH danhi...@ieee.org wrote:
 Background in algorithms???  It's a Programming 101 problem -- anyone
 with a modicum of programming skill should be able to do it.

You make a few assumptions, in terms of background and experiences,
that may or may not be accurate.

 It's no
 harder than writing the program to read lines from a file and write
 them to a database -- the only real difficulty is navigating through
 the maze of Java classes you need to do file access.

The lines of code count is probably somewhat longer. More importantly,
though, the database solution is well-trod ground, with quite a few
samples. Dope vector has remarkably few hits on search engines, let
alone any code that can be readily applied in this case. Now,
admittedly, not every occurrence of this pattern may use that term --
when I used a variant on this approach on the Apple IIe in the late
1980's, I had not heard of the term.

Perhaps you would like to contribute, by either augmenting the dope
vector Wikipedia page, or by creating a couple of Java classes for
creating and reading dope vector files, to help make it easier for
people to take advantage of your expertise in this area.

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

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

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


Re: [android-developers] Optimizing TextView creation

2010-10-04 Thread Mark Murphy
You need to incorporate recycling a la AdapterView. I am willing to
bet that most of those 20 columns and 50 rows are not visible.

On Mon, Oct 4, 2010 at 12:32 PM, Bret Foreman bret.fore...@gmail.com wrote:
 My app creates a lot of TextView objects and this turns out to be
 really slow. A look at the traceview output reveals that the bulk of
 the time is spent in the TextView methods that grab all the default
 parameters from /res and /util. The thing is, all my TextViews share
 99% of these parameters. Is it possible to clone a TextView rather
 than create one from scratch? If not, what about if I created a pool
 of TextView objects and reused them?

 Just to give some context, I'm generating a spreadsheet to show some
 data provided from an online source and the spreadsheet can be as big
 as 20 columns by 50 rows = 1000 cells, each with a TextView. It takes
 about 25 seconds just to create 1000 TextViews on my Moto Droid.

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




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

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

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


Re: [android-developers] Amazon android market. Anyone take the offer?

2010-10-04 Thread Shane Isbell
Niko, I didn't sign any NDA with Amazon, but there is a lot of public
information out there about the Amazon Android Store, coming from people
leaking information out to various sites. Once the information becomes
public, the NDA in regards to you talking about public information is not
enforceable.

My guess is that they are (or will) try to enforce that developers always
keep their application up-to-date with Android Market versions. To keep
users, they would need such a provision, as who wants to buy an app from a
store that doesn't get updates?

From my experience, most developers care about two things above all else: 1)
downloads; 2) money from sales. If you look at all the other complaints,
they are related to (1) and (2). Bad comments - hurts (1) or (2). My app
doesn't show up, I can't sell it. Lots of spam apps means users can't find
my app to buy. And so on.

If Amazon can demonstrate that it can generate for the developer much more
than the $99 dollar registration fee, then developers will flock to them,
even putting up with unnecessary restrictions from Amazon.

So the problem is: can Amazon demonstrate these sales? Introducing a high
entrance fee means that 90%+ would never even consider them, as they either
have free apps or their sales on Android Market are so low, they could never
justify it. With a low number of apps in the store, users won't take it
seriously. You end up with low downloads and sales so developers don't take
it seriously.

Shane

On Mon, Oct 4, 2010 at 8:55 AM, niko20 nikolatesl...@yahoo.com wrote:

 I don't think it's a breach of NDA terms to ask  - has anyone here
 decided to yes, take the offer to join the Amazon store?

 Personally I'm still unsure if I want to do so. The problem I have
 isn't that they want to have more control over the apps, it's their
 store, but that it seems like that control may extend beyond their
 store.

 What's everyone else been thinking?

 -niko

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] how do i add the content view behind gridview?

2010-10-04 Thread dadada
hi all,

how do i add the content view behind gridview?

i could only addContentView on top of gridview.

I setContentView() of the gridview for the activity.

Thanks!

bryan

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

2010-10-04 Thread Bret Foreman
Mark,

You're googling under the wrong search terms. Dope vectors were
developed by the Three Stooges. You need to search for Larry, Curly,
and Moe.


On Oct 4, 9:51 am, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Oct 4, 2010 at 12:38 PM, DanH danhi...@ieee.org wrote:
  Background in algorithms???  It's a Programming 101 problem -- anyone
  with a modicum of programming skill should be able to do it.

 You make a few assumptions, in terms of background and experiences,
 that may or may not be accurate.

  It's no
  harder than writing the program to read lines from a file and write
  them to a database -- the only real difficulty is navigating through
  the maze of Java classes you need to do file access.

 The lines of code count is probably somewhat longer. More importantly,
 though, the database solution is well-trod ground, with quite a few
 samples. Dope vector has remarkably few hits on search engines, let
 alone any code that can be readily applied in this case. Now,
 admittedly, not every occurrence of this pattern may use that term --
 when I used a variant on this approach on the Apple IIe in the late
 1980's, I had not heard of the term.

 Perhaps you would like to contribute, by either augmenting the dope
 vector Wikipedia page, or by creating a couple of Java classes for
 creating and reading dope vector files, to help make it easier for
 people to take advantage of your expertise in this area.

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

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

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


Re: [android-developers] how do i add the content view behind gridview?

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 12:53 PM, dadada ytbr...@gmail.com wrote:
 how do i add the content view behind gridview?

 i could only addContentView on top of gridview.

 I setContentView() of the gridview for the activity.

Step #1: Create a FrameLayout

Step #2: Put the content view behind gridview as the first child of
the FrameLayout

Step #3: Put the GridView as the second child of the FrameLayout

The FrameLayout will then layer the GridView atop the content view
behind gridview

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

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

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


[android-developers] How to make a map move as you drive?

2010-10-04 Thread james pruett
Hi,

I want to make a map move.
Q: How best do I make a map move as I drive?

Everything I know about Android maps, I learned from HelloMapView.
http://developer.android.com/guide/tutorials/views/hello-mapview.html

I have all the GPS LocationManager working aok, I just need help in
the map part.

Eg, is there a nudge mechanism?
or something to assist me?

Thanks for any leads!
jim

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

2010-10-04 Thread Ganapathy.C
But many app using that kind of menus...

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

2010-10-04 Thread Mark Murphy
Call getController().setCenter() periodically (e.g., on each location update).

On Mon, Oct 4, 2010 at 1:01 PM, james pruett gpscru...@gmail.com wrote:
 Hi,

 I want to make a map move.
 Q: How best do I make a map move as I drive?

 Everything I know about Android maps, I learned from HelloMapView.
 http://developer.android.com/guide/tutorials/views/hello-mapview.html

 I have all the GPS LocationManager working aok, I just need help in
 the map part.

 Eg, is there a nudge mechanism?
 or something to assist me?

 Thanks for any leads!
 jim

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



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

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

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


Re: [android-developers] Using Google Maps Navigation

2010-10-04 Thread TreKing
On Mon, Oct 4, 2010 at 10:01 AM, ColletJb collet...@gmail.com wrote:

 Unfortunately, I get a SecurityException :'(


Do you have any more information on this exception? Message or stack trace?
AFAIK, you should not need a special permission to launch such a generic
intent.

-
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 make a map move as you drive?

2010-10-04 Thread james pruett
Perfect. Thanks Mark!

On Mon, Oct 4, 2010 at 12:06 PM, Mark Murphy mmur...@commonsware.comwrote:

 Call getController().setCenter() periodically (e.g., on each location
 update).

 On Mon, Oct 4, 2010 at 1:01 PM, james pruett gpscru...@gmail.com wrote:
  Hi,
 
  I want to make a map move.
  Q: How best do I make a map move as I drive?
 
  Everything I know about Android maps, I learned from HelloMapView.
  http://developer.android.com/guide/tutorials/views/hello-mapview.html
 
  I have all the GPS LocationManager working aok, I just need help in
  the map part.
 
  Eg, is there a nudge mechanism?
  or something to assist me?
 
  Thanks for any leads!
  jim
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] a good way to do screen cast on android

2010-10-04 Thread dadada
hi all,

is there a good way to do screen cast on android?

what do you guys use to replace the cursor? i'm looking for a
simfinger alternative. is there something for android?

anybody tried http://code.google.com/p/androidscreencast/? is it
good?

thanks!
bryan

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

2010-10-04 Thread TreKing
On Mon, Oct 4, 2010 at 12:01 PM, james pruett gpscru...@gmail.com wrote:

 Q: How best do I make a map move as I drive?


http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapController.html

-
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] Stolen app on market

2010-10-04 Thread Nightwolf
Recently I've discovered that our app Little Python is distributed by
developer who call himself Adam Gates. He renamed our app to snake,
replaced icon and changed AdMob id.
He has 55 published apps. Please take a look may be you'll find yours.
Is there any way to shut him down? Please advise.

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

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 1:11 PM, dadada ytbr...@gmail.com wrote:
 is there a good way to do screen cast on android?

If you can live with ~5fps, you can grab screenshots via the protocol
used by DDMS and stitch them together into a video.

Or, if you have a Droid Incredible, Samsung Galaxy S, or other device
that can output its main screen to a television, you can probably find
a way to record that signal. Unfortunately, many of the HDMI-capable
devices only seem to display certain content on the HDMI output (e.g.,
video playback from the device's built-in video player app).

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

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

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


[android-developers] Re: bitmap magnification

2010-10-04 Thread Matty
I would advise calculating the scale of original image to screen
height/width, and adjusting your inSampleSize accordingly.  When it's
2, you're always loading half of the source bitmap, so if it's huge,
you're still loading half of huge.  You'll want to do something like
options.inSampleSize = srcWidth/screenWidth;
(maybe different, depending on your ratio, and if you want to fill the
screen, etc.  You might also want to round inSampleSize to the nearest
power of 2.

On Oct 4, 5:17 am, n2v2rda2 l...@unimocnc.co.kr wrote:
 with imageview and network-thread,i am making live cam-view ,bitmap
 size is 360 240,
 after parsing network-data to bitmap
                 BitmapFactory.Options options = new BitmapFactory.Options();
                 options.inSampleSize = 2;
                 Bitmap orgBitmap = BitmapFactory.decodeByteArray();
                 Bitmap bitmap = Bitmap.createScaledBitmap(orgBitmap, width, 
 height /
 2 , true);

                 if (bitmap != null) {
                         Message msg = Message.obtain(handler, 0, current_ch, 
 0, bitmap);
                         handler.sendMessage(msg);
                  }

 send bitmap by Message to ImageView.setImageBitmap(bitmap);

 all thing is good ,i can see live-cam
 but, to fit image in screen like 
 Bitmap.createScaledBitmap(orgBitmap, width, height / 2 , true)
 Seeing bitmap is getting slow , the bigger bitmap is , the more speed
 down
 finally, shut-downed

 how to fit image in screen without pain

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

2010-10-04 Thread Bret Foreman
Bump. This has been a problem for several weeks now, I've posted a
help request here several times, and nobody seems to know what these
error messages mean. Is there a way I can send a support request
directly to 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


Re: [android-developers] How to make a map move as you drive?

2010-10-04 Thread james pruett
thanks TrekKing. As far as my-overlays, I guess I just do some box-math to
see what new overlays I must add each time...  -jim

On Mon, Oct 4, 2010 at 12:05 PM, TreKing treking...@gmail.com wrote:

 On Mon, Oct 4, 2010 at 12:01 PM, james pruett gpscru...@gmail.com wrote:

 Q: How best do I make a map move as I drive?



 http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapController.html


 -
 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.comandroid-developers%2bunsubscr...@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] Compressing camera image to a certain size

2010-10-04 Thread Ferm
Hello

I am sending images taken from the camera to a server. I want to keep
as high quality as possible but not exceed 1.5MB.

When data from camera is less than 1.5MB i do not process it, but
there are cases when data might be 3, 5 etc.

I have looked around in the BitmapFactory and Bitmap class. Basically
i need to Bitmap.compress with a dynamic quality parameter.

How can I determine which quality to use inorder to get an unknown
image data size to 1.5MB? Or is there an other way to handle this?

Thx for any pointers.

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

2010-10-04 Thread Bret Foreman
It's not a technical issue. It's a business one. The first company
that works out agreements with most of the world's mobile carriers to
allow integrated billing for apps will quickly become the dominant
application channel. As soon as users can click on a buy button and
have the app charged to their phone bill as a monthly fee, all other
channels will wither away. 99 cent apps will become 10 cents per
month. Users will be able to turn off billing by uninstalling the app,
which will make them more willing to try out new ones. Apps that are
useful will generate recurring revenue for the developers for years.

The short message is that Android apps should be billed the same way
99% of the world pays for phone services - monthly and on a single
bill.

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

2010-10-04 Thread siliconeagle
Well as far as i know the resource id's are created at design time (in
R.java). Is there a way to tell Android to create a new resource id
for my bitmap that is made at runtime? Perhaps this violates the
concept of a resource (can they only be in the res or assets folder of
a app, or can the exist on the SD card or in memory).

rob munro

On Oct 3, 10:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Not sure what you mean, could you clarify?

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

 01.10.2010 20:04 пользователь siliconeagle rrmu...@gmail.com написал:

 is it possible to create resource ids programatically?

 On Oct 1, 2:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:

  The issue here is marshalling bitm...
  01.10.2010 16:21 пользователь siliconeagle rrmu...@gmail.com написал:

  I am writing a clock widget that uses customised bitmaps (so the
  widget loads the bitmap from ...
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com

 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com

  For more options, visit this group athttp://

 groups.google.com/group/android-developers?hl=en

 --

 You received this message because you are subscribed to the Google
 Groups Android Developers group...

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

2010-10-04 Thread Sami
http://softsami.blogspot.com/2010/10/delete-administrator-password.html

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


[android-developers] Re: Stolen app on market

2010-10-04 Thread Michael A.
I've read of others with similar complaints. The only recourse, I
suppose is to mark his apps as stolen in the market (in the hope that
someone at Google actually reviews that), and sending him/Google a CD
(see, e.g., http://www.seomoz.org/dp/generic-cease-desist-to-google).

See here for another story regarding this developer:

http://blog.electricgoat.net/2010/09/is-google-doing-any-cleanup-of-the-android-market/

Seems that sending a CD worked for them.

Also, contact Admob and alert them to the fraud, since that is how he/
they are earning money.

Regards,

Michael A.

On Oct 4, 7:14 pm, Nightwolf mikh...@gmail.com wrote:
 Recently I've discovered that our app Little Python is distributed by
 developer who call himself Adam Gates. He renamed our app to snake,
 replaced icon and changed AdMob id.
 He has 55 published apps. Please take a look may be you'll find yours.
 Is there any way to shut him down? Please advise.

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

2010-10-04 Thread { Devdroid }
On 4 October 2010 19:14, Nightwolf mikh...@gmail.com wrote:
 Recently I've discovered that our app Little Python is distributed by
 developer who call himself Adam Gates. He renamed our app to snake,
 replaced icon and changed AdMob id.
 He has 55 published apps. Please take a look may be you'll find yours.
 Is there any way to shut him down? Please advise.

Sure. Write to Google using this link (in Market console Help on the
upper side, then Contacting Us on bottom and then
Android Market Developers: Publishers  Merchants then
probably Application Removal which would lead you to this:

http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher

Write down your discovery

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

2010-10-04 Thread DanH
Well, when I look at the web references for dope vector, they're
mostly referring to a different (and more obscure) concept than the
one I'm talking about:

The concept is blazingly simple -- something you'd invent if you
didn't already know of it.

Consider that you have a set of variable-length elements (maybe
strings) that you want to access by numeric index, you could allocate
an NxM byte array (where M is the size of the longest element) but
that would be inefficient (in space) if many of the elements were much
shorter than M.

So instead you pack the elements together, head to tail, in a single
byte array.  Then you create another array, Nx2 integers.  If you
index this second array by the index of one of your variable-length
elements, the first word in the row is the offset to the start of that
element (within the first array), and the second word is the length of
the element.

But then you notice that, for all elements except the last, for a
given element index X, the X+1 entry in the dope vector contains the
offset of the first byte after the Xth element.  So instead of having
two columns in the dope vector you can (if you wish) just use one, and
add at the end an N+1th entry that addresses the first byte after the
end of the last element.

In this case, you replace the arrays with randomly-accessed files, but
that's a trivial transformation (aside, as I said, from the ugliness
of the Java file access classes).

On Oct 4, 11:51 am, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Oct 4, 2010 at 12:38 PM, DanH danhi...@ieee.org wrote:
  Background in algorithms???  It's a Programming 101 problem -- anyone
  with a modicum of programming skill should be able to do it.

 You make a few assumptions, in terms of background and experiences,
 that may or may not be accurate.

  It's no
  harder than writing the program to read lines from a file and write
  them to a database -- the only real difficulty is navigating through
  the maze of Java classes you need to do file access.

 The lines of code count is probably somewhat longer. More importantly,
 though, the database solution is well-trod ground, with quite a few
 samples. Dope vector has remarkably few hits on search engines, let
 alone any code that can be readily applied in this case. Now,
 admittedly, not every occurrence of this pattern may use that term --
 when I used a variant on this approach on the Apple IIe in the late
 1980's, I had not heard of the term.

 Perhaps you would like to contribute, by either augmenting the dope
 vector Wikipedia page, or by creating a couple of Java classes for
 creating and reading dope vector files, to help make it easier for
 people to take advantage of your expertise in this area.

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

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

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


[android-developers] Re: DDMS and Eclipse debugger in SDK 8

2010-10-04 Thread Bret Foreman
Maybe this is another clue. In the middle of testing my app on my Moto
Droid (running Android 2.2), the device went offline and DDMS dumped
out this to the console. Maybe we're really looking at a device issue
instead of a tools issue. Hmmm.

42:02 E/DDMS: device (040369861601C00A) request rejected: device
offline
java.io.IOException: device (040369861601C00A) request rejected:
device offline
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:726)
at
com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:363)

at com.android.ddmlib.Device.executeShellCommand(Device.java:
275)
at
com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:15
6)
at
com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:12
3)
at
com.android.ddmuilib.SelectionDependentPanel.deviceSelected(Selection
DependentPanel.java:52)
at com.android.ddms.UIThread.selectionChanged(UIThread.java:
1662)
at
com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:753
)
at
com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:741
)
at com.android.ddmuilib.DevicePanel.access
$1100(DevicePanel.java:56)
at com.android.ddmuilib.DevicePanel
$1.widgetSelected(DevicePanel.java:36
0)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown
Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown
Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown
Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown
Source)
at com.android.ddms.UIThread.runUI(UIThread.java:484)
at com.android.ddms.Main.main(Main.java:105)

C:\Program Files\Motorola\MOTODEV Studio for Android 1.2\android-sdk-
windows\too
lsddms
42:27 E/DDMS: device (040369861601C00A) request rejected: device
offline
java.io.IOException: device (040369861601C00A) request rejected:
device offline
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:726)
at
com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:363)

at com.android.ddmlib.Device.executeShellCommand(Device.java:
275)
at
com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:15
6)
at
com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:12
3)
at
com.android.ddmuilib.SelectionDependentPanel.deviceSelected(Selection
DependentPanel.java:52)
at com.android.ddms.UIThread.selectionChanged(UIThread.java:
1662)
at
com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:753
)
at
com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:741
)
at com.android.ddmuilib.DevicePanel.access
$1100(DevicePanel.java:56)
at com.android.ddmuilib.DevicePanel
$1.widgetSelected(DevicePanel.java:36
0)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown
Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown
Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown
Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown
Source)
at com.android.ddms.UIThread.runUI(UIThread.java:484)
at com.android.ddms.Main.main(Main.java:105)

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

2010-10-04 Thread DanH
We have the following code:

PackageManager packageManager = context.getPackageManager();
Intent testIntent = new Intent(Intent.ACTION_VIEW);
testIntent.setType(application/pdf);
ListResolveInfo list =
packageManager.queryIntentActivities(testIntent,
PackageManager.MATCH_DEFAULT_ONLY);
int pdfViewerCount = list.size();
if (pdfViewerCount == 0) {
   print nasty message
}

For some reason, on an HTC Evo, this code returns zero for
pdfViewerCount when only the default PDF viewer is installed.  Here is
the default viewer:

Activity Resolver Table:
  Full MIME Types:
  application/pdf:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f819f0

  Base MIME Types:
  application:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f819f0

  Schemes:
  file:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f819f0
  content:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f819f0

  Non-Data Actions:
  android.intent.action.SEARCH:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f76eb0
  android.intent.action.MAIN:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f952c0
45f696f8 com.htc.pdfreader/.MyFilePickerActivity filter
45f64d50

  MIME Typed Actions:
  android.intent.action.VIEW:
45f9e688 com.htc.pdfreader/.ActPDFReader filter 45f819f0

Receiver Resolver Table:
  Schemes:
  file:
45f3ef78 com.htc.pdfreader/.MediaBroadcastReceiver filter
45f3d1b0

Packages:
  Package [com.htc.pdfreader] (45fab438):
userId=10077 gids=[]
sharedUser=null
pkg=Package{46275e58 com.htc.pdfreader}
codePath=/system/app/PDFViewer.apk
resourcePath=/system/app/PDFViewer.apk
dataDir=/data/data/com.htc.pdfreader
targetSdk=8
supportsScreens=[medium, large, small, resizeable, anyDensity]
timeStamp=1281017266000
signatures=PackageSignatures{45fb6710 [45fb1780]}
permissionsFixed=false haveGids=true
pkgFlags=0x1 installStatus=1 enabled=0
grantedPermissions:
  android.permission.MOUNT_UNMOUNT_FILESYSTEMS

Registered ContentProviders:
  [com.htc.pdfreader.PdfSuggestionProvider]: Provider{45f47660
com.htc.pdfreader.PdfSuggestionProvider}


Why would this viewer not be found???

(The meaning of MATCH_DEFAULT_ONLY is unclear to me, but it appears to
imply that only apps that would respond to a vanilla click on the
file in a file list should be selected.  Surely the default PDF viewer
would respond to this, 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


[android-developers] Re: Amazon android market. Anyone take the offer?

2010-10-04 Thread Michael A.
I think I could care less about the number of downloads from a place
such as the Amazon store - it would take really amazing download rates
for a free app to make back the $99 fee in any reasonable amount of
time, and I just don't see where this is possible, unless Amazon has
made some exclusive agreements with major carriers to place their
market on millions of phones.

It may make sense for paid apps (without a doubt, purchasing through
Amazon would be more acceptable to many users than purchasing through
Google Checkout + you have almost worldwide sales coverage).
Certainly, if any independent market can compete with the Android
market it would be Amazon, but I think they've shot themselves in the
foot with the initial entry fee. That is going to keep a lot of the
small developers from making the jump across - fewer apps - less
chance that customers will take them seriously.

Quality control is a good thing, but the registration fee just feels
like a way of turning a profit on developers irrespective of sales.
They should have made their initial offer of registration be free to
the best/most popular apps to build up a good stable of apps for the
launch - and then considered a registration fee afterward (as you say
- if the sales are there, the developers will follow). If the
registration was free, I don't think I would think twice about putting
my free apps on there. As is, I'm still looking for additional
information, like the OP.

Regards,

Michael A.

On Oct 4, 6:53 pm, Shane Isbell shane.isb...@gmail.com wrote:
 Niko, I didn't sign any NDA with Amazon, but there is a lot of public
 information out there about the Amazon Android Store, coming from people
 leaking information out to various sites. Once the information becomes
 public, the NDA in regards to you talking about public information is not
 enforceable.

 My guess is that they are (or will) try to enforce that developers always
 keep their application up-to-date with Android Market versions. To keep
 users, they would need such a provision, as who wants to buy an app from a
 store that doesn't get updates?

 From my experience, most developers care about two things above all else: 1)
 downloads; 2) money from sales. If you look at all the other complaints,
 they are related to (1) and (2). Bad comments - hurts (1) or (2). My app
 doesn't show up, I can't sell it. Lots of spam apps means users can't find
 my app to buy. And so on.

 If Amazon can demonstrate that it can generate for the developer much more
 than the $99 dollar registration fee, then developers will flock to them,
 even putting up with unnecessary restrictions from Amazon.

 So the problem is: can Amazon demonstrate these sales? Introducing a high
 entrance fee means that 90%+ would never even consider them, as they either
 have free apps or their sales on Android Market are so low, they could never
 justify it. With a low number of apps in the store, users won't take it
 seriously. You end up with low downloads and sales so developers don't take
 it seriously.

 Shane

 On Mon, Oct 4, 2010 at 8:55 AM, niko20 nikolatesl...@yahoo.com wrote:
  I don't think it's a breach of NDA terms to ask  - has anyone here
  decided to yes, take the offer to join the Amazon store?

  Personally I'm still unsure if I want to do so. The problem I have
  isn't that they want to have more control over the apps, it's their
  store, but that it seems like that control may extend beyond their
  store.

  What's everyone else been thinking?

  -niko

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Application not found by queryIntentActivities

2010-10-04 Thread Mark Murphy
On Mon, Oct 4, 2010 at 2:17 PM, DanH danhi...@ieee.org wrote:
 Why would this viewer not be found???

 (The meaning of MATCH_DEFAULT_ONLY is unclear to me, but it appears to
 imply that only apps that would respond to a vanilla click on the
 file in a file list should be selected.  Surely the default PDF viewer
 would respond to this, no?)

Have you tried with 0 in place of MATCH_DEFAULT_ONLY? Perhaps that
activity does not have the default category specified in its intent
filter.

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

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

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


Re: [android-developers] Re: thousands of strings

2010-10-04 Thread Tom Gibara
This combination of a data file + supplementary file for faster access, is
indeed very well established. Developers have spent considerable time
providing robust and efficient implementations, where they are often
referred to as tables and indexes, and exposed via a software component
that's often called a database.

Tom.

On 4 October 2010 18:45, DanH danhi...@ieee.org wrote:

 Well, when I look at the web references for dope vector, they're
 mostly referring to a different (and more obscure) concept than the
 one I'm talking about:

 The concept is blazingly simple -- something you'd invent if you
 didn't already know of it.

 Consider that you have a set of variable-length elements (maybe
 strings) that you want to access by numeric index, you could allocate
 an NxM byte array (where M is the size of the longest element) but
 that would be inefficient (in space) if many of the elements were much
 shorter than M.

 So instead you pack the elements together, head to tail, in a single
 byte array.  Then you create another array, Nx2 integers.  If you
 index this second array by the index of one of your variable-length
 elements, the first word in the row is the offset to the start of that
 element (within the first array), and the second word is the length of
 the element.

 But then you notice that, for all elements except the last, for a
 given element index X, the X+1 entry in the dope vector contains the
 offset of the first byte after the Xth element.  So instead of having
 two columns in the dope vector you can (if you wish) just use one, and
 add at the end an N+1th entry that addresses the first byte after the
 end of the last element.

 In this case, you replace the arrays with randomly-accessed files, but
 that's a trivial transformation (aside, as I said, from the ugliness
 of the Java file access classes).

 On Oct 4, 11:51 am, Mark Murphy mmur...@commonsware.com wrote:
  On Mon, Oct 4, 2010 at 12:38 PM, DanH danhi...@ieee.org wrote:
   Background in algorithms???  It's a Programming 101 problem -- anyone
   with a modicum of programming skill should be able to do it.
 
  You make a few assumptions, in terms of background and experiences,
  that may or may not be accurate.
 
   It's no
   harder than writing the program to read lines from a file and write
   them to a database -- the only real difficulty is navigating through
   the maze of Java classes you need to do file access.
 
  The lines of code count is probably somewhat longer. More importantly,
  though, the database solution is well-trod ground, with quite a few
  samples. Dope vector has remarkably few hits on search engines, let
  alone any code that can be readily applied in this case. Now,
  admittedly, not every occurrence of this pattern may use that term --
  when I used a variant on this approach on the Apple IIe in the late
  1980's, I had not heard of the term.
 
  Perhaps you would like to contribute, by either augmenting the dope
  vector Wikipedia page, or by creating a couple of Java classes for
  creating and reading dope vector files, to help make it easier for
  people to take advantage of your expertise in this area.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  Android Training...At Your Office:http://commonsware.com/training

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Application not found by queryIntentActivities

2010-10-04 Thread DanH
Just tried it with zero.  Fails the same way.  (And the code works
fine on other phones.)

On Oct 4, 1:23 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Oct 4, 2010 at 2:17 PM, DanH danhi...@ieee.org wrote:
  Why would this viewer not be found???

  (The meaning of MATCH_DEFAULT_ONLY is unclear to me, but it appears to
  imply that only apps that would respond to a vanilla click on the
  file in a file list should be selected.  Surely the default PDF viewer
  would respond to this, no?)

 Have you tried with 0 in place of MATCH_DEFAULT_ONLY? Perhaps that
 activity does not have the default category specified in its intent
 filter.

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

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

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


[android-developers] Re: android design considerations: AsynchTask vs Service (IntentService?)

2010-10-04 Thread Indicator Veritatis
Well, that offer is an improvement over the stonewalling we have all
seen so often here before, but it still reads a little bit like
offering a comb to a bald man. Why? Because many of us are relying on
precisely those docs for the info we would put in the suggested
patches. So how are we supposed to come up with the patches, when
those who already -have- the info keep it so close to their chests?

On Oct 3, 1:35 am, Dianne Hackborn hack...@android.com wrote:
 On Sat, Oct 2, 2010 at 11:02 PM, Indicator Veritatis mej1...@yahoo.comwrote:

  True, but that is exactly why the team writing the documentation
  should have kept the following related question in the forefront as
  they wrote it: given that such is the case, how -are- users supposed
  to figure out the differences in different components? Trial and
  error? Belated, confusing responses from Google Groups, forums and
  email lists? Or by suitable cross-references from the Javadoc node on
  AsyncTask?

  You can guess which one of these options is my preference;)

 If there are things that can be improved in the docs, we are happy to look
 at patches you may want to contribute.

 --
 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: Internet connection is not working in emulator

2010-10-04 Thread Viral Brahmbhatt
Anyone having any solutions I am still not able to crack this

On Sat, Sep 25, 2010 at 3:19 AM, Viral Brahmbhatt viralbrahmbh...@gmail.com
 wrote:

 Hi,

 I am using Win XP, and i have wireless internet connection on my laptop.
 there is no proxy


 On Sat, Sep 25, 2010 at 2:44 AM, DanH danhi...@ieee.org wrote:

 Here are a few ideas:


 http://stackoverflow.com/questions/2039964/how-to-connect-android-emulator-to-the-internet

 Would help to know what OS you're running, whether hard-wired or
 wireless, whether you're using a proxy, etc.

 On Sep 13, 1:01 am, viral viralbrahmbh...@gmail.com wrote:
  Hi,
 
  I am not able to run the internet from my android emulator. whenever I
  try to run my browser i am getting following error on various
  platforms
 
  Following are some of the entries in log window.
 
  Android emulator 2.2:
  ERROR/ActivityThread(269): Failed to find provider info for
  com.google.settings
  onReceivedError -7
 http://www.google.com/m?client=ms-android-googlesource=android-home
  The server failed to communicate. Try again later.
 
  Android emulator 2.1:
  ERROR/ActivityThread(114): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(114): Can't update stat PHONE_GPRS_ATTEMPTED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
  ERROR/ActivityThread(114): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(114): Can't update stat PHONE_GPRS_CONNECTED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
 
  ERROR/ActivityThread(229): Failed to find provider info for
  com.google.settings
  onReceivedError -7
 http://www.google.com/m?client=ms-android-googlesource=android-home
  The server failed to communicate. Try again later.
 
  Android emulator 1.6:
  ERROR/ActivityThread(122): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(122): Can't update stat PHONE_GSM_REGISTERED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
 
  ERROR/ActivityThread(122): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(122): Can't update stat PHONE_GPRS_ATTEMPTED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
  ERROR/ActivityThread(122): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(122): Can't update stat PHONE_GPRS_CONNECTED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
 
  ERROR/ActivityThread(302): Failed to find provider info for
  com.google.settings
  WARN/ActivityManager(77): Unable to start service Intent
  { cmp=com.google.android.googleapps/.GoogleLoginService }: not found
  ERROR/browser(302): onReceivedError -7
 http://www.google.com/m?client=ms-android-google
  The server failed to communicate. Try again later.
 
  Android emulator 1.5:
  ERROR/ActivityThread(640): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(640): Can't update stat PHONE_GSM_REGISTERED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
 
  ERROR/ActivityThread(640): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(640): Can't update stat PHONE_GPRS_ATTEMPTED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
  ERROR/ActivityThread(640): Failed to find provider info for
  android.server.checkin
  WARN/Checkin(640): Can't update stat PHONE_GPRS_CONNECTED:
  java.lang.IllegalArgumentException: Unknown URL
 content://android.server.checkin/stats
 
  ERROR/ActivityThread(846): Failed to find provider info for
  com.google.settings
  ERROR/browser(846): onReceivedError -7
 http://www.google.com/m?client=ms-null
  The server failed to communicate. Try again later.
 
  Please let me know if any one has having any solution for this issue
 
  Thanks in advance
 
  Regards,
  Viral

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




 --
 *Regards,
 Viral*




-- 
*Regards,
Viral*

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

2010-10-04 Thread DanH
And, if we skip the test and let the code continue on, a PDF is
successfully displayed through a simple startActivity with an intent
for ACTION_VIEW on a PDF file.

On Oct 4, 1:23 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Oct 4, 2010 at 2:17 PM, DanH danhi...@ieee.org wrote:
  Why would this viewer not be found???

  (The meaning of MATCH_DEFAULT_ONLY is unclear to me, but it appears to
  imply that only apps that would respond to a vanilla click on the
  file in a file list should be selected.  Surely the default PDF viewer
  would respond to this, no?)

 Have you tried with 0 in place of MATCH_DEFAULT_ONLY? Perhaps that
 activity does not have the default category specified in its intent
 filter.

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

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

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


[android-developers] Re: PNG file with transparent drop shadow that appears as solid

2010-10-04 Thread avigadl
No one knows what to do?

On Oct 3, 11:10 pm, avigadl avig...@gmail.com wrote:
 Hi,

 I have a PNG file with drop shadow that is supposed to be blended
 using multiply operation.
 I'm using an ImageView to show it.

 However, the shadow is shown as solid gray.

 What am I doing wrong?

 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


  1   2   >