[android-developers] Re: New Android Market Client Update

2010-12-12 Thread Pent

 Users can pay though Google Checkout or Paypal and you keep almost
 100% of the money (minus ~2% transaction fee).
 It's also not limited to the 29 country Android market is currently
 limited to.

That's against the terms of the Developer Agreement, otherwise clearly
it would be stupid not to use the free-on-market-unlock-via-paypal-or-
checkout model. Lucky for you Google don't seem to have any interest
in regulating anything.

Pent

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

2010-12-12 Thread Pent
 Very much looking forward to what they do come up with.

You must be new here :-)

Pent

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


[android-developers] Newbie having trouble launching new activity, application stops unexpectedly

2010-12-12 Thread vtb
New to programming in Android and having trouble launching
a video to play activity. I am pulling what remains of my hair out
so any help or advice would be greatly appreciated as I have tried
all sorts and scanned the net for days bu have not come up
with the answer and I bet it's a simple answer.

Basically I have a touch screen that is mapped by a file
to give touch areas that select a video to play. All this
mapping and touch code works.

When I touch an activated area I get the following message:-

==
Sorry
The application video_4 (process org.example.
video_4) has stopped unexpectedly. Please try
again.

Force close.
==

When I looked in my book it says if this happens its because
I have not defined my activity in the manifest file. This I
think I have done.

Here is my manifest file:-


video_4 manifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=org.example.video_4
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.video_4
  android:label=@string/app_name
android:theme=@android:style/Theme.NoTitleBar.Fullscreen
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

=== here is where I think the video activity is defined

   Activity android:name=.Videos
 android:label=@string/video_play
android:theme=@android:style/Theme.NoTitleBar.Fullscreen
/Activity

/application
uses-sdk android:minSdkVersion=4 /
/manifest


Here is my touch code this works

@Override
public boolean onTouchEvent( MotionEvent event ){
int xpos,ypos;

if( event.getAction() != MotionEvent.ACTION_DOWN ){
return super.onTouchEvent( event );
}
xpos = (int)event.getX() / 20;
ypos = (int)event.getY() / 20;
if( xpos  0 || xpos  39 || ypos  0 || ypos  23 || !ready ){
return true;
}
if( videos_to_play[ ( ypos * 40 ) + xpos ]  8 ){
video_to_play = videos_to_play[ ( ypos * 40 ) + xpos ];
Intent a = new Intent( this , Videos.class );
startActivity( a ); == line that causes the error on
running
}
return true;
}

==
videos.xml
==
?xml version=1.0 encoding=utf-8?
FrameLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
VideoView
android:id=@+id/vidview
android:layout_height=wrap_content
android:layout_width=wrap_content
android:layout_gravity=center
/
/FrameLayout

===
videos.java
===
package org.example.video_4;

import android.app.Activity;
import android.os.Bundle;
import android.widget.VideoView;

public class Videos extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView( R.layout.videos );
VideoView video = (VideoView) findViewById( R.id.vidview);

video.setVideoPath(/*/LocalDisk/AdBook/v4.mp4*//sdcard/AdBook/
v4.mp4);
video.start();
}
}

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


[android-developers] Re: Problem with the new SDK r08 on linux

2010-12-12 Thread Dudero
Sorry guys - of course my fault ;-)

I have not installed ia32-libs.
But this is required for running the SDK on x64 linux platforms.

-- apt-get install ia32-libs


Regards,
Dudero

On 9 Dez., 15:07, Dudero sinfanh...@googlemail.com wrote:
 Hello Guys,

 I have downloaded the new release of SDK: r08 and wanting to get run
 on my vmware-image: ubuntu 10.10 x64.

 My Problem is now, that I can not execute some binares, for example in
 the new folder: platform-tools/adb or /tools/emulator.

 Bash always says: bash: ./adb: No such file or directory

 even though ./adb exists?!

 Some other executables like /tools/android or /tools/ddms are
 working fine...

 Does anybody have the same problem?

 Do I perhaps need to install a special libary to get this executable
 runnable?

 Greetz
 Dudero

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-12 Thread oriharel
no. they are not in 8.0.1 also.

On Dec 10, 5:11 am, Zarah zarahj...@gmail.com wrote:
 I think Undo (CTRL+Z on Windows) works when you are in the XML view of
 the Layout Editor (not on the graphical view).

 Are the up/down arrows still not back on the 8.0.1?

 I want my up/down arrows! :)

 - Zarah.

 On Dec 9, 4:24 pm, Logan Masten sevenrech...@gmail.com wrote:







  I simply cannot believe the up and down arrows are gone.  What should
  have been a couple minute job through a few arrow presses has turned
  into an hour of me saving and reloading the layout, as undo doesn't
  appear to work either.

  On Dec 8, 8:09 pm, Julian cacif...@gmail.com wrote:

   Hi,

   It would be great if the shapes don't break the entire layout, for 
   example,
   I frequently use rounded shapes for my tablerows, but I can't apply them
   till the end because they can't be displayed/rendered in the layout
   editor.

   Same thing for TabActivities where the content of each tab is populated by
   another independent activities with intents.

   Regards.

   2010/12/8 Xavier Ducrohet x...@android.com

hey all,

We're actively working on the editor, so this is good feedback.

The new editor in 8.x might look the same, but it's completely
different underneath and we have added the +/- features back.
the - button should be replaced by delete anyway. You can right
click and choose delete or simply hit delete on your keyboard.

The + option is indeed replaced by drag and drop. We've improved
drag and drop significantly (and still improving it for the next
version), and should be good enough that using + isn't needed.
In some cases too, + isn't enough, you need more information to know
where the item will be placed (like when dropping into a
relativeLayout).
(same thing with the up/down arrows)

On Tue, Dec 7, 2010 at 11:52 PM, oriharel ori.ha...@gmail.com wrote:
 Before the newest version I was able to create hierarchies using drag
 n' drop, performed on the outline view.
 Since the upgrade, I can't and the controls ('+', '-' and arrows) are
 missing.

 So how am I suppose to build view hierarchies now?

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

--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@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] Newbie having trouble launching new activity, application stops unexpectedly

2010-12-12 Thread Mark Murphy
XML is case-sensitive. Your second activity has an Activity element,
not an activity element.

Also, your path to your video file is doubly incorrect. What you have
in there now is a reference to a file on your development machine,
which is not valid for the emulator or the device. The path you have
commented out is a bit closer, but never hardcode /sdcard as a
directory, in large part because it is wrong. Use
Environment.getExternalStorageDirectory() to get a File object
pointing to external storage, and use that to construct a path to your
file.

On Sun, Dec 12, 2010 at 6:29 AM, vtb v...@lineone.net wrote:
 New to programming in Android and having trouble launching
 a video to play activity. I am pulling what remains of my hair out
 so any help or advice would be greatly appreciated as I have tried
 all sorts and scanned the net for days bu have not come up
 with the answer and I bet it's a simple answer.

 Basically I have a touch screen that is mapped by a file
 to give touch areas that select a video to play. All this
 mapping and touch code works.

 When I touch an activated area I get the following message:-

 ==
 Sorry
 The application video_4 (process org.example.
 video_4) has stopped unexpectedly. Please try
 again.

        Force close.
 ==

 When I looked in my book it says if this happens its because
 I have not defined my activity in the manifest file. This I
 think I have done.

 Here is my manifest file:-

 
 video_4 manifest.xml
 
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=org.example.video_4
      android:versionCode=1
      android:versionName=1.0
    application android:icon=@drawable/icon android:label=@string/
 app_name
        activity android:name=.video_4
                  android:label=@string/app_name
 android:theme=@android:style/Theme.NoTitleBar.Fullscreen
            intent-filter
                action android:name=android.intent.action.MAIN /
                category
 android:name=android.intent.category.LAUNCHER /
            /intent-filter
        /activity

 === here is where I think the video activity is defined

       Activity android:name=.Videos
                         android:label=@string/video_play
 android:theme=@android:style/Theme.NoTitleBar.Fullscreen
        /Activity

    /application
    uses-sdk android:minSdkVersion=4 /
 /manifest

 
 Here is my touch code this works
 
   �...@override
    public boolean onTouchEvent( MotionEvent event ){
        int xpos,ypos;

        if( event.getAction() != MotionEvent.ACTION_DOWN ){
                return super.onTouchEvent( event );
        }
        xpos = (int)event.getX() / 20;
        ypos = (int)event.getY() / 20;
        if( xpos  0 || xpos  39 || ypos  0 || ypos  23 || !ready ){
                return true;
        }
        if( videos_to_play[ ( ypos * 40 ) + xpos ]  8 ){
                video_to_play = videos_to_play[ ( ypos * 40 ) + xpos ];
                Intent a = new Intent( this , Videos.class );
                startActivity( a );     == line that causes the error on
 running
        }
        return true;
    }

 ==
 videos.xml
 ==
 ?xml version=1.0 encoding=utf-8?
 FrameLayout
        xmlns:android=http://schemas.android.com/apk/res/android;
    android:layout_width=fill_parent
    android:layout_height=fill_parent
    VideoView
        android:id=@+id/vidview
        android:layout_height=wrap_content
        android:layout_width=wrap_content
        android:layout_gravity=center
    /
 /FrameLayout

 ===
 videos.java
 ===
 package org.example.video_4;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.VideoView;

 public class Videos extends Activity {

       �...@override
        protected void onCreate(Bundle savedInstanceState){
                super.onCreate(savedInstanceState);
                setContentView( R.layout.videos );
                VideoView video = (VideoView) findViewById( R.id.vidview);
                
 video.setVideoPath(/*/LocalDisk/AdBook/v4.mp4*//sdcard/AdBook/
 v4.mp4);
                video.start();
        }
 }

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




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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this 

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Mark Murphy
The new XML tags (compatible-screens and uses-gl-texture or
whatever that second one was) are for an upcoming version of Android.
There is no point having in having those tags in there now,
considering that we do not know what they look like.

The uses-screens element is important, though.

On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappin br...@pappin.ca wrote:
 Right now my app is built for 2.1.
 However I can see a situation where I try to add the new XML tags to tell
 the market what screens I support, but the tags are not in the manifest
 schema which of course will prevent a build.
 Does anyone else think this is going to be a problem?

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



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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


Re: [android-developers] Newbie having trouble launching new activity, application stops unexpectedly

2010-12-12 Thread Kostya Vasilyev

activity tag should not start with a capital letter.

Beyond that, check the logcat (run adb logcat on the development 
computer, see what it says if you still get errors).


-- Kostya

12.12.2010 14:29, vtb пишет:

Activity android:name=.Videos
 android:label=@string/video_play
android:theme=@android:style/Theme.NoTitleBar.Fullscreen
 /Activity



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] Problem with new market and supporting screens?

2010-12-12 Thread Kostya Vasilyev
I wonder if it'll be necessary to build with Android 2.3 to use these 
new tags, or just using a recent version of ADT will work too.


-- Kostya

12.12.2010 15:02, Mark Murphy пишет:

The new XML tags (compatible-screens  anduses-gl-texture  or
whatever that second one was) are for an upcoming version of Android.
There is no point having in having those tags in there now,
considering that we do not know what they look like.

Theuses-screens  element is important, though.

On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappinbr...@pappin.ca  wrote:

Right now my app is built for 2.1.
However I can see a situation where I try to add the new XML tags to tell
the market what screens I support, but the tags are not in the manifest
schema which of course will prevent a build.
Does anyone else think this is going to be a problem?

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






--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] Problem with new market and supporting screens?

2010-12-12 Thread Mark Murphy
These tags do not exist in Android 2.3. Ms. Hackborn has indicated
that they will exist in a future version of Android, and my guess is
that means Honeycomb.

That being said, you might need to target Honeycomb to get the ADT
support for those tags at that time -- I don't use Eclipse enough to
have a good sense of how it handles this sort of thing.

On Sun, Dec 12, 2010 at 7:18 AM, Kostya Vasilyev kmans...@gmail.com wrote:
 I wonder if it'll be necessary to build with Android 2.3 to use these new
 tags, or just using a recent version of ADT will work too.

 -- Kostya

 12.12.2010 15:02, Mark Murphy пишет:

 The new XML tags (compatible-screens  anduses-gl-texture  or
 whatever that second one was) are for an upcoming version of Android.
 There is no point having in having those tags in there now,
 considering that we do not know what they look like.

 Theuses-screens  element is important, though.

 On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappinbr...@pappin.ca  wrote:

 Right now my app is built for 2.1.
 However I can see a situation where I try to add the new XML tags to tell
 the market what screens I support, but the tags are not in the manifest
 schema which of course will prevent a build.
 Does anyone else think this is going to be a problem?

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




 --
 Kostya Vasilyev -- WiFi Manager + pretty widget --
 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




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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


[android-developers] Re: Gamine 0.3 (3D game engine)

2010-12-12 Thread Emmanuel
This is correct,you need to let the user being able to relink your
application.

But it usually means that you are using dynamic linking ( such as dll
or jar on classic java programs ).
Linking with .jar on Android is done at compilation time : in a
dezipped .apk, there is no more separated jars, so you can't relink
it.

If you know a way to do it, I would like to try it !

Can you tell me how to relink Losing your marbles with my own
version of the engine ?

Emmanuel
http://androidblogger.blogspot.com
http://www.alocaly.com

Ps: by the way I tried you game : it's nice but I think the difficulty
slope is too big : I'm stucked in the third level !
And you should give the option to remove the vibration...

