Re: [android-developers] Start an Activity from a ContentProvider

2012-07-12 Thread TreKing
On Tue, Jul 10, 2012 at 7:00 PM, Danny Shields  wrote:

> Is it possible?


Do you have a Context at the point you wish to show the Dialog? Then sure,
why not?

-
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] Problem : Compass Direction with 1km far latitude longitude

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 4:17 AM, Rajan  wrote:

> i didn't get how can i find latitude & longitude of 1km far away place
> form the user's current location in the SAME DIRECTION.


This has nothing to do with Android. Use Google to find a help on doing the
math you need to achieve your goals.

-
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] "Restriction in ContactsProvider" has gone ?

2012-07-12 Thread Dianne Hackborn
This was never a supported API in the SDK, and the design behind it was
fundamentally flawed (which is one reason it was never in the SDK).

On Thu, Jul 12, 2012 at 11:29 PM, jindog  wrote:

> Hi,
>
> I've searched for "IS_RESTRICTED" field or "restriction" feature in
> Android Open Source Project git repo, but i couldn't.
>
> I found the commit "ed6bfd922fd84db21de08c1d12e93c501b86560d" - Remove
> restricted white-listing
>
> I want to know why this feature removed from source. (What's happing??)
>
> (Because of removal feature, any application can access the restricted
> data of ContactsProvider freely? )
>
> Regards,
>
>
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
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] gridView item with different height in the same row

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 4:10 AM, devAndroid  wrote:

> I want to know if it's possible to build a gridView with items of one row
> that have not the same height?


I'm going to go out on a limb and say "yes", it's possible.

-
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] Eclipse Juno: Does not want to play well with android SDK.

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 10:53 AM, Cythes  wrote:

> However, I cant find android anywhere in eclipse 4.2


What does this mean? What are you looking for, exactly, that you can't find?

-
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] "Restriction in ContactsProvider" has gone ?

2012-07-12 Thread jindog
Hi, 

I've searched for "IS_RESTRICTED" field or "restriction" feature in Android 
Open Source Project git repo, but i couldn't.

I found the commit "ed6bfd922fd84db21de08c1d12e93c501b86560d" - Remove 
restricted white-listing 

I want to know why this feature removed from source. (What's happing??) 

(Because of removal feature, any application can access the restricted data 
of ContactsProvider freely? ) 

Regards, 





  

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

Re: [android-developers] AbsListAdapter.setAdapter() api 11 but why does it exists on api 8?

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 5:53 AM, Allan Gregor Guevarra  wrote:

> so.. yeah.. the heck is happening?!


Hover over setAdapter in Eclipse. What does it say? Probably that
setAdapter is inherited from AdapterView, which AbsListView extends and
which has had that method since API level 1.

-
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] Prasannakrishna Bhagwat has invited you to use Google Talk

2012-07-12 Thread Prasannakrishna Bhagwat





Prasannakrishna Bhagwat has invited you to sign up for Google Talk so you can 
talk to each other for free over your computers.

To sign-up, go to:
http://www.google.com/accounts/NewAccount?service=talk&sendvemail=true&skipvpage=true&reqemail=android-developers@googlegroups.com&continue=http://www.google.com/talk/service/handleinvite?p%3DaH1-TjoBAAA.Qdnoo4ykysa50_heYj6cPl4i9Khm1x3dzOm_d4Yl6wZxUaQjxI0uo0Gq4zZGgTxp_b4mEMlzDdlyxNDoQBr7v6nhiEt35B0AFny0WpkcbdM.cYw4INjI5O9ZiGI1VXaF5w&followup=http://www.google.com/talk/service/HandleEmailVerified?ee%3DaH1-TjoBAAA.Wx7zQC_vqzDm2F9-y-qHXrWRqTMRjcqubWrxL4b4tGE446KYo4nbFxYDrEPGKsBy.9SDmb9TLpeSqqm9jjz3f4w%26p%3DaH1-TjoBAAA.Qdnoo4ykysa50_heYj6cPl4i9Khm1x3dzOm_d4Yl6wZxUaQjxI0uo0Gq4zZGgTxp_b4mEMlzDdlyxNDoQBr7v6nhiEt35B0AFny0WpkcbdM.cYw4INjI5O9ZiGI1VXaF5w

Google Talk is a downloadable Windows* application that offers:
- Free calls over your computer anytime, from anywhere, and for as long as you 
want
- A simple and intuitive user interface for sending instant messages or making 
calls--no clutter, pop-ups or ads
- Superior voice quality through just a microphone and computer speaker
- Fast file transfers with no restrictions on file type

After signing-up, download Google Talk and sign in with your new Google Account 
username and password.
You can then begin inviting anyone you want to talk to for free.

Google Talk works with any computer speaker and microphone, such as the ones 
built-in to many PC laptops today,
as well as with wired and wireless headsets and USB phones. Google Talk also 
works across all firewalls.

Google Talk is still in beta. Just like with Gmail, we're working hard to add 
features and make improvements,
so we might also ask for your comments and suggestions periodically. We 
appreciate your help in making it even better!

Thanks,

The Google Talk Team

To learn more about Google Talk before signing up, visit:

http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into 
the address bar of your browser).

* Not a Windows user? No problem. You can also connect to the Google Talk 
service from any platform using third-party clients
(http://www.google.com/talk/otherclients.html).

  

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

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 5:22 AM, Abdul Qadir wrote:

> can anyone tell me how to set loader on starting new activity in android
> on onCreate event.


Set what loader? On what?
http://www.catb.org/~esr/faqs/smart-questions.html

-
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] Programatically setting Linear Layout parameters i.e. Wrap_content and match parent

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 2:24 PM, marcpolo wrote:

> ViewB.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
> LayoutParams.MATCH_PARENT, 1));
>

Don't use MATCH_PARENT with weight, leave it as WRAP_CONTENT. The Weight
parameter takes care of it filling the required space.

-
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] sapserver web service

2012-07-12 Thread TreKing
On Wed, Jul 11, 2012 at 7:27 AM, MERT TUNÇBİLEK wrote:

> how can i cosume a web service WSDL file that generated by sapserver ? In
> android.


Write code that connects to your web service and parses a WSDL file.

-
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: Process 8769 terminated by signal (7)

2012-07-12 Thread B.Arunkumar
Hi,

  We are still seeing the crash. This is the compile script
build_android.sh that we are using (modified from the link as per you
r suggestion):

PREBUILT=/home/arun/android/android-ndk-r6b/toolchains/arm-linux-
androideabi-4.4.3/prebuilt/linux-x86
PLATFORM=/home/arun/android/android-ndk-r6b/platforms/android-9/arch-
arm

CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=neon -marm -march=$CPU -
mtune=cortex-a8"
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=--enable-neon

./configure --target-os=linux \
--prefix=$PREFIX \
--enable-cross-compile \
--extra-libs="-lgcc" \
--arch=arm \
--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
--nm=$PREBUILT/bin/arm-linux-androideabi-nm \
--sysroot=$PLATFORM \
--extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -
Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -
fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \
--disable-shared \
--enable-static \
--extra-ldflags="-Wl,-malign-double -rpath-link=$PLATFORM/usr/lib -
L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \
--disable-everything \
--enable-demuxer=h264 \
--disable-ffplay \
--enable-protocol=file \
--enable-avformat \
--enable-avcodec \
--enable-decoder=rawvideo \
--enable-decoder=mjpeg \
--enable-decoder=h263 \
--enable-decoder=mpeg4 \
--enable-decoder=h264 \
--enable-parser=h264 \
--disable-network \
--enable-zlib \
--disable-avfilter \
--disable-avdevice \
$ADDITIONAL_CONFIGURE_FLAG

make clean
make  -j4 install
$PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a
inverse.o
$PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L
$PLATFORM/usr/lib  -soname libffmpeg.so -shared -nostdlib  -
z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/
libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a
libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog
--warn-once  --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-
linux-androideabi/4.4.3/libgcc.a

And the Android.mk is as follows:

LOCAL_PATH := $(call my-dir)

FFMPEG:= /home/arun/ffmpegneon1103/android/armv7-a/lib

include $(CLEAR_VARS)

LOCAL_MODULE:= OnVRView
LOCAL_SRC_FILES := OnVRView.cpp

ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS := -DHAVE_NEON=1
LOCAL_MODULE := OnVRView
LOCAL_SRC_FILES += VideoDecoder.cpp.neon
LOCAL_ARM_NEON := true
endif

LOCAL_C_INCLUDES := /home/arun/ffmpegneon1103/android/armv7-a/include

LOCAL_ARM_MODE := arm

LOCAL_STATIC_LIBRARIES := cpufeatures

LOCAL_LDLIBS:= -llog -L$(FFMPEG) -lswresample -lavformat -
lavcodec  -lswscale -lavutil -Werror

include $(BUILD_SHARED_LIBRARY)

$(call import-module,cpufeatures)

This requires any changes?

Thank you,
B.Arunkumar.


On Jul 12, 10:29 am, "B.Arunkumar" 
wrote:
> Hi,
>
> Actually, I am facing the same problem as Andrei and I posted to the
> android ndk googlegroups just yesterday that it is the same problem as
> his.
>
> http://groups.google.com/group/android-ndk/browse_frm/thread/495f7acf...
>
> I am yet to try out his suggestion. I will try it today and get back
> to the forum.
>
> Thank you,B.Arunkumar
>
> On Jul 11, 11:12 pm, Justin Buser  wrote:
>
>
>
>
>
>
>
> > You'd really have to provide some relevant information, telling us the
> > sigspec and what your apps pid happened to be when it died is not really
> > enough to go on.
>
> > On Friday, April 20, 2012 3:44:40 AM UTC-4,B.Arunkumarwrote:
>
> > > Hi,
>
> > >     We have designed an app which renders video from IP camera on the
> > > Android mobile (Samsung Galaxy SII) through RTSP, the video frames get
> > > decoded by ffmpeg and rendered on ImageView. We get the RTSP responses
> > > and video packets from the IP camera using a socketchannel and
> > > asynchronous selector. Sometimes we get this error "Process 8769
> > > terminated by signal (7)" and the app crashes at the point where the
> > > asynchronous selector is read and the packets get processed. Could
> > > somebody give any clues on what could be the possible reasons why we
> > > get this error sometimes and the app crashes?
>
> > > Thank you,
> > >B.Arunkumar

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

2012-07-12 Thread TreKing
On Thu, Jul 12, 2012 at 2:05 AM, hafiz didarali wrote:

> how to install eclipse if we get this error


Try a Google search for the error.

-
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] Snow fall effect

2012-07-12 Thread TreKing
This has absolutely nothing to do with Android specifically.

-
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] Re: Get Passwords from Webview

2012-07-12 Thread Nobu Games
On Thursday, July 12, 2012 9:07:53 PM UTC-5, Mani wrote:

> 1. Is there any straightforward event that is generated when a Submit 
> happens inside the Webview ?


You could add a submit event listener to the login form node via JavaScript:

formTag.addEventListener('submit', onSubmitFunction);
>

where formTag is your login form DOM node and onSubmitFunction is the name 
of a function that handles that event. 

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

