[android-developers] Re: changing listview content in separate thread issue

2011-07-25 Thread gjs
Hi,

Yes that looks ok, here's some more details
http://android-developers.blogspot.com/2009/05/painless-threading.html

Regards

On Jul 26, 8:55 am, Wall-E  wrote:
> I received an error saying I was changing the content of my listview
> in a different thread than the main UI thread which I am.  I have an
> IntentService that is changing this content.  Now, I've looked into
> this issue a bit and decided to use a handler to perform the changes
> in the main loop.  Since it was difficult to get my app to crash, I am
> wondering if anyone can tell me if I'm handling this properly?  Here
> is the part where I create the handler:
>
>                                 Handler handler = new
> Handler(getMainLooper());
>                                 handler.post(new Runnable()
>                                 {
>                                         @Override
>                                         public void run()
>                                         {
>                                                 // I do my listview content 
> handling here
>                                         }
>
>                                 });
>
> So, is this the best way to handle this?  Will I have any issues
> calling this handler inside of an IntentService?

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

2011-07-25 Thread giangiammy
Hi,

I'm using Eclipse Indigo: I set:

Windows -> Preferences -> Android

there there's a "SDK location": I setted it to the path of my sdk

bye
giammy


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

2011-07-25 Thread Perumss Naren
Hi,

what is the different between SDK and NDK?

Can we use "C" code in sdk? else in NDK only ?

Regards,
Perumal.N

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

2011-07-25 Thread gjs
Hi,

Suggest you check & create the directory if necessary, else the user
can remove it when your not looking.

Regards

On Jul 26, 8:58 am, Dan Raaka  wrote:
> This peice of code fails mostly because the "Download" directory is
> missing on the mounted /sdcard.
> Who is responsible for creating the directories .. my app or the
> DownloadManager ?
>
>     public void onDownloader(View view) {
>         dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
>         Request request = new 
> Request(Uri.parse("http://www.imagebookers.com/gallery/d/2577-1/si0ux_-_debian_gold_wallpaper.png";));
>
> request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS," 
> example.png");
>         enqueue = dm.enqueue(request);
>     }
>
> -Dan

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

2011-07-25 Thread Vector-Code
There does appear to be a scaling problem of some sort. Here are some 
screenshots. First, the app running in the 3.1 emulator:

This is how the layout should render, with the subview in the lower right 
corner, sized to about 2x3.5 inches.
 
Next, the app running in the 3.2 emulator with compatibility mode. An 
interesting side note: I originally targeted API 4 to insure compatibility 
down to 1.6. In order to get the xlargeScreens tag, I had to change my 
target to API 9 but running the app with this target, even without the 
xlargeScreens tag (or any "supports-screen" tag for that matter), I got no 
compatibility button. I had to change the target back to API 4 to get the 
Compatibility button. Here's the 'shot:
 

Note the stretching of the subview, though the size of the edittext in the 
background has not changed. Next, we have a shot of the app with the 
xlargeScreens tag (and the API 9 target):
 

As you can see, the app has layed out exactly as it did when compatibility 
mode was enabled, even though the xlargeScreens tag has been added, however, 
the compatibility button is no longer available.
 
Here is my manifest for the last shot:
 

http://schemas.android.com/apk/res/android*
**package=*"com.vectorcode.vTypeNotes"*
**android:versionName=*"0.8.0.0"* android:versionCode=*"10800"*>













 
 

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

2011-07-25 Thread gjs
Hi,

You are welcome!

Regards

On Jul 26, 10:18 am, JCC  wrote:
> Thanks a lot this onRetainNonConfigurationInstance worked for me. Not
> on the planned way like google apis but worked as a "flag" to know
> when it was flipped.
> thanks Ibendlin I tried that aswell.
>
> On 23 jul, 02:08, gjs  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > For the GPS issue, to prevent it from starting & stopping on
> > orientation change in your Activity, you can implement LocationManager
> > in a Service then pass the Location objects back to the Activity. It
> > is a fairly convoluted affair to setup but it does work.
>
> > A simpler option - you might? also be able to maintain a reference to
> > the Location Manager object (or some other class that acts as a
> > container & encapsulates the LocationManager) through
> > onRetainNonConfigurationInstance() which is specifically provided for
> > handling orientation & other changes for the Activity.
>
> > I've done the former but no the latter.
>
> > Regards
>
> > On Jul 23, 1:29 am, JCC  wrote:
>
> > > Ok thanks, I fixed the data problem but still with the flip issue that
> > > it calls the GPS again. =( any suggestion would be much 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] Re: KeyEvent ACTION_DOWN + ACTION_UP fire immediately

2011-07-25 Thread Halsafar
It seems if I change the IME to anything but the ASUS Keyboard one
then everything is fine.  Consistently though if I change to the IME
type of the ASUS Transformer dock this problem occurs.  Breaks games
that rely on key down and up event coming in properly.


On Jul 25, 11:48 pm, Halsafar  wrote:
> I am finding whenever I press a key down on a keyboard it immediately
> fires both the down and up events.  It seems with the virtual keyboard
> or a real keyboard in the case of the EEE Transformer Pad this is
> true.  Is this the expected behavior or am I doing something wrong?  I
> have tried with both the dispatch and separate onKeyDown/onKeyUp
> events.  Both give same results.
>
> Note this is not true for special keys.  CTRL for example fires
> properly and its repeat count properly goes up as you hold it.  Where
> if you hold a regular key like "A" it fires up/down events
> simultaneously and the repeat count stays at -1.
>
>      public boolean dispatchKeyEvent(KeyEvent event)
>      {
>
>           if (event.getAction() == KeyEvent.ACTION_DOWN)
>           {
>                  Log.d(LOG_TAG, "onKeyDown(" + event.getKeyCode() + ", " +
> event + ")");
>
>              return true;
>           }
>           else if (event.getAction() == KeyEvent.ACTION_UP)
>           {
>                   Log.d(LOG_TAG, "onKeyUp(" + event.getKeyCode() + ", " +
> event + ")");
>
>               return true;
>           }
>
>           return super.dispatchKeyEvent(event);
>      }

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

2011-07-25 Thread gjs
Hi,

Thanks for that. Between (3) & (4) do you need to establish a
bluetooth connection with the Trackpad and interpret its data stream,
perhaps mapping that to something related to what an activity might be
displaying ? Or does Android 3.2 do this i/o for you - automagically
treating the Trackpad as a type of mouse/pointer/touchpad peripheral
device ? And what about coordinate mapping between the device and
screen ?

Regards

On Jul 26, 12:08 pm, Dianne Hackborn  wrote:
> (1) Get a Xoom running Android 3.2.
> (2) Get an Apple Magic Trackpad.
> (3) Pair the trackpad to the Xoom.
> (4) Have a good time!
>
> I bring this up partly because I think it is cool (and all thanks go to Jeff
> for the feature), but also because if you are wondering as developers how in
> the future you may need to modify your app to work on devices without a
> touch screen...  well, the answer may be not much at all. ;)
>
> This is also the motivation for new feature constants 
> likehttp://developer.android.com/reference/android/content/pm/PackageMana...
> a non-touch device that includes a multi-touch trackpad can provide
> basically full interaction with Android's touch UI for many typical apps.
>  If you don't need direct interaction (such as needed to touch game control
> buttons or draw figures on the screen), a multitouch trackpad can provide a
> quite good user experience.  Non-multitouch trackpads (represented by
> FEATURE_FAKETOUCH) don't work as well since all touch interactions with the
> screen require awkward use of a hardware button to instigate.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: Curious NPE

2011-07-25 Thread Zsolt Vasvari
> A checked exception is an exceptional state that you expect to happen, like
> the user entering some wrong values, you check that ant throw the ckecked
> exception.

No, exceptions shouldn't be used as a program flow control mechanism,
which is what your example is.

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


Re: [android-developers] Re: HELP: Connecting to SQL Server using JDBC

2011-07-25 Thread Boozel
The jTDS driver works perfectly and it's open source.
Thanks a lot.

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

2011-07-25 Thread Parvesh Malhotra
Disable you antivirus and reboot system and then try..

