[android-developers] Re: Error while Installing Android

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

On Jul 24, 10:28 am, Pankaj Sisodiya pankajsisod...@gmail.com 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 Platform Android 2.2, API 8, revision 2' which
 was not installed.
 Skipping 

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

2011-07-26 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: Curious NPE

2011-07-26 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


[android-developers] Re: For a good time...

2011-07-26 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 hack...@android.com 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: KeyEvent ACTION_DOWN + ACTION_UP fire immediately

2011-07-26 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 shinhalsa...@gmail.com 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: Map point reload

2011-07-26 Thread gjs
Hi,

You are welcome!

Regards

On Jul 26, 10:18 am, JCC banr...@gmail.com 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 garyjamessi...@gmail.com 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 banr...@gmail.com 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


Re: [android-developers] Issue with screen layout in 3.2

2011-07-26 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:
https://lh4.googleusercontent.com/-lH5XPfOAvz4/Ti5eUQAYRrI/AAU/ZWdOxx97bFc/s400/vTN-HC31.jpg
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:
 
https://lh4.googleusercontent.com/-HO_W1Wni7dw/Ti5fw-D6SPI/AA8/YtFgJ__zyjg/s400/vTN-HC32cm.jpg
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):
 
https://lh3.googleusercontent.com/-_I6qIPYSzFA/Ti5gWoiq06I/ABI/G6oU3vkl7kU/s400/vTN-HC32.jpg
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:
 
?xml version=*1.0* encoding=*utf-8*?
manifest xmlns:android=*http://schemas.android.com/apk/res/android*
**package=*com.vectorcode.vTypeNotes*
**android:versionName=*0.8.0.0* android:versionCode=*10800*
uses-sdk android:minSdkVersion=*4* android:targetSdkVersion=*9*/
supports-screens android:largeScreens=*true* android:smallScreens=*true
* android:normalScreens=*true* android:xlargeScreens=*true*/
supports-screens
application android:icon=*@drawable/icon* android:label=*
@string/app_name*
activity android:name=*.VTnotes*
**android:label=*@string/app_name*
intent-filter
action android:name=*android.intent.action.MAIN* /
category android:name=*android.intent.category.LAUNCHER* /
/intent-filter
/activity
activity android:name=*com.vectorcode.vTypeNotes.prefs* android:label=*
Preferences*
/activity
/application
/manifest
 
 

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


[android-developers] Different between SDK and NDK

2011-07-26 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: Not able to find adb.exe

2011-07-26 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] Re: changing listview content in separate thread issue

2011-07-26 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 bashee...@gmail.com 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: Help! Creating really simple app!!

2011-07-26 Thread vovs
You can see this tutorial: 
http://vsvydenko.blogspot.com/2011/06/using-contact-picker-getting-phone-and.html

Hope, it helps You!

On Jul 22, 10:20 pm, 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


[android-developers] Capture Screen Programmatically?

2011-07-26 Thread Duygu Kahraman
Hi Everyone;

I want to screenshot my current screen and store SDCard.İ dont want to
use ddms screen capture.when click to ok button screen capture and
store it sdcard .

How can i do that programmatically?

Any code snippet or referance?

Please Help Me.

THX.

Duygu Kahraman

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

2011-07-26 Thread Marcin Orlowski
You must be rooted on most devices to get access to /dev/fb.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

Re: [android-developers] Android 2.3.3

2011-07-26 Thread Marcin Orlowski
This is developer forum not not HTC support board. Contact HTC support

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*Groups Android Developers group.

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

Re: [android-developers] Re: Film Use of Android Device

2011-07-26 Thread Marcin Orlowski
On 26 July 2011 00:47, lbendlin l...@bendlin.us wrote:

 If you have a rooted phone and a large SD card  you could run a background
 service that grabs the /dev/graphics/fb0  raw images and stores them for
 later conversion. Or you convert it on the fly to png - but that might
 stretch it already.


ShotMe app does that. Not 30fps but useable.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*

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

[android-developers] ninepatch tool

2011-07-26 Thread arun kumar
i want to make .png image as ninepatch image...
where will be the nine patch tool availablei right clicked on the
project and chosse android tools...(but here no nine patch tool is
available)i want the loction of the nine patch tool

thank you
arun

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

2011-07-26 Thread Duygu Kahraman
I am new android.Can you explain that what can i do?

Means it is not possible?

THX.

Duygu Kahraman

2011/7/26 Marcin Orlowski webnet.andr...@gmail.com

 You must be rooted on most devices to get access to /dev/fb.

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *


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


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

2011-07-26 Thread Raghav Sood
it is in your sdk under the tools directory.
On Tue, Jul 26, 2011 at 1:24 PM, arun kumar arun.kata...@gmail.com wrote:

 i want to make .png image as ninepatch image...
 where will be the nine patch tool availablei right clicked on the
 project and chosse android tools...(but here no nine patch tool is
 available)i want the loction of the nine patch tool

 thank you
 arun

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

[android-developers] Re: starting service from launch icon

2011-07-26 Thread kamiseq
that works 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] Enabling root permissions/functioanlities from the Android application or a folder in Android filesystem with default Permission

2011-07-26 Thread s.rawat
HI all Again,
I am makaing an application which performs the memory(file read write edit
modify) and cpu(executing comples alogortihms of mathematics) opeartions
also similiarly I am doing the I/O operations on the device memory(file
write read on sqlite DB).I want the root permission for copyingm
certain files on the memory and IO (test files) for that I am doing push
commands at the adb shell and doing chmod to a particular directory (/data)
 where Iam copying the tets files.This is happening in root mode only , so I
am doign this for two pruporses :

*(1) Enabling the read write permission on the device memory and for IO
operation*
*(2) for producing the log files at the end which will get copied on the
device memory.*

But for this I Have to manually to it on the shell.To automate it I ahve
written a script and trying to run it from the application level but since
it is running under application(user level context) I am not able to enable
to do it as I am not doing it on the shell as a root 9 as I was doing it
manually earlier).How do i get arround with it?How can i do it frmo the
application level?Or doing manually at the shell prompt is the only way I
can do it.I want it to automate so that user doesnt have to do this and he
simply run the android application which internally does this
opeartions(more root like operations, chmod, copying test file etc)

here is my script :

chmod 777 /data

adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile1
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile2
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile3
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile4
/data/myfolderonDevice/
adb push /my/workspace/myproject/jni/mymodule/data/myfolderonPC/mytestfile5
/data/myfolderonDevice/



I need above steps to be automated by the application wihtout doing it
manually.

 *Other way round for this problem is -- Is there any folder in the android
file system where i could create a database(sqlite) and do the file
operation(read write ) in this case I dont have to enable the chmod
permission .*



Plz assit, help, groan..

Rgds and Thanks in advance,
Saurabh



..pain is temporary.quitting lasts forever..

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

[android-developers] how to force restart activity from intent

2011-07-26 Thread jjoe64
hello.
my MainActivity has the lauchMode=singleTask

now I want to start the activity from a notification with special intent 
data.
in MainActivity#onResume I access the given intent data...

the problem is: When the activity already exists, and I click on the 
notification, the activity comes to foreground, but the method #onResume is 
not called and I cannot access the intent data.

I tried the flag FLAG_ACTIVITY_CLEAR_TASK and this works for honeycomb but 
not for gingerbread.

This is how I start the activity from notification:

Intent intent = new Intent();
intent.setClass(this, MainActivity.class);
intent.putExtra(triggerid, triggerid); 
startActivity(intent);


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

