[android-developers] ODBC connectivity in android

2009-06-10 Thread sachmi2

Hi,

As Android uses sqlite as it's embedded database, how it gives it the
ODBC connectivity.


Regards

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



[android-developers] 1dp=1/160 inch ?

2009-06-10 Thread Susan

In Android documentone, dp is one pixel on a 160 dpi screen.  So I
think 1dp=1/160 inch. Am I right?  Are they different in use?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cannot find provider package when using ProviderTestCase2 to test

2009-06-10 Thread Brett Chabot

I believe you'll get this error message if there is no Android app
with package name com.android.abc.providers installed on the device.
Without more context it will be difficult to diagnose your problem.
You can use this command adb shell pm list packages to retrieve the
list of packages installed on the device.

Are your tests included in the app with packageName
com.android.abc.providers, or is that a separate application?


On Mon, Jun 8, 2009 at 10:56 PM, abyorz0...@gmail.com wrote:

 hi,
 I want to build a test program to test my content provider. The  steps
 as follows:

 1.Create project and modify Matifest file

 instrumentation android:name=android.test.InstrumentationTestRunner
                     android:targetPackage=com.android.abc.providers
                     android:label=ABC Provider tests/

 2. New a ProviderTestCase2 class for testing

 public class ABCProviderTest extends ProviderTestCase2ABCProvider {

    public TaskProviderTest(Class ABCProvider  providerClass,
            String providerAuthority) {
        super(ABCProvider.class, com.android.abc.providers);
    }

 3. And I want to checkout this project can is runnable or not, but log
 shows

  Test run failed: Unable to find instrumentation target package:
 com.android.abc.providers

 I'm sure all name are correct, and  log only shows

 06-09 05:54:53.670: DEBUG/AndroidRuntime(2518): 
 AndroidRuntime START 
 06-09 05:54:53.670: DEBUG/AndroidRuntime(2518): CheckJNI is ON
 06-09 05:54:53.890: DEBUG/AndroidRuntime(2518): --- registering native
 functions ---
 06-09 05:54:53.899: INFO/jdwp(2518): received file descriptor 20 from
 ADB
 06-09 05:54:53.910: INFO/jdwp(2518): Ignoring second debugger --
 accepting and dropping
 06-09 05:54:54.630: WARN/ActivityManager(588): Unable to find
 instrumentation target package: com.android.abc.providers
 06-09 05:54:54.699: DEBUG/AndroidRuntime(2518): Shutting down VM

 Is there any problem?
 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: Could NOT Upgrade App in Market!

2009-06-10 Thread efan

Tried again and got error message The apk must be signed with at
least one certificate in common with the previous version.. This is
one step progress (better than no message at all) but still wrong
within the Android market app upgrade function, because,
1. I meant to try the old version apk file and got the same error
message as well.
2. I use jarsigner -verify -verbose -certs  command to verify both
the old version apk file and the new version, confirm that both signed
with the same certification key:
[certificate is valid from 5/5/09 5:26 AM to 4/29/34 5:26 AM]
The new version apk file can be found here: 
http://zz-doctor.googlecode.com/files/ZZ.apk

I can change  submit the new version as a new app, just not so
friendly to users installed old version. I like the votings I gained
but that's not so important compare to the existing users' feeling to
be ignored.

I would like to wait to the end of this week. If there was still no
any response from Android staff, I will have to say sorry to the
existing users.

On Jun 6, 6:48 pm, efan e...@efansoftware.com wrote:
 No error message after uploaded new version. But it still shows the
 old version (and old size). Tried several times, same problem.

 I managed to recover back my old key and signed the new version. (a
 little frustrated but I did make it recovered :))

 My app is Chinese Doctor Assistant (ZZ) [杏林書童(ZZ)] under Free --
 Applications -- Productivity.

 Thanks!

 P.S.-a. I have read this post but my case is different from it because
 I signed with old 
 key.http://groups.google.com/group/android-developers/browse_thread/threa...

 P.S.-b. Could Android / Google provide another better support way for
 registered developers beyond this forum? We were charged!

 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: Could NOT Upgrade App in Market!

2009-06-10 Thread efan

Mark, thanks for the information.
Yes I mean cannot be found in a search.
But the strange thing is that the search function still ok in Android
Market Help Forum. But same as here, no any Android staff response to
the post.
What happened/happening in Android/Goolge?

On Jun 8, 4:04 pm, Mark Murphy mmur...@commonsware.com wrote:
 e...@efansoftware.com wrote:
  Another post disappeared in the forum! Why???

  Could someone in Android/Google look into the problem?

 If by disappeared you mean can't be found in a search, Google
 Groups' search has been broken for a couple of weeks now. It's not just
 the Android groups.

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

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



[android-developers] Re: Retrieving data from a USSD command

2009-06-10 Thread PI9

Hello!
Have you got any results for your problem ?
Indeed i'd like to do the same thing but so far i haven't been able to
find any help on this matter
Thanks in advance.

On May 17, 10:48 am, Terence Eden terence.e...@gmail.com wrote:
 I want to call aUSSD(http://en.wikipedia.org/wiki/USSD) command and
 have the reply returned as a String.

 I can make the device automatically dial theUSSD- like so

 //
 String encodedHash = Uri.encode(#);
 Stringussd= * + encodedHash + 105 + encodedHash;
 startActivityForResult(new Intent(android.intent.action.CALL,
 Uri.parse(tel: +ussd)), 1);
 //

 This calls theUSSDand the result is displayed in an alert menu
 generated by the OS dialer.  There's no way that I can see to
 intercept theUSSDreply, prevent the dialer displaying it, and then
 use the result as a String.

 Essentially, all I really want to do is (pseudo code)
 //
 String ussdReply = call(*#105#);
 //

 I've tried creating an onActivityResult but it never receives
 anything from the startActivityForResult.

 So, does anyone know how I can use the reply within an application?

 Thanks

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

2009-06-10 Thread Terence Eden


On Jun 10, 8:36 am, PI9 ch.castel...@gmail.com wrote:
 Hello!
 Have you got any results for your problem ?
 Indeed i'd like to do the same thing but so far i haven't been able to
 find any help on this matter

No, sorry.  There are some USSD commands that you can intercept via
the API (call forwarding status etc) but there's no way to intercept a
generic response. Anyone know how to raise this as a suggestion to
Google?

If anyone wants, they can download the .apk  source of my USSD
application at http://shkspr.mobi/android/

Terence
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 go back to my apllication's home screen

2009-06-10 Thread Bullo#88

Exactly, the flag tells the system to finish all the activity that are
above your home screen activity in the stack

On 9 Jun., 22:04, MrSnowflake mrsnowfl...@gmail.com wrote:
 Does your sollution pop all other activities from the activityQueue?

 On Jun 9, 3:29 pm, Bullo#88 bulonce...@gmail.com wrote:

  I found the solution: the FLAG_ACTIVITY_CLEAR_TOP  flag has to be
  added to the intent
  E.g.
                         Intent intent = new Intent(this, your home
  screen class);
                          intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                          startActivity(intent);

  On 9 Jun., 14:44, Bullo#88 bulonce...@gmail.com wrote:

   Any suggestions please?

   On 9 Jun., 09:24, Bullo#88 bulonce...@gmail.com wrote:

My application is composed by several activities, I would like to give
the user the option to go back to the home screen of my application by
pressing a button on the screen.
At the same time I can't call the finish() function on activities
beetween the home screen and the currently visible activity because by
pressing the back button the user wil go back only one step and see
the previous activity.

Any idea on how to achieve this?
Is it possible to access the activity stack and e.g. close all the
activities it contains except the first one?

Thanks in advance,
Danilo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: httpclient multipart form upload

2009-06-10 Thread Urs Grob
Yes, I also couldn't find the jars for httpmime. I just created a jar from
the sources and included that in the project.

If anybody knows of some official jar, then I'd also like to know where I
could get it (also to stay up to date)

Thanks
-- Urs

On Wed, Jun 10, 2009 at 3:43 AM, Jason Proctor ja...@particularplace.comwrote:


 a kind soul has forwarded the jars on. community rules.


 --
 jason.software.particle

 


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



[android-developers] AppWidgetProviders and PackageManager.setComponentEnabledSetting

2009-06-10 Thread btm...@gmail.com

Hello all,

I am using PackageManager.setComponentEnabledSetting to turn off my
app widget provider receivers to limit what is shown on the widget
list. It seems my changes don't take into affect until I reboot my
phone though. Is there a way to somehow get the app widget list
refreshed or somehow tell Android to reload the package information?

Thank you!
-Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Can't get the softinput to show up programmatically

2009-06-10 Thread Bhargavi

Hi Jade,

  did u get a clue on this as iam also stuck with a similar
problem..please reply back if this issue is resolved. I too need the
softkeyboard to get displayed without touching the edit box in my
dialog .

Regards,
Bhargavi

On Jun 2, 8:53 pm, jade j...@edufone.com wrote:
 We have a dialog box that includes an EditText field. We'd like the
 softkeyboard to already appear in the dialog when the dialog opens
 instead of the user first having to touch the EditText field. I've
 read other posts and tried to incorporate the suggestions but there's
 something that I'm missing.

 Here's my code from onStart (you'll notice that I'm calling several
 similar methods because from the documentation it's not clear :

   protected void onStart() {
       editText.setFocusable(true);    // which of these should I call?
       editText.setFocusableInTouchMode(true);
       editText.requestFocus();
       editText.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,
 KeyEvent.KEYCODE_MENU));
       InputMethodManager imm = (InputMethodManager)
 this.context.getSystemService(Context.INPUT_METHOD_SERVICE);
       imm.showSoftInput(editText, InputMethodManager.SHOW_FORCED);

       //android.R.attr.windowSoftInputMode | stateAlwaysVisible); 
 //http://developer.android.com/reference/android/R.attr.html#windowSoft...
       imm.showSoftInputFromInputMethod
 (editText.getApplicationWindowToken(),
 InputMethodManager.SHOW_FORCED);
       super.onStart();
    }

 }

 It seems like I might be able to use this type of  code
 programatically (due to our project constraints, we build this dialog
 programatically instead of via an xml file):   //
 android.R.attr.windowSoftInputMode  stateAlwaysVisible); 
 //http://developer.android.com/reference/android/R.attr.html#windowSoft...

 Any pointers would be appreciated!

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