On Jul 24, 10:28 am, Pankaj Sisodiya  wrote:
> Hi;
>
> I am trying to Install Android on Windows 7. I downloaded
> installer_r12-windows.exe fromhttp://developer.android.com/sdk/index.html
> & Installed "Android SDK Tools", i got SDK Manager. But in SDK Manager
> when i select all Available Packages -->> Install Selected , i got the
> following error
>
> "Failed to fetch 
> URLhttp://www.echobykyocera.com/download/echo_repository.xml/addon.xml,
> reason: Server returned HTTP response code: 403 for 
> URL:http://www.echobykyocera.com/download/echo_repository.xml/addon.xml";
>
> Then i unselected KYOCERA Corporation (http://www.echobykyocera.com)
> under "Third Party Add-ons" & tried to install those, but error again
>
> DONE. NOTHING WAS INSTALLED
>
> Downloading Android SDK Platform-tools, revision 6
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Documentation for Android SDK, API 13, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 3.2, API 13, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 3.1, API 12, revision 2
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 3.0, API 11, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 2.3.3, API 10, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 2.2, API 8, revision 2
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 2.1, API 7, revision 2
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 1.6, API 4, revision 3
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading SDK Platform Android 1.5, API 3, revision 4
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Samples for SDK API 13, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Samples for SDK API 12, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Samples for SDK API 11, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Samples for SDK API 10, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Samples for SDK API 8, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Samples for SDK API 7, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Google USB Driver package, revision 4
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Android Compatibility package, revision 3
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Google Admob Ads Sdk package, revision 3
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Google Market Licensing package, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Downloading Google Market Billing package, revision 1
> Failed to create directory C:\Program Files\Android\android-sdk\temp
> Skipping 'Google APIs by Google Inc., Android API 13, revision 1'; it
> depends on 'SDK Platform Android 3.2, API 13, revision 1' which was
> not installed.
> Skipping 'Google APIs by Google Inc., Android API 12, revision 1'; it
> depends on 'SDK Platform Android 3.1, API 12, revision 2' which was
> not installed.
> Skipping 'Google APIs by Google Inc., Android API 11, revision 1'; it
> depends on 'SDK Platform Android 3.0, API 11, revision 1' which was
> not installed.
> Skipping 'Google APIs by Google Inc., Android API 10, revision 2'; it
> depends on 'SDK Platform Android 2.3.3, API 10, revision 1' which was
> not installed.
> Skipping 'EDK 1.1 by Sony Ericsson Mobile Communications AB, Android
> API 10, revision 1'; it depends on 'SDK Platform Android 2.3.3, API
> 10, revision 1' which was not installed.
> Skipping 'Google APIs by Google Inc., Android API 9, revision 2'; it
> depends on 'SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)'
> which was not installed.
> Skipping 'Google APIs by Google Inc., Android API 8, revision 2'; it
> depends on 'SDK Platform Android 2.2, API 8, revision 2' which was not
> installed.
> Skipping 'Real3D by LGE, Android API 8, revision 1'; it depends on
> 'SDK Platform Android 2.2, API 8, revision 2' which was not installed.
> Skipping 'GALAXY Tab by Samsung Electronics., Android API 8, revision
> 1'; it depends on 'SDK Platfor

[android-developers] resorce managment (tabbed application)

2011-07-25 Thread josh.bash
hi
i need to implement a tabbed application consisting of 4 activities
but that's not an issue. What i want to know that if we load this
application then whether all 4 activities are loaded simultaneously or
only one of them is loaded?

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

2011-07-25 Thread Dianne Hackborn
Abstract classes and interfaces both have their downsides:

- Abstract classes don't allow multiple inheritance, resulting in an
explosion of tiny classes.
- Interfaces tend to result in a hard to maintain framework because it is a
lot harder to introduce new functionality (can't add a new method with a
default implementation for old apps).  Plus not being able to have
convenience functions can make the interface version less useful.

Also the inability to have default implementation in interfaces makes it
more annoying in places to control what appears in the SDK, since we can't
use our @hide tricks or else third party apps can't implement it because
they can't implement the needed hidden methods.

I go back and forth between the two.  I think I have settled on interfaces
for small little things with one or two methods (callbacks like all the
things on ListView) and abstract classes for larger protocols.

One thing I am sure of, however: protected sucks.

On Sun, Jul 24, 2011 at 9:42 PM, Zsolt Vasvari  wrote:

> An interface is exactly just that (plus constant declerations).  With
> abstract classes, you can have static methods and everything else that
> comes with a proper class.  The drawback is, of course, that you can
> only inherit from at most one abstract class.
>
> I cannot think of even a single example, off the top of my head, where
> an abstract class in Android could have also been defined as an
> interface without losing any functionality.
>
>
>
> On Jul 25, 12:05 pm, Indicator Veritatis  wrote:
> > Those "many cases for this there is no particularly good reason one
> > was picked over the other" are most likely, I hope, the cases where I
> > gave up on trying to figure out why the Android team chose to make the
> > one 'abstract class' and the other 'public interface';)
> >
> > On Jul 21, 10:28 pm, Dianne Hackborn  wrote:
> >
> >
> >
> > > On Thu, Jul 21, 2011 at 8:16 PM, Indicator Veritatis <
> mej1...@yahoo.com>wrote:
> >
> > > > They do not pause to explain, for example ... why some classes are
> defined
> > > > a public abstract classes, while very similar other classes are
> > > > defined as interfaces.
> >
> > > Well hopefully you generally don't care.  And to be honest, in many
> cases
> > > for this there is no particularly good reason one was picked over the
> other.
> > > ;)
> >
> > > --
> > > 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.- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] Cursor position in middle of EditText

2011-07-25 Thread ANKUR GOEL
hi all,

i have edit text in that i have put a text as hint in middle of it .

i want my edit cursor position to start from their only .

can anyone help me regarding this.

Thanks and Regards:-
Ankur

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

2011-07-25 Thread Halsafar
I am finding whenever I press a key down on a keyboard it immediately
fires both the down and up events.  It seems with the virtual keyboard
or a real keyboard in the case of the EEE Transformer Pad this is
true.  Is this the expected behavior or am I doing something wrong?  I
have tried with both the dispatch and separate onKeyDown/onKeyUp
events.  Both give same results.

Note this is not true for special keys.  CTRL for example fires
properly and its repeat count properly goes up as you hold it.  Where
if you hold a regular key like "A" it fires up/down events
simultaneously and the repeat count stays at -1.


 public boolean dispatchKeyEvent(KeyEvent event)
 {

  if (event.getAction() == KeyEvent.ACTION_DOWN)
  {
 Log.d(LOG_TAG, "onKeyDown(" + event.getKeyCode() + ", " +
event + ")");

 return true;
  }
  else if (event.getAction() == KeyEvent.ACTION_UP)
  {
  Log.d(LOG_TAG, "onKeyUp(" + event.getKeyCode() + ", " +
event + ")");

  return true;
  }

  return super.dispatchKeyEvent(event);
 }

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

2011-07-25 Thread Dianne Hackborn
And the point is...?

On Fri, Jul 22, 2011 at 12:42 AM, gjs  wrote:

>
> http://android-developers.blogspot.com/2011/07/multiple-apk-support-in-android-market.html
>
> On Jul 22, 2:40 pm, Dianne Hackborn  wrote:
> > Having a drawable-small indicates a more fundamental problem with what
> you
> > are doing.  Why are you doing such a thing?  What is the configuration of
> > this device?  You really need to provide more detail of exactly what you
> are
> > doing and the problematic behavior you are seeing.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jul 21, 2011 at 9:54 AM, Alex 
> wrote:
> > > Hey, I have recently come across a situation where drawable-hdpi
> > > resources on a small-screen, hdpi device look terrible. I would like
> > > to force smallscreen devices to use mdpi resources.
> >
> > > Copying (or resizing) all the pertinent drawables from /drawable-mdpi
> > > to /drawable-small causes too much APK size inflation to justify, and
> > > it would be *another* item in the resource maintenance hassle.
> >
> > > My first idea was to create xml reference files in /drawable-small
> > > that reference the drawable-mdpi resources, but i dont know how to
> > > "hard-link" to a specific resolution's (in this case mdpi) drawable
> > > via the "@drawable/" syntax.
> >
> > > Whats my way out?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: How to know what internal process runs an application

2011-07-25 Thread Dianne Hackborn
A string is useful to be able to look at the process information in the
debugger, and the most common use for this is to have multiple .apks share a
process to run in (not run parts of a single .apk in multiple processes), so
a string provides the ability to do scoping and generally not go insane.

On Mon, Jul 25, 2011 at 8:05 PM, elDoudou wrote:

> Thank you "Indicator Veritatis" for your clear answer.
>
> For you, what I intend to do is impossible. I cannot figure out why
> the Android team declared an "android:process" attribute, and do not
> expose that value at runtime to the application, because this
> information is only an instruction on whether a dedicated Linux
> process should be allocated for a specific component type (Activity,
> Service, BroadcastReceiver, ContentProvider ...): the fact that this
> actually names the Linux process this way is an implementation detail
> and a coincidence. If the process should be anonymous containers and
> that it is not supposed to be available from the API at runtime, why
> not having design an "android:process" value with an ordinal? I now
> know that I need to review the Android source code for better
> understanding that "android:process" thing.
>
> BTW: my application has about 100 activities (I did not say
> "hundreds" ;), because this is a very large application, and I already
> put into common many activities. For information, I'm not totally a
> rookie: I have already been developing about 40 Android applications
> (see http://code.google.com/p/droid4me for some of them), and I have
> been developing now for 25 years (which, of course, does not involve
> that I'm a good developer ;).
>
> Regards,
> Édouard
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] is the Main dictionary available for app/IME word prediction?

2011-07-25 Thread Saied
Hello,

I am hoping that Android's main dictionary can be accessed by apps and
IMEs  to that the same main dictionary and user dictionary is used to
give a consistent word prediction response to users.

Is this so? Or is it the case that each app should create and manage
its own main dictionary?

If it's the latter, then that would be regretful since it's going to
create a lot of waste, not to mention divergent UI.

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

2011-07-25 Thread Nikolay Elenkov
On Tue, Jul 26, 2011 at 2:24 PM, William Ferguson
 wrote:
>> By now, it's pretty much universally accepted that checked exceptions were
>> a bad idea. An exception is an exception, and you either handle it or you
>> let it propagate up the stack. The whole checked/unchecked divide is hugely
>> artificial.
>
> OK, not wanting to start a flame war, but that's not true.
> If you know how to use checked Exceptions then they are a boon. Same
> for unchecked Exceptions.

Good for you :)

>
> A checked Exception needs to be either dealt with or rebadged to fit
> the paradigm of the calling class.

Finger itchy on the flame thrower trigger... Nah.

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

2011-07-25 Thread Nikolay Elenkov
On Tue, Jul 26, 2011 at 2:11 PM, keyboardr  wrote:
> The only problem I could forsee is the stuff that would normally be
> handled as a managed purchase.  Namely: the reinstall issue.
> Scenario: purchased old version, uninstalls app, downloads new
> version.  In this case the app should be installed with the unlock
> complete, but it won't be without some effort.  Ideas on how to catch
> this edge case?

AFAIK, there is no official solution for migrating from paid to in-app
billing model. There probably should be one.

Theoretically, it should be possible to use the LVL to check the license
status. Then, when they run the new freemium version (using IAB), if they
had already bought the old paid one, you could give them the license
automatically. However, the Android market apparently doesn't currently
allow the CHECK_LICENSE permission on free apps. To do something
similar, you could have your own database of users who bought the
paid version, and have your free app phone home on first run. It might
be a PITA if you have a lot of paid users, but it should be doable by
exporting the data from the merchant console.

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

