[android-developers] Re: How to connect internet through android emulator application

2011-05-03 Thread vamsi prakash

Which Android SDK platform you are using? will it work for 2.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] Re: Database updates

2011-05-03 Thread Chambras
where did you change the version? in the manifest file or in the java class?

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

[android-developers] Re: I keep on getting 401 when sending msg to C2DM server

2011-05-03 Thread Chambras
how did you get the auth token?

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

[android-developers] In-app Billing

2011-05-03 Thread David Toledo
Hi All

I cannot execute the app the test dungeon test .
http://developer.android.com/intl/de/guide/market/billing/billing_testing.html#billing-testing-real

Appears the following error:
The market billing service is not available at this time. You can continue
to use this app but you won't be able to make purchases

I have the last version from market 2002306 and android 2.1 my handset is
Motorola A853, my country is Peru and my account is from the denmark, my
account is the developer account

What is the problem?

Thanks
David

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

2011-05-03 Thread Zsolt Vasvari
I just got an OTA notification to update my Nexus One to version
2.3.4.

Where is a release notes for this update?  As a developer, it would be
nice to know what's has changed in the platform.

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


Re: [android-developers] Re: Force Close on Click in Calendar after i delete all information set in it

2011-05-03 Thread Alok Kulkarni
Thanks all for your vauable inputs,@Dianne I understood all ur
points,I don't have much options but i will hv to take care device
wise(That looks impossible considering the 100's of different devices
pouring in everyday) .. :)
 @TreKing, i will go thru the Google Calendar APIs..

Thanks,
Alok
On Tue, May 3, 2011 at 3:58 AM, Dianne Hackborn hack...@android.com wrote:
 maxSdkVersion won't give you a full guarantee of this -- it will tell Market
 to hide it from the newer platform versions if someone is trying to install
 it, but you should expect to still end up running on newer versions due to
 people installing it on an older version and then getting a platform update
 to the newer version.

 On Mon, May 2, 2011 at 6:20 PM, Jens dunkingbikk...@gmail.com wrote:

 It's especially problematic if you're trying to work with closed
 source, such as Android 3.0 - you should consider setting
 maxSdkVersion to prevent people from seeing your app on 3.0.

 On 2 Maj, 15:34, Dianne Hackborn hack...@android.com wrote:
  You can expect individual devices to behave differently when you are
  using
  private APIs like these, regardless of platform version.  Writing code
  like
  this is going to be a continual source of trouble for you.
 
 
 
  On Mon, May 2, 2011 at 4:36 AM, Alok Kulkarni kulsu...@gmail.com
  wrote:
   Hi All,
    I am trying to remove all Calendar related entries from a
   phone(Galaxy
   tab)
   Here is the code
 
   /**
           * Deletes all calendar info
           */
          private boolean _deleteCalendarInfo() {
                  try {
 
                          String uriPrefix;
                          if (Build.VERSION.SDK_INT =
   Build.VERSION_CODES.ECLAIR_MR1) {
                                  uriPrefix = content://calendar/;
                          } else {
                                  uriPrefix =
   content://com.android.calendar/;
                          }
 
                          int cnt =
   contentResolver.delete(Uri.parse(uriPrefix
   + events),
   null, null);
                          Log.i(Data Wipe,Calendar events deleted
   Count
   +cnt);
                          contentResolver.delete(Uri.parse(uriPrefix +
   calendars), null,
                                          null);
                          Log.i(Data Wipe,Calendars events deleted
   Count
   +cnt);
                  } catch (Exception e) {
                          // TODO Auto-generated catch block
                          e.printStackTrace();
                          Log.i(Data Wipe,Calendar delete
   failed+e.toString());
                          return false;
                  }
                  return true;
          }
 
   The code executes successfully, but after that when i go into calendar
   manually and try to add an event, it is giving force close with
   following error
   android.database.CursorIndexOutOfBoundsException: Index 0 requested,
   with a size of 0
 
   Detailed stack trace:-
 
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412): Caused by:
   android.database.CursorIndexOutOfBoundsException: Index 0 requested,
   with a size of 0
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
   android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
 
  
   android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
 
  
   android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:84)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
   android.database.CursorWrapper.getInt(CursorWrapper.java:123)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
   com.android.calendar.EditEvent.setCalendarData(EditEvent.java:4098)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
   com.android.calendar.EditEvent.onCreate(EditEvent.java:2333)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
  
   android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     at
  
   android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
   05-02 14:02:08.077: ERROR/AndroidRuntime(3412):     ... 11 more
 
   I have probably found  what the problem is on Stack Overflow.It states
   Query is returning 0 rows, which is why you are getting an error
   attempting to use the 1st row of a 0-row Cursor
 
   Is there any better way to Delete all calendar info ?
   Thanks,
   Alok
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
   android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Dianne Hackborn
  Android framework engineer
  

Re: [android-developers] Android 2.3.4 on Nexus One

2011-05-03 Thread Nikolay Elenkov
On Tue, May 3, 2011 at 4:09 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 I just got an OTA notification to update my Nexus One to version
 2.3.4.

 Where is a release notes for this update?  As a developer, it would be
 nice to know what's has changed in the platform.



I don't think there's even been a changelog. Head over to XDA, someone
has probably already taken it apart, so that's your best chance to
get more info. AFAIK, 2.3.4 offers video chat on Nexus S, so
the major thing is probably video performance tuning/drivers.

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

2011-05-03 Thread Zsolt Vasvari
 I don't think there's even been a changelog.

Sure there has.  Here's the one for 2.3.3:

http://developer.android.com/sdk/android-2.3.3.html

And yes, I tried changing the URL to 2.3.4 and got a 404.

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


Re: [android-developers] Re: Android 2.3.4 on Nexus One

2011-05-03 Thread Nikolay Elenkov
On Tue, May 3, 2011 at 4:26 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 I don't think there's even been a changelog.

 Sure there has.  Here's the one for 2.3.3:

 http://developer.android.com/sdk/android-2.3.3.html

 And yes, I tried changing the URL to 2.3.4 and got a 404.


That's the SDK/platform changelog. With 2.3.3 they actually raised the API
level to 10 (new NFC APIs). I thought you meant the build (ROM) changelog.
If they raise the API level again (kind of unlikely, though), there should be a
 platform changelog at some point.

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