2009-06-10 Thread waterblood

Hello All,

  I just want to write a Java APP which need get instruction from a
console, and output information to console. I just found Log.v() can
output msg to console. But not known how to get input? If you know
that, please let me know how to do it. Thanks a lot.

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



[android-developers] requestWindowFeature(Window.FEATURE_LEFT_ICON); Icon is Empty

2009-06-10 Thread RTX

Hi

Im using

requestWindowFeature(Window.FEATURE_LEFT_ICON);
on a Theme.Dialog Activity

the title do move a bit to the right
but the icon is empty

i did set the avtivity icon


why is it happaning
what did i miss


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

2009-06-10 Thread skyman

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



[android-developers] Re: Handling an Intent without an Activity UI

2009-06-10 Thread mafro

I'm thinking I might need to write a service to handle my shortcut's
Intent. The main application could then raise a similar Intent to the
service to provide the same functionality whilst in the application.

Comments anyone?


On Jun 9, 11:34 am, mafro mafro...@gmail.com wrote:
 Hey list,

 I've searched for a few hours for a solution to this, so hopefully
 this isn't a repost :s

 I'm setting a shortcut on the Home screen which raises an Intent to my
 application - the problem is that I don't want to show my app, just
 run a little code and display a Toast notification.

 This must be possible - I just can't work out how.. Once I'm handling
 the shortcut Intent in onCreate() the UI has initialised and I get a
 little screen flicker if I then run my code and finish().

 Thanks for any input!
 mafro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 assign/get the ip address of an emulator ?

2009-06-10 Thread David Turner
http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking

On Tue, Jun 9, 2009 at 8:35 PM, sandy.andr...@gmail.com 
sandy.andr...@gmail.com wrote:


 I am running a server application on emulator. I want to connect to
 the server through a client application running on other system.
 How to get the IP of the emulator and what should be the http-proxy ip
 of the emulator.
 Any help is appreciable.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 to work on existing Android application in source code (Settings)

2009-06-10 Thread arun choudhary
Hi All I have an specific requirement to modify one of existing applications
in Android source code
Settings which is available in root dir  package  settings

I am opening the same in eclipse but it open with lot of referencing errors
could any one please tell me how to open an existing application and modify
that

Regards Arun
-- 
For pics Please visit

http://picasaweb.google.com/achoudhary2980

wish u all the best

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

2009-06-10 Thread Alistair.

I think this might be a bit out of date. I put the phrase android
draw polyline into Google.

http://www.anddev.org/route_-_improved_google_driving_directions-t1892.html

Al.

On Jun 10, 9:57 am, skyman krzysiek.bieli...@gmail.com wrote:
 Anyone?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] SDK 1.5 and mac osx problem

2009-06-10 Thread jphdsn

Hi,

I'm just buying a new macintosh and I want to install android.
Previously I used on my old mac, the Android sdk 1.1. So I install
Eclipse and Android sdk 1.5.

But when I import a project and build it, I have an error message :

[2009-06-10 12:20:09 - LunchList] The connection to adb is down, and a
severe error has occured.
[2009-06-10 12:20:09 - LunchList] You must restart adb and Eclipse.
[2009-06-10 12:20:09 - LunchList] Please ensure that adb is correctly
located at '/Developer/android-sdk-mac_x86-1.5_r2/tools/adb' and can
be executed.

The problem is that adb is correctly located... And when I restart the
problem is still the same.


Do someone knows an issue for that?

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] Is possible get notified when the user send an SMS or make a call

2009-06-10 Thread Monkiki

I've been searching the application permissions and I see no way to
make an app to enable getting notified when the user send an SMS or
make a phone call. How can I accomplish this task?

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] Running two activities on a single screen

2009-06-10 Thread Android Users
Hi all,
Can we run two activities on a single screen? if so, then could anyone give
me an as to how its done?

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: Is possible get notified when the user send an SMS or make a call

2009-06-10 Thread Mika

Hi,

You can do this by using content providers. You can listen to changes
in content://sms uri and for sent messages you go through content://sms/sent
and find the new sent messages. You can do similar thing with call log
or use PhoneStateListener and listen when the call is on hook, off
hook and idle.

-Mika

On Jun 10, 1:42 pm, Monkiki monk...@gmail.com wrote:
 I've been searching the application permissions and I see no way to
 make an app to enable getting notified when the user send an SMS or
 make a phone call. How can I accomplish this task?

 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: Unlocking screen after wake lock

2009-06-10 Thread Todd Sjolander

What a coincidence!  I just figured this out yesterday:

  KeyguardManager km = (KeyguardManager) getSystemService
(KEYGUARD_SERVICE);
  KeyguardManager.KeyguardLock keylock = km.newKeyguardLock(Your
label here);
  keylock.disableKeyguard();

Todd Sjolander

On Jun 9, 12:16 pm, mobilek...@googlemail.com
mobilek...@googlemail.com wrote:
 Hi,
 My app requires alerts at certain events, which are very likely to
 happen while the screen is off. It captures those event perfectly,
 however, I'm struggling to hide the T-Mobile screen lock after I've
 acquired wake lock from the PowerManager. I've tried broadcasting
 Intent.ACTION_CLOSE_SYSTEM_DIALOGS, however, that seems not to work.
 Any ideas of how to fix that? 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: Handling widget interface events

2009-06-10 Thread Teo
The service starts now, i forgot to declare it in the manifest... But still,
the onHandle function isn't triggered.. Trying to test the TwiterWidget
example i only got a fullscreen app, couldn't see the widget anywhere.
Anyway, i'm sure i'm missing some little thing, i just can't pinpoint it
:) As a suggestion, this stuff (explicit event handling inside your own
widget) should be included in official documentation, and maybe simplified
in the long-term since i find it very important.

On Tue, Jun 9, 2009 at 8:10 PM, Teo teomina...@gmail.com wrote:

 Hmm same behavior, for some reason it seems that the service doesn't even
 start...


 On Tue, Jun 9, 2009 at 8:01 PM, Mark Murphy mmur...@commonsware.comwrote:



  Thanks for the example, it cleared some things up. But i'm still trying
 to
  find the right PendingIntent to attach, with no success, nothing
 happens.
  I
  made a service after the same model, and my line now looks like this:
  rv.setOnClickPendingIntent(R.id.widgetLeft, PendingIntent
  .getActivity(context, 0, new Intent(context,
  WidgetService.class), 0));
 
  Nothing in the service gets launched according to the debugger...

 If nothing else, PendingIntent.getActivity() won't talk to a service. You
 probably want PendingIntent.getBroadcast().

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!



 



 --
 Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
 site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com
 GMT +2




-- 
Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com
GMT +2

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

2009-06-10 Thread onceaweek

I'd like to know how to update SDK or Applications through OTA?

Does Android support the update mechnism ?
If not,  an operator or a device manufacturer adds the functionality
for software update?

I guess 'com.android.updater' package may have something to do with
SDK update, but I'm not sure.

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

2009-06-10 Thread Mark Murphy

Android Users wrote:
 Can we run two activities on a single screen?

AFAIK, no.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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

2009-06-10 Thread Mark Murphy

onceaweek wrote:
 I'd like to know how to update SDK or Applications through OTA?

Questions regarding the operation of Android firmware are best asked on
a list pertaining to Android firmware:

http://source.android.com/discuss

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

Warescription: Three Android Books, Plus Updates, $35/Year

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

2009-06-10 Thread Mark Murphy

mafro wrote:
 I'm thinking I might need to write a service to handle my shortcut's
 Intent. The main application could then raise a similar Intent to the
 service to provide the same functionality whilst in the application.

I do not know if you can create home screen shortcuts that send
broadcast Intents. If you can, then register a BroadcastReceiver in your
manifest to catch some custom action, and set up your shortcut to send a
broadcast Intent with that action. If what you need to do takes only a
few seconds, you can do the work within the BroadcastReceiver;
otherwise, have the receiver call startService() to trigger some
IntentService to do the real work.