2011-07-26 Thread vovs
Hi, guys!
In my app I want to create icon from image.
So after first run app will open gallery and user must choose an
image.
Then I will resize it and will save to app-folder.
But how to can I set this png to icon?

result.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
Intent.ShortcutIconResource.fromContext(this, 
R.drawable.icon));

Here I must use icon from resource.
Is another way to set icon from image?

Thank.

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

2011-07-26 Thread Zsombor
I'd like to show a different fragment in a TabHost, for every tab. But
it seems that there's no easy way to do this. TabHost can only accept
A. Views or B. Intents that launch Activities when the user selects a
tab.

Going with A means that I have to initialize every fragment and load
them into container Views that are given to the TabHost. But I want
these fragments to load only when needed - when the user selects their
tab that is.

Going with B means that I load the fragments into separate Activities
for each tab. But I'd like the fragment to be able to reach the
original parent Activity, not just some shell Activity that hosts
them in a tab content.

Am I missing something? Is there a way to manage fragments with
TabHost properly?

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

2011-07-26 Thread Hareef
I am developing a wrapper for the service. So in that wrapper i am
doing the bindservice, onServiceConnected, and Unbindservice.

So that my client will just instantiate the wrapper and access the
AIDL method.

But i found there is a some delay for the service to bind. so in next
line if client access the AIDL method, getting the
NullPointerException.

Suppose if the client access the AIDL method later exactly after 20
msec, its working fine.

How to handle this situation?

Thanks in advance
Hareef



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

2011-07-26 Thread Hareef
I want to hide my app from Recent List.
Any idea what changes to do in the manifest file?

Thanks in advance
Hareef

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

2011-07-26 Thread Alok Kulkarni
Hi,
I want to write an application which backs up the default calendar on the phone.
My question is what all fields should i backup.Looking at the
Calendars /Events/EventsRawTimes/Instances/Attendees/Reminders/CalendarAlerts
 tables there are lots of columns .And according to manufacturer some
columns might be present or not.
So for say case 1 Backup from 1st Android and restore on same Android
and case 2  Backup from 1st Android and restore on 2nd Android

What are the minimum things if backed up are enough ?

Thanks,
Alok

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

2011-07-26 Thread Julius Spencer
Hi,

I'm planning on going down the path of making a SQLiteLoader.

The question I have is how do I access the LoaderManager.  I have a 
ListActivity and have the compatibility library set up, but can't figure out 
how to initialise my loader.

Regards,
Julius.


On 21/07/2011, at 5:10 AM, Mark Murphy wrote:

 On Wed, Jul 20, 2011 at 12:59 PM, Julius Spencer jul...@msa.co.nz wrote:
 The CursorLoader documentation describes itself as:
 A loader that queries the ContentResolver and returns a Cursor.
 
 Does anyone know if it's possible to use a CursorLoader for an application's 
 SQLiteDatabase?
 
 It should be possible to use the Loader framework. CursorLoader is for
 content providers. We'd need a SQLiteLoader for a local database.
 Writing that is on my to-do list, before I cover loaders anywhere in
 my books. Not quite sure when I'm going to get around to that,
 though...
 
 Do I have to make the database a Content Provider so I can provide a Uri?
 
 If you wish to use CursorLoader, yes.
 
 If I do, can a Content Provider be private to the application (ie. not 
 accessible to other applications on the device)?
 
 Yes. Make sure you have android:exported=false in the provider
 element -- by default, providers are exported.
 
 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy
 
 Android Training...At Your Office: http://commonsware.com/training
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Calendar Backup/Restore Related Guidance

2011-07-26 Thread Mark Murphy
On Tue, Jul 26, 2011 at 5:54 AM, Alok Kulkarni kulsu...@gmail.com wrote:
 I want to write an application which backs up the default calendar on the 
 phone.

If you wish to back up a user's Google Calendar, use the Google
Calendar GData API.

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] How to optimize the Service binding time?

2011-07-26 Thread Mark Murphy
Do not attempt to use the bound connection until onServiceConnected().
Period. Do not try to play timing games as you describe here.

On Tue, Jul 26, 2011 at 5:37 AM, Hareef toar...@gmail.com wrote:
 I am developing a wrapper for the service. So in that wrapper i am
 doing the bindservice, onServiceConnected, and Unbindservice.

 So that my client will just instantiate the wrapper and access the
 AIDL method.

 But i found there is a some delay for the service to bind. so in next
 line if client access the AIDL method, getting the
 NullPointerException.

 Suppose if the client access the AIDL method later exactly after 20
 msec, its working fine.

 How to handle this situation?

 Thanks in advance
 Hareef



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




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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Different between SDK and NDK

2011-07-26 Thread Mark Murphy
The SDK is for writing applications using Java. The NDK is for
extending an SDK application with libraries written in C/C++.

On Tue, Jul 26, 2011 at 2:56 AM, Perumss Naren peru2...@gmail.com wrote:
 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



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

Android Training in NYC: http://marakana.com/training/android/

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


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

2011-07-26 Thread Mark Murphy
On Mon, Jul 25, 2011 at 5:35 PM, erkangur erkangu...@gmail.com wrote:
 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.

No, sorry. Please respect your users and follow standard platform UX
conventions.

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

Android Training in NYC: http://marakana.com/training/android/

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


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

2011-07-26 Thread Mark Murphy
On Fri, Jul 22, 2011 at 8:31 PM, Sebo stomasze101...@gmail.com wrote:
 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)?

Fortunately, this is not possible.

 OR is there a way to tell when my application starts that my APP is
 the highest prioiryt in the whole system?

The foreground process is already the highest prioiryt [sic] in the
whole system.

   I tried setting my
 Acitivity prioity (In the Manifest) to the highest possible and that
 didn't work that well.

There is no Acitivity prioity (In the Manifest).

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] Info requested - android alarm

2011-07-26 Thread rao
Hi all,
I'm debugging suspend failure of honeycomb on a proprietary target
board.
I was seeing below print on my target board and getting woke up from
already started suspend process.
PM: Device alarm failed to suspend: error -16
After adding few prints in the alarm-dev.c I found that alarm_ioctl
function receives ANDROID_ALARM_SET for each and every minute.
Once that time is reached, alarm will be cleared and again set for
next minute.
I really did not understand why this code is needed and also from
where is it done?
Can some one plz help me?
thanks,
Venu

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


Re: [android-developers] How can I know removed non-public API in Gingerbread

2011-07-26 Thread Mark Murphy
On Mon, Jul 25, 2011 at 12:25 AM, burnbrain burnbrai...@gmail.com wrote:
 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?

Hunt around, find the source code for it, copy it into your project
(after refactoring it into your own package), and use it in accordance
with the Apache License 2.0.

 And, How can I know removed non-public API in 2.3, 2.4 or 2.5 and so
 on (on the future version)?

You don't know.

 Shouldn't I use non-public API?

You should not use a non-public API.

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] ListView within ListView

2011-07-26 Thread rambabu mareedu
Hi to alli want to usr ListView with in ListView .for this iam
using SetOnClickListner for ListView but its not working...can anyone
tell me how it si possible with example...

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

2011-07-26 Thread Mark Murphy
On Tue, Jul 26, 2011 at 7:21 AM, rao venubyravar...@gmail.com wrote:
 I'm debugging suspend failure of honeycomb on a proprietary target
 board.