On Dec 12, 6:43 am, Peter Eastman peter.east...@gmail.com wrote:
 It doesn't require you to release your source code.  It just requires
 that you provide your application as object code and/or source code,
 so that the user can modify the Library and then relink to produce a
 modified executable containing the modified Library.  (That quote is
 from section 6a of version 2.1 of the license.)  Relinking of compiled
 java code is easy to do.  The only real restriction is that, if you
 run your code through an obfuscator, your have to leave the Gamine
 classes unobfuscated.

 Peter

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

2010-12-12 Thread Phil Endecott
On Dec 12, 12:46 am, Dianne Hackborn hack...@android.com wrote:
 On Sat, Dec 11, 2010 at 4:17 PM, Phil Endecott 

 spam_from_goo...@chezphil.org wrote:
  If you can describe supported texture formats, I would think this is
  very similar, no?

 Not really, because texture formats are very clear -- you either have them
 or you don't.

How is I need 4 user clip planes any less clear?  Either it has them
or it doesn't.

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


[android-developers] Last night I posted question in this group and it is gone???

2010-12-12 Thread bobetko
Is it gone or actually it never appeared because it was not approved.
Is there some moderation process behind the scene? If it is, I would
love to be let known that my question is thrown into junk.

This is really annoying. It happened to me before.
I actually thought I was drunk or so, so maybe I didn't even send it,
but as I was writing subject for this message, my list night subject
popped out in the suggestion dropdown. I tried to search this subject
line and it is nowhere to find.

This was my subject line: onSaveInstanceState problem while making
oAuth request

Thanks.

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


[android-developers] Re: unable to set gps geo fix

2010-12-12 Thread doles
Hello,

I am slowly coming to the conclusion that the ddms ping problem might
be something that I could ignore because that command is only to find
out if the emulator has started to run. I am not sure though, so i am
going to focus on my gps problem for now and here is some extra
information: when i start the emulator, i am seeing this in the error
log:
12-12 09:27:44.551: ERROR/ThrottleService(61): Could not open GPS
configuration file /etc/gps.conf

Do I have to provide a gps.conf somewhere if i want to get locations
from gps in the emulator?

Thank you



On Dec 11, 11:06 pm, doles sachin.d...@gmail.com wrote:
 Hello,

 I have a simple class like the Hello MapView example on android dev
 guide. I have added a location listener to it and when this app runs
 on my emulator, i telnet to the emulator and send a geo fix such as
 geo fix 1 1. This is causing the emulator to crash with a thread dump
 and a list of services that died... what could be wrong? The other
 thing that happens before the emulator starts is that my IDE starts
 ddms with arguments ping emulator standalone. This results in an
 error at         at
 com.android.sdkstats.SdkStatsService.normalizeVersion(SdkStatsService.java:
 467). At this line, it is clear that that class is expecting a 4 digit
 number with dots in it and my IDE is sending in the word standalone.
 I dont know if these two are related, but I need the ability to set
 geo fixes and that is not working!!! Has anyone seen this? What am I
 missing?

 12-11 23:02:52.378: INFO/DEBUG(31): *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** *** ***
 12-11 23:02:52.378: INFO/DEBUG(31): Build fingerprint: 'generic/
 google_sdk/generic:2.3/GRH55/79397:eng/test-keys'
 12-11 23:02:52.378: INFO/DEBUG(31): pid: 61, tid: 138  
 system_server 
 12-11 23:02:52.387: INFO/DEBUG(31): signal 11 (SIGSEGV), code 1
 (SEGV_MAPERR), fault addr 
 12-11 23:02:52.397: INFO/DEBUG(31): r0   r1 406506a0  r2
 4128fab4  r3 458f3c74
 12-11 23:02:52.397: INFO/DEBUG(31): r4 012c  r5   r6
 406506a0  r7 4128fab4
 12-11 23:02:52.407: INFO/DEBUG(31): r8 84301321  r9 84302240  10
 0010  fp 0001
 12-11 23:02:52.417: INFO/DEBUG(31): ip 82f0e7d4  sp 458f3c60  lr
 82f0ab37  pc 82f07d0e  cpsr 0030
 12-11 23:02:52.768: INFO/DEBUG(31): #00  pc 7d0e  /system/lib/
 libandroid_servers.so
 12-11 23:02:52.768: INFO/DEBUG(31): #01  pc ab32  /system/lib/
 libandroid_servers.so
 12-11 23:02:52.768: INFO/DEBUG(31): #02  pc 12ca  /system/lib/hw/
 gps.goldfish.so
 12-11 23:02:52.778: INFO/DEBUG(31): #03  pc 14ae  /system/lib/hw/
 gps.goldfish.so
 12-11 23:02:52.778: INFO/DEBUG(31): #04  pc 00011a7c  /system/lib/
 libc.so
 12-11 23:02:52.778: INFO/DEBUG(31): #05  pc 00011640  /system/lib/
 libc.so
 12-11 23:02:52.788: INFO/DEBUG(31): code around pc:
 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cec ab04b082 9301cb04
 6f646804 b00247a0
 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cfc bc08bc10 4718b002
 b510b40c ab04b082
 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d0c 6804cb04 34f89301
 47a06824 bc10b002
 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d1c b002bc08 46c04718
 b510b40c ab04b082
 12-11 23:02:52.797: INFO/DEBUG(31): 82f07d2c 9301cb04 34986804
 47a06824 bc10b002
 12-11 23:02:52.797: INFO/DEBUG(31): code around lr:
 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab14 91099008 f7fb6aa0
 900aeb14 1c3a910b
 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab24 6b646b23 930c1c28
 1c31940d f7fd9b0f
 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab34 4906f8e7 44791c28
 f7ff3150 b011fe1d
 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab44 46c0bdf0 454c
 42c8 0786
 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab54 f7fbb510 bd10ec7c
 4802b510 f7fb4478
 12-11 23:02:52.807: INFO/DEBUG(31): stack:
 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c20  
 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c24  4059  /dev/ashmem/
 dalvik-heap (deleted)
 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c28  0009
 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c2c  
 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c30  ab90  [heap]
 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c34  81d48bd3  /system/lib/
 libdvm.so
 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c38  ab90  [heap]
 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c3c  458f3c6c
 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c40  00010004  [heap]
 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c44  81d3761b  /system/lib/
 libdvm.so
 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c48  3ff0
 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c4c  84300daf  /system/lib/hw/
 gps.goldfish.so
 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c50  000c
 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c54  458f3e00
 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c58  df002777
 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c5c  e3a070ad
 12-11 23:02:52.836: INFO/DEBUG(31): #00 458f3c60  0045
 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c64  8053bf25  /system/lib/
 libandroid_runtime.so
 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c68 

Re: [android-developers] Last night I posted question in this group and it is gone???

2010-12-12 Thread Kostya Vasilyev
I can see it, as well as TreKing's reply. I am using Thunderbird to read 
this group over email (POP3).


It's also in the android-developers group archive if you do a Google web 
search:


http://www.google.com/search?q=onSaveInstanceState+problem+while+making+oAuth+request

However, Goolge Groups doesn't find the message:

http://groups.google.com/group/android-developers

-- Kostya

12.12.2010 18:13, bobetko пишет:

Is it gone or actually it never appeared because it was not approved.
Is there some moderation process behind the scene? If it is, I would
love to be let known that my question is thrown into junk.

This is really annoying. It happened to me before.
I actually thought I was drunk or so, so maybe I didn't even send it,
but as I was writing subject for this message, my list night subject
popped out in the suggestion dropdown. I tried to search this subject
line and it is nowhere to find.

This was my subject line: onSaveInstanceState problem while making
oAuth request

Thanks.




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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] Re: compatible-screens and uses-gl-texture ?

2010-12-12 Thread Dianne Hackborn
The feature expression is I need X, and Y, and Z.  Maybe in the future
there will be ways to express greater than, and A or B...  but on the
other-hand, making this so complicated has a lot of pit falls as well.

On Sun, Dec 12, 2010 at 5:45 AM, Phil Endecott 
spam_from_goo...@chezphil.org wrote:

 On Dec 12, 12:46 am, Dianne Hackborn hack...@android.com wrote:
  On Sat, Dec 11, 2010 at 4:17 PM, Phil Endecott 
 
  spam_from_goo...@chezphil.org wrote:
   If you can describe supported texture formats, I would think this is
   very similar, no?
 
  Not really, because texture formats are very clear -- you either have
 them
  or you don't.

 How is I need 4 user clip planes any less clear?  Either it has them
 or it doesn't.

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




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

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

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

Re: [android-developers] Re: compatible-screens and uses-gl-texture ?

2010-12-12 Thread Dianne Hackborn
(And we really see this as as stop-gap -- ideally, for example, there would
be a standard texture format that you can count on being supported.)

On Sun, Dec 12, 2010 at 7:53 AM, Dianne Hackborn hack...@android.comwrote:

 The feature expression is I need X, and Y, and Z.  Maybe in the future
 there will be ways to express greater than, and A or B...  but on the
 other-hand, making this so complicated has a lot of pit falls as well.


 On Sun, Dec 12, 2010 at 5:45 AM, Phil Endecott 
 spam_from_goo...@chezphil.org wrote:

 On Dec 12, 12:46 am, Dianne Hackborn hack...@android.com wrote:
  On Sat, Dec 11, 2010 at 4:17 PM, Phil Endecott 
 
  spam_from_goo...@chezphil.org wrote:
   If you can describe supported texture formats, I would think this is
   very similar, no?
 
  Not really, because texture formats are very clear -- you either have
 them
  or you don't.

 How is I need 4 user clip planes any less clear?  Either it has them
 or it doesn't.

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




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

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




-- 
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] onSaveInstanceState problem while making oAuth request

2010-12-12 Thread Dianne Hackborn
You really haven't posted enough to help, but if you are starting an
activity you can pretty much count on onSaveInstanceState() being called
before the next one even starts.  Of course you can do things to prevent
this, such as calling finish() so your state won't need to be saved, using
certain Intent flags that also have the result of finishing your activity,
etc.

You may also be having a new instance of your activity created instead of
returning to the original one.  But again, there is not enough information
here to determine that.

Do look at logcat output while you are running, as that will have messages
about activities being started and other interesting things.  You can also
use adb shell dumpsys activity at any time to see all activity stacks.

On Sat, Dec 11, 2010 at 10:14 PM, bobetko bobe...@gmail.com wrote:

 In my app at some point I am making oAuth request to authorize user
 with Twitter. App opens WebView in which user enter his credentials.
 Upon user pressing Allow button, twitter sends Intent (which
 contains token and secret) back to my app so user can start when he/
 she left of. The problem is my Activity has RowID (very important to
 know which record is currently active) that get lost RowID is
 parameter that my activity receives through Intent in onCreate event.

 I've checked, onSaveIstanceState is not executed, so when my Activity
 gets control back, my RowID doesn't exist.
 When my Activity receives Intent from Twitter, it is handled in
 onResme event. I assume, here I should somehow obtain my RowID
 What would be good way to remember my RowID and to be able to pull it
 back?

 In my manifest I had to enter following for my Activity in order to be
 able to get control back:
intent-filter
action
 android:name=android.intent.action.VIEW /
category
 android:name=android.intent.category.DEFAULT /
category
 android:name=android.intent.category.BROWSABLE /
data android:scheme=myapp
 android:host=oauth /
/intent-filter

 Any Suggestions. 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

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

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

[android-developers] Re: Last night I posted question in this group and it is gone???

2010-12-12 Thread bobetko
Thanks. You are right.
I can find it if I search Google for onSaveInstanceState problem
while making
oAuth request. But if I search this group, I can't. Also, if I search
group for all posts done by me it's not showing again.
Weird...

But thanks.

On Dec 12, 9:41 am, Kostya Vasilyev kmans...@gmail.com wrote:
 I can see it, as well as TreKing's reply. I am using Thunderbird to read
 this group over email (POP3).

 It's also in the android-developers group archive if you do a Google web
 search:

 http://www.google.com/search?q=onSaveInstanceState+problem+while+maki...

 However, Goolge Groups doesn't find the message:

 http://groups.google.com/group/android-developers

 -- Kostya

 12.12.2010 18:13, bobetko пишет:

  Is it gone or actually it never appeared because it was not approved.
  Is there some moderation process behind the scene? If it is, I would
  love to be let known that my question is thrown into junk.

  This is really annoying. It happened to me before.
  I actually thought I was drunk or so, so maybe I didn't even send it,
  but as I was writing subject for this message, my list night subject
  popped out in the suggestion dropdown. I tried to search this subject
  line and it is nowhere to find.

  This was my subject line: onSaveInstanceState problem while making
  oAuth request

  Thanks.

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --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: onSaveInstanceState problem while making oAuth request

2010-12-12 Thread bobetko
I thought about that. But, then another question come to my mind.
Why wouldn't I always use SharedPreferences to save my activity state?

For example:
I passed groupID and itemID values into activity. In onCreate, I save
both values to SharedPreferences.
Latter, when activity is restarted (for any reason: rotation, pause,
was destroyed, etc.), I check Intent first, if nothing is passed, I
load values from SharedPreferences. This way I woulnd't have to use
onSaveInstanceState ever. Is this OK to do?

Thanks a lot.

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


Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Dianne Hackborn
I would generally recommend people do NOT use the compatible-screens
feature.  It is there for a very specific purpose (I assume the
documentation will describe this), but for most apps it will cause more harm
than good.  supports-screens is still the recommended approach, as it
follows the model of separating screen size from density.  Trying to do
otherwise will lead to fragile applications and new and fun problems for
you.