This seems terribly complex, compared to just giving the user a real
activity to work with, but, hey, it's your app... :-)

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

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: What is providerAuthority in constructor of ProviderTestCase2?

2009-06-10 Thread Mark Murphy

aby wrote:
 Hi,
 There is a parameter providerAuthority in ProviderTestCase2
 constructor. Does anyone know what is the providerAuthority means?Is
 the content uri of the provider?Thanks

http://developer.android.com/guide/topics/providers/content-providers.html

Scroll to the bottom, to the Content URI Summary section.

The authority is the piece after the scheme (content://) and before the
next slash. If this were an HTTP URL, you'd say the authority was the
Web site.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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

2009-06-10 Thread skyman

In current SDK there is no com.google.googlenav :(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Running two activities on a single screen

2009-06-10 Thread skyman

I think that that can be done using ActivityGroup, but I'm not 100%
shure (it can be a very dirty way).

--
Skyman

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



[android-developers] SDK 1.5 and Eclipse problem

2009-06-10 Thread jphdsn

Hi,

I'm just trying the SDK 1.5 with a new installation of Eclipse and the
eclipse plugin

When I import a project and run it, I have an error message :

[2009-06-10 12:20:09 - Lunc] The connection to adb is down, and a
severe error has occured.
[2009-06-10 12:20:09 - Lunc] You must restart adb and Eclipse.
[2009-06-10 12:20:09 - Lunc] Please ensure that adb is correctly
located at '/Developer/android-sdk-mac_x86-1.5_r2/tools/adb' and can
be executed.

The problem is that adb is correctly located... And when I restart
Eclipse the problem is still the same.


Does anyone know a solution of that problem?

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] help with MultiAutoCompleteTextView.

2009-06-10 Thread Saurav Mukherjee
hi all,

i have programmed for MultiAutoCompleteTextView. but the only problem i have
is that the constraint in my CursorAdapter is not recognizing single
characters, wen i enter more than 1 character of the word, i get the auto
complete list.

any suggestions.
tell me if i need to elaborate.

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: Getting driving directions from application

2009-06-10 Thread Alistair.

Perhaps some combination of

http://data.giub.uni-bonn.de/openrouteservice/
http://wiki.openstreetmap.org/index.php/OpenRouteService#ORS_.22API.22

But it's Europe only I'm afraid.

Al.

On Jun 10, 1:21 pm, skyman krzysiek.bieli...@gmail.com wrote:
 In current SDK there is no com.google.googlenav :(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Running two activities on a single screen

2009-06-10 Thread Android Users
Using ActivityGroup i can shift between two activities but updating only
some part of one activity (say a view) with the result of another activity
is where i am stuck up. Is this possible?

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

2009-06-10 Thread Mark Hansen

Has anyone had an error along the lines of (application) cannot be
installed on this phone., where the application name is in place of
(application).

This is on cupcake, I have my version minSdkVersion set to 3, and I've
had no problems prior to this new version.

Runs fine in the emulator, so I'm stumped?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Handling an Intent without an Activity UI

2009-06-10 Thread mafro

You're right it does sound terribly complex. Ill report back on my
findings for anyone else who has a similar problem.

Thanks for your input, Mark.


On Jun 10, 1:09 pm, Mark Murphy mmur...@commonsware.com wrote:
 mafro wrote:
  I'm thinking I might need to write a service to handle my shortcut's
  Intent. The main application could then raise a similar Intent to the
  service to provide the same functionality whilst in the application.

 I do not know if you can create home screen shortcuts that send
 broadcast Intents. If you can, then register a BroadcastReceiver in your
 manifest to catch some custom action, and set up your shortcut to send a
 broadcast Intent with that action. If what you need to do takes only a
 few seconds, you can do the work within the BroadcastReceiver;
 otherwise, have the receiver call startService() to trigger some
 IntentService to do the real work.

 This seems terribly complex, compared to just giving the user a real
 activity to work with, but, hey, it's your app... :-)

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

 Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 firmware update and Application update work through OTA work?

2009-06-10 Thread Disconnect

Application updating has as much to do with firmware as any other
sdk/capability question...

(And the answer to the original question is that market offers user's
an update-list of app updates, but otherwise there is no capability in
the system for handling application updates in any sort of automatic
way.)

On Wed, Jun 10, 2009 at 8:07 AM, Mark Murphymmur...@commonsware.com wrote:

 onceaweek wrote:
 I'd like to know how to update SDK or Applications through OTA?

 Questions regarding the operation of Android firmware are best asked on
 a list pertaining to Android firmware:

 http://source.android.com/discuss

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

 Warescription: Three Android Books, Plus Updates, $35/Year

 


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



[android-developers] Re: Using Android Radar in map application

2009-06-10 Thread Georgy

Solved.  As loCode was my GeoPoint:

// RADAR CODE
Intent i = new Intent
(com.google.android.radar.SHOW_RADAR);
i.putExtra(latitude,  (float)(locode.getLatitudeE6() /
100f));
i.putExtra(longitude, (float)(locode.getLongitudeE6() /
100f));
startActivity(i);


  }

On Jun 9, 4:17 pm, Georgy georgearna...@gmail.com wrote:
 Is that all you provided?

  in yuor code:

  radarIntent.putExtra(latitude, items.get(i).getPoint
 ().getLatitudeE6());
             radarIntent.putExtra(longitude, items.get(i).getPoint
 ().getLongitudeE6());

 is items.get(i).getPoint().getLongitudeE6())   is just the
 longitude?  how about : radarIntent.putExtra(longitude, -78.45353);
 shouldn't it work??/
 Thnaks

 On Jun 9, 12:22 pm, Fuzzycat fuzzy...@gmail.com wrote:

  On Jun 8, 8:39 pm, Georgy georgearna...@gmail.com wrote:

   Greetings,

   I am trying to embed the Android Radar package in my map application.

   I already installed RADAR from the Market on my G-1 and added the
   following code to my application:

   // RADAR CODE
               Intent i = new Intent
   (com.google.android.radar.SHOW_RADAR);
               i.putExtra(latitude, locode.getLatitudeE6()/1E6);
               i.putExtra(longitude, locode.getLongitudeE6()/1E6);
               startActivity(i);

   where I am passing the lat and long of the point I am trying to show
   on the radar. I checked on logcat that the long/lat provided are
   accurate.  The issue is that the RADAR apears but is stuck on distance
   = 8794km and the point that appears on the radar is completely
   incorrect.

   I also tried shaking the device and tried several other locations with
   the same issue.  Is there anything I need to provide to the radar
   package more than I already did?

   PS: I am capable to identify the location targeted and my current
   'device' location and the distance in between accurately (using other
   functions) from my device.

   I could use some help here.

   thanks guys

  I'm using this for mine which works fine for me...

              Intent radarIntent = new Intent
  (com.google.android.radar.SHOW_RADAR);
              radarIntent.putExtra(latitude, items.get(i).getPoint
  ().getLatitudeE6());
              radarIntent.putExtra(longitude, items.get(i).getPoint
  ().getLongitudeE6());
              startActivity(radarIntent);

  hth

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



[android-developers] Re: Using Intents

2009-06-10 Thread Georgy

Solved. As Locode was my GeoPoint:

// RADAR CODE
Intent i = new Intent
(com.google.android.radar.SHOW_RADAR);
i.putExtra(latitude,  (float)(locode.getLatitudeE6() /
100f));
i.putExtra(longitude, (float)(locode.getLongitudeE6() /
100f));
startActivity(i);


  }

I still wonder what kind of unit does the intent RADAR takes, I
thought it was Long/latitude.



On Jun 8, 2:58 pm, Georgy georgearna...@gmail.com wrote:
 Does anyone have any idea why the distance could be wrong? actually
 it's not changing...

 if my code is this:

  Intent i = new Intent(com.google.android.radar.SHOW_RADAR);
             i.putExtra(latitude, locode.getLatitudeE6()/1E6);
             i.putExtra(longitude, locode.getLongitudeE6()/1E6);
             startActivity(i);

 is that enough for the radar to pickup my own location and compare it
 to the one I attached to the putExtra???

 If so, why is the distance not changing?

 On Jun 8, 11:45 am, Georgy georgearna...@gmail.com wrote:

  Oh sorry I was jsut in an area without reception.

  thanks guys

  On Jun 7, 1:33 pm, Georgy georgearna...@gmail.com wrote:

   You are right... for some reason I thought that I could simply point
   to an external package without installing it. So now, I got Radar from
   the market and pointed to it.

   the issue now is that I am getting a black screen..

   After looking at LogCat the activity ran without any problems... just
   a black screen..

   thanks

   On Jun 7, 1:05 pm, Mark Murphy mmur...@commonsware.com wrote:

Georgy wrote:
 Unable to start activity ... no activity found to handle intent
 { action: com.google.android.radar.SHOW_RADAR (has extras) } 

That would suggest that either you do not have the Radar application
installed, or the one you have installed does not match the
AndroidManifest.xml from the open source tree.

If you think you have it installed, did you compile from source, or
install it off the Market, or get it via some other means?

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

Looking for Android opportunties?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 this doable in commandline?

2009-06-10 Thread dev

Hi,

