[android-developers] Samsung A50 sim get undetected when making calls

2019-10-10 Thread Riya H

Hi,I bought Samsung A50 recently.one month ago it fell on swimming pool.But 
I removed the water from the phone and its working.But the issue is when 
making phone calls sim get undetected.Even when making whats app calls sim 
get undetected and it shows insert sim prompt. If hands-fee is plugged in, 
this issue is not there. Using data and sending messages all works 
fine.Only when making calls without hands-free sim get undetected.I dont 
understand where is the issue.I tried factory reset and hard reset still 
the issue is there.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/aa1603c6-0b0e-4184-8caf-f9364d597c37%40googlegroups.com.


[android-developers] Re: Urgent Requirement :: SAP ABAP Developer :: Philadelphia, PA

2016-10-10 Thread h . vijaybabu
Hi Randhir,

Please let me know if there is a opening for SAP-ABAP Consultant.

Regards,
Vijaybabu

On Thursday, September 22, 2016 at 2:47:42 PM UTC-7, Randhir tiwari wrote:
>
> Hi Friends, 
>
>  
>
>  My name is *Randhir  Tiwari* IT Recruiter at *IDC Technology.* I have 
> opportunity to review your resume on job board and have qualified it as a 
> potential for a position that I am currently recruiting for.
>
>  
>
>  I would like to short-list  your profile. Please call me back ASAP on *408 
> 882 6434**. *Please Send me Your Updated Resume.
>
>  
>
> *Role:* *SAP ABAP Developer*
>
>  
>
> *Locations  :* *Philadelphia, PA*
>
>  
>
>  
>
> *JOB DESCRIPTION:* 
>
>  
>
> *Object Oriented ABAP Developer*
>
>  
>
>   Duties:  This is a short term contract position.  The 
> requirement is to build and test back end programming objects in ABAP 
> Objects, based on informal specifications and testing, to support 
> informational and functional dashboards in potentially multiple UI 
> platforms.  The contractor will work with a UI developer, Solution 
> Engineer, and supporting technical functions to deliver the needed back end 
> components to meet the application requirements.
>
>  
>
> Qualifications: 
>
>  
>
> · 5 years of SAP ABAP development experience
>
> · Minimum one year ABAP Objects programming experience
>
> · Minimum three years of object oriented programming in any 
> programming languages 
>
> · Programming experience must include several of the following 
> SAP functional areas: Sales and Distribution (SD); FI; CO; Accounts 
> Receivable, Accounts Payable, HR Infotypes
>
> · Experience with OData is required
>
>  
>
> *SAP UI5 Developer*
>
>  
>
> Duties:  This is a short term contract position with 
> potential for extension.  The requirement is to build and test the user 
> interface components for Fiori / UI5 applications, based on informal 
> specifications and testing.  The contractor will work with an ABAP Objects 
> developer, Solution Engineer, and supporting technical functions to 
> integrate and deliver the user interface to meet the application 
> requirements.
>
>  
>
> Qualifications: 
>
>  
>
> · Experience in Fiori Architecture and ABAP/Fiori development 
> using SAP WebIDE or Eclipse, SAP NetWeaver Gateway constructing the 
> presentation layer using Javascript, XML, Json, Jquery, and HTML5 
> programming. 
>
> · Minimum 3 years experience in web-related development using 
> Javascript, XML, Json, Jquery, HTML5, and CSS programming
>
> · Experience using OData 
>
> · Object-oriented programming schooling or experience preferred
>
>  
>
> Thanks and Regards
>
>  
>
> *Randhir Tiwari*
>
> Sr. IT Recruiter *| *IDC Technologies, Inc
>
> 1851 McCarthy Blvd Milpitas, CA 95035
>
> D: *408 882 6434*
>
> Email :- randhir...@idctechnologies.com 
>
> Hangout:- randhirti...@gmail.com 
>
> LinkedIn :- https://www.linkedin.com/in/randhir-tiwari-284b9489
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/dee788f2-777d-40e9-a560-e75d63fae25b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Need a Android Developer to enable LG Nexus 5x mobile hotspot

2016-05-05 Thread H Cox
Previously, I owned Nexus 6p & no problem using mobile hotspot on VZW network. 
I have unlimited data & no problems using hotspot. Now own LG Nexus 6p, I'm 
required told I have be subscribe to use mobile hotspot & forced to keep 
pulling sim alot 4 secs then check on hotspot then push sim slot back in to 
access hotspot with no subscription. Please help enable with out doing 
bootloader if possible?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fd49daf4-2063-4ab2-9286-cd894c166138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] EP4 account

2016-02-02 Thread ghouse . h
Hi Guys,

I am looking for setup ep4 (saty ) account in android mail app. i dont know 
anything about that procedure . if anybody knows about please let me know 
the procedure.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/172f9877-e28a-4727-a017-e5294f0ef7ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Connecting a Bluetooth Controller to an android device

2016-01-27 Thread Anildas H
Hi,

I am a Game developer and working in Game Engines like Unity and Unreal 
Engine for 3 years. I'm now starting with native android developing and 
have minimal knowledge in it. And currently I'm developing an native 
android game playable with a joystick.

My query is that, *Will I be able to connect an external Bluetooth 
Controller/Joystick* (like an Xbox controller or any other Bluetooth 
joystick) to an android device using my application. I know that we can 
connect to any other Bluetooth device (like a phone or a BT Headset) using 
Android APIs.

Any help me on this topic would be highly appreciated. Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/76c52ef5-424f-4b31-8185-522c03629799%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Physical address is required for paid apps or in-app purchases

2014-10-02 Thread H
I still want to know what EU laws they are complying with?

Have a look at 
https://code.google.com/p/android-developer-preview/issues/detail?id=1340#c22

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Questions about Google Play's app translation services

2013-12-20 Thread Ben H
i need to translate my app into different languages, but i'm befuddled by 
google play's app translation service. it's pathetic how little information 
google offers about this service. what's the difference between the 
translate and translate and review options, besides price? google play 
presents several different companies to choose from, but i have no idea 
which is best. does anyone have a recommendation? is there a better service 
to use besides google play?

cheers,
ben

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] About System broadcast behavior.

2013-04-29 Thread h . sasaki . mbsd . jp
Hello,

I wanted to create an app to detect that it has remove the SD card.
But, I disinclined to received broadcast action which spoofed from malware.
I tried to limit received by android:exported=false with in manifest.
This filter action is android.intent.action.MEDIA_UNMOUNTED action(this 
action is not protected-broadcast). 
I thought system action can't received also whether not being blocked by 
exported=false.

However, it was able to receive the android.intent.action.MEDIA_UNMOUNTED 
action correctly from Android system.

In other words, Can I receive the system broadcast that has been specified 
exported = false by manifest?

Regards,
Hiroshi

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2013-02-07 Thread Rob H
I think if you're interested in protecting your app from piracy the best 
way to do it is via the in-app purchase system.  If you're making a game, 
put it up there with level 1 for free.  Thousands of people will check it 
out.  If they want to continue on to the other levels, well here's an 
in-app store where you can decide how much you want to pay for the app (the 
more you pay the more content you get).  Then you make your content 
DOWNLOADED from your server, not from unlocking something in your existing 
APK file.  This combined with a system that communicates with your server 
similar to the iOS receipt auditing system means that a user is only going 
to get the downloaded content if they go through the purchase process. 
 Yes, pirates could buy everything on one device, then bundle all that 
content up and modify your APK to say that all the content is unlocked, 
however the work involved makes this highly impractical.  They're only 
going to do it if your game is so popular that everyone wants it badly, and 
in that case you'll be making enough money where piracy almost becomes a 
positive thing for you because it helps get the game in people's hands and 
at this point your game is so good more people seeing it means more people 
buying 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Strange directory duplication behaviour

2013-02-06 Thread Rob H
Hi all,

My app stores files on external storage under a folder I create with the 
following code:

new File(Environment.getExternalStorageDirectory(), /trc_prl/bundle);

One of my testers has noticed that sometimes when he goes to clean up 
external storage to begin testing from a clean device he will sometimes see 
duplicates of the folders I create with periods instead of underscores, 
for example /mnt/sdcard/trc.prl/bundle.

I've looked through my code and I see no possible means of an error in the 
directory spelling, the only thing that looks like trc.prl is the package 
name of the app itself.

Has anyone seen this before that can tell me what's happening exactly?  Is 
this Android's version of Microsoft's method of preventing duplicate file 
names (e.g. FIle(1), File(2), etc...)?

Thanks!

Rob


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] is Google going to ship Chrome as a default browser for next OS release

2013-02-03 Thread H
Not sure what you mean by not part of the public api - these are the exact 
values of the BOOKMARKS_URI on this the Browser object documented here: 
http://developer.android.com/reference/android/provider/Browser.html

On 2.x devices it returns a uri for browser but from 3.x onwards, that was 
renamed to com.android.browser due to the differences in the provider's 
implementation and probably for a more consistent naming convention with the 
other providers for other types of data. 

But it's clearly a public api for accessing the stock browser's bookmarks. Is 
there any reason why you don't think it's a public api? 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] is Google going to ship Chrome as a default browser for next OS release

2013-02-02 Thread H
Yes.

I'm not near my computer, but below Android v3 you can get to them as 
content://browser/bookmarks and from v3+ as 
content://com.android.browser/bookmarks 

Obviously you need to include the permissions in your manifest. 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] is Google going to ship Chrome as a default browser for next OS release

2013-02-01 Thread H
Probably unlikely to replace the Stock Browser in AOSP Android - Chrome is 
dependant on the Google APIs, so if it replaced the browser then there wouldn't 
be a browser on AOSP Android. But on Google licensed devices, there's no reason 
to not remove the Stock Browser. However Chrome doesn't provide a public 
bookmarks provider, so all those apps that rely on a provider to show the 
user's bookmarks in a widget (for example) would no longer work. 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Nexus 4 Drivers

2013-01-02 Thread Ken H
Has anyone seen where I can get drivers for the Nexus 4 so I can see it in 
Eclipse? I'm having a peculiar problem in an app that only happens on the 
Nexus 4, but Eclipse can't talk to it, so I can't see the Logcat.

Ken

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

2013-01-02 Thread Ken H
I'm using the latest version of Eclipse (actually they call it the Android 
Developer Tools, Build: v21.0.0-531062). When I plug it in I get 
nothing...at least in Eclipse. I can see it as a harddrive on the computer 
and surf the folders, but that's it.

Ken

On Wednesday, January 2, 2013 10:36:23 AM UTC-8, Mark Murphy (a Commons 
Guy) wrote:

 Usually the Nexus series only needs the standard ADB driver that's 
 available in the SDK Manager. 


 On Wed, Jan 2, 2013 at 1:32 PM, Ken H hunt...@gmail.com javascript: 
 wrote: 
  Has anyone seen where I can get drivers for the Nexus 4 so I can see it 
 in 
  Eclipse? I'm having a peculiar problem in an app that only happens on 
 the 
  Nexus 4, but Eclipse can't talk to it, so I can't see the Logcat. 
  
  Ken 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 



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

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


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

[android-developers] Re: How long does it take for published Android app to process on to Google Play?

2012-11-20 Thread R H
It currently takes about 2 to 6 hours, with updates seeming to take a 
little bit longer. There is also sometimes a slight crossover for a while 
where it is possible to see your app listed by searching for your developer 
name but visiting the app through that pathway takes you to a Google Play 
content-not-found page.

On Monday, August 6, 2012 7:52:09 PM UTC-5, Muhammad Saeed wrote:

 Also where could I find a direct link for my app?

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

[android-developers] Re: My App Runs fine in the emulator and 2 devices but Hangs on the Galaxy S3 - Ice Cream Sandwich

2012-11-08 Thread H
Given the number of needless changes Samsung make to the core of Android, 
I'm constantly surprised that any Samsung device can even (a) turn on and 
(b) make a phone call. I know that doesn't help you, but hopefully it lets 
you realise you are not alone and since Samsung won't even respond to 
developers on their own developer forums, you have no choice but to try and 
deal with it yourself.

In fact you're more lucky than most people - you have a way of testing your 
app on a real Samsung device - I don't have that luxury. Just stick a lot 
of debugging messages into your app in as many places as possible and then 
install it on your friend's phone and check the logcat. The messages should 
at least point to an area to concentrate on and then keep doing this until 
you hopefully find the problem. Good luck!

On Monday, 5 November 2012 07:01:50 UTC, Rob Thompson wrote:

 My friend installed my app on his phone, and it hangs.  It's just a black 
 screen with the app title in the Google bar.  However, in the emulator, it 
 works on 4.0.3, 4.1, 2.*, etc...It also works on a Huawei 2.2 device, and 
 the Toshiba Thrive 3.1.

 Am I supposed to purchase every Android phone to make sure my app works? 
  What am I supposed to do?

 Thanks.


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

[android-developers] BroadCastEvent not recieved when media files added/removed/edited for MTP devices

2012-10-04 Thread Lohit A H


*Hi folks,*
Stuck with this problem, need more info about this problem i am facing.

*I need to handle events when MediaStore is changed over MTP. I already 
have a receiver for android.intent.action.MEDIA_SCANNER_FINISHED action, 
but it is useful only for Universal Mass Storage(UMS). 
The scanner is not launched over MTP, because the MTP changes the 
MediaStore database directly.*

*This is handled in native gallery properly. Please would you be so kind 
and help me how to detect this events. Thank you very much for any help!*

*Thanks  Regards,
Lohit*

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

[android-developers] 7-Day Notification of Google Play Developer Term Violation

2012-08-07 Thread H
Hi there,

I've just received an email from Google stating:

*REASON FOR WARNING*: Violation of the intellectual 
propertyhttp://www.android.com/us/developer-content-policy.html#IP
 and impersonation or deceptive 
behaviorhttp://www.android.com/us/developer-content-policy.html#impersonation 
provisions 
of the Content Policy. 