On Sun, Dec 12, 2010 at 4:28 AM, Mark Murphy mmur...@commonsware.comwrote:

 These tags do not exist in Android 2.3. Ms. Hackborn has indicated
 that they will exist in a future version of Android, and my guess is
 that means Honeycomb.

 That being said, you might need to target Honeycomb to get the ADT
 support for those tags at that time -- I don't use Eclipse enough to
 have a good sense of how it handles this sort of thing.

 On Sun, Dec 12, 2010 at 7:18 AM, Kostya Vasilyev kmans...@gmail.com
 wrote:
  I wonder if it'll be necessary to build with Android 2.3 to use these new
  tags, or just using a recent version of ADT will work too.
 
  -- Kostya
 
  12.12.2010 15:02, Mark Murphy пишет:
 
  The new XML tags (compatible-screens  anduses-gl-texture  or
  whatever that second one was) are for an upcoming version of Android.
  There is no point having in having those tags in there now,
  considering that we do not know what they look like.
 
  Theuses-screens  element is important, though.
 
  On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappinbr...@pappin.ca  wrote:
 
  Right now my app is built for 2.1.
  However I can see a situation where I try to add the new XML tags to
 tell
  the market what screens I support, but the tags are not in the manifest
  schema which of course will prevent a build.
  Does anyone else think this is going to be a problem?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
 
 
  --
  Kostya Vasilyev -- WiFi Manager + pretty widget --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

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




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

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

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

Re: [android-developers] Re: Notification assistance.

2010-12-12 Thread Dianne Hackborn
On Sat, Dec 11, 2010 at 9:03 PM, DanH danhi...@ieee.org wrote:

 In Android the same basic function is accomplished with intents.


Well.  If this is all just in your app, I would generally just recommend
doing normal direct callbacks.  There isn't a generic local callback
registry API in Android, but this is trivial to build yourself -- just make
a class with an ArrayListCallback and functions to add and remove
callbacks, and perform a call on all callbacks.  It's 20 lines of code max.
 If you want to make it async, it's a couple more lines of code to have a
Handler that you post a Runnable on to, to do the callbacks.

-- 
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: onSaveInstanceState problem while making oAuth request

2010-12-12 Thread bobetko
Thanks Dianne,

I've look at logs and my app is crashing because my RowID value is
null. RowID is record ID that is needed to query sqlite database.
I could post here all my code, but I doubt it would be very useful...
I'll try explaining better with some code snippets:

This is what I execute when user push Authorize button:

consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY,
CONSUMER_SECRET);
provider = new DefaultOAuthProvider(http://twitter.com/oauth/
request_token,
 http://twitter.com/oauth/access_token;,
 http://twitter.com/oauth/authorize;);
String authUrl = provider.retrieveRequestToken(consumer,
CALLBACK_URL);
mWebView.loadUrl(authUrl);

User is presented with login and password fields and there is also
Allow button. When user pushes this Allow button, Twitter sends Intent
(with token and secret) back to my activity. I process this Intent in
onResume method. OnResume runs first, then onCreate. At this point my
RowID is lost. Nowhere in this process onSaveInstanceState was called
because of simple reason, activity is not paused, exited, screen is
not rotated, etc... So, how do I save and retrieve my RowID? Thanks.

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


Re: [android-developers] Re: onSaveInstanceState problem while making oAuth request

2010-12-12 Thread Dianne Hackborn
onResume runs first then onCreate -- that is not typical.  Either your
activity is being restarted (due to a configuration change) or you have a
new instance created.

Also what do you mean by Twitter sends Intent (with token and secret) back
to my activity?  Do you mean it is using setResult()?  Or is this doing
something else?

And do please have a look at the logcat output to see what activities are
being started.

On Sun, Dec 12, 2010 at 8:18 AM, bobetko bobe...@gmail.com wrote:

 Thanks Dianne,

 I've look at logs and my app is crashing because my RowID value is
 null. RowID is record ID that is needed to query sqlite database.
 I could post here all my code, but I doubt it would be very useful...
 I'll try explaining better with some code snippets:

 This is what I execute when user push Authorize button:

 consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY,
 CONSUMER_SECRET);
 provider = new DefaultOAuthProvider(http://twitter.com/oauth/
 request_token,
 http://twitter.com/oauth/access_token;,
 http://twitter.com/oauth/authorize;);
 String authUrl = provider.retrieveRequestToken(consumer,
 CALLBACK_URL);
 mWebView.loadUrl(authUrl);

 User is presented with login and password fields and there is also
 Allow button. When user pushes this Allow button, Twitter sends Intent
 (with token and secret) back to my activity. I process this Intent in
 onResume method. OnResume runs first, then onCreate. At this point my
 RowID is lost. Nowhere in this process onSaveInstanceState was called
 because of simple reason, activity is not paused, exited, screen is
 not rotated, etc... So, how do I save and retrieve my RowID? 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

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

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

[android-developers] Eclipse builds suddenly broke

2010-12-12 Thread DulcetTone
My project was building fine yesterday, but after I downloaded the 2.3
SDK and updated some Eclipse components, it broke HARD.

.AIDLs do not even try to compile
Resources are never compiled (e.g., from values/strings.xml)

Are there any known issues with the latest Eclipse/Android bits?

tone

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

2010-12-12 Thread Phil Endecott
On Dec 12, 3:53 pm, Dianne Hackborn hack...@android.com wrote:
 The feature expression is I need X, and Y, and Z.  Maybe in the future
 there will be ways to express greater than, and A or B...  but on the
 other-hand, making this so complicated has a lot of pit falls as well.

Don't overcomplicate it.  99% of reqirements are satisfied by and
greater than, i.e. I need = 4 user clip planes and = 3 texture
units.  Don't let the theoretical possibility that someone might want
to say I need exactly 2 user clip planes and anisotropic filtering OR
less than 6 user clip planes and non-power-of-two mipmaps stop you
from implementing the basic functionality.

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


[android-developers] WiFi Problem

2010-12-12 Thread peeyush varshney
Dear All,

I have installed ubuntu 10.4.  I am trying hard to access internet using
WiFI connection.
Can somebody tell me how to do enable WiFi access on ubuntu.

-- 
Thank  Regards
Peeyush Varshney

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Last night I posted question in this group and it is gone???

2010-12-12 Thread DanH
Basically, Google Groups sux.  Things come and go and change order
with considerable randomness.

On Dec 12, 9:13 am, bobetko bobe...@gmail.com wrote:
 Is it gone or actually it never appeared because it was not approved.
 Is there some moderation process behind the scene? If it is, I would
 love to be let known that my question is thrown into junk.

 This is really annoying. It happened to me before.
 I actually thought I was drunk or so, so maybe I didn't even send it,
 but as I was writing subject for this message, my list night subject
 popped out in the suggestion dropdown. I tried to search this subject
 line and it is nowhere to find.

 This was my subject line: onSaveInstanceState problem while making
 oAuth request

 Thanks.

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


[android-developers] Re: onSaveInstanceState problem while making oAuth request

2010-12-12 Thread bobetko
Sorry. Yes. You are right. onCreate runs first, then onResume next. (I
am still learning about Android activity cycle :-)
Here is my onResume method that handle this data that comes from
Twitter.
See lines 5 and 6. If 6 is true I am extracting token and secret and
saving them to SharedPreferences. This code runs fine, just that RowID
variable gets lost in the process. onCreate that runs before this one
(onResume), has no idea about RowID.

@Override
protected void onResume() {
super.onResume();
Log.d(TAG, mRowID onResume :  + mRowId);
Uri uri = this.getIntent().getData();
if (uri != null  uri.toString().startsWith(CALLBACK_URL)) {
SessionPilot appState =
((SessionPilot)getApplicationContext());
consumer = appState.getConsumer();
provider = appState.getProvider();
String verifier =
uri.getQueryParameter(oauth.signpost.OAuth.OAUTH_VERIFIER);
try {
provider.retrieveAccessToken(consumer, verifier);
Utils.StoreStringToPrefs(twitterToken,
consumer.getToken(), PREF_FILE_NAME ,this);
Utils.StoreStringToPrefs(twitterSecret,
consumer.getTokenSecret(), PREF_FILE_NAME ,this);
} catch (Exception e) {
Log.e(APP, e.getMessage());
}
}
}

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

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 8:54 AM, Phil Endecott 
spam_from_goo...@chezphil.org wrote:

 Don't overcomplicate it.  99% of reqirements are satisfied by and
 greater than, i.e. I need = 4 user clip planes and = 3 texture
 units.  Don't let the theoretical possibility that someone might want
 to say I need exactly 2 user clip planes and anisotropic filtering OR
 less than 6 user clip planes and non-power-of-two mipmaps stop you
 from implementing the basic functionality.


That's my point.  I believe the number one pain point that has been raised
is texture formats, so this is a solution for that which can be provided
very quickly because it can re-use all of the existing infrastructure for
features and shared libraries.  Doing something more will delay any solution
for textures.

Anyway, I can't discuss this much more.  I work on the platform, and this is
totally unrelated to the platform -- filtering like this is not at the
platform level (the platform doesn't even know what these things are), it is
part of Market, and that is outside my area of expertise.

-- 
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: onSaveInstanceState problem while making oAuth request

2010-12-12 Thread Dianne Hackborn
It is unlikely this has anything to do with saving and restoring instance
state, unless a configuration change is happening or your process is being
killed in the background.

If you are saying that you are seeing onCreate() called, then again I think
you should consider that you actually have a new instance of the activity
being started, and look at the logcat output if there is a log about
starting an activity.

On Sun, Dec 12, 2010 at 9:02 AM, bobetko bobe...@gmail.com wrote:

 Sorry. Yes. You are right. onCreate runs first, then onResume next. (I
 am still learning about Android activity cycle :-)
 Here is my onResume method that handle this data that comes from
 Twitter.
 See lines 5 and 6. If 6 is true I am extracting token and secret and
 saving them to SharedPreferences. This code runs fine, just that RowID
 variable gets lost in the process. onCreate that runs before this one
 (onResume), has no idea about RowID.

 @Override
 protected void onResume() {
super.onResume();
Log.d(TAG, mRowID onResume :  + mRowId);
Uri uri = this.getIntent().getData();
if (uri != null  uri.toString().startsWith(CALLBACK_URL)) {
SessionPilot appState =
 ((SessionPilot)getApplicationContext());
consumer = appState.getConsumer();
provider = appState.getProvider();
String verifier =
 uri.getQueryParameter(oauth.signpost.OAuth.OAUTH_VERIFIER);
try {
provider.retrieveAccessToken(consumer, verifier);
Utils.StoreStringToPrefs(twitterToken,
 consumer.getToken(), PREF_FILE_NAME ,this);
Utils.StoreStringToPrefs(twitterSecret,
 consumer.getTokenSecret(), PREF_FILE_NAME ,this);
} catch (Exception e) {
Log.e(APP, e.getMessage());
}
}
 }

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




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

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

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

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Brill Pappin
Really what I'm concerned about is having to build with a future
version of the UI and having my 2.1 users excluded.
Since Eclipse validates the XML, I've had a few problems adding
elements for for 2.2 in a 2.1 build.


I still want the 2.2 elements for those using it, but it needs to fail
gracefully so that users still on 2.1 just ignore the tags.


At the moment, the XML schema's won't allow you to do that. If the new
manifest elements don't fall back (if the schema's are not updated to
allow the new elements) its going to make developing in anything but
the most recent SDK impossible.


Unfortunately we can't assume that all users will (or are able) to
update to whatever is latest.

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

2010-12-12 Thread Brill Pappin
laugh


Yah, so I hear :)

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

2010-12-12 Thread Peter Eastman
Do you have a suggestion for a different license?  I don't want to
create any obstacles to using it in commercial games, but I do want to
make sure that if someone improves the library itself, those
improvements will be released as open source.

 Ps: by the way I tried you game : it's nice but I think the difficulty
 slope is too big : I'm stucked in the third level !

Then try the fourth level. :)

 And you should give the option to remove the vibration...

Good suggestion.  I'll add that.

Peter

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

2010-12-12 Thread DulcetTone
This turned out to be caused by the new requirement that multiple
formatting marks in a string/string be numbered.

More here:

http://developer.android.com/guide/topics/resources/string-resource.html


Tony

On Dec 12, 11:45 am, DulcetTone dulcett...@gmail.com wrote:
 My project was building fine yesterday, but after I downloaded the 2.3
 SDK and updated some Eclipse components, it broke HARD.

 .AIDLs do not even try to compile
 Resources are never compiled (e.g., from values/strings.xml)

 Are there any known issues with the latest Eclipse/Android bits?

 tone

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

2010-12-12 Thread Emmanuel
 Do you have a suggestion for a different license?  I don't want to
 create any obstacles to using it in commercial games, but I do want to
 make sure that if someone improves the library itself, those
 improvements will be released as open source.

I'm not sure. Someone on the AndEngine blog ( that suffer the same
LGPL plague ! ) advised to go with the Apache 2 license, but I'm not
sure it force the modifications to be open source.

Open source licensing is such a complex thing !! :)


  Ps: by the way I tried you game : it's nice but I think the difficulty
  slope is too big : I'm stucked in the third level !

 Then try the fourth level. :)
I failed too :)


  And you should give the option to remove the vibration...

 Good suggestion.  I'll add that.

 Peter

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 make a trial version which starts a limited amount of times?