I intend to right a simple instrumentation class using
android.test.InstrumentationTestCase.
I have two simple testcases inside it which does nothing but printing
the Log.
My instrumentation code does not launch any activity or connect to
service,or has intents etc.

What I am looking for is,
Pass some arguments from commandlline , this can be along with am
command, and access it in my testcases as input configuration for my
tests. (something similar to argc argv in c programming)

I know that using 'am' we can pass key,value pair to intents , but I
have instrumentation, not an activty or any intetnt.

I wven though of having parameters my testcases, but then they are not
identified as tests by test runner.


How do I produce commandline input to my test cases.
Is there any way to do this ?

Any input would be of help.

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



[android-developers] TextView Ellipsize: Questions

2009-06-10 Thread nEx.Software

I have a couple questions on ellipsize on the TextView...
1) Is there anyway to get ellipsize to work on a multiline TextView?
So that the ellipses are shown at the end of the text, rather than at
the end of the line? If not what is the best way to handle this on my
own?]]

2) Is there any way to change the character used for eellipsize? For
example, use ... [Read More], this obviously coincides with question
1 above since one wouldn't want to take half of the single line to say
read more, but on a multiline, it would be nice to be able to have
like 3 or 4 lines and then a read more? Maybe there is a better way to
do this that I haven't figured out yet?

Thanks in advance for any help you can offer...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: My Emulator isnt launching .. :(

2009-06-10 Thread MikaSue

Hi! Which version of Eclipse are you running?
Did you create an AVD?   With sdk 1.5  you must create an avd first.
  Have you set up a Run Configuration...  for the correct version?
Look at the target tab.

MikaSue





On Jun 9, 4:33 pm, wahib.t...@gmail.com wahib.t...@gmail.com
wrote:
 Hi. I am a newbie and i am using Eclipse on windows Xp. I have
 installed ADT plugin. When i am running simple helloworld code and
 running it. Console shows that emulator is launching but there is not
 emulator displayed. Even i tried 'adb kill-server'  'adb start-
 server' and executed ' emulator  ' to start it manually but still
 there was no change.

 I need to know whether its installation error or smthing else.

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



[android-developers] ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread jphdsn

Hi
Coud anyone tell me if he had been teh same problem witj the adb
command line?

jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
* daemon not running. starting it now *
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon

And if there is a solution

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: 2D Double Buffering in Android 1.5 (with Canvas?)

2009-06-10 Thread Eli Yukelzon

the only thing that seems close to this is canvas.saveLayer() and
canvas.restore()
though i may be wrong...
anyone else has other info?

On Jun 10, 3:06 am, Avatar Ng ngchee...@gmail.com wrote:
 Hi there,

 Do anyone here having experience of applying double-buffering in
 Android 2D animation/ games?

 I'm sure this is a pretty basic functionality people will discuss
 about when writing games on Android, but seems like the source I found
 on web was pretty little ...

 The only one I found is using OpenGL blit (intro by Chris Pruett in
 Google IO 2009 session). If I want only a 2D, how do I do that?

 Hope Google Android group can come out a tutorial on this ... it will
 be much helpful.

 Regards,
 Avatar Ng
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: 1dp=1/160 inch ?

2009-06-10 Thread Odessa Silverberg

No, not really. If you have a 200 dpi screen, it would be
theoretically 1.25px. But since you can't have a 1/4 pixel, it
basically has to be rounded down to 1. So on 200 dpi 1 dp would be
1/200 inch.

However, 4dp will be 4 pixel on 160 dpi screen and 5 px on a 200 dpi
one. Or in other words 1/40 inch or 1/50 inch on 200 dpi.

On Jun 10, 8:06 am, Susan smxb...@gmail.com wrote:
 In Android documentone, dp is one pixel on a 160 dpi screen.  So I
 think 1dp=1/160 inch. Am I right?  Are they different in use?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-10 Thread pawpaw17

Thanks for the pointers. I fixed my issue as well using bundles to
save state.

On Jun 9, 12:55 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Ugh.. this is still the case :(

 In my app, i program around it. I have some code that determines if
 onPrepareDialog should have been called and, if not, that calls
 onPrepareDialog explicitly.

 On Jun 9, 1:04 pm, pawpaw17 georgefraz...@yahoo.com wrote:



  Guys,

  That's what I'm seeing. onPrepareDialog is not called, only
  onCreateDialog.
  This is v 1.5.

  Thanks,- 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
-~--~~~~--~~--~--~---



[android-developers] Re: ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread David Turner
The ADB server binds and listen to port 5037. The error message seems to
indicate that another process is already using this port.
Do you have specific services / background programs running your machine ?

On Wed, Jun 10, 2009 at 4:06 PM, jphdsn jph...@gmail.com wrote:


 Hi
 Coud anyone tell me if he had been teh same problem witj the adb
 command line?

 jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
 * daemon not running. starting it now *
 cannot bind 'tcp:5037'
 ADB server didn't ACK
 * failed to start daemon *
 error: cannot connect to daemon

 And if there is a solution

 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: ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread jphdsn

I don't think so but how can I be sure of that?

thanks

On 10 juin, 16:22, David Turner di...@android.com wrote:
 The ADB server binds and listen to port 5037. The error message seems to
 indicate that another process is already using this port.
 Do you have specific services / background programs running your machine ?

 On Wed, Jun 10, 2009 at 4:06 PM, jphdsn jph...@gmail.com wrote:

  Hi
  Coud anyone tell me if he had been teh same problem witj the adb
  command line?

  jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
  * daemon not running. starting it now *
  cannot bind 'tcp:5037'
  ADB server didn't ACK
  * failed to start daemon *
  error: cannot connect to daemon

  And if there is a solution

  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] WEBVIEW UTF AND NO LATIN CHARS

2009-06-10 Thread fala70

I am having problems to show on WebView a page with no chars lating
with UTF-8 enconding
I am using this code:

String ss = new String(_byString, UTF-8);
sUrl = http://www.google.com/search?q=+ss
+ie=UTF-8oe=UTF-8;
WebView browser=(WebView)findViewById(R.id.webkit);
if (browser!=null)
browser.loadUrl(sUrl);

if ss string has latin chars all good but if it has no latin chars I
can't see them.

I tried to show the ss string (with no latin chars) on TextView it is
showed correctly.

any idea ?

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



[android-developers] Re: ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread jphdsn

Precision, I'm on macintosh...

On 10 juin, 16:29, jphdsn jph...@gmail.com wrote:
 I don't think so but how can I be sure of that?

 thanks

 On 10 juin, 16:22, David Turner di...@android.com wrote:

  The ADB server binds and listen to port 5037. The error message seems to
  indicate that another process is already using this port.
  Do you have specific services / background programs running your machine ?

  On Wed, Jun 10, 2009 at 4:06 PM, jphdsn jph...@gmail.com wrote:

   Hi
   Coud anyone tell me if he had been teh same problem witj the adb
   command line?

   jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
   * daemon not running. starting it now *
   cannot bind 'tcp:5037'
   ADB server didn't ACK
   * failed to start daemon *
   error: cannot connect to daemon

   And if there is a solution

   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: ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread David Turner
You should be able to use netstat -a to see which processes are bound to
which ports

On Wed, Jun 10, 2009 at 4:33 PM, jphdsn jph...@gmail.com wrote:


 Precision, I'm on macintosh...

 On 10 juin, 16:29, jphdsn jph...@gmail.com wrote:
  I don't think so but how can I be sure of that?
 
  thanks
 
  On 10 juin, 16:22, David Turner di...@android.com wrote:
 
   The ADB server binds and listen to port 5037. The error message seems
 to
   indicate that another process is already using this port.
   Do you have specific services / background programs running your
 machine ?
 
   On Wed, Jun 10, 2009 at 4:06 PM, jphdsn jph...@gmail.com wrote:
 
Hi
Coud anyone tell me if he had been teh same problem witj the adb
command line?
 
jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
* daemon not running. starting it now *
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
 
And if there is a solution
 
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] Saving array of Path on Bundle in onSaveInstanceState

2009-06-10 Thread monmonja

I have an app that let users draw and i'm using canvas with Path
(android.graphics.Path). After drawing, ill let them email what they
have drawn, and this i believe will trigger onDestory, then after they
finish with the email they will return to the app and thus calling
onCreate.

My question is how do i save an ArrayList of Path on
onSaveInstanceState? I had tried to make it serializable but the said
that
   Parcel: unable to marshal value android.graphics.Path

Is there another way to do this? Any advice? tnx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 1.1 virtual devices don't show up as run targets

2009-06-10 Thread Matthias

Hi,

even when setting minSdkVersion to 2, any Android 1.1 virtual device
does not appear in the list of run targets when launching the
emulator.

How come?

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



[android-developers] Re: ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread De San Nicolas Jean Philippe
I will try in three or four hours I have to go now

I will send another post if it works or not

Thanks very much