[android-developers] Re: Inflate Exception -What can be the Cause?Error inflating class

2012-07-12 Thread maccoy
*I am wondering is this because of this mentioned in the doc.:* 
*Important*   For performance reasons, view inflation relies heavily on 
pre-processing of XML files that is done at build time. Therefore, it is 
not currently possible to use LayoutInflater with an XmlPullParser over a 
plain XML file at runtime. 

On Thursday, July 12, 2012 4:44:55 PM UTC+5:30, maccoy wrote:
>
>
>1. Trying to inlfate a XML file in the Activity class.
>2. The XML file is stored in assets directory.
>3. When calling the inflate method getting the Error inflating class 
> .
>4. It shows the XML Tag(TableLayout or Linear Layout) with attributes.
>
> Any ideas?
>
>

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

Re: [android-developers] connectivity of android appliacation with sqllite

2012-07-12 Thread ashok chakravarthy
go through the content provider
http://developer.android.com/guide/topics/providers/content-providers.html

On Thu, Jul 12, 2012 at 1:18 PM, Francisco M. Marzoa Alonso <
fmmar...@gmail.com> wrote:

> On 02/07/12 13:34, Ashu wrote:
> > can we connect a android application to sqlite database just like a
> > connectivity of mysql to java code,,
> No
> > plz help me ,i am new to android
> >
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] NFC game

2012-07-12 Thread TreKing
On Thu, Jul 12, 2012 at 7:41 AM, iconapp 2010  wrote:

> Android developers,  can u help me in doing nfc hunter game, i want to
> create a monster how do i do..
>

Is anyone supposed to know what you're asking?
http://www.catb.org/~esr/faqs/smart-questions.html


> waiting for reply
>

Waiting for better question.

-
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] SSL in Android

2012-07-12 Thread TreKing
On Thu, Jul 12, 2012 at 10:56 PM, aru padam  wrote:

> How i can use  "https://"; instead of "http://"; in web service call in my
> app.
>

Replace "http" with "https".
http://www.catb.org/~esr/faqs/smart-questions.html

Also, use URLConnection:
http://android-developers.blogspot.com/2011/09/androids-http-clients.html

-
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] SSL in Android

2012-07-12 Thread aru padam
Hi all,

   How i can use  "https://"; instead of "http://"; in web service
call in my app.


HttpClient httpclient = new
DefaultHttpClient();
HttpPost httppost = new HttpPost("https://example.com";);
try {
httppost.setEntity(new 
UrlEncodedFormEntity(params));
HttpResponse httpresponse = 
httpclient.execute(httppost);
responseCode = 
httpresponse.getStatusLine().getStatusCode();
Log.d("getStatusCode", "" + responseCode);
HttpEntity httpEntity = 
httpresponse.getEntity();
response = EntityUtils.toString(httpEntity);
Log.d("Response in post httpCall", "" + 
response);
} catch (ClientProtocolException e) {
Log.d("ClientProtocolException", "" + e);
} catch (IOException e) {
Log.d("IOException", "" + e);
}

Thanks and Regards

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


Re: [android-developers] Re: Dear all

2012-07-12 Thread jagruti sangani
Hello,
first of all retrive the which item is clicked and then based on cliked
item call the activity so your query will be solve.

On Fri, Jul 13, 2012 at 8:41 AM, srikanth
wrote:

> sorry for my English ,
> thanks for this solution but my intention is if i click individual options
> in list view retrieve   different actives...as like one options for one
> activity and second for second activity and third for third activity
> 
>
> On Wednesday, July 11, 2012 3:02:17 PM UTC+5:30, Rajan wrote:
>>
>> // -- write in onCreate() Method --
>> ListView ls;
>> ls=(ListView)findViewById(ls.**id.YOUR_LISTVIEW_ID);
>> ls.setOnItemClickListener(**this);
>> // --**--**
>>@Override
>> public void onItemClick(AdapterView adapter, View v, int position,
>> long viewId)
>> {
>> Intent i = new Intent(this,CLASSNAME.class);
>> startActivity(i);
>> }
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards
jagruti Sangani
*iNextrix Technologies*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Rules for restoring game state after the process is killed

2012-07-12 Thread TreKing
On Thu, Jul 12, 2012 at 8:50 PM, markusn82  wrote:

> Is it necessary to be this aggressive when saving game state when the
> process is killed off?
>

Depends on your game and your goals for it. Is this perfect restore a
must-have feature of your game? Only you can answer that.


> After the process is killed, would it be acceptable to merely return the
> player to a place in the game that is reasonably close to where they
> previously were (i.e. a checkpoint).
>

Depends on your game and your goals for it.


> Would this be considered bad practice
>

I don't see why ...


> and would it lower the chance of our games being featured?
>

The only people that can answer that with any authority are neither on this
list nor would answer you if they were.


> What is the correct answer?
>

IMO, there is no "correct answer". Do what makes sense for your game and
what you believe your players' expectation of it will be.

-
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: Dear all

2012-07-12 Thread srikanth
sorry for my English ,
thanks for this solution but my intention is if i click individual options 
in list view retrieve   different actives...as like one options for one 
activity and second for second activity and third for third activity 
 

On Wednesday, July 11, 2012 3:02:17 PM UTC+5:30, Rajan wrote:
>
> // -- write in onCreate() Method --
> ListView ls;
> ls=(ListView)findViewById(ls.id.YOUR_LISTVIEW_ID);
> ls.setOnItemClickListener(this);
> // 
>@Override
> public void onItemClick(AdapterView adapter, View v, int position, long 
> viewId)
> {
> Intent i = new Intent(this,CLASSNAME.class);
> startActivity(i);
> }
>

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

2012-07-12 Thread Mani
Nobu Games,

Thank you for your elaborate answer. This is precisely what I am doing. 
Injecting some JS code upon PageFinished and I inspect the HTML DOM for 
forms. I have been fairly accurate in finding out if the HTML page has a 
Login form. I can do a reasonably good accuracy with the no. of password 
fields in the form. One -> Signin 2-> ChangePwd 0 -> Regular page.
Some questions -
1. Is there any straightforward event that is generated when a Submit 
happens inside the Webview ?

Thanks
Mani


On Friday, July 13, 2012 1:27:25 AM UTC+8, Nobu Games wrote:
>
> The way I see that in desktop browsers is that they are trying to identify 
> login forms in an HTML page with some kind of heuristic. There is no 
> standardized way for logging in a user on the Internet. A login form can 
> have various shapes, locations, layouts, identifiers assigned, so there is 
> no guarantee that this works all the time. But you can get pretty close to 
> a workable solution.
>
> So you need to be smart about it and develop heuristics that are able to 
> identify login forms in HTML pages. Usually login forms consist of an input 
> field that is labeled with something like "user name" or "email address". 
> And close to it is another input field of type "password". If you find 
> something like that in a form you know what you're dealing with and your 
> app needs to store these fields' names.
> You also see that you need to support different languages for identifying 
> the user name field. You cannot expect that field to be labeled in English 
> all the time.
>
> For making it more solid you'll need to store a bit of context. Look for 
> the surrounding form tag and store its action attribute because this is a 
> sure way to find a login form again in an HTML document even when the 
> layout changed a bit.
>
> In any case, if you want to do that based on a WebView, I guess your best 
> bet is injecting some JavaScript code after the page is loaded. That 
> JavaScript code scans through the current page for finding all form tags 
> and tries to figure out, whether these forms are login forms according to 
> your heuristic.
>
> Your trojan JavaScript code needs to hook into the onSubmit event handlers 
> of these login forms, and when the user submits these forms, read both user 
> name and password and transfer that information to your app (see 
> documentation about binding JavaScript to your 
> app).
>  
> Your app can then open a popup dialog and ask the user whether (s)he wants 
> to store these login credentials.
>
> When the user visits that page again, your trojan JavaScript needs to find 
> the matching login form again (by action attribute string for example / and 
> other heuristics, you need to experiment with) and automatically fill both 
> input fields for user name and password.
>
> Be aware that also the action string URL is not necessarily stable, 
> because some websites may add some random token to the URL parameter 
> string. You'll have to experiment with the identification of login forms 
> and find ways for supporting more and more websites over time.
>
> There is one possible deal-breaker however. I don't know whether WebView 
> allows reading password type input fields from JavaScript. It could be 
> turned off / disallowed for security reasons. If that's the case, you're 
> most likely not able to use WebView for your purposes, unless you're using 
> a proxy server that can read out your passwords. That opens a whole other 
> can of worms with all security implications and so on. Or if you're lucky 
> there is some way to intercept the HTTP requests created by WebView. But I 
> doubt that.
>
> By the way, since you are going to handle very sensitive user data, make 
> sure to encrypt that data based on a user password string. There are 
> sufficiently secure algorithms and implementations in Java out there.
>
>
> On Wednesday, July 11, 2012 10:21:21 PM UTC-5, Mani wrote:
>>
>> Thanks to both for your answers,
>> Yes, my use case is smth like password Vault.
>> @Kris, I am able to keep users in the same tab. So thats not my worry. 
>> Have u seen LastPass, thats quite amazing.
>> Well I dont think its snooping if you tell user that the app is meant to 
>> store/synch passwords across browsers or devices, like LastPass has done. 
>> I would appreciate if you can provide some on technical feasibility or 
>> direction on how this can be achieved..
>>
>> Thanks
>> Mani
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Chris Stratton
On Jul 12, 8:55 pm, Dianne Hackborn  wrote:
>
> So, it is now a development permission (a new concept introduced in JB),
> which will never be shown to users, but developers can enable through their
> development tools.

What is duration of effect of a pm grant or pm revoke command?  ie,
does it survive reboot?  What about re-install of the app in question?

Also,

"pm grant, revoke: these commands either grant or revoke permissions
to applications.  Only optional permissions the application has
declared can be granted or revoked."

sort of implies that there is a way to declare a permission optional
in the manifest?  Or is that more on the drawing board than yet
implemented?

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


[android-developers] Rules for restoring game state after the process is killed

2012-07-12 Thread markusn82
Hi,

We recently came across an issue with regards to game state saving when the 
application pauses and restoring it after the process is killed. For our 
previous titles, we would serialize every piece of data associated with the 
current state of the game (in native code) when an onPause() occurred. This 
means that even if the process was killed off after the onPause(), the game 
would resume in the EXACT state it previously was in previously. For a 
racing game, this means that all the cars would be in the exact same place 
on the track, and all characters would be in their exact previous 
positions. This was a fairly aggressive scheme and it caused lots of 
headaches during coding and debugging. Now that we're working on more 
complicated titles, its becoming increasingly difficult to serialize the 
entire game state.

Is it necessary to be this aggressive when saving game state when the 
process is killed off? After the process is killed, would it be acceptable 
to merely return the player to a place in the game that is reasonably close 
to where they previously were (i.e. a checkpoint). Would this be considered 
bad practice and would it lower the chance of our games being featured?

I tried out several popular games on the market and while some of them 
restore the player to their exact previous position, a lot of them merely 
return the player to a check point or even to the title screen if the 
process was killed off. What is the correct answer?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Chris Stratton
On Jul 12, 7:43 pm, Mark Murphy  wrote:

> I was able to get it working in a Galaxy Nexus running ICS, but only
> after several tries.

I think the actual issue is that it has a very long latency - during
which there is no indication that it is working.  And then gmail pops
up.  It really needs some visual feedback when the process starts.



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


[android-developers] Fullscreen Magnifire for Android4.0 or higher

2012-07-12 Thread Norb
Hello Guys!

I'am partially sighted and I new many other Android Users who realy like to 
have a feature like this
Currently Google doesn't see to be intrested in a full screen magnification 
solution for Android.
So I thought it will be cool to do it by my selft. The goal of the project 
is to build a screen magnifire like the one in iOS.
The problem is, I'm new to Android and I don't know if there are some libs 
in the SDK which allows me to build this very quickly.
Should I have to root my android to modifly the display stream or are there 
other ways to get the magnification layer at the top of the normal 
Android 4.0 launcher? Or will something like this be possible by writing my 
own Android Launcher? Or will I have to rebuild thow whole Android display 
stack to get something like this work?

I have know real idea how to begin a project like this, but I will be very 
pleased if you could help me!

It will be realy nice if some of you have some ideas where I will find more 
informations about this theme, or where I have to begin to realize a 
project like this. 

sincerely yours
Norb

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

2012-07-12 Thread TreKing
On Tue, Jul 10, 2012 at 5:15 AM, Vijay Krishnan wrote:

> I want to know about push notifications in android.Anyone help on this.


1 - Please use a title that gives even a slight indication of what your
post is about. This will help you get help and will help others find the
topic in the future if they search for it.

2 - Learn to use Google for simple queries like this.

3 - Learn to ask better questions to get better answers:
http://www.catb.org/~esr/faqs/smart-questions.html

-
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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
On Thu, Jul 12, 2012 at 2:11 PM, niko001  wrote:

> I think that locking out developers from using APIs (and yes, I know that
> it wasn't part of the SDK) for security purposes is an entirely wrong
> approach.
>

I will respectfully disagree with such a blanket statement. :)  If you are
just going to say that this is a wrong approach, then why don't we allow
apps to do anything they want?  Well we don't, because placing restrictions
on apps is very important for the quality of the overall user experience
and app ecosystem.  When we first did Android, we thought that the read
logs permission was something that was okay to have on the side of allowing
apps to use.  Years of painful experience has shown this was wrong.


> There are lots of legitimate reasons for reading the system logs at
> runtime. I could live with a solution as described by Dianne (granting
> access on a per-app basis through the system settings UI), but this should
> have been implemented at the same time as the lockdown of the "old"
> permission. Just because some developers forget to remove logs containing
> sensitive information, everyone else shouldn't be punished for their
> mistake.
>

As I said, the issue is far more than just some apps forgetting to not
print sensitive information.  It ultimately is a pretty intractable problem
to give apps access to the stuff that ends up in the log without opening
all kinds of paths for abuse.

-- 
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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
On Thu, Jul 12, 2012 at 1:07 PM, Kristopher Micinski  wrote:

> > Do users even look or comprehend what permissions are being used in any
> > given app? The user wants the app, they agree, agree, agree and then get
> > malware.
>
> This is a problem with permissions, not specifically the read logs
> permission.
>
> The problem with the read logs permission is that it doesn't clearly
> map into something the user can think about.
>
> The user can see "reads logs" and may think, "oh, reading things the
> device does, like, battery, etc...?"
>
> But doesn't get that it basically can let you monitor when apps start,
> plus whatever stupid developers do to like leaking high security data
> to a public channel ...
>

Yeah, ultimately, this just is not an appropriate use for a permission.  It
is not the kind of app functionality that 99% of users can even comprehend,
let alone have a chance of deciding whether it is okay for the app they are
installing.  We have over the years gone through a number of different
wordings of the permission, but at the end of the day it is just not
something that can be sensible displayed to the user.

So, it is now a development permission (a new concept introduced in JB),
which will never be shown to users, but developers can enable through their
development tools.

-- 
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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
On Thu, Jul 12, 2012 at 10:24 AM, Mark Murphy wrote:

> On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn 
> wrote:
> > however every app can read the logs containing only the lines
> > *they* have written, without needing any permission.
> OK, I'll bite: how do you do this? Most of the read-the-logs code that
> I have seen uses logcat via Runtime#exec(), and I don't see a
> command-line switch on logcat to limit output to just your own
> process' lines.
>

There is no command line switch.  The kernel drive does this based on
whether you have the permission to access the full logs.  If not, it only
gives you the logs associated with your uid.

-- 
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: Eclipse Android Virtual Device on the retina MacBook Pro

2012-07-12 Thread gjs
Hi,

That is a good problem to have, looking forward to it myself soon, I'd 
suggest debugging on a real device instead of the emulator.

If you also have Parallels or similar and run a Windows VM do you get the 
same issue using Eclipse under Windows? Perhaps you could try to using a 
different screen resolution in a Windows VM.

Regards

On Thursday, July 12, 2012 3:47:23 PM UTC+10, Andrew Chen wrote:
>
> I have an macbook pro retina and experience the same issue..what's the fix?
>
>
> On Friday, June 22, 2012 11:39:13 AM UTC-7, Diveflo wrote:
>>
>> Hi,
>>
>> I found the following issue while developing an Android app with Eclipse 
>> on my new MacBook Pro with retina display.
>> Whenever I launch the Android Virtual Device to emulate the app, the 
>> emulator starts with a way too big window. 
>> This ALSO happens if I run the MacBook on the 'native' resolution of 
>> 2880x1800...so it's not because this resolution gets mapped to 1440x900.
>> It wouldn't be a big problem by itself, but the mouse clicks get mapped 
>> to the whole window...so I have to click somewhere else within that window 
>> to get the actual UI-element I wanted to hit :/
>>
>> Has anyone else experienced this and found a solution?
>>
>> I would really appreciate any help...and also no Apple/Goole flamewar if 
>> anyway possible ;)
>>
>> Thank u!
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Zsolt Vasvari
What are we talking about this in this thread?  I just tried the CatLog app 
on my official build (JRO03C) build on my Galaxy Nexus and it shows the 
logcat as it always has.  

On Friday, July 13, 2012 8:09:50 AM UTC+8, Mark Murphy (a Commons Guy) 
wrote:
>
> On Thu, Jul 12, 2012 at 8:02 PM, Peter Sinnott  
> wrote: 
> > 3 devices with ICS ( HTC Desire / HTC One X / Asus Transformer ) 
> > and none of them seem to do it. Probably something obvious I'm doing 
> > wrong. 
>
> Either that, or it's not universal. I just gave it a few tries on a 
> Samsung Galaxy Tab 2 7.0, also running ICS, and could not seem to get 
> it to trigger. Which is why we need some other trigger mechanism that 
> isn't a button-ish form of the game Twister. The concept (let the user 
> send system logs to who they wish) is sound, but it has to be 
> something reasonable for users to accomplish. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.8 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] Android ADT r20 Bug with Eclipse

2012-07-12 Thread Rafael Timmerberg
Since the latest ADT update I have issues with Errors raised from Eclipse, 
although they are fixed and saved like this:
Syntax error, insert ";" to complete Statement.
Usually I have to clean the Project or Cut the whole function to paste it 
again to get that error resolved.

Has someone an idea, what is causing this issue? 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 8:02 PM, Peter Sinnott  wrote:
> 3 devices with ICS ( HTC Desire / HTC One X / Asus Transformer )
> and none of them seem to do it. Probably something obvious I'm doing
> wrong.

Either that, or it's not universal. I just gave it a few tries on a
Samsung Galaxy Tab 2 7.0, also running ICS, and could not seem to get
it to trigger. Which is why we need some other trigger mechanism that
isn't a button-ish form of the game Twister. The concept (let the user
send system logs to who they wish) is sound, but it has to be
something reasonable for users to accomplish.

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

_The Busy Coder's Guide to Android Development_ Version 3.8 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Peter Sinnott


On Jul 13, 12:43 am, Mark Murphy  wrote:
> On Thu, Jul 12, 2012 at 7:39 PM, Peter Sinnott  wrote:
> > Is that new in JB? All I can manage to do is turn off the screen or
> > reboot.
>
> I was able to get it working in a Galaxy Nexus running ICS, but only
> after several tries.
>

3 devices with ICS ( HTC Desire / HTC One X / Asus Transformer )
and none of them seem to do it. Probably something obvious I'm doing
wrong.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 7:39 PM, Peter Sinnott  wrote:
> Is that new in JB? All I can manage to do is turn off the screen or
> reboot.

I was able to get it working in a Galaxy Nexus running ICS, but only
after several tries.

I filed an feature request to offer something else, perhaps through
Settings, to get to the same behavior:

http://code.google.com/p/android/issues/detail?id=34815

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

_The Busy Coder's Guide to Android Development_ Version 3.8 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] Android library as a single jar file

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 7:31 PM, Ericsen  wrote:
> According to this post we cannot distribute an Android library and its
> resources as a single jar file because of "The nature of Android resources,
> with their compiled IDs ...". Are there any plans to allow this?

Yes, they have indicated that they are working on this.

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

_The Busy Coder's Guide to Android Development_ Version 3.8 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Peter Sinnott
On Jul 12, 6:15 pm, Dianne Hackborn  wrote:
> If you want the user to give you debugging information, you can have them
> generate a bug report with power + volume down + volume up which includes
> the logs and lots of other data, and automatically brings up their e-mail
> app to sent it all (plus a screenshot).  We were just discussing that we
> should have an easier way to generate these as well, I am going to look at
> adding something to the settings app.

Is that new in JB? All I can manage to do is turn off the screen or
reboot.

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


[android-developers] Android library as a single jar file

2012-07-12 Thread Ericsen
According to this 
postwe
 cannot distribute an Android library and its resources as a single jar 
file because of "The nature of Android resources, with their compiled IDs 
...". Are there any plans to allow 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] intent for android OTA update

2012-07-12 Thread Ubuntu guy
Hello,

Does android post any intent letting applications know that OTA
update has begun (before going into recovery mode)?

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


[android-developers] Re: BluetoothSocket

2012-07-12 Thread Lew
Lew wrote:
>
> bob wrote:
>
>> Does anyone know where I can get the correct and current source code for 
>> BluetoothSocket?
>>
>> I found this, but it's a little old, I think:
>>
>
> And you think this why? 
>
>>
>> http://hi-android.info/src/android/bluetooth/BluetoothSocket.java.html
>>
>
> Did an online search reveal anything newer?
>

FWIW, I found nothing newer. I suspect what you have is as up to date as it 
gets.

-- 
Lew
 

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

[android-developers] Add Camera Bar Code Reader Support to Android and Apple iOS Apps

2012-07-12 Thread Tim
The latest version of the innovative mobile development tool MobiForms 6.04 
now offers support for Android and Apple iOS camera bar code reader 
integration with one simple scan command. MobiForms is now integrated with 
a range of multi-format 1D and 2D bar code image processing libraries. 
MobiForms now supports most bar code formats including UPC-A, UPC-E, EAN-8, 
EAN-13, Code 39, Code 93, Code 128, ITF, RSS-14 and QR Codes. This feature 
is ideal for adding bar code scanning to logistics, field service and 
consumer mobile apps.