2010-12-12 Thread Michael A.
Definitely. The comments above are still relevant, though.

On Dec 11, 11:25 am, Eyvind Almqvist eyv...@mobile-visuals.com
wrote:
 I got a mail from Android market, where they wrote:

 We will be reducing the purchase refund window to 15 minutes.

 So I assume that 24 hour refund is no longer available? That makes it
 more important to have a trial version.

 On 23 Nov, 09:44, Eyvind Almqvist eyv...@mobile-visuals.com wrote:

  Yes, I see now that they write
  Products that cannot be previewed by the buyer (such as
  applications): You authorize Google to give the buyer a full refund of
  the Product price if the buyer requests the refund within 48 hours
  after purchase.

  I have released a trial like I described on OVI and
  I haven't got much angry reviews.
  I could also make a trial with limited functionality.
  You could for instance only watch 4 of the 10 visual effects.
  But wouldn't that risk getting angry reviews as well?'
  Or do you think this alternative would work better on AM?

  It is difficult and time consuming to buy anything from AM
  in Sweden. You have to buy with credit cards and
  you have to write all the information about your credit card in the
  mobile.
  Is it the same for USA? If so, I think it makes people less willing to
  buy anything.
  I think a trial version is needed because the buying process is so
  complicated, even
   if a 24 hour trial is possible when they buy apps.

  On 22 Nov, 01:13, Michael A. michael.aki...@gmail.com wrote:

   On Nov 20, 11:34 am, MobileVisuals eyv...@astralvisuals.com wrote:

Thanks for explaining, now I understand what you mean when you say
that there is not much use to make a time limited trial.
What do you mean with Android Market already implements a default
time limited trial version of your app? Do you mean that everytime
someone buys an app they can return it within 24-48 hours for free?
That must be a special rule that Google has, I've never seen that in
other appstores.

   You should probably read 
   this:http://www.android.com/us/developer-distribution-agreement.html

I was planning to release a trial version which starts 3 times. The
first time, you can view all of the visual effects.
The second time, you can view just 3 of the visual effects. The third
time, you can view just 1 of the visual effects.
But maybe it is no use to release a trial version like that either? My
apps display visual effects that you can use for meditation or
relaxation, so you can't use them as a wallpaper.

   I think that you would be likely to get a lot of disgruntled customers
   by releasing an app like that, but do keep in mind that this is just
   an opinion based on my own experiences and observations. Others may
   have differing experiences/opinions, and even if all of us agree (not
   likely), it is still just an opinion. None of us can predict the
   future.

My company got good distribution to operators, currently about 40
operators are selling our apps. Maybe it is easier to get sales for
Android apps on the operators appstores and portals than on Android
market? I have seen that big US operators like T-mobile and Verizon
are looking for Android apps.

   It is certainly possible, but none of the alternate markets have - as
   yet - a market penetration to compete with the Android market. You are
   likely to make at least an order of magnitude (10x)  more sales
   through the Android market than any other portal as things stand
   today. That situation may change in future, perhaps even the near
   future, but for now this is the reality we deal with.

   Regards,

   Michael A.

On 18 Nov, 14:11, Michael A. michael.aki...@gmail.com wrote:

 On Nov 17, 9:57 am, MobileVisuals eyv...@astralvisuals.com wrote:

  I see, so do you know the best way to make a time limited trial? I
  assume that the License Verification Library (LVL) should not be 
  used
  for this?

 I would not make a time-limited trial (that was kind of my point).
 With the way the Android market works (and the demographics of its
 users), it is not really well suited to these kind of apps.

 I would look to limit the functionality/choice in your trial app
 instead. I can see that you do wallpapers; you could for instance
 offer a basic variant for free that does not permit any (or very
 little) tweaking of your wallpaper settings. Or put in ads whenever
 the settings are changed - whichever solution seems to fit best with
 your strategy.

  Our apps has sold best when there is no trial version available, so
  the consumer only has the option of buying the complete version. 
  This
  approach has been successful on Playnow, we've had 2 apps which have
  been number one their sales chart.

 The Android market is a very different beast, for better and worse.

  But I assume that this approach is more difficult on 

[android-developers] Re: Newbie having trouble launching new activity, application stops unexpectedly

2010-12-12 Thread vtb
Thanks, the capital A in the XML file fixed my issues, the hard coding
of the path was a
temporary measure to allow me to quickly test on my device. I have now
recoded the
bad parts and everything is working fine.

It's a shame that no error was reported in the compile.

Thank you very much for your help.

On Dec 12, 12:00 pm, Mark Murphy mmur...@commonsware.com wrote:
 XML is case-sensitive. Your second activity has an Activity element,
 not an activity element.

 Also, your path to your video file is doubly incorrect. What you have
 in there now is a reference to a file on your development machine,
 which is not valid for the emulator or the device. The path you have
 commented out is a bit closer, but never hardcode /sdcard as a
 directory, in large part because it is wrong. Use
 Environment.getExternalStorageDirectory() to get a File object
 pointing to external storage, and use that to construct a path to your
 file.



 On Sun, Dec 12, 2010 at 6:29 AM, vtb v...@lineone.net wrote:
  New to programming in Android and having trouble launching
  a video to play activity. I am pulling what remains of my hair out
  so any help or advice would be greatly appreciated as I have tried
  all sorts and scanned the net for days bu have not come up
  with the answer and I bet it's a simple answer.

  Basically I have a touch screen that is mapped by a file
  to give touch areas that select a video to play. All this
  mapping and touch code works.

  When I touch an activated area I get the following message:-

  ==
  Sorry
  The application video_4 (process org.example.
  video_4) has stopped unexpectedly. Please try
  again.

         Force close.
  ==

  When I looked in my book it says if this happens its because
  I have not defined my activity in the manifest file. This I
  think I have done.

  Here is my manifest file:-

  
  video_4 manifest.xml
  
  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=org.example.video_4
       android:versionCode=1
       android:versionName=1.0
     application android:icon=@drawable/icon android:label=@string/
  app_name
         activity android:name=.video_4
                   android:label=@string/app_name
  android:theme=@android:style/Theme.NoTitleBar.Fullscreen
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
  android:name=android.intent.category.LAUNCHER /
             /intent-filter
         /activity

  === here is where I think the video activity is defined

        Activity android:name=.Videos
                          android:label=@string/video_play
  android:theme=@android:style/Theme.NoTitleBar.Fullscreen
         /Activity

     /application
     uses-sdk android:minSdkVersion=4 /
  /manifest

  
  Here is my touch code this works
  
    �...@override
     public boolean onTouchEvent( MotionEvent event ){
         int xpos,ypos;

         if( event.getAction() != MotionEvent.ACTION_DOWN ){
                 return super.onTouchEvent( event );
         }
         xpos = (int)event.getX() / 20;
         ypos = (int)event.getY() / 20;
         if( xpos  0 || xpos  39 || ypos  0 || ypos  23 || !ready ){
                 return true;
         }
         if( videos_to_play[ ( ypos * 40 ) + xpos ]  8 ){
                 video_to_play = videos_to_play[ ( ypos * 40 ) + xpos ];
                 Intent a = new Intent( this , Videos.class );
                 startActivity( a );     == line that causes the error on
  running
         }
         return true;
     }

  ==
  videos.xml
  ==
  ?xml version=1.0 encoding=utf-8?
  FrameLayout
         xmlns:android=http://schemas.android.com/apk/res/android;
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     VideoView
         android:id=@+id/vidview
         android:layout_height=wrap_content
         android:layout_width=wrap_content
         android:layout_gravity=center
     /
  /FrameLayout

  ===
  videos.java
  ===
  package org.example.video_4;

  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.VideoView;

  public class Videos extends Activity {

        �...@override
         protected void onCreate(Bundle savedInstanceState){
                 super.onCreate(savedInstanceState);
                 setContentView( R.layout.videos );
                 VideoView video = (VideoView) findViewById( R.id.vidview);
                 
  video.setVideoPath(/*/LocalDisk/AdBook/v4.mp4*//sdcard/AdBook/
  v4.mp4);
                 video.start();
         }
  }

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email 

[android-developers] Re: Notification assistance.

2010-12-12 Thread Phil Endecott
Hi Damien,

On Dec 12, 4:13 am, Damien Cooke cooke.dam...@gmail.com wrote:
 In ios I can post notifications that can be listed for by other objects.

Write your own replacement.  On iOS I use my own simple notification
system, because Apple's version is overcomplicated.  For most cases
it's almost trivial to do; it only gets complicated if you need to
worry about threads, queuing, merging multiple notifications and
things like that.

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

2010-12-12 Thread Mario Zechner
We switched from LGPL to Apache 2 for exactly that reason in libgdx.
I'd recommend using it for your engine. Looks neat btw, keep up the
good work!

On 12 Dez., 19:24, Emmanuel emmanuel.ast...@gmail.com wrote:
  Do you have a suggestion for a different license?  I don't want to
  create any obstacles to using it in commercial games, but I do want to
  make sure that if someone improves the library itself, those
  improvements will be released as open source.

 I'm not sure. Someone on the AndEngine blog ( that suffer the same
 LGPL plague ! ) advised to go with the Apache 2 license, but I'm not
 sure it force the modifications to be open source.

 Open source licensing is such a complex thing !! :)



   Ps: by the way I tried you game : it's nice but I think the difficulty
   slope is too big : I'm stucked in the third level !

  Then try the fourth level. :)

 I failed too :)









   And you should give the option to remove the vibration...

  Good suggestion.  I'll add that.

  Peter

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread Tim H.
You say nothing was changed? I have an issue where I can no longer
right click and add views or layouts from the Outline window - and the
add, move up/down buttons have been removed. Is this a bug - or was
this intentional?

The current drag-and-drop method makes it practically impossible for
me to design layouts - especially if trying to keep layouts compatible
with 1.5. I am extremely happy that work is being put into the
designer - it desperately needs it - but in its current state, I have
a lot of issues:

- Properties are apparently not saved at every state, I see old values
randomly pop up (such as Text was empty, then it returns to @+id/
Button01)
- After deleting some views, suddenly I can no longer add new views

If the new drag and drop method is available, but I am not forced to
use it, great.. otherwise, I'm totally frustrated.

Thanks,
Tim

On Dec 11, 9:57 pm, Xavier Ducrohet x...@android.com wrote:
 the only thing we changed is not forcing the display of the property
 view which was very annoying.

 just display it again as mentioned in another message and it'll be there.

 The right click menu is just a quick shortcut to properties that are
 just enums/flags.



 On Sat, Dec 11, 2010 at 7:11 AM, niko20 nikolatesl...@yahoo.com wrote:
  Ok, the new layout editor is fancier and all but no more properties
  window? I have to right click to set properties now? And many times
  the right click menu does not function correctly either, like it will
  be missing sub menus, etc. I want my properties list back!

  -niko

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread Frank Weiss
Just a thought...

I wonder if any of the developers who are passionate about using the
notoriously buggy ADT layout editor might consider being passionate about
contributing to its development. Correct me if I'm wrong, but the ADT is an
open source project, right?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Adapter fetches and parses RSS feed to get its data - best practice?

2010-12-12 Thread Bob Kerns
This single responsibility thing is often misinterpreted as single
bit of functionality, I fear.

It's as much about clarity of role as anything. If adding
functionality to an object blurs the lines of what that object does,
than you are undermining the abstraction. If it takes 3 pages to
describe what a module is responsible for, you have a problem.

The flip side of single responsibility should always be complete
responsibility. Failure in this is why you are dealing with 360-odd
modules. This principle argues AGAINST separating related
functionality.

So what you have is a situation where it takes 30 pages to describe
where the responsibility for the area lies!

Often, however, you really do want to break things up into
collaborations of smaller, more focused objects. This isn't driven
blindly by single responsibility, but rather by looking at how you
want to allow variation -- for example, breaking out address from
user, to allow multiple addresses, or alternate address validation
for different countries, etc. That might lead in turn to separating
address from address validator, so you can have a single object
responsible for representing the address, and just combine it with the
appropriate validator, which is responsible only for validation.

But note here that from the outside, you just have user, which owns
addresses. There is still a single cohesive outer object, which has
the ENTIRE responsibility for representing information about the user.
We don't have an interface where we supply a user, and get back an
address, and another where we supply an address and a user and get a
validator, to which we then supply an address.

The complete responsibility for the user information is concentrated
in one place. This brings us to one of the key concepts of modularity
-- HIDING THE IMPLEMENTATION. It is this notion of complete
responsibility that enables modularity, by allowing details such as
address validation to become part of the implementation rather than
part of the interface.

Sometimes this approach can lead to your 360-odd classes simply being
hidden behind an interface. If so, you're still better off, because at
least you now have a cohesive interface, even if you have a complex
implementation.

Often this situation arises from a desire to allow for future
flexibility and variation. Often, that future need for that
flexibility and variation never arises. Here, Do The Simplest Thing
That Can Possibly Work is your best defense. But do not follow that
rule slavishly. If your task is to create a framework on which others
will build, possibly work has a very different meaning than creating
a piece of end functionality.

Still, people who have just learned to split up objects sometimes get
carried away, because they see it as a way of avoiding rewriting the
code later when things change. And often this is driven by excessive
pain in rewriting, because of bad modularity, lack of skill with
refactoring -- and lack of unit testing.

Anyway, I just wanted to put this single responsibility thing in a
different light. It's really a valid idea, and not the cause of your
problem. Your problem was caused by a failure of the companion rule,
complete responsibility. If you forget either half of this pair,
you'll create a mess. Modularity depends on both operating together.