2009/6/10 David Turner di...@android.com

 You should be able to use netstat -a to see which processes are bound to
 which ports


 On Wed, Jun 10, 2009 at 4:33 PM, jphdsn jph...@gmail.com wrote:


 Precision, I'm on macintosh...

 On 10 juin, 16:29, jphdsn jph...@gmail.com wrote:
  I don't think so but how can I be sure of that?
 
  thanks
 
  On 10 juin, 16:22, David Turner di...@android.com wrote:
 
   The ADB server binds and listen to port 5037. The error message seems
 to
   indicate that another process is already using this port.
   Do you have specific services / background programs running your
 machine ?
 
   On Wed, Jun 10, 2009 at 4:06 PM, jphdsn jph...@gmail.com wrote:
 
Hi
Coud anyone tell me if he had been teh same problem witj the adb
command line?
 
jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
* daemon not running. starting it now *
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
 
And if there is a solution
 
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] Hide application in Home dinamically

2009-06-10 Thread rollbak

Hello,

I want to know if there is a way or workaround to hide an application
to be shown in the Home activity, but doing this dynamically from my
own app code.

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: Hide application in Home dinamically

2009-06-10 Thread Mark Murphy

rollbak wrote:
 Hello,
 
 I want to know if there is a way or workaround to hide an application
 to be shown in the Home activity, but doing this dynamically from my
 own app code.

You can try PackageManager#setComponentEnabledSetting(), though I have
not tried this personally.

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

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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



[android-developers] 1.5 rebuild issue with emulator

2009-06-10 Thread Logik

Rebuilt my app on 1.5 and went through all setup info on signing my
avd

When I run my app on eclipse them emulator just prints to console its
help menu

the error says
Emulator] unknown option: -avd

all this prints before the error
[2009-06-10 09:47:37 - ProjectName] Android Launch!
[2009-06-10 09:47:37 - ProjectName] adb is running normally.
[2009-06-10 09:47:37 - ProjectName] Performing android.project.Welcome
activity launch
[2009-06-10 09:47:37 - ProjectName] Automatic Target Mode: launching
new emulator with compatible AVD 'toto'
[2009-06-10 09:47:37 - OldeWorldVineyard] Launching a new emulator
with Virtual Device 'toto'
[2009-06-10 09:47:37 - Emulator] Android Emulator usage: emulator
[options] [-qemu args]

error

[2009-06-10 09:47:37 - Emulator] unknown option: -avd

options menu
[2009-06-10 09:47:37 - Emulator]   options:
.
.
.


Has anyone else had this issue when creating an avd through console?
Any resolutions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OpenGL garbage collection (with direct ByteBuffers)

2009-06-10 Thread hav...@gmail.com

Is there any work-around?
I'm ready to ship this port I'm working on, bar some polish, but of
course the gc hitting during runtime causes unacceptable hits to
playability.

This talk doesn't mention this bug, but he says that he hasn't had the
gc run during gameplay in five months.
http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html

My guess is that it's because he's using vbo's for rendering, thus
avoiding the bug.

Maybe that'll be the path I have to take as well.

On Jun 9, 11:05 pm, fadden fad...@android.com wrote:
 On Jun 9, 2:05 am, Genc gmt...@gmail.com wrote:

  A simple  basic question: Is that change 9029 shipped with Android
  SDK 1.5? Should I install SDK 1.5 to benefit changes?

 It is not part of 1.5.  It will be included in a future release.

 The patch seems to have the unintentional side-effect of causing
 memory to be held past the point when it should be freed.  Some
 additional work is being done to address this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 1.1 virtual devices don't show up as run targets

2009-06-10 Thread arnouf

Add a new AVD, when you're launching the Run configuration, on Target
click on AVD Manager button. You can create a new AVD file
automatically.

If it's not visible, try to stop and restart your Eclipse tool.

Regards

On Jun 10, 4:47 pm, Matthias m.kaepp...@googlemail.com wrote:
 Hi,

 even when setting minSdkVersion to 2, any Android 1.1 virtual device
 does not appear in the list of run targets when launching the
 emulator.

 How come?

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

2009-06-10 Thread Logik

Re-installed sdk pack and everything is good now

On Jun 10, 9:54 am, Logik yaros...@gmail.com wrote:
 Rebuilt my app on 1.5 and went through all setup info on signing my
 avd

 When I run my app on eclipse them emulator just prints to console its
 help menu

 the error says
 Emulator] unknown option: -avd

 all this prints before the error
 [2009-06-10 09:47:37 - ProjectName] Android Launch!
 [2009-06-10 09:47:37 - ProjectName] adb is running normally.
 [2009-06-10 09:47:37 - ProjectName] Performing android.project.Welcome
 activity launch
 [2009-06-10 09:47:37 - ProjectName] Automatic Target Mode: launching
 new emulator with compatible AVD 'toto'
 [2009-06-10 09:47:37 - OldeWorldVineyard] Launching a new emulator
 with Virtual Device 'toto'
 [2009-06-10 09:47:37 - Emulator] Android Emulator usage: emulator
 [options] [-qemu args]

 error

 [2009-06-10 09:47:37 - Emulator] unknown option: -avd

 options menu
 [2009-06-10 09:47:37 - Emulator]   options:
 .
 .
 .

 Has anyone else had this issue when creating an avd through console?
 Any resolutions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 1.1 virtual devices don't show up as run targets

2009-06-10 Thread matthias

Hi,

On Jun 10, 5:12 pm, arnouf arnaud.far...@gmail.com wrote:
 Add a new AVD, when you're launching the Run configuration, on Target
 click on AVD Manager button. You can create a new AVD file
 automatically.

well, that's what I did to create the 1.1 AVDs. (also created one
using the command line tools, no difference.)

 If it's not visible, try to stop and restart your Eclipse tool.

I probably restarted Eclipse 20 times since I created them. Didn't
help :-)

Cheers,
Matthias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 1.1 virtual devices don't show up as run targets

2009-06-10 Thread matthias

I just received a reply via email; the answer is:

It's not sufficient to set minSdkVersion to 2, one must also go to
project -- settings -- build target and select 1.1 there. That
doesn't really help though, because now the resource compiler breaks
on any imeOptions attributes, even though those are supposed to be
simply ignore by the 1.1 runtime...

In other words, to test your app on different Android versions, you
must set up two different code bases, even though it's not necessary
(because an APK built using 1.5 and having minSdkVersion 2 would also
run on 1.1, unless of course you use 1.5 specific APIs). Great.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Is possible get notified when the user send an SMS or make a call

2009-06-10 Thread Monkiki

Great, I will try it. Where can I find more info about these context://
uris?

On Jun 10, 1:11 pm, Mika mika.ristim...@tkk.fi wrote:
 Hi,

 You can do this by using content providers. You can listen to changes
 in content://sms uri and for sent messages you go through content://sms/sent
 and find the new sent messages. You can do similar thing with call log
 or use PhoneStateListener and listen when the call is on hook, off
 hook and idle.

 -Mika

 On Jun 10, 1:42 pm, Monkiki monk...@gmail.com wrote:

  I've been searching the application permissions and I see no way to
  make an app to enable getting notified when the user send an SMS or
  make a phone call. How can I accomplish this task?

  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: handling touch events in MapView

2009-06-10 Thread Philip Tucker
On issue #1, I scavenged some online code snippet and tweaked it to work
properly to translate from screen pixel to GeoPoint::

   private GeoPoint pixelToGeoPoint(int selectedPixelX, int selectedPixelY)
{
 Log.v(LOG_ID, selectedPixel=[ + selectedPixelX + , + selectedPixelY
+ ]);

 // center point in udegrees
 GeoPoint center = mapView.getMapCenter();
 int centerUdegreesX = center.getLongitudeE6();
 int centerUdegreesY = center.getLatitudeE6();
 Log.v(LOG_ID, centerUdegrees=[ + centerUdegreesX + , +
centerUdegreesY + ]);

 // dimension of view area in udegrees
 int viewUdegreesX = mapView.getLongitudeSpan();
 int viewUdegreesY = mapView.getLatitudeSpan();
 Log.v(LOG_ID, viewUdegrees=[ + viewUdegreesX + , + viewUdegreesY +
]);

 // dimension of view area in pixels
 int viewPixelsX = mapView.getWidth();
 int viewPixelsY = mapView.getHeight();
 Log.v(LOG_ID, viewPixels=[ + viewPixelsX + , + viewPixelsY + ]);

 // center point in pixels
 int centerPixelX = viewPixelsX / 2;
 int centerPixelY = viewPixelsY / 2;
 Log.v(LOG_ID, centerPixel=[ + centerPixelX + , + centerPixelY +
]);

 // udegrees per pixel
 int udegreesPerPixelX = viewUdegreesX / viewPixelsY;
 int udegreesPerPixelY = viewUdegreesY / viewPixelsX;
 Log.v(LOG_ID, udegreesPerPixel=[ + udegreesPerPixelX + , +
udegreesPerPixelY + ]);

 // delta from center of selection, in pixels
 int deltaPixelX = selectedPixelX - centerPixelX;
 int deltaPixelY = selectedPixelY - centerPixelY;
 Log.v(LOG_ID, deltaPixel=[ + deltaPixelX + , + deltaPixelY + ]);

 // delta from center of selection, in udegrees
 int deltaUdegreesX = udegreesPerPixelX * deltaPixelX;
 int deltaUdegreesY = -udegreesPerPixelY * deltaPixelY;
 Log.v(LOG_ID, deltaUdegrees=[ + deltaUdegreesX + , + deltaUdegreesY
+ ]);

 // selection in udegrees
 int selectedUdegreesX = centerUdegreesX + deltaUdegreesX;
 int selectedUdegreesY = centerUdegreesY + deltaUdegreesY;
 Log.v(LOG_ID, selectedUdegrees=[ + selectedUdegreesX + , +
selectedUdegreesY + ]);

 GeoPoint selectedPoint = new GeoPoint(selectedUdegreesY,
selectedUdegreesX);
 return selectedPoint;
   }