There is no publicly-available source code for Honeycomb at this time.

 I was seeing below print on my target board and getting woke up from
 already started suspend process.
 PM: Device alarm failed to suspend: error -16
 After adding few prints in the alarm-dev.c I found that alarm_ioctl
 function receives ANDROID_ALARM_SET for each and every minute.
 Once that time is reached, alarm will be cleared and again set for
 next minute.
 I really did not understand why this code is needed and also from
 where is it done?

Step #1: Wait a few months for the Honeycomb source code to exist

Step #2: Visit http://source.android.com

Step #3: Click on the Community tab

Step #4: Choose a relevant Google Group for your question

Step #5: Confirm that you have indeed followed Step #1

Step #6: Ask your questions on the group you choose in Step #4

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] ListView within ListView

2011-07-26 Thread Mark Murphy
On Tue, Jul 26, 2011 at 7:26 AM, rambabu mareedu
rambabu.mare...@gmail.com wrote:
 Hi to alli want to usr ListView with in ListView .for this iam
 using SetOnClickListner for ListView but its not working...can anyone
 tell me how it si possible with example...

This is not possible AFAIK. Please look at ExpandableListView, as it
might solve your problem.

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] ListView within ListView

2011-07-26 Thread rambabu mareedu
ThnkQ Sir.iam from India sir...i hav seen ur android books its very
understandable...nice to meet u sir...

On Tue, Jul 26, 2011 at 4:28 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Jul 26, 2011 at 7:26 AM, rambabu mareedu
 rambabu.mare...@gmail.com wrote:
  Hi tnio alli want to usr ListView with in ListView .for this iam
  using SetOnClickListner for ListView but its not working...can anyone
  tell me how it si possible with example...

 This is not possible AFAIK. Please look at ExpandableListView, as it
 might solve your problem.

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

 Android Training in NYC: http://marakana.com/training/android/

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


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

2011-07-26 Thread New Developer
could you please give me more of a help
my knowledge and use of adb is weak

Thanks in advance

On Jul 25, 2011, at 11:23 PM, Kevin TeslaCoil Software wrote:

 The adb user also has access to /dev/graphics/fb0 so theoretically you
 could do this with a shell script over adb instead of rooting the
 device.
 
 On Jul 25, 5:47 pm, lbendlin l...@bendlin.us wrote:
 If you have a rooted phone and a large SD card  you could run a background 
 service that grabs the /dev/graphics/fb0  raw images and stores them for 
 later conversion. Or you convert it on the fly to png - but that might 
 stretch it already.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Calendar Backup/Restore Related Guidance

2011-07-26 Thread Alok Kulkarni
Oh ok thanks a lot Mark..  :)

On Tue, Jul 26, 2011 at 4:45 PM, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jul 26, 2011 at 5:54 AM, Alok Kulkarni kulsu...@gmail.com wrote:
 I want to write an application which backs up the default calendar on the 
 phone.

 If you wish to back up a user's Google Calendar, use the Google
 Calendar GData API.

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

 Android Training in NYC: http://marakana.com/training/android/

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

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

2011-07-26 Thread Jim Graham
On Tue, Jul 26, 2011 at 07:32:35AM -0400, New Developer wrote:
 could you please give me more of a help
 my knowledge and use of adb is weak

adb -h

Later,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.com

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

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

2011-07-26 Thread Goutom
Hi Abhishek ,
Thanks for your reply.I am relatively new on Android.May I have tutorial
link on building custom spinner(extending
BaseAdapter)?

Again thanks.
Cheers
Goutom.

On Sun, Jul 24, 2011 at 1:50 AM, Abhishek Akhani
abhishek.akh...@gmail.comwrote:

 Its possible n for this you have to make a custom adapter (extending
 BaseAdapter) and an xml file for this view. and set this custom
 adapter as your spinner's adapter.

 On Jul 24, 12:11 pm, Goutom goutom.sust@gmail.com wrote:
  Hi
 
  Please open the image.In the image  Font Size is header and Standard
 is
  item.Header Font Size will always will be in the spinner but not in the
  item list.Item list just shows items.
  Is this possible to build this kind of spinner? if possible please guide
 me.
 
  thanks in advance.
 
  Regards
  Goutom
 
   spinneritem.png
  3KViewDownload

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

2011-07-26 Thread Lwe
emulator.exe 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


Re: [android-developers] what is thax

2011-07-26 Thread rambabu mareedu
your question is not clear...

On Tue, Jul 26, 2011 at 4:40 AM, Lwe luaisul...@gmail.com wrote:

 emulator.exe 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

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

2011-07-26 Thread Kumar Bibek
You haven't set it up correctly :)

Please be a little more detailed while asking a question.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 26, 2011 at 5:10 PM, Lwe luaisul...@gmail.com wrote:

 emulator.exe 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-26 Thread guruk
Now i am totally confused.
Mark does write... implement
Feign does write:  you cannot use in manifest.

anyhow.. i have a big prob now.
when i made my first app version i was able to write to sdcard easy.
it was compiled with 1.6  minsdk 2

now i compile with 2.2 minsdk2
and when i save to sdcard... it does save the filename.. but ZERO bytes.

can anyone of you guys give me a proper source on my above example
that i just can keep my code: out.write(data\n);

the init should just access the EXTERNAL SDCard and not the internal

is there a way to proof check he does write to the external?


here again my two inits i am playing now with


/*

// version 0.9

  File gpxfile = new File(root, DATABASE_TABLE + .myd);

 FileWriter gpxwriter = new FileWriter(gpxfile);

  BufferedWriter out = new BufferedWriter(gpxwriter);

*/

   // version 0.92

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);

// 

but BOTH compiles on 2.2 does create a file on my external SDcard.. but with

a later out.write(data\n); i get ZERO FileLength (no data in)


its quiet a mess always to save and than to put the sdcard out to look 
manual if something is saved in 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

Re: [android-developers] WRITE_EXTERNAL_STORAGE (not set, but i write to sdcard)??

2011-07-26 Thread Kumar Bibek
Try out.flush and out.close after you are done writing.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 26, 2011 at 5:15 PM, guruk ilovesi...@gmail.com wrote:

 Now i am totally confused.
 Mark does write... implement
 Feign does write:  you cannot use in manifest.

 anyhow.. i have a big prob now.
 when i made my first app version i was able to write to sdcard easy.
 it was compiled with 1.6  minsdk 2

 now i compile with 2.2 minsdk2
 and when i save to sdcard... it does save the filename.. but ZERO bytes.

 can anyone of you guys give me a proper source on my above example
 that i just can keep my code: out.write(data\n);

 the init should just access the EXTERNAL SDCard and not the internal

 is there a way to proof check he does write to the external?


 here again my two inits i am playing now with


 /*

 // version 0.9

   File gpxfile = new File(root, DATABASE_TABLE + .myd);

  FileWriter gpxwriter = new FileWriter(gpxfile);

   BufferedWriter out = new BufferedWriter(gpxwriter);

 */

// version 0.92

 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);

 // 

 but BOTH compiles on 2.2 does create a file on my external SDcard.. but
 with

 a later out.write(data\n); i get ZERO FileLength (no data in)


 its quiet a mess always to save and than to put the sdcard out to look
 manual if something is saved in 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

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

2011-07-26 Thread cellurl
I don't think the emulator reports speed and heading.
I always fake those two on the emulator.
For heading I use a thing in Location called bearingTo().

http://developer.android.com/reference/android/location/Location.html


-cellurl