2011-07-25 Thread Jatin D Patel
Mark,

Thanks for your reply. I learnt something new from it.

Firstly i was not aware of ExpandableListView?
Secondly on doing a small research, i guess i can have more control on child
component (adding components in child view) via my blog, if compared with
ExpandableListView (which have good controls on list based items).


On Tue, Jul 5, 2011 at 9:49 AM, Mark Murphy  wrote:

> What are the benefits of this over ExpandableListView?
>
> And, can you play a polka with this accordion? :-)
>
> On Tue, Jul 5, 2011 at 9:34 AM, Jatin D Patel 
> wrote:
> > Link was incorrect in last email :
> > here is the correct one
> >
> http://jatin4rise.wordpress.com/2011/07/05/dynamic-accordion-creation-in-android/
> > On Tue, Jul 5, 2011 at 1:30 AM, Jatin D Patel 
> wrote:
> >>
> >> Dynamic accordion creation
> >>
> >> Your Feedback / Comments will be Appreciated.
> >>
> >>
> >>
> http://jatin4rise.wordpress.com/2011/07/05/dynamic-accordion-creation-in-android/
> >>
> >> --
> >> Thanks,
> >> Jatin D N Patel
> >> You Got To Think HIGH to RISE.
> >>
> >>
> >
> >
> >
> > --
> > Thanks,
> > Jatin D N Patel
> > You Got To Think HIGH to RISE.
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

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

2011-07-25 Thread William Ferguson
> By now, it's pretty much universally accepted that checked exceptions were
> a bad idea. An exception is an exception, and you either handle it or you
> let it propagate up the stack. The whole checked/unchecked divide is hugely
> artificial.

OK, not wanting to start a flame war, but that's not true.
If you know how to use checked Exceptions then they are a boon. Same
for unchecked Exceptions.

The problem lies in developers and APIs making very poor decisions
regarding their usage.


To answer Zsolt's question:

A checked Exception needs to be either dealt with or rebadged to fit
the paradigm of the calling class. If it can't be dealt with and your
class is now in a non-functional state consider rebadging it to an
unchecked Exceptions such as IllegalStateException.

An unchecked Exception should generally only be caught (if then) at
the very top of the process hierarchy, such as from a Thread that
needs to ensure that it doesn't fail inappropriately. Otherwise they
are best left for the UncaughtExceptionHandler to deal with (which
normally means your app crashes and whatever error reporting channel
is in place is invoked).

William

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


Re: [android-developers] Help! Creating really simple app!!

2011-07-25 Thread Raghav Sood
>
> I would like to make an app


If someone  gives you the code I don't see how you will be making the app.

http://stackoverflow.com/questions/5752242/contacts-picker-retrieving-last-name-first-name-phone-number

http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/


On Sat, Jul 23, 2011 at 12:50 AM, amankh...@hotmail.co.uk <
amankh...@hotmail.co.uk> wrote:

> I would like to make an app, where you type into a text box a phone
> number and then the app will check if that number is in the contacts/
> phonebook, and if it is return the contact name to another text box.
>
> Can someone give me the code to this i know it has something to do
> with ContactsContract.PhoneLookup but i cannot find any tutorials/
> anything on the internet about 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




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Appaholics

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

Re: [android-developers] Image button

2011-07-25 Thread rambabu mareedu
instead of button u can use images button...in xml in the place of button
call imagebutton dats it..for more information u can see examples in google

On Sat, Jul 23, 2011 at 5:22 AM, sagar sarkar  wrote:

> Please help me for the functionality of image button. Is it exactly
> same as that of the button or not. I cant do the same with it.
>
>
> Sagar
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Emulator bigger than my screen

2011-07-25 Thread rambabu mareedu
in creating of virtual device give builtin box HVGA mode then it will
work

On Mon, Jul 25, 2011 at 10:08 PM, Nasreen Ustad wrote:

> Hi,
>
> Try to set ur emulator size, Go to 0n winsows menu-->Android sdk and
> avd Manager then select one of ur emulator , click on edit button then
> either set skin resolution 320*480 or built in hvga. then click on
> edit avd then start and launch avd.
>
> Thats very simple, ok
> Bye
>
> On Sat, Jul 23, 2011 at 9:48 AM, paulkinzelman  wrote:
> > I'm just starting learning the Android development environment, managed
> to
> > get Hello World going...
> >
> > However, the emulator window on my Vista display is larger than the
> display,
> > some of it extends off the bottom of the screen. The tutorial doesn't say
> > anything about how to fix that, and it looks like I can't drag the corner
> of
> > the emulator screen to change the size. Is there a way to make the
> emulator
> > window smaller? I realize that might affect the app interaction with the
> > screen, but it seems there should be a way to fix this.
> >
> > Also, I ran across a major stumblingblock on the tutorial page:
> > http://developer.android.com/resources/tutorials/hello-world.html
> > in that if you install the sdk in the default (under c:\program files)
> the
> > emulator won't run because of the space. Fortunately a quick search
> turned
> > up others that had the same problem. Seems the tutorial should warn about
> > this, is there some way to report this to somebody to fix the tutorial?
> > Other than a couple of items, though, the tutorial so far has been
> > spectacular, 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
>
>
>
> --
> Thanks & Regards
>
>
>  Nasreen Ustad
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Offering free and paid APKs on the Market

2011-07-25 Thread keyboardr
The only problem I could forsee is the stuff that would normally be
handled as a managed purchase.  Namely: the reinstall issue.
Scenario: purchased old version, uninstalls app, downloads new
version.  In this case the app should be installed with the unlock
complete, but it won't be without some effort.  Ideas on how to catch
this edge case?
On Jul 25, 2:22 pm, String  wrote:
> In the first release of the freemium version, you should be able to detect
> if the app is being run for the first time or if it's an upgrade. Do this in
> code by looking for some evidence of previous execution (this will depend on
> your app, of course): shared preferences, user database, cache entries,
> whatever. If the code has been run before, you know it's a user from before
> you made the free/paid split, and can act accordingly.
>
> Depending on how your free/paid split works, you may also need to leave some
> *other* flag to avoid false positives in future versions for users who came
> in after the freemium split. Don't assume that all legacy users will have
> installed (for example) 2.0 before 2.1.
>
> I've done logic like this a number of times and it seems to work.
>
> String

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

2011-07-25 Thread Nasreen Ustad
Hi,

Try to set ur emulator size, Go to 0n winsows menu-->Android sdk and
avd Manager then select one of ur emulator , click on edit button then
either set skin resolution 320*480 or built in hvga. then click on
edit avd then start and launch avd.

Thats very simple, ok
Bye

On Sat, Jul 23, 2011 at 9:48 AM, paulkinzelman  wrote:
> I'm just starting learning the Android development environment, managed to
> get Hello World going...
>
> However, the emulator window on my Vista display is larger than the display,
> some of it extends off the bottom of the screen. The tutorial doesn't say
> anything about how to fix that, and it looks like I can't drag the corner of
> the emulator screen to change the size. Is there a way to make the emulator
> window smaller? I realize that might affect the app interaction with the
> screen, but it seems there should be a way to fix this.
>
> Also, I ran across a major stumblingblock on the tutorial page:
> http://developer.android.com/resources/tutorials/hello-world.html
> in that if you install the sdk in the default (under c:\program files) the
> emulator won't run because of the space. Fortunately a quick search turned
> up others that had the same problem. Seems the tutorial should warn about
> this, is there some way to report this to somebody to fix the tutorial?
> Other than a couple of items, though, the tutorial so far has been
> spectacular, 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



-- 
Thanks & Regards


 Nasreen Ustad

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Communication between android app and application on a remote server

2011-07-25 Thread work_84
Hello,

I am developing an Android application which has to send/receive data
to/from a remote server securely.
The Android application has to authenticate the server and the server
needs to authenticate the device. The data sent/received should also
be encrypted.
I have implemented similar feature on desktop applications using
OpenVPN and thrift(Since the server is in C++ and the client in java).
I was planning to use the same on Android but am not sure if openvpn
package is available to be used by android applications.

Any suggestions on this will be very much helpful.

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] how to start

2011-07-25 Thread vipin saroha
hii everybody,
I am new for ANDROID. the only thing i know is JAVA.
can anybody tell me how to begin with ANDROID, I want to create an
application on ANDROID.
please suggest some ideas regarding the types of apps i can go for and
some topics on which i can create an app

thank you
vipin

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

2011-07-25 Thread Preshit Raut
Is there any application available to write & read marathi or hindi
language on android 2.2.. I guess many people suffering from this..so
if it is available pls share it else pls make it available

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


[android-developers] Using expanded option menu as default menu style

2011-07-25 Thread erkangur
Hi,

I was wondering if it is possible to use expanded option menu as
default menu style instead of six-tab style with a more button. I
encountered this[0] conversation which has last message sent in 2008.
I could find neither any positive comment on the web nor a reference
from api docs about that. Is there any way to overcome this problem,
or should I ask this as a feature?

Thanks,
Erkan Gürel

[0] = 
http://groups.google.com/group/android-developers/browse_thread/thread/75c7f48326692f29/27fb0f0d9768d137?lnk=gst&q=expanded+menu#

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Keep list item in a list view vertically centered (non touch based devices)

2011-07-25 Thread photon
Hi,

I need to achieve Scenerio as in the previous thread:
http://groups.google.com/group/android-developers/browse_thread/thread/17a76edb78471115#



1) ListView has many items (i.e. scrolling will occur at some point)
2) At the beginning, the selection is at the top (item #0)
3) User scrolls down (i.e. we're not in touch mode)
4) For the first items, the selection is moving down without the list
to scroll.
5) Once the selected item is reaching the middle of the list's
viewport: the list starts to scroll-down.
6) Then, toward the end of the list: scrolling stops and the selection
keeps moving down until the last item is reached. It's a common
feature in (keyboard-enabled) UI frameworks but I don't believe it's
possible to achieve with Android, as for now