I'd really appreciate it if anyone could look at my app's description and 
let me know what they think are the violations..? I'm more than happy to 
fix and correct any problems, but I've read all the linked documents and I 
simply can't work out what's wrong. I think I need a second pair of eyes.

Market link: https://play.google.com/store/apps/details?id=com.h.chromemarks

Any and all comments gratefully appreciated!

I'd like to contact one of the local Google Developer Advocates to get 
their advice, but I can't see any email links to them. Does anyone know how 
to contact them other than via their twitter/blogs/etc..?

Thanks.

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

[android-developers] Re: 7-Day Notification of Google Play Developer Term Violation

2012-08-07 Thread H
Do I just need to add something like:

This app is not affiliated with Google or Google Chrome, nor endorsed by 
Google.


On Tuesday, August 7, 2012 10:22:23 AM UTC+1, H wrote:

 Hi there,

 I've just received an email from Google stating:

 *REASON FOR WARNING*: Violation of the intellectual 
 propertyhttp://www.android.com/us/developer-content-policy.html#IP
  and impersonation or deceptive 
 behaviorhttp://www.android.com/us/developer-content-policy.html#impersonation
  provisions 
 of the Content Policy. 

 I'd really appreciate it if anyone could look at my app's description and 
 let me know what they think are the violations..? I'm more than happy to 
 fix and correct any problems, but I've read all the linked documents and I 
 simply can't work out what's wrong. I think I need a second pair of eyes.

 Market link: 
 https://play.google.com/store/apps/details?id=com.h.chromemarks

 Any and all comments gratefully appreciated!

 I'd like to contact one of the local Google Developer Advocates to get 
 their advice, but I can't see any email links to them. Does anyone know how 
 to contact them other than via their twitter/blogs/etc..?

 Thanks.


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

[android-developers] Re: 7-Day Notification of Google Play Developer Term Violation

2012-08-07 Thread H
Thanks! So you think it's just the logo and the colour scheme looks too 
similar to Chrome..?

Reading that link, do you think the use of Chrome in the app name is also 
what they dislike? It does say If your product is compatible with a Google 
product, make reference to that Google product by using the text for, 
for use with, or compatible with, and be sure to include the ™ symbol 
with the Google trademark. Example: for Google Chrome™...so maybe they 
are suggesting the app is renamed to something like Bookmarks for Google 
Chrome™..?

On Tuesday, August 7, 2012 10:22:23 AM UTC+1, H wrote:

 Hi there,

 I've just received an email from Google stating:

 *REASON FOR WARNING*: Violation of the intellectual 
 propertyhttp://www.android.com/us/developer-content-policy.html#IP
  and impersonation or deceptive 
 behaviorhttp://www.android.com/us/developer-content-policy.html#impersonation
  provisions 
 of the Content Policy. 

 I'd really appreciate it if anyone could look at my app's description and 
 let me know what they think are the violations..? I'm more than happy to 
 fix and correct any problems, but I've read all the linked documents and I 
 simply can't work out what's wrong. I think I need a second pair of eyes.

 Market link: 
 https://play.google.com/store/apps/details?id=com.h.chromemarks

 Any and all comments gratefully appreciated!

 I'd like to contact one of the local Google Developer Advocates to get 
 their advice, but I can't see any email links to them. Does anyone know how 
 to contact them other than via their twitter/blogs/etc..?

 Thanks.


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

[android-developers] Re: 7-Day Notification of Google Play Developer Term Violation

2012-08-07 Thread H
Ok, thanks - you've been very helpful so far!

I'd still like to know more - aren't we supposed to be able to contact our 
android developer advocates to ask them these sort of questions..? Or at 
least get some tips from them..?

On Tuesday, August 7, 2012 12:07:39 PM UTC+1, RichardC wrote:

 I am not going to comment further as I am not qualified to do so.

 On Tuesday, August 7, 2012 11:40:35 AM UTC+1, H wrote:

 Thanks! So you think it's just the logo and the colour scheme looks too 
 similar to Chrome..?

 Reading that link, do you think the use of Chrome in the app name is 
 also what they dislike? It does say If your product is compatible with 
 a Google product, make reference to that Google product by using the text 
 for, for use with, or compatible with, and be sure to include the ™ 
 symbol with the Google trademark. Example: for Google Chrome™...so 
 maybe they are suggesting the app is renamed to something like Bookmarks 
 for Google Chrome™..?

 On Tuesday, August 7, 2012 10:22:23 AM UTC+1, H wrote:

 Hi there,

 I've just received an email from Google stating:

 *REASON FOR WARNING*: Violation of the intellectual 
 propertyhttp://www.android.com/us/developer-content-policy.html#IP
  and impersonation or deceptive 
 behaviorhttp://www.android.com/us/developer-content-policy.html#impersonation
  provisions 
 of the Content Policy. 

 I'd really appreciate it if anyone could look at my app's description 
 and let me know what they think are the violations..? I'm more than happy 
 to fix and correct any problems, but I've read all the linked documents and 
 I simply can't work out what's wrong. I think I need a second pair of eyes.

 Market link: 
 https://play.google.com/store/apps/details?id=com.h.chromemarks

 Any and all comments gratefully appreciated!

 I'd like to contact one of the local Google Developer Advocates to get 
 their advice, but I can't see any email links to them. Does anyone know how 
 to contact them other than via their twitter/blogs/etc..?

 Thanks.



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

[android-developers] Re: 7-Day Notification of Google Play Developer Term Violation

2012-08-07 Thread H
Thanks guys - I've already pinged a couple of them on G+ a few hours ago, I 
was just wondering if that's an appropriate way to contact them or if there 
was some other way...?

On Tuesday, August 7, 2012 12:18:02 PM UTC+1, RichardC wrote:

 http://code.google.com/team/ 


 On Tuesday, August 7, 2012 12:12:46 PM UTC+1, H wrote:

 Ok, thanks - you've been very helpful so far!

 I'd still like to know more - aren't we supposed to be able to contact 
 our android developer advocates to ask them these sort of questions..? Or 
 at least get some tips from them..?

 On Tuesday, August 7, 2012 12:07:39 PM UTC+1, RichardC wrote:

 I am not going to comment further as I am not qualified to do so.

 On Tuesday, August 7, 2012 11:40:35 AM UTC+1, H wrote:

 Thanks! So you think it's just the logo and the colour scheme looks too 
 similar to Chrome..?

 Reading that link, do you think the use of Chrome in the app name is 
 also what they dislike? It does say If your product is compatible 
 with a Google product, make reference to that Google product by using the 
 text for, for use with, or compatible with, and be sure to include 
 the ™ symbol with the Google trademark. Example: for Google 
 Chrome™...so 
 maybe they are suggesting the app is renamed to something like Bookmarks 
 for Google Chrome™..?

 On Tuesday, August 7, 2012 10:22:23 AM UTC+1, H wrote:

 Hi there,

 I've just received an email from Google stating:

 *REASON FOR WARNING*: Violation of the intellectual 
 propertyhttp://www.android.com/us/developer-content-policy.html#IP
  and impersonation or deceptive 
 behaviorhttp://www.android.com/us/developer-content-policy.html#impersonation
  provisions 
 of the Content Policy. 

 I'd really appreciate it if anyone could look at my app's description 
 and let me know what they think are the violations..? I'm more than happy 
 to fix and correct any problems, but I've read all the linked documents 
 and 
 I simply can't work out what's wrong. I think I need a second pair of 
 eyes.

 Market link: 
 https://play.google.com/store/apps/details?id=com.h.chromemarks

 Any and all comments gratefully appreciated!

 I'd like to contact one of the local Google Developer Advocates to get 
 their advice, but I can't see any email links to them. Does anyone know 
 how 
 to contact them other than via their twitter/blogs/etc..?

 Thanks.



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

[android-developers] Re: 7-Day Notification of Google Play Developer Term Violation

2012-08-07 Thread H
Yeah, I'm having to guess that's the issue in my case. I've got some backup 
icons that look nothing like Chrome and I guess the app will be renamed to 
something like Bookmarks for Google Chrome.

I do have to say that I'm annoyed that Google's violation email was so 
vague. They state there is a violation of policy and to read the policy 
document, but the policy documents are just as vague (to me!). I'm quite 
sure the majority of Android developers here are hobbyists or people with 
no real skills in reading legal documents. I just think Google could have 
given a couple of bullet points in the email to indicate what was exactly 
the issue - someone somewhere flagged my app up for one or more specific 
reasons so why can't those reasons have been copied into the mail..? 
Instead, they just gave me the rough areas in error and I have to deduce 
all the problems.

Since Google doesn't allow communication on this subject, I've got 7 days 
to make changes that I think are the problem. There may be other changes 
Google wants that no-one else has spotted yet and I'll get suspended even 
though I'm trying my very best to correct the issues!

But don't get me started, again, on the inability for us to speak to or 
email a real person for help with anything related to Google.. :-)

On Tuesday, August 7, 2012 5:03:18 PM UTC+1, FiltrSoft wrote:

 I don't think this is true.  If that was the case, every news aggregator 
 app would be pulled.  Hell, even Google themselves are violating this as 
 their search results display other people's content within their 
 application (so to speak).

 I think the issue is you cannot use other people's content without 
 crediting them.  You can't create a news aggregrator that pulls in content 
 from sites, but doesn't have a link back to the content. 

 You also can't create an app that looks similar to another 
 app/trademark/company.  The problem with the OP is his app has the word 
 Chrome in it and uses the same colors as Google's Chrome.

 On Tuesday, August 7, 2012 11:32:54 AM UTC-4, Pyp wrote:

 Unfortunately, Google won't talk to you about it at all nor will they 
 give you any more details.
 I personally had an account terminated over a year ago for similar 
 reasons. 
 Long story short. You cannot make a quick buck off of other peoples work, 
 celebrity fame and so forth. 
 Any of your apps need to have 100% original content. Regardless of 
 whether you say unofficial or not affiliated. You simply cannot use 
 anyone's name or a company name or display any of their content from within 
 your app. Like others have mentioned, you may link to their site but it 
 cannot open in your application. 
 I'm sure you are saying to yourself, but what about all the other apps in 
 the market that do this. They will eventually be taken down as well.

 I have a website protected by dmca and would immediately file for 
 infringement if anyone displays my dubstep music, name or logos within 
 their app. 
 I'm not a lawyer but I've been there and done that. Now I use all 
 original content .

 If I were you then I would unpublish any questionable app if you have any 
 more like it. 
 If you get too many apps suspended then you will lose your account 
 indefinitely. 
 If making apps is something you would like to continue then try and find 
 some new ideas. 
 I know its hard but there is a lot of open source projects out there 
 which you can use for development as well as the entire aosp. 
 Just make sure you use Apache 2 projects. 
 If you use any gpl content at all then you need to make your app open 
 source under gpl as well or risk further violations. 

 I really hope this explains the situation enough for people and in more 
 layman terms so people understand. 



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

2012-08-07 Thread H
Thanks all for your comments. I've managed to get hold of Reto on G+ and he 
very kindly gave me some helpful tips.

I'm not sure whether to follow the Chrome Webstore guidelines and go with 
...for Google Chrome or whether it's better to err on the side of caution 
and avoid any mention of it in the app name at all. I'm guessing that the 
people who enforce the Chrome webstore policies are not necessarily the 
ones that enforce the Play Store policies.

Of course, I could call it Bookmarks for Chromium based browsers, but I 
think that's (a) too long and (b) cheeky!

On Tuesday, August 7, 2012 7:12:58 PM UTC+1, xucaen wrote:

 and did you read:

  On Tuesday, August 7, 2012 12:14:59 PM UTC-4, H wrote:

 Yeah, I'm having to guess that's the issue in my case. I've got some 
 backup icons that look nothing like Chrome and I guess the app will be 
 renamed to something like Bookmarks for Google Chrome.





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

2012-08-07 Thread H
Or additionally calling it Bookmarks 24 where 24 is a certain shiny 
elements' periodic number...but that might be lost on, oh, 99.9% of users 
:-)

On Tuesday, August 7, 2012 7:17:41 PM UTC+1, H wrote:

 Thanks all for your comments. I've managed to get hold of Reto on G+ and 
 he very kindly gave me some helpful tips.

 I'm not sure whether to follow the Chrome Webstore guidelines and go with 
 ...for Google Chrome or whether it's better to err on the side of caution 
 and avoid any mention of it in the app name at all. I'm guessing that the 
 people who enforce the Chrome webstore policies are not necessarily the 
 ones that enforce the Play Store policies.

 Of course, I could call it Bookmarks for Chromium based browsers, but I 
 think that's (a) too long and (b) cheeky!

 On Tuesday, August 7, 2012 7:12:58 PM UTC+1, xucaen wrote:

 and did you read:

  On Tuesday, August 7, 2012 12:14:59 PM UTC-4, H wrote:

 Yeah, I'm having to guess that's the issue in my case. I've got some 
 backup icons that look nothing like Chrome and I guess the app will be 
 renamed to something like Bookmarks for Google Chrome.





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

2012-08-07 Thread H
Actually, there's already an app on the Play Store called H Bookmarks so 
I don't want to get caught in another row over copying that name.

I'm thinking I might go for CMarks. It would be annoying to not have 
Chrome in the name as that would promote it higher up the search results. 
But I've got 6 days to do something and I think CMarks should be safe. 
Plus, if anyone asks, the C is for Chromium, honest!

Thanks again for all your valuable comments!