On Jul 24, 1:57 am, Alexey Zakharov alexey.v.zaha...@gmail.com
wrote:
 Im trying to test my phonegap gps location application on Android Emulator.

 I need to simulate W3C gps speed and heading on Android 
 Emulatorhttp://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] Alert Dialog Custom View Shows Border

2011-07-26 Thread gaurav gupta
HI Everyone,
m using Alert Dialog to display a login form.
this login form contains one golden border.
M setting a custom view in this alert dialog.
but in Alert dialog one another cornor is also coming.
when i use this line

alert.setInverseBackgroundForced(*true*);



Cornor of alert Dialog becomes white and i set  it false, one transparent
border is coming.

i dont want to show any other border around my alert dialog.

Here is my code , please check.



LayoutInflater factory = LayoutInflater.*from*(*this*);

*final* View textEntryView = factory.inflate(R.layout.*speak_local*, *null*
);

Speak_convert_from=(Spinner)textEntryView.findViewById(R.id.*country_spinner
*);

Word_convert_from=(Spinner)textEntryView.findViewById(R.id.*
select_word_spinner*);

result_box=(EditText)textEntryView.findViewById(R.id.*result_edittext*);

conver_button=(Button)textEntryView.findViewById(R.id.*convert_button*);

Speak_convert_to=(Spinner)textEntryView.findViewById(R.id.*
convert_language_spinner*);

AlertDialog.Builder alert = *new* AlertDialog.Builder(*this*);

alert.setView(textEntryView);

alert.setInverseBackgroundForced(*true*);

AlertDialog *loginPrompt* = alert.create();

alert.show();



Kindly suggest me on this particular issue.

Thanks in Advance.

with Regards

Gaurav Gupta

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

2011-07-26 Thread Duygu Kahraman
Hi all;

i want to use ChoiceList in my project but when i choice first i want
to  go another screen.i find choicelist usage but i couldnt find call
every choice to  go to another screen?

How can i do that.

THX.

Duygu Kahraman

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

2011-07-26 Thread sourabh sahu
Can anybody please suggest me, How to implement payment proceecudres for
particular application.
Like Paid or free app.Through aaplication i want if some one want to
purchase full version of app.Please suggest me how to implement it.

Thanks
Sourabh

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

Re: [android-developers] How to optimize the Service binding time?

2011-07-26 Thread Mohd Hareef
Thanks for your reply Mark,

Actually my aim is the client app which is going to use this service, they
have to just instantiate the service wrapper in OnCreate() and call the aidl
method directly.

So i created the service wrapper in that way only.

May i know why there is a delay in calling 
ServiceConnection.onServiceConnected?

Thanks in advance
Hareef


On Tue, Jul 26, 2011 at 4:46 PM, Mark Murphy mmur...@commonsware.comwrote:

 Do not attempt to use the bound connection until onServiceConnected().
 Period. Do not try to play timing games as you describe here.

 On Tue, Jul 26, 2011 at 5:37 AM, Hareef toar...@gmail.com wrote:
  I am developing a wrapper for the service. So in that wrapper i am
  doing the bindservice, onServiceConnected, and Unbindservice.
 
  So that my client will just instantiate the wrapper and access the
  AIDL method.
 
  But i found there is a some delay for the service to bind. so in next
  line if client access the AIDL method, getting the
  NullPointerException.
 
  Suppose if the client access the AIDL method later exactly after 20
  msec, its working fine.
 
  How to handle this situation?
 
  Thanks in advance
  Hareef
 
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



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

 Android Training in NYC: http://marakana.com/training/android/

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

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

2011-07-26 Thread Adam Ratana
Do a search of this group, some techniques have been covered.

On Jul 26, 3m, Duygu Kahraman duygu.kahram...@gmail.com wrote:
 I am new android.Can you explain that what can i do?

 Means it is not possible?

 THX.

 Duygu Kahraman

 2011/7/26 Marcin Orlowski webnet.andr...@gmail.com



  You must be rooted on most devices to get access to /dev/fb.

  Regards,
  Marcin Orlowski

  *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
  handy...
  *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
  WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
  *Twitterhttp://webnetmobile.com/twitter/
  *

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

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

2011-07-26 Thread sourabh sahu
Hi All,

Please suggest me.If I change my database it should be updated to users.How
to implement this.

Thanks
Sourabh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-26 Thread guruk
many thanks for all your help.
i come closer now.
bellow my code ( i use flush and close)

when i SAVE to sdcard
and look with ADB shell into /sdcard
i see my file is written and data stored!

but ... lets say the user save to sd-card
remove the sdcard and put it into another device
the data is NOT saved.. only the filename.

so it looks its somehow cached and maybe later really written to sdcard.
but i do not see any way a user or i could know if its really written and
even if i know.. what should i tell the user...wait half an hour before you 
remove the sdcard?

now what ? :)

thx again
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

[android-developers] Re: A little help with layout params in code.

2011-07-26 Thread authorwjf
No responses so either my question stumped everyone or it was too
obvious for anyone to bother :)  Either way I finally got it to work
so if it saves anyone else 4 days of pouring over documentation here
is the code.

if (v.getId()==R.id.add_row) {
mRowCount++;
TableLayout table =
(TableLayout)findViewById(R.id.the_table);
TableRow row = new TableRow(this);
TextView tv1 = new TextView(this);
TextView tv2 = new TextView(this);
ImageView iv = new ImageView(this);
tv1.setText(Table row
#+Integer.toString(mRowCount));
tv1.setGravity(Gravity.LEFT);
TableRow.LayoutParams trp = new
TableRow.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT,Gravity.LEFT);
row.addView(tv1, trp);
iv.setImageResource(R.drawable.divider);
row.addView(iv, trp);
tv2.setText(Add more text here.);
row.addView(tv2, trp);
table.addView(row);
}

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


[android-developers] Listview with image, text and checkbox

2011-07-26 Thread Viral Brahmbhatt
Hi there,

I am trying to implement a listview with image, text and checkbox within it,
using baseadapter.


the problem is, let's say i have 20 items in list, so when i select the
first item checkbox, and scroll down the list, i can see the item #9 and #17
also get checked automatically.

can anyone pls help me to understand what is it doing?

-- 
*Regards,
Viral*

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

Re: [android-developers] what is thax

2011-07-26 Thread gaurav gupta
emulator.exe solution

On Tue, Jul 26, 2011 at 5:10 PM, Lwe luaisul...@gmail.com wrote:

 emulator.exe 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

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

[android-developers] Re: android:id

2011-07-26 Thread Dhruba Bhattacharjee
Please go through following URL

http://developer.android.com/resources/browser.html?tag=tutorial

It will be great help for you :)

If you want to control behavior of any particular component in an
activity, you have to find the component first by using id of that
particular component,for that you will be using
findViewById(R.layout.id) method.

And hence, you have to declare that id first inside a layout xml by
using android:id .

Have fun.


On Jul 22, 5:46 pm, adithya holla adithyaho...@gmail.com wrote:
 can anyone please explain what is the use of android:id and
 findviewbyid ..im still a beginner and dont exactly know how to start
 learning android programming..help 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] information about android softare

2011-07-26 Thread deepak gusain
Dear all android-developers,

I want to know or information about android software. android software is a
mobile software or now its possible to install in pc.

so please give me details about this software

thanks

-- 
Regards
Deepak Gusain
RHCSA - MCITP
M.no:- 9417248523

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

[android-developers] Re: How to set icon from image in gallery?