MobiForms also includes standard Android camera photo and GPS integration. 
MobiForms now makes it possible for novice or experienced programmers alike 
to quickly create any kind of mobile business app for Android smartphones 
and tablets. Additionally, the same app can be run on other platforms such 
as Windows Mobile and Apple iOS for iPhone, iPad and iPod.

The MobiForms Developer can be used standalone or with the MobiForms Sync 
Server as part of the MobiForms Advanced Edition. The MobiForms Sync Server 
enables bi-directional data replication, synchronisation and offline 
buffering between just about any master back office database server or ERP 
package (such as Oracle Apps, SAP, Navision, Dynamics etc.), and any 
MobiForms mobile client running on Google Android or a host of other mobile 
platforms such as Windows Mobile and Apple iOS. Supported back office 
database servers include Oracle, SQL Server, Access, Sybase, IBM DB2, 
SQLite, HSQLDB, MySQL and Firebird.

MobiForms offers all the tools in one "box" for the creation and deployment 
of any type of mobile application - from surveys to field service, from 
signature capture to bar coding.

Unlike most competing products, MobiForms offers a total solution for a 
once off licence fee. The licence includes an unlimited number of MobiForms 
clients running on Tablet PC, Pocket PC, Windows CE, Windows Mobile, 
Windows Smartphone, Google Android and Apple iOS iPhone, iPad and iPod. For 
Apple iOS devices there is a token device registration fee.

The MobiForms Developer or the MobiForms Advanced Edition can be downloaded 
from the MobiForms web site at: 
http://www.mobiforms.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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread b0b
Yes reading logs other than you app's has legitimates uses: how many times 
have I asked a user to send me a log saved with aLogcat, to 
troubleshoot possible issues related to the platform itself (damn you 
MediaPlayer!)




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

2012-07-12 Thread Lew
bob wrote:

> Does anyone know where I can get the correct and current source code for 
> BluetoothSocket?
>
> I found this, but it's a little old, I think:
>

And you think this why? 

>
> http://hi-android.info/src/android/bluetooth/BluetoothSocket.java.html
>

Did an online search reveal anything newer?

-- 
Lew 

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

[android-developers] 'share_context' parameter of eglCreateContext()

2012-07-12 Thread Latimerius
While creating a GLES context for off-screen rendering using
eglCreateContext(), if I set the third parameter ('share_context') to
the window context that's used for ordinary rendering to the screen to
avoid having to upload textures etc. to the new context I get
BAD_MATCH.

EGL spec says BAD_MATCH may be generated by eglCreateContext() if GLES
server context state for all sharing contexts does not exist in a
single address space.  I don't know how to verify this - I believe the
contexts in my case (the window context created by GLSurfaceView and
the other by my code) should meet the requirement, however I'm still
getting BAD_MATCH.

Could someone help me out with this?  Not having to upload everything
to the newly created off-screen context would be a performance boon...

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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Kostya Vasilyev
2012/7/12 Dianne Hackborn 

> Applications accessing the system logs has been a long-standing issue.
>  There is various code in the system that tries to trim personal and other
> dangerous information out when it prints to the log, but this often misses
> things, and just makes the system using the logs much more complicated and
> risky.
>
> The logs are also a target for malware, since it can look at what is being
> printed there to infer a lot about what is going on in the device.
>

Understood, but you just made legitimate use impossible.


>
> Plus, as I said, access to the logs has never been any part of the SDK,
> and this was very deliberate, because it is not a facility we want
> applications to use or feel like we can maintain for applications as the
> platform evolves.
>

You saying that doesn't make it any less useful or necessary in some cases
(and those cases are "when you need it, you really really need it").


>
> If you want the user to give you debugging information, you can have them
> generate a bug report with power + volume down + volume up which includes
> the logs and lots of other data, and automatically brings up their e-mail
> app to sent it all (plus a screenshot).  We were just discussing that we
> should have an easier way to generate these as well, I am going to look at
> adding something to the settings app.
>

Ah, the usual "almost done, but not quite, and really, wait for the next
version where it'll really work, and pray that your users will have it on
their devices".

Is there something wrong with how Android's release schedule is largely
tied to Google I/O and the Christmas buying season?

This feature works on my 4.0.4, which was released in November - where's
the docs?

I see the developer site received a fancy redesign, surely someone could
find the time to write this up?


>
> I also have started introducing the concept of a "development" permission,
> which read logs is classified as.  This allows the app to request the
> permission, but not get it at install.  You can however grant it with an
> adb shell command once it is installed.
>

I fail to see the use case for this.

Reading the system logs is useful for remotely diagnosing weirdness out on
the user's devices, when one specifically needs the system logs and not
just the app logs.

Do you expect end users to install the development tools and adb in order
to grant this permission, should the need arise?


>  At some point later I expect to have a UI in the system for doing this,
> but we are going to hold off on that to be careful about how we present
> this.
>
> As far as the percentage of devices running JB, if you want to make that
> argument then we should just stop doing any improvements now since a few
> days after release very few devices will have them.  We consider this a
> significant improvement to the security of the platform, and going forward
> it is what we want to have.
>

Pffft.

Well, I think you should.

It took your team about six months to get the Galaxy Nexus to where it 1.
doesn't reboot on its own and 2. is able to accept incoming calls and SMS.

Still, a few times a day I see it freeze for a few seconds and kill the
foreground app, dumping me to Launcher. This happens in Gmail and the
browser - both of which are pre-installed apps, developed at Google.

I don't recall an HTC Hero with 1.6, or a Motorola Milestone with 2.1 doing
anything like this.

Everything after that has been a gradual decline in stability, from one
release to the next.

Speaking as a user, and as a developer both, each new release makes me
think "guess what they broke this time", and this applies to development
tools and Market as well - the whole Android experience.

Is this progress?

-- K

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

[android-developers] BluetoothSocket

2012-07-12 Thread bob
Does anyone know where I can get the correct and current source code for 
BluetoothSocket?

I found this, but it's a little old, I think:

http://hi-android.info/src/android/bluetooth/BluetoothSocket.java.html

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

2012-07-12 Thread Ali Chousein
Seriously guys, when I developed a paid in-app feature (0.99$/Year by the 
way, bloody expensive yeah?) and informed my "friends" about it, they were 
very disappointed that it was not free (some even were offended that I send 
them info about an app which had paid parts). And then we have here also 
some smart-head (well actually I mean the opposite of head in the vertical 
direction) fellows who want their software developed by others for free. 
Where the heck this world is heading?

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

2012-07-12 Thread Jim Graham
On Thu, Jul 12, 2012 at 09:00:31PM +0530, Vijay Krishnan wrote:

> I couldn't install helper libraries for Google Cloud Messaging.

You probably did something wrong, then.

And just a bit of friendly advice:  when you don't include a subject,
it translates to, "Subject: Nothing at all...just skip this one."

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | DMR: So fsck was originally called
spooky1...@gmail.com  |  something else.
< Running Mac OS X Lion > | Q:   What was it called?
ICBM / Hurricane: | DMR: Well, the second letter was different.
   30.44406N 86.59909W|-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] why is the account managed by AccountManager is delete automatically ?

2012-07-12 Thread marten


Am Mittwoch, 23. März 2011 07:50:56 UTC+1 schrieb Dianne Hackborn:
>
> Because when the SD card is unmounted the apps on it disappear, so things 
> that have state associated with those apps will clean it up.  This is why 
> the documentation says you should not allow these kinds of apps to be 
> placed on the SD card.
>

Ok, but this also happens on the Galaxy Nexus (which doesn't feature a SD 
card slot). Afaik it didn't happen with Android 4.0.4, but it happens for 
users who upgraded to Jelly bean.
What can I do to prevent this.

Marten

>
> On Mon, Mar 21, 2011 at 8:22 PM, 琅琅  wrote:
>
>> My little App creates an account in AccountManager. But if i move the
>> App from internal storage to SD card, the account is automatically
>> delete by AccountManagerService if i unmounted the SD card or reboot
>> the machine.
>>
>> does anyone have any idea about this ? does this mean we cannot move
>> the App to SD card or is it because i am missing some config
>> attributes in the config xml ?
>>
>> D/AccountManagerService( 245): deleting account XXX because type
>> com.XXX no longer has a registered authenticator D/
>> ContactsProvider( 945): removing data for removed account Account
>> {name=, type=com.XXX}
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

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

[android-developers] Re: Facebook Integration in AppMobi

2012-07-12 Thread Ali Chousein
No idea what the heck Appmobi is, but for Facebook integration you need to 
download the Facebook Android SDK, study the example integrations that come 
with it and do your integration accordingly: 
https://github.com/facebook/facebook-android-sdk/ 

