Re: [android-developers] Re: Help with App crackers

2012-06-18 Thread Giuseppe Porcelli
We are A&G we just try to descourage download
Il giorno 18/giu/2012 08:34, "Nobu Games"  ha
scritto:

> This is very unfortunate but did you read the first comment on that piracy
> forum? Some member called agsoftware says:
>
> When I install it ask for license
>>
>
> Google Licensing seems to work. By your description I was already fearing
> that they were able to crack that feature. Maybe you should download that
> "cracked" app and try it on different devices.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] First App on an Android - CalDAV4j

2012-06-18 Thread pushpa nc
Where are keeping your jar file? which tool you use to develop your
application?


On Mon, Jun 18, 2012 at 9:50 AM, bibble_235  wrote:

> Hi all,
>
> I am writing my first App on an android and would like some help.
>
> I wanted to use the library CalDav4j. I have compiled my code but it will
> not work.(Surprise). I have been on Synbian and C++ so it may well be my
> java is lapse
>
> I downloaded the library (jar) and I am using *
> http://caldav4j.googlecode.com/svn-history/r325/maven/org/osaf/caldav4j/0.7/caldav4j-0.7.jar
> *
>
> I had to move to apache htppClient 3.1 as it would not compile with 4
>
> I also added
>
>  android:name="android.permission.INTERNET" />
>
> To the manifect file.
>
> The only line in my Activity for this class is am instantion of a derived 
> class off HttpClient.
>
>
> I am sure it is me and I have done something stupid. I have not quite got
> to grips with the debbugger yet so I so not have a stacktrace.
>
> I just wanted to confirm I am not doing somethig wrong and that these
> libraries are supported by android.
>
> Thanks
> Iain
>
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: adb shell command from java code

2012-06-18 Thread Loka Sudharsan
Thnk u so much.

On Fri, Jun 15, 2012 at 8:09 PM, Nobu Games wrote:

> Hi, you should take a look at 
> WifiManager.getConfiguredNetworks()and
> WifiManager.getConnectionInfo()for
>  getting the assigned WLAN IP address the clean way.
>
> Other than that netcfg is just a program available on the phone. There is
> no direct connection to adb which runs on your development PC. Out of
> curiosity I tried running that command on my Samsung Galaxy S with success.
> You can try following source code:
>
> try {
>> Process process = Runtime.getRuntime().exec("netcfg");
>> InputStreamReader reader = new
>> InputStreamReader(process.getInputStream());
>> Scanner scanner = new Scanner(reader);
>>
>> while(scanner.hasNextLine()) {
>> Log.d("netcfg", scanner.nextLine());
>> }
>>
>> scanner.close();
>> } catch(IOException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
G Loka Sudharsan Reddy
Third year Undergraduate Student
Department of Electronics and Electrical Communication Engineering
Indian Institute of Technology Kharagpur

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

2012-06-18 Thread bibble_235
First, thanks for replying,

I am using eclipse to develop with, just as bad as symbian.

I assumed, probably wrongly, that the eclipse android plugin would take 
care of packaging. 

I see there is an android httpclient class and wondered if the 3.1 apache 
jar was not the right one. However reading the docs it seemed ok

Iain

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

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 1:45 AM, Live Happy  wrote:

> what are the differences between CursorAdapter and SimpleCursorAdapter ,


Come now, I'm sure you can read the documentation for each class for
yourself.

wish one  should i use in  my database depend on what ?


That question is not very clear.


> and wish one give faster result than other ?


Try both, then time them.

-
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] code compatibility with different api levels

2012-06-18 Thread TreKing
On Thu, Jun 14, 2012 at 7:12 AM, Rishabh Jain wrote:

> What should I do so that my library can support both API levels at the
> same time. I am guessing there is some kind of annotation for that


Use reflection and the Android APIs which tell you which version you're
running on to selectively enable and disable features. There's a blog post
about it - search for it.

-
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] Newbie confused about drawing

2012-06-18 Thread TreKing
On Fri, Jun 15, 2012 at 8:53 AM, Karl Garrison  wrote:

> My confusion is how I
> should get the Canvas to draw to if I am to do any drawing from other
> methods that I create.
>

Just pass it along as an argument to your other methods:

@Override
public void onDraw(Canvas canvas)
{
 super.onDraw(canvas);
 internalDraw(canvas);
 etcetera(canvas);
}

-
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] CursorAdapter and sample SimpleCursorAdapter

2012-06-18 Thread Live Happy
i know that CursurAdapter is abstract and is to be extended. and,
SimpleCursorAdapter is not abstract and is to implemented but based on
what can i choose  i just want experiences answer please

On Mon, Jun 18, 2012 at 11:41 AM, TreKing  wrote:

> On Mon, Jun 18, 2012 at 1:45 AM, Live Happy  wrote:
>
>> what are the differences between CursorAdapter and SimpleCursorAdapter ,
>
>
> Come now, I'm sure you can read the documentation for each class for
> yourself.
>
> wish one  should i use in  my database depend on what ?
>
>
> That question is not very clear.
>
>
>> and wish one give faster result than other ?
>
>
> Try both, then time them.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Using custom Content Providers

2012-06-18 Thread Per-Jarle Sæther
Hello all
Do I need to specify an uses tag in AndroidManifest if I shall use a custom
Content provider?

Example:
Provider tag in Content Provider:

 


What *uses* tag do I need to have in a client app that use this provider?

Best regards
Per-Jarle

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

[android-developers] SurfaceFlinger code flow

2012-06-18 Thread Rahul Garg
Hi all,

I was looking for the SurfaceFlinger code flow, I tried to search, but I 
haven't any good post/tutorial which can explain the flow. My main motive 
is to know how code traverse from activity to SurfaceFlinger and then how 
it goes from SurfaceFlinger to Framebuffer. Thanks in advance.

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

[android-developers] Re: ApiDemos/OS/Sensors application canvas drawings blurred when built with SDK level 15

2012-06-18 Thread Kartic
I figured out the reason for blurring of circles even after switching 
hardware acceleration off in manifest.
The reason was that "Force GPU rendering" setting in Developer options was 
enabled on my phone. This was overriding hardware acceleration settings in 
manifest

-Kartic

On Friday, June 15, 2012 10:50:35 AM UTC+5:30, Kartic wrote:
>
> Richard, did you make any change other than disabling hardware 
> acceleration in manifest to fix this issue?
> I tried doing the same but still getting the blurred circles on Nexus S 
> with 4.0.4 build.
>
> Thanks,
> kartic
>
> On Saturday, June 2, 2012 4:01:35 AM UTC+5:30, RichardC wrote:
>>
>> It's something to do with hardware acceleration, changing 
>> AndroidManifest.xml (see below) to disable it just for the Sensors Activity 
>> fixes the drawing
>>
>> >  android:hardwareAccelerated="false">
>>
>> It looks like the hardware accelerated canvas is anti-aliasing the the 
>> drawing of the 3 dials as they are drawn directly onto the Canvas. The 
>> dials are drawn based on a 1-unit by 1-unit rectangle and the canvas is 
>> scaled (before the drawing) by approx 1/3 the screen width (in portrait 
>> orientation)
>>
>>  canvas.scale(148, 148)
>>
>> on my device.
>>
>>
>>
>> On Friday, June 1, 2012 11:01:20 PM UTC+1, RichardC wrote:
>>>
>>> Can replicate what your seeing on 4.0.3.
>>>
>>> In code to draw the 3 graphs and sensors:
>>>   first the 3 line graphs are drawn onto a bitmap which is then drawn 
>>> onto the canvas
>>>   then the canvas is then scaled and the 3 dials are drawn directly onto 
>>> the canvas
>>>
>>> If I modify the code to draw the 3 dials onto the bitmap (the same as 
>>> the 3 line graphs) it all looks fine.
>>>
>>> I am continuing to look at this...
>>>   
>>>   
>>>
>>> On Friday, June 1, 2012 7:26:19 PM UTC+1, greg wrote:

 Anyone else getting blurred circles in the ApiDemos/OS/Sensors 
 application? The three circles are supposed to display the current 
 orientation but appear as blurry clouds in the ApiDemos application built 
 with SDK level 15 (OS 4.0.4). 

 I've asked the same question, with screenshots, at 
 http://stackoverflow.com/questions/10853807/sdk-level-15-apidemos-os-sensors-blurred-image-on-nexus-s-but-not-on-emulator

 Thanks in advance for checking,
 Greg

>>>

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

2012-06-18 Thread swaraj

Hi All, 

The performance is very slow when i updated android from 2.3 to 4.0.4 on 
iMX53. Cursor movement is very very slow while unlocking. How should i 
improve performance on IMX53 with android 4.0.4. Its very very slow. 

Thanks & 
Regards, 
Swaraj 

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

[android-developers] Screen share on live

2012-06-18 Thread Rocky
All,

I'm developing apps that enables sharing actual screen (display content)
between mobile handsets in real-time.
Screen sharing includes multi-media content sharing (UI, photos, video &
audio, etc.).
Thereby the master user connects to clients and share his actual display
content.

Is it possible, how can i move further is any blog, suggestion, APIs
available.

-- 
Thanks & Regards

Rakesh

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

2012-06-18 Thread Gerhard Aigner

Even easier to reproduce the leak: just enable the strict mode on line 32 
in com.example.android.apis.graphics.GLSurfaceViewActivity from the API 
Samples

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StrictMode.setVmPolicy(new 
StrictMode.VmPolicy.Builder().detectActivityLeaks().penaltyLog().build());
// Create our Preview view and set it as the content of our Activity
mGLSurfaceView = new GLSurfaceView(this);
mGLSurfaceView.setRenderer(new CubeRenderer(false));
setContentView(mGLSurfaceView);
}

Someone else has seen this leak before:
http://stackoverflow.com/questions/9051080/android-glsurfaceview-cause-leak

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

[android-developers] ListView HighLight when clicking the itemView

2012-06-18 Thread Raphael
I just wonder how to cancel the highlighting effects of the sub-item
of the ListView,when pressing mouse down on 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] Leaking Window on orientation change

2012-06-18 Thread Vance Turnewitsch
Thanks. I tried using the method and it appears that the method gets called 
after the Activity has been destroyed and during some process of recreating 
the Activity:

06-18 06:26:32.639: E/WindowManager(1767): Activity 
com.betweenthehills.TestVideoPlayerActivity has leaked window 
com.android.internal.policy.impl.PhoneWindow$DecorView@4472fd38 that was 
originally added here
06-18 06:26:32.639: E/WindowManager(1767): android.view.WindowLeaked: 
Activity com.betweenthehills.TestVideoPlayerActivity has leaked window 
com.android.internal.policy.impl.PhoneWindow$DecorView@4472fd38 that was 
originally added here
06-18 06:26:32.639: E/WindowManager(1767): at 
android.view.ViewRoot.(ViewRoot.java:247)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.view.Window$LocalWindowManager.addView(Window.java:424)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.app.Dialog.show(Dialog.java:241)
06-18 06:26:32.639: E/WindowManager(1767): at 
com.betweenthehills.TestVideoPlayerActivity$5.onClick(TestVideoPlayerActivity.java:126)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.view.View.performClick(View.java:2408)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.view.View$PerformClick.run(View.java:8816)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.os.Handler.handleCallback(Handler.java:587)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.os.Handler.dispatchMessage(Handler.java:92)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.os.Looper.loop(Looper.java:123)
06-18 06:26:32.639: E/WindowManager(1767): at 
android.app.ActivityThread.main(ActivityThread.java:4627)
06-18 06:26:32.639: E/WindowManager(1767): at 
java.lang.reflect.Method.invokeNative(Native Method)
06-18 06:26:32.639: E/WindowManager(1767): at 
java.lang.reflect.Method.invoke(Method.java:521)
06-18 06:26:32.639: E/WindowManager(1767): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
06-18 06:26:32.639: E/WindowManager(1767): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-18 06:26:32.639: E/WindowManager(1767): at 
dalvik.system.NativeStart.main(Native Method)
06-18 06:26:32.795: W/TimedEventQueue(1014): Event 1078 was not found in 
the queue, already cancelled?
06-18 06:26:32.795: D/TIOverlay(1098): overlay_destroyOverlay:IN dev 
(0x129428) and overlay (0x4f5d28)
06-18 06:26:32.818: I/TIOverlay(1098): Destroying 
overlay/fd=129/obj=004f5d28
06-18 06:26:32.818: D/TIOverlay(1098): overlay_destroyOverlay:OUT
06-18 06:26:33.801: D/TI_Video_Decoder(1014): VIDDEC_SendCommand: Received 
request from omx client to change state to 2
06-18 06:26:33.801: D/TI_Video_Decoder(1014): Handle request for state 
transition: 3 => OMX_StateIdle
06-18 06:26:33.811: D/TI_Video_Decoder(1014): VIDDEC_SendCommand: Received 
request from omx client to change state to 1
06-18 06:26:33.811: D/TI_Video_Decoder(1014): OMX_StateIdle state reached
06-18 06:26:33.826: D/TIOMX_CORE(1014): Found matching pHandle(0x1dd80) at 
index 1 with refCount 1
06-18 06:26:33.842: I/VidView..onDetached(1767): Detaching video 
view...1340015193849
06-18 06:26:33.842: I/Frame..onDetached(1767): Detaching framelayout...
06-18 06:26:33.881: I/onMeasure(1767): On Measure has been called

On Sunday, June 17, 2012 11:32:49 PM UTC-4, TreKing wrote:
>
> On Sun, Jun 17, 2012 at 9:05 PM, Vance Turnewitsch wrote:
>
>> so should override that method for the Dialog or the view in my dialog?
>
>
> I think it would be the View that "owns" the dialog. In this case maybe 
> your FrameLayout? Or the "resizeVidView"?
>
>
> -
> 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] Using custom Content Providers

2012-06-18 Thread Mark Murphy
You do not need to have a  element to use that
ContentProvider. I do not know what other "uses tag" you might be
concerned with.

On Mon, Jun 18, 2012 at 5:09 AM, Per-Jarle Sæther
 wrote:
> Hello all
> Do I need to specify an uses tag in AndroidManifest if I shall use a custom
> Content provider?
>
> Example:
> Provider tag in Content Provider:
>
>  
>  android:authorities="net.learn2develop.provider.Books" />
>
>
> What uses tag do I need to have in a client app that use this provider?
>
> Best regards
> Per-Jarle
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

_The Busy Coder's Guide to Android Development_ Version 3.7 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] Question on launching activity from notification

2012-06-18 Thread Mark Murphy
On Thu, Jun 14, 2012 at 12:04 PM, Yezersky  wrote:
> what's happened? follow Android SDK, singleTask is same as
> FLAG_ACTIVITY_CLEAR_TOP, but I get different result here?

IMHO, singleTask is closer to FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP.

-- 
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.7 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] Question about AccountManager and OAuth authentication with Google App Engine

2012-06-18 Thread Francois Masurel
Hi Mukesh,

Have you found a solution on this?

I'm desperately trying to implement it on my Android app without success.

Thanx for your help.

Francois
Bordeaux, France

On Monday, January 9, 2012 8:36:08 AM UTC+1, Mukesh Srivastav wrote:
>
> Hi Rishi,
>
> I had tried the above concept but i couldn't succeeded. I then held up 
> using OAuth 2.0 authentication from the application level. 
>
> I am waiting if some one answer this query.
>
> -- 
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
> On Sat, Jan 7, 2012 at 2:27 AM, Rishi Arora wrote:
>
>> I have an Android App that currently authenticates with a Google App 
>> Engine App using an AccountManager instance.  I call 
>> AccountManager.getAuthToken() with token type = "ah", as described in Nick 
>> Johnson's blog (
>> http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app),
>>  
>> and this works perfectly fine.  The end-user does not have to enter any 
>> credentials in my android app.  The user has a configured Google account in 
>> Android system settings, and through the Account Manager I am able to 
>> authenticate with Google App Engine.
>>
>> I'd like to change this a bit, to use OAuth instead of Google Accounts 
>> API, in Google App Engine configuration.  And with this change, I'm 
>> wondering if there's a way to still not have the user provide credentials 
>> at all, and use the Google account configured in Android system settings to 
>> retrieve an OAuth access token.  Anybody know how to do this?  More 
>> specifically, where do I tell AccountManager what the OAuth consumer key 
>> and consumer secret is?  I have heard that AccountManager supports OAuth 
>> 2.0 3-legged authentication.  This is what I'd like to implement, along 
>> with the requirement that the user should not be asked to provide Google 
>> account credentials, as long as there a Google account configured in 
>> Android system settings.
>>
>> Many thanks in advance.
>> Rishi.
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Mark Murphy
On Sun, Jun 17, 2012 at 1:34 PM, Jason Meyer  wrote:
> Where are the permissions stored which were granted to apps installed
> in /system/app?

Nothing is granted to apps installed on /system/app automatically
AFAIK. However, apps installed there can request "signature" or
"signatureOrSystem" permissions and actually get them. You can find
those by sifting through:

https://github.com/android/platform_frameworks_base/blob/master/core/res/AndroidManifest.xml

-- 
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.7 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] Ho clean-up filesystem when remove an application

2012-06-18 Thread Mark Murphy
On Thu, Jun 14, 2012 at 4:18 PM, elio francesconi
 wrote:
> I'm wondering how cleaning up configuration and data stored into the
> filesystem, when a user removes an application.

Everything on internal storage, and everything in
getExternalFilesDir() and getExternalCacheDir(), is removed
automatically when your app is uninstalled.

> The scenario I'ld like to manage is:
> * user install the application
> * the application stores into filesystem (sdcard) data and config files
> * the user uninstall the application
>
> All config/data files remain on the filesystem.
>
> Is there a way to remove them programmatically when the app is unistalled?

Store them in internal storage, in getExternalFilesDir(), or in
getExternalCacheDir().

-- 
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.7 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] Recover Certificate from APK

2012-06-18 Thread Saurav
Thank you so much Dianne and Others for your quick and strong response.

I don't know whether any of you did not get the point that "I know it was
my mistake, to lose the keystore file". No doubt on that :)

Anyways, as you all said, I have put my new keystore in my git repo. "Fall
back"

Regards,
Saurav Mukherjee.


On Thu, Jun 14, 2012 at 8:11 PM, Raphael P.F.
wrote:

> Actually, you should have a fall back plan. It's easy to backup your key.
>
>
> On Thu, Jun 14, 2012 at 11:35 AM, Saurav wrote:
>
>> Thanks Mark.
>> You have always helped me out, now and in the past!
>> I know that the encryption is irreversible, wanted to know if there is a
>> workaround for upgrading!
>>
>> Could someone convey this to Google, that, loosing a keystore is
>> possible, highly STUPID, but possible.
>> They should have a fall back plan! To upgrade the application, with
>> another keystore or some other secure procedure. Just a thought!
>>
>> I am left at the mercy of my downloaders, to shift to the new
>> application, as I need to put my upgraded application as a new application.
>>
>>
>>
>>
>> Regards,
>> Saurav Mukherjee.
>>
>>
>>
>> On Wed, Jun 13, 2012 at 10:33 PM, Raghav Sood wrote:
>>
>>> Digital signatures are based upon public-key cryptography. You cannot
 recover a private key given a public key -- that's the whole point of
 public-key crypto. Such algorithms are based on one-way functions:
 things that are easy to do but hard to reverse.

>>>
>>> This is enough. I know what public key encryption is and how it works, I
>>> just didn't know that it was used in this case. This clarifies my question.
>>>
>>> Thanks
>>>
>>> --
>>> Raghav Sood
>>> Please do not email private questions to me as I do not have time to
>>> answer them. Instead, post them to public forums where others and I can
>>> answer and benefit from them.
>>> http://www.appaholics.in/ - Founder
>>> http://www.apress.com/9781430239451 - Author
>>> +91 81 303 77248
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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
>>
>
>
>
> --
> Raphael
> http://blog.rmontanaro.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
>

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

2012-06-18 Thread Tony Houghton
On Sat, 9 Jun 2012 02:13:34 -0700 (PDT)
EDan  wrote:

> I have a problem with images in android games. I bought a book 1 month
> ago "Beginning Android 4 Games Development" and I already write the
> framework for develop game that the book explain, so the problem is
> not in the code. The problem is that I don't know how built with
> photoshop a picture that goes very well on android (I know that I have
> to use .bng but I don't know the other settings like RGB565 or other).
> So I need someone that explain me wich format I have to use, or if I
> have to use another software for this purpose.

I have a book called "Beginning Android Games" which says that nearly
all Android device screens are 16-bit, but that could have changed since
more tablets etc came on the market.

For maximum simplicity, good performance across as many devices as
possible, and space saving, you should load them as RGB565 or ARGB
depending on whether you need alpha (transparency), and save them from
Photoshop in that format. But to make your game look better on high-end
devices you could save the files in 24-bit/32-bit depth and choose
whether to load them into Android in that format or in a 16-bit format
depending on what the device supports at run-time.

ISTR reading that devices might not truly report whether their screen is
really 32-bit (or at least more than 16), so it might be better to have
a user option than try to work it out from API functions.

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

2012-06-18 Thread Mark Murphy
On Mon, Jun 18, 2012 at 6:41 AM, Saurav  wrote:
> Anyways, as you all said, I have put my new keystore in my git repo.

Um, I really hope that's a private repo. "Backed up" does not mean
"published for the world to see".

-- 
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.7 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] Recover Certificate from APK

2012-06-18 Thread Saurav
Ha ha!
It is not public, Mark.


Regards,
Saurav Mukherjee.


On Mon, Jun 18, 2012 at 4:14 PM, Mark Murphy wrote:

> see

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

[android-developers] i need control users my app ??

2012-06-18 Thread ala hammad
hello all,
how i can control users my app , to make him test it just test.
without upload to google play ...
and can't give user .apk fear upload to google play .

any idea to do that ??

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

Re: [android-developers] Using custom Content Providers

2012-06-18 Thread Per-Jarle Sæther
Hello, and thank you for replying

I was looking at a tutorial that used Contacts which is a ContentProvider

That app had the following tag in AndroidManifest:

 
 



I thought maybe I would need something like that to access a custom
ContentProvider

Best regards
Per-Jarle

On Mon, Jun 18, 2012 at 12:29 PM, Mark Murphy wrote:

> You do not need to have a  element to use that
> ContentProvider. I do not know what other "uses tag" you might be
> concerned with.
>
> On Mon, Jun 18, 2012 at 5:09 AM, Per-Jarle Sæther
>  wrote:
> > Hello all
> > Do I need to specify an uses tag in AndroidManifest if I shall use a
> custom
> > Content provider?
> >
> > Example:
> > Provider tag in Content Provider:
> >
> >   >
> >  android:authorities="net.learn2develop.provider.Books" />
> >
> >
> > What uses tag do I need to have in a client app that use this provider?
> >
> > Best regards
> > Per-Jarle
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 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

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

[android-developers] Re: i need control users my app ??

2012-06-18 Thread lbendlin
your question is difficult to understand.  If you want to have users test 
your program before you publish it, send them a debug APK (for example as 
an email attachment).  If you fear that your APK would be posted to the 
Play store by malicious testers then you may want to rethink your 
development environment.

On Monday, June 18, 2012 8:02:32 AM UTC-4, ala hammad wrote:
>
> hello all,
> how i can control users my app , to make him test it just test.
> without upload to google play ...
> and can't give user .apk fear upload to google play .
>
> any idea to do that ??
>

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

[android-developers] Re: i need control users my app ??

2012-06-18 Thread ala hammad
ok i try to simple my question , i am developer need to test my app ..
but i fear tester steal my app and upload to google play ..
so need a way to make my app temporarily for users ..

any idea to do that ..

On Monday, 18 June 2012 15:02:32 UTC+3, ala hammad wrote:
>
> hello all,
> how i can control users my app , to make him test it just test.
> without upload to google play ...
> and can't give user .apk fear upload to google play .
>
> any idea to do that ??
>

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