2011-07-26 Thread Matthew
I believe that the code you're looking for should be contained in this
article.

If you dynamically allocate the name of the icon resource and then
call the resource as the icon, it should work.

I'm a bit of a n00b and haven't tested this though...

http://coderzheaven.com/2011/02/dynamically-load-images-in-android-or-load-image-in-android-using-a-string-path/

Selincopf

On Jul 26, 10:04 am, vovs vov...@gmail.com wrote:
 Hi, guys!
 In my app I want to create icon from image.
 So after first run app will open gallery and user must choose an
 image.
 Then I will resize it and will save to app-folder.
 But how to can I set this png to icon?

 result.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
                                 Intent.ShortcutIconResource.fromContext(this, 
 R.drawable.icon));

 Here I must use icon from resource.
 Is another way to set icon from image?

 Thank.

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

2011-07-26 Thread Rikki
I am a newbie to android development. Kindly spare me if I ask wrong
questions.

I am developing a POI search for gas stations nearby the current GPS
location. Whenever my application starts, It should get the current
location and based on that run a POI search in the background and plot
them on the map.

I am using googleAPIs for displaying google map view. I have also find
the current location using location manager.

Now I want to get overlay information about gas stations from the
maps. I think this information is already stored on the map. Or in
case I am wrong, please correct me. I now want to plot the gas
stations on the map.

Any help on this will be appreciated. I might have said many things
wrong here but guide me through it.

Thanks in Advance!!!

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


Re: [android-developers] Re: Error while Installing Android

2011-07-26 Thread Rafael Vanderlei
Hi, I just passed through this. You must run SDK Manager as an administrator
then it should work just fine.

On Tue, Jul 26, 2011 at 3:11 AM, Parvesh Malhotra
parv...@impact-works.comwrote:

 Disable you antivirus and reboot system and then try..

 On Jul 24, 10:28 am, Pankaj Sisodiya pankajsisod...@gmail.com 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 

[android-developers] DategramSocket.receive returns after a long time

2011-07-26 Thread Heidi Zhou Nolan
I am implementing a UDP application on Android.

The problem I have is that, on the sender side of the UDP connection,
the sender sends around 2 packets every 40 milliseconds; the receiver
side of the UDP connection uses java.net.DatagramSocket.receive(...)
function to receive data over the network in a while loop. The
receiver receives 2 packets roughly every 40 milliseconds. While our
Android application is running, the internet browser is launched and
start downloading/retrieving webpage. The receive(...) function won't
return any data until the browser stop its downloading. I did a
measurement that the receive(...) function returns data after almost
700 milliseconds. It seems that all the packets to our application are
hold until the browser is done with its network activity.

I am looking for the solution to still receive data over the network
even there is other application sends or receive data over network at
the same time. It would be better if the solution can make our
application have higher priority in using the network.

Thank you in advance 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] Soft Keyboard

2011-07-26 Thread rym bourguiba
I am creating a virtual keyboard for android (which is no easy task)
I start with the example of soft keyboard in the official
documentation
I'm trying to do is change the keyboard from qwerty === Azerty when
I Left swipe, I can not, I do not know how, there is already a method
implemented in the class softKeyboard (SwipeLeft) but it did not seem
to work for me, someone has tried to work flow management on a
keyboard of android, I need your help déspèremment


PS: bourguiba.rym @ gmail.com is my gmail

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

2011-07-26 Thread aparna rani
hi to all i am implement the ui i want to add scroll to my ui how can
add

please help me
 thanks in advance.

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


[android-developers] Activities in Tabs

2011-07-26 Thread Kyle
I am creating an app which has 4 tabs. I have been following tutorials
like this one 
http://androidgenuine.com/?feed=rss2tag=tabhost-nested-activity-android
. That is how i set up my app, one main class that extends TabActivity
and 4 different tabs that extend ActivityGroup. so everytime i want to
add an activity to the tab i do something like this. This is not my
code its from the example.

Intent i = new Intent(this, ShowCity.class);
String city_name = (String)
getListAdapter().getItem(position);
i.putExtra(city_name, city_name);

// Create the view using FirstGroup's LocalActivityManager
View view = FirstGroup.group.getLocalActivityManager()
.startActivity(show_city, i
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();

 // Again, replace the view
FirstGroup.group.replaceView(view);

So by the looks of it, it creates a new Intent and makes it into a
View then replaces the tab view with this one. The problem is that
methods in the new Activity like Onback, onResume, and all the other
ones are not being called by the current activity in the tab. Those
methods get called by the tab itself. So the tab Onback, onResume ect.
will always be the same for each activity being shown on the tab. Is
there a way so those methods get called by the current activity being
shown, not the tab itself? Also on the back method there is a
problem.

// back
public void back() {
if(history.size()  0) {
history.remove(history.size()-1);
setContentView(history.get(history.size()-1));
}else {
finish();
}
}

it works but none of the activity get finish() or destroyed. So the
heap keeps on getting bigger as more activity are being called.


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


[android-developers] About com.android.monkeyrunner package

2011-07-26 Thread Awdhesh Jha
I can't find the package com.android.monkeyrunner. Without it I can't
work on the monkey device.
The errors are comming when I run my program which name is monkey.py

===
*sys-package-mgr*: can't create package cache dir, '/usr/share/java/
jython-2.2.1.jar/cachedir/packages'
Traceback (innermost last):
  File /home/awdhesh/Programs/Python Programs/monkey.py, line 2,
in ?
ImportError: no module named android
===
===
And the program is:

# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
#from com.Simple.Calculator.SimpleCalculatorActivity import *
device = MonkeyRunner()
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection(30)

# Installs the Android package. Notice that this method returns a
boolean, so you can test
# to see if the installation worked.
device.installPackage('awdhesh/bin/android-sdk-linux_x86/tools/
monkeyrunner.apk')

# sets a variable with the package's internal name
package = 'com.Simple.Calculator'

# sets a variable with the name of an Activity in the package
activity = 'com.Simple.Calculator.SimpleCalculatorActivity'

# sets the name of the component to start
runComponent = package + '/' + activity

# Runs the component
device.startActivity(component=runComponent)

# Presses the Menu button
device.press('KEYCODE_MENU','DOWN_AND_UP')

# Takes a screenshot
result = device.takeSnapshot()

# Writes the screenshot to a file
result.writeToFile('res/drawable/shot1.png','png')
===
Please send me the solution on my mail
awdheshkumar@gmail.com

Thanks in advance

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


[android-developers] how to switch ui from one to other

2011-07-26 Thread aparna rani
hi to all I am new to android development. in my application i
have three activities.
in 1st ui and second ui each ui  having one button  for  ui  calling
3rd.in 3rd ui having back button.when pressing back button it comes to
previous calling ui.
how can i implement.

please help me.

thanks in andvanced

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

2011-07-26 Thread June Pecherskaya
Hi!

I am currently working on an application that is supposed to configure
several devices running Android 3.0 and 3.1 connected to the
workstation. The task at hand requires that we remove all of the icons
on the desktop and put the needed ones on it instead. The only way
found so far was to imitate user events such as long tap on an icon
and dragdrop it to trash, but this is checked only on Motorolla Xoom
and goes wrong when the icons happen to be rearranged already.
One can install and remove packages using Monkeyrunner tool, but is
there any possibility to locate the icons on the desktop and operate
with them without hardcoding coordinates?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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.TelephonyManager]Why getNetworkOperator( ) is unreliable on a CDMA network

2011-07-26 Thread Chenlong Zhao
Hi :
   I need to fix a bug by getNetworkOperator( ), but when I
read the doc
   I found that return is unreliable on a CDMA network.So I
need more infos
   on it to help me to do a analyse.I need to know when it is
unreliable, and
   what causes it to happen?

  I 'm glad to here from you, 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] How to filter browser?

2011-07-26 Thread baran bartu demirci
Hi,

i made an application ,when the phone connected network,my application will
automatically start .

i want to block my browser and i want to filter  browser in  my application.

how can i do it?

Thanks for advices


Baran

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

[android-developers] OPENGL ES, EGL and NDK

2011-07-26 Thread Mickaël Gachon
Hello,
I begin with android apps and my aim is to create an application with
a 3D picture moving.
The code of this picture is already done in c++ by a friend. But I
have no idea how export his code in java correctly.
What I have done is take the helloGL2 sample in the ndk and modify the
c++ source code to draw my picture. To explain quickly, Instead of
draw the green triangle, my c++ code draw my picture and make it
rotate. It works but it is flickering.
I don't know how use the function eglswapbuffer(eglSurface,
eglDisplay). I just know that in a egl surface there are already
double buffering.
In this sample, how I can use this function? I have to use it in the c+
+ code or into the OnDrawFram() function in the renderer class?

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