On Dec 11, 8:30 pm, DanH danhi...@ieee.org wrote:
 I'm working on (repairing) an application right now where the original
 developers apparently believed in that single responsibility thing.
 127K lines in 360-odd modules, when the job could easily have been
 done in 35K.  (We know this because the same function was implemented
 on another platform in that much code.)  Each class/module only does
 one thing, but the code is virtually impenetrable, nasty to
 maintain, and prone to serious performance problems.

 Good design generally dictates that a given class should ABSTRACT a
 particular resource or function.  That is to say, the class should
 present a virtual, idealized representation of the resource or
 function that permits the user to use it without concern for the
 dirty details inside, and without having to know the protocols,
 timings, etc, that may be involved.  This often means that the class
 must do many different things, when you look inside.  But on the
 outside it's a consistent, homogeneous interface.

 On Dec 9, 5:43 pm, jim jcant...@gmail.com wrote:







  In a shared project, we have an Adapter class (extends BaseAdapter,
  implements ListAdapter). In its constructor, this class fetches an RSS
  feed from the internet and parses the returned XML document to obtain
  the data it will 'adapt'; the data is kept in a private class
  variable.

  This is seen as the Android way of doing things by the author and is
  supported by the project lead.
  Can this be considered a Best Practice?
  Can it be justified on the grounds that it (may?) increase
  performance?
  Doesn't it violate the general Object Oriented Design (OOD) 

Re: [android-developers] Re: Last night I posted question in this group and it is gone???

2010-12-12 Thread TreKing
On Sun, Dec 12, 2010 at 10:00 AM, bobetko bobe...@gmail.com wrote:

 But if I search this group, I can't. Also, if I search group for all posts
 done by me it's not showing again. Weird...


The online interface to Google Groups is useless (supposedly it's getting a
revamp). I highly recommend you use Gmail with labels and filters.

-
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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread Bob Kerns
Well, that's the only thing you changed about the properties, but
hardly the only thing you changed.

It took me a while to figure out how to arrange things in a relative
view. THAT has certainly changed!

For the better, certainly -- but it is very hard to figure out. It's
hard to figure out why dragging things in most positions doesn't work
-- that you have to go to that grid, which at first doesn't seem to be
what you are looking for.

That is, while the new functionality is much cleaner and more usable
-- it is also much less discoverable. I don't have a solution, other
than having some highly-visible detailed documentation.

The meaning of the different positions on that grid I also find
confusing -- but the way it shows you the attributes it sets makes
that aspect discoverable. In fact, were it not for that, I'm not sure
I ever would have figured it out, and would have just ignored the
whole thing, and edited the XML for everything. Just to illustrate the
value of discoverable

The issue with the missing properties view is much the same deal.
The forced properties view was indeed, as you put it, very annoying.
But it was also very obvious.

Now that I know how to use it, I definitely prefer the new interface
-- but it's a lot harder to just point someone at it and have them
succeed.

On Dec 11, 6:57 pm, Xavier Ducrohet x...@android.com wrote:
 the only thing we changed is not forcing the display of the property
 view which was very annoying.

 just display it again as mentioned in another message and it'll be there.

 The right click menu is just a quick shortcut to properties that are
 just enums/flags.

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

2010-12-12 Thread TreKing
On Sun, Dec 12, 2010 at 11:10 AM, Brill Pappin br...@pappin.ca wrote:

 Since Eclipse validates the XML, I've had a few problems adding elements
 for for 2.2 in a 2.1 build.


You should be building against the latest platform version you plan to
support. When it runs on a device with an older version, new, unrecognized
tags are ignored.


 I still want the 2.2 elements for those using it, but it needs to fail
 gracefully so that users still on 2.1 just ignore the tags.


That's the way it works ...


 At the moment, the XML schema's won't allow you to do that. If the new
 manifest elements don't fall back (if the schema's are not updated to allow
 the new elements) its going to make developing in anything but the most
 recent SDK impossible.


Huh?


 Unfortunately we can't assume that all users will (or are able) to update
 to whatever is latest.


Of course not - with how fast Android gets updated and how slow (or
reluctant) carriers are to updated, it seems there are always going to be a
good number of people running an older version.

-
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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread Bob Kerns
I thought I had this issue. But it turned out to be that I didn't know
how to use the new RelativeLayout functionality.

You can't just drop the new view anywhere, you have to drop it onto
the specific locations that indicate what relationship the new view
should have to what's there. Including the initial content view, which
you need to relate to the parent.

It's really quite slick, guiding you toward a correct-by-
construction approach that really helps you get relative layouts
right without thinking much about it. But it's baffling at first.

On Dec 12, 12:19 pm, Tim H. timho...@gmail.com wrote:
 - After deleting some views, suddenly I can no longer add new views


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

2010-12-12 Thread Shyam
Hi Dianne Hackborn, thanks for that. I will give it a try tomorrow.

Reg
Shyam

On Dec 11, 7:02 pm, Dianne Hackborn hack...@android.com wrote:
 Just use android:exported=false to ensure it is not public.









 On Fri, Dec 10, 2010 at 11:09 PM, Doug beafd...@gmail.com wrote:
  If your activity requires an an intent filter, you could try requiring
  a password passed as an extra in the intent that launches it.  That
  may at least slow down your serious attackers and deter the casual
  ones.

  Doug

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

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

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

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


[android-developers] Re: compatible-screens and uses-gl-texture ?

2010-12-12 Thread Mario Zechner
I think the only thing needed is a manifest tag that let's you specify
the OpenGL ES profile you want to work have available. That feature is
already there but it seems some devices don't report it correctly.

Everything else can and should be checked at runtime. That's what the
extension string is for. Actually, you can even check for GLES2
support via EGL. Adding all possible OpenGL extensions to the manifest
file will result in a lot of pain for everyone. And given that
manufacturers aren't capable of letting their devices return the GLES
profile i wouldn't rely on any manifest attributes the market tries to
check anyways in case of OpenGL. Most drivers have horrible problems
and manufacturers don't give a damn.

On 12 Dez., 18:04, Dianne Hackborn hack...@android.com wrote:
 On Sun, Dec 12, 2010 at 8:54 AM, Phil Endecott 

 spam_from_goo...@chezphil.org wrote:
  Don't overcomplicate it.  99% of reqirements are satisfied by and
  greater than, i.e. I need = 4 user clip planes and = 3 texture
  units.  Don't let the theoretical possibility that someone might want
  to say I need exactly 2 user clip planes and anisotropic filtering OR
  less than 6 user clip planes and non-power-of-two mipmaps stop you
  from implementing the basic functionality.

 That's my point.  I believe the number one pain point that has been raised
 is texture formats, so this is a solution for that which can be provided
 very quickly because it can re-use all of the existing infrastructure for
 features and shared libraries.  Doing something more will delay any solution
 for textures.

 Anyway, I can't discuss this much more.  I work on the platform, and this is
 totally unrelated to the platform -- filtering like this is not at the
 platform level (the platform doesn't even know what these things are), it is
 part of Market, and that is outside my area of expertise.

 --
 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: Gamine 0.3 (3D game engine)

2010-12-12 Thread Peter Eastman
I don't think Apache requires people to release their improvements to
the library?  I'd prefer to have a license that does that.  But if
people object seriously to LGPL, and if I can't find a different one
that does that, I'll probably just go to BSD, which imposes almost no
restrictions at all.

 I failed too :)

No comment. :)  But I did just release an update with the setting for
vibration.

Peter

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread Tim H.
I do understand how the new system works..

Re: no longer being able to add views - I know that it has to be at
specific locations, but when there is only a single RelativeLayout
present, I should be able to add a button via alignParentLeft/Right/
Top/Bottom - it would not allow me to do that until I closed out and
re-opened it.

My problems are:

a) For layouts to work in 1.5, you have to put them in a specific
order - To do this correctly, I can no longer move views up or down, I
have to manually edit the xml - the new drag-and-drop seems to prevent
you from making a mistake in this regard, but doesn't allow it to be
corrected (i.e. you get a Red box with the X across it)
b) The drag-and-drop method is very align-happy in RelativeLayout -
many times I have to go and remove alignments that it added
automatically - it reminds of of something akin to FrontPage creating
HTML.. throwing on properties that may or may not be necessary :)
c) The new system makes it difficult if not impossible to align one
layout with another - for example, try to add two Linear Layouts
inside a RelativeLayout, one below the other.
d) Even with 'Display extra margins' turned on, it is sometimes
difficult to drag new views into an empty layout - particularly when
there is a number of other views nearby. This was not difficult
before, when I could just right-click and add a view to the empty
layout

There are improvements for sure, like I said, I'm ecstatic that they
are working to make it easier, but as bad as the old method was, I
find myself having more difficulties now than before.. maybe I just
need more time to get used to it.

On Dec 12, 3:51 pm, Bob Kerns r...@acm.org wrote:
 I thought I had this issue. But it turned out to be that I didn't know
 how to use the new RelativeLayout functionality.

 You can't just drop the new view anywhere, you have to drop it onto
 the specific locations that indicate what relationship the new view
 should have to what's there. Including the initial content view, which
 you need to relate to the parent.

 It's really quite slick, guiding you toward a correct-by-
 construction approach that really helps you get relative layouts
 right without thinking much about it. But it's baffling at first.

 On Dec 12, 12:19 pm, Tim H. timho...@gmail.com wrote:

  - After deleting some views, suddenly I can no longer add new views

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


[android-developers] multiple threads problem, possible memory leak

2010-12-12 Thread Rustam Kovhaev
Hello there,

I have a service from which I constantly call another service(lets call it B
service),
the problem is that in B service I have looper which processes two Runnables
and when I stop B service, thread stays running, wouldn't die
and when I call B service again I have  two thread already

in 5 min time I have about 30 threads, thread.interrupt doesn't seem to be
working

-- 
Regards,
Rustam Kovhaev
http://libertadtech.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: multiple threads problem, possible memory leak

2010-12-12 Thread Rustam Kovhaev
scratch that, I am simply tired for today ^)

//service on destroy
public void onDestroy() {
handler.getLooper().quit();
}

2010/12/13 Rustam Kovhaev rkovh...@gmail.com

 Hello there,

 I have a service from which I constantly call another service(lets call it
 B service),
 the problem is that in B service I have looper which processes
 two Runnables and when I stop B service, thread stays running, wouldn't die
 and when I call B service again I have  two thread already

 in 5 min time I have about 30 threads, thread.interrupt doesn't seem to be
 working

 --
 Regards,
 Rustam Kovhaev
 http://libertadtech.com




-- 
Regards,
Rustam Kovhaev
http://libertadtech.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] Notification ringtone keeps on repeating.

2010-12-12 Thread Harry Hazlehurst
Hello everyone,


Wonder if anyone could shed some light/recommend a solution to this
problem.


In my app I use a notification type ringtone to notify users. I use
ringtone.play(); to play this. This works fine on my G1 (running 1.6)
but on my T-Mobile Pulse (1.5) the notification ringtone is just
repeated infinitely, even if I close the app.


I have tested it on a 1.5 emulator also and it works fine.


Is there a way I can force it to only play the ringtone once?



I have had a look through the documentation for Ringtone and
RingtoneManager but can't find anything to help me. I'm wondering if
there is a setting somewhere that makes it repeat until it is told to
stop (in the same way that a ringtone will loop for an incoming call)?.


Any help would be great.


Thankyou,


Harry

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

[android-developers] Layout templates repository

2010-12-12 Thread vnv
Hi,

are there any layout template repository?


In general it would be good if there ain't one to make one. It would
be collection of standard template designs that could be used in
application development.

There are many situations that are common patterns, like dialogs,
password form and such. In general it is easier to modify one that is
good than build one from scratch.

Anyone interested in 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: compatible-screens and uses-gl-texture ?

2010-12-12 Thread Zsolt Vasvari
 Most drivers have horrible problems
 and manufacturers don't give a damn.

They will if gaming on Android takes off and the bad drivers prevent
their phones from getting a piece of the gaming pie.

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

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 1:14 PM, Mario Zechner badlogicga...@gmail.comwrote:

 I think the only thing needed is a manifest tag that let's you specify
 the OpenGL ES profile you want to work have available. That feature is
 already there but it seems some devices don't report it correctly.


Yeah there have been some problems with some devices not reporting this
correctly...  I believe most of those have been fixed or are in the process
of being fixed, so I would recommend going ahead and using this.

-- 
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: Auto android:debuggable. Anybody got it working?

2010-12-12 Thread Zsolt Vasvari
Good to know that it's broken and not me.  Thanks.

On Dec 12, 9:36 am, Emanuel Moecklin 1gravity...@gmail.com wrote:
 Doesn't work for me 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


Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 9:10 AM, Brill Pappin br...@pappin.ca wrote:

 Really what I'm concerned about is having to build with a future version of
 the UI and having my 2.1 users excluded.
 Since Eclipse validates the XML, I've had a few problems adding elements
 for for 2.2 in a 2.1 build.


You should build against the version of the SDK with the features you are
using; if you want to run on older versions of the platform put
android:minSdkVersion=vers in your manifest and of course test that you
actually work on that version.


 I still want the 2.2 elements for those using it, but it needs to fail
 gracefully so that users still on 2.1 just ignore the tags.