- 
Ali Chousein 
https://play.google.com/store/apps/details?id=com.apps.social_nav 
https://play.google.com/store/apps/details?id=com.apps.weather_buddy 
http://www.paygol.com/android/implementation 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread niko001
I think that locking out developers from using APIs (and yes, I know that 
it wasn't part of the SDK) for security purposes is an entirely wrong 
approach. Sure, malicious things can be done with reading the logs, but in 
the same vein, a kitchen knife can be used to kill someone. Every API can 
be used for malicious purposes - I would guess that the camera can be used 
to silently take pictures without the user's knowledge, but that doesn't 
mean that developers should be locked out of the Camera API. Malcicous apps 
should be filtered at the source, when being uploaded the Google Play, 
through automatic checks. I know that this is already being done, but 
rather than closing off APIs, these checks should be intensified, if 
malicious apps are still getting through.

There are lots of legitimate reasons for reading the system logs at 
runtime. I could live with a solution as described by Dianne (granting 
access on a per-app basis through the system settings UI), but this should 
have been implemented at the same time as the lockdown of the "old" 
permission. Just because some developers forget to remove logs containing 
sensitive information, everyone else shouldn't be punished for their 
mistake. 

Nick


Am Donnerstag, 12. Juli 2012 22:07:23 UTC+2 schrieb Kristopher Micinski:
>
> On Thu, Jul 12, 2012 at 4:01 PM, John Coryat  wrote: 
> >> Let me just respectfully say that I don't understand the decision. 
> >> The API is potentially very dangerous, yes, but that is why it requires 
> >> a permission. 
> >> 
> > 
> > Do users even look or comprehend what permissions are being used in any 
> > given app? The user wants the app, they agree, agree, agree and then get 
> > malware. 
> > 
>
> This is a problem with permissions, not specifically the read logs 
> permission. 
>
> The problem with the read logs permission is that it doesn't clearly 
> map into something the user can think about. 
>
> The user can see "reads logs" and may think, "oh, reading things the 
> device does, like, battery, etc...?" 
>
> But doesn't get that it basically can let you monitor when apps start, 
> plus whatever stupid developers do to like leaking high security data 
> to a public channel ... 
>
> Not having an API for it probably does help, as it makes it to where 
> some people who would use the information when they shouldn't be just 
> dont' use it because of the bar to entry (parsing the logs manually), 
> but does (clearly) make it a tad problematic for people who want to do 
> legitimate things with it... 
>
> kris 
>

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

Re: [android-developers] android.intent.action.ACTION_SHUTDOWN is ordered?

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 4:38 PM, Ubuntu guy  wrote:
>Is android.intent.action.ACTION_SHUTDOWN an ordered broadcast
> intent?

It looks like it is, based on my reading of the current source. I have
not tried checking all versions to see if it has always been ordered,
and since it is not documented as being ordered, that behavior is
subject to change.

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

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

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


[android-developers] android.intent.action.ACTION_SHUTDOWN is ordered?

2012-07-12 Thread Ubuntu guy
Hello,


   Is android.intent.action.ACTION_SHUTDOWN an ordered broadcast
intent?
I would like my application to be the last one to receive and process
the shutdown intent.

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


Re: [android-developers] AppCache not working in WebView with loadDataWithBaseURL()

2012-07-12 Thread Mark Murphy
Probably because they only examine the AppCache when going through HTTP.

On Thu, Jul 12, 2012 at 1:32 PM, Andy  wrote:
> All page content is loaded with HTTP.  Strangely, this static content does
> load successfully if it is sourced in the iframe document, but not if it is
> sourced in the literal HTML.  Even if there was a protocol difference, I
> can't understand why that would make a difference in the internal
> AppCache-fetching logic.
>
> On Tuesday, July 10, 2012 3:22:47 PM UTC-7, Mark Murphy (a Commons Guy)
> wrote:
>>
>> On Tue, Jul 10, 2012 at 1:19 PM, Andy Erickson wrote:
>> > However, specifying this base URL allows the iframed HTML to load from
>> > the
>> > AppCache, so it looks like some domain information is being extracted
>> > from
>> > the URL.  Is there any reason why the iframe element should load from
>> > the
>> > AppCache while the other elements do not?
>>
>> Because the  was downloaded over HTTP(S), and the other
>> elements were not.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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

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


Re: [android-developers] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Kristopher Micinski
On Thu, Jul 12, 2012 at 4:01 PM, John Coryat  wrote:
>> Let me just respectfully say that I don't understand the decision.
>> The API is potentially very dangerous, yes, but that is why it requires
>> a permission.
>>
>
> Do users even look or comprehend what permissions are being used in any
> given app? The user wants the app, they agree, agree, agree and then get
> malware.
>

This is a problem with permissions, not specifically the read logs permission.

The problem with the read logs permission is that it doesn't clearly
map into something the user can think about.

The user can see "reads logs" and may think, "oh, reading things the
device does, like, battery, etc...?"

But doesn't get that it basically can let you monitor when apps start,
plus whatever stupid developers do to like leaking high security data
to a public channel ...

Not having an API for it probably does help, as it makes it to where
some people who would use the information when they shouldn't be just
dont' use it because of the bar to entry (parsing the logs manually),
but does (clearly) make it a tad problematic for people who want to do
legitimate things with it...

kris

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

2012-07-12 Thread Lew
Cythes wrote:
>
> For some reason eclipse thinks the ()'s are wrong. Here is the code for 
> that part...
>
> notifyDetails.setLatestEvent(Infocontext, contentTitle, contentText, 
> intent);   
>   mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
>
> Any idea what can be causing this?
>

Just a side note, not an answer, but 'notify' is a terrible name for a 
method 
on account of it's also the name of a fundamental method of 'Object'. It's 
not illegal, of course, since overloads are permissible, but deucedly 
misleading since, I'm guessing, your 'notify()' has nothing in common 
whatsoever with the standard 'notify()'. 

As for your question,* *I agree with those who suggest that the error lies 
in the lines before or after these, the ones not in your post.

And if you only cleaned your project hoping to eliminate stuck error 
markers, that might not be enough. You might need to rebuild before 
those types of markers vanish.

-- 
Lew

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread John Coryat

>
> Let me just respectfully say that I don't understand the decision. 
> The API is potentially very dangerous, yes, but that is why it requires 
> a permission. 
>
>  
Do users even look or comprehend what permissions are being used in any 
given app? The user wants the app, they agree, agree, agree and then get 
malware.

-John Coryat 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread user123
not initialized static final would not even compile.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread user123
Btw. in the first post (don't find a way to edit) I wrote "final" but it's 
wrong, of course. I'm not using final in the code.

On Thursday, July 12, 2012 9:27:40 PM UTC+2, user123 wrote:
>
> Oh, right, thanks, I didn't think about this. This is very probably the 
> reason for most of the crashes... omg :/
>
> The things I'm passing are parts of a processed / filtered result from a 
> webservice, so I can't get them from a singleton or similar, I guess. 
> Serialization seems to be the way to go.
>
> On Thursday, July 12, 2012 9:17:17 PM UTC+2, TreKing wrote:
>>
>> On Thu, Jul 12, 2012 at 1:06 PM, user123  wrote:
>>
>>> And Activity B is always started just by Activity A
>>
>>
>> That is an incorrect assumption.
>>
>> Picture this sequence of events: Activity A starts Activity B, then you 
>> close out the app by pressing Home, then you come back to your app after 
>> some time. In this case, the system will have killed your app (and wiped 
>> your statics) and will start where it last left off, which is Activity B, 
>> bypassing your static initialization and resulting in your null pointers.
>>
>> You need some sort of lazy initialization or Singleton pattern to ensure 
>> you always load the data you need if it's not already been loaded.
>>
>>
>> -
>> 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] Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread user123
Oh, right, thanks, I didn't think about this. This is very probably the 
reason for most of the crashes... omg :/

The things I'm passing are parts of a processed / filtered result from a 
webservice, so I can't get them from a singleton or similar, I guess. 
Serialization seems to be the way to go.

On Thursday, July 12, 2012 9:17:17 PM UTC+2, TreKing wrote:
>
> On Thu, Jul 12, 2012 at 1:06 PM, user123  wrote:
>
>> And Activity B is always started just by Activity A
>
>
> That is an incorrect assumption.
>
> Picture this sequence of events: Activity A starts Activity B, then you 
> close out the app by pressing Home, then you come back to your app after 
> some time. In this case, the system will have killed your app (and wiped 
> your statics) and will start where it last left off, which is Activity B, 
> bypassing your static initialization and resulting in your null pointers.
>
> You need some sort of lazy initialization or Singleton pattern to ensure 
> you always load the data you need if it's not already been loaded.
>
>
> -
> 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] App claims to have stopped then instantly starts afterward?

2012-07-12 Thread TreKing
On Thu, Jul 12, 2012 at 9:39 AM, Cythes  wrote:

> When I load my app into the emulator it installs just fine, but as soon as
> it goes to start it stops but then starts right afterward?


LogCat?


-
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] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Ievgenii Nazaruk
Personally, as a user I welcome this change. 

My concern was that this wasn't mentioned in changes description. And 
what's more important there is no way to enable READ_LOGS during 
development/testing process. It's good there are (tentative?) plans to 
introduce a way to enable such permissions for developers in later 
releases. It would've been great to have both these changes at the same 
time. But we have what we have.

By the way, thanks for the power + volume down + volume up trick. Didn't 
know it existed. This somewhat mitigates the issue in some cases. 

/Ievgenii Nazaruk

On Thursday, July 12, 2012 8:15:33 PM UTC+3, Dianne Hackborn wrote:
>
> Applications accessing the system logs has been a long-standing issue. 
>  There is various code in the system that tries to trim personal and other 
> dangerous information out when it prints to the log, but this often misses 
> things, and just makes the system using the logs much more complicated and 
> risky.
>
> The logs are also a target for malware, since it can look at what is being 
> printed there to infer a lot about what is going on in the device.
>
> Plus, as I said, access to the logs has never been any part of the SDK, 
> and this was very deliberate, because it is not a facility we want 
> applications to use or feel like we can maintain for applications as the 
> platform evolves.
>
> If you want the user to give you debugging information, you can have them 
> generate a bug report with power + volume down + volume up which includes 
> the logs and lots of other data, and automatically brings up their e-mail 
> app to sent it all (plus a screenshot).  We were just discussing that we 
> should have an easier way to generate these as well, I am going to look at 
> adding something to the settings app.
>
> I also have started introducing the concept of a "development" permission, 
> which read logs is classified as.  This allows the app to request the 
> permission, but not get it at install.  You can however grant it with an 
> adb shell command once it is installed.  At some point later I expect to 
> have a UI in the system for doing this, but we are going to hold off on 
> that to be careful about how we present this.
>
> As far as the percentage of devices running JB, if you want to make that 
> argument then we should just stop doing any improvements now since a few 
> days after release very few devices will have them.  We consider this a 
> significant improvement to the security of the platform, and going forward 
> it is what we want to have.
>
> On Thu, Jul 12, 2012 at 10:00 AM, Kostya Vasilyev wrote:
>
>> I have my own logging solution in my app, and even though it's very 
>> useful...
>>
>> ... being able to see the system logs is invaluable and irreplaceable in 
>> some situations.
>>
>> For example, I recently experienced LVL validation failures and asked the 
>> users to use CatLog (one the of apps on Market that can read and email 
>> logcat output). With the logcat output in hand, it was obvious that the 
>> failure is on Google's side (again!) and I knew what to do about it.
>>
>> I understand that the Android team's concern, as was previously mentioned 
>> on the list, is for applications that may print personal user's information 
>> in the system log.
>>
>> Why, then, is the remedy such that it punishes apps that are not in 
>> violation of the user's privacy with their logcat use?
>>
>> Is the actual install share of JB so high already that this change is 
>> believed to be a meaningful solution?
>>  
>> -- K
>>
>>
>> 2012/7/12 Latimerius 
>>
>>> The upcoming ACRA release will (probably) contain the ability to
>>> include a custom application-private log file in a report.  So if you
>>> only care for reading the system log to read your own log messages,
>>> that should be taken care of.  Of course, if you really want to read
>>> the actual stuff logged by the system and other apps, that's going to
>>> be tougher.
>>>
>>> On Thu, Jul 12, 2012 at 5:19 PM, b0b  wrote:
>>> > The thing is that it is better to not rely on READ_LOGS to (for 
>>> example)
>>> > provide logs to ACRA.
>>> > The bonus is that your app will not need that permission which is kind 
>>> of
>>> > scary.
>>> >
>>> > How can it be done ?
>>> >
>>> > - wrap all your logging calls into functions adding your log message + 
>>> any
>>> > other metadata (like tag or timestamp) to a cache were you keep the 
>>> last n
>>> > log lines. Can be done with a simple LinkedHashMap overriding
>>> > removeEldestEntry().
>>> > - modify ACRA by  adding a custom column that will contain the content 
>>> of
>>> > the log cache. When the crash report is constructed, fill that column 
>>> with
>>> > the cache data
>>> > - profit!
>>> >
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to 
>>> android-developers@googlegroups.com
>>> > To unsubscribe fro

Re: [android-developers] Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread TreKing
On Thu, Jul 12, 2012 at 1:06 PM, user123  wrote:

> And Activity B is always started just by Activity A


That is an incorrect assumption.

Picture this sequence of events: Activity A starts Activity B, then you
close out the app by pressing Home, then you come back to your app after
some time. In this case, the system will have killed your app (and wiped
your statics) and will start where it last left off, which is Activity B,
bypassing your static initialization and resulting in your null pointers.