[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Jason Meyer
Thanks for your quick reply, Mark.

Nonetheless, I am still wondering: Does that mean that an app stored
as APK in /system/app/ can use any permission which is <=
"signatureOrSystem"? Or can only permissions == "signatureOrSystem" be
made use of? (the latter is definitely not the case, see below)

As I already mentioned, every app in /data/system/packages.xml which
was stored in /system/app/ had NO -Block. Not a single one. And
I highly doubt that preinstalled apps such as the Phone App only
utilize signatureOrSystem-Permissions. For example, the
android.permission.CALL_PHONE has a protectionLevel of "dangerous" and
is used by the preinstalled Phone app. However, this permission is not
denoted in /data/system/packages.xml for the Phone app.

Hence, I suspect that any app stored in /system/app/ is granted any
permission equal to or below "signatureOrSystem" level.

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

2012-06-18 Thread r4f4
Hi,

I developed an App and i executed some tests. This tests consists in
sending data from one background service to another background
service.
All data was received when the transmission rate was low. However when
i increased the transmission rate, some data (typically 2- 3 %) was
not received by the destination service.

All intents were broadcasted and the services were running locally.

Can anyone provide me with information (link or explanation), how the
OS treats the Intents and the whole mechanism works, in order to find
the reason why data was not received with high transmission rate ?

Best 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: Eclipse Image Bug

2012-06-18 Thread Tor Norbye
This sounds like this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421

Note however that we don't know how to reproduce this bug. If anyone has
reproducible steps, please describe in as much detail as possible and
attach to that issue.

-- Tor

On Sun, Jun 17, 2012 at 11:59 AM, G. Blake Meike wrote:

> While I've never seen this happen in Indigo, it happens *constantly* in
> Juno.  I know, I know: not supported.  It is, however, certainly a way to
> drive a similar bug, consistently.
>
> G. Blake Meike
> Marakana
>
> The second edition of Programming Android is now on-line:
> http://shop.oreilly.com/product/0636920023005.do
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Need Help Problem about socket communication between android smartphone and PC through WIFI

2012-06-18 Thread Robert Greenwalt
If you take a bugreport the route table should be listed and we would know
more.

On Fri, Jun 15, 2012 at 4:56 AM, neo  wrote:

> Hello everyone,
>
> I have developed an application about socket communication between
> smartphone (as Client) and pc(as Server). und tested this application on
> Android Emulator and PC.It runs successfullly.But When I try to test the
> same application on the smartphone.It dosen't work.The error is "
> java.net.SocketException:No route to host".Could you tell me,why this error
> exist and how should I look through the reason of the error and amend it?
>
> Thanks a lot.
>
> neo
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Every few hours Eclipse + ADT runs out of resources...

2012-06-18 Thread Tor Norbye
Can you try using ADT 20 Preview 3?   It contains various leak fixes, such
as http://code.google.com/p/android/issues/detail?id=26774 .

-- Tor

On Thu, Jun 14, 2012 at 11:35 AM, Nobu Games wrote:

> Hi
>
> I know this is an old post but I'm running across the very same problem
> with Eclipse every single day since I installed the latest SDK / plugin
> version. After about 3 to 4 hours of coding and debugging (on an actual
> device) the run process (for installing and starting the app) gets slower
> and slower up to a point where the progress indicator in the status bar
> does not move at all and Eclipse gets unresponsive.
>
> After waiting for a few minutes I may get an OutOfMemoryException. But
> usually I have to kill the Eclipse process which usually damages workspace
> settings and sometimes even a few opened files.
>
> I am using:
>
> Eclipse Version: 3.7.2
> Build id: M20120208-0800
>
> OS: OpenSUSE 12.1
>
> Java VM: java-1.7.0-sun (for running Eclipse itself)
>
> ADT Plugin:18.0.0.v201203301601-306762
>
> Android SDK Tools: Rev 19
> Android SDK Platform Tools: Rev 11
>
> Unfortunately I cannot provide you with relevant Eclipse error log
> excerpts because the log file got trashed after recovering from the last
> crash.
>
> I'm not sure how helpful that is. But it takes me by surprise that I
> couldn't find any more recent complaints / posts about this issue, so maybe
> it is just me and my setup. However, I have only encountered these problems
> in relation with Android development and everything used to work without a
> problem so far.
>
>
> Cheers,
>
> Thomas
>
> On Monday, September 13, 2010 2:15:37 AM UTC-5, Xavier Ducrohet wrote:
>>
>> in ADT 0.9.8, we've fixed a (big) memory leak happening in the layout
>> editor. I suggest you update (0.9.8 was released on Wednesday).
>>
>> Let me know if this still happens.
>>
>> Xav
>>
>> On Sun, Sep 12, 2010 at 2:38 PM, mmo  wrote:
>> > When I am developing for Android and repeatedly running and/or
>> > debugging an Android app in the emulator then about every two hours or
>> > so I get an Out-of-memory exception, occasionally also an out-of -
>> > resources- or out-of-GWT-handles exception. At that point one can only
>> > stop and restart eclipse. Apparently the ADK must be doing something
>> > wrong, because I have been developing with Eclipse now for 5+ years
>> > and I normally never see this. ADT is a really the exception here.
>> > Is there any setting or patch that helps top avoid this? I have
>> > already given it more heap space (750M) to stretch the time between
>> > these hickups a bit, but that approach isn't really sustainable.
>> >
>> > This is using Eclipse 3.5 (Galileo) and the Android SDK r06 running a
>> > FroYo AVD.
>> >
>> > Michael
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@**
>> googlegroups.com 
>> > To unsubscribe from this group, send email to
>> > android-developers+**unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/**group/android-developers?hl=en
>> >
>>
>> --
>> Xavier Ducrohet
>> Android SDK Tech Lead
>> Google Inc.
>>
>> Please do not send me questions directly. Thanks!
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Every few hours Eclipse + ADT runs out of resources...

2012-06-18 Thread Tor Norbye
By the way, ADT 20 Preview 3 is here:
http://tools.android.com/download/adt-20-preview . We'll hopefully have a
final build in the next few weeks.

-- Tor

On Mon, Jun 18, 2012 at 7:34 AM, Tor Norbye  wrote:

> Can you try using ADT 20 Preview 3?   It contains various leak fixes, such
> as http://code.google.com/p/android/issues/detail?id=26774 .
>
> -- Tor
>
>
> On Thu, Jun 14, 2012 at 11:35 AM, Nobu Games wrote:
>
>> Hi
>>
>> I know this is an old post but I'm running across the very same problem
>> with Eclipse every single day since I installed the latest SDK / plugin
>> version. After about 3 to 4 hours of coding and debugging (on an actual
>> device) the run process (for installing and starting the app) gets slower
>> and slower up to a point where the progress indicator in the status bar
>> does not move at all and Eclipse gets unresponsive.
>>
>> After waiting for a few minutes I may get an OutOfMemoryException. But
>> usually I have to kill the Eclipse process which usually damages workspace
>> settings and sometimes even a few opened files.
>>
>> I am using:
>>
>> Eclipse Version: 3.7.2
>> Build id: M20120208-0800
>>
>> OS: OpenSUSE 12.1
>>
>> Java VM: java-1.7.0-sun (for running Eclipse itself)
>>
>> ADT Plugin:18.0.0.v201203301601-306762
>>
>> Android SDK Tools: Rev 19
>> Android SDK Platform Tools: Rev 11
>>
>> Unfortunately I cannot provide you with relevant Eclipse error log
>> excerpts because the log file got trashed after recovering from the last
>> crash.
>>
>> I'm not sure how helpful that is. But it takes me by surprise that I
>> couldn't find any more recent complaints / posts about this issue, so maybe
>> it is just me and my setup. However, I have only encountered these problems
>> in relation with Android development and everything used to work without a
>> problem so far.
>>
>>
>> Cheers,
>>
>> Thomas
>>
>> On Monday, September 13, 2010 2:15:37 AM UTC-5, Xavier Ducrohet wrote:
>>>
>>> in ADT 0.9.8, we've fixed a (big) memory leak happening in the layout
>>> editor. I suggest you update (0.9.8 was released on Wednesday).
>>>
>>> Let me know if this still happens.
>>>
>>> Xav
>>>
>>> On Sun, Sep 12, 2010 at 2:38 PM, mmo  wrote:
>>> > When I am developing for Android and repeatedly running and/or
>>> > debugging an Android app in the emulator then about every two hours or
>>> > so I get an Out-of-memory exception, occasionally also an out-of -
>>> > resources- or out-of-GWT-handles exception. At that point one can only
>>> > stop and restart eclipse. Apparently the ADK must be doing something
>>> > wrong, because I have been developing with Eclipse now for 5+ years
>>> > and I normally never see this. ADT is a really the exception here.
>>> > Is there any setting or patch that helps top avoid this? I have
>>> > already given it more heap space (750M) to stretch the time between
>>> > these hickups a bit, but that approach isn't really sustainable.
>>> >
>>> > This is using Eclipse 3.5 (Galileo) and the Android SDK r06 running a
>>> > FroYo AVD.
>>> >
>>> > Michael
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> > To unsubscribe from this group, send email to
>>> > android-developers+**unsubscr...@googlegroups.com
>>> > For more options, visit this group at
>>> > http://groups.google.com/**group/android-developers?hl=en
>>> >
>>>
>>> --
>>> Xavier Ducrohet
>>> Android SDK Tech Lead
>>> Google Inc.
>>>
>>> Please do not send me questions directly. Thanks!
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Re: [android-developers] ListView HighLight when clicking the itemView

2012-06-18 Thread Justin Anderson
If I understand your question correctly, just override the listview's
selector...  You can do this with the the android:listSelector property.

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


On Mon, Jun 18, 2012 at 4:24 AM, Raphael  wrote:

> I just wonder how to cancel the highlighting effects of the sub-item
> of the ListView,when pressing mouse down on it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Need Help Problem about socket communication between android smartphone and PC through WIFI

2012-06-18 Thread Chris Stratton
This suggests that either you are using an emulator-only alias
address, or are trying to contact a pc on a private network behind
firewall/nat from the device's mobile network rather than having the
device active on wifi at the time of the attempt..  Try something with
prebuilt software such as a web server on the pc and the device's
default browser.

On Jun 15, 7:56 am, neo  wrote:
> Hello everyone,
>
> I have developed an application about socket communication between
> smartphone (as Client) and pc(as Server). und tested this application on
> Android Emulator and PC.It runs successfullly.But When I try to test the
> same application on the smartphone.It dosen't work.The error is "
> java.net.SocketException:No route to host".Could you tell me,why this error
> exist and how should I look through the reason of the error and amend it?
>
> Thanks a lot.
>
> neo

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Mark Murphy
On Mon, Jun 18, 2012 at 9:48 AM, Jason Meyer  wrote:
> Nonetheless, I am still wondering: Does that mean that an app stored
> as APK in /system/app/ can use any permission which is <=
> "signatureOrSystem"?

Well, sure, if they request it, just like any other SDK app.

> As I already mentioned, every app in /data/system/packages.xml which
> was stored in /system/app/ had NO -Block. Not a single one. And
> I highly doubt that preinstalled apps such as the Phone App only
> utilize signatureOrSystem-Permissions. For example, the
> android.permission.CALL_PHONE has a protectionLevel of "dangerous" and
> is used by the preinstalled Phone app. However, this permission is not
> denoted in /data/system/packages.xml for the Phone app.

I have no idea what the  block is. That sounds like a firmware
detail, which is out of scope for this list.

The Phone app requests CALL_PHONE like any other SDK application would:

https://github.com/android/platform_packages_apps_phone/blob/master/AndroidManifest.xml

> Hence, I suspect that any app stored in /system/app/ is granted any
> permission equal to or below "signatureOrSystem" level.

Only if they ask for them, like any other SDK application.

-- 
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.7 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] Using custom Content Providers

2012-06-18 Thread Mark Murphy
If the ContentProvider has an android:permission,
android:readPermission, or android:writePermission attribute in its
 element in the manifest, then the consumer needs to have
the corresponding  element.

On Mon, Jun 18, 2012 at 9:02 AM, Per-Jarle Sæther
 wrote:
> Hello, and thank you for replying
>
> I was looking at a tutorial that used Contacts which is a ContentProvider
>
> That app had the following tag in AndroidManifest:
>
>  android:name="android.permission.READ_CONTACTS">
>
>  
>
>
>
> I thought maybe I would need something like that to access a custom
> ContentProvider
>
> Best regards
> Per-Jarle
>
>
> On Mon, Jun 18, 2012 at 12:29 PM, Mark Murphy 
> wrote:
>>
>> You do not need to have a  element to use that
>> ContentProvider. I do not know what other "uses tag" you might be
>> concerned with.
>>
>> On Mon, Jun 18, 2012 at 5:09 AM, Per-Jarle Sæther
>>  wrote:
>> > Hello all
>> > Do I need to specify an uses tag in AndroidManifest if I shall use a
>> > custom
>> > Content provider?
>> >
>> > Example:
>> > Provider tag in Content Provider:
>> >
>> >  > >
>> >          android:authorities="net.learn2develop.provider.Books" />
>> >
>> >
>> > What uses tag do I need to have in a client app that use this provider?
>> >
>> > Best regards
>> > Per-Jarle
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.7 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
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

_The Busy Coder's Guide to Android Development_ Version 3.7 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] Recover Certificate from APK

2012-06-18 Thread Mark Murphy
On Mon, Jun 18, 2012 at 7:31 AM, Saurav  wrote:
> Ha ha!
> It is not public, Mark.

That's good. I'm willing to bet that there's a few dozen projects
floating around, though, who *did* upload their keystore into a public
git repo. That's bad -- they are one Google account hack away from
having their apps replaced by malware-ridden ones on the Play Store.

-- 
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.7 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] Trying to use the ListView

2012-06-18 Thread Felipe Monteiro de Carvalho
Hello,

I am trying to create a ListView where each item has a Title (bigger text) 
and a Description (smaller text under the other one), and I need it to be 
100% pure code, without any kind of XML, but I am having a lot of 
difficulty as ListView seams to be an absurdely hard to use class.

Ok, so, I read some tutorials and here is the code that I have so far: 
http://pastebin.com/ifHEb7Mk

But it fails to compile: http://pastebin.com/ZYhaNsaQ

Any ideas where am I getting it wrong? I am 100% lost here at why it 
refuses to accept my list =(

thanks for any help,

Felipe Monteiro de Carvalho


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Chris Stratton
On Jun 17, 1:34 pm, Jason Meyer  wrote:
> after doing a bit of research I've gotten very curious:
> Where are the permissions stored which were granted to apps installed
> in /system/app?
>
> I checked out my phone's packages.xml file (located in /data/system/
> packages.xml). "User apps" stored in /data/app/ have , but none
> of the APK files stored in /system/app has a  block.

I haven't checked exhaustively, but it would appear that they are
using the sharedUserID mechanism (even if only one app package is
doing the sharing).

The pemissions for shared user ID's are listed in their own sections,
probably found towards the end of packages.xml

Non-system apps which use a sharedUserID seem to also get their
permissions relocated to the shared UserID section of packages.xml
with none listed under the package itself - which is logical, since
the permissions then go with the userid rather than the individual app
package.

Permissions defined by system apps (for use by other apps) seem to be
in individual files under /etc/permissions

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

2012-06-18 Thread Nobu Games
I understand that, and since you are A&G you should have no problem with 
"pirating" your own software by downloading that cracked copy from that 
website. What I was trying to tell you is testing that cracked version of 
your app on different devices. I assume that the copy protection is still 
functioning because of that user's comment on that piracy forum. And if 
your cracked app is still asking for a valid license then you have no need 
to worry about that cracked version of your app anymore.


On Monday, June 18, 2012 2:13:00 AM UTC-5, Giuseppe wrote:
>
> We are A&G we just try to descourage download
> Il giorno 18/giu/2012 08:34, "Nobu Games"  ha 
> scritto:
>
>> This is very unfortunate but did you read the first comment on that 
>> piracy forum? Some member called agsoftware says:
>>
>> When I install it ask for license
>>>
>>
>> Google Licensing seems to work. By your description I was already fearing 
>> that they were able to crack that feature. Maybe you should download that 
>> "cracked" app and try it on different devices.
>>  
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>

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

Re: [android-developers] Re: Help with App crackers

2012-06-18 Thread Giuseppe
Thank you !

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

[android-developers] RDP library for Android

2012-06-18 Thread Akki
I am trying to develop an android version of Remote Desktop Sharing (Remote 
PhoneTop Sharing) to share some files or applications in real-time. I 
decided to use *RDP(Remote Desktop Protocol) *for android. I would like to 
know if u know any RDP libraries for *ANDROID *and if you can suggest any 
open source  *RDP server *for testing purposes.

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

2012-06-18 Thread lbendlin
You don't really want to use libraries for that where you have no control 
over the speed, compression etc.  Better roll your own implementation 
according to the specs
http://msdn.microsoft.com/en-us/library/cc240445%28v=prot.10%29.aspx

On Monday, June 18, 2012 11:51:18 AM UTC-4, Akki wrote:
>
> I am trying to develop an android version of Remote Desktop Sharing 
> (Remote PhoneTop Sharing) to share some files or applications in real-time. I 
> decided to use *RDP(Remote Desktop Protocol) *for android. I would like 
> to know if u know any RDP libraries for *ANDROID *and if you can suggest 
> any open source  *RDP server *for testing purposes.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Jason Meyer
> > Nonetheless, I am still wondering: Does that mean that an app stored
> > as APK in /system/app/ can use any permission which is <=
> > "signatureOrSystem"?
>
> Well, sure, if they request it, just like any other SDK app.
I am not quite sure what you mean by "request it". As far as I know,
there is no "API request call" or method to grant a certain
permission.
If by request you mean the requesting done on installation: nope, this
does not apply, as apps in /system/app/ are usually preinstalled.
Hence, no market app requesting permissions to be granted by the user.


> I have no idea what the  block is. That sounds like a firmware
> detail, which is out of scope for this list.
Nope, it's not a firmware detail. Every app which is installed via the
Market app (e.g., from the Google Play Store) is processed in the
three following steps:
1) Download of the APK file
2) Placing of APK file in /data/app/
3) Insertion of the app's permissions in /data/system/packages.xml
inside a -block

The -block in packages.xml specifies which permissions were
granted to an app installed from an app market.

However, no -blocks exist for apps stored in /system/app/,
which is exactly what I'm curious about ;)


> Only if they ask for them, like any other SDK application.
What exactly do you mean by "asking"? AFAIK API calls under protection
by certain permissions are controlled automatically and implicitly for
"clearance". There is not explicit/expressed request. At least I
haven't carried out one in any of my apps programmed thus far, and it
worked.
Or do you mean by asking the Manifest file? It isn't checked on every
app's start up, to my knowledge. That's what the packages.xml file is
for.


> I haven't checked exhaustively, but it would appear that they are
> using the sharedUserID mechanism (even if only one app package is
> doing the sharing).
I'm going to check into this and report back, thanks.

However, every system app sharing the same user ID and thus getting
extensive permissions seems a bit... risky.

> Permissions defined by system apps (for use by other apps) seem to be
> in individual files under /etc/permissions
Going to check that out too.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Mark Murphy
On Mon, Jun 18, 2012 at 12:35 PM, Jason Meyer  wrote:
>> Well, sure, if they request it, just like any other SDK app.
> I am not quite sure what you mean by "request it". As far as I know,
> there is no "API request call" or method to grant a certain
> permission.

By  in the manifest, just like any other SDK app.

>> I have no idea what the  block is. That sounds like a firmware
>> detail, which is out of scope for this list.
> Nope, it's not a firmware detail. Every app which is installed via the
> Market app (e.g., from the Google Play Store) is processed in the
> three following steps:
> 1) Download of the APK file
> 2) Placing of APK file in /data/app/
> 3) Insertion of the app's permissions in /data/system/packages.xml
> inside a -block

Steps 2 and 3 are firmware details, in my use of the term.

>> Only if they ask for them, like any other SDK application.
> What exactly do you mean by "asking"?

By  in the manifest, just like any other SDK app.

-- 
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.7 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] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Mark Murphy
Also, please remember that this list is for the Android SDK. Questions
regarding the " block" and kin belong elsewhere -- visit
http://source.android.com, click on the Community tab, and you will
see other Google Groups of greater relevance to discussion of what is
happening in the firmware.

On Mon, Jun 18, 2012 at 12:44 PM, Mark Murphy  wrote:
> On Mon, Jun 18, 2012 at 12:35 PM, Jason Meyer  wrote:
>>> Well, sure, if they request it, just like any other SDK app.
>> I am not quite sure what you mean by "request it". As far as I know,
>> there is no "API request call" or method to grant a certain
>> permission.
>
> By  in the manifest, just like any other SDK app.
>
>>> I have no idea what the  block is. That sounds like a firmware
>>> detail, which is out of scope for this list.
>> Nope, it's not a firmware detail. Every app which is installed via the
>> Market app (e.g., from the Google Play Store) is processed in the
>> three following steps:
>> 1) Download of the APK file
>> 2) Placing of APK file in /data/app/
>> 3) Insertion of the app's permissions in /data/system/packages.xml
>> inside a -block
>
> Steps 2 and 3 are firmware details, in my use of the term.
>
>>> Only if they ask for them, like any other SDK application.
>> What exactly do you mean by "asking"?
>
> By  in the manifest, just like any other SDK app.
>
> --
> 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.7 Available!



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

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

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


[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)

2012-06-18 Thread Chris Stratton
On Jun 18, 12:35 pm, Jason Meyer  wrote:
> > Well, sure, if they request it, just like any other SDK app.
>
> I am not quite sure what you mean by "request it".

The uses-permission is in their AndroidManifest.xml just as it would
be for a non-system app.
See for example:
https://github.com/android/platform_packages_apps_browser/blob/master/AndroidManifest.xml

> If by request you mean the requesting done on installation: nope, this
> does not apply, as apps in /system/app/ are usually preinstalled.
> Hence, no market app requesting permissions to be granted by the user.

They may be pre-installed, but they are still processed by something
at build and/or runtime.

> > I have no idea what the  block is. That sounds like a firmware
> > detail, which is out of scope for this list.
>
> Nope, it's not a firmware detail.

>From Mark's perspective it is an implementation detail of the android
system (what would be the 'firmware' on a simpler device, though
that's term is by custom used for simpler components such as a radio
driver on something with a full operating system like android) and
thus off topic for the androd-developers group, which, though not
obvious from the name, is defined to be for SDK-level development
only.

> Or do you mean by asking the Manifest file? It isn't checked on every
> app's start up, to my knowledge. That's what the packages.xml file is
> for.

The PackageManager creates the packages.xml file by processing the
information found in the app manifests.

> > I haven't checked exhaustively, but it would appear that they are
> > using the sharedUserID mechanism (even if only one app package is
> > doing the sharing).
>
> However, every system app sharing the same user ID and thus getting
> extensive permissions seems a bit... risky.

They don't.  There are a number of distinct sharedUserIDs involved,
some having only one app package.

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


[android-developers] Re: i need control users my app ??

2012-06-18 Thread lbendlin
Alright, so my second statement applies. If you don't want anyone to steal 
your ideas, stop having ideas.

(or to formulate it differently - focus on making your app better, and not 
on fighting off stealing.  For example - Move some of your application 
logic to your server, so that a stolen app becomes less valuable)

On Monday, June 18, 2012 9:44:59 AM UTC-4, ala hammad wrote:
>
> ok i try to simple my question , i am developer need to test my app ..
> but i fear tester steal my app and upload to google play ..
> so need a way to make my app temporarily for users ..
>
> any idea to do that ..
>
> On Monday, 18 June 2012 15:02:32 UTC+3, ala hammad wrote:
>>
>> hello all,
>> how i can control users my app , to make him test it just test.
>> without upload to google play ...
>> and can't give user .apk fear upload to google play .
>>
>> any idea to do that ??
>>
>

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

Re: [android-developers] Trying to use the ListView

2012-06-18 Thread Justin Anderson
>
> I need it to be 100% pure code, without any kind of XML
>

Just out of curiosity, why?  From my experience it is much much easier to
use XML layouts unless there is a really really good reason not to...

As far as your error, I did a simple Google search and came up with this:
http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/CloneNotSupportedException.html

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


On Mon, Jun 18, 2012 at 9:07 AM, Felipe Monteiro de Carvalho <
felipemonteiro.carva...@gmail.com> wrote:

> Hello,
>
> I am trying to create a ListView where each item has a Title (bigger text)
> and a Description (smaller text under the other one), and I need it to be
> 100% pure code, without any kind of XML, but I am having a lot of
> difficulty as ListView seams to be an absurdely hard to use class.
>
> Ok, so, I read some tutorials and here is the code that I have so far:
> http://pastebin.com/ifHEb7Mk
>
> But it fails to compile: http://pastebin.com/ZYhaNsaQ
>
> Any ideas where am I getting it wrong? I am 100% lost here at why it
> refuses to accept my list =(
>
> thanks for any help,
>
> Felipe Monteiro de Carvalho
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: UTF-8 encoding and decoding

2012-06-18 Thread Paul
On the PHP side use mb_convert_encoding($text, "UTF-8") for anything you 
are sending to the client. You can also use that function to convert text 
entered from a web form (or anywhere else) before storing it in your PHP 
database.

On Thursday, June 14, 2012 2:42:11 PM UTC-4, Fran wrote:
>
> Hi, 
>
> I am implementing an standalone client/server protocol to make one of my 
> games online capable. One of the problems I have found is that some 
> strings passwed between client and server may have characters that must 
> be encoded on UTF-8 (like spanish ñ for example). 
>
> The first thing I though was using hexadecimal notation for each char, 
> so an string like ESPAÑA will be enconded and sent as: 
>
> 004500530050004100D10041 
>
> But I rather like to avoid this, since it generates an unnecessary 
> network load for just one char, and I expect to have hundreds of 
> concurrent connections, so it is important to loose all the fat I can... 
>
> I have found this altenative notation may be a good alternative: 
>
> ESPAU+00D1A 
>
> But I did not found where it is documented, also I do not know if 
> Android has native functions to handle this, that may be an interesting 
> advantage for prefering one notation over another. 
>
> Also this one, claimed to be "JavaScript escapes" looks interesting, 
> with the same load than the previous one: 
>
> ESPA\u00D1A 
>
> I am using this online tool for my testings: 
>
> http://www.rishida.net/tools/conversion/ 
>
> Well, bearing in mind that the client will be written in Android, and 
> the server in PHP, what you think should be the best option for encoding 
> UTF-8 chars during transmission? 
>
> 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: Help with App crackers

2012-06-18 Thread tana wiriya


 Date: Mon, 18 Jun 2012 08:50:18 -0700
From: porcelli.giuse...@gmail.com
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Re: Help with App crackers

Thank you !





-- 

You received this message because you are subscribed to the Google

Groups "Android Developers" group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, send email to

android-developers+unsubscr...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/android-developers?hl=en 
  

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

[android-developers] Creation of binary image

2012-06-18 Thread Tuhinjubcse
I want to create a binary image from a bitmap. i am extracting the 
luminance from the YUV 420 format from the preview screen and storing it in 
an array . i can create a image using bitmap class be the decode method of
bitmap factory . Now the problem is how to convert this gray scale bitmap 
image to binary image (8bpp to 1bpp) 
Since bufferedimage is not supported in android how to do this ?? Provide 
the code snippet anyone tried hard but couldnt find :(

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

[android-developers] Re: How to implement your own LocationProvider

2012-06-18 Thread Deepak Mishra
I am still hoping for a solution... Did you get anything ?

Thanks !

On Tuesday, 3 August 2010 12:40:36 UTC+5:30, Marcus Wolschon wrote:
>
>
> Hello, 
>
> I would like to implement a new LocationProvider. 
> In this case, one that uses OpenCellID.org. 
> I figured the pattern wou be quite similar to providing an 
> AccountAuthenticator 
> but was stunned that I could not find any documentation on this. 
>
> Looking at the source 
>
> http://www.netmite.com/android/mydroid/frameworks/base/location/java/android/location/
>  
> all the relevant code seems to be in a service providing the 
> ILocationManager.aidl -interface 
> that I cannot navigate to or find using Goole Code Search. 
>
> Is it supported to provide your own LocationProvider at all? 
> If so, what do I have to do to acomplish this? 
>
> Regards, 
> Marcus Wolschon

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

[android-developers] Getting "Google Play requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate." message while submitting app

2012-06-18 Thread Gaurav Khera
Hi All,

I have an app already available at Play Store. Now when I am submitting a 
newer version of app, I am getting following error:

"Google Play requires that the certificate used to sign the apk be valid 
until at least October 22, 2033. Create a new certificate."

If I create the app with a new certificate, it will be treated as a 
different app and won't update the already existing app on a phone. I 
couldn't find any solution to this on internet.
Please help me on how to resolve this without losing the connection to 
previous version.

Thanks in advance for any help.

Gaurav Khera 

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

2012-06-18 Thread weixiang
hello,I am Tester using InstrumetationTestCase to Test, and i want to write 
some case about file transfer,However,when run,logcat display  some abnormal
below is my code,debug process,  the defect pointer is ""
  while(bis.read() != -1)
{ 
if(bis.read(mybytearray) == -1) break;

for(int i = 0 ; i < mybytearray.length ; i++)
{ 
Log.e("weixiang --!!!","start Write");
outStream.write(mybytearray[i]);
} 

}
but I don't know how to fixed it~
 
***
public void testBTFileTransfer() throws Exception {
BluetoothDevice 
remotebtdevice=mybluetooth.getRemoteDevice(searchBtDeviceMAC_pcsuit);
String sdcard=Environment.getExternalStorageDirectory()+"/";
//String filepath= sdcard + "Wifi_Module_Test/"+"1.mp3";
String filepath= sdcard + "Wifi_Module_Test/"+"1.mp3";
Log.e("# weixiang Tag ###", filepath);
if(remotebtdevice.getBondState() != BluetoothDevice.BOND_BONDED)
{
testBTPairresult_accept();
}
  new FileTransferThread(remotebtdevice).start();
sleep(300*1000);  
}
private class FileTransferThread extends Thread
{
private final BluetoothDevice mydevice;
private final BluetoothSocket mysocket;
//static final String SPP_UUID = "1106--1000-8000-00805F9B34FB";
static final String SPP_UUID ="1105--1000-8000-00805f9b34fb";

//private final OutputStream outStream;
private final UUID uuid;
private  InputStream mmInStream;   
private  OutputStream mmOutStream;
public FileTransferThread(BluetoothDevice device) throws IOException{
mydevice=device;
BluetoothSocket temsocket=null;
uuid= UUID.fromString(SPP_UUID);
//InputStream tmpIn = null;
//OutputStream tmpOut = null;
try{

temsocket=device.createRfcommSocketToServiceRecord(uuid);

}catch (IOException e){}
mysocket=temsocket;
}


public void run()
{

// add new socket Access
try {
mysocket.connect();
} catch (IOException connectException) {

try{
mysocket.close();
} catch(IOException closeException) {}
// TODO Auto-generated catch block
}

 //below is for Read/Write stream
 File myfile=new File(filepath);
 byte[] mybytearray = new byte[(int)myfile.length()]; 
 Log.e("TAG","file length() =" + (int)myfile.length());
 OutputStream outStream = null;
 FileInputStream fis = null;
 
 
 //init outputstream
 try{
 outStream =mysocket.getOutputStream();
 Log.e("tag1", "outputstream create success");
 }catch (IOException e)
 {
 Log.e("tag1", "ON RESUME: Output stream creation failed.");
 }
 
 //init inputstream
try {
fis = new FileInputStream(myfile);
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}   


 Log.e("TAG","fis created");
 
 BufferedInputStream bis = new BufferedInputStream(fis,4*1024 ); 
 Log.e("TAG","bis created success"); 
 
 /*
 try {
bis.read(mybytearray,0,mybytearray.length);

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*/


 
 try {

 
 while(bis.read() != -1)
 {  
 if(bis.read(mybytearray) == -1) break;
 
 for(int i = 0 ; i < mybytearray.length ; i++)
 {
 Log.e("weixiang   --!!!","start Write");
 outStream.write(mybytearray[i]);
 } 
 
 }
 //Log.e("weixiang   --!!!","read over!!!");

 /*
 while(bis.read()!= -1)
 {
 outStream.write(mybytearray, 0, mybytearray.length);
 Log.e("weixiang   --!!!","start Write");
 }
 /*
 for(int i = 0 ; i < mybytearray.length ; i++){ } 
 */
 
 
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
 
 Log.d("TAG","BYTES WRITTEN to OUTSTREAM of socket");   
 try {
outStream.flush();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} Log.d("TAG","bytes flushed"); 
 try {
outStream.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
 try {
mysocket.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
 Log.d("TAG","socket closed");  
 
 
} 
}

-- 
You received this message because you are subscribe

[android-developers] How to close view when touch outside?

2012-06-18 Thread pkbaozi
For example SearchView, if you don't click close button, it will always 
display even come back form another view.
and I didn't found solution form API.

Thanks for any suggestion.

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

2012-06-18 Thread Piet Smit
Hello Sebastian,
did you do some followup on this idea?
we are using the Nexus with an extra NFC sticker at the battery but we like 
to be able to read external tags too (Mifare Classic/Desfire)
or did someone else did some devellopment on this?
regards
Piet

On Saturday, March 5, 2011 10:34:15 PM UTC+1, sebastian nielsen wrote:
>
> Another idea I have, is to use a RFID card/tag compatible with Nexus S 
> which contains such a secure element and has some sort of Challenge- 
> response scheme. Is the tag reader always active, or is it only active 
> when a app "requests" it active? 
>
> Then I could just put the secure tag behind the battery cover, and 
> since the tag reader has anticollision, the tag reader could handle 
> both the extra tag and any external tag. 
>
> Any ideas of "secure" tags (It should support encryption onboard, if 
> it symmetric or asymmetric or keyed HMAC does not matter) that is 
> compatible with the Nexus S RFID reader?. The key loaded into token 
> should not be retrieveable.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: pairing problem, I believe this to be a bug in Android 4.0.3

2012-06-18 Thread HC
I have same issue when I try to connect to my own Bluetooth (SPP) device 
with modified Bluetooth Chat app using insecure connection mode on a 
GT-P3113, that is with Android 4.0.3, a "Bluetooth pairing request" window 
popup after select the paired device while with Android 3.2 it doesn't.
But when I use the same modified Bluetooth Chat app (on the same GT-P3113) 
to connect another Android tablet running Bluetooth Chat app, there is no 
pairing request.
Is it possible Android tablet automatically switch to secure mode and skip 
the "unnecessary" pairing?

Thanks

On Monday, May 14, 2012 11:09:44 PM UTC-4, Jim Morris wrote:
>
> I have developed an Android app that communicates with a Blue Bamboo 
> Bluetooth printer. I have no trouble communicating with the printer on 
> a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3). 
> When my app runs on the P-3113, I get the following problem. 
>
> When the P-3113 is trying to pair with the Blue Bamboo printers, it 
> asks me to type in the pin number for pairing, but the device was 
> already paired before the app started up!!! Why does it ask me for 
> a pin number again, when the devices are already paired up? 
>
> When I enter the pin number again, the device will still not connect. 
>
> The problem occurs on the device running version 4.0.3 regardless of 
> whether my software is targeted for version 4.0.3 or version 3.2. 
>
> I can supply the manufacturer's demo software source code, which also 
> exhibits the same problem. 
>
> I believe this is a bug introduced into Android 4.0.3. The software 
> works fine on Android 3.2 on a Galaxy P-6210.

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

[android-developers] Help in my Task Reminder Application.

2012-06-18 Thread vikas sharma
Guys after writing a tonn of codes all i am getting is an "unexpected
error"..anyone can help me with this?
this is a task reminder app have not write the task notification part till
now but getting error in the first part in which i wrote three classes.
TaskReminderActivity,TaskListActivity and RemindersDbActivity
damn getting an error don't understand why!!
help needed.
Vikash.

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

2012-06-18 Thread Justin Anderson
So do you plan on posting anything relevant to your problem or are we
expected to read your mind?

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


On Mon, Jun 18, 2012 at 1:04 AM, vikas sharma wrote:

> Guys after writing a tonn of codes all i am getting is an "unexpected
> error"..anyone can help me with this?
> this is a task reminder app have not write the task notification part till
> now but getting error in the first part in which i wrote three classes.
> TaskReminderActivity,TaskListActivity and RemindersDbActivity
> damn getting an error don't understand why!!
> help needed.
> Vikash.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] How to play youtube videos in background