Can you point to a specific problem?  I don't know of any situation where an
older version of the platform choked on tags (or attributes) from a newer
one.


 At the moment, the XML schema's won't allow you to do that. If the new
 manifest elements don't fall back (if the schema's are not updated to allow
 the new elements) its going to make developing in anything but the most
 recent SDK impossible.


Sorry, I don't really follow what you are saying here.  Lots and lots of
apps build against newer versions of the platform to use the features there,
but support running on older versions.  This is pretty easy to do.
 *Especially* for things like XML attributes and tags in the manifest, since
older versions won't even be aware of them.

-- 
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] Proguard problem after 2.3 update

2010-12-12 Thread jtoolsdev
I updated the android 2.3 and when I try to run the proguard builds
that worked before am getting this:

/add-proguard-release.xml:35: Problem: failed to create task or type
proguard
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any presetdef/macrodef declarations have taken
place.

This is on Ubuntu 10.04 with Eclipse 3.5.2 (Galileo).  I've tried
pointing to both proguard directories the one I used before than the
one that was installed with 2.3.  Also I had to add quotes around the
path or ant would stop dead with those with a classpath error (found
references to this error but only for Windows but quotes worked for
Linux too).

So what has changed?  And also aren't we supposed to now be able to do
this with Eclipse rather than going to a terminal and running ant?
It's mentioned in the release notes but I don't see it in Eclipse (and
yes using 8.01 dev tools) nor anything on the Android development
site.

Isn't it fun when you update your app in a few minutes then get to
spend the afternoon trying to figure out some tool error like this to
do your release build?

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

2010-12-12 Thread JP
There's probably a few options, including these guys:
http://www.boku.com/
I ran into one of their staff a couple of weeks ago and asked what
their position on distributing in-app payment based apps in Android
Market was. That that was walking a thin line was acknowledged but
basically they consider it OK to distribute boku in-app-payment based
apps in Android Market. I am not so sure if that holds, but OTOH
Android Market might be losing out in the long run if they don't
support engagement based monetization models. At least where things
stand today, not many starting out dare not to have an engagement
angle to their monetization model. That's my perception anyways, hope
this helps.


On Dec 11, 11:14 am, Xavier xpl...@gmail.com wrote:
 Hi,

 Imagine an app distributed outside the Google Market, so no
 restrictions for that. What possibilities do I have to integrate some
 method of payments inside it? (Paypal is not an option) I guess what I
 should be looking for is some kinf of API from a credit card merchant?

 Could someone point me on several directions I could begin look at?

 X.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Adapter fetches and parses RSS feed to get its data - best practice?

2010-12-12 Thread DanH
You're preaching to the choir, mostly.  I've been in the biz for 40
years and pretty much can program in my sleep.  As you say, do the
simplest thing is generally the best approach.

Another rule of thumb is to minimize connections (in the form of
interfaces and parameters).  If slicing a project in half one way
results in 50 connections and another way results in 100 connections,
the first option is generally the best -- inherently it's doing a
better job of decoupling the two halves.  And decoupling is very
important because it makes the overall project easier to understand
and easier to maintain.  (I've been on giant projects that were only
able to succeed because an enforced interface was drawn between to
halves, and on other smaller projects that failed because no
interfaces were drawn.

But the main rule of thumb is that there are no rules of thumb --
slavishly following some cookbook formula for programming is a
recipe for disaster.

On Dec 12, 2:38 pm, Bob Kerns r...@acm.org wrote:
 This single responsibility thing is often misinterpreted as single
 bit of functionality, I fear.

 It's as much about clarity of role as anything. If adding
 functionality to an object blurs the lines of what that object does,
 than you are undermining the abstraction. If it takes 3 pages to
 describe what a module is responsible for, you have a problem.

 The flip side of single responsibility should always be complete
 responsibility. Failure in this is why you are dealing with 360-odd
 modules. This principle argues AGAINST separating related
 functionality.

 So what you have is a situation where it takes 30 pages to describe
 where the responsibility for the area lies!

 Often, however, you really do want to break things up into
 collaborations of smaller, more focused objects. This isn't driven
 blindly by single responsibility, but rather by looking at how you
 want to allow variation -- for example, breaking out address from
 user, to allow multiple addresses, or alternate address validation
 for different countries, etc. That might lead in turn to separating
 address from address validator, so you can have a single object
 responsible for representing the address, and just combine it with the
 appropriate validator, which is responsible only for validation.

 But note here that from the outside, you just have user, which owns
 addresses. There is still a single cohesive outer object, which has
 the ENTIRE responsibility for representing information about the user.
 We don't have an interface where we supply a user, and get back an
 address, and another where we supply an address and a user and get a
 validator, to which we then supply an address.

 The complete responsibility for the user information is concentrated
 in one place. This brings us to one of the key concepts of modularity
 -- HIDING THE IMPLEMENTATION. It is this notion of complete
 responsibility that enables modularity, by allowing details such as
 address validation to become part of the implementation rather than
 part of the interface.

 Sometimes this approach can lead to your 360-odd classes simply being
 hidden behind an interface. If so, you're still better off, because at
 least you now have a cohesive interface, even if you have a complex
 implementation.

 Often this situation arises from a desire to allow for future
 flexibility and variation. Often, that future need for that
 flexibility and variation never arises. Here, Do The Simplest Thing
 That Can Possibly Work is your best defense. But do not follow that
 rule slavishly. If your task is to create a framework on which others
 will build, possibly work has a very different meaning than creating
 a piece of end functionality.

 Still, people who have just learned to split up objects sometimes get
 carried away, because they see it as a way of avoiding rewriting the
 code later when things change. And often this is driven by excessive
 pain in rewriting, because of bad modularity, lack of skill with
 refactoring -- and lack of unit testing.

 Anyway, I just wanted to put this single responsibility thing in a
 different light. It's really a valid idea, and not the cause of your
 problem. Your problem was caused by a failure of the companion rule,
 complete responsibility. If you forget either half of this pair,
 you'll create a mess. Modularity depends on both operating together.

 On Dec 11, 8:30 pm, DanH danhi...@ieee.org wrote:

  I'm working on (repairing) an application right now where the original
  developers apparently believed in that single responsibility thing.
  127K lines in 360-odd modules, when the job could easily have been
  done in 35K.  (We know this because the same function was implemented
  on another platform in that much code.)  Each class/module only does
  one thing, but the code is virtually impenetrable, nasty to
  maintain, and prone to serious performance problems.

  Good design generally dictates that a given class should ABSTRACT a
  particular 

[android-developers] Re: Proguard problem after 2.3 update

2010-12-12 Thread Zsolt Vasvari
You cannot use your pre-2.3 files.  You basically need to renerate
using android update/

On Dec 13, 9:26 am, jtoolsdev brianjto...@gmail.com wrote:
 I updated the android 2.3 and when I try to run the proguard builds
 that worked before am getting this:

 /add-proguard-release.xml:35: Problem: failed to create task or type
 proguard
 Cause: The name is undefined.
 Action: Check the spelling.
 Action: Check that any custom tasks/types have been declared.
 Action: Check that any presetdef/macrodef declarations have taken
 place.

 This is on Ubuntu 10.04 with Eclipse 3.5.2 (Galileo).  I've tried
 pointing to both proguard directories the one I used before than the
 one that was installed with 2.3.  Also I had to add quotes around the
 path or ant would stop dead with those with a classpath error (found
 references to this error but only for Windows but quotes worked for
 Linux too).

 So what has changed?  And also aren't we supposed to now be able to do
 this with Eclipse rather than going to a terminal and running ant?
 It's mentioned in the release notes but I don't see it in Eclipse (and
 yes using 8.01 dev tools) nor anything on the Android development
 site.

 Isn't it fun when you update your app in a few minutes then get to
 spend the afternoon trying to figure out some tool error like this to
 do your release build?

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

2010-12-12 Thread Brill Pappin
Ok, maybe I'm mistaken on this then.


I thought I ran into a problem supporting the install location tag
where it would not allow me to use it in a 2.1 build.
It may be that I needed to update my SDK (which has now been done
recently).


I'll check it again and report back here if that still the case.

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

[android-developers] Re: Proguard problem after 2.3 update

2010-12-12 Thread jtoolsdev
The android update project --path project was done and it updated.
Since I do this infrequently I keep a text file with the instructions
handy.  This seems to be some problem that the proguard.dir var no
longer works the same way it did before.  IOW, previously it pointed
to:

proguard.dir=/Directory/Proguard/Is/Installed/In

or the lib directory where the proguard.jar is located.  I also tried
pointing to the version of proguard that came with the 2.3 update.
I've tried a variety of combinations to no avail and was hoping
someone else found the same problem and solved it.  The only mention
of the error message I supplied was rather cryptic and related to
Ganymede not Galileo.

On Dec 12, 6:08 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 You cannot use your pre-2.3 files.  You basically need to renerate
 using android update/

 On Dec 13, 9:26 am, jtoolsdev brianjto...@gmail.com wrote:

  I updated the android 2.3 and when I try to run the proguard builds
  that worked before am getting this:

  /add-proguard-release.xml:35: Problem: failed to create task or type
  proguard
  Cause: The name is undefined.
  Action: Check the spelling.
  Action: Check that any custom tasks/types have been declared.
  Action: Check that any presetdef/macrodef declarations have taken
  place.

  This is on Ubuntu 10.04 with Eclipse 3.5.2 (Galileo).  I've tried
  pointing to both proguard directories the one I used before than the
  one that was installed with 2.3.  Also I had to add quotes around the
  path or ant would stop dead with those with a classpath error (found
  references to this error but only for Windows but quotes worked for
  Linux too).

  So what has changed?  And also aren't we supposed to now be able to do
  this with Eclipse rather than going to a terminal and running ant?
  It's mentioned in the release notes but I don't see it in Eclipse (and
  yes using 8.01 dev tools) nor anything on the Android development
  site.

  Isn't it fun when you update your app in a few minutes then get to
  spend the afternoon trying to figure out some tool error like this to
  do your release build?

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


[android-developers] EditText and auto-complete/correct

2010-12-12 Thread Raymond Rodgers
Off and on for months now, I've been trying to figure out how to get the 
on-screen keyboard to list the auto-complete/correct choices above the 
keyboard for various EditText views that I've used, and I haven't had 
any luck. Right now I'm creating it as:


EditText android:id=@+id/alarmMemo android:layout_width=fill_parent 
android:layout_height=match_parent android:imeOptions=actionNone 
android:inputType=text|textAutoComplete|textAutoCorrect|textShortMessage 
android:maxLength=150/EditText


But I'm not getting the auto-complete or autocorrect options. Is there 
something I'm missing? Do I need to connect it to a dictionary, and if 
so how?


Thank you!
Raymond

--
Raymond Rodgers
http://www.badlucksoft.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] Dynamically reading drawable file names

2010-12-12 Thread darrinps
Is there any way for an Android app to read the file names of all the
files stored under drawable (or for that matter any other directory)?

I'd like to have it so I can plop in a new file and have the app read
the name for me for use in a dynamically sized list of radio buttons
(one button per file) that lists the name of the file by the radio
button.

I've done something like this with contacts, but I am not sure how you
read the file names from something like the drawable directory!

Thanks.

Darrin

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


[android-developers] How can I use A-GPS

2010-12-12 Thread Kenneth WON
Dear all,

As title, I want to know how can I use the A-GPS service in my app.

I know a way to use GPS, like:
locationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 3000,
0, this);

but I have no idea to use A-GPS.

Thank and Regards,
Kenneth

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

2010-12-12 Thread Jiang
Once some specific event occurs, such as app is expired, I need to inform all 
active Activities/Services,  is there any good way to implement such 
communication? Currently, I use Broadcast, but some guys said it is expecsive.

Thanks.
-Jiang



  

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

[android-developers] which applications the user can install

2010-12-12 Thread Nitin Mahajan
Hello,

I have some queries regarding app installation on a Android devices. I did
got though the link
http://developer.android.com/guide/publishing/app-signing.html#cert.

1. Is there a way to control which applications can get installed on a
particular device? I mean apps signed with a particular key only should be
allowed.

2. The ability to control that a .apk, can be installed only on a device,
which posses the corresponding public key is already there in Android 2.2.
Please let me know if this understanding of mine is correct and whether the
app installer automatically takes care of it?

regards
-Nitin

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

[android-developers] New error in the Market

2010-12-12 Thread Zsolt Vasvari
In thousands of sales, I've never seen this one:

You cancelled this order.
Reason: Other (describe below)
Message sent to customer: Order canceled due to internal error in
Market.


Since the buyer hasn't repurchased, I hate to think that I've lost a
sale due to an internal error.

The Market team is truly a disgrace to Google, sorry to say.

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

2010-12-12 Thread Nitin Mahajan
In cryptography terms I want to achieve Confidentiality as well as
Authenticity both with .apk installation. Please let me know if that is
possible without, modifying android code.

Is there a way to sign a application with multiple keys? One key which is
developers private key and another which is device owners public key?

regards
-Nitin

On Mon, Dec 13, 2010 at 10:16 AM, Nitin Mahajan np.maha...@gmail.comwrote:

 Hello,

 I have some queries regarding app installation on a Android devices. I did
 got though the link
 http://developer.android.com/guide/publishing/app-signing.html#cert.

 1. Is there a way to control which applications can get installed on a
 particular device? I mean apps signed with a particular key only should be
 allowed.

 2. The ability to control that a .apk, can be installed only on a device,
 which posses the corresponding public key is already there in Android 2.2.
 Please let me know if this understanding of mine is correct and whether the
 app installer automatically takes care of it?

 regards
 -Nitin




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