2011-07-26 Thread Hubidubi
Hi

I've tried to parse an RSS feed with this library. I run into a
problem while I was trying to access the content of a feed item. The
api doen't provide any method to access the content part of the item
like other parts. Can I access content with it?


Hubi

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

2011-07-26 Thread Lasith Chandrasekara
I want to develop a program like button savior (which runs on top of a
another app and we can press menu, back buttons on top of a running
app). So user do not need to press hardware buttons to access menu,
back functionalities.

I want to do the same but to do it I have to run a app on top of
another app.

How can I do this?

-Lasith.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] CTS Test Failure Issue:: android.se​curity.cts​.PackageSi​gnatureTes​t : testPackag​eSignature​

2011-07-26 Thread chandra
Hi,

I am debugging the testPackageSignatures test case failure issue and
stuck after some analysis.
Any help/pointer will be helpful.

Logs and analysis are below

Thanks and Regards,
Chandra

Failure log:

07-19 16:13:32.729 I/TestRunner(  720):
junit.framework.AssertionFailedError: These packages should not be
signed with a well known key: [com.android.soundrecorder,
com.android.voicedialer, com.android.defcontainer,
com.android.launcher, com.android.quicksearchbox,
com.android.contacts, com.android.inputmethod.latin,
com.android.phone, com.qualcomm.wiper, com.android.calculator2,
com.android.htmlviewer, com.android.globaltime,
com.android.MultiplePdpTest, com.android.bluetooth,
com.android.providers.calendar, com.android.calendar,
com.android.browser, com.android.music, com.cooliris.media,
com.android.stk, com.android.qualcomm,
com.android.providers.downloads.ui, com.android.globaltimetests,
com.android.providers.userdictionary, android.tts, com.android.mms,
com.android.provision, com.android.providers.media,
com.android.certinstaller, com.qualcomm.location.qvtester,
com.qualcomm.permission.locapi, com.quicinc.CrashLogger,
touchscreen.test, android, com.quicinc.fmradio, com.android.settings,
com.android.providers.contacts, com.qualcomm.qx.neocore,
com.android.protips, com.qualcomm.alerter,
com.android.providers.applications, com.qualcomm.wifi.softap,
com.android.providers.drm, com.android.musicvis, com.android.term,
com.android.systemui, com.android.wallpaper.livepicker,
com.android.speechrecorder, com.android.development,
com.android.packageinstaller, com.android.wallpaper,
com.android.providers.telephony,
com.android.providers.subscribedfeeds, com.svox.pico,
com.android.camera, com.android.email, com.qualcomm.cabl,
com.android.spare_parts, com.android.deskclock,
com.android.magicsmoke, com.android.providers.settings,
com.android.preflight.media, com.android.providers.downloads,
com.qualcomm.privinit, com.android.server.vpn]
07-19 16:13:32.729 I/TestRunner(  720): at
junit.framework.Assert.fail(Assert.java:47)
07-19 16:13:32.729 I/TestRunner(  720): at
junit.framework.Assert.assertTrue(Assert.java:20)
07-19 16:13:32.729 I/TestRunner(  720): at
android.security.cts.PackageSignatureTest.testPackageSignatures(PackageSignatureTest.java:
62)
07-19 16:13:32.729 I/TestRunner(  720): at
java.lang.reflect.Method.invokeNative(Native Method)
07-19 16:13:32.729 I/TestRunner(  720): at
java.lang.reflect.Method.invoke(Method.java:507)




My Analysis:

I suspect it is because of not having permissions to the packages.
For ex: In the same logs, prior to running this test case, the
following log snippet tells us that there was no permissions in the
packages.

07-19 16:13:21.899 W/PackageManager(  146): Unknown permission
android.permission.READ_OWNER_DATA in package com.android.email
07-19 16:13:21.829 W/PackageManager(  146): Unknown permission
com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package
com.android.contacts
07-19 16:13:21.839 W/PackageManager(  146): Unknown permission
com.google.android.gm.permission.WRITE_GMAIL in package
com.android.settings

Hence I suspect packages without signatures(empty signatures) matches
as well known signatures. See code snippet under ./tests/tests/
security/src/android/security/cts/PackageSignatureTest.java


for (PackageInfo packageInfo : allPackageInfos) {
String packageName = packageInfo.packageName;
if (packageName != null  !
isWhitelistedPackage(packageName)) {
for (Signature signature : packageInfo.signatures) {
if (wellKnownSignatures.contains(signature)) {
 
badPackages.add(packageInfo.packageName);}
}
}
}

assertTrue(These packages should not be signed with a well
known key:  + badPackages,
badPackages.isEmpty());

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

2011-07-26 Thread pritamn
Hi All,
 
Can anyone provide me some reference to good 
links/references/articles/e-books on Radio Interface Layer(RIL)?
 
Thanks,
 
Pritam

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

2011-07-26 Thread Pramod Patil
i am asp.net Developer,i am interested about android technology, i would
appreciat if giude me some of basic




Thanks and regards,
Pramod Patil
+91 9175519791

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Easy way to send a Contact over Bluetooth (in standard format)?

2011-07-26 Thread Pierre
Hi, is there an easy way to send a Contant via Bluetooth, from code of
course? Preferably in a format not only other Android devices will
understand but as a wide selection of other brands as possible.
Thanks!

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


[android-developers] Re: Different between SDK and NDK

2011-07-26 Thread Vineet
n please also tell how to use ndk.

On Jul 26, 11:56 am, Perumss Naren peru2...@gmail.com wrote:
 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: How to perform Pinch zoom out or zoom in using MonkeyRunner

2011-07-26 Thread vinu
Karthik,

Call device.touch(x,y,'DOWN') event - this should send the touch down
event.
Call device.drag((x,y), (x+20, y), 0.25, 20) This event should drag
the neighboring pixel..

If the previous event is not cancelled then it should be able to zoom
the picture or whatever drawn on the surface...
I am not sure about it.. Will test and let you know.

Best Regards,
Vinayak Kolagi

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

2011-07-26 Thread Rikki
Hi I am a newbie to Android Development. So spare me if I ask wrong
questions