On Tuesday, August 7, 2012 7:29:14 PM UTC+1, xucaen wrote:

 but the 0.1% of users that get it will love it! 
 Funny though, I was thinking H is the symbol for Hydrogen, which has one 
 electron and one proton and your Bookmark app is the one solution for all 
 your bookmark needs. :)



 On Tuesday, August 7, 2012 2:20:51 PM UTC-4, H wrote:

 Or additionally calling it Bookmarks 24 where 24 is a certain shiny 
 elements' periodic number...but that might be lost on, oh, 99.9% of users 
 :-)

 On Tuesday, August 7, 2012 7:17:41 PM UTC+1, H wrote:

 Thanks all for your comments. I've managed to get hold of Reto on G+ and 
 he very kindly gave me some helpful tips.

 I'm not sure whether to follow the Chrome Webstore guidelines and go 
 with ...for Google Chrome or whether it's better to err on the side of 
 caution and avoid any mention of it in the app name at all. I'm guessing 
 that the people who enforce the Chrome webstore policies are not 
 necessarily the ones that enforce the Play Store policies.

 Of course, I could call it Bookmarks for Chromium based browsers, but 
 I think that's (a) too long and (b) cheeky!

 On Tuesday, August 7, 2012 7:12:58 PM UTC+1, xucaen wrote:

 and did you read:

  On Tuesday, August 7, 2012 12:14:59 PM UTC-4, H wrote:

 Yeah, I'm having to guess that's the issue in my case. I've got some 
 backup icons that look nothing like Chrome and I guess the app will be 
 renamed to something like Bookmarks for Google Chrome.





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

2012-08-07 Thread H
Oooh - this is going in a bad direction..

I think *everyone* on here has given me valuable comments and I appreciate 
all of them.

If anything more, this has further confirmed the general confusion and 
vagueness there still is over Google policies and how they apply. The 
recent policy changes may have introduced some welcome improvements 
regarding ads and impersonation, it's just the documentation to help us is 
still sparse and too legal-ese. Given that Google sent me a mail with the 
words violation, removal, termination in it, I think these are the 
sort of times that Google shouldn't be a face-less automaton and there 
should be a human being we can chat to/email - even if they are just a 
first line support.

On Tuesday, August 7, 2012 7:35:44 PM UTC+1, xucaen wrote:

 Oh so you thought I was attempting to quote policy? So it's comprehension 
 you have trouble with. No, I was just trying to be helpful. Next time I 
 decide to help someone, how about I run it by you first just to make sure I 
 don't violate your sensibilities in any way?




 On Tuesday, August 7, 2012 2:23:44 PM UTC-4, MagouyaWare wrote:


 I sure did... your suggestion was to remove all references to Google 
 and Chrome which is not the official policy.  Renaming to Bookmarks for 
 Google Chrome would be compatible with the guidelines posted for using 
 Google and Chrome in the name of his app.  According to those 
 guidelines he shouldn't have to completely remove them...

 If he wants to do that to play it safe is up to him.  Especially since 
 the Play Store is horrible about providing helpful resources on stuff like 
 this and may decide to take his app down even though the name would 
 technically comply with all requirements.

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




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

[android-developers] SlidingDrawer backgrounds

2012-07-30 Thread Ken H
This may be a stupid question (I just started getting into SlidingDrawers), 
but I have some buttons at the bottom of my drawer in a LinearLayout, and I 
want to set the background area around the buttons to a solid color -- the 
draw slides over a map and I can see the map behind the buttons...I don't 
want to see the map behind the buttons.

I know this should be simple, but simple things elude me.

Ken

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

[android-developers] Battery drain using NmeaListner vs LocationListner

2012-07-23 Thread Srinath H S
Hi All,

For a particular application I am working on, I need to parse the raw NMEA 
data to figure out HDOP etc..

As there is no way to limit the NMEA messages to particular interval, 
Hence I am guessing using NMEA wont drain battery as much as using a 
LocationListner with minTime = 0 and minDist = 0.

Does anyone here have some insights ?

Link to question on 
stackoverflowhttp://stackoverflow.com/questions/11519263/android-battery-performance-nmealistner-vs-locationlistner

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

2012-07-06 Thread H
Looking at the javadoc on Signature.verify(), it looks like it has fixed 
one bug and introduced another:

Indicates whether the given signature can be verified using the public key 
or a certificate of the signer. 
This Signature instance is reset to the state of its last initialization 
for verifying and thus can be used to 
 verify another signature of the same signer.

In 4.0 and below, the signature instance wasn't being reset correctly and 
was still valid and simply returned false if you tried to call verify() 
again. Now you have to update() it again before calling the verify() - 
otherwise you get a NullPointer. So I guess they have effectively fixed a 
previous bug and possibly caused a different bug.

I'll see if I can get a text app coded and raise it as a bug - it should 
throw something like a SecurityException instead.

On Thursday, July 5, 2012 2:04:29 PM UTC+1, Nikolay Elenkov wrote:

 On Thu, Jul 5, 2012 at 9:55 PM, H m...@howardb.com wrote: 
  Cheers Nikolay - thanks for the quick update, I'll try your suggestion 
 and 
  see if that cures it. 
  
  Do you know if this has been reported on b.android.com - I've been 
 checking 
  it as normal but not noticed anything that sounds similar to this..? 

 I don't know, haven't checked, but probably not. If you can come up with a 
 simple test case that reproduces this reliably, do report it. (calling 
 verify 
 two/multiple times in a row with the same Signature instance?) 

  
  I presume bouncycastle implementation might go completely in a later 
 release 
  of Android..? 

 Probably not, but don't take my word for it. OpenSSL is not without 
 its flaws and 
 re-implementing everything on top of it is a pain. 

  
  [ But I haven't downloaded the Jelly Bean image yet as I need to upgrade 
 adt 
  and that is always a major headache - I might just have to mail an 
 updated 
  version to some users and ask them to check it works for me. ] 
  

 If you don't want to change your dev environment, simply create a new 
 Eclipse 
 installation, and use that for testing ADT 20, JB, etc. 


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

[android-developers] Jelly Bean errors with LVL

2012-07-05 Thread H
Hi, been seeing some ACRA reports from users on Jelly Bean when my app runs 
the LVL code.

In the LicenseValidator.verify() method, I perform this twice:

sig.verify(Base64.decode(signature))

I do it once to check it returns true, and then I call it again to confirm 
it is still true (this gets around an anti-lvl check which forces the first 
check to be a hard coded true but isn't aware of the second check). But 
it appears the second check is now failing on Jelly Bean:

Caused by: java.security.SignatureException: java.lang.NullPointerException
at 
org.apache.harmony.xnet.provider.jsse.OpenSSLSignature.engineVerify(OpenSSLSignature.java:244)
at java.security.Signature.verify(Signature.java:375)
at com.android.vending.licensing.c.a(SourceFile:135) -SECOND 
sig.verify(..) call.
... 5 more
Caused by: java.lang.NullPointerException
at 
org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_VerifyFinal(Native 
Method)
at 
org.apache.harmony.xnet.provider.jsse.OpenSSLSignature.engineVerify(OpenSSLSignature.java:240)
... 7 more 

Does anyone know if the implementation of Signature or the underlying 
classes has changed..? I'm guessing that since the first check works and 
the second fails, can you now only perform one verify() on a signature and 
after that, the object is no longer valid to be verified again()..?

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

2012-07-05 Thread H
Cheers Nikolay - thanks for the quick update, I'll try your suggestion and 
see if that cures it.

Do you know if this has been reported on b.android.com - I've been checking 
it as normal but not noticed anything that sounds similar to this..?

I presume bouncycastle implementation might go completely in a later 
release of Android..?

[ But I haven't downloaded the Jelly Bean image yet as I need to upgrade 
adt and that is always a major headache - I might just have to mail an 
updated version to some users and ask them to check it works for me. ]

On Thursday, 5 July 2012 13:45:53 UTC+1, Nikolay Elenkov wrote:

 On Thu, Jul 5, 2012 at 9:26 PM, H m...@howardb.com wrote: 
  Hi, been seeing some ACRA reports from users on Jelly Bean when my app 
 runs 
  the LVL code. 
  
  In the LicenseValidator.verify() method, I perform this twice: 
  
  sig.verify(Base64.decode(signature)) 
  
 ... 
  Caused by: java.lang.NullPointerException 
  at 
 org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_VerifyFinal(Native 
  Method) 
  at 
  
 org.apache.harmony.xnet.provider.jsse.OpenSSLSignature.engineVerify(OpenSSLSignature.java:240)
  

  ... 7 more 
  
  Does anyone know if the implementation of Signature or the underlying 
  classes has changed..? I'm guessing that since the first check works and 
 the 
  second fails, can you now only perform one verify() on a signature and 
 after 
  that, the object is no longer valid to be verified again()..? 
  

 Yes, it has changed. In JB, the OpenSSL based provider has been 
 extended to support RSA 
 keys and RSA signatures (SHA1withRSA, etc.). Additionally, this is now 
 the default, so the 
 signature verification code that previously was using the Java crypto 
 provider (BouncyCastle) 
 is now calling the native one (Cf. NativeCrypto.EVP_VerifyFinal -- 
 that's a wrapper for an 
 OpenSSL function). This has presumably done for better performance, 
 but there seem to be 
 a few bugs, I've been getting crashes here and there too. Changing 

 Signature.getInstance(SHA1withRSA) to 
 Signature.getInstance(SHA1withRSA, BC) 

 should make it work as before, but do some testing to be sure. 


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

[android-developers] Re: AccountManager undocumented exception returns unknown authTokenType

2012-06-29 Thread H
No, never found a solution. I think Google restrict access to certain 
services from only Google licensed devices. So devices which don't 
*officially* have access to the Market seems to be the ones that can't 
access certain services. They can access some, such as gmail and gcal, but 
not all. Requests for auth tokens via the AccountManager calls the gsf and 
likely therefore sends the device's model back with the request so Big G 
can know if they would be a licensed device or not trying to access Google 
services.

The only solution in my app was to use OAuth2 explicitly and since that's 
via a different method, it seems to work nicely.

HTH.

On Monday, June 25, 2012 3:42:29 PM UTC+1, Sandeep Android wrote:

 am also failing into same thing. tried many things but no success.

 did you manage to get it done any now?

 thanks a lot.

 On Thursday, January 13, 2011 4:30:12 AM UTC+5:30, H wrote:

 Hi,

 I'm calling the AccountManager like this:

 accountManagerFutureOld = mAccountManager.getAuthToken(mAccount, cl, 
 false, null, null);

 The Account being passed in is a Google account (type=com.google).

 This works perfectly well for thousands of users of my app. But a handful 
 of times each day, some users are getting this error

 java.lang.IllegalArgumentException: unknown authTokenType
 at 
 android.accounts.AccountManager.convertErrorToException(AccountManager.java:1093)
 at android.accounts.AccountManager.access$500(AccountManager.java:74)
 at 
 android.accounts.AccountManager$AmsTask$Response.onError(AccountManager.java:944)
 at 
 android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerResponse.java:69)
 at android.os.Binder.execTransact(Binder.java:287)
 at dalvik.system.NativeStart.run(Native Method)

 This isn't an exception that the javadoc says comes from this method!

 I think this is coming from the 
 AbstractAccountAuthenticator.getAuthTokenLabel(IAccountAuthenticatorResponse,
  
 String) who in turn catches this exception from the concrete 
 authenticator's getAuthTokenLabel(String) method. I've decompiled the gsf 
 and looked in this method, but can't see any throw of 
 an IllegalArgumentException in there. All it really does is call the 
 PackageManager.getPermissionInfo() and retrieve attributes of the 
 PermissionInfo returned.

 Looking at the details for the reports, I *think* these reports are only 
 coming from non google devices - for example the reported models include 
 MID-7AS, XT800, EFREN II, etc. I don't see any mentions of nice devices 
 like Desire or Nexus, etc.

 At first I thought this was just people forcing my app onto a non gapps 
 device, but the fact that they have a Google account on the device which 
 can be happily enumerated and retrieved using the standard api (i.e. 
 type-com.google) makes me think they at least have the full google services 
 framework otherwise they wouldn't have the GoogleLoginService.

 So does anyone know exactly what this error thinks is missing..? Is there 
 any way to spot this before trying the call?



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

2012-05-19 Thread Carl H.
how did you initialize the variable?

On Thursday, 2 February 2012 00:31:22 UTC, avi wrote:

 I found out the problem. sConnectionId variable has to be initialized 
 to -1 instead of 0 

 On Feb 1, 9:43 am, avi avinanku...@gmail.com wrote: 
  I would really appreciate it if someone could help me with the below 
  problem 
  
  On Jan 27, 10:01 am, avi avinanku...@gmail.com wrote: 
  
  
  
  
  
  
  
   All, 
  
   I am trying to develop an UI based automation system and I was 
   exploringAccessibilityEventoption inMonkey. Following are the steps 
   that I did 
   (i) Launchedmonkeyserver socket 
   (ii) Opened Settings app (tried other on board apps as well) 
   (iii) Created a client socket from host machine and connected to 
  monkey'sserver 
   (iv) Issued listviews command 
   (v) I always get the response No accessibility event has occured yet 
  
   Could you please let me know if I am missing something? 
  
   Thanks, 
   Avi

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

[android-developers] Will HTC phones run all the APPs that we develop?

2012-05-03 Thread Dewan Nafees Ahmed H
Am new to Android.
Am planning to buy HTC One V or One S. I read from a blog that HTC
phones dont support many native android apps. I want to make my own
apps and i want to try them on my new mobile. So can i go ahead and
buy HTC or should i stay away from that brand?

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

2012-04-22 Thread h...@isb.co.jp
I implemented a gridview with 7 rows and 3 columns(7,3).
 I am trying to get an item in gridview on touch. (want to get an
touched item not clicked item)
I can get an item but it is not the one I want.


Example: When I touched (2,2), I should get the item in (2,2).
Instead, I got the item in (3,2).

Please check my source code as following:



public class GridviewflickActivity extends Activity implements
OnGestureListener {

private GridView gv;
private GestureDetector gestureDetecotr;
private GestureDetector.OnGestureListener gl;
private ImageView imageview;
private int dragposition;
private ImageAdapter ia;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

gv=(GridView)findViewById(R.id.drag_grid);
ia=new ImageAdapter(this);
gv.setAdapter(ia);
gestureDetecotr = new GestureDetector(this);

}