You need some sort of lazy initialization or Singleton pattern to ensure
you always load the data you need if it's not already been loaded.

-
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: Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread user123
But it starts making sense, maybe. The process (VM) is killed, because it 
runs out of memory, or something else, maybe it's killed to fast to send an 
exception to the tracker, and then, there some mechanism in Android to 
restart a new process/VM in order to continue excecuting the app, where it 
stopped. Because it's a different process, my debugger, which is still 
debugging the killed process, doesn't stop on the breakpoints, but I see 
the null pointer exception, which is from the new process. And 
serialization makes sense exactly for this kind of cases, then it's always 
possible to continue excecuting although the process was killed...
hm... sounds good right :) I hope I'm right and serialization fixed the 
issues. If I'm saying something wrong or someone wants to add something, 
please do it.


On Thursday, July 12, 2012 9:01:25 PM UTC+2, user123 wrote:
>
> So the system is trying to recover the activity after the VM shutted down, 
> and if I serialize/persist the data it will be restarted correctly and the 
> app will not crash?
>
> I thought VM crash would be the end of everything and the app would crash 
> inevitably after it. I thought that these errors where just some kind of 
> post traumatic disorder, and if i fix them the app will crash anways... 
> that's why I was looking how to fix the VM crash instead of the null 
> pointer.
>
> But you say, although the VM crashes, if the data can be recovered 
> everything will run normally, is that right? Then I'll start immediatly to 
> serialize all the parameters.
>
>
> On Thursday, July 12, 2012 8:24:46 PM UTC+2, Nobu Games wrote:
>>
>> Seriously, instead of waiting for a reply that explains to you all 
>> different scenarios when and how the VM crashes, you should start coding a 
>> solution the clean way and either pass over that data via Intent, store it 
>> in some SharedPreferences object or in a database or something.
>>
>> You don't necessarily need to implement Parcelable (which is indeed a 
>> pain in the backside). If your data classes carry just some serializable 
>> members then add the Serializable interface to them. Serializable objects 
>> can also be bundled as Intent extras via 
>> putSerializable().
>>  
>> It's pretty much effortless to use.
>>
>> If your data classes contain contexts or other non-serializable members, 
>> declare these members as transient:
>>
>> private transient Context mContext;
>>>
>>
>> And on de-serialization in your next Activity you can assign these 
>> members again.
>>
>> Java Collections (like your String List in above example) are 
>> serializable by the way.
>>
>

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

[android-developers] Re: Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread user123
So the system is trying to recover the activity after the VM shutted down, 
and if I serialize/persist the data it will be restarted correctly and the 
app will not crash?

I thought VM crash would be the end of everything and the app would crash 
inevitably after it. I thought that these errors where just some kind of 
post traumatic disorder, and if i fix them the app will crash anways... 
that's why I was looking how to fix the VM crash instead of the null 
pointer.

But you say, although the VM crashes, if the data can be recovered 
everything will run normally, is that right? Then I'll start immediatly to 
serialize all the parameters.


On Thursday, July 12, 2012 8:24:46 PM UTC+2, Nobu Games wrote:
>
> Seriously, instead of waiting for a reply that explains to you all 
> different scenarios when and how the VM crashes, you should start coding a 
> solution the clean way and either pass over that data via Intent, store it 
> in some SharedPreferences object or in a database or something.
>
> You don't necessarily need to implement Parcelable (which is indeed a pain 
> in the backside). If your data classes carry just some serializable members 
> then add the Serializable interface to them. Serializable objects can also 
> be bundled as Intent extras via 
> putSerializable().
>  
> It's pretty much effortless to use.
>
> If your data classes contain contexts or other non-serializable members, 
> declare these members as transient:
>
> private transient Context mContext;
>>
>
> And on de-serialization in your next Activity you can assign these members 
> again.
>
> Java Collections (like your String List in above example) are serializable 
> by the way.
>

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

[android-developers] Re: Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread Nobu Games
Seriously, instead of waiting for a reply that explains to you all 
different scenarios when and how the VM crashes, you should start coding a 
solution the clean way and either pass over that data via Intent, store it 
in some SharedPreferences object or in a database or something.

You don't necessarily need to implement Parcelable (which is indeed a pain 
in the backside). If your data classes carry just some serializable members 
then add the Serializable interface to them. Serializable objects can also 
be bundled as Intent extras via 
putSerializable().
 
It's pretty much effortless to use.

If your data classes contain contexts or other non-serializable members, 
declare these members as transient:

private transient Context mContext;
>

And on de-serialization in your next Activity you can assign these members 
again.

Java Collections (like your String List in above example) are serializable 
by the way.

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

[android-developers] Parameters "passed" using static fields of application become null sometimes

2012-07-12 Thread user123
Since I had some problems implementing Parcelable, and I'm currently very 
short of time, and also wanted to avoid parcelation overload, I decided to 
pass lists, between activities, using static fields of the application. For 
primitive values and objects which are easily serializable (making them 
implement Serializable) I pass using a bundle, like usual.

Now I distributed a test app and got, in my error reports, a high amount of 
crashes, because of null pointer exceptions calling methods on the objects 
stored in these fields.

I implemented them very cleanly, I use variables like:

public static final List paramsListFromAToB;

And Activity B is always started just by Activity A, and I set the 
parameter exactly in the same place where I fill the other bundle data, and 
I read it in B exactly in the same place, where I read the bundle data 
received from A. I of course checked very carefully if the lists, for some 
reason, are null before being passed, but this can't be the case, because 
I'm initializing right before the line and it's impossible it can become 
null, there's also no other thread using it.

I'm developing for API 7.

Now comes the second part of the description, which might be enlightening 
for someone.  A while ago I had myself this problem very repeatedly, and 
found the reason. I was because when activity B loaded, and initalized the 
layout, it ran out of memory, because of bitmaps. I saw in the log an out 
of memory exception, then a message that the virtual machine is exiting, 
and then, for some reason, the following code was excecuted (but in a very 
strange way, because, if I put breakpoint for example to try to debug, it 
didn't stop there), but with the static fields of the Application being 
null, probably, because the VM shutted down, so this object was not 
available anymore.

The strange thing is that, that time, I always got an out of memory 
exception before. Now I only found 1 out of memory exception in the error 
traces, but 7 null pointer exceptions because of the static objects being 
null.

Ok, so what is causing this? Is it still running out of memory, if yes, why 
am I not getting out of memory exception before?

If not, what else can shut down the VM / make this fields null unexpectedly?

Very thankful in advance for every answer and advice. This is really 
urgent, have to launch this soon and can't release this way, it's crashing 
very frequently... don't know how to fix it.

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

Re: [android-developers] Expandible list view search box implementation

2012-07-12 Thread Justin Anderson
http://lmgtfy.com/?q=android+listview+with+search+tutorial

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


On Thu, Jul 12, 2012 at 11:40 AM, jagadeeshbabu wrote:

>  In my expandible list view how add search box label can any one guide me.
> 
>
> ** **
>
> Regards
>
> Jagadeesh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-07-12 Thread user123


I got in error track of an app TransactionTooLargeException. Not 
reproducible and never had it before. In the docs it says

The Binder transaction failed because it was too large.

During a remote procedure call, the arguments and the return value of the 
call are transferred as Parcel objects stored in the Binder transaction 
buffer. If the arguments or the return value are too large to fit in the 
transaction buffer, then the call will fail and 
TransactionTooLargeException will be thrown.

...

There are two possible outcomes when a remote procedure call throws 
TransactionTooLargeException. Either the client was unable to send its 
request to the service (most likely if the arguments were too large to fit 
in the transaction buffer), or the service was unable to send its response 
back to the client (most likely if the return value was too large to fit in 
the transaction buffer).

...

So, ok, somewhere I'm passing or receiving arguments which exceed some 
unknown limit. But where?

The stacktrace doesn't show anything from my files:

java.lang.RuntimeException: Adding window failed
at android.view.ViewRootImpl.setView(ViewRootImpl.java:548)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:406)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:320)
at 
android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:152)
at android.view.Window$LocalWindowManager.addView(Window.java:557)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2897)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1262)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4977)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:569)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:538)
... 16 more
android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:569)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:538)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:406)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:320)
at 
android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:152)
at android.view.Window$LocalWindowManager.addView(Window.java:557)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2897)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1262)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4977)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

It seems to be related with views, because all the Window / View lines? How 
is this related to remote procedure call? How can I look for the reason of 
this error?

In the app I'm using only Webservices, I'm not using Service class, are the 
Webservices the "remote procedure calls" or what else could be...?

Thanks in advance...

P.S. Maybe it's important: Android version: 4.0.3, Device: HTC One X, using 
support package v4, target API 7

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

[android-developers] Expandible list view search box implementation

2012-07-12 Thread jagadeeshbabu
In my expandible list view how add search box label can any one guide me.

 

Regards

Jagadeesh

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

Re: [android-developers] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread BoD

Let me just respectfully say that I don't understand the decision.
The API is potentially very dangerous, yes, but that is why it requires 
a permission.


--
BoD

On 07/12/2012 07:24 PM, Mark Murphy wrote:

On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn  wrote:

however every app can read the logs containing only the lines
*they* have written, without needing any permission.

OK, I'll bite: how do you do this? Most of the read-the-logs code that
I have seen uses logcat via Runtime#exec(), and I don't see a
command-line switch on logcat to limit output to just your own
process' lines.

(BTW, count me as one of the fans of this decision, despite the very
loud grumblings I expect you will receive from various quarters)

Thanks!




--
BoD

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AppCache not working in WebView with loadDataWithBaseURL()

2012-07-12 Thread Andy
All page content is loaded with HTTP.  Strangely, this static content does 
load successfully if it is sourced in the iframe document, but not if it is 
sourced in the literal HTML.  Even if there was a protocol difference, I 
can't understand why that would make a difference in the internal 
AppCache-fetching logic.

On Tuesday, July 10, 2012 3:22:47 PM UTC-7, Mark Murphy (a Commons Guy) 
wrote:
>
> On Tue, Jul 10, 2012 at 1:19 PM, Andy Erickson wrote: 
> > However, specifying this base URL allows the iframed HTML to load from 
> the 
> > AppCache, so it looks like some domain information is being extracted 
> from 
> > the URL.  Is there any reason why the iframe element should load from 
> the 
> > AppCache while the other elements do not? 
>
> Because the  was downloaded over HTTP(S), and the other 
> elements were not. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in NYC: http://marakana.com/training/android/ 
>

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

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-12 Thread b0b


On Thursday, 12 July 2012 19:01:26 UTC+2, Dianne Hackborn wrote:
>
> On Thu, Jul 12, 2012 at 2:54 AM, b0b wrote:
>
>> Btw what is the rationale for the system to never display the overflow 
>> menu on ICS phones having a hardware menu key ?
>> Isn't that bad for discoverability, one of the benefits of the overflow 
>> menu ?
>>
>
> It would be redundant, and this behavior is consist with the long standing 
> UX for devices with a physical menu button.
>
>
>
This is really dabatable and a matter of personal opinion...I would have 
liked the Action Bar of my app to look the same weather there
is a physical menu button or not. 

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