I am developing a POI search app for nearby gas stations according to
my current location. I am using googlemapview for displaying the maps
and using locationmanager to get current location. Now I want to add
overlays to the map so that I can search the gas stations. Can i get
this overlay information from google maps or i need to create the
overlays by myself. what I want is to read the gar station information
and plot them on the map.

Any help in this regard will be appreciated. I might have said some
things wrong here. Correct me whereever I am wrong.

Thanks in Advance.

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


[android-developers] Re: ninepatch tool

2011-07-26 Thread Seven
android-sdk-windows\tools\draw9patch.bat

On 7月26日, 下午3时54分, arun kumar arun.kata...@gmail.com wrote:
 i want to make .png image as ninepatch image...
 where will be the nine patch tool availablei right clicked on the
 project and chosse android tools...(but here no nine patch tool is
 available)i want the loction of the nine patch tool

 thank you
 arun

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] javax.net.ssl.SSLException: Not trusted server certificate

2011-07-26 Thread Seven
   Hi
   Just now , I  am tring  to  run a Test application about  GPS
Location on my phone  MOTO MB535 ,but  I am getting an error.


And  it is  the method .
LocationManager locationManager = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);
Location location = null;


if
(locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
{
 
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
2000,
0,
locationListener);
location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
}

else if
(locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER))
{
 
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
1000,
0,
locationListener);
location =
locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
}

else
{
return -1;
}

int returnCode = -1;
LocationModel model = Constant.Cache.getLocationModel();
if (null == model)
{
model = new LocationModel();
Constant.Cache.setLocationModel(model);
}

if (null != location)
{

model.setLatitude(location.getLatitude());
model.setLongitude(location.getLongitude());

String cityName = getCityName(location.getLatitude(),
location.getLongitude());
returnCode = 0;
model.setCityName(cityName);
}






   It is the debug message:
  07-26 14:04:25.767: WARN/FTOUTPUT(1367): javax.net.ssl.SSLException:
Not trusted server certificate
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
382)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
com.motorola.android.locationproxy.SuplDataService.createSslSocket(SuplDataService.java:
370)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
com.motorola.android.locationproxy.SuplDataService.openTlsSession(SuplDataService.java:
377)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
com.motorola.android.locationproxy.SuplDataService.handleMessage(SuplDataService.java:
141)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
android.os.Looper.loop(Looper.java:143)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
com.motorola.server.LocationProxyService.run(LocationProxyService.java:
343)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
java.lang.Thread.run(Thread.java:1096)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
java.security.cert.CertificateException:
java.security.cert.CertPathValidatorException: Could not validate
certificate: current time: Tue Jul 26 14:04:25 格林尼治标准时é—
´+0800 2011, expiration time: Fri Jul 22 05:33:36 格林å
°¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
com.motorola.android.locationproxy.SuplTrustManager.checkServerTrusted(SuplTrustManager.java:
135)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
377)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 7 more
07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
java.security.cert.CertPathValidatorException: Could not validate
certificate: current time: Tue Jul 26 14:04:25 格林尼治标准时é—
´+0800 2011, expiration time: Fri Jul 22 05:33:36 格林å
°¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
353)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
java.security.cert.CertPathValidator.validate(CertPathValidator.java:
202)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
com.motorola.android.locationproxy.SuplTrustManager.checkServerTrusted(SuplTrustManager.java:
131)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 8 more
07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
java.security.cert.CertificateExpiredException: current time: Tue Jul
26 14:04:25 格林尼治标准时间+0800 2011, expiration time: Fri
Jul 22 05:33:36 格林尼治标准时间+0800 2011
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:
190)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
349)
07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 10 more

 And now  I do not know why is it caused ? how Can I 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 

Re: [android-developers] resorce managment (tabbed application)

2011-07-26 Thread Steve KLOUVI
Hello Josh,

When you are using a tab layout activties are creating as needed a.k.a when
you display the corresponding tab. The activity attached associated with the
default tab will be launched at application startup.

Regards,
Steve K.

On Tue, Jul 26, 2011 at 7:56 AM, josh.bash avi410vik...@gmail.com wrote:

 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

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

2011-07-26 Thread Steve KLOUVI
Hello Perumal,

The Android NDK is a set of additional tools that you can use to add native
code to your android application. You can think of the NDK as the equivalent
of JNI for regular Java applications.

But don't be afraid to take a look at the documentation ;)
http://developer.android.com/sdk/ndk/overview.html

Regards,
Steve K.

On Tue, Jul 26, 2011 at 8:56 AM, Perumss Naren peru2...@gmail.com wrote:

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-26 Thread Vineet
hi, just go to android-sdk - platform-tools .
you will find the adb there.

On Jul 25, 8:33 am, Innuja dave.k.j@googlemail.com wrote:
 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


Re: [android-developers] javax.net.ssl.SSLException: Not trusted server certificate

2011-07-26 Thread Kumar Bibek
GPS has got nothing to do with Not trusted server error.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 26, 2011 at 11:50 AM, Seven zhangpa...@gmail.com wrote:

   Hi
   Just now , I  am tring  to  run a Test application about  GPS
 Location on my phone  MOTO MB535 ,but  I am getting an error.


 And  it is  the method .
 LocationManager locationManager = (LocationManager)
 context.getSystemService(Context.LOCATION_SERVICE);
Location location = null;


if
 (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
{

 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
2000,
0,
locationListener);
location =
 locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
}

else if
 (locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER))
{

 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
1000,
0,
locationListener);
location =
 locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
}

else
{
return -1;
}

int returnCode = -1;
LocationModel model = Constant.Cache.getLocationModel();
if (null == model)
{
model = new LocationModel();
Constant.Cache.setLocationModel(model);
}

if (null != location)
{

model.setLatitude(location.getLatitude());
model.setLongitude(location.getLongitude());

String cityName = getCityName(location.getLatitude(),
location.getLongitude());
returnCode = 0;
model.setCityName(cityName);
}






   It is the debug message:
  07-26 14:04:25.767: WARN/FTOUTPUT(1367): javax.net.ssl.SSLException:
 Not trusted server certificate
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
 382)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplDataService.createSslSocket(SuplDataService.java:
 370)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplDataService.openTlsSession(SuplDataService.java:
 377)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplDataService.handleMessage(SuplDataService.java:
 141)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 android.os.Looper.loop(Looper.java:143)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 com.motorola.server.LocationProxyService.run(LocationProxyService.java:
 343)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 java.lang.Thread.run(Thread.java:1096)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
 java.security.cert.CertificateException:
 java.security.cert.CertPathValidatorException: Could not validate
 certificate: current time: Tue Jul 26 14:04:25 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—
 ´+0800 2011, expiration time: Fri Jul 22 05:33:36 æ ¼æž—å
 °¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplTrustManager.checkServerTrusted(SuplTrustManager.java:
 135)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
 377)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 7 more
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
 java.security.cert.CertPathValidatorException: Could not validate
 certificate: current time: Tue Jul 26 14:04:25 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—
 ´+0800 2011, expiration time: Fri Jul 22 05:33:36 æ ¼æž—å
 °¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
 353)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 java.security.cert.CertPathValidator.validate(CertPathValidator.java:
 202)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplTrustManager.checkServerTrusted(SuplTrustManager.java:
 131)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 8 more
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
 java.security.cert.CertificateExpiredException: current time: Tue Jul
 26 14:04:25 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—´+0800 2011, expiration time: Fri
 Jul 22 05:33:36 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:
 190)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 