public boolean dispatchTouchEvent(MotionEvent ev) {
System.out.println(dispatchTouchEvent);
 return gestureDetecotr.onTouchEvent(ev);

}

public class ImageAdapter extends BaseAdapter{
private Context mContext;

public ImageAdapter(Context c){
 mContext = c;
}

public int getCount() {
return mThumbIds.length;
}

public Object getItem(int position) {
return mThumbIds[position];
}

public long getItemId(int position) {
return position;
}

public View getView(int position, View convertView, ViewGroup
parent) {

ImageView imageView1;
if (convertView == null) {
imageView1 = new ImageView(mContext);
imageView1.setLayoutParams(new GridView.LayoutParams(85,
85));
imageView1.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView1.setPadding(8, 8, 8, 8);
} else {
imageView1 = (ImageView) convertView;
}

imageView1.setImageResource(mThumbIds[position]);
return imageView1;

}


private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7
};
}



@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX,
float velocityY) {
System.out.println(onFling);

int x=(int)e1.getX();
int y=(int)e1.getY();
dragposition=gv.pointToPosition(x, y);
if (dragposition==gv.INVALID_POSITION){
return false;
}

int cnt=gv.getChildCount();
int fvp=gv.getFirstVisiblePosition();
imageview=(ImageView)gv.getChildAt(dragposition-fvp);
System.out.println(X: + x + Y:  + y + dragposition:
+dragposition+ fvp:  +fvp);




return true;
}

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


[android-developers] GridView---problem to get item on touch

2012-04-22 Thread h...@isb.co.jp
Hi,everyone.

I am new to android.

I implemented a gridview with 7 rows and 3 columns(7,3).
I am trying to get item in gridview on touch.
I can get item but it is not what I want.

for example
when I touched (2,2),I should get (2,2)  but I got item of (3,2) .

Please check my source code as following,any idea is welcome.


public class GridviewflickActivity extends Activity implements
OnGestureListener{

private GridView gv;
private GestureDetector gestureDetecotr;
private GestureDetector.OnGestureListener gl;
private ImageView imageview;
private int dragposition;
private ImageAdapter ia;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

gv=(GridView)findViewById(R.id.drag_grid);
ia=new ImageAdapter(this);
gv.setAdapter(ia);
gestureDetecotr = new GestureDetector(this);

}


public boolean dispatchTouchEvent(MotionEvent ev) {
System.out.println(dispatchTouchEvent);
 return gestureDetecotr.onTouchEvent(ev);

}

public class ImageAdapter extends BaseAdapter{
private Context mContext;
public ImageAdapter(Context c){
mContext = c;
}

public int getCount() {
return mThumbIds.length;
}

public Object getItem(int position) {
return mThumbIds[position];
}

public long getItemId(int position) {
return position;
}

public View getView(int position, View convertView, ViewGroup
parent) {

ImageView imageView1;
if (convertView == null) {
imageView1 = new ImageView(mContext);
imageView1.setLayoutParams(new
GridView.LayoutParams(85, 85));
 
imageView1.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView1.setPadding(8, 8, 8, 8);
} else {
imageView1 = (ImageView) convertView;
}

imageView1.setImageResource(mThumbIds[position]);
return imageView1;

}


private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7
};
}



@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX,
float velocityY) {
System.out.println(onFling);

int x=(int)e1.getX();
int y=(int)e1.getY();
dragposition=gv.pointToPosition(x, y);
if (dragposition==gv.INVALID_POSITION){
return false;
}

int cnt=gv.getChildCount();
int fvp=gv.getFirstVisiblePosition();
imageview=(ImageView)gv.getChildAt(dragposition-fvp);
System.out.println(X: + x + Y:  + y + dragposition: 
+dragposition+ fvp:  +fvp);




return true;
}

}

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

2012-04-14 Thread H
The best way at the moment to beat the crackers it to use native code
to do things like checking the signature matches an expected hash. You
have to do other fancy stuff like encrypting some of that to further
hide the logic. But don't be under any illusion - native code is
tougher than java and requires a lot more time to get it right. You
also need to plumb it into lots of places in your app and make it
something essential otherwise it's just as easy for a hacker to stub
it out quickly.

Unfortuntely there's a new app in town called LuckyPatcher. I haven't
looked at it in any detail, but I think it patches the dalvik cache so
the app still has the same signature according to the packagemanager,
but different code is executed including a few crafty return true
statements stuck in certain places in your app. But I think they still
have to use similar logic to antilvl to patch your app in the first
place.

I'd suggest you make your lvl code a lot more tricker to subvert -
antilvl uses scripts and easy to see logic. If you do something
different, the scripts backfire and someone has to manually read all
the smali wich takes a lot of time and is easy to miss some crafty
code. So add dummy parameters in most of the methods in the lvl so the
signatures don't match. Add extra logic to some of the important
methods so you can easily spot if the whole method isn't executed.
Change the spelling of some of the enums by adding an extra charcter
here or there. It all makes things a lot harder. Ensure you use
proguard!

On Apr 12, 8:42 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 This blog looks more script kiddie-ish than you'd want... the posts
 are mostly about using smali to do things with apps and inspect your
 bytecode... In general the people you should be afraid of probably
 won't have blogs :-P

 kris

 2012/4/12 Kostya Vasilyev kmans...@gmail.com:







  This is the top result when Googling for android application cracking:

 http://androidcracking.blogspot.com/

  for educational purposes only, of course.

  It should give you an idea of what kinds of attacks your application might
  be subjected to.

  There might be even be a script or two to test your own protection scheme.

  -- K

  12 ÁÐÒÅÌÑ 2012šÇ. 23:17 ÐÏÌØÚÏ×ÁÔÅÌØ Latimerius l4t1m3r...@googlemail.com
  ÎÁÐÉÓÁÌ:

  2012/4/12 Kostya Vasilyev kmans...@gmail.com:
   Class.forName is just as easy to identify
   asšgetPackageManager.getPackageInfo...

   IIRC, the script I was referring to earlier could handle reflection...

  So I assume reflection could only be of significant help if you a) use
  it a lot, not just to hide your security-related calls, and b)
  obfuscate your strings properly. šPoint a) would be hard to achieve in
  my case.

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

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Is there a realistic way to determine whether a device has the guts to run a heavy operation?

2012-04-12 Thread Rob H
Hi everyone,

Has anyone come up with a feasible way to determine whether the device your 
app is running on is a low end, or older model phone versus one of the news 
super computer phones out there or a high end tablet in terms of CPU 
processing speed?  I realize that this line between slow and fast devices 
is subjective, but surely this is something other developers are frequently 
running into when they want to offer advanced functionality to modern / 
high powered devices, versus keeping it simple for low end devices?

I would appreciate any advice on approaches that anyone can offer.

Thanks,

Rob

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

[android-developers] opening a new screen

2012-04-10 Thread H
This might be something incredibly easy but i have no clue how to
accomplish this.

Right now i have code enough to make a simple main menu using standard
buttons and a button listener.  From what i can tell I have the code
that should open up a new activity but when i run it and click the
button nothing shows up.  Here is the code

  @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}

public void startEvents()
{
Button button3 = (Button) findViewById(R.id.button3);

button3.setOnClickListener(new View.OnClickListener() {

public void onClick(View arg0) {
//Starting a new Intent
Intent nextScreen = new
Intent(NACURH2013Activity.this, EventsActivity.class);
startActivity(nextScreen);
}
});
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] having different layouts for the device in portrait and landscape orientations

2012-04-10 Thread H
I have it now changing the layouts but i need to find a way to reevaluate 
the buttonIDs to call on the button listener.  right now when the phone is 
sideways the button causes the app to crash.  is there some sort of on 
orientation change method i can call?

On Tuesday, April 10, 2012 5:02:28 PM UTC-6, TreKing wrote:

 On Tue, Apr 10, 2012 at 11:42 AM, H skiolin...@gmail.com wrote:

 When i did this it decided to not be able to find the different 
 resource directories.


 What does that mean? What the actual symptoms of your problem?


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



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

[android-developers] Re: having different layouts for the device in portrait and landscape orientations

2012-04-10 Thread H
here is the error that logcat throws back

04-10 22:10:25.664: E/AndroidRuntime(1878): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.conference.henry/com.conference.henry.EventsActivity}: 
android.content.res.Resources$NotFoundException: Resource ID #0x7f03

so what it looks like to me is that the button resource ID has not been 
declared so how would I go about doing that?

On Tuesday, April 10, 2012 10:42:57 AM UTC-6, H wrote:

 I have seen a couple different ways in which this has been done 
 the easiest being to make a folder inside of res/ called layout-land and 
 layout-port.  When i did this it decided to not be able to find the 
 different resource directories.  any ideas as to why this happened?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: having different layouts for the device in portrait and landscape orientations

2012-04-10 Thread H
i think so when editing the .xml file i right click on the button and say 
Edit ID... and both of them have the same id (button3) so i thought that 
should make it that the button listener worked for the buttons but i think 
it has a different hex address which causes it to crash

On Tuesday, April 10, 2012 10:42:57 AM UTC-6, H wrote:

 I have seen a couple different ways in which this has been done 
 the easiest being to make a folder inside of res/ called layout-land and 
 layout-port.  When i did this it decided to not be able to find the 
 different resource directories.  any ideas as to why this happened?

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

[android-developers] Cannot get TTS to work

2012-03-01 Thread Ken H
I've tested the APIDemo TestToSpeech example code on my phone (Galaxy
S2) and it works fine, but when I take the *same code* and paste it
into my app the TTS fails. I see an error in the LogCat saying
intTts() failed to bind to service.

I suspect the problem is in the line:

mTts = new TextToSpeech(this, this);

because this is the intitialization line, and the status I see
returned in the onInit() is always -1. I'm initializing WiFi, gps, the
phonestatelistener, among other things in this app. Is there a
sequence I need to follow? Should I start TTS before/after something?

What is the second arguement in the TestToSpeech() arguement really?
The documentation says it's OnInitListener that gets call after
initialization, but that just confuses me further (I'm using this
for both parts). I'm completely stumped.

Ken

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


[android-developers] Re: Cannot get TTS to work

2012-03-01 Thread Ken H
Fixed it.

FYI ~ I moved the whole TTS process from my activity to a class by
itself (other activities are going to be using it anyway), but then,
instead of using this for the first parameter of the TextToSpeech()
function, I used getApplicationContext(). I also initialized mTts
after initializing all my sensors and gps and stuff.

Ken

On Mar 1, 11:25 am, Ken H hunt1...@gmail.com wrote:
 I've tested the APIDemo TestToSpeech example code on my phone (Galaxy
 S2) and it works fine, but when I take the *same code* and paste it
 into my app the TTS fails. I see an error in the LogCat saying
 intTts() failed to bind to service.

 I suspect the problem is in the line:

 mTts = new TextToSpeech(this, this);

 because this is the intitialization line, and the status I see
 returned in the onInit() is always -1. I'm initializing WiFi, gps, the
 phonestatelistener, among other things in this app. Is there a
 sequence I need to follow? Should I start TTS before/after something?

 What is the second arguement in the TestToSpeech() arguement really?
 The documentation says it's OnInitListener that gets call after
 initialization, but that just confuses me further (I'm using this
 for both parts). I'm completely stumped.

 Ken

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

2012-02-27 Thread Fredrik H
Sorry, left out the intent. Updated the code below:

On 24 Feb, 17:29, Fredrik H fredrik.henrics...@gmail.com wrote:
 I'm starting the YouTube app with a request code (1) and try to finish
 it after 30 seconds. However, in ICS 4.0.3 the finishActivity call
 does not finish the YouTube app. Logcat output shows nothing related
 to the finishActivity call and onActivityResult in my activity is not
 called. This worked in Gingerbread and I believe it worked in earlier
 versions of ICS. Is there any other way to achieve the same
 functionality?

(mDataSource is a video ID, e.g. y8Kyi0WNg40)

Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(vnd.youtube: + mDataSource));
intent.putExtra(VIDEO_ID, mDataSource);
final int REQUEST_CODE = 1;
        startActivityForResult(intent, REQUEST_CODE);
        Log.d(LOG_TAG,
                We sleep for 30 seconds while the video plays and
then close the YouTube app.);
        SystemClock.sleep(3);

        Log.d(LOG_TAG, Finishing YouTube app...);
        finishActivity(REQUEST_CODE);

 -F

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


[android-developers] finishActivity on the YouTube app in ICS

2012-02-24 Thread Fredrik H
I'm starting the YouTube app with a request code (1) and try to finish
it after 30 seconds. However, in ICS 4.0.3 the finishActivity call
does not finish the YouTube app. Logcat output shows nothing related
to the finishActivity call and onActivityResult in my activity is not
called. This worked in Gingerbread and I believe it worked in earlier
versions of ICS. Is there any other way to achieve the same
functionality?

startActivityForResult(intent, REQUEST_CODE);
Log.d(LOG_TAG,
We sleep for 30 seconds while the video plays and
then close the YouTube app.);
SystemClock.sleep(3);

Log.d(LOG_TAG, Finishing YouTube app...);
finishActivity(REQUEST_CODE);

-F

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

2012-02-04 Thread H
Have you tried http://lmgtfy.com/?q=protobufl=1 ...? Code, samples,
documentation, all you need.

On Feb 1, 10:24 pm, Zanjani gholipour@gmail.com wrote:
 Hi guys,
 I am new in android developing and need to use protobuff.net because
 the web services already written  in this way.
 could you please send me a sample and help me through it.
 thanks heap guys.

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

2012-01-30 Thread Ken H
Read Professional Android 2 Application Development to understand
Android (if you know Java you have 70% of it already). Get your feet
wet with something simple. My first Android program was basically a
reference app. Nothing fancy, didn't use anything on the internet or
graphics or anything. But it got me use to working with activities and
such.