2012-06-18 Thread Justin Anderson
Maybe it's just me, but why in the world would you want to play a video in
the background?  Playing music in the background makes sense, but a video?

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


On Fri, Jun 15, 2012 at 1:59 AM, snow69it  wrote:

> Hi, All:
>
> I am developing youtube player which can play in background as
> service.
> Because MediaPlayer class can play only 3gp, so I use webview and
> youtube api chromeless player.
>
> It works well in Activity, but not work in Service, because the player
> can't initialized in background.
> (When Chromeless player is initialized, Chromeless player call
> onYouTubePlayerReady(playerId) callback function. But it never called
> in background.)
>
> I found that player can't initialize in Activity if webview is hidden
> in any other views.
>
> How to initialize the player in background?
> Or are there any other way to play youtube video in background
> service?
>
> Hope your help.
> Thanks and Regard
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: i need control users my app ??

2012-06-18 Thread Nobu Games
Well, I kind of agree that using an own server for protecting your app 
could be helpful. You could assign individual passwords to each user, they 
have to log in with your app and your server validates the login 
credentials. You could also do it "iPhone"-style by asking your testers for 
their IMEI 
numbersand
 hardcode all these numbers into your app. Then, when your app starts, 
it reads the IMEI number on the device it is running on and checks that 
number against the list of allowed numbers. On top of all of that you could 
limit your app to run up to a certain date like July 25th 2012. After that 
it cannot be started anymore.