After fishing for answers on the internet and the android source.
Looks like Its not supported, but I did notice there are a few private
functions in ListView, (e.g. function fillFromMiddle(int, int),
fillFromSelection(int, int)) what do these do?

I also see 'mLayoutMode = mStackFromBottom ? LAYOUT_FORCE_BOTTOM :
LAYOUT_FORCE_TOP;' on data changed function which always forces my
selected Item in the list view to be on the top. Is there a way to
change that?


(FYI: setSelection on the listView to switch between items was too
slow for fast scrolling through a big list so I had to resort to using
scrollBy functions)

To work around this problem. I tried to dispatch touchevents and
achieve scrolling functions like (smoothScrollBy(..) ). As my device
isn't a touch based device I DO NOT get a onSCrollStateChanged, even
though I do register onScrollListener. is there a way to work around
this? (Is there a way to fake the device to think its a touch based
device even if its not, the device I am working on is a custom device
so I can modify the platform code as well, please let me know if this
is possible)

Also, Is there a way to enable fast scrolling programatically?


-Photon

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

2011-07-25 Thread Ujjwal13
Hi,

In my android app I want to intercept/block loading of network
resources from some urls and allow from some other URLs through
webview.. How can I achieve this..??

Thanks,
Ujjwal13

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-25 Thread Sebastian Tomaszewski
Do any of you guys know an answer to this.. Just wondering...


On Fri, Jul 22, 2011 at 5:31 PM, Sebo  wrote:

> Hello All,
> Quick question, do you know if there is a way to turn off any APPS
> that run in the background (e-mail/GPS...), so my application while it
> is running won't be interrupted at all(Except for the OS of
> course)?.   BOTTOM line the following is what I would like to do:
> 1. As soon as my APP Enters, it would turn off the other background
> APPS/Services/Tasks (Except for OS) from running.
> 2. Perform operations without being interrupted
> 3. On the exit, the APP would re-enable all of those apps to run?
>
> OR is there a way to tell when my application starts that my APP is
> the highest prioiryt in the whole system?  I tried setting my
> Acitivity prioity (In the Manifest) to the highest possible and that
> didn't work that well.
>
> Please let me know if you have any suggestions..
>
> I greatly appreciate it.
>
>
>
> Sebo
> -- DROIDS for LUNCH... ANyone?

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

2011-07-25 Thread Amokrane Chentir
Hi,

I have an issue here with the ADB tool. Since this morning I cannot
attach my devices anymore like I used to do for the last two months or
so. Nothing has changed in my configuration, I am still running the
very same version of Ubuntu 10.10 that I was running before.

Also, this is the content of my rules file (in /etc/udev/rules.d/51-
android.rules) :

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8" MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1" MODE="0666", GROUP="plugdev"

(since I have both Samsung Spica and Nexus S devices).

I gave the file a et r permissions (chmod a+r) and restarted udev.

On the device side, unknown sources is enabled and same for debug
mode.

Can't find what is wrong!

Thank you for your help!


Amokrane

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

2011-07-25 Thread Jeremy C. Andrus
I have found a bug in the toolbox utility.
Not having participated in this forum before I wasn't sure exactly
where to send this. I have attached a patch which fixes the buffer
overrun issue in mount.c (which caused a segfault for me). The problem
is that 'len' is incremented _after_ 'newlen' is calculated. If you
have two arguments where the second is exactly 2 characters longer
than the first, then the writing of the NULL character by strcpy()
will overrun the allocated buffer when copying the second argument
(because no space was allocated for the ',' character).

Hopefully that made reasonable sense. If not, the diff should show the problem.

I receive digest emails, so please email me directly with any problems
- thanks :-)

-Jeremy

-- 
--
Jeremy C. Andrus