While Kristopher was a little dickish in his response (it's not off
topic) he is basically right. Again, get your feet, start simple,
build on your experience.

Ken

On Jan 28, 5:57 am, Raymond Evans milleniumsalaman...@gmail.com
wrote:
 Hey everyone I am an amateur developer and I am attempting a side
 scroller game. I know c++ and java but have never had to make anything
 from scratch with either only class assignments. Any advice for a
 first time developer starting out?

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

2012-01-24 Thread Marcelo H
http://developer.android.com/guide/practices/screens_support.html

On 24 jan, 08:42, joaocruz04 jtcru...@gmail.com wrote:
 Hi,

 i'm having a problem:

 i've created a sliding drawer with a specific height, at the bottom of
 the screen.
 The problem is, when the height of the SlidingDrawer is set as
 fill_parent, everything works great, but when i set the height as
 for instance, 150dip, the SlidingDrawer moves to the top of the
 screen..

 is that a common issue? I can't seem to find any user with same
 problem :S

 My code btw:

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:layout_width=wrap_content
 android:layout_height=wrap_content

         SlidingDrawer android:id=@+id/drawer
                 android:layout_height=200dip 
 android:layout_width=fill_parent
                 android:content=@+id/content android:handle=@+id/handle

                 ImageView android:id=@+id/handle
 android:layout_height=wrap_content
                         android:layout_width=wrap_content 
 android:src=@drawable/
 ntrack/ImageView

                 LinearLayout android:layout_height=fill_parent 
 android:id=@+id/
 content
                         android:layout_width=fill_parent 
 android:orientation=vertical

                         TextView android:id=@+id/txt android:text=This is 
 some text
                                 android:layout_width=wrap_content
 android:layout_height=wrap_content
                         /TextView

                         Button android:id=@+id/btn android:text=Click Me
                                 android:onClick=ClickHandler 
 android:layout_width=wrap_content
                                 android:layout_height=wrap_content/Button

                 /LinearLayout
         /SlidingDrawer

 /RelativeLayout

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


[android-developers] Re: Can't update browser bookmarks

2012-01-20 Thread H
The browser uri changed from Honeycomb onwards. It still responds to
Browser.BOOKMARKS_URI (content://browser/...) for legacy, but it
realistically uses the new BrowserContract.AUTHORITY_URI (content://
com.android.browser/...) to access the correct database.

There's code in the Honeycomb+ BrowserProvider that still handles the
old uri, but the browser itself primarily gets it's data from the new
database using BrowserProvider2 and the new uri. It's frustrating, but
you have to simply check the sdk level and from honeycomb plus, use
the new uri and the new fields (see the hidden
android.provider.BrowserContract for a list of them) but if the device
is not yet Honeycomb then you use the original uri and fields.

HTH.

On Jan 19, 1:20 am, James G jkg...@googlemail.com wrote:
 Anybody? Is this a bug in Android / Android Browser?

 On Jan 15, 10:32 pm, James G jkg...@googlemail.com wrote:







  I have come across an awkward issue, and I would very much appreciate
  your help to find out what I am doing wrong.

  I have an app which among other things allows users to edit bookmarks
  in the Android Browser's bookmark store. It uses the
  ContentResolver.query, .insert, .delete, and .update methods, with the
  URI Browser.BOOKMARKS_URI.

  It all works well under Android 2, but on Androids 3 and 4 the .update
  command does not appear to work. I have tried everything I can think
  of, and just cannot make it work.

  To repeat this issue yourself in under one minute, create a new app
  with an Activity named BookmarkTestingActivity and paste in the
  source at the bottom of this post. Also add these two permissions to
  the Manifest:
      uses-permission
  android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS/
      uses-permission
  android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS/

  This source simply inserts a new bookmark with title Test and url
  http://test.com;, attempts to update the url to http://
  updated.test.com, then Logs the url after that attempted change.

  In Android 2, the url correctly changes to http://updated.test.com;
  but in Androids 3 and 4 it remains at http://test.com;. The same
  thing happens when I try updating other fields or using different
  select variables etc.

  I'm testing with the latest SDK in Eclipse, on Android 2.3.3, Android
  3.1, and Android 4.0.3.

  I can work around the problem of course by doing a delete then another
  insert, but that's not the point :)

  Thanks in advance!

  James.

  Source to repeat this issue:
  ===
  public class BookmarkTestingActivity extends Activity {
          private static String LOGTAG = BookmarkTesting;

      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);

          // Insert a new bookmark, with title Test, and url http://
  test.com.
                  ContentValues cv=new ContentValues();
                  cv.put(Browser.BookmarkColumns.TITLE, Test);
                  cv.put(Browser.BookmarkColumns.URL, http://test.com;);
                  cv.put(Browser.BookmarkColumns.BOOKMARK, 1);
                  getContentResolver().insert(Browser.BOOKMARKS_URI, cv);

                  // Update the url of all bookmarks with title Test, to 
  http://
  updated.test.com.
                  cv.clear();
                  cv.put(Browser.BookmarkColumns.URL, 
  http://updated.test.com;);
                  getContentResolver().update(Browser.BOOKMARKS_URI, cv,
  BookmarkColumns.TITLE+=?, new String[]{Test});

                  // Log out what the url is now.
          Cursor cur =
  this.getContentResolver().query(Browser.BOOKMARKS_URI, null,
  BookmarkColumns.TITLE+=?, new String[]{Test}, null);
          if (cur == null) {
                  Log.e(LOGTAG, Cursor null);
          }
          else if (cur.getCount() == 0){
                  Log.e(LOGTAG, Cursor empty);
          }
          else {
                  cur.moveToFirst();
                  Log.e(LOGTAG, URL is now
  +cur.getString(cur.getColumnIndex(BookmarkColumns.URL)));
          }

          this.finish();
      }

  }

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone ever used androidpit's lvl mechanism? Is it trustworthy?

2012-01-11 Thread H
I've been with androidpit for a good few months now. I don't have any
problems or issues with them so far - they seem to have thought things
through quite well and produced (imho) a decent competitor.

1. As Kostya mentioned above, they track the Market and mail you
within an hour if you haven't uploaded to androidpitas well.
2. They allow PayPal which I get regularly asked for.
3. They work in all/many more countries which is also good.
4. They respond to emails quite promptly and helpfully. There may be a
hint of a language barrier (the website appears to run from Germany),
but nothing that would get in the way.
5. Their lvl wraps nicely around the google lvl so I simply have one
paid app with both lvl's included and check market first then
androidpit. (And my free app allows the user to click to upgrade and
opens the market:// link if it works or the appcenter:// link for the
androidpit market instead).
6. If you use the same package name as the one on the Market then
everything just comes together. In the androidpit market client you
then get all the Market description pulled over (so you just need to
maintain it in one place) as well as access to all the Market
comments.
7. For users that already have your app on their device, as soon as
they install the androidpit market then it starts to track and notify
them if there are updates, in the same way as the market client. I
haven't jumped into the amazon pond yet as I've had previous issues
with them, so I'm advising Kindle fire users to simply install the
androidpit market and get my app from there.
8. In the purchase history, you can see the full name of each person
and send them a mail (via androidpit so their email is not divulged).
This was useful when I first got up and running with androidpit so I
let the first handful of people know this was all new and to get back
to me if there were any problems. There weren't anyway. I know the
Android Market allows you something similar via checkout, but this
just seems better and less clunky.
9. As mentioned, you can put your free apps on androidpit as well -
I'm seeing 295 downloads in less than a week since I added my free
app. I'm assuming this is an additional userbase that don't have
access to the official Android Market...?
10. Following on, the androidpit does allow me to get my paid app onto
non-Google-licensed devices such as the Folio, Rockchip tablets, etc.
11. An updated app on their website seems to take effect immediately.
I've had mails from users who have had the Android Market tell them
there was an upgrade, but when they clicked on it to upgrade it said
it was still the old version and took an hour or so before they could
download the upgrade properly.
12. Their Market client isn't as overly graphicy and bloaty as the
Android Market. This may or may not be a good thing, but personally I
like a Market that zips along and isn't busy downloading hundreds of
images for film and book adverts that I will never, ever, click
on.. :-)

On the downside:

1. They will only credit you if you move more then a certain amount
per month - something like $20. Anything less gets carried over to the
next month. May be an issue if you have a low usage app...?
2. If you use PayPal then for some people (I don't know if it's new
accounts, or something to do with user age or location), Paypal will
charge a minimum of $5 and leave the rest as a credit on the user's
PayPal account. I don't believe this is an issue with androidpit, just
an issue to be aware of due to the use of Paypal.
3. Their statistics are not as colourful or pie-chart-able as the
Market ones - just raw numbers of downloads/purchases. Would be nice
to have versions/device models/etc. Though you could possibly scrape
that info by linking through to each user's profile page on androidpit
which lists their current device.
4. The Market comments in their appcenter/website do sometimes trail
behind by more than several days.

So personally, I'm happy with them. YMMV. HTH.

On Jan 10, 6:16 pm, String sterling.ud...@googlemail.com wrote:
 Bump... I too am being solicited by AndroidPIT and am wondering if anyone
 has experiences to share selling apps there. I've had mixed results with
 alternative app stores, so I'm not dismissing this out of hand, but neither
 am I ready to just jump right in.

 Thanks,
 String

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

2012-01-03 Thread H
If you set the callback parameter on the getAuthToken() to null then
the method will block and wait and your activity's lifecycle isn't
interrupted. You can then get the bundle returned and if there is an
intent to ask show the grant credentials screen then you can manually
invoke it with startActivity or the other startActivityForResult.

I've just tried it on my app in the 4.0 emulator and if I disallow the
credentials screen (=no thanks), nothing unexpected happens (other
than a crap load of strictmode exceptions).

HTH.

On Jan 2, 8:09 pm, Spiral123 cumis...@gmail.com wrote:
 it gets stranger.

 In Honeycomb and earlier the app fires off the getAuthToken() request
 on another thread and then goes into onPause() whilst it waits for the
 authentication to happen asynchronously.

 In Ice Cream Sandwich the app goes into onPause(), then onStop() then
 onDestroy().  Then the app fires up an onCreate() again and launches a
 second authentication thread before the first has completed.

 I guess the lifecycle does stipulate that the activity should always
 be prepared to recreate itself cleanly in case the system destroys it
 - maybe ICS is more aggressive in doing that than previous versions of
 Android...any comments or experiences from anyone else?

 Also, I suppose I now need to look at SingleThreadExecutor to block
 unwanted additional auth requests being generated from the activity.
 Does anyone have any better ideas?

 all the best,

 Nick

 On Jan 2, 11:16 am, Spiral123 cumis...@gmail.com wrote:







  Hi all

  Just got my new Galaxy Nexus phone with ICS before New Years and have
  been playing around with the old and new (in development) versions of
  my app on it.

  Whilst doing so, I've come across a problem that has me stumped: if I
  call getAuthToken() in my app to authenticate a new account to my
  Google API of choice and approve the request then everything works
  fine.  If I disallow or hit the back key from the 'Permission request'
  dialog then the app goes into a tailspin and eventually fails with a
  leaked window.

  I spent a couple of hours looking at this and as far as I can tell ICS
  does not seem to be throwing the OperationCanceledException from the
  system-generated Permissions request dialog as it should.

  To verify the problem I've downloaded and replicated the issue with
  the Android Picasa Sample and the google-meeting-scheduler.  The
  projects are set to API Level 14 Build Target.

  Has anyone else seen a similar behavior - or can anyone confirm that
  they don't have the same problem with their apps?  I feel I must have
  had too much turkey over xmas and my addled brain has missed something
  obvious.

  Nick

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Slow scrolling in Date/TimePicker using Holo theme

2011-12-16 Thread Matt H
Hi Dirk,

I had the same problem (noticed it yesterday, too, coincidentally!).
The issue is that the ScrollView is intercepting and stealing the
touch events once your finger moves outside of the Date/Time Picker
controls.

To work around this, I created sub classes of Date/TimePicker which
prevent the parent from stealing events after the initial touch down
(see below). If you use those in your layout XML instead, you should
find the problem goes away.

Hope that is useful!

Matt.


import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.ViewParent;
import android.widget.DatePicker;

public class CustomDatePicker extends DatePicker
{
public CustomDatePicker(Context context, AttributeSet attrs, int
defStyle)
{
super(context, attrs, defStyle);
}

public CustomDatePicker(Context context, AttributeSet attrs)
{
super(context, attrs);
}

public CustomDatePicker(Context context)
{
super(context);
}

@Override
public boolean onInterceptTouchEvent(MotionEvent ev)
{
/* Prevent parent controls from stealing our events once we've
gotten a touch down */
if (ev.getActionMasked() == MotionEvent.ACTION_DOWN)
{
ViewParent p = getParent();
if (p != null)
p.requestDisallowInterceptTouchEvent(true);
}

return false;
}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Sudden rash of license check failures in LVL. Anyone else?

2011-11-03 Thread Ben H
yeah, probably. i think some custom ROMs let you tweak the reported
screen dpi.

On Nov 2, 12:20 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 He mentions resolution at 200 - a custom kernel?

 02.11.2011 22:35, Ben H пишет:









  some clues are starting to pop up for me. one user i'm working with
  says that he's using an older version of the market app.

  I am using the market 2.3.6 because there is an issue where if
  running your resolution at 200, which I do, the market says all kinds
  of apps are not compatible with my phone.  So using the 2.3.6 allows
  me to run my resolution at 200 and also have access to all apps in the
  market.

  since the market app is responsible for sending/receiving license
  checks to the license server, it would stand to reason that this could
  be the cause. if google changed the way license checks work on the
  server, and only the newer market app knows how to properly execute a
  license check, then older versions of the market app would fail.

  On Nov 2, 2:14 am, Pentsupp...@apps.dinglisch.net  wrote:
  I had one yesterday.

  Since I didn't have any for the preceeding 18 months, I guess you can
  call that a rash.

  Pent