This works in the case where either entire view area is covered with map.
However, if you zoom out far enough, you can go off the top or bottom of the
map. In this case, mapView.getMapCenter() returns a point off the map (i.e.,
 90 or  -90 degrees), but mapView.getLatitudeSpan() returns the height of
only the viewable area. So, it throws the math off. And I can't figure out a
way to grab either the center of the displayed map section, or the height in
microdegrees of the entire viewable area. I can't even find anything in the
API to return any indication that part of the view is off the map.

On Tue, Jun 9, 2009 at 2:02 PM, Philip Tuckerptuc...@gmail.com wrote:
 (If there's a better place to post questions concerning the Google
 Maps API please let me know, but it looks like this is the right
 spot.)

 Requirement:
 I have created a MapActivity containing a MapView. Drag and zoom work
 fine, and I've successfully added an ItemizedOverlay that displays and
 updates properly. Right now I can add OverlayItems to the map center
 via a button, but I would like to add functionality allowing the user
 to issue a long click to add an OverlayItem to the map at the selected
 location.

 Issue 1 (minor):
 It seems like there should be an easy way to determine the geo
 location for a click event in MapView, but from what I've gathered it
 requires writing my own pixel-latlong translation based on the view
 span. Not a deal breaker, but seems like a common enough use case to
 warrant addition to the API.

 Issue 2 (average):
 My first attempt was to use setLongClickable(true) and
 setOnLongClickListener, but that doesn't provide the click location.
 The only param it receives it the View object, but I couldn't find any
 way to determine the location of the click event.

 Issue 3 (major):
 My second attempt was to use setOnTouchListener. This seems completely
 broken to me. If I return true (ie, consume event) I continue getting
 all touch events, but drag and zoom of the MapView do not work. That
 seems like expected behavior.
 If I return false (ie, do not consume the event) the map view
 continues to work correctly. My listener receives ONLY the first touch
 event. Stepping through in debug, it looks like
 MapView.mOnTouchListener gets set to something like ZoomListener
 (that's not the exact name, but it's close to that) and then to null
 shortly after my listener is invoked.
 Is there another preferred way of handling touch events in MapView?



-- 
Philip Tucker
ptuc...@gmail.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 

[android-developers] Timeout using apache DefaultHttpClient not working when port is closed

2009-06-10 Thread mp6800

I have a simple piece of code that allows a user to specify a URL,
port, username, and password to grab a frame from a network camera.
An exception is thrown properly if the url can't be resolved, or if
the authentication fails.  However, I can't seem to throw an exception
in a reasonable amount of time if the server is available but the port
is closed (or the user entered the wrong port number).  It just seems
to sit and wait for a *long* time...

HttpParams params = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(params, netConnectTimeout);
HttpConnectionParams.setSoTimeout(params, netReadTimeout);
DefaultHttpClient httpclient = new DefaultHttpClient(params);
httpclient.setHttpRequestRetryHandler(new
DefaultHttpRequestRetryHandler(0, false));
UsernamePasswordCredentials credentials = new
UsernamePasswordCredentials(username + : + password);
httpclient.getCredentialsProvider().setCredentials(new AuthScope
(hostName,port),credentials);
HttpGet method = new HttpGet(cameraUrl);
HttpResponse response = httpclient.execute(method);

(netConnectTimeout  netReadTimeout are both set to 1)

After doing a substantial amount of reading, I believe I understand
why netConnectTimeout and netReadTimeout have no effect on this
particular problem.  After discovering HttpRequestRetryHandler I
believed I had found the solution.  However after applying what I had
found to my code (line 5 above), it had no effect.  The connection
still sits and waits far longer than 10 seconds when the incorrect
port is specified in the prefs.

Can anybody 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] Help with Hello Android app

2009-06-10 Thread Pavan

I tried all different possibilities but i can't get the hello android
to work. I am using eclipse 3.4.2 and java 1.6 and when I am launching
the sample app it says 'Cannot find HelloAndroid.apk' file. I have
googled this and I couldn't find any solution that fixes this. Any
help would be appreciated.


Thanks,
Pavan.

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

2009-06-10 Thread Jay

I'm trying to capture when a calendar reminder goes off.  What I'm
trying to do right now is use a BroadcastReceiver and receive an
intent from the calendar.  Is there an intent that gets broadcast when
a calendar reminder goes off?  If so what is its name, or where can I
find it?  Is there a list of all the calendar intents somewhere?
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] Overview Of New Intel Core i7(Nehalem) Processor

2009-06-10 Thread whatn...@gmail.com

Before entering on the details about the architectural features
present on the Nehalem CPUs, let’s make a summary of the base elements
that are common to the many different versions: server, desktop and
notebook. It’s worth noticing how the new architecture engineering
process used by Intel aims at obtaining CPUs that can be used in all
three sectors, by simply slightly changing architecture and CPU
characteristics to better adapt to each of the sectors.




for more info visit  http://www.intel-intel99.blogspot.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
-~--~~~~--~~--~--~---



[android-developers] Re: how can i put 15MB images in my App?

2009-06-10 Thread Jonathan W

Hi, I have the same question as below.  I'd like my app to prompt the
user to download a package of 500 png images upon first load.  These
images would be stored on the SD card (and ideally encrypted), but
accessed by the heard of the application which would be stored in main
memory.

Can anyone provide some guidance on how to do this?

Thanks,
Jonathan



On May 29, 7:57 am, zeeshan genx...@gmail.com wrote:
 i think download option would be the better solution.
 i need to download in a bunch like 50 images on next click.

 i only have idea to take image and display with fowllowing approach:

 private static Bitmap getImageBitmap(String url) {
         Bitmap bm = null;
         try {
             URL aURL = new URL(url);
             URLConnection conn = aURL.openConnection();
             conn.connect();
             InputStream is = conn.getInputStream();
             BufferedInputStream bis = new BufferedInputStream(is);
             bm = BitmapFactory.decodeStream(bis);
             bis.close();
             is.close();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return bm;
     }

 /

 this just load image from my url, may be in cache .

 can u please provide any solution to download my files from url and
 put them in my apk to use it later

 thanks for your time and help, waiting for the reply

 On May 21, 8:38 pm, Mike Hearn mh.in.engl...@gmail.com wrote:

  You can encrypt the files on the sdcard. Just be aware that using the
  sdcard carries with it some taxes, eg, you have to handle  it being
  taken out whilst in use 

  On May 21, 4:59 pm,zeeshangenx...@gmail.com wrote:

   Hi,

   i am afraid if Max space for android App is 14MB , how can i put 15MB
   images in my App.
   my application includes more than 500 PNG images which are
   confidentials and cann't be put onsdcard. i need to put them in my
  assets.

   is it something that can not be achieved in 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] Re: how can i put 15MB images in my App?

2009-06-10 Thread Jonathan W

I've got the same question.  On first load, I want to download images
to SD card for use later.  Any suggestions?

On May 29, 7:57 am, zeeshan genx...@gmail.com wrote:
 i think download option would be the better solution.
 i need to download in a bunch like 50 images on next click.

 i only have idea to take image and display with fowllowing approach:

 private static Bitmap getImageBitmap(String url) {
         Bitmap bm = null;
         try {
             URL aURL = new URL(url);
             URLConnection conn = aURL.openConnection();
             conn.connect();
             InputStream is = conn.getInputStream();
             BufferedInputStream bis = new BufferedInputStream(is);
             bm = BitmapFactory.decodeStream(bis);
             bis.close();
             is.close();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return bm;
     }

 /

 this just load image from my url, may be in cache .

 can u please provide any solution to download my files from url and
 put them in my apk to use it later

 thanks for your time and help, waiting for the reply

 On May 21, 8:38 pm, Mike Hearn mh.in.engl...@gmail.com wrote:

  You can encrypt the files on the sdcard. Just be aware that using the
  sdcard carries with it some taxes, eg, you have to handle  it being
  taken out whilst in use 

  On May 21, 4:59 pm,zeeshangenx...@gmail.com wrote:

   Hi,

   i am afraid if Max space for android App is 14MB , how can i put 15MB
   images in my App.
   my application includes more than 500 PNG images which are
   confidentials and cann't be put onsdcard. i need to put them in my
  assets.

   is it something that can not be achieved in 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] Get Assisted GPS server address from device

2009-06-10 Thread Jerome

Hello,
I’m study the way to make application for A-GPS (Assisted GPS) server
monitoring.
So I would like to know if android sdk has an APIs to:
-   Get the AGPS server IP address from the device and to modify this
address if necessary
-   Get datas supply by the A-GPS server to the device when a GPS
session is initiate.
-   Get A-GPS response time

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: How to get current time?