[android-developers] Re: problem with Linkify.addLinks(

2011-05-03 Thread beginer
Thanks Mark
I seee in the LogCat and it said:

05-03 08:05:15.895: DEBUG/AndroidRuntime(339): Shutting down VM
05-03 08:05:15.895: WARN/dalvikvm(339): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main
05-03 08:05:16.051: ERROR/AndroidRuntime(339):
java.lang.NullPointerException
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
net.sgoliver.AndroidXml$EventoAdapter.getView(AndroidXml.java:147)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.AbsListView.obtainView(AbsListView.java:1315)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.makeAndAddView(ListView.java:1727)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.fillDown(ListView.java:652)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.fillFromTop(ListView.java:709)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.ListView.layoutChildren(ListView.java:1580)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.AbsListView.onLayout(AbsListView.java:1147)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.View.layout(View.java:7035)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.os.Looper.loop(Looper.java:123)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
android.app.ActivityThread.main(ActivityThread.java:4627)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
java.lang.reflect.Method.invokeNative(Native Method)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
java.lang.reflect.Method.invoke(Method.java:521)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
dalvik.system.NativeStart.main(Native Method)


Do you known what happend?

Thanks

On Apr 29, 9:43 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Apr 28, 2011 at 8:03 AM, beginer j.ur...@gmail.com wrote:
  I want to add a link in my ListView,
  I am using this code:

   TextView tv = (TextView)findViewById( R.id.link2_view );
   tv.setText(www.google.es);
   Linkify.addLinks( tv,Linkify.WEB_URLS );

  but don't work

 HTTP URLs have an http:// in front of them.

  The Android emulator said: The application has stopped
  unexpectecly .please try again.

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.

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

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

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


[android-developers] Show Context Menu other than on long press?

2011-05-03 Thread MagouyaWare
I have an app that will do different things for the following actions
on a view:
- Swipe Up
- Swipe Down
- Single Press
- Double Press
- Long Press

One of the new features I am working on is the providing a way for the
user to customize what each of those actions do.  Everything is coming
along nicely except when it comes to displaying a Context Menu.

The current behavior in my app is that a long press will display the
context menu (and that will be the default setup once the new features
are implemented as well).  I have been setting up the context menu
functionality by calling setOnCreateContextMenuListener() on the view,
but when I use this method the view is automatically set up to display
the context menu with a long press.

I have not been able to find anything on StackOverflow, Google or this
forum that would indicate how to accomplish this.

If it is not possible then I will just scrap the ability to customize
the context menu action... Just seems less polished to only allow some
customization...

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


Re: [android-developers] Filtering NFC intents, NDEF message external type

2011-05-03 Thread pubu he
Have you tried to use techlist for filtering? I think it should work now.

On Mon, May 2, 2011 at 6:23 PM, Gorka gork...@gmail.com wrote:

 Hi,

 I am trying to work with NDEF and external message types.

 I have defined my NDEF message as you can see there:
 urn:nfc:ext:busInfo.company.com. I can see the message is correct
 using some applications I have instaled in my PC.

 When the Nexus detects the tag, I select the tagReader application and
 it says the tag format is unknown, what I guess is correct. If I
 choose my application, I use the getTNF and getID methods and I see
 ExternalType and my company name, so it is working great.

 What I want to do is to filter the application to be opened using the
 NDEF message type. Rigth now I can filter text messages as I defined
 in the documentation:

 intent-filter
action android:name=android.nfc.action.NDEF_DISCOVERED/
 
data android:mimeType=text/* /

category
 android:name=android.intent.category.DEFAULT/
/intent-filter --

 I would like to do something similar for unknown message type and
 filter the application to be opened directly in my Manifest file. I
 mean, change the data android:mimeType by something where I would set
 the ID of my company, so that it would be opened without having to
 select it from the dispatcher. Is that possible¿¿

 By the way, I cannot filter smartposter and URI NDEF message types.
 Could someone tell me how to do this??

 Thanks a lot,
 Gorka.

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

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

[android-developers] Re: Database updates

2011-05-03 Thread harsh chandel
can you put the code

On May 3, 5:58 am, Albert Rosa rosalb...@gmail.com wrote:
 So this is my first time working with android and the sqlite db. I followed
 the instructions and was able to have a db connection where i was able to
 create and edit records. However i changed the schema of the db just to make
 it easier on me.

 Here is when i get slapped, i updated the version number, and modified the
 create statement to reflect the change. The onUpdate function is not being
 hit when i run the app again.

 Im not sure what I may be doing wrong. Any help suggestions are greatly
 welcomed and appreciated.

 Thanks for the help!

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


[android-developers] Re: How to get MD5 fingerprint for google maps in windows 7 ?

2011-05-03 Thread harsh chandel
create a folder in one of the drives which has file name keystore
please use this location while giving set command you find  on net to
generate md5

On May 3, 12:23 am, Goutom goutom.sust@gmail.com wrote:
 Hello TreKing,
       u dont need to read the documentation.
 Regards,
          GoutomOn Wed, Apr 20, 2011 at 10:56 AM, TreKing 
 treking...@gmail.com wrote:
  On Fri, Apr 15, 2011 at 4:12 PM, Goutom goutom.sust@gmail.com wrote:

  How to get MD5 fingerprint in windows 7(64 bit) to use  google maps  in my
  app?

  Have you tried reading the documentation?

  -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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

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


Re: [android-developers] Re: problem with Linkify.addLinks(

2011-05-03 Thread Kostya Vasilyev

Something is null at line 147 in your AndroidXml.java.

-- Kostya

03.05.2011 12:11, beginer ?:

05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main
05-03 08:05:16.051: ERROR/AndroidRuntime(339):
java.lang.NullPointerException
05-03 08:05:16.051: ERROR/AndroidRuntime(339): at
net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*)



--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Android 2.3.4 on Nexus One

2011-05-03 Thread Zsolt Vasvari
Is this the first X.Y.Z release where Z changed without an SDK level
increase?

On May 3, 3:39 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, May 3, 2011 at 4:26 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
  I don't think there's even been a changelog.

  Sure there has.  Here's the one for 2.3.3:

 http://developer.android.com/sdk/android-2.3.3.html

  And yes, I tried changing the URL to 2.3.4 and got a 404.

 That's the SDK/platform changelog. With 2.3.3 they actually raised the API
 level to 10 (new NFC APIs). I thought you meant the build (ROM) changelog.
 If they raise the API level again (kind of unlikely, though), there should be 
 a
  platform changelog at some point.

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


Re: [android-developers] Re: Convert tamil unicode character to tamil text

2011-05-03 Thread subhashini alaguchokku
Hi Mr.Senthil!

Thanks alot for your response! but im developing  web application(current
news),  this is free app(social), so every one download that app, than how
is it possible? so every one(who download that app) need to installed that
UTF16(Latha or Aksharamala) in their device(android)?

Thanks,
suba


On Mon, May 2, 2011 at 7:20 PM, Senthil ACS acs@gmail.com wrote:

 Madam,

 U need to have UTF16 font (Latha or Aksharamala) installed on the
 device. The font typically tells how to draw on the screen. And every
 character is associated with a unicode character. Hence, try to find
 if u can place the font in the phone. If u have your android phone
 rooted, u can play with the file system.

 Regards
 acs

 On May 2, 11:54 am, subhashini alaguchokku
 subhashini.andr...@gmail.com wrote:
  Hi!
 
  Thanks Zsolt Vasvari , Now i do live web application(android). I want to
  disply tamil news. so i now get response(unicode characters) from
  server(using Json).
 
  like this unicode characters get from server,
 
  #2970;#3014;#2985;#3021;#2985;#3016;
  #2986;#3015;#2999;#2985;#3021; #2999;#3019;
 
  I need to convert this code to tamil font. this is  possible?
 
  Thanks and Regards,
  suba
 
 
 
  On Mon, May 2, 2011 at 12:06 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   What have you tried?
 
   I know, you cannot e-mail me privately.
 
   On May 2, 2:26 pm, subhashini alaguchokku
   subhashini.andr...@gmail.com wrote:
Hi!
 
How to convert the tamil unicode character into tamil text in
 android,
   this
is possible in android? if anyone know give me ideas.
 
Thanks and Regards,
suba
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: Unable to install latest Android SDK on Ubuntu 10.10

2011-05-03 Thread SJ
Hi Scott

Ubuntu 10.10 is smoothest platform I run so far.(after Windows :)
So either you have corrupted Linux - broken files f.e. Or you have
broken RAM.

Boris

On May 2, 6:58 pm, Scott kalad...@gmail.com wrote:
 Hi folks,

 I've been trying in vein for a few days to get the latest Android SDK
 to install on Ubuntu 10.10.  Here's what I'm up to:

 1) Grabbed and unpacked the starter package
 2) Ran tools/android
 3) Clicked Available Packages
 4) Selected all under Android Repository
 5) Clicked Install selected packages

 And kaboom (below).

 I've tried it with both OpenJDK (1.6) and Sun JDK (1.6), but no dice.
 Any suggestions would be greatly appreciated.

 Scott

 Error log:
 *** glibc detected *** java: malloc(): memory corruption:
 0x7f6968b12300 ***
 === Backtrace: =
 /lib/libc.so.6(+0x774b6)[0x7f69720f84b6]
 /lib/libc.so.6(+0x7b55f)[0x7f69720fc55f]
 /lib/libc.so.6(__libc_malloc+0x6e)[0x7f69720fd38e]
 /usr/lib/libpixman-1.so.0(+0x1724b)[0x7f69629c624b]
 /usr/lib/libpixman-1.so.0(pixman_image_create_solid_fill+0x9)
 [0x7f69629e78b9]
 /usr/lib/libpixman-1.so.0(pixman_image_fill_boxes+0x23a)
 [0x7f69629e163a]
 /usr/lib/libcairo.so.2(+0x27c68)[0x7f6964830c68]
 /usr/lib/libcairo.so.2(+0x48848)[0x7f6964851848]
 /usr/lib/libcairo.so.2(+0x4b885)[0x7f6964854885]
 /usr/lib/libcairo.so.2(+0x48861)[0x7f6964851861]
 /usr/lib/libcairo.so.2(+0x4cac7)[0x7f6964855ac7]
 /usr/lib/libcairo.so.2(+0x4cc92)[0x7f6964855c92]
 /usr/lib/libcairo.so.2(+0x4d8d9)[0x7f69648568d9]
 /usr/lib/libcairo.so.2(+0x4a191)[0x7f6964853191]
 /usr/lib/libcairo.so.2(+0x2282a)[0x7f696482b82a]
 /usr/lib/libcairo.so.2(cairo_stroke_preserve+0x1b)[0x7f696482249b]
 /usr/lib/libcairo.so.2(cairo_stroke+0x9)[0x7f69648224c9]
 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(murrine_draw_focus+0x5e)
 [0x7f696192815e]
 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(+0xf724)[0x7f6961918724]
 /usr/lib/libgtk-x11-2.0.so.0(+0x240008)[0x7f6966d70008]
 /usr/lib/libgtk-x11-2.0.so.0(+0x240115)[0x7f6966d70115]
 /usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7f6966c6a9d8]
 /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7f6963550a6e]
 /usr/lib/libgobject-2.0.so.0(+0x24a30)[0x7f6963566a30]
 /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)
 [0x7f69635680eb]
 /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f6963568863]
 /usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7f6966d836df]
 /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7f6966c641b6]
 /tmp/swtlib-64/libswt-pi-
 gtk-3550.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1main_1do_1event
 +0xc)[0x7f6967192a9d]
 [0x7f696d02dca8]
 === Memory map: 
 0040-00409000 r-xp  08:01
 16385929                           /usr/lib/jvm/java-6-openjdk/jre/bin/
 java
 00608000-00609000 r--p 8000 08:01
 16385929                           /usr/lib/jvm/java-6-openjdk/jre/bin/
 java
 00609000-0060a000 rw-p 9000 08:01
 16385929                           /usr/lib/jvm/java-6-openjdk/jre/bin/
 java
 02448000-02c41000 rw-p  00:00
 0                                  [heap]
 e5a0-e6ec rw-p  00:00 0
 e6ec-f000 rw-p  00:00 0
 f000-f295 rw-p  00:00 0
 f295-faab rw-p  00:00 0
 faab-fbf5 rw-p  00:00 0
 fbf5-1 rw-p  00:00 0
 7f695ece-7f695ecf5000 r-xp  08:01
 59113551                   /lib/libgcc_s.so.1
 7f695ecf5000-7f695eef4000 ---p 00015000 08:01
 59113551                   /lib/libgcc_s.so.1
 7f695eef4000-7f695eef5000 r--p 00014000 08:01
 59113551                   /lib/libgcc_s.so.1
 7f695eef5000-7f695eef6000 rw-p 00015000 08:01
 59113551                   /lib/libgcc_s.so.1
 7f695eef6000-7f695ef4d000 r--p  08:01
 15597650                   /usr/share/fonts/truetype/ubuntu-font-
 family/Ubuntu-BI.ttf
 7f695ef4d000-7f695efaa000 r--p  08:01
 15597651                   /usr/share/fonts/truetype/ubuntu-font-
 family/Ubuntu-I.ttf
 7f695efaa000-7f695effc000 r--p  08:01
 15597649                   /usr/share/fonts/truetype/ubuntu-font-
 family/Ubuntu-B.ttf
 7f695effc000-7f695efff000 ---p  00:00 0
 7f695efff000-7f695f0fd000 rw-p  00:00 0
 7f695f0fd000-7f695f10 ---p  00:00 0
 7f695f10-7f695f1fe000 rw-p  00:00 0
 7f695f1fe000-7f695f203000 r-xp  08:01
 59113710                   /lib/libnss_dns-2.12.1.so
 7f695f203000-7f695f402000 ---p 5000 08:01
 59113710                   /lib/libnss_dns-2.12.1.so
 7f695f402000-7f695f403000 r--p 4000 08:01
 59113710                   /lib/libnss_dns-2.12.1.so
 7f695f403000-7f695f404000 rw-p 5000 08:01
 59113710                   /lib/libnss_dns-2.12.1.so
 7f695f404000-7f695f406000 r-xp  08:01
 59113589                   /lib/libnss_mdns4_minimal.so.2
 7f695f406000-7f695f605000 ---p 2000 08:01
 59113589                   /lib/libnss_mdns4_minimal.so.2
 7f695f605000-7f695f606000 r--p 1000 08:01
 59113589                   

Re: [android-developers] Re: Android 2.3.4 on Nexus One

2011-05-03 Thread Nikolay Elenkov
On Tue, May 3, 2011 at 6:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Is this the first X.Y.Z release where Z changed without an SDK level
 increase?


IIRC  2.2.1 and 2.2.2 didn't change the API level either.

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


[android-developers] Re: problem with Linkify.addLinks(

2011-05-03 Thread beginer
I resolved the problem, but known the link only appear sometimes. I
have a List View, and the both elements have a link, but in some
element appear the link and in others not.
Wht is the problem?
thaks very much

On May 3, 10:42 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Something is null at line 147 in your AndroidXml.java.

 -- Kostya

 03.05.2011 12:11, beginer ?:

  05-03 08:05:16.051: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main
  05-03 08:05:16.051: ERROR/AndroidRuntime(339):
  java.lang.NullPointerException
  05-03 08:05:16.051: ERROR/AndroidRuntime(339):     at
  net.sgoliver.AndroidXml$EventoAdapter.getView(*AndroidXml.java:147*)

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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] inflate popup menu items programatically

2011-05-03 Thread droid-stricken
Hi,

[I have posted the same query on StackOverflow forum as well. So,
kindly excuse the re-posting here - was not sure if this was a
beginner's level question or a beyond beginner's level]

I have a button in my activity, pressing upon which, the following
method gets called -

private ArrayListListView myListViewList;
private ArrayListMyListAdapter myAdapterList;

public void onPopupButtonClick(View button) {
Log.v(TAG, onPopupButtonClick);

PopupMenu popup = new PopupMenu(this, button);
Menu menu = popup.getMenu();

// how do i display the myListViewList as items of in this popup
menu
// i.e how do i inflate myListViewList into menu object?

}
I know how to do this programatically for an activity - creating
linearlayouts and listViews and finally using addContentView on the
activity's context.

But finding it hard to do the same for the popup menu scenario as
described above.

Any help is greatly appreciated.

TIA.

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


Re: [android-developers] inflate popup menu items programatically

2011-05-03 Thread Kostya Vasilyev

PopupMenu displays Menu's, not ListView's, at least as seen from the API.

Perhaps you can use an AlertDialog with this instead:

http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setSingleChoiceItems(android.widget.ListAdapter, 
int, android.content.DialogInterface.OnClickListener)


If menu is what you really want, create a Menu from code and add items 
from the adapter, using:


http://developer.android.com/reference/android/view/Menu.html#add(int, 
int, int, java.lang.CharSequence)


-- Kostya

03.05.2011 14:33, droid-stricken пишет:

Hi,

[I have posted the same query on StackOverflow forum as well. So,
kindly excuse the re-posting here - was not sure if this was a
beginner's level question or a beyond beginner's level]

I have a button in my activity, pressing upon which, the following
method gets called -

private ArrayListListView  myListViewList;
private ArrayListMyListAdapter  myAdapterList;

public void onPopupButtonClick(View button) {
 Log.v(TAG, onPopupButtonClick);

 PopupMenu popup = new PopupMenu(this, button);
 Menu menu = popup.getMenu();

 // how do i display the myListViewList as items of in this popup
menu
 // i.e how do i inflate myListViewList into menu object?

}
I know how to do this programatically for an activity - creating
linearlayouts and listViews and finally using addContentView on the
activity's context.

But finding it hard to do the same for the popup menu scenario as
described above.

Any help is greatly appreciated.

TIA.




--
Kostya Vasilyev -- http://kmansoft.wordpress.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] how to decode bytes from mp3 to pcm ?

2011-05-03 Thread Hitendrasinh Gohil
hi,

i want to decode mp3 bytes to pcm so that  i can write that bytes to
Audiotrack on every read.how can i do that.

can anyone suggest me?

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


Re: [android-developers] Re: Force Close on Click in Calendar after i delete all information set in it

2011-05-03 Thread lbendlin
what happens if you add a single dummy calendar entry (far in the past, so 
it doesn't matter)  after deleting all items?

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

2011-05-03 Thread Omkar
By registering the receiver in either app context / manifest file,
would I be saved from not having constantly run my service in
background ? Bcos I also know that charging / discharging thru usb /
power supply would occur once a day or may once in 2 days and it
doesn't make sense to keep a constantly monitoring when the phone is
connected for charging / disconnected from charger. If something lets
my service know that charger has been connected / disconnected, within
my OnReceive, I can check what intent.getAction it is and then take a
correct action accordingly.

Pls suggest.
Thanks
Omkar

On May 2, 6:58 pm, srihari babu hisriharib...@gmail.com wrote:
 register this receiver with application context.
 That would solve ur problem.

 second possible solution is that register receiver in manifest file.

 Regards,
 Srihari.R

 On May 2, 1:06 pm, Omkar omkar.ghai...@gmail.com wrote:



  Hi,
      I have created a activity to show battery information when
  started, but I would preferably want to keep it constantly running in
  the background as a service and make a log of when the charging
  started, when it ended, how long the battery charge lasted etc etc.
  If I keep it in activity, user must run this app when charging is
  started, which isn't make it much useful. I am not sure how do I set
  my app to trigger automatically when charging is started, disconnected
  etc.
  Btw, I have created a broadcastreceiver for catching
  Intent.ACTION_BATTERY_CHANGED and its working fine, but only from the
  activity.

  Pls suggest what change should I be doing to my app, so that whenever
  there is a charging / discharging change thru charger plugin / usb
  plugin, my app shld log it in file.

  Thanks
  Omkar- Hide quoted text -

 - Show quoted text -

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


Re: [android-developers] Re: Battery Log using service

2011-05-03 Thread Kostya Vasilyev
You cannot receive ACTION_BATTERY_CHARGED through a receiver declared in 
the manifest.


Registering a receiver with the Application context doesn't help if the 
process gets killed.


The battery action is a sticky broadcast, so you can get the most recent 
value by calling registerReceiver with a null receiver at any time, 
perhaps driven by AlarmManager.


-- Kostya

03.05.2011 15:12, Omkar пишет:

By registering the receiver in either app context / manifest file,
would I be saved from not having constantly run my service in
background ? Bcos I also know that charging / discharging thru usb /
power supply would occur once a day or may once in 2 days and it
doesn't make sense to keep a constantly monitoring when the phone is
connected for charging / disconnected from charger. If something lets
my service know that charger has been connected / disconnected, within
my OnReceive, I can check what intent.getAction it is and then take a
correct action accordingly.

Pls suggest.
Thanks
Omkar




--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Battery Log using service

2011-05-03 Thread Omkar
Ok, so if I let the intent Action_Power_Connected trigger my service
by declaring this intent filter in the manifest and then let my
service log the required data by creating a registerReceiver for the
Action_Battery_Changed within the code, then I would be saved by not
having the service constantly running. The 1st intent being an offline
intent, would allow my app service to be triggered automatically
thereby starting the service and then service would actually do its
work and close itself after its work is done.. Is that ok ?

Thanks
Omkar

On May 3, 4:32 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 You cannot receive ACTION_BATTERY_CHARGED through a receiver declared in
 the manifest.

 Registering a receiver with the Application context doesn't help if the
 process gets killed.

 The battery action is a sticky broadcast, so you can get the most recent
 value by calling registerReceiver with a null receiver at any time,
 perhaps driven by AlarmManager.

 -- Kostya

 03.05.2011 15:12, Omkar пишет:

  By registering the receiver in either app context / manifest file,
  would I be saved from not having constantly run my service in
  background ? Bcos I also know that charging / discharging thru usb /
  power supply would occur once a day or may once in 2 days and it
  doesn't make sense to keep a constantly monitoring when the phone is
  connected for charging / disconnected from charger. If something lets
  my service know that charger has been connected / disconnected, within
  my OnReceive, I can check what intent.getAction it is and then take a
  correct action accordingly.

  Pls suggest.
  Thanks
  Omkar

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Douglas Selph
I turned on the logging in 
frameworks/base/telephony/java/com/android/internal/telephony/RIL.java.

I then rebuilt and reflashed my developer phone. 

But I don't see any of the messages in the log.

I also turned on Log.d messages in packages/apps/Phone and I DO see them 
just fine.

Out of desperation I put some Log.e() messages in there as well. Still 
nothing. I have no idea why it's not working. There is something 
fundamentally different in the way android.java.Log is handled in 
'frameworks' as opposed to 'packages/apps'.

Has anybody ever seen a Log.d or Log.e message appear from internal 
framework source?
Does anybody have any clues here?

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

[android-developers] Re: Widget-specific Preferences

2011-05-03 Thread Jake Colman

Kostya,

I've been noodling around thinking about this problem while working on
other features but I'm stumped on one part of it.  When the Preference
Activity is launched as a Configuration Activity the intent contains
widget ID.  But I can also launch the same Activity if the user touches
the widget so that the user can reconfigure the widget even after it has
been installed. In that situation, how can I know which widget is being
reconfigured?  The widget ID is not part of the widget itself so I don't
how I can grab the ID of the specific widget that is being reconfigured.

...Jake



 KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV Well, in that case you already know the widget id for a
   KV particular instance of your configuration activity - it's passed
   KV in as an intent extra.

   KV  25.04.2011 1:21 пользователь Jake Colman col...@ppllc.com написал:
KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV 24.04.2011 19:35, Jake Colman пишет:

 If I use an onClickListener() and on
 SharedPreferenceChangeListener() to detect specific preference
 clicks or changes to a preference, I can parse out the widget
 ID from the key so that I know which specific widget has been
 effected. I can then make sure that I update just that specific
 widget accordingly. Can you think of a better way to do that?

   KV Umm... Sounds like you also want to present options for multiple
   KV widgets at the same time within a single preference activity?

   KV If so, I would not use the activity as the event listener.

   KV I'd create a class that encapsulates the complete set of
   KV preferences for one widget instance, serves as the event listener
   KV for the involved Preference objects, and knows its associated
   KV widget Id value. The activity would instantiate these objects as
   KV needed, one for each widget Id.

   KV I'd also use onPreferenceChange rather that
   KV onSharedPreferenceChanged, because the former uses a Preference
   KV reference you can switch on, without parsing preference keys.

Actually, no. :-)

I want to, for example, allow instance #1 to have a different label than
instance #2. If I continue to use my single Preference Activity which
has one listener for all widgets, it will need to know which widget's
key has been changed so that it can update that instance. Hm.
Unless I just update all instances all the time when any one instance's
preference is changed...


--
Jake Colman -- Android Tinkerer

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

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

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Access Androidify avatar from another app

2011-05-03 Thread TreKing
On Mon, May 2, 2011 at 11:03 PM, Dianne Hackborn hack...@android.comwrote:

 WTF.

 Yes nobody from Google ever talks to developers.  I mean, ever.  Anything
 you ever ask about anything Google is doing is just going to be asking in to
 a black hole because nobody from Google ever answers an e-mail let alone
 participates on a discussion forum.  It's as there are no visible people
 involved with Android at all.

 You are clearly bitter about some things, but good lord, let's have some
 perspective.


Dianne, I'm sorry if my post came off bitter as that was not the intent. I
realize you and many others from Google participate in this and many other
forums and I am by no means trying to paint some giant brush about every
single individual at Google. I think you know I've tried to make that much
clear in other discussions regarding the Android Market.

Please don't take me or my comments too seriously or personally =)

To elaborate, at least from my own experience using Google-developed apps,
getting actual support or questions answered about them is pretty much
impossible. Moreover, the OP was asking about pulling data out of a specific
app, which it was probably not designed to allow doing.

This app does not not have an email link on it's app page on the
Markethttps://market.android.com/details?id=com.google.android.apps.androidify,
nor on it's official site http://androidify.com/, so there's no clear way
of getting in touch with the developers. So, speaking frankly as I do,
getting in touch with that apps' *specific* developers and getting an answer
for the OP's question *for that specific app* is realistically not going to
happen.

I'm sorry if I did not make myself clear.

However, looking into this further, apparently this app in particular is
actually developed by another company and not Google and they do have a
contact page http://larvalabs.com/contact.php which I only found out by
checking the about section of the main app site after going to it from the
Market app since there was no email. That's quite a few hoops to jump
through to get in touch with an app's developers.

OP you may want to try that and see if they respond.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] AlertDialog with an mail-to link

2011-05-03 Thread dashman
I'd like to display an alert dialog text with an url
to an email address.

user can tap on the link and then mail program
opens.

how can i do 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: Views inside a custom ViewGroup not rendering after a size change

2011-05-03 Thread Michael Sims
For the benefit of the archives, I asked the same question on Stack Overflow
and it was answered by Romain Guy:

http://stackoverflow.com/questions/5852758/views-inside-a-custom-viewgroup-not-rendering-after-a-size-change

On Sun, May 1, 2011 at 8:19 PM, Michael Sims michael.h.s...@gmail.comwrote:

 I'm running into a problem that occurs when the containing FrameLayout is
 resized.  The current implementation removes all of the views that represent
 the events and attempts to add new ones and calculate their sizes based on
 the current size of the FrameLayout.  This work is being triggered via the
 onSizeChanged() method of View which is overridden in the FrameLayout.

 When the view is resized, this code is executed and the views are updated,
 however, none of them actually render on the screen... the views contained
 within the FrameLayout are simply not visible.  If I load the view in the
 hierarchyviewer tool, they are part of the view tree, and are outlined in
 the overview in the positions they should be in, but they do not display.
 (Note that the views are visible on the initial render of the FrameLayout...
 it's only after a resize that they disappear.)


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

Re: [android-developers] Re: Database updates

2011-05-03 Thread Albert Rosa
Yes I changed the VERSION number on both the dbHelper file as well as the 
manifest

below is the code for the db helper:

public class RecipeDbHelper extends SQLiteOpenHelper {


private static final String DATABASE_NAME = test;
private static final String DATABASE_TABLE = recipe;
private static final int DATABASE_VERSION = 10;

private static final String DATABASE_CREATE = CREATE TABLE recipe ( 
_id INTEGER PRIMARY KEY, title text not null, ingredients text not null, 
instructions text not null, mealtime INTEGER not null, calories INTEGER not 
null);;

private static final String INITIAL_SETUP = 
INSERT INTO recipe (_id, title, instructions,ingredients, 
mealtime, calories) 
+ VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and 
set aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray 
and saute veggies until soft.\n3. Add whisked eggs, cheese and dash salt and 
pepper and cook until eggs are firm. \n4. Serve on toasted english muffin with 
sliced pear on the side.',
+'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped 
tomatoes, spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 
Thomas Light Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to 
taste', 1, 124);
;

public RecipeDbHelper(Context context){
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

public void clearReset(SQLiteDatabase db) {
Log.w(Upgrading, Upgrading database from version);
db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
onCreate(db);
}

@Override
public void onCreate(SQLiteDatabase db){
db.execSQL(DATABASE_CREATE);
db.execSQL(INITIAL_SETUP);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int 
newVersion){
Log.w(Upgrading, Upgrading database from version  + 
oldVersion +  to 
+ newVersion + , which will destroy all old data);
db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
onCreate(db);
}

thanks again I truly appreciate it.

Albert Rosa
rosalb...@gmail.com
alb...@albert-rosa.com
(m) 718-825-7838
(aim) albertrosa2000
(gchat) rosalbert
(gvoice) (646) 389-7672

On May 3, 2011, at 4:18 AM, harsh chandel wrote:

 can you put the code
 
 On May 3, 5:58 am, Albert Rosa rosalb...@gmail.com wrote:
 So this is my first time working with android and the sqlite db. I followed
 the instructions and was able to have a db connection where i was able to
 create and edit records. However i changed the schema of the db just to make
 it easier on me.
 
 Here is when i get slapped, i updated the version number, and modified the
 create statement to reflect the change. The onUpdate function is not being
 hit when i run the app again.
 
 Im not sure what I may be doing wrong. Any help suggestions are greatly
 welcomed and appreciated.
 
 Thanks for the 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

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


Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Dianne Hackborn
No there is not anything different.  Did you try putting a breakpoint there
to see if the code is actually running

On Tue, May 3, 2011 at 9:11 AM, Douglas Selph douglasse...@gmail.comwrote:

 I turned on the logging in
 frameworks/base/telephony/java/com/android/internal/telephony/RIL.java.

 I then rebuilt and reflashed my developer phone.

 But I don't see any of the messages in the log.

 I also turned on Log.d messages in packages/apps/Phone and I DO see them
 just fine.

 Out of desperation I put some Log.e() messages in there as well. Still
 nothing. I have no idea why it's not working. There is something
 fundamentally different in the way android.java.Log is handled in
 'frameworks' as opposed to 'packages/apps'.

 Has anybody ever seen a Log.d or Log.e message appear from internal
 framework source?
 Does anybody have any clues here?

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




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

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

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

Re: [android-developers] Obtaining application icons.

2011-05-03 Thread TreKing
On Sat, Apr 30, 2011 at 10:51 AM, Dan Jin d.mcdonald...@gmail.com wrote:

 I have an activity that displays various statistics about
 installed/ running applications. I would like to obtain the icons of
 various installed/running applications to display along side these
 statistics. Could someone direct me to the proper classes/methods to
 research within the API?


Anything regarding other packages or activities will usually be managed by
http://developer.android.com/reference/android/content/pm/PackageManager.html

Then just search for icon on that page.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] New to Android

2011-05-03 Thread TreKing
On Sun, May 1, 2011 at 8:46 AM, sudharsanan kodi.su...@gmail.com wrote:

 I am new to android application development,can you people help to me to
 develop the application?and also where i can get the sample application?


http://developer.android.com/index.html
 http://developer.android.com/index.htmlWhy is that so difficult to find?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Douglas Selph
The code is being executed from the *Call Settings *UI interface (under 
settings). [I am trying to put in my own 'Voicemail Service' in].
Thus I am not allowed to 'debug' this code from eclipse. So I am trying to 
put in debug messages so I can see what is going on that way. 

I will try to put in some writes to an external file on the /sdcard to 
verify that this code (in internal.telephony) is actually being compiled and 
used. Based on what you said, somehow it must be using something else, but I 
have no idea what, and don't know why it would be set up that way.
 


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

Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Dianne Hackborn
You can debug the code from eclipse.  If you are making your own build of
the platform, you can debug anything you want.  Just attach the debugger to
the process after it has started.

On Tue, May 3, 2011 at 10:37 AM, Douglas Selph douglasse...@gmail.comwrote:

 The code is being executed from the *Call Settings *UI interface (under
 settings). [I am trying to put in my own 'Voicemail Service' in].
 Thus I am not allowed to 'debug' this code from eclipse. So I am trying to
 put in debug messages so I can see what is going on that way.

 I will try to put in some writes to an external file on the /sdcard to
 verify that this code (in internal.telephony) is actually being compiled and
 used. Based on what you said, somehow it must be using something else, but I
 have no idea what, and don't know why it would be set up that way.



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




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

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

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

Re: [android-developers] Re: Battery Log using service

2011-05-03 Thread Dianne Hackborn
On Tue, May 3, 2011 at 8:39 AM, Omkar omkar.ghai...@gmail.com wrote:

 Ok, so if I let the intent Action_Power_Connected trigger my service
 by declaring this intent filter in the manifest and then let my
 service log the required data by creating a registerReceiver for the
 Action_Battery_Changed within the code, then I would be saved by not
 having the service constantly running.


No you would not.  If you don't have anything actively running in your
process, it can be killed at any time.  The suggest to create an alarm to
wake up every 5 minutes is a good one.  That will actually be more robust
than having a service always running.

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

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

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

Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Douglas Selph
Well when I try and hit the debug button on any system process (for example, 
com.android.settings), in the Devices panel, I just get a message saying:

 *'No opened project found for com.android.settings. Debug session failed!'*
*
*
It also fails no matter what else you click on. For example, 
'com.android.music' or whatever.

This implies to me that you need an opened project associated with the code 
you want to debug.

The *com.android.settings* process is interacting with my process through an 
intent. So I am not able to put a stop in my application and step back into 
the calling settings process because it is happening indirectly.

(By the way, thanks for replying! Even being able to get this off my chest 
helps!)

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

Re: [android-developers] Fragments Map Support in Honeycomb

2011-05-03 Thread Varun Tewari
@TreKing: Thanks for sharing this thread.

I actually fixed my problem by moving my fragments to a Root MapActivity.
While inflating mapView with other children of Fragment didn't cause any
problem this way.
Hope this will be helpful for others.

Thanks  Reg,
Varun

On Mon, May 2, 2011 at 11:29 PM, TreKing treking...@gmail.com wrote:

 On Mon, May 2, 2011 at 12:54 PM, Varun Tewari 
 varuntewari2...@gmail.comwrote:

 Is it possible to achieve with current Fragment Support ?



 http://groups.google.com/group/android-developers/browse_thread/thread/b705bbd72d28d000


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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

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

Re: [android-developers] AlertDialog with an mail-to link

2011-05-03 Thread Kostya Vasilyev

The default TextView used by AlertDialog doens't have autoLink set.

Create your own TextView (doesn't matter: xml or code) and use it with 
AlertDialog.Builder.setView().


The standard AlertDialog layout can be found here, so you can make your 
TextView look the same:


android-sdk-windows\platforms\android-API level\data\res\layout

-- Kostya

03.05.2011 17:42, dashman пишет:

I'd like to display an alert dialog text with an url
to an email address.

user can tap on the link and then mail program
opens.

how can i do this.




--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Filtering NFC intents, NDEF message external type

2011-05-03 Thread Gorka
Hi,

Thanks for your response.

As far as I know, using techfiltering I can filter all the tags that
are ndef enabled. However, I cannot filter message types like text,
smart poster, ... or tnf types. If I am wrong please let me know and
tell me where can I take a look to learn how to use the techlists for
filtering.

Regards, Gorka.

On 3 mayo, 10:16, pubu he pubu...@gmail.com wrote:
 Have you tried to use techlist for filtering? I think it should work now.







 On Mon, May 2, 2011 at 6:23 PM, Gorka gork...@gmail.com wrote:
  Hi,

  I am trying to work with NDEF and external message types.

  I have defined my NDEF message as you can see there:
  urn:nfc:ext:busInfo.company.com. I can see the message is correct
  using some applications I have instaled in my PC.

  When the Nexus detects the tag, I select the tagReader application and
  it says the tag format is unknown, what I guess is correct. If I
  choose my application, I use the getTNF and getID methods and I see
  ExternalType and my company name, so it is working great.

  What I want to do is to filter the application to be opened using the
  NDEF message type. Rigth now I can filter text messages as I defined
  in the documentation:

  intent-filter
                 action android:name=android.nfc.action.NDEF_DISCOVERED/

                         data android:mimeType=text/* /

                         category
  android:name=android.intent.category.DEFAULT/
             /intent-filter --

  I would like to do something similar for unknown message type and
  filter the application to be opened directly in my Manifest file. I
  mean, change the data android:mimeType by something where I would set
  the ID of my company, so that it would be opened without having to
  select it from the dispatcher. Is that possible¿¿

  By the way, I cannot filter smartposter and URI NDEF message types.
  Could someone tell me how to do this??

  Thanks a lot,
  Gorka.

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

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


Re: [android-developers] Re: Database updates

2011-05-03 Thread Kostya Vasilyev

No idea what clearReset is, but

Call SQLiteDatabase.getVersion() somewhere, just to make sure your db's 
version is not already 10 (which would mean that there is nothing to 
upgrade).


-- Kostya

PS - Can I use butter instead of cooking spray? :)

03.05.2011 18:09, Albert Rosa пишет:

Yes I changed the VERSION number on both the dbHelper file as well as the 
manifest

below is the code for the db helper:

public class RecipeDbHelper extends SQLiteOpenHelper {


private static final String DATABASE_NAME = test;
private static final String DATABASE_TABLE = recipe;
private static final int DATABASE_VERSION = 10;

private static final String DATABASE_CREATE = CREATE TABLE recipe ( _id 
INTEGER PRIMARY KEY, title text not null, ingredients text not null, instructions text 
not null, mealtime INTEGER not null, calories INTEGER not null);;

private static final String INITIAL_SETUP =
INSERT INTO recipe (_id, title, instructions,ingredients, mealtime, 
calories) 
+ VALUES (1, 'Triple Veggie Scramble','1. Chop all veggies and set 
aside. Whisk eggs in bowl.\n2. Spray nonstick skillet with cooking spray and saute 
veggies until soft.\n3. Add whisked eggs, cheese and dash salt and pepper and cook until 
eggs are firm. \n4. Serve on toasted english muffin with sliced pear on the side.',
+'3 eggs (1 whole + 2 whites) \n1\\2 cup each chopped tomatoes, 
spinach and mushrooms\n1 oz reduced fat shredded cheddar cheese\n1 Thomas Light 
Multigrain english muffin\nSmall pear, sliced.\nsalt/pepper to taste', 1, 124);
;

public RecipeDbHelper(Context context){
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

public void clearReset(SQLiteDatabase db) {
Log.w(Upgrading, Upgrading database from version);
db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
onCreate(db);
}

@Override
public void onCreate(SQLiteDatabase db){
db.execSQL(DATABASE_CREATE);
db.execSQL(INITIAL_SETUP);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int 
newVersion){
Log.w(Upgrading, Upgrading database from version  + oldVersion + 
 to 
 + newVersion + , which will destroy all old data);
 db.execSQL(DROP TABLE IF EXISTS + DATABASE_TABLE);
 onCreate(db);
}

thanks again I truly appreciate it.

Albert Rosa
rosalb...@gmail.com
alb...@albert-rosa.com
(m) 718-825-7838
(aim) albertrosa2000
(gchat) rosalbert
(gvoice) (646) 389-7672



--
Kostya Vasilyev -- http://kmansoft.wordpress.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


Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Kostya Vasilyev
Sounds like your project's process has not been brought into memory and 
run just yet, when you're trying to attach.


Two things you could try:

1 - Place this somewhere (where covenient) in your code:

http://developer.android.com/reference/android/os/Debug.html#waitForDebugger()

2 - Create a dummy main activity so you can launch your process from 
Eclipse for debugging.


-- Kostya

03.05.2011 19:02, Douglas Selph ?:
Well when I try and hit the debug button on any system process (for 
example, com.android.settings), in the Devices panel, I just get a 
message saying:


*'No opened project found for com.android.settings. Debug session 
failed!'*

*
*
It also fails no matter what else you click on. For example, 
'com.android.music' or whatever.


This implies to me that you need an opened project associated with the 
code you want to debug.


The *com.android.settings* process is interacting with my process 
through an intent. So I am not able to put a stop in my application 
and step back into the calling settings process because it is 
happening indirectly.


(By the way, thanks for replying! Even being able to get this off my 
chest helps!)


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



--
Kostya Vasilyev -- http://kmansoft.wordpress.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] Competitor attack

2011-05-03 Thread Brill Pappin
If anyone wants to see an example of a competitor attack, see:
https://market.android.com/details?id=sixgreen.aos.itap

There is no proof of course but several of the recent ratings/comments show 
the pattern that is common in one of these attacks. Some of the clues are; 
no specific criticism, several 1 stars in a row when the app usually gets 4 
or 5 stars, baby language or language that looks like it comes from 
someone too young to own a credit card.
If you look back in the reviews, you will see a lot of good reviews and some 
not so good with specific criticisms, which IMO are fine (and useful to us 
developers) but you will also see another attack that came against this 
particular product (look for Mark and Lisa together on the second page).

This is a real pain in the ass, as its being done solely to drop the rating 
on the app and drive consumers to something else. Whats really a piss off is 
that there is no way to deal with it except to add your own comment to the 
reviews.

I think Google needs to do something about this, or at least give us a 
method to flag those types of comments so that Google can investigate them. 
There must be heuristics that can be used for detection of this kind of 
behaviour with all the data they keep (I can think of a few already).

If anyone knows another way to catch the competitor thats doing it, i'd be 
glad to hear it!

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

[android-developers] Re: Restricted access to Content Provider

2011-05-03 Thread Dom
Hi, did you solve this problem of restricting access to your content 
provider to certain applications?

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

Re: [android-developers] Re: Restricted access to Content Provider

2011-05-03 Thread Dianne Hackborn
If you want to have a permission that only apps signed with your cert can
get, use android:protectionLevel=signature for the permission.

If you just want to limit access to only code within your own app, a quick
and dirty thing you can do is check that the calling UID is the same as
Process.myUid().

On Tue, May 3, 2011 at 12:08 PM, Dom dominicmarm...@gmail.com wrote:

 Hi, did you solve this problem of restricting access to your content
 provider to certain applications?

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




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

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

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

Re: [android-developers] Re: Widget-specific Preferences

2011-05-03 Thread Kostya Vasilyev

Jake,

You have the widget id where you're building your RemoteViews and 
setting the PendingIntent for the click.


So the only thing is how to get the widget id into the PendingIntent, so 
you can retrieve it later in the config activity.


Probably the easiest way is to use the same extra, 
AppWidgetManager.EXTRA_APPWIDGET_ID, as used for new widgets. Or some 
other, as you see fit.


To make sure that you get multiple PendingIntent objects, each with its 
own widgetId, you can use unique reqestId values with 
PendingIntent.getActivity, such as the widget Id itself.


Intent intent = new Intent(context, WidgetConfigActivity.class);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId);
PendingIntent pending = PendingIntent.getActivity(context, 
widgetId, intent,

PendingIntent.FLAG_UPDATE_CURRENT);
updateViews.setOnClickPendingIntent(R.id.widget_top_level, 
pendingIntent);


Might be a good idea to cancel unneeded pending intents somewhere in 
Widget.onDeleted.


-- Kostya

03.05.2011 17:12, Jake Colman пишет:

Kostya,

I've been noodling around thinking about this problem while working on
other features but I'm stumped on one part of it.  When the Preference
Activity is launched as a Configuration Activity the intent contains
widget ID.  But I can also launch the same Activity if the user touches
the widget so that the user can reconfigure the widget even after it has
been installed. In that situation, how can I know which widget is being
reconfigured?  The widget ID is not part of the widget itself so I don't
how I can grab the ID of the specific widget that is being reconfigured.

...Jake




--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Competitor attack

2011-05-03 Thread Brill Pappin
Just noticed another part of the pattern.
It usually happens right after an update!

I don't know if Google bumps the app up the list for users to find, but it 
looks like that the product started to show as a related app on a 
competitors listing... now it doesn't. (although I can't be sure of that and 
the whole related apps thing is a mystery).

- Brill

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

[android-developers] Building C code for Android (no Java/jni)

2011-05-03 Thread Mark
Hi,
Can anyone tell me how to compile+build a program, written in C on
Android?  There's no Java code and I don't want a shared lib to use
with JNI.  The NDK does not seem to help here.

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


Re: [android-developers] Competitor attack

2011-05-03 Thread Justin Anderson
Seriously?  You have 6 one-star ratings that are spread out over a period of
a month... That doesn't sound like a competitor attack to me.  That sounds
like 6 people that tried your app didn't like it and didn't care to give
valuable feedback.

I have an app on the Market that has over 50,000 downloads and an average
rating of 4 stars and even I get reviews like that sometimes.

If it were a competitor attack you would see a lot more than 6 bad reviews
in a month.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, May 3, 2011 at 10:04 AM, Brill Pappin bpap...@sixgreen.com wrote:

 If anyone wants to see an example of a competitor attack, see:
 https://market.android.com/details?id=sixgreen.aos.itap

 There is no proof of course but several of the recent ratings/comments show
 the pattern that is common in one of these attacks. Some of the clues are;
 no specific criticism, several 1 stars in a row when the app usually gets 4
 or 5 stars, baby language or language that looks like it comes from
 someone too young to own a credit card.
 If you look back in the reviews, you will see a lot of good reviews and
 some not so good with specific criticisms, which IMO are fine (and useful to
 us developers) but you will also see another attack that came against this
 particular product (look for Mark and Lisa together on the second page).

 This is a real pain in the ass, as its being done solely to drop the rating
 on the app and drive consumers to something else. Whats really a piss off is
 that there is no way to deal with it except to add your own comment to the
 reviews.

 I think Google needs to do something about this, or at least give us a
 method to flag those types of comments so that Google can investigate them.
 There must be heuristics that can be used for detection of this kind of
 behaviour with all the data they keep (I can think of a few already).

 If anyone knows another way to catch the competitor thats doing it, i'd be
 glad to hear it!

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

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

2011-05-03 Thread Alberto González
Hi,

I'm back to ask a little questions about nfc.

I have a NFC tag reader and Google Nexus S. I want to create an app
for Google Nexus S that emulates a nfc tag.

1) Where I could find example code in java? Because there isn't no
info about this.

I think it could be similar to:
-Creating the nfc tag to emulate (give him a value)
-Activating emulation of nfc tag
-Wait for a NFC tag reader signal (NFC tag reader sends a message
telling to the phone, msg received?)
-Desactivating emulation of nfc tag

My NFC reader is CPR40.30-USB (More info:
http://www.toptunniste.fi/topshop/product_details.php?p=264c=76).

2) Should I create new functions to use it and create a new SDK? Did
you know any tutorial to modify SDK and create other functions? Or
should I create it in NDK using native code?

3) The steps to enable Google Nexus S Smart Card functionality will
be:

-Unlock the boot loader
-Root Google Nexus S
-Create the modified rom (with the diff you posted in
http://groups.google.com/group/android-developers/browse_thread/thread/d5fc35a9f16aa467/dec4843abd73d9e9%3Flnk%3Dgst%26q%3Dsecure%2Belement%2Bdiff%2527s%23dec4843abd73d9e9
).
-Load the new rom.
-Install the app

4) Do you know when all nfc funcionality will be available in the
official SDK?


Thanks!


On 26 abr, 17:22, nemik ne...@nemik.net wrote:
 Alberto,

 A while back I posted my diff's to the Android source code to get this
 working 
 here:http://groups.google.com/group/android-developers/browse_thread/threa...

 I was able to get the SmartMX secure element to be exposed in both
 wired mode and visible to other NFC readers. Other than that though,
 I'm not sure much else can be done to the SE such as loading
 applications to it because it is locked down and you need the secret
 keys to write to those parts of its memory. I'm pretty sure only
 Google and NXP know what those keys are.

 I did not make my changes to the Cyanogen source though; but rather
 the plain Android source base. After unlocking the bootloader on the
 Nexus S and loading my version of the OS, NFC emulation mode was
 working.

 On Apr 26, 5:51 am, Alberto González doctorg...@gmail.com wrote:







  Hi all,

  I undestand that smartcard feature is not available for developers.

  I readed in this website that is possible to available 
  it:http://www.nearfieldcommunicationsworld.com/2011/02/13/35913/uncovere...

  The clues that I get to make it available is:
  Download the source (actually from CyanogenMod 7 to have the full
  build environment for the new Nexus S), make the appropriate changes
  to the code, recompile everything and put it back into the phone and
  it works — Nexus S supportscardemulation and SWP!

  Also I need to root it... I know..

  The question is: are there anybody who could provide more info about
  this?

  Thanks in advantage

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


Re: [android-developers] Building C code for Android (no Java/jni)

2011-05-03 Thread nathan forbes
On May 3, 2011 12:21 PM, Mark maf...@yahoo.co.uk wrote:

 Hi,
 Can anyone tell me how to compile+build a program, written in C on
 Android?  There's no Java code and I don't want a shared lib to use
 with JNI.  The NDK does not seem to help here.

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

The only way I'm aware of is to download the android source tree, create
your project somewhere (like $top/external/myproject). As long as there's an
Android.mk in there the build system will compile it.

This probably isn't what you wanted though as the device would most likely
have to be rooted to install the executable.

I'm not really sure what methods developers use to build 100% C/C++ apps for
android. I've seen that some games are this way but haven't found any good
docs about 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

Re: [android-developers] Building C code for Android (no Java/jni)

2011-05-03 Thread Justin Anderson
Without using the NDK it is not possible...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, May 3, 2011 at 3:47 AM, Mark maf...@yahoo.co.uk wrote:

 Hi,
 Can anyone tell me how to compile+build a program, written in C on
 Android?  There's no Java code and I don't want a shared lib to use
 with JNI.  The NDK does not seem to help here.

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

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

Re: [android-developers] Building C code for Android (no Java/jni)

2011-05-03 Thread Igor Prilepov
It is possible with NDK and here is the best link I know: 
http://betelco.blogspot.com/2010/01/buildingdebugging-android-native-c.html

However, this approach is helpful only for a very few cases, for example, 
when you are making some tools for yourself only.
Any real application development must be done using Java/JNI approach. 

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

Re: [android-developers] Competitor attack

2011-05-03 Thread TreKing
On Tue, May 3, 2011 at 11:04 AM, Brill Pappin bpap...@sixgreen.com wrote:

 If anyone knows another way to catch the competitor thats doing it, i'd be
 glad to hear it!


http://www.androlib.com/

http://www.androlib.com/They somehow track each user and can show what
apps they are commenting on. If Bob, for example, has left 1* ratings to 8
different keyboard apps and then a 5* for one in particular, it wouldn't be
too hard to put 2 and 2 together to get 5.

You're app does not show up though ...

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Douglas Selph
The process in question is I think: *com.android.settings*.

At least that looks right. I think it is calling the activity started 
in packages/apps/Phone, file CallFeaturesSettings.java, when the Call 
Settings button is pressed in the OS's Settings.

My process in eclipse only interacts with this code using queryIntents, 
startActivity, and setResult(), etc. 

In general, you are not allowed open android APP projects, such as the Phone 
app, in eclipse. I tried that before and failed. Thus without being able to 
pull in that code I can't set the breakpoint after the waitForDebugger() 
statement as you suggested. That code is not directly callable neither from 
any project I might write. The only way to interact with that code is via 
intents or the activity manager.


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

Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Douglas Selph
Joerie from android-porting helped me out! 

If you want to see Log messages from the telephony side you need to do:

*adb logcat -b radio*
*
*
*
*

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

Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Kostya Vasilyev

Douglas,

I understand that Settings interacts with your code using Intents.

This means there should be a component of some sort in your project that 
responds to those intents, correct?


If so, have you tried adding waitForDebugger() in that component's 
onCreate() ?


-- Kostya

03.05.2011 21:08, Douglas Selph пишет:
In general, you are not allowed open android APP projects, such as the 
Phone app, in eclipse. I tried that before and failed. Thus without 
being able to pull in that code I can't set the breakpoint after the 
waitForDebugger() statement as you suggested. That code is not 
directly callable neither from any project I might write. The only way 
to interact with that code is via intents or the activity manager.






--
Kostya Vasilyev -- http://kmansoft.wordpress.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


Re: [android-developers] porting android application on iphone

2011-05-03 Thread TreKing
On Mon, May 2, 2011 at 4:19 AM, srikanth srikanth.chiluk...@gmail.comwrote:

 I have developed an application on android using phonegap and JQTOUCH,
 I would like to test the same on iPhone.
  How to put the android app into iPhone?
  does it required any aditional components to test it on iPhone?


You will surely have better luck on a forum dedicated to phonegap, JQTOUCH,
and / or iPhone.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] reload a class containing a mapView with onResume() make a crash

2011-05-03 Thread TreKing
On Sun, May 1, 2011 at 5:26 PM, Aymen TOUHENT aymentouh...@gmail.comwrote:

 I got an error and my app crashes.


You might want to explain what the error is ... and the stacktrace ...

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Java layer on Android SDK supports connection through IPv6 link local address???

2011-05-03 Thread himanshu jain
Hi all,

I am not sure as Google mentioned IPv6 support is available on Android
1.6 or up , but i checked with 2.2 it even does not have link local
IPv6 address whereas 3.0 has that.

I tried to set up an environment to generate gloabal IPv6 but DHCP can
assign IPv6 to other client except 3.0 HoneyComb which may have bug in
native code ?.

When i got gloabal IPv6 address from server i still not able to
connect it says network unreachable ?.


Any suggestion

On May 2, 3:28 pm, himanshu jain himanshu@gmail.com wrote:
 Hi,

 I am not able to connect Android client running on 3.0 HoneyComb to
 server sendingIPv6packet havingLink-localIPv6address.

 Does JAVA layer on android supports connection usinglink-local
 address forIPv6?.

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


Re: [android-developers] Coding style for modal dialog

2011-05-03 Thread TreKing
On Mon, May 2, 2011 at 9:08 AM, GerhardS ghofm...@sofa.de wrote:

 Any suggestions?


Not really, unfortunately. I think the Android dialog scheme is as it is on
purpose, though I too am not a fan. I think some things have changed with
3.0 with DialogFragments from reading this forum, but I have not
investigated this myself. Might be worth looking into.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Competitor attack

2011-05-03 Thread Brill Pappin
Justin, if you actually look at the dates, they are grouped together.
The one Apr 21-22 is the previous update. If you go back further there
was another update March 30-31.
The most recent follows the same pattern although so far there is only
one visible.

If you look at the rest of the ratings, you can see that although the
app does get some less then stellar reviews, it never gets a single
star and it almost never gets as low as a 2 start without some reason
behind it.

Like I said, there is a pattern, but very little proof.

- Brill

On May 3, 12:20 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Seriously?  You have 6 one-star ratings that are spread out over a period of
 a month... That doesn't sound like a competitor attack to me.  That sounds
 like 6 people that tried your app didn't like it and didn't care to give
 valuable feedback.

 I have an app on the Market that has over 50,000 downloads and an average
 rating of 4 stars and even I get reviews like that sometimes.

 If it were a competitor attack you would see a lot more than 6 bad reviews
 in a month.

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware



 On Tue, May 3, 2011 at 10:04 AM, Brill Pappin bpap...@sixgreen.com wrote:
  If anyone wants to see an example of a competitor attack, see:
 https://market.android.com/details?id=sixgreen.aos.itap

  There is no proof of course but several of the recent ratings/comments show
  the pattern that is common in one of these attacks. Some of the clues are;
  no specific criticism, several 1 stars in a row when the app usually gets 4
  or 5 stars, baby language or language that looks like it comes from
  someone too young to own a credit card.
  If you look back in the reviews, you will see a lot of good reviews and
  some not so good with specific criticisms, which IMO are fine (and useful to
  us developers) but you will also see another attack that came against this
  particular product (look for Mark and Lisa together on the second page).

  This is a real pain in the ass, as its being done solely to drop the rating
  on the app and drive consumers to something else. Whats really a piss off is
  that there is no way to deal with it except to add your own comment to the
  reviews.

  I think Google needs to do something about this, or at least give us a
  method to flag those types of comments so that Google can investigate them.
  There must be heuristics that can be used for detection of this kind of
  behaviour with all the data they keep (I can think of a few already).

  If anyone knows another way to catch the competitor thats doing it, i'd be
  glad to hear it!

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

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


Re: [android-developers] Log.d messages in frameworks/.../android/internal/telephony not appearing

2011-05-03 Thread Douglas Selph
Well even with waitForDebugger() I wasn't able to get it to stop in 
onCreate() nor onResume() in my activity.

However, I WAS able to get it to *stop *in the 'Done' button push I had on 
my UI.

At that point however, I don't see the Phone activity that called it since 
it is in a different process.

Flow of control:

   - I have an activity that is triggered via 
   com.android.phone.CallFeaturesSettings.CONFIGURE_VOICEMAIL.
   - From the OS, I do *Settings-Call Settings-Voicemail Settings.*
   - This brings up my personalized dialog. I am not able to stop in 
   onCreate() nor onResume(), but with the Done button yes it stops.
   - I am interested in what happens in the activity that com.android.phone 
   process is doing AFTER this, but, like I said, this appears to be happening 
   in a different process.






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

2011-05-03 Thread Brill Pappin
Thanks TreKing, I'll take a look.

- Brill Pappin

On May 3, 1:04 pm, TreKing treking...@gmail.com wrote:
 On Tue, May 3, 2011 at 11:04 AM, Brill Pappin bpap...@sixgreen.com wrote:
  If anyone knows another way to catch the competitor thats doing it, i'd be
  glad to hear it!

 http://www.androlib.com/

 http://www.androlib.com/They somehow track each user and can show what
 apps they are commenting on. If Bob, for example, has left 1* ratings to 8
 different keyboard apps and then a 5* for one in particular, it wouldn't be
 too hard to put 2 and 2 together to get 5.

 You're app does not show up though ...

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Set default theme colors for widgets?

2011-05-03 Thread Nathan Fig

  Widget differ between devices: the Galaxy Tab, for instance, uses a
bluish/teal color for highlighted tabs and for preference sub-text,
whereas the Dell Streak uses a dark gray.

  Is it possible to set the default theme colors used by widgets? I've
searched for and experimented with theme options for several hours now
with no success. Where are these colors derived from?

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


Re: [android-developers] Re: Fragments for Google Maps add on?

2011-05-03 Thread Daniel Smith
Thanks for all your input I did get it working.

Dan
On May 2, 2011 4:16 PM, Streets Of Boston flyingdutc...@gmail.com wrote:
 You cannot replace a *fragment *(e.g. your ImageView fragment) directly
with
 an *activity *(in your case a subclass of AFragmentMapActivity). Don't
 confuse Activities with Fragments.

 Have your main Activity, that hosts the Map fragment (and possibly other
 fragments as well), extend AFragmentMapActivity. In my example that is
 'Main'.
 Then inflate in your main Activity a layout with a fragment that
contains
 a MapView. In my example that is 'MapFragment'.

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

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

Re: [android-developers] Re: Competitor attack

2011-05-03 Thread Justin Anderson
Still doesn't seem like a competitor attack...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, May 3, 2011 at 12:02 PM, Brill Pappin bpap...@sixgreen.com wrote:

 Thanks TreKing, I'll take a look.

 - Brill Pappin

 On May 3, 1:04 pm, TreKing treking...@gmail.com wrote:
  On Tue, May 3, 2011 at 11:04 AM, Brill Pappin bpap...@sixgreen.com
 wrote:
   If anyone knows another way to catch the competitor thats doing it, i'd
 be
   glad to hear it!
 
  http://www.androlib.com/
 
  http://www.androlib.com/They somehow track each user and can show what
  apps they are commenting on. If Bob, for example, has left 1* ratings
 to 8
  different keyboard apps and then a 5* for one in particular, it wouldn't
 be
  too hard to put 2 and 2 together to get 5.
 
  You're app does not show up though ...
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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


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

[android-developers] Playing VIdeo in background and drawing Activities on top

2011-05-03 Thread Samuh
I have an application that has a transparent background in all of its
Activities.There is a separate application(like Camera Preview) which
displays the real time feed from Camera.

Is it possible to somehow start my Application and display it atop
Camera feed?

Please note that I am not supposed to host the Camera Preview
drawing logic in my app.

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] Android Library Activity and startActivity

2011-05-03 Thread Aaron
I have an app which I am trying to turn into a library and create 2 new apps 
that consume it.  I have to move all code differences between the 2 apps out 
of the library and into the separate apps due to the fact that I sold source 
code to the owner of the app.  This way I can give them them library and 
their app.  I am running into a bit of a problem tho.  In at least one of my 
activities the UI behavior is somewhat different, in this class the 
CustomerListActivty.  So I started to move the CustomerListActivity out into 
each respective app, but the problem came when other activities in the 
library project were trying to invoke the CustomerListActivity 
via startActivity(new Intent(SomeClass.this, CustomerListActivity.class));. 
 Obviously the library no longer knew what CustomerListAcitivity was so I 
got compiler errors.  I am at a loss on how to solve this problem.  I think 
I need some way to refer the activity other than by class name.

Thank you for any and all help!

Aaron

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

2011-05-03 Thread Brill Pappin
We see the same patterns across other apps as well.
but like I said, its only a pattern and we as yet don't have proof.

They are very hard to recognize but as a developer looking at your
product daily and tracking it, it all of a sudden raises an eyebrow
and makes go go huuu?.
We don't *know* they are competitors, but the patterns seem to be
fairly consistent and I think if you talked to most people that
suspect something going on, you see a similar pattern. All we can do
at this point is collect data and see what we can see.

I don't mind negative feedback, and no matter how hard you work to
make things right, there will also be some people who you can't
please... just a fact of life and product development. however, just
take a look at the rest of the comments/rating and compare them with
the two dates I mentioned and tell me it doesn't look a bit fishy to
you.

My point when I say I think Google needs to be proactive in this
regard (not that we're likely to see it) is that there *will be*
indicators in their data, that we developers can't see, but that may
indicate when this is happening.

There was another developer recently posting here who actually did get
to find out which competitor was attacking them... We are going to
make the same attempt and try and find the people responsible. When we
do, if we have enough evidence for our own liking, we will publish
their name here.

- Brill Pappin

On May 3, 2:57 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Still doesn't seem like a competitor attack...

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware



 On Tue, May 3, 2011 at 12:02 PM, Brill Pappin bpap...@sixgreen.com wrote:
  Thanks TreKing, I'll take a look.

  - Brill Pappin

  On May 3, 1:04 pm, TreKing treking...@gmail.com wrote:
   On Tue, May 3, 2011 at 11:04 AM, Brill Pappin bpap...@sixgreen.com
  wrote:
If anyone knows another way to catch the competitor thats doing it, i'd
  be
glad to hear it!

  http://www.androlib.com/

   http://www.androlib.com/They somehow track each user and can show what
   apps they are commenting on. If Bob, for example, has left 1* ratings
  to 8
   different keyboard apps and then a 5* for one in particular, it wouldn't
  be
   too hard to put 2 and 2 together to get 5.

   You're app does not show up though ...

  ---
  --
   TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices

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

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


Re: [android-developers] Android Library Activity and startActivity

2011-05-03 Thread TreKing
On Tue, May 3, 2011 at 2:20 PM, Aaron aaron.chan...@gmail.com wrote:

 I have an app which I am trying to turn into a library and create 2 new
 apps that consume it.  I have to move all code differences between the 2
 apps out of the library and into the separate apps due to the fact that I
 sold source code to the owner of the app.  This way I can give them them
 library and their app.


Huh? If you sold the code for one app, why do you need to break it out into
a library and two apps?


 Obviously the library no longer knew what CustomerListAcitivity was so I
 got compiler errors.  I am at a loss on how to solve this problem.  I think
 I need some way to refer the activity other than by class name.


Either
A) Your customer list activity remains in the library, handling differences
via some other mechanism.
B) You move the code that is dependent on that Activity to both app
projects.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Show Context Menu other than on long press?

2011-05-03 Thread TreKing
On Tue, May 3, 2011 at 3:14 AM, MagouyaWare magouyaw...@gmail.com wrote:

 I have not been able to find anything on StackOverflow, Google or
 this forum that would indicate how to accomplish this.


Try the docs =P
http://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)


-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: EditText.SetError() Not working properly in Sony Ericsson Xperia

2011-05-03 Thread Eric Ang: Sony Ericsson Developer Support
Thanks Banu.

I didn't see a response or any notification on this. So I apologize
for my delay.

Have you attempted to initially setting it to null?

This hopefully will address your issue. Please let us know

Regards,
Sony Ericsson Developer Support

On Apr 25, 9:15 pm, banu banuchan...@gmail.com wrote:
 Hi Eric,
             Thank you for your response,here is the model name and
 build number of the sony ericsson xperia i  am testing

 Model: Xperia X10
 Build Number:2.1.A.0.435

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


Re: [android-developers] Coding style for modal dialog

2011-05-03 Thread Dianne Hackborn
DialogFragment is a cleaner way to do this, putting all of the dialog
related code in a separate class instead of callbacks on Activity.  You can
use this with the fragment compat library on older platforms.  You still
can't do a blocking call to wait a result, however; your activity will need
to have a separate callback to receive the result.

On Tue, May 3, 2011 at 1:47 PM, TreKing treking...@gmail.com wrote:

 On Mon, May 2, 2011 at 9:08 AM, GerhardS ghofm...@sofa.de wrote:

 Any suggestions?


 Not really, unfortunately. I think the Android dialog scheme is as it is on
 purpose, though I too am not a fan. I think some things have changed with
 3.0 with DialogFragments from reading this forum, but I have not
 investigated this myself. Might be worth looking into.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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




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

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

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

[android-developers] Re: Widget-specific Preferences

2011-05-03 Thread Jake Colman

Kostya,

Gee, I hope I'm not revealing my ignorance here...

I build my RemoteViews in an IntentService.  I suppose I have to find a
way to pass the widgetid into the Intent that is used to start the
service.  If the service knows the widgetid, it can putExtra that
widgetid into the Intent used to start the Preference Activity.

So now the question is how to get widgetid ID from the AppWidgetProvider
to the IntentService.  onUpdate() is passed the appWidgetIds that need
to be updated.  I, however, do not use that method for anything.
Instead, I use alarms to trigger my updates since I am updating every 60
seconds in one instance or every 24 hours in another.  Currently my
alarms send an Intent that is processed by the AppWidgetProvider's
onReceive() method.  That method does not get a widgetid.  Any idea how
I can get the set of widgetids to be updated if Android has no passed it
to me in onUpdate?

...Jake


 KV == Kostya Vasilyev kmans...@gmail.com writes:

   KV Jake,

   KV You have the widget id where you're building your RemoteViews and
   KV setting the PendingIntent for the click.

   KV So the only thing is how to get the widget id into the
   KV PendingIntent, so you can retrieve it later in the config
   KV activity.

   KV Probably the easiest way is to use the same extra,
   KV AppWidgetManager.EXTRA_APPWIDGET_ID, as used for new widgets. Or
   KV some other, as you see fit.

   KV To make sure that you get multiple PendingIntent objects, each
   KV with its own widgetId, you can use unique reqestId values with
   KV PendingIntent.getActivity, such as the widget Id itself.

   KV Intent intent = new Intent(context, WidgetConfigActivity.class);
   KV intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId);
   KV PendingIntent pending = PendingIntent.getActivity(context, widgetId,
   KV intent,
   KV PendingIntent.FLAG_UPDATE_CURRENT);
   KV updateViews.setOnClickPendingIntent(R.id.widget_top_level,
   KV pendingIntent);

   KV Might be a good idea to cancel unneeded pending intents somewhere
   KV in Widget.onDeleted.

   KV -- Kostya

   KV 03.05.2011 17:12, Jake Colman пишет:

Kostya,

I've been noodling around thinking about this problem while
working on other features but I'm stumped on one part of it.  When
the Preference Activity is launched as a Configuration Activity
the intent contains widget ID.  But I can also launch the same
Activity if the user touches the widget so that the user can
reconfigure the widget even after it has been installed. In that
situation, how can I know which widget is being reconfigured?  The
widget ID is not part of the widget itself so I don't how I can
grab the ID of the specific widget that is being reconfigured.

...Jake


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

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

-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Show Context Menu other than on long press?

2011-05-03 Thread Justin Anderson
I tried the docs and knew about that method, but unfortunately that doesn't
seem like it would help as well... Here is why:

The Activity.openContextMenu() method states this:
*Programmatically opens the context menu for a particular view. The
view should
have been added via
registerForContextMenu(View)http://developer.android.com/reference/android/app/Activity.html#registerForContextMenu(android.view.View)
.*

The Activity.registerForContextMenu() method states this:
*Registers a context menu to be shown for the given view (multiple views
can show the context menu). This method will set the
View.OnCreateContextMenuListenerhttp://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html
on
the view to this activity, so onCreateContextMenu(ContextMenu, View,
ContextMenuInfo)http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu,
android.view.View, android.view.ContextMenu.ContextMenuInfo)*

And as I stated before, if you useView.setOnCreateContextMenuListener() then
it sets up your view to show the context menu on with a long-press...  And
I'm back to square one.

Unless maybe I'm missing something... I will admit that I didn't try it
because the docs made it seem like it wouldn't work so maybe there is a
difference.  I'll look into that when I get home tonight.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, May 3, 2011 at 1:40 PM, TreKing treking...@gmail.com wrote:

 On Tue, May 3, 2011 at 3:14 AM, MagouyaWare magouyaw...@gmail.com wrote:

 I have not been able to find anything on StackOverflow, Google or
 this forum that would indicate how to accomplish this.


 Try the docs =P

 http://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


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

Re: [android-developers] Android Library Activity and startActivity

2011-05-03 Thread Aaron


Either
A) Your customer list activity remains in the library, handling differences 
via some other mechanism.

I can't do A because my clients are competitors to each other and therefore 
I can't allow one competitor to see any custom work by another client who 
doesn't own a source license.

B) You move the code that is dependent on that Activity to both app 
projects.

I thought about that approach and I want to avoid it if possible.  I haven't 
done a full review of what would be required, but I believe it would cause a 
lot of activity duplication.

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

Re: [android-developers] Show Context Menu other than on long press?

2011-05-03 Thread TreKing
On Tue, May 3, 2011 at 3:03 PM, Justin Anderson magouyaw...@gmail.comwrote:

 And as I stated before, if you useView.setOnCreateContextMenuListener()
 then it sets up your view to show the context menu on with a long-press...
  And I'm back to square one.


Yeah, I would expect that, as it's the default behavior. So you only want it
to call the context menu when you call it, not on long press?
If that's the case, could you add a long press listener and purposefully eat
it so it doesn't trigger the context menu? No idea if that would work and
would be hacky but ...

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Android Library Activity and startActivity

2011-05-03 Thread TreKing
On Tue, May 3, 2011 at 3:10 PM, Aaron aaron.chan...@gmail.com wrote:

 A) Your customer list activity remains in the library, handling differences
 via some other mechanism.

 I can't do A because my clients are competitors to each other and therefore
 I can't allow one competitor to see any custom work by another client who
 doesn't own a source license.


You can do A if the custom work lies outside of the Activity in question.
Sounds like you have some refactoring in your future.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Battery Log using service

2011-05-03 Thread Kevin TeslaCoil Software
 The suggest to create an alarm to
 wake up every 5 minutes is a good one.  That will actually be more robust
 than having a service always running.

Would it be possible to expand on this at all? My (perhaps incorrect)
method of testing behavior with a service that is always running is by
killing the process from adb shell. I think I've always seen something
in the logcat about the service being scheduled to restart in 5
seconds. This is true either with a startForeground notification icon
or with out. I'm guessing that in some cases it might be more than 5
seconds and that's why the 5 minute alarm is a good idea?

Thanks,
-Kevin


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

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

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


[android-developers] Re: Battery Log using service

2011-05-03 Thread Igor Prilepov
These are two opposite cases:
1. Your service is crashed (or killed) and Android tries to restart it after 
a certain timeout 
2. On some conditions Android may decide to kill your service. Since the 
purpose of this action is to free some system resources it won't be 
restarted after a timeout.


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

Re: [android-developers] Re: Battery Log using service

2011-05-03 Thread Dianne Hackborn
It actually will be restarted after a timeout, even if it was killed to
reclaim memory.  (Actually the activity manager has no way to know why the
service's process disappeared.)  However if it is killed again soon after
restarting, the system will quickly increase the time it waits until it
tries to restart again.

And just generally, having a receive that runs for a little bit every 5
minutes is going to be *much* lighter on system resources than a service
that is always running and thus telling the system it should try to keep all
of the memory it is using committed to its process.

On Tue, May 3, 2011 at 4:48 PM, Igor Prilepov iprile...@gmail.com wrote:

 These are two opposite cases:
 1. Your service is crashed (or killed) and Android tries to restart it
 after a certain timeout
 2. On some conditions Android may decide to kill your service. Since the
 purpose of this action is to free some system resources it won't be
 restarted after a timeout.


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




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

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

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

Re: [android-developers] Re: Widget-specific Preferences

2011-05-03 Thread Kostya Vasilyev

Jake,

You can get a list of widget ids by doing something like:

AppWidgetManager appWidgetManager = 
AppWidgetManager.getInstance(context);

ComponentName provider = new ComponentName(context, Widget.class);
int[] widgets = appWidgetManager.getAppWidgetIds(provider);

This widget id list need to be filtered for stale ones.

-- Kostya

03.05.2011 23:58, Jake Colman пишет:

Kostya,

Gee, I hope I'm not revealing my ignorance here...

I build my RemoteViews in an IntentService.  I suppose I have to find a
way to pass the widgetid into the Intent that is used to start the
service.  If the service knows the widgetid, it can putExtra that
widgetid into the Intent used to start the Preference Activity.

So now the question is how to get widgetid ID from the AppWidgetProvider
to the IntentService.  onUpdate() is passed the appWidgetIds that need
to be updated.  I, however, do not use that method for anything.
Instead, I use alarms to trigger my updates since I am updating every 60
seconds in one instance or every 24 hours in another.  Currently my
alarms send an Intent that is processed by the AppWidgetProvider's
onReceive() method.  That method does not get a widgetid.  Any idea how
I can get the set of widgetids to be updated if Android has no passed it
to me in onUpdate?

...Jake



--
Kostya Vasilyev -- http://kmansoft.wordpress.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] Broadcast Receiver for Mobile Network

2011-05-03 Thread Gaurang
I want to get notification on lost of Mobile network (Voice) not Wi-fi
(Data).

Here is the code, If gives notification for Wi-fi (Data) network
events but not for Mobile network.

Menifest :

 uses-permission
android:name=android.permission.ACCESS_NETWORK_STATE/

application android:icon=@drawable/icon android:label=@string/
app_name

receiver android:name=.notifier
intent-filter
action 
android:name=android.net.conn.CONNECTIVITY_CHANGE /
/intent-filter
/receiver

/application

Java :

public class notifier extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {

Toast toast = Toast.makeText(context, Network Changed !!,
Toast.LENGTH_LONG);
toast.show();
}
}

Please tell me how can I get notification for Mobile network (Voice).

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


[android-developers] How to receive large file over socket in android 2.2

2011-05-03 Thread Anila Khwaja
I've written a piece of code which connects through socket and receive
data to load bitmap image on phone ... it works perfectly in android
2.3.X but blocks the data on android 2.2 when bytes read reached
2048.. it doesn't read anything more than that and get stucked over
there

I read on multiple forums that android 2.2 block large files but if
the data on stream can split into chunks then it can be read.

here is the piece of code i've written for it

isRvcdData = socket.getInputStream();
byte[] chunk = new byte[1024];

if (socket.isConnected()  
!socket.isClosed())
{
while (isRvcdData.available()  
chunkLength)
{
Thread.sleep(10);
}
iByteLengthRead = 
isRvcdData.read(chunk, 0, 1024);
}

please help me out as how to read the whole data from stream on
android 2.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] Re: AlertDialog with an mail-to link

2011-05-03 Thread Chris
Here's what I do to display a dialog with an email link that opens the
default mail app and a web link for support that opens the default
browser:

private void showHelpAbout() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(getResources().getString(R.string.aboutApp));
builder.setCancelable(false);
builder.setPositiveButton(getResources().getString(R.string.ok),
confirmListener);

final TextView message = new TextView(EntryPoint.this);
message.setLinksClickable(true);
message.setMovementMethod(LinkMovementMethod.getInstance());

StringBuilder msg = new StringBuilder();
msg.append(getText(R.string.app_name));
msg.append( );
msg.append(getText(R.string.appVersion));
msg.append(getText(R.string.supportEmail));
msg.append(getText(R.string.supportLink));

final SpannableString string = new SpannableString(msg);
Linkify.addLinks(string, Linkify.EMAIL_ADDRESSES |
Linkify.WEB_URLS);

message.setText(string);
message.setPadding(5, 5, 5, 5);
builder.setView(message);

builder.show();
}

where:

EntryPoint is my Activity/Context and string resource IDs are defined
strings.  I hope its self explanatory enough to figure out how to do
it.

Cheers,
- C

On May 3, 3:42 pm, dashman erjdri...@gmail.com wrote:
 I'd like to display an alert dialog text with an url
 to an email address.

 user can tap on the link and then mail program
 opens.

 how can i do 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] Custom Intent does not reach PhoneApp

2011-05-03 Thread bluewolf
I have added an action to the intent filter in packages/apps/Phone/src/
com/android/phone/PhoneApp.java

intentFilter.addAction(MY_CUSTOM_ACTION);
registerReceiver(mReceiver, intentFilter);

Now I try to send a broadcast from my application:

Intent i = new Intent();
i.setAction(MY_CUSTOM_ACTION);
sendBroadcast(i);

However the public void onReceive(Context context, Intent intent)
function in the mReceiver within the PhoneApp.java
doesn't seem to receive the intent. Because I have put in code that
should show up following toast if control reached inside the onReceive

NotificationMgr.getDefault().postTransientNotification(4, Reached
here);

Is there any mechanism in place that prevents custom apps from sending
intents to the PhoneApp?

I am trying to run this on an emulator. I build the android source
myself and my emulator points to userdata.img.

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

2011-05-03 Thread Tek911
So, i'm putting the finishing touches on a new android keyboard (as if
we needed one more, lol) and i was trying to get some insight into how
some keyboards know to present a .com key on the keyboard when you are
in the browser and not present it when you are say doing a google
search??? Any links to anything on the android developers website or
sample code elsewhere is appreciated 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] Editing XML generated layout in Java.

2011-05-03 Thread FrenchYoungBeaver
Hello !

I'm new in the world of android dev and I have some troubles with some
concepts.

My goal :
I want to generate a pop-up window in my application that can
dynamicly react to user actions. I mean, when I touch an item, some
other appears.
I generate the basics elements (all statics elements) of this screen
with the layout generator.

I'll probably generate my pop-up with :
MyPopupWindow pp = new MyPopupWindow();
pp.setContentView(R.layout.popup_layout);

Now I want, in java, add some elements.
when i try to get my layout with the inflator,with something like
that :

LayoutInflater  inflater=this.getLayoutInflater();
RelativeLayout rl = (RelativeLayout)
inflater.inflate(R.layout.popup_layout, null);

rl is a nullPointer ...

I have some troubles to understand the way it works...

Another thing is :

setContentView(LayoutResId ...) : ok it's cool (use XML generated
Layout to set the view) .
But if I try to create my own view, wich take Context arg, there is
only 1 method .layout( ... ) to associate a layout
Just want to understand why I can't associate any Layout to a View...
(it's probably a really noob question)... :D

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


[android-developers] SurfaceView issue on pause/resume

2011-05-03 Thread Dale
I am implementing an app that takes images from the camera preview and
displays them on the screen. When the activity is paused and resumed
the surface will no longer display anything that is written to it. The
SurfaceView object appears to be fine but simply won't display.

I have three basic objects:

public class PanoramaCamera extends Activity {} -- the main activity.
public class Preview extends SurfaceView {} -- implements the surface
which gets the camera preview data.
public public class GLLayer extends SurfaceView {} -- implements the
surface which draws the camera images to the screen. This uses OpenGL
to draw the images.

There are multiple Preview objects but only a single GLLayer.

In PanoramaCamera's onPause() method I release the camera for each of
the existing Preview objects, free those objects and even free the
GLLayer object (though I have tried various combinations of the above)
and in onResume() I recreate the objects exactly the same way they
were created on launch. On recreating everything the surface no longer
displays. I can share some code if it helps.

Do I need to do anything special to pause and resume a SurfaceView?


-Dale

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


[android-developers] Mobie Network Receiver

2011-05-03 Thread Gaurang
I want to receive notification when Mobile network connection is lost or 
received. Through following code, I can receive notification for Wi-Fi 
(Data) connection but not for Mobile (Voice) connection.

Menifest :

uses-permission android:name=android.permission.ACCESS_NETWORK_STATE/

application android:icon=@drawable/icon 
android:label=@string/app_name

receiver android:name=.notifier
intent-filter
action android:name=android.net.conn.CONNECTIVITY_CHANGE 
/
/intent-filter
/receiver

/application

Java :

public class notifier extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {   

Toast toast = Toast.makeText(context, Network Changed !!, 
Toast.LENGTH_LONG);
toast.show();
}
}

Please tell me, how can I receive notification for Mobile Network (Voice).

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

[android-developers] Donation with Google check out for Android

2011-05-03 Thread Gopala Krishnan.A
Hi All

Is it possible to add a Donate with Google check out Button for non
profit organisations

Is their any API is available for that.Please give idea for that

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] Robotium solo - help material

2011-05-03 Thread Madhu
Hi,

Now only i started learning robotium.

I started doing blackbox testing alone.

Even i struck with so many issues.

I get the android apk file and installed in my emulator.

The first page is a login page.

public void testValidateLogin() {
String text =
jv;
String text1=
jv;
//Enter UserName
solo.enterText(0, text);
// Enter the Password
solo.enterText(1, text1);
//Click Login Button
solo.clickOnButton(login);
assertFalse(
solo.searchText(Incorrect login credentials));
}
---
unfortunately my username and password typed on the same textbox. I
mean to say like my user name and Password are entered into the same
textbox(username TextBox).
Can u pls help me out in this..

Thanks
Madhu

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


[android-developers] Parts of words in TextView are out of the screen

2011-05-03 Thread omar
Hey, I have a problem where parts of the Text in the TextView are out
of the screen, Look at the picture:
http://i.imgur.com/fDqa6.png


I marked the problem in red squares..
xml:

?xml version=1.0 encoding=utf-8?
LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:background=@drawable/list
  android:padding=15sp

  ScrollView android:id=@+id/ScrollView01
android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:gravity=right

TextView
android:id=@+id/TfseerTextView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:textSize=17sp
android:textColor=#000
  /TextView
/LinearLayout
/ScrollView

/LinearLayout


Is it possible to fix? Is there any work around? Thanks.

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


[android-developers] How to Create ListAdapter w/o XML Files?

2011-05-03 Thread Keith Bennett
Hi, all.  I'm a longtime developer but new to Android.  I want to
learn how to instantiate visual components in code rather than XML, so
that I better understand the API, and can build UI's dynamically.

I want to do this with a ListView.  I understand that the ListView's
underlying data is provided by an implementation of ListAdapter.
However, when I research the implementations of ListAdapter, I don't
see anything that seems to be helpful.  ArrayAdapter seems to be the
closest to what I want, but all its constructors require a
textViewResourceId, defined as the resource ID for a layout file
containing a TextView to use when instantiating views.  But I'm
building everything in code, even the top level View passed to
setContentView().

I was under the impression that anything created with xml
configuration files could also be created using the API.  How can I do
this?

Also, do I need to define id's for the objects provided by the
adapter, or is this not necessary because I can refer to them as Java
objects in my code?

Thanks for any help.

- Keith

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

2011-05-03 Thread lufo88
Hi,

I try to include emma.jar in my Android Testapplication and add uses-
library android:name=emma / to the .manifest file.

I run
./adb shell am instrument -e coverage true -e coverageFile /sdcard//
myFile.ec -e class name testClass -w package name/
android.test.InstrumentationTestRunner

It executed the test generate an .ec file. I pull it from the SDK to
my home folder, but it is impossible to read it.

How can i read it?

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


[android-developers] encryption decryption in android

2011-05-03 Thread pasamblue1
Hi,
Just wanted to know does encryption decryption algorithms in android
mobile application is made thread safe. I have seen AES and other
algorithms but FIPs standard does not mentions anything regarding
multithreading in AES algorithm.

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