 --
 Kostya Vasilyev

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

2011-11-03 Thread Phil H
OK my bad, I was punching in the wrong MD5.

On Nov 2, 8:45 pm, Phil H p...@surfsoftconsulting.com wrote:
 I've been developing a Google Maps based application and for a few
 weeks I've been running with a Maps API key generated from the
 keystore used for signing code deployed over USB to my development
 phone. I've been able to see maps in the MapView, zoom, pan and add my
 own layers.

 This evening I got myself a maps API key based on the certificate I
 use for publishing to the marketplace. I substituted the 'debug' key
 for the new maps API key I've obtained, and then I exported the
 application to an APK file, using my certificate.

 I've manually installed the APK file onto my development phone but now
 the maps refuse to display. In logcat I'm seeing the following
 exception:

 11-02 20:33:28.949: W/System.err(3090): IOException processing: 26
 11-02 20:33:28.959: W/System.err(3090): java.io.IOException: Server
 returned: 3
 11-02 20:33:28.959: W/System.err(3090):         at
 android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.re 
 adResponseData(BaseTileRequest.java:
 115)
 11-02 20:33:28.959: W/System.err(3090):         at
 android_maps_conflict_avoidance.com.google.googlenav.map.MapService
 $MapTileRequest.readResponseData(MapService.java:1473)
 11-02 20:33:28.959: W/System.err(3090):         at
 android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques 
 tDispatcher.processDataRequest(DataRequestDispatcher.java:
 1117)
 11-02 20:33:28.959: W/System.err(3090):         at
 android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques 
 tDispatcher.serviceRequests(DataRequestDispatcher.java:
 994)
 11-02 20:33:28.959: W/System.err(3090):         at
 android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques 
 tDispatcher
 $DispatcherServer.run(DataRequestDispatcher.java:1702)
 11-02 20:33:28.959: W/System.err(3090):         at
 java.lang.Thread.run(Thread.java:1019)

 A quick bit of research suggests that either my certificate is expired
 or the API key I am using is plain wrong. However...
 - When exporting the application I am told that my certificate expires
 some time in 2061.
 - I've tried requesting the API key again to check that I have the
 right key - I do.
 - I've not made any mistakes pasting the API Key into my layout files.

 To complete the picture:
 - Development platform is OS X Lion, Eclipse 3.7.1 and SDK 15.
 - The target API level is 7 (2.1)
 - My phone (a Nexus One) is running Android 2.3.6.

 Any suggestions much appreciated...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Sudden rash of license check failures in LVL. Anyone else?

2011-11-02 Thread Ben H
some clues are starting to pop up for me. one user i'm working with
says that he's using an older version of the market app.

I am using the market 2.3.6 because there is an issue where if
running your resolution at 200, which I do, the market says all kinds
of apps are not compatible with my phone.  So using the 2.3.6 allows
me to run my resolution at 200 and also have access to all apps in the
market.

since the market app is responsible for sending/receiving license
checks to the license server, it would stand to reason that this could
be the cause. if google changed the way license checks work on the
server, and only the newer market app knows how to properly execute a
license check, then older versions of the market app would fail.


On Nov 2, 2:14 am, Pent supp...@apps.dinglisch.net wrote:
 I had one yesterday.

 Since I didn't have any for the preceeding 18 months, I guess you can
 call that a rash.

 Pent

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


[android-developers] com.google.android.maps.MapView and server returned 3

2011-11-02 Thread Phil H
I've been developing a Google Maps based application and for a few
weeks I've been running with a Maps API key generated from the
keystore used for signing code deployed over USB to my development
phone. I've been able to see maps in the MapView, zoom, pan and add my
own layers.

This evening I got myself a maps API key based on the certificate I
use for publishing to the marketplace. I substituted the 'debug' key
for the new maps API key I've obtained, and then I exported the
application to an APK file, using my certificate.

I've manually installed the APK file onto my development phone but now
the maps refuse to display. In logcat I'm seeing the following
exception:

11-02 20:33:28.949: W/System.err(3090): IOException processing: 26
11-02 20:33:28.959: W/System.err(3090): java.io.IOException: Server
returned: 3
11-02 20:33:28.959: W/System.err(3090): at
android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:
115)
11-02 20:33:28.959: W/System.err(3090): at
android_maps_conflict_avoidance.com.google.googlenav.map.MapService
$MapTileRequest.readResponseData(MapService.java:1473)
11-02 20:33:28.959: W/System.err(3090): at
android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:
1117)
11-02 20:33:28.959: W/System.err(3090): at
android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:
994)
11-02 20:33:28.959: W/System.err(3090): at
android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher
$DispatcherServer.run(DataRequestDispatcher.java:1702)
11-02 20:33:28.959: W/System.err(3090): at
java.lang.Thread.run(Thread.java:1019)

A quick bit of research suggests that either my certificate is expired
or the API key I am using is plain wrong. However...
- When exporting the application I am told that my certificate expires
some time in 2061.
- I've tried requesting the API key again to check that I have the
right key - I do.
- I've not made any mistakes pasting the API Key into my layout files.

To complete the picture:
- Development platform is OS X Lion, Eclipse 3.7.1 and SDK 15.
- The target API level is 7 (2.1)
- My phone (a Nexus One) is running Android 2.3.6.

Any suggestions much appreciated...

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


[android-developers] Sudden rash of license check failures in LVL. Anyone else?

2011-11-01 Thread Ben H
i have an app in the android market that uses the LVL. it's bone stock
- not modified from the original source. yeah yeah, you're supposed to
alter it, but the LVL cracking apps out there are so good now that
it's pointless to try to fool them, IMO. not pointless, just not worth
the effort, IMO. i'm just trying to keep honest people honest.

anyway, over the past few days, i'm suddenly getting a rash of
complaints from users that the license check is failing in my app. one
user sent me some logcat output that included this:

11-01 12:15:46.192 I/LicenseChecker( 1102): Check timed out.

nothing has changed in my app. i'm wondering if there's something
wrong with the license servers. is anyone else experiencing this
problem?

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


[android-developers] Re: Sudden rash of license check failures in LVL. Anyone else?

2011-11-01 Thread Ben H
On Nov 1, 5:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 I had one user report a problem, but then again, in my app I don't
 fail the license check if unless it is not successful for long periods
 of time (days).

that's interesting. so that means that the license check was failing
for many days before your app finally notified the user?

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

2011-11-01 Thread Ben H

On Nov 1, 10:40 pm, kapnk...@gmail.com wrote:
 Can i attach cookie to json rpc object in client side  sent a
 request?
 If yes How?

yes, you can. create an instance of org.apache.http.cookie.Cookie, and
add it to an instance of
org.apache.http.impl.client.BasicCookieStore.BasicCookieStore, then
add that to your BasicHttpContext. then it goes something like this:

AndroidHttpClient client = AndroidHttpClient.newInstance(USER_AGENT);

BasicHttpContext httpContext = new BasicHttpContext();
httpContext.setAttribute(ClientContext.COOKIE_STORE, mCookieStore);

HttpGet request = new HttpGet(url);
HttpResponse httpResponse = client.execute(request, httpContext);

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


[android-developers] ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H
since updating ADT to r14, i've been plagued by the bug described here

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

and here

http://stackoverflow.com/questions/7823312/problems-building-with-adt-r14

i was surprised that i couldn't find a thread about this bug in this
group. i'm hoping someone here has some insight. i've tried all the
solutions offered so far, and none of them work for me.

my comment from the bug report: i'm having this problem too. my app
only references one library - my LVL library. i have tried removing
the reference, cleaning .classpath, and .project, and removing
references to source folders. i've cleaned the project, opened and
closed it, and waved a dead chicken over my keyboard. nothing has
worked. please help!

my console output with stack trace:

[2011-10-20 23:32:04 - MyApp] Dx UNEXPECTED TOP-LEVEL
EXCEPTION:java.lang.IllegalArgumentException: already added: Lcom/
android/vending/licensing/AESObfuscator;
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
123)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processClass(Main.java:486)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.access$400(Main.java:67)
[2011-10-20 23:32:04 - MyApp] Dxat com.android.dx.command.dexer.Main
$1.processFileBytes(Main.java:394)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
245)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
131)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
109)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processOne(Main.java:418)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.dx.command.dexer.Main.run(Main.java:206)
[2011-10-20 23:32:04 - MyApp] Dxat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2011-10-20 23:32:04 - MyApp] Dxat
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2011-10-20 23:32:04 - MyApp] Dxat
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2011-10-20 23:32:04 - MyApp] Dxat
java.lang.reflect.Method.invoke(Unknown Source)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:
179)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:
729)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:
602)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
629)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
172)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
282)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
363)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Project$1.run(Project.java:545)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
524)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.core.internal.resources.Project.build(Project.java:123)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.project.ProjectHelper.build(ProjectHelper.java:
869)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:
84)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:
290)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access
$0(ExportWizard.java:229)
[2011-10-20 23:32:04 - MyApp] Dxat
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard
$1.run(ExportWizard.java:214)
[2011-10-20 23:32:04 - MyApp] Dxat
org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)
[2011-10-20 23:32:04 - MyApp] Dx 1 error; 

[android-developers] Android repository missing platform packages? Help!

2011-10-21 Thread Ben H
i recently reinstalled the android sdk because of this infuriating
build bug in r14. when i open the android sdk manager, i do not see
any platform packages available. i installed r12 of the sdk tools, and
i see the r14 package available, but nothing else. where's all the
platform packages, docs, etc.? see this screenshot of the sdk manager:

http://i.imgur.com/uyBAE.png

if you look at the android repository.xml, it also only has the
platform tools packages.

http://dl.google.com/android/repository/repository.xml

shouldn't it have everything, not just the tools packages? is there
another url that i need to add for the platform packages? thanks.

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


Re: [android-developers] ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H
thanks, xavier, but i tried that and it didn't work for me.

i'm trying to reinstall the entire sdk because of this problem, but am now 
encountering problems downloading the platform packages. they seem to be 
missing from the android repository. shouldn't there be more listed here 
than just the sdk tools? 
http://dl.google.com/android/repository/repository.xml

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

[android-developers] Re: Android repository missing platform packages? Help!

2011-10-21 Thread Ben H
Hmm so does that mean that anything prior to r14 is unsupported? That
would be extremely disappointing. I can't use r14 right now because of
the build bug. None of the available fixes work for me. I'm completely
dead in the water here.

On Oct 21, 2:25 pm, Mark Murphy mmur...@commonsware.com wrote:
 You need the r14 tools AFAIK.





 On Fri, Oct 21, 2011 at 5:19 PM, Ben H benhirash...@gmail.com wrote:
  i recently reinstalled the android sdk because of this infuriating
  build bug in r14. when i open the android sdk manager, i do not see
  any platform packages available. i installed r12 of the sdk tools, and
  i see the r14 package available, but nothing else. where's all the
  platform packages, docs, etc.? see this screenshot of the sdk manager:

 http://i.imgur.com/uyBAE.png

  if you look at the android repository.xml, it also only has the
  platform tools packages.

 http://dl.google.com/android/repository/repository.xml

  shouldn't it have everything, not just the tools packages? is there
  another url that i need to add for the platform packages? 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

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

 _Android Programming Tutorials_ Version 4.0 Available!

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


[android-developers] Re: ADT r14 - Conversion to Dalvik format failed with error 1

2011-10-21 Thread Ben H

That's a major problem for me. I need to release an update to my
Android app right now, and I'm stuck. I can't use r14, and I can't go
back to r12. Is there a place where I can download the platform
packages directly?

On Oct 21, 2:28 pm, Xavier Ducrohet x...@android.com wrote:
 R14 use a different repository file due to a schema change.





 On Fri, Oct 21, 2011 at 2:24 PM, Ben H benhirash...@gmail.com wrote:
  thanks, xavier, but i tried that and it didn't work for me.

  i'm trying to reinstall the entire sdk because of this problem, but am now
  encountering problems downloading the platform packages. they seem to be
  missing from the android repository. shouldn't there be more listed here
  than just the sdk tools?
 http://dl.google.com/android/repository/repository.xml

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

 Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Android repository missing platform packages? Help!

2011-10-21 Thread Ben H
yes, i did try the suggested solution at 
http://tools.android.com/knownissues. it didn't work.

thanks for the workaround to use r12. i'll try it. an ftp site would be nice 
in the future, as a backup to the sdk manager.

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

[android-developers] How to disable physical button

2011-10-15 Thread martin h
Hello android developers google group,
Does anyone know how to override the physical button on the screen, so the
down button, up button will not work if it is pressed and so the focus will
never change and unless the user presses the touch screen.?
Please the help
thanks im looking foward the answer,

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

Re: [android-developers] How to disable physical button

2011-10-15 Thread martin h
Thanks Mark Murphy for your answer. Can i ask some help
@Override
 public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
switch(keyCode){
case KeyEvent.KEYCODE_DPAD_DOWN:
  *  // Do you mean like this... Now it catch down button event when
it pressed
// What code so that down button not work? Like something for
cancel action button down*.


break;


}
return false;
}

thanks

On Sat, Oct 15, 2011 at 6:14 PM, Mark Murphy mmur...@commonsware.comwrote:

 In your activity, override onKeyDown() and consume the events. For up
 and down, this should work.

 Note, though:

 -- not all button events get to onKeyDown() (notably, HOME does not)

 -- many users will not like you very much, particularly blind users
 and users of Google TV, where the pointing device is rather important

 -- this only works within your own activities where you implement the
 onKeyDown() method; you cannot do this for the whole device

 On Fri, Oct 14, 2011 at 12:45 PM, Javlearner hfire...@gmail.com wrote:
  Hello android developers google group,
  Does anyone know how to override the physical button on the screen, so
  the down button, up button will not work if it is pressed and so the
  focus will never change and unless the user presses the touch screen.?
  Please the help
  thanks im looking foward the answer,
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



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

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

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


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

2011-10-15 Thread martin h
Thanks for your answer i will try it. :)