2009-06-10 Thread Mike Garcia
Or you can do something like this...

Date d = new Date();
d.getTime();

I personally prefer this but only because I have access to other functions
for outputing the time in a human readable form without having to write a
bunch of extra code.

2009/6/9 Mike Lanin mike.la...@gmail.com


 Thanks! I'll just use currentTimeMillis().

 On 9 июн, 16:01, Mark Murphy mmur...@commonsware.com wrote:
  Jeff Sharkey wrote:
   So just a heads up that Android uses NITZ events provided by a carrier
   to properly set the system date and time.  Android also falls-back to
   network NTP automatically when no cellular network is available.
 
  http://en.wikipedia.org/wiki/NITZ
 
   The time provided by currentTimeMillis() will typically be the best
   available time, and it's what all of the services on the device use,
   like Calendar and Alarm Clock.
 
  Does Android fall back to NTP when there is cellular but no NITZ? NITZ
  isn't terribly widespread.
 
  Thanks!
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy
 
  Need help for your Android OSS project?http://wiki.andmob.org/hado
 


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

2009-06-10 Thread Jay

I'm trying to capture when a calendar reminder is triggered.  The way
I am trying to do that is by using a BroadcastReceiver.  My problem is
I don't know the name of the Intent that gets broadcast when a
reminder is triggered, if it even exists.  Does anyone know where I
could find a list of Calendar Intents?

Is there a better way to do this, or is a BroadcastReceiver fine?

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: How to launch internal activity from PreferenceScreen

2009-06-10 Thread kmorey

This is what worked for me:

PreferenceScreen
android:title=Internal activity
android:summary=This will launch internal activity screen
intent
android:action=android.intent.action.MAIN
android:targetPackage=com.myapp
android:targetClass=com.myapp.MyInternalActivity
android:data=mydata /
/PreferenceScreen

Kevin

On Jun 9, 10:09 am, Tushar tusharpatu...@gmail.com wrote:
 Hi,

 Using PreferenceScreen in xml format we can launch activity by
 specifying Intent as shown in sample application

 intent android:action=android.intent.action.VIEW
                     android:data=http://www.android.com; /

 This will launch Browser activity which is registered to handle http
 protocol.

 But I would like to launch my internal activity by explicitly
 specifying it's name e.g.

 PreferenceScreen
                 android:title=Internal activity
                 android:summary=This will launch internal activity
 screen
 intent android:name=com.myapp.MyInternalActivity
                     android:data=mydata /

 /PreferenceScreen

 But this is not working. Getting exception of ActivityNotFound .

 Am I missing anything ?

 -- Tushar

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

2009-06-10 Thread toff...@gmail.com

Hi,

I'm also trying to find out if this is possible to do. Anyone who
knows?


/ Toffer

On 9 Juni, 14:58, pehrlo pehr.hans...@gmail.com wrote:
 Does somebody know if this is possibly in 1.5?

 From: hackbod hack...@gmail.com
 Date: 19 Okt 2008, 20:06
 Subject: How can the app icon be changed at runtime
 To: Android Developers

 Sorry, application icons can't be changed dynamically in 1.0.

 On Oct 18, 8:10 am, omni dbk...@gmail.com wrote:



  I'd like to be able to change the applicationiconatruntime; either
  by providing a completely new image, or by applying badgest to the
  existingicon.
  Can't seem to find a way to do it that actually works, and group
  search only reveals posts about changing views in  an activity.- Dölj 
  citerad text -

 - Visa citerad 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
-~--~~~~--~~--~--~---



[android-developers] handling touch events in MapView

2009-06-10 Thread Philip Tucker

(If there's a better place to post questions concerning the Google
Maps API please let me know, but it looks like this is the right
spot.)

Requirement:
I have created a MapActivity containing a MapView. Drag and zoom work
fine, and I've successfully added an ItemizedOverlay that displays and
updates properly. Right now I can add OverlayItems to the map center
via a button, but I would like to add functionality allowing the user
to issue a long click to add an OverlayItem to the map at the selected
location.

Issue 1 (minor):
It seems like there should be an easy way to determine the geo
location for a click event in MapView, but from what I've gathered it
requires writing my own pixel-latlong translation based on the view
span. Not a deal breaker, but seems like a common enough use case to
warrant addition to the API.

Issue 2 (average):
My first attempt was to use setLongClickable(true) and
setOnLongClickListener, but that doesn't provide the click location.
The only param it receives it the View object, but I couldn't find any
way to determine the location of the click event.

Issue 3 (major):
My second attempt was to use setOnTouchListener. This seems completely
broken to me. If I return true (ie, consume event) I continue getting
all touch events, but drag and zoom of the MapView do not work. That
seems like expected behavior.
If I return false (ie, do not consume the event) the map view
continues to work correctly. My listener receives ONLY the first touch
event. Stepping through in debug, it looks like
MapView.mOnTouchListener gets set to something like ZoomListener
(that's not the exact name, but it's close to that) and then to null
shortly after my listener is invoked.
Is there another preferred way of handling touch events in MapView?

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



[android-developers] Please find the requestion with me

2009-06-10 Thread Agung Priyono
Dear Mr. Android,

Hai friend,
I can ask for advice and tricks of computer, no?
Oh help me eager to learn the car and *the modifications to its animation*,
but I do not have any software.
I sent the software is not free.
Please do your friends, just consider this as a reference for your initial
success in the future.

Thank you for your cooperation and attention.

You are best friend.

I wait for software in this E-mail, as soon as possible.


-- 
Rey
campoes city
in the gank

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

2009-06-10 Thread 王华

hi susan ,are you a male or female ?

2009/6/10, Susan smxb...@gmail.com:

 In Android documentone, dp is one pixel on a 160 dpi screen.  So I
 think 1dp=1/160 inch. Am I right?  Are they different in use?
 


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



[android-developers] Interacting with remote databases

2009-06-10 Thread Kory

Hi All,

Lets say Im creating an Android app for a company that already
provides some sort of online service. I want my android app to extend
this online service and I want the app to interact with my remote
databases, would I embed a web browser in my application or directly
connect to my remote database from within my code? If I am directly
connected to a database from within code and not through a web
browser, would that be a security risk since the connection info would
be distributed in the code?

Thanks

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



[android-developers] Google Directions for maps!

2009-06-10 Thread Lorenz

Hi to everyone!!
So, I've to deliver a project in two week.In this project I should use
the package com.google.googlenav for drawing one the maps some Driving
or Walking DIRections but from some sites I have known that it isn't
avaible anymore for SDK 1.5(as it was for SDK 0.9).So please is there
anybody that can solve this problem??Is there an other way to obtain
that directions?

regards:)

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



[android-developers] Re: handling touch events in MapView

2009-06-10 Thread Philip Tucker
On issue 3, I was able to work around it by extending MapView and overriding
onTouchEvent(). I found that if I used MapView.setOnTouchListener()
directly, MapView itself would call setOnTouchListener(), discarding my
listener and replacing it with a zoom listener.

On Tue, Jun 9, 2009 at 2:02 PM, Philip Tucker ptuc...@gmail.com wrote:

 (If there's a better place to post questions concerning the Google
 Maps API please let me know, but it looks like this is the right
 spot.)

 Requirement:
 I have created a MapActivity containing a MapView. Drag and zoom work
 fine, and I've successfully added an ItemizedOverlay that displays and
 updates properly. Right now I can add OverlayItems to the map center
 via a button, but I would like to add functionality allowing the user
 to issue a long click to add an OverlayItem to the map at the selected
 location.

 Issue 1 (minor):
 It seems like there should be an easy way to determine the geo
 location for a click event in MapView, but from what I've gathered it
 requires writing my own pixel-latlong translation based on the view
 span. Not a deal breaker, but seems like a common enough use case to
 warrant addition to the API.

 Issue 2 (average):
 My first attempt was to use setLongClickable(true) and
 setOnLongClickListener, but that doesn't provide the click location.
 The only param it receives it the View object, but I couldn't find any
 way to determine the location of the click event.

 Issue 3 (major):
 My second attempt was to use setOnTouchListener. This seems completely
 broken to me. If I return true (ie, consume event) I continue getting
 all touch events, but drag and zoom of the MapView do not work. That
 seems like expected behavior.
 If I return false (ie, do not consume the event) the map view
 continues to work correctly. My listener receives ONLY the first touch
 event. Stepping through in debug, it looks like
 MapView.mOnTouchListener gets set to something like ZoomListener
 (that's not the exact name, but it's close to that) and then to null
 shortly after my listener is invoked.
 Is there another preferred way of handling touch events in MapView?




-- 
Philip Tucker
ptuc...@gmail.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
-~--~~~~--~~--~--~---



[android-developers] asterisk in layout file

2009-06-10 Thread Alfred

I noticed that in Android source code, layout file, there are 2 ways
to reference a resource, could someone tell me what's the difference?

android:icon=@*android:drawable/ic_menu_stop
android:icon=@android:drawable/ic_menu_recent_history

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



[android-developers] How do you change a Spinner's typeface?

2009-06-10 Thread polyclefsoftware