[android-developers] Re: Android application project error in linux

2012-07-12 Thread cadogan1
That seemed to fix it! thanks for the help.

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

Re: [android-developers] Re: Get Passwords from Webview

2012-07-12 Thread Nobu Games
The way I see that in desktop browsers is that they are trying to identify 
login forms in an HTML page with some kind of heuristic. There is no 
standardized way for logging in a user on the Internet. A login form can 
have various shapes, locations, layouts, identifiers assigned, so there is 
no guarantee that this works all the time. But you can get pretty close to 
a workable solution.

So you need to be smart about it and develop heuristics that are able to 
identify login forms in HTML pages. Usually login forms consist of an input 
field that is labeled with something like "user name" or "email address". 
And close to it is another input field of type "password". If you find 
something like that in a form you know what you're dealing with and your 
app needs to store these fields' names.
You also see that you need to support different languages for identifying 
the user name field. You cannot expect that field to be labeled in English 
all the time.

For making it more solid you'll need to store a bit of context. Look for 
the surrounding form tag and store its action attribute because this is a 
sure way to find a login form again in an HTML document even when the 
layout changed a bit.

In any case, if you want to do that based on a WebView, I guess your best 
bet is injecting some JavaScript code after the page is loaded. That 
JavaScript code scans through the current page for finding all form tags 
and tries to figure out, whether these forms are login forms according to 
your heuristic.

Your trojan JavaScript code needs to hook into the onSubmit event handlers 
of these login forms, and when the user submits these forms, read both user 
name and password and transfer that information to your app (see 
documentation about binding JavaScript to your 
app).
 
Your app can then open a popup dialog and ask the user whether (s)he wants 
to store these login credentials.

When the user visits that page again, your trojan JavaScript needs to find 
the matching login form again (by action attribute string for example / and 
other heuristics, you need to experiment with) and automatically fill both 
input fields for user name and password.

Be aware that also the action string URL is not necessarily stable, because 
some websites may add some random token to the URL parameter string. You'll 
have to experiment with the identification of login forms and find ways for 
supporting more and more websites over time.

There is one possible deal-breaker however. I don't know whether WebView 
allows reading password type input fields from JavaScript. It could be 
turned off / disallowed for security reasons. If that's the case, you're 
most likely not able to use WebView for your purposes, unless you're using 
a proxy server that can read out your passwords. That opens a whole other 
can of worms with all security implications and so on. Or if you're lucky 
there is some way to intercept the HTTP requests created by WebView. But I 
doubt that.

By the way, since you are going to handle very sensitive user data, make 
sure to encrypt that data based on a user password string. There are 
sufficiently secure algorithms and implementations in Java out there.


On Wednesday, July 11, 2012 10:21:21 PM UTC-5, Mani wrote:
>
> Thanks to both for your answers,
> Yes, my use case is smth like password Vault.
> @Kris, I am able to keep users in the same tab. So thats not my worry. 
> Have u seen LastPass, thats quite amazing.
> Well I dont think its snooping if you tell user that the app is meant to 
> store/synch passwords across browsers or devices, like LastPass has done. 
> I would appreciate if you can provide some on technical feasibility or 
> direction on how this can be achieved..
>
> Thanks
> Mani
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Mark Murphy
On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn  wrote:
> however every app can read the logs containing only the lines
> *they* have written, without needing any permission.

OK, I'll bite: how do you do this? Most of the read-the-logs code that
I have seen uses logcat via Runtime#exec(), and I don't see a
command-line switch on logcat to limit output to just your own
process' lines.

(BTW, count me as one of the fans of this decision, despite the very
loud grumblings I expect you will receive from various quarters)

Thanks!

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

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

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


Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
Applications accessing the system logs has been a long-standing issue.
 There is various code in the system that tries to trim personal and other
dangerous information out when it prints to the log, but this often misses
things, and just makes the system using the logs much more complicated and
risky.

The logs are also a target for malware, since it can look at what is being
printed there to infer a lot about what is going on in the device.

Plus, as I said, access to the logs has never been any part of the SDK, and
this was very deliberate, because it is not a facility we want applications
to use or feel like we can maintain for applications as the platform
evolves.

If you want the user to give you debugging information, you can have them
generate a bug report with power + volume down + volume up which includes
the logs and lots of other data, and automatically brings up their e-mail
app to sent it all (plus a screenshot).  We were just discussing that we
should have an easier way to generate these as well, I am going to look at
adding something to the settings app.

I also have started introducing the concept of a "development" permission,
which read logs is classified as.  This allows the app to request the
permission, but not get it at install.  You can however grant it with an
adb shell command once it is installed.  At some point later I expect to
have a UI in the system for doing this, but we are going to hold off on
that to be careful about how we present this.

As far as the percentage of devices running JB, if you want to make that
argument then we should just stop doing any improvements now since a few
days after release very few devices will have them.  We consider this a
significant improvement to the security of the platform, and going forward
it is what we want to have.

On Thu, Jul 12, 2012 at 10:00 AM, Kostya Vasilyev wrote:

> I have my own logging solution in my app, and even though it's very
> useful...
>
> ... being able to see the system logs is invaluable and irreplaceable in
> some situations.
>
> For example, I recently experienced LVL validation failures and asked the
> users to use CatLog (one the of apps on Market that can read and email
> logcat output). With the logcat output in hand, it was obvious that the
> failure is on Google's side (again!) and I knew what to do about it.
>
> I understand that the Android team's concern, as was previously mentioned
> on the list, is for applications that may print personal user's information
> in the system log.
>
> Why, then, is the remedy such that it punishes apps that are not in
> violation of the user's privacy with their logcat use?
>
> Is the actual install share of JB so high already that this change is
> believed to be a meaningful solution?
>
> -- K
>
>
> 2012/7/12 Latimerius 
>
>> The upcoming ACRA release will (probably) contain the ability to
>> include a custom application-private log file in a report.  So if you
>> only care for reading the system log to read your own log messages,
>> that should be taken care of.  Of course, if you really want to read
>> the actual stuff logged by the system and other apps, that's going to
>> be tougher.
>>
>> On Thu, Jul 12, 2012 at 5:19 PM, b0b  wrote:
>> > The thing is that it is better to not rely on READ_LOGS to (for example)
>> > provide logs to ACRA.
>> > The bonus is that your app will not need that permission which is kind
>> of
>> > scary.
>> >
>> > How can it be done ?
>> >
>> > - wrap all your logging calls into functions adding your log message +
>> any
>> > other metadata (like tag or timestamp) to a cache were you keep the
>> last n
>> > log lines. Can be done with a simple LinkedHashMap overriding
>> > removeEldestEntry().
>> > - modify ACRA by  adding a custom column that will contain the content
>> of
>> > the log cache. When the crash report is constructed, fill that column
>> with
>> > the cache data
>> > - profit!
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-devel

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-12 Thread Dianne Hackborn
On Thu, Jul 12, 2012 at 2:54 AM, b0b  wrote:

> Btw what is the rationale for the system to never display the overflow
> menu on ICS phones having a hardware menu key ?
> Isn't that bad for discoverability, one of the benefits of the overflow
> menu ?
>

It would be redundant, and this behavior is consist with the long standing
UX for devices with a physical menu button.

-- 
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] Regarding Packagemanager..?

2012-07-12 Thread Dianne Hackborn
Specifically, PackageManagerService.java and related classes it uses.

On Thu, Jul 12, 2012 at 8:40 AM, Justin Anderson wrote:

> Look at the source code for PackageManager...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Thu, Jul 12, 2012 at 9:22 AM, Abhilash baddam <
> abhilash.androiddevelo...@gmail.com> wrote:
>
>> Hi,
>>
>> I came to know that after booting device, all the system apps and market
>> apps( if there) will be loaded right. These all things will be handled by
>> PackageManager means which are the already installed apps, based on that it
>> will load all the apps. But how the PackageManager gets the information
>> about installed apps in the device. I want to know to know more about
>> PackageMAnager. I have gone through developer.android.com, but I want to
>> know more about this.  Can anybody help me regarding on the same.
>>
>>
>>
>>
>> Regards
>> Abhilash
>>
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Kostya Vasilyev
I have my own logging solution in my app, and even though it's very
useful...

... being able to see the system logs is invaluable and irreplaceable in
some situations.

For example, I recently experienced LVL validation failures and asked the
users to use CatLog (one the of apps on Market that can read and email
logcat output). With the logcat output in hand, it was obvious that the
failure is on Google's side (again!) and I knew what to do about it.

I understand that the Android team's concern, as was previously mentioned
on the list, is for applications that may print personal user's information
in the system log.

Why, then, is the remedy such that it punishes apps that are not in
violation of the user's privacy with their logcat use?

Is the actual install share of JB so high already that this change is
believed to be a meaningful solution?

-- K

2012/7/12 Latimerius 

> The upcoming ACRA release will (probably) contain the ability to
> include a custom application-private log file in a report.  So if you
> only care for reading the system log to read your own log messages,
> that should be taken care of.  Of course, if you really want to read
> the actual stuff logged by the system and other apps, that's going to
> be tougher.
>
> On Thu, Jul 12, 2012 at 5:19 PM, b0b  wrote:
> > The thing is that it is better to not rely on READ_LOGS to (for example)
> > provide logs to ACRA.
> > The bonus is that your app will not need that permission which is kind of
> > scary.
> >
> > How can it be done ?
> >
> > - wrap all your logging calls into functions adding your log message +
> any
> > other metadata (like tag or timestamp) to a cache were you keep the last
> n
> > log lines. Can be done with a simple LinkedHashMap overriding
> > removeEldestEntry().
> > - modify ACRA by  adding a custom column that will contain the content of
> > the log cache. When the crash report is constructed, fill that column
> with
> > the cache data
> > - profit!
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Dianne Hackborn
Hi, sorry this didn't get documented.

The change is that third party applications can no longer get the read logs
permission, however every app can read the logs containing only the lines
*they* have written, without needing any permission.