On Sat, Oct 15, 2011 at 6:56 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sat, Oct 15, 2011 at 7:23 AM, martin h hfire...@gmail.com wrote:
  Thanks Mark Murphy for your answer. Can i ask some help
  @Override
   public boolean onKeyDown(int keyCode, KeyEvent event) {
  // TODO Auto-generated method stub
  switch(keyCode){
  case KeyEvent.KEYCODE_DPAD_DOWN:
  // Do you mean like this... Now it catch down button event
 when
  it pressed
  // What code so that down button not work? Like something for
  cancel action button down.

 You don't do anything, other than return true to indicate you consumed
 the event.

 Now, it is entirely possible that you will also need to subclass some
 widgets in your layout and override onKeyDown() in them as well.
 onKeyDown() only makes it to the activity for events a widget does not
 itself handle.

 Again, I strongly discourage this, as users who use the pointing
 device will not appreciate what you are doing.

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

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

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


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

[android-developers] ANR Issue with ANR Reason: No touched window

2011-10-02 Thread H. Kwon
I got a ANR message with the below log. As I know, ANR would be
occured when doing too long task.
but, I'm wondering about ANR Reason: No touched window.  what kind
of situation is it?
Does anybody have an idea?

09-20 20:16:40.363  1619  1648 D InputDispatcher: Waiting because
there is no touched window but there is a focused application that may
eventually add a new window: AppWindowToken{412cf538
token=ActivityRecord{40bf3cf8 com.xxx.abcdapp/
com.xxx.yyy.SomeActivity}}.
09-20 20:16:40.363  1619  1648 E InputDispatcher: Key Dispatching ANR,
currentTime=13540032969495
09-20 20:16:40.363  1619  1648 E InputDispatcher: ANR Window:
AppWindowToken{412cf538 token=ActivityRecord{40bf3cf8 com.xxx.abcdapp/
com.xxx.yyy.SomeActivity}}
09-20 20:16:40.363  1619  1648 E InputDispatcher: ANR Reason: No
touched window
09-20 20:16:40.363  1619  1648 E InputDispatcher: ANR Event Type:
MotionEvent [eventTime=13535030985000]
09-20 20:16:40.363  1619  1648 E InputDispatcher: ANR Event Action:
Down
09-20 20:16:40.363  1619  1648 E InputDispatcher: DUMP OF DISPATCH
STATE:
09-20 20:16:40.363  1619  1648 E InputDispatcher:   DispatchEnabled: 1
09-20 20:16:40.363  1619  1648 E InputDispatcher:   DispatchFrozen: 0
09-20 20:16:40.363  1619  1648 E InputDispatcher:
FocusedApplication: name='AppWindowToken{412cf538
token=ActivityRecord{40bf3cf8 com.abcdapp/com.xxx.yyy.SomeActivity}}',
dispatchingTimeout=5000.000ms
09-20 20:16:40.363  1619  1648 E InputDispatcher:   FocusedWindow:
name='null'
09-20 20:16:40.363  1619  1648 E InputDispatcher:   TouchDown: false
09-20 20:16:40.363  1619  1648 E InputDispatcher:   TouchSplit: false
09-20 20:16:40.363  1619  1648 E InputDispatcher:   TouchDeviceId: -1
09-20 20:16:40.363  1619  1648 E InputDispatcher:   TouchSource:
0x
09-20 20:16:40.363  1619  1648 E InputDispatcher:   TouchedWindows:
none

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

2011-10-01 Thread Phil H
In the developer console active installs is supposed to be the
number of devices that the software is currently installed on. I know
how many successful sales have gone through Google Checkout (this is
lower than the total installs on the developer console which I think
includes purchases cancelled inside the 15 minute returns window) and
the active installs figure is 40% higher than the total of successful
sales.

My conclusion, given that most of my sales are in the USA, is that
couples/families where at least a couple of people have an Android
phone may be sharing a generic Google Checkout account so that they
can buy an app once and share it around for free.

That's ok-ish when there is no ongoing cost of running a back end
server. It's going to destroy my business model if I need a back end
server though. I'm considering using the Google Order Number as a
licence key, thereby allowing multiple installations, but no
simultaneous use on different devices. And I'll write up a licence to
reflect that.

On Oct 1, 7:17 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 I didn't read the rest of your question when I saw this:

 40% of users have my application installed on more than one
 device.

 How do you know this?  If you go by the numbers given to you on the
 Developer Console, those numbers are at least misleading, and probably
 completely wrong.   I have very, very hard to believe that 40% of
 Android users have multiple devices with the same Google Id tied to
 the,

 On Oct 1, 7:41 am, Phil H p...@surfsoftconsulting.com wrote:







  I'm looking at the LVL code and had a question about user identity and
  the DeviceLimiter interface. I've one app in the Android Market that
  uses LVL in its recommended form, so users can install the application
  on any device they have set up their account on. Early indications are
  that the software is being repeat-installed at a higher rate than I'd
  expect - 40% of users have my application installed on more than one
  device. That seems a bit high but, for that application in particular,
  it is no more significant than some lost sales - there are no ongoing
  running costs for me to support.

  It is enough to make me concerned about my next app though, which
  requires a server in the cloud. Application sales should cover the
  cost of this but if the repeat installation rate is high, my
  application may not be sustainable in the medium to long term - server
  costs will eat into income and I could end up running at a significant
  loss - and the more popular the app becomes, the bigger that problem
  is. So this got me thinking. Repeat installations by one used are not
  a problem, but one core function will account for the majority of
  server load - both processing and bandwidth. So, my tentative thought
  is that if a user is currently using that core function on one of
  their devices, they will not be able to use that function on any other
  until they are done with it on the first device.

  To be able to implement this I need access to a piece of data that is
  common to all the installations, which brings me round to the
  DeviceLimiter interface. Is the userId supplied here the same for a
  given application, purchased by a single user, regardless of the
  device it is installed on? Or is it the ANDROID_ID for the device? I
  don't want any identifying information (like an email address), I just
  want to be able to spot, from my server code, when multiple instances
  of a single purchase are using my (relatively) expensive resources
  simultaneously.

  A fall back solution would involve the user putting in their Google
  Checkout order number to activate the application - is there a service
  exposed to securely obtain details about an order that my server could
  make use of? All I really need is to know is the application
  purchased.

  A bit rambling I know, but any suggestions on ways of tackling this
  issue are most welcome.

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

2011-10-01 Thread Phil H
OK after playing with two different accounts across three different
devices... the userId passed to DeviceLimiter is maintained across
devices and between wipes. So, if a user has purchased an LVL licenced
application, DeviceLimiter will always receive the same userId
string.

Therefore, it is possible to tell how many devices an application is
being used across by using, for example, a cookie type approach.

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


[android-developers] Re: LVL and InApp Billing

2011-10-01 Thread Phil H
The only thing I would say is that, in my recent investigation into
LVL, you can see how many devices are using a single purchased
licence, which may be useful.

On Oct 1, 7:54 pm, androidmediadeveloper kamathaj...@gmail.com
wrote:
 Have noticed several posts on this issue but no specific resolution,
 so, trying again. We are going to market with a paid app built using
 Google's InApp billing infrastructure. We've secured the purchase
 database with all the security best practices and it seems to be
 working well. Is there anything specific to gain in terms of security
 or performance, or any advantages in general that people see in
 additionally implementing the license verification via LVL ?

 At this point I am thinking no, but if people have advice to share,
 I'd appreciate it and will help us make a better informed decision.

 Thanks!

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


[android-developers] LVL, DeviceLimiter and userId

2011-09-30 Thread Phil H
I'm looking at the LVL code and had a question about user identity and
the DeviceLimiter interface. I've one app in the Android Market that
uses LVL in its recommended form, so users can install the application
on any device they have set up their account on. Early indications are
that the software is being repeat-installed at a higher rate than I'd
expect - 40% of users have my application installed on more than one
device. That seems a bit high but, for that application in particular,
it is no more significant than some lost sales - there are no ongoing
running costs for me to support.

It is enough to make me concerned about my next app though, which
requires a server in the cloud. Application sales should cover the
cost of this but if the repeat installation rate is high, my
application may not be sustainable in the medium to long term - server
costs will eat into income and I could end up running at a significant
loss - and the more popular the app becomes, the bigger that problem
is. So this got me thinking. Repeat installations by one used are not
a problem, but one core function will account for the majority of
server load - both processing and bandwidth. So, my tentative thought
is that if a user is currently using that core function on one of
their devices, they will not be able to use that function on any other
until they are done with it on the first device.

To be able to implement this I need access to a piece of data that is
common to all the installations, which brings me round to the
DeviceLimiter interface. Is the userId supplied here the same for a
given application, purchased by a single user, regardless of the
device it is installed on? Or is it the ANDROID_ID for the device? I
don't want any identifying information (like an email address), I just
want to be able to spot, from my server code, when multiple instances
of a single purchase are using my (relatively) expensive resources
simultaneously.

A fall back solution would involve the user putting in their Google
Checkout order number to activate the application - is there a service
exposed to securely obtain details about an order that my server could
make use of? All I really need is to know is the application
purchased.

A bit rambling I know, but any suggestions on ways of tackling this
issue are most welcome.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 calculate the distance between two degree values? (for example: 350º to 15º = 25º / 250º to 190º = 60º)

2011-09-29 Thread Ken H
I would like to reiterate what JackN said -- you don't have enough
info. But a good place to start would here: 
http://www.movable-type.co.uk/scripts/latlong.html

For those interested, a routine for the distance between two points
(on Earth) in kilometers is:

public double gps2m(double lat_a, double lng_a, double lat_b, double
lng_b) {
double R = 6371;//km
double dLat = (lat_b - lat_a) * (Math.PI / 180.0);
double dLon = (lng_b - lng_a) * (Math.PI / 180.0);
double a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.cos(lat_a *
(Math.PI / 180.0))
* Math.cos(lat_b * (Math.PI / 180.0)) * Math.sin(dLon/2) *
Math.sin(dLon/2);
double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
return R * c;
}

where lat_a and lng_a are your start coordinates and lat_b and lng_b
are your stop coordinates.

Ken 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: A user of pirated? version seeking support

2011-09-02 Thread H
No, proguard only touches the java stuff. The xml files are left exactly as 
they were. Most likely they didn't replace the strings.xml, they simply 
added another version with russian translation in a strings-ru folder. You 
can get the strings out with aapt tool from your sdk install, so that's a 
very easy thing to 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

[android-developers] Partial invalidation in custom Android view with hardware acceleration

2011-08-30 Thread Matt H
Hi,

I've got a custom View in my application which fills the entire
activity.

In most cases, when I want to refresh the control I call invalidate()
without any parameters.

However, in certain circumstances, where I'm only changing a small
area of the control, I call invalidate(Rect) to avoid redrawing the
entire screen. This is important because in these situations I need
the update to be as fast as possible.

This seems to work fine, however, when I enable hardware acceleration
in Honeycomb (i.e. set android:hardwareAccelerated=truein
AndroidManifest.xml), the partial redraw does not seem to work.

This can be seen if I do Log.d(FOO, canvas.getClipBounds()) in my
onDraw() method; the output simply shows that the whole control is
being updated, whereas with hardware acceleration disabled, I get the
correct region being output.

Is there any way to make partial invalidation work when using hardware
acceleraton?

Many thanks, Matt

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

2011-08-15 Thread H
Lovin' 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] Re: Windows 7, emulator, and orientation changes

2011-07-31 Thread H
Alternatively, just edit the default.keyset file in the root of the 
.android folder. This holds the mappings for keys to functions. If the 
laptop doesn't support various key combos, you can change them in here and 
they take effect the next time you start an emulator. Since it's got 
default in the name, I guess it's possible you could put a different named 
file in the avd folder to override the default as well, if need be.

Just tried this and remapped the Ctrl-F12 to F10, bounced the avd and now 
the screen rotates when I press F10.

HTH.

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

2011-07-31 Thread H
You simply call getSupportLoaderManager() which you inherit from 
FragmentActivity.

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

2011-07-22 Thread H@ri
Hi,

I am loading the data in a webview. Some times data contain you tube
videos. At that time it does not preview the you tube video. Any
solution please let me know. Its urgent...

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

2011-07-20 Thread H@ri
In my app i am using web view. In that i am loading the page
http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html.
This page contain youtube videos. These are not displaying untill i
click on them. If we open the same from the browser then these are
showing properly. My code is :

wv = (WebView)findViewById(R.id.
wv.getSettings().setJavaScriptEnabled(true);
wv.loadUrl(http://apiblog.youtube.com/2010/07/new-way-to-embed-
youtube-videos.html);

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


[android-developers] Multicast and WiFi tethering

2011-07-19 Thread Erik H
Hi,

I got an application that sends and receives UDP messages using a
MulticastSocket. It works fine between two phones when both are
connected to a normal WiFi AP (e.g., my WiFi at home). However, when
either device has WiFi tethering active and the other device is
connected to this network sending Multicast packages doesn't work
anymore. If I set-up a third device which has WiFi tethering enabled
and let the first two devices connect to this network it works as
expected between the two devices (however, the third device with
tethering active cannot receive or send Multicast packages).

My conclusion is that a device that has WiFi tethering enabled cannot
send or receive Multicast packages. Is this an expected behavior or
should I consider it a bug?

Thanks!

// Erik

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


[android-developers] Re: My anti-cracking \ anti-reverse-engineering function

2011-07-09 Thread H
Good idea, but I can see immediately how anti-lvl can be adjusted to get 
around this with only a couple of lines of xml. I don't want to be 
dismissive of all the effort you've done here, but I've spent just as much 
time coming up with cunningly similar solutions only to see them broken by a 
single line of code added by a smali hack.

So, to get around your issue, it simply requires you to stick this in the 
xml in anti-lvl:

1. Find a method in the app that accepts a Context, String, String as 
parameters
2. If this method includes a mention to getCrc() method of the class 
ZipEntry then continue.
3. Stick a return to the top of the method.

I'm deliberately being vague here, but anyone who has looked in anti-lvl 
should be able to see that getting round your fix is *exactly* the sort of 
thing anti-lvl has been built for.

However you can make this better by using the value of the crc for something 
in the app - e.g. compute the id for the main layout from the value of the 
crc and other fields added/subtracted/multiplied/etc. (NOTE: just an 
example, the id *may* change over time). If you can do something like that 
then if they hack the app to exit the method too soon, the app won't have 
the constructed the required value and later parts will fail. I strongly 
suggest splitting your method detailed above into several small pieces, 
chuck them about in many different abstract parts of the app. Call them in 
different orders and at random points through the app to construct a yes/no 
answer eventually. Don't make your app do this doing startup (as that's easy 
to spot), try spawning a background thread to do this after a random few 
seconds - don't make it to killProcess as that also sticks out to a hacker. 
Make it do something else like change important static values to something 
that is invalid and i.e. when they open the menu they get a nullpointer, 
etc, etc.

All these things will help make it harder and give several more targets to 
aim for.

Alternatively, a much more robust solution can be bought to you with the 
letters n, d, and k. :-)