e: jchristian.and...@gmail.com
w: http://jeremya.com/
l: New York, NY
p: +1 616 439 0522
--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=endiff --git a/toolbox/mount.c b/toolbox/mount.c
index 472c952..537f769 100644
--- a/toolbox/mount.c
+++ b/toolbox/mount.c
@@ -60,11 +60,13 @@ static const struct mount_opts options[] = {
 static void add_extra_option(struct extra_opts *extra, char *s)
 {
 	int len = strlen(s);
-	int newlen = extra->used_size + len;
+	int newlen;
 
 	if (extra->str)
 	   len++;			/* +1 for ',' */
 
+	newlen = extra->used_size + len;
+
 	if (newlen >= extra->alloc_size) {
 		char *new;
 


[android-developers] Live Folder and Application Logout

2011-07-25 Thread Zhenia Krivopaltsev
The application I develop has a live folder. I wonder how to close the 
folder programmatically when a user logs out, it has a sensitive data which 
should not be exposed in such case.


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

2011-07-25 Thread Sebastian Tomaszewski
Hello all,
Nikolay, thank you for posting this problem that you are seeing. I get the
same problem when I use this timer in my code and I have no idea what could
be the issue...  If anyone know the reason why or how to improve it, I would
greatly appreciate the answer as well.
The followinig are some questions that come into my mind:
1. Is there some more occurate timer out there?
2. Could this potentially be because there are many other applications
runnign in the background?
3. Is there someway to turn off those applications?
NOTE: I posted questions 2 and 3 in my earlier post and didn't get a
responses...

Thank you again for all of your help and I greatly appreciate your response.


Sebo

On Mon, Jul 25, 2011 at 11:25 AM, Christophe <
christophe.lebesner...@gmail.com> wrote:

> hello Nikolay,
>
> I have updated my code, following your suggestion :
>
> public List times = new ArrayList();
> CountDownTimer countDown = new CountDownTimer(Integer.MAX_VALUE, 1000)
> {
>@Override
>public void onTick(long millisUntilFinished) {
>times.add(System.currentTimeMillis());
>}
>
> };
>
> and after a while I display the time between two call to "onTick" with
> a loop over my list :
>
> for (int i = 1; i < times.size(); i++) {
>System.out.println(times.get(i) - times.get(i - 1));
> }
>
> And I have something like this :
>
> 07-25 18:18:37.281: INFO/System.out(408): 1034
> 07-25 18:18:37.281: INFO/System.out(408): 1031
> 07-25 18:18:37.281: INFO/System.out(408): 1017
> 07-25 18:18:37.281: INFO/System.out(408): 1018
> 07-25 18:18:37.291: INFO/System.out(408): 1011
> 07-25 18:18:37.291: INFO/System.out(408): 1019
> ...
>
> I'm not expecting the precision of an atomic clock, but the error
> margin here is huge !
>
> On Jul 25, 8:06 pm, Nikolay Elenkov  wrote:
> > On Jul 26, 2011 3:00 AM, "Christophe" 
>  > wrote:
> >
> >
> >
> > > "Log can be expensive" => I have tried to run the same code with a
> > > good old "System.out.println" and the problem is still there.
> >
> > That goes to the same log buffer, so no change is to be expected. Make a
> > list of Long and push currentTimeMillis on each call. Then dump the list
> to
> > log and see what this gives 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
>

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

2011-07-25 Thread vishal gaurav
Hi all,



I want to ask a whether it is possible make videos from a set of images.
This will make me able to build a Movie Maker type of application.



Please reply with your valuable comments and suggest me regarding
feasibility of this task on android platform.



Thanks and Regards in advance

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

[android-developers] Re: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-25 Thread Sebastian Tomaszewski
Do any of you guys know an answer to this.. Just wondering...

On Fri, Jul 22, 2011 at 5:24 PM, Sebo  wrote:

> Hello All,
>
> Here is my Problem, I am trying to safe an image (1280x800) into the
> memory and I am running into some timing issues Meaning I want to
> get it done As fast as possible wihtout losing the image sizing and
> crispness I had been trying to resolve this problem for last
> couple of days and I am running always to gotchias (The final
> destination of the Image I want it to be in the SDCARD)
>
> 1.  I tried writing directly an image to the SD-CARD and it took about
> about 180 msec
> 2. I tried writing to internal cache memory first (160msec) and then
> copying using the FileChannel the image to SDCARD (4msec)
>
> Does anyone know what would be even faster?
> If there is no faster way to do this, that is fine, but I just want to
> make sure that I visited all of the possible ways.
>
> Thank you all for your help ahead of time.
>
> Thank you and Best Regards,
>
>
> Sebo
> --- I eat droids for Breakfast

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

2011-07-25 Thread Skyre
In one spot of my app, I use a LayoutInflater to create a little
settings window.  On versions of Android prior to Gingerbread this
works beautifully, but on Gingerbread there is an unsightly black
background shown behind the XML view.  It seems to be like a base
context menu background or something, but I cannot for the life of me
figure out how to get rid of it, as it really makes things look bad.

I figured if I set the window to wrap_content that it would just
shrink down to the size of the XML and be fine, but it is still
slightly bigger on the Y, and stretches all the way across the screen
on the X.  Even if I set the size to exact pixel values, or ones based
on the pixel width/height of the screen, you can still see the black
background, and if I do that it also does this weird graphical glitch
on the side that makes it look even worse.

If somebody knows of a simple solution to this I'd be really grateful
to hear it.  Ideally I'd like to fix it without ruining the current
setup, since it works perfect with older versions, but I'll do
whatever has to be done to get it done right.

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] Guyzz Is this Possible to install Turbo C on My android Device i m using Galaxy S 2

2011-07-25 Thread d F|√-\m3R 2010™
Is this possible to install Languages like c , C++ in an android mob

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

2011-07-25 Thread Rooney
hi.

When the other phone to access my hotspot(WIFI), so that at first I
would like to access certain websites.
In other words, Android Router.
I would like to obtain a sample code or examples.

regards

Rooney

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Auto-sync (Settings -> Account & Sync) unchecked by default

2011-07-25 Thread satyanarayana
I am a newbie, I want Auto-sync (Settings -> Account & Sync) unchecked by 
default.
Please help me.

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

Re: [android-developers] Re: CountDownTimer too slow ???

2011-07-25 Thread Sebastian Tomaszewski
You are right that works alot better...   I am only 1 msec off what
expect  before it was about 10 sec off what I expected...  thank you for
clarifying this...  I greatly appreciate it   sebo
 On Jul 25, 2011 4:46 PM, "Nick Risaro"  wrote:
> If you run your app on eclipse, i.e. without making an apk and installing
it
> on the phone, you always run with the debug flag in true.
>
> If you want to run 100% in normal mode you have to make an APK file and
> install it on a real phone.
>
> On Mon, Jul 25, 2011 at 4:54 PM, Christophe <
> christophe.lebesner...@gmail.com> wrote:
>
>> I'm using eclipse but I run the app using the normal mode, not the
>> debug mode.
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Not able to find adb.exe

2011-07-25 Thread Innuja
I am running Eclipse 3.7, Indigo. I have installed the JRE, JDK,
Android SDK and ADT into C drive, I've set up the environment
variables of both JDK and Android SDK. I've been through the
preferences of eclipse and have installed and updated the ADT. Eclipse
still cannot find adb.exe.
Please help.
Thanks

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


[android-developers] Ynt: Gallery view image zoom option in multi touch..

2011-07-25 Thread Süleyman Çalık
Hi,

Implement a SimpleOnScaleGestureListener class for example ZoomDetector and 
make and instance of it in your Gallery implementation.
   
In your Gallery class

   public boolean onTouchEvent(MotionEvent event)

{

   zoomDetector.onTouchEvent(event);

   return super.onTouchEvent(event);

}


ZoomDetector class:

   class ZoomDetector extends SimpleOnScaleGestureListener

{ 

 @Override

 public boolean onScale(ScaleGestureDetector detector)

 {


  setScaleX(getScaleX() * detector.getScaleFactor());

  setScaleY(getScaleY() * detector.getScaleFactor());

return super.onScale(detector);

 }

}

This may help 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] Proximity Alerts

2011-07-25 Thread deepak subramanian
Hi everyone,

I have an application which needs to call a new screen if it comes within
the proximity of a few locations. So I am using the addProximityAlerts()
function as follows: But this does not work at all. My code is shown below

*public void setupLocationMonitoring(Intent newIntent) {

for (int i = 0; i < locations.size(); i++) {
newIntent.putExtra("widgetId", i);
newIntent.setAction(IntentAction);
PendingIntent intent1= PendingIntent.getBroadcast(HaiMap.this,
i, newIntent, PendingIntent.FLAG_CANCEL_CURRENT);
double lati=(double) (locations.get(i).getLatitudeE6()) / 1E6;
double longi =(double) (locations.get(i).getLongitudeE6()) /
1e6;
lm.addProximityAlert(lati,longi,200,0, intent1);
}
}
*
The Manifest entry for the broadbase receiver which is supposed to receive
the intents is as follows;
*
  



  *


I am trying to create proximity alerts for a few locations with the
following code. I have searched for some time but there is no good answer to
this question anywhere on the web.


Thanks and Regards,
Deepak

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

2011-07-25 Thread 驼峰
Hi, All

Is IPv6 fully support in Android OS 2.3.4 or not?
Currently, when connecting to WIFI, I only get IPv4 address. I am sure
the Wifi hot spot support IPv6 because my laptop can get IPv6 address
from same WIFI hot spot. My phone is Samsung Nexus S.
If it support, does anyone know how to get the IPv6 address?

Thanks,
-Mike Guo

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

2011-07-25 Thread vovs
I have some fragment(see below code).
In this fragment i populate ListView.
I have Categories and feeds.
I want to create header to my ListView which will be always on top and
don't hide when scrolling. This header will show Category name.
Or how can I add staticview(TextView) and below it add list?
Can anybody help me?

public class FeedsListForViewFragment extends ListFragment {

private Context mContext;
List items;
private int layoutForList = R.layout.list_feeds_simple;
private ActiveRecordBase _db;
private Activity mActivity;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mActivity = getActivity();
_db =
((JtjApplication)getActivity().getApplication()).getDatabase();
try {
_db.open();
} catch (ActiveRecordException e) {
e.printStackTrace();
}

}

public void setItemsToList(List items, int curPosition)
{
mContext = getActivity().getApplicationContext();
this.items = items;
ListView lv = getListView();
setListAdapter(new ListOfFeedsAdapter(mContext, layoutForList,
items, mActivity));
lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
lv.setCacheColorHint(Color.WHITE);

setPosition(curPosition);
}

@Override
public void onListItemClick(ListView l, View v, int position, long
id) {
super.onListItemClick(l, v, position, id);
if (!(((FeedsActivity) getActivity()).getCurrentPosition() ==
position)) {
updateUnreadItemsInDb(position);

updateLinksList(position, items.get(position));
((FeedsActivity)
getActivity()).setCurrentPosition(position);
}
}

@SuppressWarnings("unchecked")
private void updateUnreadItemsInDb(int position) {
FeedItem feed = items.get(position);
if (feed.isRead != true) {
List feedsForUpdate = null;
List lft = null;
try {
feedsForUpdate = _db.find(FeedItem.class, false,
"GUID=?", new String[] { String.valueOf(feed.guid) }, null, null,
"PUBLICATIONDATE DESC", null);
lft = _db.findAll(FeedType.class);
} catch (ActiveRecordException e1) {
e1.printStackTrace();
}
for (FeedItem curFeed:feedsForUpdate) {
curFeed.isRead = true;
try {
curFeed.save();
FeedType ft =
lft.get(Integer.parseInt(curFeed.channel_id) - 1);
ft.unread_count = ft.unread_count - 1;
ft.update();
} catch (ActiveRecordException e) {
e.printStackTrace();
}
}
items.get(position).isRead = true;
((ArrayAdapter)
getListView().getAdapter()).notifyDataSetChanged();
}
}

private void setPosition(int position) {
ListView lv = getListView();
lv.setSelection(position);
lv.setItemChecked(position, true);
try{
updateLinksList(position, items.get(position));
} catch (IndexOutOfBoundsException e) {
e.printStackTrace();
}
}

private void updateLinksList(int position, FeedItem feedItem) {
FeedsViewFragment viewFragment = (FeedsViewFragment)
getFragmentManager().findFragmentById(R.id.feed_view_fragment);
viewFragment.setViewItem(feedItem);
}
}

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

2011-07-25 Thread Sayan Chakrabarti
Hi

I am using my own shared via app using the following code in manifest
file:







So my app shows in the shared via list.

Now apart from the highlighted text in the browser, i also want to get
the webpage header and url.
How is it possible?

Thanks
Sayan

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

2011-07-25 Thread vovs
Have some problem: I create simple Activity with webview. If you visit
Facebook Mobile, you will notice that you can scroll to the bottom of
the page and when you do, more loads posts - via default browser. But
this is not working in my webview.

The other thing that also needs to be fixed is the "More" button on
the top right corner. The menu itself works when you touch the "more"
button but none of the menu items are clickable in my webview. Can
anyone help me?

public class FacebookProjActivity extends Activity {

WebView webview;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
webview = (WebView) findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
webview.setWebViewClient(new FacebookProWebViewClient());
webview.loadUrl("http://m.facebook.com";);
}
@Override
protected void onDestroy() {
super.onDestroy();
}

private class FacebookProWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView webview,
String url) {
webview.loadUrl(url);
return true;
}
}
}
and main.xml


http://schemas.android.com/apk/res/android";
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
>
  http://schemas.android.com/apk/res/android";
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
  />


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


[android-developers]Proximity Alerts not working as expected

2011-07-25 Thread deepak subramanian
Hi everyone,

I have an application which needs to call a new screen if it comes within
the proximity of a few locations. So I am using the addProximityAlerts()
function as follows: But this does not work at all. My code is shown below

*public void setupLocationMonitoring(Intent newIntent) {

for (int i = 0; i < locations.size(); i++) {
newIntent.putExtra("widgetId", i);
newIntent.setAction(IntentAction);
PendingIntent intent1= PendingIntent.getBroadcast(HaiMap.this,
i, newIntent, PendingIntent.FLAG_CANCEL_CURRENT);
double lati=(double) (locations.get(i).getLatitudeE6()) / 1E6;
double longi =(double) (locations.get(i).getLongitudeE6()) /
1e6;
lm.addProximityAlert(lati,longi,200,0, intent1);
}
}
*
The Manifest entry for the broadbase receiver which is supposed to receive
the intents is as follows;
*
  



  *


I am trying to create proximity alerts for a few locations with the
following code. I have searched for some time but there is no good answer to
this question anywhere on the web.


Thanks and Regards,
Deepak

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

2011-07-25 Thread Musicexplorer
Hi,

we got a lot of reports from our users that our Android app consumes a
lot of battery. After some extended debugging sessions I now suspect
that the battery reporting of Android (concerning sensors) might be
incorrect. It seems that no matter how you unregister the sensors that
you have used, they are still being looked at as active by the battery
reporting tool. To reproduce the error:

1. Compile the official Android sensor example (Accelerometer Play)
from 
http://developer.android.com/resources/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/index.html
2. Upload it to the phone and start it
3. terminate it with the back button (after approx. 5 seconds)
4. disconnect the usb cable
5. wait some time (e.g. 20 seconds)
6. open the dailpad and enter *#*#4636#*#*
7. click on battery history=> other usage => Sensor usage =>
Accelerometer Play
8. The displayed sensor usage time is larger than the time the
activity was in foreground
9. If you repeat step 7 you will see that the sensor usage value still
increases, even tough the app is not running anymore