I want to apply a non-native font to widgets in my app. This is
working fine for TextViews and Buttons, which have a setTypeface
method. The code below works just great for my button:

Java:
Typeface face = Typeface.createFromAsset(getAssets(), fonts/
my_font.ttf);
playButton = (Button) findViewById(R.id.play_button);
playButton.setTypeface(face);


But I just can't seem to figure out how to apply the font to a
Spinner. Any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 1.1 virtual devices don't show up as run targets

2009-06-10 Thread mp6800

Is the project build target set to 1.1 as well?  (Project -
Properties - Android - Project Build Target).  If it's set to 1.5,
you won't see 1.1 virtual devices in the run target list, even if
minSdkVersion is set to 2 in the project.

On Jun 10, 10:47 am, Matthias m.kaepp...@googlemail.com wrote:
 Hi,

 even when setting minSdkVersion to 2, any Android 1.1 virtual device
 does not appear in the list of run targets when launching the
 emulator.

 How come?

 Cheers,
 Matthias

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



[android-developers] Getting change details from content provider notifications

2009-06-10 Thread MannyNS

Using ContentResolver and ContentObserver, it is possible to receive
notifications in the function onChange() when some data is changed
within the content provider. However, I fail to see if there is a way
to see the URI which triggered the notification.

For instance, if I want to play a sound when someone deletes Kara
Trace from my address book or whatever - how do I do that, if not by
having another copy of the whole content provider dataset, and then
comparing the old dataset copy with a new one?
Can someone confirm me that the hard way is the only way?


Thanks.

P.

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



[android-developers] Change Spinner Typeface?

2009-06-10 Thread polyclefsoftware

I want to apply a non-native font to widgets in my app. This is
working fine for TextViews and Buttons, which have a setTypeface
method. The code below works just great for my button:

Java:
Typeface face = Typeface.createFromAsset(getAssets(), fonts/
my_font.ttf);
playButton = (Button) findViewById(R.id.play_button);
playButton.setTypeface(face);


But I just can't seem to figure out how to apply the font to a
Spinner. Any ideas?

NOTE: Sorry if this is a double-post...tried to post 30 minutes ago
and nothing showed up.

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



[android-developers] Re: ADB server didn't ACK, cannot bind tcp...

2009-06-10 Thread H N Kavya-DXN738

Try killing the daemon many times. And again try starting it. It may
help 

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of jphdsn
Sent: Wednesday, June 10, 2009 7:36 PM
To: Android Developers
Subject: [android-developers] ADB server didn't ACK, cannot bind tcp...


Hi
Coud anyone tell me if he had been teh same problem witj the adb command
line?

jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell
* daemon not running. starting it now *
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon

And if there is a solution

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] Cell Selection Parameters

2009-06-10 Thread Ne0

Hi,

I am new to developing apps for android and i am need of some
assistance.

I need to be able to get at the Cell Selection parameters of the
serving cell, i have had a look at android.telephony and it appears
that i can get Cell ID, LAC, MCC, MNC, power and some neighbour cell
Cell ID and power info. What i also need is the cell selection
parameters, C1 and C2, as well as the channel number for the serving
cell and preferably the neighbour cells.

Does anyone know if this possible and if so how.

Thanks for any response.

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



[android-developers] Cell selection parameters

2009-06-10 Thread Ne0

Does anyone know how to get hold of the cell selection parameters C1
and C2? also the channel number?

Cheers

Liam

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



[android-developers] Re: Webview Broken in 1.5 SDK?

2009-06-10 Thread MIND GAME

hii
thanks this woks for me.

On May 12, 6:56 am, Bill Zimmerly billzimme...@gmail.com wrote:
 I was successful in fixing the problem (above) and this details it...

 This line in the Webapp.java file had to be changed from this ...

  webview= (WebView) findViewById(R.id.webview);

 To this...

  webview= (WebView) findViewById(R.id.webkit);

 And, in the main.xml file these two lines had to be replaced...

    android:layout_width=wrap_content
    android:layout_height=wrap_content

 By these two...

    android:layout_width=fill_parent
    android:layout_height=fill_parent

 - Bill

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



[android-developers] Blogging Tool

2009-06-10 Thread Desperados

Hi @ALL

I want to implement an Android application to add pictures (of the
phone´s gallery)  to an existing blog.
I managed to get hello world on the display, but what have i to do to
begin programing?
Thx 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] npapi plugin failed to load in android webview

2009-06-10 Thread MIND GAME

i am trying to load a npapi plugin using webview.
code is
webview.getSettings().setJavaScriptEnabled(true);
webview .getSettings().setPluginsEnabled(true);
webview.getSettings().setPluginsPath(/android_asset/web/);
System.out.println(Default plugin path
is :+webview .getSettings().getPluginsPath());
webview.loadUrl(file:///android_asset/web/test.html);
but plugin is failing to load...
please help me out.
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: NP API Plugin

2009-06-10 Thread MIND GAME

please suggest way to install npapi plugin in to browser or to be
loded by web view.
how to modify the device firmware.

On May 29, 11:07 pm, Mark Murphy mmur...@commonsware.com wrote:
 Migol wrote:
  Does any know how to install NP plugin into Android's browser?

 You can't install any plugins to Browser, except by modifying the device
 firmware.

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

 _Android Programming Tutorials_ Version 0.95 Available!

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



[android-developers] Re: asterisk in layout file

2009-06-10 Thread Romain Guy

The asterisk is used to access private resources. Do NOT use it, it
will automatically break with the next update of Android. This
mechanism can only be used with applications that are compiled at the
same time as the entire system. Unlike private Java APIs, which may or
may not disappear/break with a new release of the system, private
resources are pretty much guaranteed to change.

A resource is identified by a generated number. Public resources have
a number that stays the same from release to release whereas private
resources get a different number every time.

On Wed, Jun 10, 2009 at 12:20 AM, Alfredalfredwang1...@gmail.com wrote:

 I noticed that in Android source code, layout file, there are 2 ways
 to reference a resource, could someone tell me what's the difference?

 android:icon=@*android:drawable/ic_menu_stop
 android:icon=@android:drawable/ic_menu_recent_history

 




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: TextView Ellipsize: Questions

2009-06-10 Thread Romain Guy

 1) Is there anyway to get ellipsize to work on a multiline TextView?
 So that the ellipses are shown at the end of the text, rather than at
 the end of the line? If not what is the best way to handle this on my
 own?]]

That's already what it does, see the Home screen's list of apps for instance.

 2) Is there any way to change the character used for eellipsize? For
 example, use ... [Read More], this obviously coincides with question
 1 above since one wouldn't want to take half of the single line to say
 read more, but on a multiline, it would be nice to be able to have
 like 3 or 4 lines and then a read more? Maybe there is a better way to
 do this that I haven't figured out yet?

Not at the moment. Patches are most welcome though :)

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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] Using the touchscreen and trackball with the GLSurfaceView

2009-06-10 Thread MrChaz

I've run into an issue where performing a lot of touch events seem to
block the move events from the trackball.
Anyone else run into this issues?
I can't use the Thread.sleep() fix because that will obviously stop
all input, so I'm hoping someone has been able to throttle the touch
command without effecting the move ones.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using the touchscreen and trackball with the GLSurfaceView

2009-06-10 Thread Streets Of Boston

I actually do use the Thread.sleep as a hack (i don't like it, but it
works...)
It just sleeps for just 20 milli seconds, though. It's enough for a
notable improvement in the frame-rate of the other thread (game-
thread) and not too big to miss input events.
I only do it on the ACTION_MOVE.


On Jun 10, 1:12 pm, MrChaz mrchazmob...@googlemail.com wrote:
 I've run into an issue where performing a lot of touch events seem to
 block the move events from the trackball.
 Anyone else run into this issues?
 I can't use the Thread.sleep() fix because that will obviously stop
 all input, so I'm hoping someone has been able to throttle the touch
 command without effecting the move ones.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Change Spinner Typeface?

2009-06-10 Thread Mark Murphy

polyclefsoftware wrote:
 I want to apply a non-native font to widgets in my app. This is
 working fine for TextViews and Buttons, which have a setTypeface
 method. The code below works just great for my button:
 
 Java:
 Typeface face = Typeface.createFromAsset(getAssets(), fonts/
 my_font.ttf);
 playButton = (Button) findViewById(R.id.play_button);
 playButton.setTypeface(face);
 
 
 But I just can't seem to figure out how to apply the font to a
 Spinner. Any ideas?

You would need to apply it to the Views returned by your Adapter you
give to the Spinner. Since TTF typefaces cannot be applied to layouts in
XML, you will probably need to subclass your adapter and override
getView() (or newView() if a CursorAdapter), let the superclass do its
thing, then find and adjust the font on your TextView inside the View
the superclass creates.

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

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

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



[android-developers] Unhelpful SQLite3 error msg (SQL error: not an error). Can't modify database

2009-06-10 Thread George

I frequently encounter this message when I try to update a table (to
enter a proxy) in the database using adb shell.

$ adb shell
#sqlite3 /data/data/com.android.providers.settings/databases/
settings.db
sqlite SELECT * FROM secure;
SQL error: not an error
sqlite

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