Keep in mind that access to the logs has never been part of the SDK, and is
still not part of the SDK.  If you are relying on it then, even after this
change, you run the risk of breaking in the future.  (And that is partly
why this got lost for documentation, it is not part of the SDK, so there
isn't really a place to document it, in fact documenting it would kind-of
make it a part of the SDK which we don't want. :p)

Also we really really hope that developers don't take this as license to
further abuse the system logs and spew increasing amounts of stuff into it
from their app.  Log noise has been a continual problem on Android (not
just for third party apps, we always struggle to ship the open source
platform without a lot of noise), and if things continue to get worse we
will probably make further changes to it to better control it.

On Sun, Jul 8, 2012 at 12:26 PM, Ievgenii Nazaruk <
ievgenii.naza...@gmail.com> wrote:

> Hi all,
>
> I've been working on an application for developers that uses
> DropBoxManager. The DropBoxManager requires READ_LOGS permission to be
> granted in order to query information from it.
>
> Today I've tested my application on newest (api 16) emulator before
> releasing it to Google Play. It turned out that Android now refuses to
> grant this permission to 3rd party applications. This is weird because I've
> looked through all Jelly Bean's documented changes and couldn't find
> anything that mentions READ_LOGS permission.
>
> So basically my questions:
>
>- Did anyone see this change documented?
>- Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on
>it (the one released to attendees of Google I/O)?
>
> And questions to someone from Android team:
>
>- Why this breaking change wasn't described in documentations like
>
> READ_EXTERNAL_STORAGEwas?
>
>- What should developers and testers do in order to use those handy
>utility applications that require READ_LOGS to be useful? Is there any way
>to allow READ_LOGS to 3rd party applications without making custom build
>(i.e. something in "Developer Options" that I could've missed)?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

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

[android-developers] Re: Android application project error in linux

2012-07-12 Thread Nobu Games
This looks like a simple file permission problem. The SDK tools are not 
allowed to create any files / directories in that path. You can very easily 
fix that problem by downloading / installing the SDK somewhere in your user 
home directory or change the file system permissions / ownership for that 
directory and all contained sub-directories and files. Ownership / 
permissions have to match your user or user group.

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

Re: [android-developers] Re: android:windowIsFloating

2012-07-12 Thread Kristoffer
Okey, then i know.
Thanks.

Den onsdagen den 11:e juli 2012 kl. 21:53:50 UTC+2 skrev Dianne Hackborn:

> A non-fullscreen window wraps its content.  If your content is allowing 
> itself to be wrapped at a size smaller than works, you have a problem with 
> the layout in your window.
>
> On Wed, Jul 11, 2012 at 10:55 AM, Kristoffer wrote:
>
>> Hello.
>> its the same if i use that, the window will be the same size as the 
>> content.
>>
>> Den onsdagen den 11:e juli 2012 kl. 19:34:24 UTC+2 skrev skink:
>>
>>>
>>>
>>> Kristoffer wrote: 
>>> > Hello. 
>>> > Iam trying to make a nice looking "popup" window 
>>> > iam almost there with the help of android:windowIsFloating in my theme 
>>> but 
>>> > the thing is that the new window is wraping content to set its size. 
>>> > What i want is that the new window should almost fill the whole 
>>> screen, it 
>>> > should just be little smaller that the background activity just to 
>>> show 
>>> > thats its a popup window. 
>>> > 
>>> > Yes, sure i could hardcode a size but i want it to look good on any 
>>> size so 
>>> > the best would be if i some way could set the size to like 80 % of 
>>> screen 
>>> > size? 
>>> > maybe there is a default android theme that i could use? 
>>>
>>>
>>> sure it is: 
>>>
>>>  
>>>
>>> pskink
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

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

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Latimerius
The upcoming ACRA release will (probably) contain the ability to
include a custom application-private log file in a report.  So if you
only care for reading the system log to read your own log messages,
that should be taken care of.  Of course, if you really want to read
the actual stuff logged by the system and other apps, that's going to
be tougher.

On Thu, Jul 12, 2012 at 5:19 PM, b0b  wrote:
> The thing is that it is better to not rely on READ_LOGS to (for example)
> provide logs to ACRA.
> The bonus is that your app will not need that permission which is kind of
> scary.
>
> How can it be done ?
>
> - wrap all your logging calls into functions adding your log message + any
> other metadata (like tag or timestamp) to a cache were you keep the last n
> log lines. Can be done with a simple LinkedHashMap overriding
> removeEldestEntry().
> - modify ACRA by  adding a custom column that will contain the content of
> the log cache. When the crash report is constructed, fill that column with
> the cache data
> - profit!
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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]

2012-07-12 Thread Justin Anderson
>
> I couldn't install helper libraries for Google Cloud Messaging.
>
Thanks for letting us know.

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


On Thu, Jul 12, 2012 at 9:30 AM, Vijay Krishnan wrote:

> Hi all,
> I couldn't install helper libraries for Google Cloud Messaging.
>
> Thanks,
> vijay.k
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Regarding Packagemanager..?

2012-07-12 Thread Justin Anderson
Look at the source code for PackageManager...

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


On Thu, Jul 12, 2012 at 9:22 AM, Abhilash baddam <
abhilash.androiddevelo...@gmail.com> wrote:

> Hi,
>
> I came to know that after booting device, all the system apps and market
> apps( if there) will be loaded right. These all things will be handled by
> PackageManager means which are the already installed apps, based on that it
> will load all the apps. But how the PackageManager gets the information
> about installed apps in the device. I want to know to know more about
> PackageMAnager. I have gone through developer.android.com, but I want to
> know more about this.  Can anybody help me regarding on the same.
>
>
>
>
> Regards
> Abhilash
>
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers]

2012-07-12 Thread Vijay Krishnan
Hi all,
I couldn't install helper libraries for Google Cloud Messaging.

Thanks,
vijay.k

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

[android-developers] Regarding Packagemanager..?

2012-07-12 Thread Abhilash baddam
Hi,

I came to know that after booting device, all the system apps and market
apps( if there) will be loaded right. These all things will be handled by
PackageManager means which are the already installed apps, based on that it
will load all the apps. But how the PackageManager gets the information
about installed apps in the device. I want to know to know more about
PackageMAnager. I have gone through developer.android.com, but I want to
know more about this.  Can anybody help me regarding on the same.




Regards
Abhilash

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread b0b
The thing is that it is better to not rely on READ_LOGS to (for example) 
provide logs to ACRA.
The bonus is that your app will not need that permission which is kind of 
scary.

How can it be done ?

- wrap all your logging calls into functions adding your log message + any 
other metadata (like tag or timestamp) to a cache were you keep the last n  
log lines. Can be done with a simple LinkedHashMap overriding 
removeEldestEntry().
- modify ACRA by  adding a custom column that will contain the content of 
the log cache. When the crash report is constructed, fill that column with 
the cache data
- profit!


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

2012-07-12 Thread Kristopher Micinski
Of course, whenever you get a new location fix, the listener will call
your onLocationUpdate function, at that point you tell your web
service (by perhaps using something like AndroidHttpClient) your new
location.

kris

On Thu, Jul 12, 2012 at 9:23 AM, Vijay Krishnan
 wrote:
> yes i know about location listener.my need is whenever my location changes i
> want to update it to my server.Is this possible by using service.
>
>
> On Thu, Jul 12, 2012 at 3:59 PM, pushpa nc  wrote:
>>
>> Use Locationlistener class to get the location info and upload the data to
>> server when location changes. Refer the below link.
>>
>>
>> http://developer.android.com/reference/android/location/LocationListener.html
>>
>>
>> On Thu, Jul 12, 2012 at 3:54 PM, Vijay Krishnan 
>> wrote:
>>>
>>> Hi all,
>>> I want to update my phone location to the server whenever
>>> location changes.How should i do this?  Is using a service the best way to
>>> do this?
>>>
>>> Thanks,
>>> vijay.k
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Flip Gesture on ListView

2012-07-12 Thread Michael Leung
Hi,
  I am building a Flip Gesture on ListView. Is it a standard control to do
that? If there is not a standard control, should I build the gesture on
listview or list item adapter? I tried some example for flip gesture on
ListView, but they can't check which item the flip applied on. Does anyone
have some ideas?
-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

[android-developers] App claims to have stopped then instantly starts afterward?

2012-07-12 Thread Cythes
Right now I am in the process of working out this little "bug" as I want to 
call it. I'm almost certain that it is a manifest issues so I will post the 
code to the manifest down below. Going on what the title says. When I load 
my app into the emulator it installs just fine, but as soon as it goes to 
start it stops but then starts right afterward? At this point in time I am 
working on trying to make the app in question run in the background. Here 
is the manifest file since I have deduced that it is an issue in here:

http://schemas.android.com/apk/res/android";
package="path.to.this"
android:versionCode="1"
android:versionName="1.0" >






























Maybe I'm calling something wrong?

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

[android-developers] Playing Sound

2012-07-12 Thread limtc
Hi,

I have a few questions related to sound playback in game.

- is using AsyncPlayer faster than MediaPlayer for playing background MP3 
music? I guess so since it should run in another thread and it is possible 
that a multiple core CPU uses another core to play the music?

- is SoundPool a good choice for playing short sample sounds (explosion 
sound, etc)? My test last year with an Android 1.6/2.1 phone is that it is 
pretty buggy and can cause some phones to crash when playing multiple 
sounds at the same time, is it more reliable nowadays? I am currently using 
MediaPlayer and wonder whether it is worth switching to this.

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] how to catch apple-touch-icon

2012-07-12 Thread Justin Anderson
Ummm yeah... I'm gonna go with this:
http://catb.org/esr/faqs/smart-questions.html


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


On Wed, Jul 11, 2012 at 8:24 PM, drunkenapple wrote:

> Dear All Developer~
>
>
> generally. Web site two icon's use~
>
>
> 
> 
>
> 'shortcut icon' useable to bookmark for android API
>
> but .
>
> 'apple-touch-icon' I'm not found into the android API
>
> I want list up 'apple-touch-icon' large image
>
> how to catch apple-touch-icon icon use android APP
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] 401 when trying to send GCM message to registered device

2012-07-12 Thread Damien Cooke

Hi all,
I am having some difficulties with GCM for android.  


Here is what I am sending:

I am using Glassfish as my appserver.

{"collapse_key":"AIzaSyADq3b8Tm-NZiImXGy8ngdsXXX","data":{"type":"CR","msg":"Hello
 
world"},"registration_ids":["APA91bE_oaTf0xHkphMVlMwmviwAn6Nefnd1R36W9wDO29T7p7yJ_W0S9x7MhfMWeL6yCfrvI3r_VdUJnmsZUUzvKeeDUWLSSZHf4YW91SU8yShBo8KOaeS1A20mQn_WEAqwzC9vQhFk8uM_tTq_B_THXXX"]}

I have used the key for browser apps as the collapse key

Has anyone got any idea why I might be getting a 401?


Regards
Damien

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread BoD

On 07/12/2012 02:45 PM, Mark Murphy wrote:

On Thu, Jul 12, 2012 at 8:37 AM, BoD  wrote:

This is a serious issue because it makes extremely valuable libraries like
ACRA inoperative.

ACRA does not need READ_LOGS. Certain ACRA features might need READ_LOGS.
I think we can all agree that one main feature of this library (and 
others) is the ability to read/send the logs.


It appears in the new source code. The protectionLevel for READ_LOGS 
is now "signature|system|development". The new pipe syntax for 
protectionLevel is also undocumented (see 
http://code.google.com/p/android/issues/detail?id=34785). 


Thank you for this.
This is extremely unfortunate.
I opened this issue:
http://code.google.com/p/android/issues/detail?id=34792

--
BoD

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


[android-developers] [android-d​evelopers] scrolling and showing > 1000 pictures on the screen as fluent as iphone does without blocking and black slots even if scroll very fast. I expect to find a jo

2012-07-12 Thread terry
hi all.
I am a android-linux developer, with much knowlege on the Linux
kernel/driver, android system, Tcp/IP.
These days,  i study the ics gallery code and optimized the 4.0
gallery. When showing > 1000 pictures on the screen, the phone is
as fluent as iphone does even if you scroll very fast. No blocking and no
black slot

I expected to work and life in Amercia.  Could anyone help me to find a job
oppo in America? thanks a lot

br

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