I reproduced this error on a Motorola Defy with Android 2.3.4 and a
Nexus One with Android 2.3.4. The error does not occur on a HTC Desire
running Android 2.2. Alternatively you can observe the same thing by
using adb (instead of the tool from the dialpad): adb shell dumpsys
batteryinfo

I would appreciate it if someone would help me to find a way to
correctly unregister the sensors (on 2.3.4 devices).

Regards,

Samuel


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

2011-07-25 Thread giovanni di lembo
hi all is it possible publish an app in the market.Where are the rules
to do that?
ciao

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

2011-07-25 Thread Daniel
I have started to implement some of the Android messaging classes that
are normally only available within the Java framework for native code
development in C++. I have done that because we do a lot of native
code development for our hardware platform to implement additional
features and therefor we also do a lot of multithreaded programming. I
like Android's messaging framework very much, so I don't want to
reinvent the wheel all the time for native concurrent programs :-).
The framework also works with your desktop Linux system or with QNX
Neutrino RTOS.

You can find the source code with a small test program here (Apache 2
license): 
https://code.google.com/p/himmele/source/browse/#svn%2Ftrunk%2FAndroid%20Messaging

The following is currently NOT implemented but I will do this in the
future:
- use Android's reference counting mechanism (smart pointers) based on
RefBase, sp<...> and wp<...>.
- add the Binder IPC interface by implementing the Messenger class as
the Java framework does.
- add Bundles and Parcels.
- implement a native AsyncTask class (including Java's
ThreadPoolExecutor)

If you would like to submit some of the planned features feel free to
do so.

Br,
Daniel

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

2011-07-25 Thread Denis Gottardello
Hello everybody. I'm trying to show a jpeg image stored in a byte
array on a ImageView object.
I'm sure that the byte array contains a jpeg image correctly because,
if I save it in a file, with another editor I can see it correctly.
For show the image I'm trying in this mode:


android.graphics.Bitmap a=
android.graphics.BitmapFactory.decodeByteArray(Data, 0, Data.length);

a.recycle();

android.widget.ImageView IVCamera=
(android.widget.ImageView)Live.findViewById(R.id.IVCamera);

IVCamera.setImageBitmap(a);

but does not work.
Do you know wich is the right way?

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

2011-07-25 Thread Ravel Joe Franco Abreu
i can't access to hboot, the phone only show the intro screen
help me please

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

2011-07-25 Thread giovanni di lembo
Hi all i m quite able to create an app that connect my galaxy to my pc
by bluetooth but i do not know if it's is possible create a wi fi
connection and on it , passing data such as a socket connection with
input and output stream of byte.
anyone can suggest me resources?
Regards
Gio

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] WRITE_EXTERNAL_STORAGE (not set, but i write to sdcard)??

2011-07-25 Thread Feign Narula
Hi,

This only works on Android v 2.2 and above and below this version all
application data would be stored on the internal storage.

Try using this permission below Android 2 and you will find the
difference, you cannot use this permission in manifest.



On Sun, Jul 24, 2011 at 4:29 PM, guruk  wrote:

> Hi there,
> i always did wrote to sd card with
>
> String baseDir =
> Environment.getExternalStorageDirectory().getAbsolutePath();
>
> String fileName = DATABASE_TABLE + ".myd";
>
> File f = new File(baseDir + File.separator + fileName);
>
> FileWriter gpxwriter = new FileWriter(f);
>
> BufferedWriter out = new BufferedWriter(gpxwriter);
>
> // 
>
> now i came about the permission: WRITE_EXTERNAL_STORAG
>
> I NEVER used/implemented that permission into my manifest.
>
> So what?
>
>
> I have android:minSdkVersion="2"
>
> and my building target is 8 android:minSdkVersion="2" (android 2.2)
>
> does it have to do with that?
>
>
> I am just wondering WHY can i write to sdcard without that permission.
>
> and why should i implement it?
>
>
> thx
>
> chris
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
*Feign Narula*
*
*
*Team Lead*
*Phone : +16478634318*
*Linkedln profile : http://ca.linkedin.com/pub/feign-narula/29/54/b82*
*SCJP 5.0 Certified Programmer*
*Curam V6 Certified Developer*
*TOGAF V9 Certified Practitioner*

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

2011-07-25 Thread burnbrain
Dear All developers,

Hello, I have some problem to use
com.android.server.status.AnimatedImageView on Gingerbread.
It works fine until 2.2, but it doesn't run on 2.3.
I have found the cause that the AnimatedImageView doesn't exist in
2.3.

If so, what API can I use to indicate downloading instead of
AnimatedImageView?
And, How can I know removed non-public API in 2.3, 2.4 or 2.5 and so
on (on the future version)?
Shouldn't I use non-public API?

Please advice~
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-07-25 Thread RahulYD
@Carl

one of my friends is interested in buying the Xperia Mini/Xperia Mini
Pro
http://www.sonyericsson.com/cws/products/mobilephones/overview/xperia-mini?cc=gb&lc=en#view=overview
http://www.sonyericsson.com/cws/products/mobilephones/overview/xperia-mini-pro?cc=gb&lc=en#view=overview

will these phone support unlocking bootloader like Arc/Play/Neo?



On Jul 22, 4:53 pm, Carl  wrote:
> Mills, Ryan A,
>
> Thanks for posting, no news at the moment but we hear you. We're still
> investigating this. As soon as we have any news, we will publish it on
> Developer World,  http://www.sonyericsson.com/developer
>
> Regards
> Carl Johansson
> Sony Ericsson Developer World

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

2011-07-25 Thread Leo_China
hi all,
i want to develop a program with openCV,all steps for development is
done and .so lib is generated normally.
but when i run as this program in my emulator,it will exit after about
1s and the UI is not correct.My code snippet  lists below:

IplImage* imgIn = cvLoadImage("/sdcard/testimage.bmp");

if (!imgIn) return env->NewStringUTF("Error");

std::string filePath="/sdcard/result.bmp";
 jstring filePath1=env->NewStringUTF(filePath.c_str());
const char * resultpath=env->GetStringUTFChars(filePath1, 0);
cvSaveImage(resultpath,imgIn);

cvReleaseImage( &imgIn );

return env->NewStringUTF("ok");

when i eliminate the code about openCV,the program run normally.when i
add only cvLoadImage,the problem comes again.I get a blog about this
problem,it says that openCV will be run arm V7 in priority,but the
emulator based on arm V5,so need edit the android-opencv.mk.but this
blog is about openCV on Linux,i develop program in winXP+cygwin and i
cannot find the related .mk files.

i didn't test my program in a real device,someone said that the
program maybe can run normally in a real device if run abnormally in
emulator,sadly i don't have a real device in hand.

so is there anyone can tell me how can solve this problem?

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

2011-07-25 Thread Kieran Back
ok so i put the screen lock in to many times and it locked me out of
the phone and i cant remember  my google email account what do i do

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

2011-07-25 Thread Wan Cekang
Hello,
I'm new in android development.doing project to get sound input from
mic, store in sd as .wav and compare with the other sound in the sd
card.if the frequency is match, the popup will appear telling that the
sound is similar.the question is:
is it possible?
how can i get the frequency of this 2 audio file?
i have no idea on how to get the frequency for each file.please help
me.is anyone get the sample code for get the file, read it and get the
frequency?

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


[android-developers] Battery Low (Below 15%) limitations in usage

2011-07-25 Thread Larama Amaral
Good Afternoon all

I'm a new user of android, previous user of iphones... for now a good
experience, that as to be improved a lot (apple is light years ahead
in many subjects regarding android), but one of the most stupid things
that i've seen on the android phone is the limitation of usage of (for
example the camera, youtube and other applications when you are 15% in
batery or less)

I think that this limitation should be optional, that you could turn
on or of, i use my phone as i like and if i want to drain my battery
leaving the camera on, is my option
Yesterday i really need to take a quick picture when i was working and
i couldn't because of this nonsense limitation.

A really great shoot in the foot by google...


Best Regards

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

2011-07-25 Thread vishal singh
Dear Google Groups

I have download open source of CSipsimple.
and import code on ecllipse but it can not register on any network and
when i dialled number on application then it will show massage no any
network found and give
error like that



07-25 14:37:39.810: ERROR/AndroidRuntime(3338): ERROR: thread attach
failed
07-25 14:37:39.881: ERROR/jdwp(3345): Failed sending req to debugger:
Broken pipe (-1 of 27)
07-25 14:37:39.889: ERROR/jdwp(3345): Failed sending req to debugger:
Broken pipe (-1 of 27)
07-25 14:37:39.889: ERROR/jdwp(3345): Failed sending reply to
debugger: Broken pipe



Please help me

Thanks

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


[android-developers] Distinguish Declined call from Missed call

2011-07-25 Thread Petr Šimek
I need to watch if the phone user declined an incoming call.
I am using my own subclass od PhoneStateListener where in onCallStateChanged 
method I am testing the state on values of 
TelephonyManager.CALL_STATE_IDLE, CALL_STATE_OFFHOOK and CALL_STATE_RINGING.
Everything is working as I assumed except for one thing:

When the phone user declined an incoming call *behaves exactly the same* as 
missed call (ie. call is terminated by caller).

Is there any chance to distinguish these two types of terminated call?

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

2011-07-25 Thread Süleyman Çalık
Hi,

I want to pinch zoom images in a galley view. But when i handle onTouchEvent 
method, it prevents gallery scroll. I tried ImageView and Webview but both 
prevents gallery scroll if i override on touchEvent methods for zooming.

What must i do?

Thank you 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] Is there a special reason why hasVibrator wasn't introduced prior API level 11?

2011-07-25 Thread mainerror
Today I've documenting the Vibrator classes hasVibrator method on
Stack Overflow[1] and all was fine until someone mentioned that the
method was added with API 11[2]. I didn't notice since my API level
filter is set to 12.

I think it is quite a good question.