I really hope that helps you, good luck!

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

[android-developers] CDMA getCellLocation() does not work

2011-07-08 Thread Ken H
Does anyone know why getCellLocation() for cdma will not return the
cell site locations? If I use:

TelephonyManager tm = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
CdmaCellLocation cd = (CdmaCellLocation) tm.getCellLocation();
int cdmaLat = cd.getBaseStationLatitude();
int cdmaLon = cd.getBaseStationLongitude();

I get Integer.MAX_VALUE for both the cdmaLat  cdmaLon. Why? Has this
not been implemented yet in Android? If not, will it ever? Why is the
value an integer in the first place? LAT/LON should be a float or
double.

Ken

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

2011-07-08 Thread Ken H
Yeah, I've read the reference pages, it doesn't help...that's why I
asked.

The reference page doesn't explain why the LAT/LON is not known. The
Base Station ID is known, the Network ID is known. Almost everything
in the telephonymanager returns a valid result but this. Why? If you
Google this you will see that nobody actually gets a result from this
method. A simple note from the Android team explaining that they hope
to implement this sometime in the future would help, rather then let
us spin our wheels trying to fix something that doesn't work in the
first place.

And the other question is why is the result an integer? LAT/LON is not
an integer.

Oh well, I never expected a real answer, but I had to ask...thanks.

Ken

On Jul 8, 11:58 am, Raghav Sood raghavs...@gmail.com wrote:
 These features exist API level 5 onwards. You will receive Integer.MAX_VALUE
 if the location is not known.

 BTW it was the second result on Google when searching for android
 getBaseStationLatitude().

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Controlling mutually exclusive preference categories with a single parent checkbox

2011-07-02 Thread Phil H
Yes, the first two options are a bit unpleasant, and as for the third, well 
its an option but I couldn't help feeling there had to be a better way. 
After some more thought I ended up adopting a slightly different approach 
altogether. I took out the two mutually exclusive sets of preferences and 
put them in two other preference files, 'a' and 'b'. Then I created a 
separate, new preference activity (MorePreferences, below) that in the 
onCreate method loaded 'a' or 'b' based on my checkbox preference value:

public void onCreate(final Bundle savedInstanceState) {



super.onCreate(savedInstanceState);


final int preferences;  
if (Preferences.isPreferencesA(this)) {

preferences = R.xml.

}
else {

preferences = R.xml.

}


addPreferencesFromResource(preferences);


}

In the main preferences I put a PreferenceScreen entry in, which uses an 
intent to fire up the new preference activity - when activated it loads the 
right set of preferences:

PreferenceScreen android:title=@string/announcement_settings 
android:summary=@string/announcement_settings_summary

intent 

android:action=android.intent.action.MAIN

android:targetPackage=mypackage

android:targetClass=mypackage.MorePreferences/ 

/PreferenceScreen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Controlling mutually exclusive preference categories with a single parent checkbox

2011-07-02 Thread Phil H
Ah, sorry, forgot to put the R.xml.preferences_a and
R.xml.preferences_b in that onCreate!

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

2011-06-12 Thread H
I agree with Kostya. Although it's annoying people crack our apps, we should 
be thankful this is available for us to download, decompile, see how it 
works and then change your app easily with a single line of code so that it 
is no longer crackable.

If anyone just takes the lvl code example provided by default by google then 
you're asking for trouble. The whole purpose of lvl is to stop piracy and if 
you are going to implement it in your app and trust it, then don't be silly 
enough to copy the code verbatim and then complain why it's so easy for 
someone to know how to hack it!

If you simply look at the hooks in anti-lvl, it's incredibly easy to see how 
to foil it. Hint. Look at the method signatures it uses to spot the 
important methods. Wonder what might happen if you accidentally insert a 
dummy parameter into the middle of one of those method signatures...? Or 
maybe simply change the order of the parameters? Will it still match?

Or maybe think about a honeypot. Create another piece of code with, oh I 
don't know, maybe an isLicensed() method in it, or maybe an allowAccess() 
method. Then of course make your dummy methods returns false. The day they 
suddenly returns true, you have your answer.

Or maybe check in your code the result of a Class.forName(SmaliHook) or 
similar.

etc, etc.

As soon as you do this, it renders antilvl useless as it just does a 
standard script of actions. To hack your app now, someone has to do it 
manually looking at the smali code and trying to spot vulnerabilities. If 
you have just a few well disguised honeypots in sensitive areas, they will 
spend so long trying to find them, they will give up.

So personally, I'm thankful for the antilvl to be in the open source. Of 
course you could spend all day creating honeypots like this and if they are 
ambitious enough, you are unlikely to stop them however hard you try. Look 
at Microsoft - worth billions, but still can't stop people cracking the 
latest release of windows even before it goes on the market.

HTH.

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

[android-developers] Maven and Emma

2011-04-28 Thread Jose H. Espinosa
Hi all,

I am trying to run emma code coverage inside the android simulator using maven.

This are the steps that I am following:
1. Build, install and test my app
   mvn clean install
2. Try to run the application with emma enable
   adb shell am instrument -w -e coverage true
com.example.android.apis.tests/android.test.InstrumentationTestRunner

But I get this error:
Error: Failed to generate emma coverage. Is emma jar on classpath?

The problem is that the target application has not been Emma
instrumented.  I have succesfully get the coverage data using ant as
provided by the sdk but I need to stick with maven.

Can anybody shade some light on how to run Emma code coverage from Maven?

Thanks,
Jose Espinosa

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

2011-04-17 Thread matt h
**facepalm** yeh i had my lat and longitude mixed up, thanks

On Fri, Apr 15, 2011 at 8:16 PM, TreKing treking...@gmail.com wrote:

 On Thu, Apr 14, 2011 at 2:49 PM, matt h matt...@gmail.com wrote:

 Hi, I am trying to develop an app to list the bus stops for my local
 Public Transit buses on a google map map,


 It's not Chicago is it!? =P


 Any one have any idea why my markers are not being added?


 Tip: when stuff doesn't show on the map, try zooming all the way out in
 case you've plotted it wrong 

 Walk with me here ...

 This is your format, right?:-79261518440062802511YRT
 And this is your parsing, right?: LineSplit[0]),Integer.parseInt(LineSplit[1])
 ...
 And this is your function, right?: AddOverlayItem(int intLat, int intLong
 ...
 So -79261518 is latitude, 44006280 is the longitude right?
 And this becomes -79.261518 and 44.006280, right?

 Is this a transit system for 
 Penguinshttp://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=-79.261518,+44.006280aq=sll=41.896758,-87.643616sspn=0.013928,0.02032ie=UTF8ll=-84.267172,41.484375spn=169.144106,305.859375z=1
 ?
 Or for 
 Duckshttp://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=44.006280,+-79.261518aq=sll=-84.267172,41.484375sspn=169.144106,305.859375ie=UTF8ll=44.292401,-80.244141spn=13.775603,20.808105z=6
 ?


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

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

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

Re: [android-developers] Trying to load a list of overlay positions from file

2011-04-17 Thread matt h
what do you mean one overlay per bus line?
what my app is doing is it lists all bus stops in my area, then when i tap a
marker it will open the web browser and display the times the bus comes at
for that stop.
Eventually I will parse the web page and display the times within the dialog
that pops up when the marker is clicked.

On Fri, Apr 15, 2011 at 9:04 PM, lbendlin l...@bendlin.us wrote:

 Why are you creating a new overlay for each marker? To stay with your
 story, one overlay per bus line would make much more sense.

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

2011-04-15 Thread matt h
Hi, I am trying to develop an app to list the bus stops for my local Public
Transit buses on a google map map,
but i seem to be having problem loading the overlay markers locations from a
text file

Heres the code i use to load a new overlay onto the mapview:


[CODE]
public void AddOverlayItem(int intLat, int intLong, String
strStop,String strType) {
 Toast.makeText(HelloGoogleMaps.this.getBaseContext(), intLat + , +
intLong + , + strStop + , + strType,Toast.LENGTH_SHORT).show();
 // TODO Auto-generated method stub
 ListOverlay mapOverlays = mapView.getOverlays();
 Drawable drawable = this.getResources().getDrawable(R.drawable.viva);

 if (YRT.equals(strType)) {
 drawable = this.getResources().getDrawable(R.drawable.yrt);
 }

 HelloItemizedOverlay itemizedoverlay = new
HelloItemizedOverlay(drawable,this);

 GeoPoint point = new GeoPoint(intLat,intLong);
 OverlayItem overlayitem = new OverlayItem(point, strStop, strType);

 itemizedoverlay.addOverlay(overlayitem);

 mapOverlays.add(itemizedoverlay);


}
[/CODE]


When i call the above code from a button i click from within my app all
works fine, settings get saved and marker appears on screen:

[CODE]
WriteSettings(HelloGoogleMaps.this,String.valueOf((int)(longitude*1E6))
+  +
 String.valueOf((int)(latitude*1E6)) +  +
  etStop.getText().toString() +  +
YRT);

AddOverlayItem((int)(latitude*1E6),(int)(longitude*1E6),
etStop.getText().toString(),YRT);
[/CODE]

But the problem i am having is when i call the following code at the end of
the onCreate method, my overlays do not appear:

[CODE]
public void RefreshStops() {
 // Refreshes the list of bus stop's
 //Find the directory for the SD Card using the API
 //*Don't* hardcode /sdcard
 File sdcard = Environment.getExternalStorageDirectory();

 //Get the text file
 File file = new File(sdcard,LocFile);

 try {
BufferedReader br = new BufferedReader(new FileReader(file));
String line;

while ((line = br.readLine()) != null) {
 String LineSplit[] = line.split();
 
AddOverlayItem(Integer.parseInt(LineSplit[0]),Integer.parseInt(LineSplit[1]),LineSplit[2],
LineSplit[3]);
}
 }
 catch (IOException e) {
//You'll need to add proper error handling here

Toast.makeText(HelloGoogleMaps.this.getBaseContext(),e.getMessage(),Toast.LENGTH_SHORT).show();
 }


}
[/CODE]

Contents of file being read:
longitudelatitudestopnumberbus-service

[CODE]
cat BusLoc2.txt
-79261518440062802511YRT
-79161518440062803243YRT
-79161518440062806465YRT
-7916151844006280675YRT
[/CODE]

I know the AddOverlayItem() method is being called from the RefreshStops()
method because i have put a 'toast' in the AddOverlayItem() method for debug
purposes and can see the info being passed to it correctly but for some
reason they are not appearing??

Any one have any idea why my markers are not being added?
Thanks for any help

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

[android-developers] move view on touch

2011-04-11 Thread Y@g*E!s^H SARKAR
i am using android-2.1, is it possible to move one view over other
view with finger touch on one screen? i am using framelayout as parent
and linearlayout(which i want to move over screen) as child. which
layout should i use for it?

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


[android-developers] Help in android code syntax

2011-04-07 Thread ahens h
Hi all,

I am facing some problem in android as i am new to it, i need to know
how to write syntax in android for the below problem.

Problem: I have a .net web service (www.somesite.com), that webserver
has an authentication method which require user name and password as
parameter to authenticate.Once i set those things using the
authentication method, it will allow me to call the rest of the
functionality present in the webserver. i have source code written in
ASP, i want to write the same in android.

 private MyServerAPI.Service _service;
 _service = new MyServerAPI.Service();

MyServerAPI.DTAuthHeader auth = new MyServerAPI.DTAuthHeader();
auth.Username = ConfigurationManager.AppSettings[MyServerAPI.user];
auth.Password = ConfigurationManager.AppSettings[MyServerAPI.pass];

_service.DTAuthHeaderValue = auth;
_service.Url =
ConfigurationManager.AppSettings[MyServerAPI.service];

i want to write the same thing in android, can you people please help
me out in this and let me know..


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] MediaPlayer.isPlaying() question

2011-03-13 Thread Ken H
Will android.media.MediaPlayer.isPlaying() return true if the
MediaPlayer is paused?

Ken

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

2011-03-13 Thread Ken H
 Any suggestions on where to look?

A possible quick fix, tell your users to:

1. Go to Settings
2. Select Applications
3. Select Manage Applications
4. Select the Market app
5. Select clear cache  clear data  uninstall updates
6. Back out and select Download Manager
7. Select clear data

This might help, but like TreKing said, it's an ongoing issue.

Ken

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

2011-03-13 Thread Ken H
What I'm really asking is for a way to test if the MediaPlayer was
paused. I think my app is being paused by the OS for maybe a
notification or something. It drives me up the wall when it
just...stops.

On Mar 13, 11:25 am, Ken H hunt1...@gmail.com wrote:
 Will android.media.MediaPlayer.isPlaying() return true if the
 MediaPlayer is paused?

 Ken

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