In any case I would make proper use of 
ProGuardand 
sign the app with your own, self-made certificate before handing it out 
to your testers.

You can combine any of these techniques but it won't prevent anybody from 
trying to steal your work or getting inspired by your ideas. By the way, I 
would try making these copy-protection checks at several places at once. 
Duplicate the code, try to obfuscate the list of allowed IMEI numbers and 
so on.

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

[android-developers] Re: In App Billing V2: Item not found, but purchase OK

2012-06-18 Thread John
Are you still having this problem? I found I had to reboot the phone for 
some reason, after publishing the item for in app billing.

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

2012-06-18 Thread Justin Anderson
Umm make sure your variables are not null?  What are you even asking?

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


On Thu, Jun 14, 2012 at 8:23 PM, DiEla Arianto wrote:

> how to anticipate
> unknown error : java.lang.nullpointerexception
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] The import org.apache.harmony cannot be resolved

2012-06-18 Thread Kaiduan Xie
Hi,

The following import caused the above Eclipse error,

import org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl;

The directory of jsse is located in the following directory,

D:\Android\android-sdk\sources\android-15\org\apache\harmony\xnet\provider\jsse

How to resolve the above issue?

Thanks,

/Kaiduan

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


[android-developers] Re: Getting "Google Play requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate." message while submitting app

2012-06-18 Thread RichardC
No much help I am afraid, but it is clear in the documentation:

*" Has a validity period that exceeds the expected lifespan of the 
application or application suite. A validity period of more than 25 years 
is recommended. "*
http://developer.android.com/guide/publishing/app-signing.html#cert 


On Monday, June 18, 2012 10:49:43 AM UTC+1, Gaurav Khera wrote:
>
> Hi All,
>
> I have an app already available at Play Store. Now when I am submitting a 
> newer version of app, I am getting following error:
>
> "Google Play requires that the certificate used to sign the apk be valid 
> until at least October 22, 2033. Create a new certificate."
>
> If I create the app with a new certificate, it will be treated as a 
> different app and won't update the already existing app on a phone. I 
> couldn't find any solution to this on internet.
> Please help me on how to resolve this without losing the connection to 
> previous version.
>
> Thanks in advance for any help.
>
> Gaurav Khera 
>

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

2012-06-18 Thread Harri Smått

On Jun 18, 2012, at 9:25 PM, Kaiduan Xie wrote:
> The following import caused the above Eclipse error,
> import org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl;

I think it's javax.net.ssl.SSLSocket you should be using - not implementation 
class directly.

--
H

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

2012-06-18 Thread Kaiduan Xie
I need to add SNI (Server Name Indication) value to the SSLSocket like
HttpsURLConnection does.

And the traffic over SSL connection is not HTTP.

On Mon, Jun 18, 2012 at 3:15 PM, Harri Smått  wrote:
>
> On Jun 18, 2012, at 9:25 PM, Kaiduan Xie wrote:
>> The following import caused the above Eclipse error,
>> import org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl;
>
> I think it's javax.net.ssl.SSLSocket you should be using - not implementation 
> class directly.
>
> --
> H
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] The import org.apache.harmony cannot be resolved

2012-06-18 Thread Harri Smått

On Jun 18, 2012, at 10:15 PM, Harri Smått wrote:
> On Jun 18, 2012, at 9:25 PM, Kaiduan Xie wrote:
>> The following import caused the above Eclipse error,
>> import org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl;
> I think it's javax.net.ssl.SSLSocket you should be using - not implementation 
> class directly.

Or javax.net.ssl.SSLSocketFactory for creating SSLSockets to be more precise.

--
H

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

2012-06-18 Thread Harri Smått
On Jun 18, 2012, at 10:21 PM, Kaiduan Xie wrote:
> I need to add SNI (Server Name Indication) value to the SSLSocket like
> HttpsURLConnection does.

If I googled properly it's OpenSSLSocketImpl.setHostname(String) you want to 
call? This should be doable using reflection too;

SocketFactory f = SSLSocketFactory.getDefault();
Socket s = f.createSocket(….);
Method m = s.getClass().getMethod("setHostname", String.class);
m.invoke(s, "your.host.com");

Plus appropriate try/catches.

--
H

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: pairing problem, I believe this to be a bug in Android 4.0.3

2012-06-18 Thread HC
More details:
Bluetooth Chat Demo app running on Android 4.0.3 and try to connect my 
Bluetooth device (running on security mode 1) . System popup "Bluetooth 
pairing request" window. After enter pin, connection achieved. Logcat msg 
as follow,

06-18 15:28:37.630: E/BluetoothChat(2207): - ON PAUSE -
06-18 15:28:39.450: D/BluetoothChat(2207): onActivityResult -1
06-18 15:28:39.450: D/BluetoothChatService(2207): connect to: 
00:13:43:02:C0:91
06-18 15:28:39.450: D/BluetoothChatService(2207): setState() 1 -> 2
06-18 15:28:39.450: I/BluetoothChatService(2207): BEGIN mConnectThread 
SocketType:Insecure
06-18 15:28:39.460: E/BluetoothChat(2207): + ON RESUME +
06-18 15:28:39.490: I/BluetoothChat(2207): MESSAGE_STATE_CHANGE: 2

06-18 15:28:40.920: E/BluetoothChat(2207): - ON PAUSE -
06-18 15:28:41.050: W/IInputConnectionWrapper(2207): showStatusIcon on 
inactive InputConnection
06-18 15:28:44.200: E/BluetoothChat(2207): + ON RESUME +