2010-12-12 Thread Zsolt Vasvari
I've had the same problem and solved it, but I don't remember exactly
what I had done.  I tried so many things, that I don't remember what
fixed it.  I do remember doing the android update, which is why I
mentioned it.

On Dec 13, 11:13 am, jtoolsdev brianjto...@gmail.com wrote:
 The android update project --path project was done and it updated.
 Since I do this infrequently I keep a text file with the instructions
 handy.  This seems to be some problem that the proguard.dir var no
 longer works the same way it did before.  IOW, previously it pointed
 to:

 proguard.dir=/Directory/Proguard/Is/Installed/In

 or the lib directory where the proguard.jar is located.  I also tried
 pointing to the version of proguard that came with the 2.3 update.
 I've tried a variety of combinations to no avail and was hoping
 someone else found the same problem and solved it.  The only mention
 of the error message I supplied was rather cryptic and related to
 Ganymede not Galileo.

 On Dec 12, 6:08 pm, Zsolt Vasvari zvasv...@gmail.com wrote:



  You cannot use your pre-2.3 files.  You basically need to renerate
  using android update/

  On Dec 13, 9:26 am, jtoolsdev brianjto...@gmail.com wrote:

   I updated the android 2.3 and when I try to run the proguard builds
   that worked before am getting this:

   /add-proguard-release.xml:35: Problem: failed to create task or type
   proguard
   Cause: The name is undefined.
   Action: Check the spelling.
   Action: Check that any custom tasks/types have been declared.
   Action: Check that any presetdef/macrodef declarations have taken
   place.

   This is on Ubuntu 10.04 with Eclipse 3.5.2 (Galileo).  I've tried
   pointing to both proguard directories the one I used before than the
   one that was installed with 2.3.  Also I had to add quotes around the
   path or ant would stop dead with those with a classpath error (found
   references to this error but only for Windows but quotes worked for
   Linux too).

   So what has changed?  And also aren't we supposed to now be able to do
   this with Eclipse rather than going to a terminal and running ant?
   It's mentioned in the release notes but I don't see it in Eclipse (and
   yes using 8.01 dev tools) nor anything on the Android development
   site.

   Isn't it fun when you update your app in a few minutes then get to
   spend the afternoon trying to figure out some tool error like this to
   do your release build?- 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] EditText and auto-complete/correct

2010-12-12 Thread TreKing
On Sun, Dec 12, 2010 at 10:16 PM, Raymond Rodgers
raym...@badlucksoft.comwrote:

 But I'm not getting the auto-complete or autocorrect options. Is there
 something I'm missing? Do I need to connect it to a dictionary, and if so
 how?


http://developer.android.com/reference/android/widget/AutoCompleteTextView.html

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

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

Re: [android-developers] New error in the Market

2010-12-12 Thread TreKing
On Sun, Dec 12, 2010 at 10:49 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 Since the buyer hasn't repurchased, I hate to think that I've lost a sale
 due to an internal error.


I haven't seen that error (though I don't really at them too closely). But
given how many people have been complaining over the last, what, 2 years,
about not being able to pay for or download apps it's safe to say we're all
losing quite a lot of sales because the Market doesn't work the way it
should.


 The Market team is truly a disgrace to Google, sorry to say.


Well that's not nice. Market team, on the bright side, I'm sure Apple and
Microsoft absolutely love you :-)

-
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: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread stanchat
The new Layout Editor is also giving me problems.  I'm trying to add a
Linear Layout as the child of another linear layout and then add a
textview and button.  I'm having a hard time doing that with the new
editor.  I miss the big + and - along with the arrow keys to move
views up and down.  Is there any documentation on the new editor

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

2010-12-12 Thread Raymond C. Rodgers
Thanks, but that's not quite what I'm referring to. I've gotten 
AutoCompleteTextView to work with items I have in a database, but I'm 
meant something more akin to this: 
http://betterandroid.files.wordpress.com/2009/07/preditcive-text.png?w=320h=480 
.


On 12/12/2010 11:57 PM, TreKing wrote:
On Sun, Dec 12, 2010 at 10:16 PM, Raymond Rodgers 
raym...@badlucksoft.com mailto:raym...@badlucksoft.com wrote:


But I'm not getting the auto-complete or autocorrect options. Is
there something I'm missing? Do I need to connect it to a
dictionary, and if so how?


http://developer.android.com/reference/android/widget/AutoCompleteTextView.html

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


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


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

2010-12-12 Thread brian purgert
Lmao pent just summed up 2 years in one line
On Dec 12, 2010 5:51 AM, Pent tas...@dinglisch.net wrote:

  Very much looking forward to what they do come up with.

 You must be new here :-)

 Pent

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

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

Re: [android-developers] Re: which applications the user can install

2010-12-12 Thread Dianne Hackborn
A third party application can't impose less or more restriction than the
platform's signing rules, which I believe are documented in the SDK
documentation.

You should not sign an app with multiple certs.  Only use one.

On Sun, Dec 12, 2010 at 8:49 PM, Nitin Mahajan np.maha...@gmail.com wrote:

 In cryptography terms I want to achieve Confidentiality as well as
 Authenticity both with .apk installation. Please let me know if that is
 possible without, modifying android code.

 Is there a way to sign a application with multiple keys? One key which is
 developers private key and another which is device owners public key?

 regards
 -Nitin


 On Mon, Dec 13, 2010 at 10:16 AM, Nitin Mahajan np.maha...@gmail.comwrote:

 Hello,

 I have some queries regarding app installation on a Android devices. I did
 got though the link
 http://developer.android.com/guide/publishing/app-signing.html#cert.

 1. Is there a way to control which applications can get installed on a
 particular device? I mean apps signed with a particular key only should be
 allowed.

 2. The ability to control that a .apk, can be installed only on a device,
 which posses the corresponding public key is already there in Android 2.2.
 Please let me know if this understanding of mine is correct and whether the
 app installer automatically takes care of it?

 regards
 -Nitin



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




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

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

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

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 6:48 PM, Brill Pappin br...@pappin.ca wrote:

 I thought I ran into a problem supporting the install location tag where it
 would not allow me to use it in a 2.1 build.
 It may be that I needed to update my SDK (which has now been done
 recently).


android:installLocation was introduced in 2.2, so you need to compile
against the 2.2 SDK to build an app that uses it.  This does not prevent the
app from working on 2.1 (or earlier), however, as long as it explicitly
specifies android:minSdkVersion to say it is compatible with earlier
versions.

-- 
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] Data Warehousing,SAP,Testing,Microsoft Technologies,Oracle,SAS Online Training at BigClasses.com

2010-12-12 Thread big class
 Knowledge doesn’t comes easily. It comes through cost, efforts and
last of all but not least through a skilled craftsman.
I represent Bigclasses. Bigclasses.com is a global online IT training
company. We offer virtual online training on all major IT Technologies
Like SAP/ Oracle/Data WH/Testing Tools to mention a few.
Bigclasses.com was started by highly experienced industry experts and
our parent company has got more than 7 years of experience in IT
development, IT consulting and corporate training as well. We engage
the trainers, those who are Industry experts and teaching experts.
Bigclasses.com has got renowned experienced trainers in all IT
Technologies.
We provide study materials, ways to sharpen your skills ,help build
self confidence, contact with real time techies  and assistance 24 *7.
I proclaim that the training provided will show you the gateway for
your future i.e grabbing a job will only be a matter of time.
http://informaticaonlinetraining.blogspot.com/
http://onlinetrainingcognos.blogspot.com/
http://datastageonlinetraining.blogspot.com/
http://microstrategyonlinetraining.blogspot.com/
http://teradataonlinetraining.blogspot.com/
http://cognostrainingonline.wordpress.com/2010/08/17/cognos-business-intelligence/
http://informaticaonlinetraining.wordpress.com/2010/08/17/informatica/
http://sapbwbi.wordpress.com/
http://bigclasses9.wordpress.com/2010/12/09/sap-fico-interactive-online-training-at-bigclasses-com/
http://bigclasses9.wordpress.com/2010/12/09/sap-abap-interactive-online-training-at-bigclasses-com/
http://sapficoonlinetraining.wordpress.com/
http://sapbotraining.wordpress.com/
Contact us:
USA: +1 302 525 2655
INDIA: 91-8008114040

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

2010-12-12 Thread Kenneth WON
Hi, Jiang

How can I implement it as program code?

Thanks!
Kenneth


On 12月13日, 下午12時32分, Jiang webs...@yahoo.cn wrote:
 Once some specific event occurs, such as app is expired, I need to inform all 
 active Activities/Services,  is there any good way to implement such 
 communication? Currently, I use Broadcast, but some guys said it is expecsive.

 Thanks.
 -Jiang

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

2010-12-12 Thread Zsolt Vasvari
Basic stuff: You know the little window on the upper right of Payout
screens.  It shows a line Previous Month Sales, but there is
absolutely no way to drill down to see how they came up with the
number.  Yesterday I was trying to reconcile it, but, for the life of
me, I couldn't come up with the same number.



On Dec 13, 1:28 pm, brian purgert brianpurge...@gmail.com wrote:
 Lmao pent just summed up 2 years in one line
 On Dec 12, 2010 5:51 AM, Pent tas...@dinglisch.net wrote:





   Very much looking forward to what they do come up with.

  You must be new here :-)

  Pent

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

 - Show quoted text -

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


[android-developers] Flickering with keyboard animation

2010-12-12 Thread DH
Hi all,
  I'm trying to pop up a view in place of the soft keyboard, so I add
a layout to my content view and set it to invisible when the soft
keyboard is shown, and then set the layout to be visible when I want
to hide the keyboard and display my view.
Problem right now is whenever I set my layout and view to visible and
the soft keyboard closing animation start to play, there is a visible
flicker that goes through the entire view.

Anyone know how to: control the soft keyboard closing animation?
Or possibly let only the layout animate and translate itself up while
the keyboard translates itself down?

THanks.

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


[android-developers] Re: How to communicate between Activities/Services

2010-12-12 Thread deepak

Hi Kenneth,

The A-GPS service will be by default enabled in your phone. I mean it
will be pre-configured to a specific server address.

The Android framework goes for A-GPS by default unless you are in
airplane mode or data connection is not available. So, your app will
be using A-GPS by default and there is no separate API for using A-
GPS.

Thanks,
Deepak

On Dec 13, 11:05 am, Kenneth WON kenneth...@gmail.com wrote:
 Hi, Jiang

 How can I implement it as program code?

 Thanks!
 Kenneth

 On 12月13日, 下午12時32分, Jiang webs...@yahoo.cn wrote:

  Once some specific event occurs, such as app is expired, I need to inform 
  all active Activities/Services,  is there any good way to implement such 
  communication? Currently, I use Broadcast, but some guys said it is 
  expecsive.

  Thanks.
  -Jiang



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


[android-developers] RIL-deamon not getting started

2010-12-12 Thread lavanya
Hi all,
I'm involved in up-gradation  from Eclair to Froyo where on entering
ps command ril-daemon is listed by unable to access this service.
Currently Stkservice is blocked.
The logs for which is provided below
I/PHONE   ( 1389): Network Mode set to 4
I/PHONE   ( 1389): Cdma Subscription set to 1
D/PHONE   ( 1389): mDoesRilSendMultipleCallRing=false
D/PHONE   ( 1389): mCallRingDelay=3000
D/CDMA( 1389): [CdmaDataConnection-1] DataConnection constructor E
D/CDMA( 1389): [CdmaDataConnection-1] clearSettings
D/CDMA( 1389): [CdmaDataConnection-1] DataConnection constructor X
D/CDMA( 1389): [CdmaDataConnection-1] Made CdmaDataConnection-1
D/STK ( 1389): StkService: StkService: is not running
D/STK ( 1389): StkService: NEW sInstance
I/PHONE   ( 1389): Creating CDMAPhone
D/CDMA( 1389): [CdmaDataConnectionTracker] Radio is off and clean
up all connection
D/CDMA( 1389): [CdmaDataConnectionTracker] cleanUpConnection:
reason: radioTurnedOff
D/CDMA( 1389): [CdmaDataConnectionTracker] setState: DISCONNECTING
D/CDMA( 1389): [CdmaDataConnectionTracker] cleanUpConnection: !
tearDown, call conn.resetSynchrono
usly
D/CDMA( 1389): [CdmaDataConnection-1] DcInactiveState:
msg.what=EVENT_RESET, ignore we're already
 reset
D/CDMA( 1389): [CdmaDataConnection-1] NotifyDisconnectCompleted
D/CDMA( 1389): [DataConnection] Stop poll NetStat
D/CDMA( 1389): [CdmaDataConnectionTracker] cleanupConnection: !
notificationDeferred
D/CDMA( 1389): [CdmaDataConnectionTracker]
gotoIdleAndNotifyDataConnection: reason=radioTurnedOff