Were there no device without a vibrator prior Honeycomb? Is there a
special reason for the addition of that method?

[1]: 
http://stackoverflow.com/questions/6801574/how-can-i-find-out-if-a-device-has-a-vibrator
[2]: 
http://stackoverflow.com/questions/6801574/how-can-i-find-out-if-a-device-has-a-vibrator/6801611#comment-8075977

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

2011-07-25 Thread CTO Android Developer
Hi

Can an Android device receive (not send) audio from another android
device, using Bluetooth SCO ?
I could not determine a conclusive answer.

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] Ynt: Pinch-Zoom for Gallery.

2011-07-25 Thread Süleyman Çalık
I have the same problem, isn't there any advice?

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

2011-07-25 Thread Alexey Zakharov


Im trying to test my phonegap gps location application on Android Emulator.

I need to simulate W3C gps speed and heading on Android Emulator 
http://dev.w3.org/geo/api/spec-source.html.

Using DDMS i was able to setup kml path. However navigation.watchPosition 
only see latitude and longitude changes, heading and speed parameters are 
undefined.

Any ideas how to solve it?

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

[android-developers] Build Webkit For Android

2011-07-25 Thread Nabajyoti Goswami
Earlier i tried to build webkit for Android in Windows using Android
NDK. Then i learned that it could not be built in NDK,It could be
built only in platform build system. Then I installed Ubuntu 11.04 and
downloaded and compiled android source code successfully. But Now, I
am not getting any way to go for the next step. How to build
webkit ,or how to use the compiled codes.

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


[android-developers] Why up-scaling a smaller image into an ImageView does not work?

2011-07-25 Thread tiba
Hey all,

does anybody have a clue what I do wrong?

There's an image "guy.png" size 50x50 pixels and I'd like to get this
up-scaled.
Just for reasons of testing I tried to get it fitted with aspect ratio
maintained into an ImageView of 200dip(!) height like this:




But that just won't work. The image does not grow larger. The maximum
size is the original image size.

Does somebody know why?

Thanks in advance,
till

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

2011-07-25 Thread Mark Ayers
For the development cost, you could just wait till September and get the new
Archos tablet
that
starts at $270. It looks like it should be the fastest available tablet.

On Sat, Jul 23, 2011 at 12:49 PM, Mark Murphy wrote:

> On Sat, Jul 23, 2011 at 3:15 PM, Jimen Ching 
> wrote:
> > If you do not agree a VirtualBox solution is a more convenient
> > and efficient solution, then I don't think there's anything I can say to
> > convince you otherwise.
>
> If it would work, it might be. However, I doubt that it will work,
> since it does not solve the graphics acceleration problem. The mere
> fact that VirtualBox might expose hardware graphics acceleration
> capabilities does not mean that Honeycomb will be able to exploit them
> without significant work. I would expect that performance of a
> Honeycomb VirtualBox to perhaps be incrementally better than a
> Honeycomb qemu. Or, to put it another way, I would expect the ratio of
> pain between 2.3 and 3.0 to be roughly the same on qemu and
> VirtualBox. Furthermore, I recall suggesting this very solution to Xav
> at Google I|O and being told that it did not help.
>
> There is also the minor issue that VirtualBox is owned by Oracle. :-)
>
> Personally, I wish that the Honeycomb source code had been released,
> specifically so that the community could work on this sort of thing
> and see if we can come up with something.
>
> > Are you speaking for Google?
>
> Nope.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Image button

2011-07-25 Thread sagar sarkar
Please help me for the functionality of image button. Is it exactly
same as that of the button or not. I cant do the same with it.


Sagar

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

2011-07-25 Thread seal2002
Hello all,

I write an App with In App Billing, try to sell something in my app. I
tested the In App Billing function with the test account (with credit
card). But after 10 - 20 transactions, my account is blocked. I can't
buy any things more in my App. I try to check something but the
account still block.

This is somethings I already checked.

My credits card still available.
In App Billing receive the pending code but I don't know why. (Maybe
it's problem in Google side ?)

If everyone know the problems, pls help me to solve 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] Error while Installing Android

2011-07-25 Thread Pankaj Sisodiya
Hi;

I am trying to Install Android on Windows 7. I downloaded
installer_r12-windows.exe from http://developer.android.com/sdk/index.html
& Installed "Android SDK Tools", i got SDK Manager. But in SDK Manager
when i select all Available Packages -->> Install Selected , i got the
following error

"Failed to fetch URL 
http://www.echobykyocera.com/download/echo_repository.xml/addon.xml,
reason: Server returned HTTP response code: 403 for URL:
http://www.echobykyocera.com/download/echo_repository.xml/addon.xml";

Then i unselected KYOCERA Corporation (http://www.echobykyocera.com)
under "Third Party Add-ons" & tried to install those, but error again

DONE. NOTHING WAS INSTALLED

Downloading Android SDK Platform-tools, revision 6
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Documentation for Android SDK, API 13, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 3.2, API 13, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 3.1, API 12, revision 2
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 3.0, API 11, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.3.3, API 10, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.2, API 8, revision 2
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.1, API 7, revision 2
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 1.6, API 4, revision 3
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 1.5, API 3, revision 4
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Samples for SDK API 13, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Samples for SDK API 12, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Samples for SDK API 11, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Samples for SDK API 10, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Samples for SDK API 8, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Samples for SDK API 7, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Google USB Driver package, revision 4
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Android Compatibility package, revision 3
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Google Admob Ads Sdk package, revision 3
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Google Market Licensing package, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Downloading Google Market Billing package, revision 1
Failed to create directory C:\Program Files\Android\android-sdk\temp
Skipping 'Google APIs by Google Inc., Android API 13, revision 1'; it
depends on 'SDK Platform Android 3.2, API 13, revision 1' which was
not installed.
Skipping 'Google APIs by Google Inc., Android API 12, revision 1'; it
depends on 'SDK Platform Android 3.1, API 12, revision 2' which was
not installed.
Skipping 'Google APIs by Google Inc., Android API 11, revision 1'; it
depends on 'SDK Platform Android 3.0, API 11, revision 1' which was
not installed.
Skipping 'Google APIs by Google Inc., Android API 10, revision 2'; it
depends on 'SDK Platform Android 2.3.3, API 10, revision 1' which was
not installed.
Skipping 'EDK 1.1 by Sony Ericsson Mobile Communications AB, Android
API 10, revision 1'; it depends on 'SDK Platform Android 2.3.3, API
10, revision 1' which was not installed.
Skipping 'Google APIs by Google Inc., Android API 9, revision 2'; it
depends on 'SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)'
which was not installed.
Skipping 'Google APIs by Google Inc., Android API 8, revision 2'; it
depends on 'SDK Platform Android 2.2, API 8, revision 2' which was not
installed.
Skipping 'Real3D by LGE, Android API 8, revision 1'; it depends on
'SDK Platform Android 2.2, API 8, revision 2' which was not installed.
Skipping 'GALAXY Tab by Samsung Electronics., Android API 8, revision
1'; it depends on 'SDK Platform Android 2.2, API 8, revision 2' which
was not installed.
Skipping 'Google APIs by Google Inc., Android API 7, revision 1'; it
depends on 'SDK Platform Android 2.1, API 7, revision 2' which was not
installed.
Skipping 'Google APIs by Google Inc., Android API 4, revis

[android-developers] Re: Build Webkit For Android

2011-07-25 Thread Nabajyoti Goswami
Hi,

Please dont publish the Question from this Email Address. This email is my
official email.
Can u redirect to my private email address:naba.gosw...@gmail.com

Thanking You
Nabajyoti Goswami

On Sat, Jul 23, 2011 at 1:33 PM, Nabajyoti Goswami  wrote:

> Earlier i tried to build webkit for Android in Windows using Android
> NDK. Then i learned that it could not be built in NDK,It could be
> built only in platform build system. Then I installed Ubuntu 11.04 and
> downloaded and compiled android source code successfully. But Now, I
> am not getting any way to go for the next step. How to build
> webkit ,or how to use the compiled codes.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Event handlers - 1. design time, 2. two different and not anonymous

2011-07-25 Thread Eran
Im new to the eclipse(Indigo) and android .
I do come from the Visual Studio 2010 and C#.
1. In the VS when i double clicking an event in the designer (like the
click of the Button class) the VS2010 create but itself the handler
method.
how can I do it in the eclipse?
2. the event handler registered in the designer(XML). is it possible
in here?
3. lets say I have 2 buttons, how do i set to different event handler
for each one of them, and not in the anonymous way?

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] Finishing .apk

2011-07-25 Thread Zafraan Ali
Hi is there anyone who can show me how to make a key for a .apk file
that I made with Dreamweaver CS5.5 and not Java/Eclipse please
somebody it would really 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] xml parsing using soap

2011-07-25 Thread Ravindra

 Hello,
  I want to get soap reponse from the  url but Now when i am
executing my file then in output window(immulator) soap responce is
generated like this...