06-18 15:28:44.940: D/BluetoothChatService(2207): connected, Socket 
Type:Insecure
06-18 15:28:44.950: D/BluetoothChatService(2207): Socket TypeSecurecancel 
Thread[AcceptThreadSecure,5,main]
06-18 15:28:44.960: D/BluetoothChatService(2207): Socket TypeInsecurecancel 
Thread[AcceptThreadInsecure,5,main]
06-18 15:28:44.970: D/BluetoothChatService(2207): create ConnectedThread: 
Insecure
06-18 15:28:44.980: E/BluetoothChatService(2207): Socket Type: 
Secureaccept() failed
06-18 15:28:44.980: E/BluetoothChatService(2207): java.io.IOException: 
Operation Canceled
06-18 15:28:44.980: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothSocket.acceptNative(Native Method)
06-18 15:28:44.980: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothSocket.accept(BluetoothSocket.java:305)
06-18 15:28:44.980: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:107)
06-18 15:28:44.980: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:93)
06-18 15:28:44.980: E/BluetoothChatService(2207): at 
com.example.android.BluetoothChat.BluetoothChatService$AcceptThread.run(BluetoothChatService.java:327)
06-18 15:28:44.980: I/BluetoothChatService(2207): END mAcceptThread, socket 
Type: Secure
06-18 15:28:44.980: I/BluetoothChatService(2207): BEGIN mConnectedThread
06-18 15:28:44.980: D/BluetoothChatService(2207): setState() 2 -> 3
06-18 15:28:44.990: E/BluetoothChatService(2207): Socket Type: 
Insecureaccept() failed
06-18 15:28:44.990: E/BluetoothChatService(2207): java.io.IOException: 
Operation Canceled
06-18 15:28:44.990: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothSocket.acceptNative(Native Method)
06-18 15:28:44.990: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothSocket.accept(BluetoothSocket.java:305)
06-18 15:28:44.990: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:107)
06-18 15:28:44.990: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:93)
06-18 15:28:44.990: E/BluetoothChatService(2207): at 
com.example.android.BluetoothChat.BluetoothChatService$AcceptThread.run(BluetoothChatService.java:327)
06-18 15:28:44.990: I/BluetoothChatService(2207): END mAcceptThread, socket 
Type: Insecure
06-18 15:28:44.990: I/BluetoothChat(2207): MESSAGE_STATE_CHANGE: 3

[disconnect issued]
06-18 15:29:04.590: D/BluetoothChatService(2207): stop
06-18 15:29:04.600: E/BluetoothChatService(2207): disconnected
06-18 15:29:04.600: E/BluetoothChatService(2207): java.io.IOException: 
Operation Canceled
06-18 15:29:04.600: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothSocket.readNative(Native Method)
06-18 15:29:04.600: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:327)
06-18 15:29:04.600: E/BluetoothChatService(2207): at 
android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
06-18 15:29:04.600: E/BluetoothChatService(2207): at 
java.io.InputStream.read(InputStream.java:163)
06-18 15:29:04.600: E/BluetoothChatService(2207): at 
com.example.android.BluetoothChat.BluetoothChatService$ConnectedThread.run(BluetoothChatService.java:477)
06-18 15:29:04.600: D/BluetoothChatService(2207): setState() 3 -> 0
06-18 15:29:04.600: D/BluetoothChatService(2207): start
06-18 15:29:04.600: D/BluetoothChatService(2207): setState() 0 -> 1
06-18 15:29:04.620: D/BluetoothChatService(2207): Socket Type: SecureBEGIN 
mAcceptThreadThread[Thread-272,5,main]
06-18 15:29:04.630: D/BluetoothChatService(2207): start
06-18 15:29:04.630: D/BluetoothChatService(2207): setState() 1 -> 1
06-18 15:29:04.630: D/BluetoothChatService(2207): Socket Type: 
InsecureBEGIN mAcceptThreadThread[Thread-273,5,main]
06-18 15:29:04.640: I/BluetoothChat(2207): MESSAGE_STATE_CHANGE: 0
06-18 15:29:04.640: I/BluetoothChat(2207): MESSAGE_STATE_CHANGE: 1
06-18 15:2

Re: [android-developers] Leaking Window on orientation change

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 5:29 AM, Vance Turnewitsch <
betweenthehi...@gmail.com> wrote:

> Thanks. I tried using the method and it appears that the method gets
> called after the Activity has been destroyed and during some process of
> recreating the Activity:


What does your onClick method look like?

-
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] CursorAdapter and sample SimpleCursorAdapter

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 4:14 AM, Live Happy  wrote:

> based on  what can i choose


Again, your question is not very clear.
How To Ask Questions The Smart
Way

-
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] how to fetch access token for google api.Authenticating with OAuth 2.0 in android

2012-06-18 Thread Eugène van der Merwe
In my case I had to remove 
`google-api-client-googleapis-extensions-android2-1.4.1-beta.jar` from my 
project.

See 
http://stackoverflow.com/questions/10477147/how-to-fetch-access-token-for-google-api-authenticating-with-oauth-2-0-in-androi/11089504#11089504

regards,
Eugene

On Tuesday, May 8, 2012 5:24:16 PM UTC+2, MagouyaWare wrote:
>
> it is showing the error "The method getAccountManager() is undefined for 
>> the type GoogleAccountManager".
>>
>
> Umm... What code are you using?  The link you referenced never mentions a 
> getAccountManager() method on the GoogleAccountManager class.  That could 
> be a problem.
>
> The link you are using does give the following lines of code for using 
> GoogleAccountManager though:
>
> GoogleAccountManager googleAccountManager = new 
> GoogleAccountManager(activity);
>
> Account[] accounts = googleAccountManager.getAccounts();
>
> If you try using that code, it will probably work...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Sun, May 6, 2012 at 11:50 PM, Abhishek UB <> wrote:
>
>> getAccountManager()
>
>
>

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

[android-developers] Viewpager

2012-06-18 Thread Androtech
Does any one know how to put preference in viewpager? Please give me the 
example code if any.

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

2012-06-18 Thread Kaiduan Xie
This solution works like a charm.

Thank you very much Harri.

/Kaiduan

On Mon, Jun 18, 2012 at 3:54 PM, Harri Smått  wrote:
> On Jun 18, 2012, at 10:21 PM, Kaiduan Xie wrote:
>> I need to add SNI (Server Name Indication) value to the SSLSocket like
>> HttpsURLConnection does.
>
> If I googled properly it's OpenSSLSocketImpl.setHostname(String) you want to 
> call? This should be doable using reflection too;
>
> SocketFactory f = SSLSocketFactory.getDefault();
> Socket s = f.createSocket(….);
> Method m = s.getClass().getMethod("setHostname", String.class);
> m.invoke(s, "your.host.com");
>
> Plus appropriate try/catches.
>
> --
> H
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] How Google Map gets current location in Android ?

2012-06-18 Thread Ahmad
Can someone from Google Android (map) write the steps and code used by
Google Android in this subject ?

Here  “youtube.com/watch?v=v6gqipmbcok” says it uses cell towers. But
I can see the GPS is used by Google Map too.

Here  “http://stackoverflow.com/questions/3145089/what-is-the-simplest-
and-most-robust-way-to-get-the-users-current-location-in-a/
3145655#3145655”   a few methods have been suggested, but doesn’t seem
Google Map Android uses any of them.

Google Map Android finds the location in very few seconds, while my
app takes about a minute.
Based on suggestions from Android, I find the best provider first
(which usually is GPS) and get the location thru that. But doesn’t
seem this is what Google Android Map does.

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


[android-developers] Google Maps Crash Insite WebView

2012-06-18 Thread Tommy Hartz
Hi,

On android 4.0.3 I have an Activity that contains a webview. This webview
loads a Google Maps webpage that is stored on our servers. The Map is
overlaid with a Radar.

When I double tab to zoom in on the map my app crashes. It is crashing and
gives me an error com.android.launcher/com.android.launcher2.Launcher
(server)' ~ Channel is unrecoverably broken and will be disposed!

Does anyone have any idea why this is happening? It seems to work fine on my
phones 2.3.3 and 2.3.4 as well as a few other devices that I have tried it
on. The table however is the one giving me the issue. It is an Acer A200

Thank you for your time,

Tommy



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

2012-06-18 Thread Sam
It can be reproduced.

1. In the visual editor, drag an image from the left hand side, to anywhere 
on the screen
2. Drag anything else and place it under the image (for example, some text)
3. Go to the XML code and try to edit the item you dragged below the image
4. It will mess up the code and you wont be able to undo it because Ctr-z 
doesn't work

On Monday, June 18, 2012 7:24:33 AM UTC-7, Tor Norbye wrote:
>
> This sounds like this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421
>
> Note however that we don't know how to reproduce this bug. If anyone has 
> reproducible steps, please describe in as much detail as possible and 
> attach to that issue.
>
> -- Tor
>
> On Sun, Jun 17, 2012 at 11:59 AM, G. Blake Meike wrote:
>
>> While I've never seen this happen in Indigo, it happens *constantly* in 
>> Juno.  I know, I know: not supported.  It is, however, certainly a way to 
>> drive a similar bug, consistently.
>>
>> G. Blake Meike
>> Marakana
>>
>> The second edition of Programming Android is now on-line:
>> http://shop.oreilly.com/product/0636920023005.do
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

[android-developers] Re: How Google Map gets current location in Android ?

2012-06-18 Thread lbendlin
It's all smoke and mirror.  You need to use whatever location provider is 
available to give the user the illusion that there is a location fix. Only 
then should you switch to "best" provider, and provide the real GPS based 
location.

On Monday, June 18, 2012 5:32:01 PM UTC-4, Ahmad wrote:
>
> Can someone from Google Android (map) write the steps and code used by 
> Google Android in this subject ? 
>
> Here  “youtube.com/watch?v=v6gqipmbcok” says it uses cell towers. But 
> I can see the GPS is used by Google Map too. 
>
> Here  “http://stackoverflow.com/questions/3145089/what-is-the-simplest- 
> and-most-robust-way-to-get-the-users-current-location-in-a/ 
> 3145655#3145655”
>  
>   a few methods have been suggested, but doesn’t seem 
> Google Map Android uses any of them. 
>
> Google Map Android finds the location in very few seconds, while my 
> app takes about a minute. 
> Based on suggestions from Android, I find the best provider first 
> (which usually is GPS) and get the location thru that. But doesn’t 
> seem this is what Google Android Map does. 
>

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

[android-developers] Re: How Google Map gets current location in Android ?

2012-06-18 Thread Ahmad Mobasseri
Can someone from Google Android (map) group address the question/request ?

"How Google Map gets current location in Android ?"  Steps and code.  Is it
possible ?

The question is Not how I should do it !

Thank you.



On Mon, Jun 18, 2012 at 5:34 PM, lbendlin  wrote:

> It's all smoke and mirror.  You need to use whatever location provider is
> available to give the user the illusion that there is a location fix. Only
> then should you switch to "best" provider, and provide the real GPS based
> location.
>
>
> On Monday, June 18, 2012 5:32:01 PM UTC-4, Ahmad wrote:
>>
>> Can someone from Google Android (map) write the steps and code used by
>> Google Android in this subject ?
>>
>> Here  
>> “youtube.com/watch?v=**v6gqipmbcok”
>> says it uses cell towers. But
>> I can see the GPS is used by Google Map too.
>>
>> Here  “http://stackoverflow.com/**questions/3145089/what-is-the-**simplest-
>>
>> and-most-robust-way-to-get-**the-users-current-location-in-**a/
>> 3145655#3145655”
>>   a few methods have been suggested, but doesn’t seem
>> Google Map Android uses any of them.
>>
>> Google Map Android finds the location in very few seconds, while my
>> app takes about a minute.
>> Based on suggestions from Android, I find the best provider first
>> (which usually is GPS) and get the location thru that. But doesn’t
>> seem this is what Google Android Map does.
>>
>

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

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 10:07 AM, Felipe Monteiro de Carvalho <
felipemonteiro.carva...@gmail.com> wrote:

> But it fails to compile:
>
> Any ideas where am I getting it wrong?
>

You don't know Java or how to use your IDE well enough.

If your code fails to compile, your IDE should tell you why and maybe even
tell you how to fix it.

You could, at the very least, post the errors you're getting if you want
anyone to help you.

-
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: How Google Map gets current location in Android ?

2012-06-18 Thread Lance Nanek
Just a user here, but I can confirm the Google Maps app uses multiple 
location providers. I was on a train once and it couldn't get a GPS lock 
and just sat there forever trying to get a location. No clear view of the 
sky, I guess.

Then I turned off GPS location provider in the phone settings and it 
insisted I was in Boston when I was really near Washingington DC. That's 
where Google thinks the train's WiFi is, I guess. Finally I turned off WiFi 
and it started getting the correct location, presumably by the nearest cell 
phone tower.

So it uses both the GPS location provider and the network provider. I've 
also seen it display where I was last time I used locations before, until 
it loaded new data. So it either uses the last known location API as well, 
or caches the last used location itself.

It's pretty much a given that last known location API is the fastest if it 
has anything, then the network provider, then the GPS location provider. 
So, as has been said, for quick startup you usually use locations from 
those sources in that order.

There's plenty of code to get you started here:
http://developer.android.com/guide/topics/location/obtaining-user-location.html

On Monday, June 18, 2012 9:12:00 PM UTC-4, Ahmad wrote:
>
> Can someone from Google Android (map) group address the question/request ?
>
> "How Google Map gets current location in Android ?"  Steps and code.  Is 
> it possible ? 
>
> The question is Not how I should do it !
>
> Thank you.
>
>
>
> On Mon, Jun 18, 2012 at 5:34 PM, lbendlin  wrote:
>
>> It's all smoke and mirror.  You need to use whatever location provider is 
>> available to give the user the illusion that there is a location fix. Only 
>> then should you switch to "best" provider, and provide the real GPS based 
>> location.
>>
>>
>> On Monday, June 18, 2012 5:32:01 PM UTC-4, Ahmad wrote:
>>>
>>> Can someone from Google Android (map) write the steps and code used by 
>>> Google Android in this subject ? 
>>>
>>> Here  
>>> “youtube.com/watch?v=**v6gqipmbcok” 
>>> says it uses cell towers. But 
>>> I can see the GPS is used by Google Map too. 
>>>
>>> Here  “http://stackoverflow.com/**questions/3145089/what-is-the-**simplest- 
>>>
>>> and-most-robust-way-to-get-**the-users-current-location-in-**a/ 
>>> 3145655#3145655”
>>>  
>>>   a few methods have been suggested, but doesn’t seem 
>>> Google Map Android uses any of them. 
>>>
>>> Google Map Android finds the location in very few seconds, while my 
>>> app takes about a minute. 
>>> Based on suggestions from Android, I find the best provider first 
>>> (which usually is GPS) and get the location thru that. But doesn’t 
>>> seem this is what Google Android Map does. 
>>>
>>
>

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

2012-06-18 Thread lbendlin
sounds like a Youtube downloader to me.

On Monday, June 18, 2012 2:03:38 PM UTC-4, MagouyaWare wrote:
>
> Maybe it's just me, but why in the world would you want to play a video in 
> the background?  Playing music in the background makes sense, but a video?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Fri, Jun 15, 2012 at 1:59 AM, snow69it  wrote:
>
>> Hi, All:
>>
>> I am developing youtube player which can play in background as
>> service.
>> Because MediaPlayer class can play only 3gp, so I use webview and
>> youtube api chromeless player.
>>
>> It works well in Activity, but not work in Service, because the player
>> can't initialized in background.
>> (When Chromeless player is initialized, Chromeless player call
>> onYouTubePlayerReady(playerId) callback function. But it never called
>> in background.)
>>
>> I found that player can't initialize in Activity if webview is hidden
>> in any other views.
>>
>> How to initialize the player in background?
>> Or are there any other way to play youtube video in background
>> service?
>>
>> Hope your help.
>> Thanks and Regard
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Intent implementation

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 9:10 AM, r4f4  wrote:

> Can anyone provide me with information (link or explanation), how the
> OS treats the Intents and the whole mechanism works, in order to find
> the reason why data was not received with high transmission rate ?
>

Just going off the little information you posted, I'm guessing when you
increase the transfer rate, you're using Intents that are considered to be
the same by the system, which then get overwritten before they're received.

Read the docs for Intent and IntentFilter.

-
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: How Google Map gets current location in Android ?

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 8:12 PM, Ahmad Mobasseri
wrote:

> Can someone from Google Android (map) group address the question/request ?


That is highly unlikely, but to add to what's been said, there is a blog
post about this.

-
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] Question about AccountManager and OAuth authentication with Google App Engine

2012-06-18 Thread Nikolay Elenkov
On Mon, Jun 18, 2012 at 7:33 PM, Francois Masurel  wrote:
> Hi Mukesh,
>
> Have you found a solution on this?
>
> I'm desperately trying to implement it on my Android app without success.
>

It seems GAE doesn't currently support OAuth2 for authentication, so you have
to use ClientLogin. You can get an admin token with this tokenType, but that's
not useful for authenticating users (that's what GAE command line tools use to
upload, etc. apps).

"oauth2:https://www.googleapis.com/auth/appengine.admin";

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

2012-06-18 Thread Nikolay Elenkov
On Tue, Jun 19, 2012 at 12:57 PM, Nikolay Elenkov
 wrote:
> On Mon, Jun 18, 2012 at 7:33 PM, Francois Masurel  wrote:
>> Hi Mukesh,
>>
>> Have you found a solution on this?
>>
>> I'm desperately trying to implement it on my Android app without success.
>>
>
> It seems GAE doesn't currently support OAuth2 for authentication, so you have
> to use ClientLogin. You can get an admin token with this tokenType, but that's
> not useful for authenticating users (that's what GAE command line tools use to
> upload, etc. apps).
>
> "oauth2:https://www.googleapis.com/auth/appengine.admin";

BTW, it does support OAuth 1.0, here's an article describing how to set it up:

http://ikaisays.com/2011/05/26/setting-up-an-oauth-provider-on-google-app-engine/

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

2012-06-18 Thread Saurav
Hi all,

Apart from all the statements above, which I agree to, well most of it; I
am sure Google takes in feedback from user's phone to give you precise
location.
Like when you are in a train, there is a learning behind that you are
moving from cell tower to tower, beside the rail track data points. This
would position you on the track, and not (instead of) near the cell tower
(and say your location is withing some radius).


Regards,
Saurav Mukherjee.


On Tue, Jun 19, 2012 at 8:26 AM, TreKing  wrote:

> On Mon, Jun 18, 2012 at 8:12 PM, Ahmad Mobasseri <
> ahmad.mobass...@gmail.com> wrote:
>
>> Can someone from Google Android (map) group address the question/request ?
>
>
> That is highly unlikely, but to add to what's been said, there is a blog
> post about this.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Can't able to install google play billing

2012-06-18 Thread Sandeep Venkat
I can't able to install Google play billing in android4.0 through SDK
manager.Can anyone help me out!!!

-- 
Thanks&Regards

*Sandeep MNVVB*
*
**Mobile Application Developer
Believe Creative
**sand...@believecreative.in
*
M: 0091 8019585636
W: www.believecreative.in

First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad,
500081


**ConfidentialNote*
Please
do not print this email unless it is absolutely necessary. *

*The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments. *

*
*

WARNING*: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email. *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Getting "Google Play requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate." message while submitting app

2012-06-18 Thread Saurav
Welcome to the club.
Please go though this thread.
Won't be a help, but it will give you the feeling that you are not alone.

https://groups.google.com/d/topic/android-developers/qvbB74pB5Oo/discussion

Regards,
Saurav Mukherjee.


On Tue, Jun 19, 2012 at 12:25 AM, RichardC
wrote:

> No much help I am afraid, but it is clear in the documentation:
>
> *" Has a validity period that exceeds the expected lifespan of the
> application or application suite. A validity period of more than 25 years
> is recommended. "*
> http://developer.android.com/guide/publishing/app-signing.html#cert
>
>
> On Monday, June 18, 2012 10:49:43 AM UTC+1, Gaurav Khera wrote:
>>
>> Hi All,
>>
>> I have an app already available at Play Store. Now when I am submitting a
>> newer version of app, I am getting following error:
>>
>> "Google Play requires that the certificate used to sign the apk be valid
>> until at least October 22, 2033. Create a new certificate."
>>
>> If I create the app with a new certificate, it will be treated as a
>> different app and won't update the already existing app on a phone. I
>> couldn't find any solution to this on internet.
>> Please help me on how to resolve this without losing the connection to
>> previous version.
>>
>> Thanks in advance for any help.
>>
>> Gaurav Khera
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Recover Certificate from APK

2012-06-18 Thread Saurav
I understand!

Thanks again everyone!

Regards,
Saurav Mukherjee.


On Mon, Jun 18, 2012 at 8:32 PM, Mark Murphy wrote:

> On Mon, Jun 18, 2012 at 7:31 AM, Saurav 
> wrote:
> > Ha ha!
> > It is not public, Mark.
>
> That's good. I'm willing to bet that there's a few dozen projects
> floating around, though, who *did* upload their keystore into a public
> git repo. That's bad -- they are one Google account hack away from
> having their apps replaced by malware-ridden ones on the Play Store.
>
> --
> 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.7 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
>

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

[android-developers] Login screen in offline mode

2012-06-18 Thread Sandeep Venkat
could anyone tell me how to store user details entered in registration
screen in offline mode into sqlite?

-- 
Thanks&Regards

*Sandeep MNVVB*
*
*

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

2012-06-18 Thread asheesh arya
variables are null sumwhere in your code thats why execute this error

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

[android-developers] reading pdf in android emulator

2012-06-18 Thread kampy
Hi ,

For my app i need to read and print the pdf . i tried with different pdf 
read java supported libraries like pdfbox,itext but they are not working in 
android emulator i am getting the class not found exception.
Can anyone help me how to read the pdf .

Thanks in advance 

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

Re: [android-developers] reading pdf in android emulator

2012-06-18 Thread Saurav
Could you paste/attach your StackTrace?




Regards,
Saurav Mukherjee.


On Tue, Jun 19, 2012 at 11:20 AM, kampy  wrote:

> libraries

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

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 11:19 PM, Sandeep Venkat  wrote:

> I can't able to install Google play billing in android4.0 through SDK
> manager.Can anyone help me out!!!


You need to provide a little more information so we know what you're actual
problem is. Like *why* you can't.

-
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

  1   2   >