D/CDMA( 1389): [CdmaDataConnectionTracker] setState: IDLE
D/CDMA( 1389): [CdmaDataConnection-1] clearSettings
D/CDMA( 1389): [CdmaDataConnectionTracker] ***trySetupData due to
cdmaDataDetached
D/CDMA( 1389): [CdmaDataConnectionTracker] trySetupData: Not ready
for data:  dataState=IDLE PS s
tate=1 radio state=RADIO_UNAVAILABLE ruim=false
concurrentVoiceData=false phoneState=IDLE dataEnable
d=true roaming=false dataOnRoamingEnable=true desiredPowerState=true
PendingRestartRadio=false Master
DataEnabled=true needsOtaServiceProvisioning=true
D/CDMA( 1389): [CdmaDataConnectionTracker] ***trySetupData due to
roamingOff
D/CDMA( 1389): [CdmaDataConnectionTracker] trySetupData: Not ready
for data:  dataState=IDLE PS s
tate=1 radio state=RADIO_UNAVAILABLE ruim=false
concurrentVoiceData=false phoneState=IDLE dataEnable
d=true roaming=false dataOnRoamingEnable=true desiredPowerState=true
PendingRestartRadio=false Master
DataEnabled=true needsOtaServiceProvisioning=true
D/CDMA( 1389): [IccCard] Broadcasting intent
ACTION_SIM_STATE_CHANGED NOT_READY reason null
D/CDMA( 1389): Event EVENT_RADIO_OFF_OR_NOT_AVAILABLE Received
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
D/CDMA( 1389): getDeviceId(): MEID is not initialized use ESN
D/CDMA( 1389): getDeviceId(): MEID is not initialized use ESN
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
I/RILJ( 1389): Couldn't find 'rild' socket; retrying after timeout
E/RILJ( 1389): Couldn't find 'rild' socket after 8 times,
continuing to retry silently

Request to help me in resloving this issue

Thanks,
Lavanya

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

2010-12-12 Thread fernando
Hi
It might be the case to use a stick service and keep the thread
running. Refer the SyncManager service from the AOSP email
application. Hope it helps

On Dec 12, 2:31 pm, Rustam Kovhaev rkovh...@gmail.com wrote:
 scratch that, I am simply tired for today ^)

 //service on destroy
 public void onDestroy() {
 handler.getLooper().quit();

 }

 2010/12/13 Rustam Kovhaev rkovh...@gmail.com





  Hello there,

  I have a service from which I constantly call another service(lets call it
  B service),
  the problem is that in B service I have looper which processes
  two Runnables and when I stop B service, thread stays running, wouldn't die
  and when I call B service again I have  two thread already

  in 5 min time I have about 30 threads, thread.interrupt doesn't seem to be
  working

  --
  Regards,
  Rustam Kovhaev
 http://libertadtech.com

 --
 Regards,
 Rustam Kovhaevhttp://libertadtech.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: Beginner questions

2010-12-12 Thread Muhammad Ali
Hi,
   You should set the JAVA_HOME variable and set the path for the
JAVA_HOME\bin in your path variable. In my opinion you should use
Eclipse becoz it reduce your manual effort for the building and
setting the environment and commands.
   Yours Sincerely,
  Muhammad Ali Hassan

On Dec 10, 1:51 pm, JY Kim jkim...@gmail.com wrote:
 Hello.

 I am beginner in android and my focus is on porting, but I think I
 also need to learn to write application.
 I have 2 questions

 1. Is eclipse essential in android application writing?
 Read through hello world program on android developer site, I thought
 I shoud use eclipse.
 Application was project based and I think I should use eclipse as if I
 use Visual C++ when I write MFC program.

 2. Should I install JDK 64 bit?
 My windows is 64 bit but I installed 32bit JDK. When I tried compling
 some program in command line, compiler couldn't find Java in 'Program
 Files' directory because it was on 'Program Files(x86)'. when I linked
 directory, it still could't find it.
 Should I use JDK 64bit? I saw some program for 32 bit does not run on
 64bit Windows.
 If I should use 64bit JDK, I just need to reinstall JDK only? I saw
 SDK is installed only after JDK is installed.

 Please answer.
 Thanks

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


[android-developers] what is the source version at the source.android.com website?

2010-12-12 Thread goodwin
I use git clone the IM application from the source website. many errors
in source code. many obect methods are not in the sdk of above 1.5.




for example Cursor
Cursor c = mContentResolver.query(mMessageURI, projection, selection,
new String[]{Integer.toString(Imps.MessageType.POSTPONED)}, null);
if (c == null) {
Log.e(TAG, Query error while querying postponed messages);
return;
}


while (c.moveToNext()) {
String body = c.getString(1);
mAdaptee.sendMessageAsync(new Message(body));


c.updateLong(2, System.currentTimeMillis());
c.updateInt(3, Imps.MessageType.OUTGOING);
}
c.commitUpdates();
c.close();


there are no Cursor.updateLong() updateInt commitUpdates . what is the
version?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-12 Thread hanika
hi 
  
  
Thanks  Regards, 
cid:image002.jpg@01CA2AEF.10F60770 
Vijay Patel 
Test Engineer 
Elitecore Technologies Ltd. 
904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA), 
Tel: +91-79-66065606 | HYPERLINK
mailto:vijay.pa...@elitecore.comvijay.pa...@elitecore.com 
HYPERLINK http://www.cyberoam.comwww.cyberoam.com 
PPlease do not print this email unless it is absolutely necessary.
Spread environmental awareness. 
  

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

[android-developers] Re: Application unavailable in Android Market

2010-12-12 Thread Muhammad Ali
Hi,

   I am sure you did not set the AndroidManifest.xml parameters for
your application the resolution and the min sdk version. You should
take a look of the parameter for this particular file.

Thanks
Muhammad Ali Hassan

On Dec 10, 11:35 pm, Pedro Duque pmdu...@gmail.com wrote:
 Hi,

 I've two applications in Android Market, Live Gallery
 (com.portugalemgrande.LiveGallery) which is a free application and Live
 Gallery Gold (com.portugalemgrande.LiveGalleryGold) which is the paid
 version.

 Although I can see both of them in my phone (in Portugal) if I use a similar
 friend's phone the app doesn't appear. Shouldn't it be available on all
 Android Markets? Is there anything we should do to make it available
 worldwide?

 Can you search for it in your market just to see if you can find this apps?
 Please report here with country please.

 Thank you!
 Pedro Duque

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

2010-12-12 Thread nelsonchung
I can read gps nmea from /dev/ttymxc1 under linux shell command mode
like this - cat  /dev/ttymxc1.
But, I want to know how/where to set in order to let AP level
application - LocationManager can get gps nmea via JNI/Android.
How/Where should I set?
Should I implement some codes followed gps.h?
Or Can I redirect the nmea from /dev/ttymxc1 to somewhere?

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

2010-12-12 Thread nelsonchung
test reply.

On 12月13日, 下午2時57分, nelsonchung chihchun.ch...@gmail.com wrote:
 I can read gps nmea from /dev/ttymxc1 under linux shell command mode
 like this - cat  /dev/ttymxc1.
 But, I want to know how/where to set in order to let AP level
 application - LocationManager can get gps nmea via JNI/Android.
 How/Where should I set?
 Should I implement some codes followed gps.h?
 Or Can I redirect the nmea from /dev/ttymxc1 to somewhere?

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


Re: [android-developers] How to redirect GPS nmea from /dev/ttymxc to somewhere

2010-12-12 Thread Anil Sasidharan
Hi,

You need to implement gps HAL to hook this data up into Android's
LocationService JNI.

Warm Regards,
Anil

On Mon, Dec 13, 2010 at 12:27 PM, nelsonchung chihchun.ch...@gmail.comwrote:

 I can read gps nmea from /dev/ttymxc1 under linux shell command mode
 like this - cat  /dev/ttymxc1.
 But, I want to know how/where to set in order to let AP level
 application - LocationManager can get gps nmea via JNI/Android.
 How/Where should I set?
 Should I implement some codes followed gps.h?
 Or Can I redirect the nmea from /dev/ttymxc1 to somewhere?

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

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

[android-developers] Re: How to redirect GPS nmea from /dev/ttymxc to somewhere

2010-12-12 Thread nelsonchung
test reply.

On 12月13日, 下午2時57分, nelsonchung chihchun.ch...@gmail.com wrote:
 I can read gps nmea from /dev/ttymxc1 under linux shell command mode
 like this - cat  /dev/ttymxc1.
 But, I want to know how/where to set in order to let AP level
 application - LocationManager can get gps nmea via JNI/Android.
 How/Where should I set?
 Should I implement some codes followed gps.h?
 Or Can I redirect the nmea from /dev/ttymxc1 to somewhere?

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

2010-12-12 Thread Bob Kerns
Well, it's not what you asked for (since drawables come from different
directories) but it may be closer to what you are looking for.

You can use Java reflection to find all the public fields in
R.drawable.

The drawable directory doesn't exist at runtime; the contents are
packaged up into the .apk file.

If that's not what you need to know, here are a couple of other
possibilities:

The assets directory DOES exist at runtime, at least conceptually; you
can access that via the AssetManager, which provides a method to list
the contents in a particular directory within the assets folder.

Finally, you can use Environment.getExternalStorageDirectory() to get
a Java File object referring to the SD card, or
Environment.getDataDirectory() to get an on-board location available
to your program (but smaller, of course).

On Dec 12, 8:17 pm, darrinps darri...@gmail.com wrote:
 Is there any way for an Android app to read the file names of all the
 files stored under drawable (or for that matter any other directory)?

 I'd like to have it so I can plop in a new file and have the app read
 the name for me for use in a dynamically sized list of radio buttons
 (one button per file) that lists the name of the file by the radio
 button.

 I've done something like this with contacts, but I am not sure how you
 read the file names from something like the drawable directory!

 Thanks.

 Darrin

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


[android-developers] two method to get the service

2010-12-12 Thread tangke
hi,all

I have a question that how to get a service?

I have two different method to set backlightbrightness

1.
IPowerManager pm =
IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE));

pm.setBacklightBrightness(0);

2.
PowerManager mpm =
(PowerManager)mContext.getSystemService(Context.POWEER_SERVICE);
mpm.setBacklightBrightness(0);


and I read the source code, that the two method will use the first method.


PowerManager.java

public void setBacklightBrightness(int brightness)
{
try {
mService.setBacklightBightness(brightness);
}catch(RemoteException e) {
}
}


what is the difference of the two method?

thanks in advance.


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


[android-developers] Re: Plug-in for email client

2010-12-12 Thread Joey Tribbiani
Thanks a lot Kostya for your reply. Your reply made me understand the
complexity little clearer. But still my requirement makes me come back
to you to ask the question, this time more specifically.

We are interested in developing a plugin to the Android native email
client. This plugin will make certain changes to the email before it
is dispatched. As an example, the SpellChecker utility of Outlook that
makes changes to the email before dispatch.

We need to know if developing such a plugin would be possible and your
views regarding it.
Thanks again.


On Dec 8, 5:35 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Joey,

 Sitting on top of the default Android email client is probably not a
 good idea, since the internals of this application (or even its
 existence) are not part of the Android SDK, and there are no guarantees
 whatsoever as to how to interact with the internals.

 Just to give an example, HTC has a customized email client at part of
 their Sense UI. Did they change the internals? Who knows, but they could
 have.

 I assume you've already looked at K9 - it would be a good place to
 start, since they've already made it build as a regular application,
 that only uses the SDK, and builds without internal build tools.

 -- Kostya

 08.12.2010 15:19, Joey Tribbiani пишет:



  Any body please help out

  On Dec 7, 2:45 pm, Joey Tribbianitestkam...@gmail.com  wrote:
  hello fellow developers,
  I am required to develop a add-on/plug-in which will sit on the top of
  the native email client of android phone. I DONOT want to develop a
  whole new application (like Gmail or K-9) and then tweak it further as
  per my need, instead I just want to develop a plug-in with which will
  do a specific task.

  I want to know:
  1. If this possible to do so?
  2. Will the native email client will support my plug-in?
  3. And if it is possible then how and where can I start?

    This is a very gray area for me so far, so please any guidance will
  be appreciated.

  Looking forward for an early reply.

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --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] Dynamically reading drawable file names

2010-12-12 Thread Dianne Hackborn
I would recommend just having another resource holding an array of the
drawables to include.  See for example this declaring one:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/arrays.xml;h=a0bc5b36923f5d88d4bbc98645d29340d187d434;hb=HEAD#l24

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/arrays.xml;h=a0bc5b36923f5d88d4bbc98645d29340d187d434;hb=HEAD#l24And
this reading it:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/com/android/internal/os/ZygoteInit.java;h=b677b1e6048988a02ddb65ee2dff54acd82061ba;hb=HEAD#l415

Sure, it is one more step required when adding a resource, but at runtime it
is going to be far more efficient than other solutions that require scanning
through resources or R symbols or such.

On Sun, Dec 12, 2010 at 8:17 PM, darrinps darri...@gmail.com wrote:

 Is there any way for an Android app to read the file names of all the
 files stored under drawable (or for that matter any other directory)?

 I'd like to have it so I can plop in a new file and have the app read
 the name for me for use in a dynamically sized list of radio buttons
 (one button per file) that lists the name of the file by the radio
 button.

 I've done something like this with contacts, but I am not sure how you
 read the file names from something like the drawable directory!

 Thanks.

 Darrin

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




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

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

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

Re: [android-developers] two method to get the service

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 11:27 PM, tangke mumut...@gmail.com wrote:

 I have a question that how to get a service?
 I have two different method to set backlightbrightness
  1.
 IPowerManager pm =

 IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE));
 pm.setBacklightBrightness(0);


This is using private implementation details of the platform.  An
application using this is likely to break in the future.  Heck, you can't
even write this code without bypassing the standard SDK tools and building
directly against the platform code.


 2.
 PowerManager mpm =
 (PowerManager)mContext.getSystemService(Context.POWEER_SERVICE);
 mpm.setBacklightBrightness(0);


This is the supported SDK API.

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

  1   2   >