Re: [android-developers] WRITE_EXTERNAL_STORAGE (not set, but i write to sdcard)??

2011-07-26 Thread Mark Murphy
On Tue, Jul 26, 2011 at 8:14 AM, guruk ilovesi...@gmail.com wrote:
 but ... lets say the user save to sd-card
 remove the sdcard and put it into another device
 the data is NOT saved.. only the filename.

No, it should be. If you want to be completely safe, follow the
instructions here:

http://android-developers.blogspot.com/2010/12/saving-data-safely.html

and here:

http://stackoverflow.com/questions/4707664/ext4-fsync-situation-unclear-in-android-java

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] How to optimize the Service binding time?

2011-07-26 Thread Mark Murphy
On Tue, Jul 26, 2011 at 8:11 AM, Mohd Hareef toar...@gmail.com wrote:
 Actually my aim is the client app which is going to use this service, they
 have to just instantiate the service wrapper in OnCreate() and call the aidl
 method directly.

This will not work.

 So i created the service wrapper in that way only.
 May i know why there is a delay in calling
 ServiceConnection.onServiceConnected?

Because that is the way that it is written. bindService() is not a
blocking call, just like startService() is not a blocking call,
startActivity() is not a blocking call, sendBroadcast() is not a
blocking call, etc.

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Re: Different between SDK and NDK

2011-07-26 Thread Jim Graham
On Tue, Jul 26, 2011 at 01:07:05AM -0700, Vineet wrote:
 n please also tell how to use ndk.

Start with the documentation (someone posted the link in a
previous post).  Then work through examples while re-reading
the docs.

Later,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.com

Do not look into waveguide with remaining eye!

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

2011-07-26 Thread Perumss Naren
hi Steve K.,

thanks for your time and need to develop a sample project in NDK
i have c library for some functionality how can use that i downloaded

  http://www.cygwin.com/install.html --setup.exe what is the purpose
of that ? how to use that ?
can u give step by step process from basic



On Tue, Jul 26, 2011 at 1:18 PM, Steve KLOUVI steve.klo...@gmail.comwrote:

 Hello Perumal,

 The Android NDK is a set of additional tools that you can use to add native
 code to your android application. You can think of the NDK as the equivalent
 of JNI for regular Java applications.

 But don't be afraid to take a look at the documentation ;)
 http://developer.android.com/sdk/ndk/overview.html

 Regards,
 Steve K.

 On Tue, Jul 26, 2011 at 8:56 AM, Perumss Naren peru2...@gmail.com wrote:

 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


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

2011-07-26 Thread Rikki
I am receiving application stopped unexpectedly from the following
piece of code. Can someone help

package pkg.navigate;

import android.app.Activity;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.widget.TextView;

public class navigateActivity extends Activity {
/** Called when the activity is first created. */
TextView txtView = (TextView)this.findViewById(R.id.textview);

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

new CountDownTimer(3, 1000) {
public void onTick(long millisUntilFinished) {
txtView.setText(Waiting for + millisUntilFinished/1000
+  seconds);
}
public void onFinish() {
txtView.setText(Finished!!!);
}
 }.start();
}
}

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


Re: [android-developers] Application stop unexpectedly

2011-07-26 Thread Viral Brahmbhatt
first of all remove this line
 TextView txtView = (TextView)this.findViewById(R.id.textview);

and place it in onCreate() method, after this line.

 setContentView(R.layout.main);


On Tue, Jul 26, 2011 at 6:29 PM, Rikki rikki.a...@gmail.com wrote:

 I am receiving application stopped unexpectedly from the following
 piece of code. Can someone help

 package pkg.navigate;

 import android.app.Activity;
 import android.os.Bundle;
 import android.os.CountDownTimer;
 import android.widget.TextView;

 public class navigateActivity extends Activity {
/** Called when the activity is first created. */
TextView txtView = (TextView)this.findViewById(R.id.textview);

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

new CountDownTimer(3, 1000) {
public void onTick(long millisUntilFinished) {
txtView.setText(Waiting for + millisUntilFinished/1000
 +  seconds);
}
public void onFinish() {
txtView.setText(Finished!!!);
}
 }.start();
}
 }

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




-- 
*Regards,
Viral*

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

Re: [android-developers] Listview with image, text and checkbox

2011-07-26 Thread Simon Platten
I am doing something very similar its because the views in the listview are
re-used as you scroll them out of view they are re-cycled for the new views
coming into view.

You need to manage the change over in the getView method.


On Tue, Jul 26, 2011 at 1:33 PM, Viral Brahmbhatt viralbrahmbh...@gmail.com
 wrote:

 Hi there,

 I am trying to implement a listview with image, text and checkbox within
 it, using baseadapter.


 the problem is, let's say i have 20 items in list, so when i select the
 first item checkbox, and scroll down the list, i can see the item #9 and #17
 also get checked automatically.

 can anyone pls help me to understand what is it doing?

 --
 *Regards,
 Viral*

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




-- 
Regards,
Sy

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

[android-developers] Re: how to add scroll view in my android app.

2011-07-26 Thread vovs
You can put your layout into ScrollView /ScrollView

On Jul 26, 2:41 pm, aparna rani indela@gmail.com wrote:
 hi to all i am implement the ui i want to add scroll to my ui how can
 add

 please help me
  thanks in advance.

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


[android-developers] Camera Intents

2011-07-26 Thread Durgadoss Ramanathan
Hi,

Who is the receiver for this Intent inside the Camera.java ?
Intent: com.android.camera.NEW_PICTURE
inside method storeImage(...)

Also, the sendBroadcast is called without a 'context.'
In this case, what's the difference between calling just sendBroadcast and
context.sendBroadcast ?

-- 
Regards
Durgadoss

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

[android-developers] Re: Application stop unexpectedly

2011-07-26 Thread Rikki
Thanks it helped!! :)

I also want to add a message box at onFinish() method.
Something like an error message with a button on it.

On Jul 26, 6:02 pm, Viral Brahmbhatt viralbrahmbh...@gmail.com
wrote:
 first of all remove this line
  TextView txtView = (TextView)this.findViewById(R.id.textview);

 and place it in onCreate() method, after this line.

  setContentView(R.layout.main);





 On Tue, Jul 26, 2011 at 6:29 PM, Rikki rikki.a...@gmail.com wrote:
  I am receiving application stopped unexpectedly from the following
  piece of code. Can someone help

  package pkg.navigate;

  import android.app.Activity;
  import android.os.Bundle;
  import android.os.CountDownTimer;
  import android.widget.TextView;

  public class navigateActivity extends Activity {
     /** Called when the activity is first created. */
         TextView txtView = (TextView)this.findViewById(R.id.textview);

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

         new CountDownTimer(3, 1000) {
             public void onTick(long millisUntilFinished) {
                 txtView.setText(Waiting for + millisUntilFinished/1000
  +  seconds);
             }
             public void onFinish() {
                 txtView.setText(Finished!!!);
             }
          }.start();
     }
  }

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

 --
 *Regards,
 Viral*- Hide quoted text -

 - Show quoted text -

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


Re: [android-developers] Request for Guidence

2011-07-26 Thread Jim Graham
On Tue, Jul 26, 2011 at 05:15:14PM +0530, Pramod Patil wrote:
 i am asp.net Developer,i am interested about android technology, i would
 appreciat if giude me some of basic

Android apps are not written in basic.  See the developers guide for
more information.

Later,
   --jim

-- 
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.com

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


  1   2   3   >