anyType{schema=anyType{element=anyType{complexType=anyType{choice=anyType{element=anyType{complexType=anyType{sequence=anyType{element=anyType{};
element=anyType{};
element=anyType{};};};};};};


So,i think there is something wrong...so...please give me some
guidence about this and tell me how to parse from this soap
responce...I am waiting for your replyThanking you


Ravindra Dangar

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

2011-07-25 Thread Oguz
Hi,

Could you find a solution for HTTP Live Streaming. I'm also trying to port http 
live streaming to Android 2.2 and using StageFright but it has no documentation 
and hard to understand.

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] Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-25 Thread Sebo
Hello All,

Here is my Problem, I am trying to safe an image (1280x800) into the
memory and I am running into some timing issues Meaning I want to
get it done As fast as possible wihtout losing the image sizing and
crispness I had been trying to resolve this problem for last
couple of days and I am running always to gotchias (The final
destination of the Image I want it to be in the SDCARD)

1.  I tried writing directly an image to the SD-CARD and it took about
about 180 msec
2. I tried writing to internal cache memory first (160msec) and then
copying using the FileChannel the image to SDCARD (4msec)

Does anyone know what would be even faster?
If there is no faster way to do this, that is fine, but I just want to
make sure that I visited all of the possible ways.

Thank you all for your help ahead of time.

Thank you and Best Regards,


Sebo
--- I eat droids for Breakfast

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

2011-07-25 Thread mwllace
I'm new to Android and I'm a front end designer. Im trying to get the
Android menu buttons to open a new activity using a case statement to
specify the activity. The activity works when I set it to any other
button in the App. The menu shows up when the hard menu button is
pressed, but they will not link to the specified Activity. I'm stuck
and I know I'm overlooking something simple. Can anyone help?

The code:



@Override
 public boolean onCreateOptionsMenu(Menu menu) {

menu.setQwertyMode(true);
menu.add(0,MENU1, 0, 
R.string.about).setIcon(R.drawable.icon);
;
menu.add(0, MENU2, 0, 
R.string.usage).setIcon(R.drawable.icon);
;
return true;
}


 public boolean OnOptionsItemSelected(MenuItem item){
 switch (item.getItemId()) {
 case MENU1:

 Toast.makeText(getApplicationContext(),
"About  was clicked.",
 Toast.LENGTH_SHORT).show();

 Intent intent = new Intent(XActivity.this, 
AboutActivity.class);
 startActivity(intent);


 return true;
 case MENU2:
 finish();
 return true;


 }
 return false;
 }

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


[android-developers] Turning off all of the APPS running in the background or setting the highest priority on my APP!!!

2011-07-25 Thread Sebo
Hello All,
Quick question, do you know if there is a way to turn off any APPS
that run in the background (e-mail/GPS...), so my application while it
is running won't be interrupted at all(Except for the OS of
course)?.   BOTTOM line the following is what I would like to do:
1. As soon as my APP Enters, it would turn off the other background
APPS/Services/Tasks (Except for OS) from running.
2. Perform operations without being interrupted
3. On the exit, the APP would re-enable all of those apps to run?

OR is there a way to tell when my application starts that my APP is
the highest prioiryt in the whole system?  I tried setting my
Acitivity prioity (In the Manifest) to the highest possible and that
didn't work that well.

Please let me know if you have any suggestions..

I greatly appreciate it.



Sebo
-- DROIDS for LUNCH... ANyone?

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

2011-07-25 Thread khushi fairy
I am a student and I need to develop a simple biological mobile
application in Android, which will perform few very simple tasks for
DNA and Protein Sequences.

I have tried to develop the .XML pages in Android; I am using Eclipse
Helios. I also have developed the DNA and Protein “.Java” files in
which the functions are present to perform the tasks. The problem I am
facing is that I have no idea how to link the interface or .XML file
to the code and how can I call those .Java files?

Kindly help me out, I have very little time left.

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] Help! Creating really simple app!!

2011-07-25 Thread amankh...@hotmail.co.uk
I would like to make an app, where you type into a text box a phone
number and then the app will check if that number is in the contacts/
phonebook, and if it is return the contact name to another text box.

Can someone give me the code to this i know it has something to do
with ContactsContract.PhoneLookup but i cannot find any tutorials/
anything on the internet about 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] Mobile development contest

2011-07-25 Thread Alex Willen
Hi Android Developers,

Apologies for the shameless self-promotion, but my company, Box, is
holding a mobile development contest in which we're giving away
$50,000 in cash and prizes, as well as two pitch meetings with Draper
Fisher Jurvetson. We'd love to have any of you participate - you can
find all the relevant info at www.box.net/devchallenge.

Thanks,
Alex Willen

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

2011-07-25 Thread paulkinzelman
I'm just starting learning the Android development environment, managed to 
get Hello World going...

However, the emulator window on my Vista display is larger than the display, 
some of it extends off the bottom of the screen. The tutorial doesn't say 
anything about how to fix that, and it looks like I can't drag the corner of 
the emulator screen to change the size. Is there a way to make the emulator 
window smaller? I realize that might affect the app interaction with the 
screen, but it seems there should be a way to fix this.

Also, I ran across a major stumblingblock on the tutorial page:
http://developer.android.com/resources/tutorials/hello-world.html
in that if you install the sdk in the default (under c:\program files) the 
emulator won't run because of the space. Fortunately a quick search turned 
up others that had the same problem. Seems the tutorial should warn about 
this, is there some way to report this to somebody to fix the tutorial? 
Other than a couple of items, though, the tutorial so far has been 
spectacular, thanks!

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

[android-developers] RE: google mapsapi

2011-07-25 Thread jagadeesh
Hi 

I want to display a map with co-ordinates 2 direction using

Source and destination I can able to display the map in mobile now I want to
show the direction can any one please guide me for right direction 

 

 

Thanks

Jagadeesh

 

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

2011-07-25 Thread Laurent Sebag
Hi,

I have a question regarding drawable resources on Honeycomb. I work on
a Motorola Xoom and I develop an application in which I want to show
the installed applications icons in the same size as the Launcher app
does (72x72px).

As far as I understand the Motorola has a 10" 160dpi screen making it
mdpi and xlarge.
So when I use the PackageManager to fetch the Bitmaps, they come in
48x48px instead of 72x72px which seems normal since the PackageManager
returns me the drawables contained in the res/drawable-mdpi of each
apps.

The Launcher homescreen application on Honeycomb seems to be able to
fetch the hdpi icons of apps to display them. What mechanism does it
use? Can I do the same on my app?

Kind Regards
Laurent

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

2011-07-25 Thread deveLoper
Hi,
I need to add some of my buttons programmatically since the titles are
coming from a database that may change. The buttons are being add
fine, but are not clickable. I am using a custom background for the
buttons, but I am using the same background for some button I am using
from xml and they work find. If I add the line
countybutton[i].setFocusableInTouchMode(true); , the button can focus,
but doesn't click. I also tried to set it clickable, but it didn't
work. Here is my code:

res = getResources();

button_background = res.getDrawable(R.drawable.custom_button_gray);
context = getApplicationContext();
float scale = context.getResources().getDisplayMetrics().density;



for(int i = 0; i < county.size(); i++){
countybutton[i] = new Button(this);
countybutton[i].setText(county.elementAt(i));
countybutton[i].setBackgroundDrawable(button_background);
countybutton[i].setLayoutParams(new 
LinearLayout.LayoutParams((int)
(85*scale),
LinearLayout.LayoutParams.FILL_PARENT));
countybutton[i].setTextColor(Color.WHITE);
countybutton[i].setTextSize(13 * scale);
countybutton[i].setOnClickListener(listener);
county_linear.addView(countybutton[i]);

}

listener = new OnClickListener(){

@Override
public void onClick(View v) {
Log.d(TAG, "a button was clicked");
}

};


any suggestions?

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

2011-07-25 Thread Alexandra Kulik
Sometimes in the Android SDK Manager appear problems with updating the
installed package or with installing new packages and you can get
error: "Failed to fetch URL 
http://www.echobykyocera.com/download/echo_repository.xml/addon.xml,
reason: Server returned HTTP response code: 403 for URL:
http://www.echobykyocera.com/download/echo_repository.xml/addon.xml";

There are the several methods that maybe can help you:

1. Start SDK Manager with administrator privileges
(In Windows right click on "SDK Manager.exe" and select "Run as
Administrator").

2. Maybe you need select HTTP instead of HTTPS
(Go to "Settings" and select "Force https:// ... sources to be
fetchign using http:// ...").

3. If you have proxy-server you must specify it
(Go to "Settings" and insert your HTTP Proxy Server and HTTP Proxy
Port in appropriate cell).

4. Disable all antiviruses and firewalls or add Manager to the list of
exception.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] My service never runs more than few ours while other services run for days

2011-07-25 Thread scmailon
Hi there!

I am trying to do a (remote) service that holds a TCP connection open
to receive notifications (after the activity is closed), but it seems
that Android restarts the service every few hours. It could be 1 or it
could be 3, but it never runs for much longer.

Looking at my device I can easily see 7 services that have been
running for more than 78 hours!!!

Could this be related to a memory leak on my service?
   - Note: I have never seen it holding more than 10 MB

Could it be related to a crash?
   - Logs do not show any exception, but I might be missing some...,
is there any way of making sure I do not miss any exception?

Any idea suggestion is very wellcome :)

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

2011-07-25 Thread DB12
Howdy, I searched for about 30 minutes to see if anyone had the same
issue but couldn't find anything.

I have a custom dialog I created with a relative layout, when the user
clicks on a button it brings up the dialog just fine normally.  I
added a few buttons to the dialog layout and this is where the trouble
begins. For some reason when I add an id to the third button, my I get
a runtime exception/force close dialog when my app starts up.  If the
third button has no id, the app works fine.  The other two buttons
already have id's and work great.
so in summary...

this layout works fine

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






and this one gives me a force close runtime exception when my app
starts

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





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


[android-developers] What is mobile boardband sim card pin number?

2011-07-25 Thread Clement Yuan
The mobile broadband device 'SAMSUNG Android' requires a sim pin code
before it can be used

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

2011-07-25 Thread kai
Hi all,

Is there a way to query what media format is supported on a particular
device running android (1.6+)?

For example, I would like to know determine whether a device is
capable of playing H.263 and/or H.264 media.
Then serve the best quality video to the user.


Thanks,
Allen

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

2011-07-25 Thread 飞雪无情
你可以用b_t 的方法试试,android:scaleType="fitXY"
让图片填充你的ImageView。。如果还是不行的话,试着设置ImageView's width and height

2011/7/22, b_t :
> How do you mean? Simple call setBackgroundResource on View with a 9-
> patch image.
>
> On júl. 22, 14:34, arun kumar  wrote:
>> how to make background image as nine patch...can u guide me.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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