[android-developers] Re: Freemium Model with In-App Purchases

2011-08-27 Thread Zsolt Vasvari
> we currently considering pulling all our demo
> versions from the U.S. market and only offer payed versions.

If your app is top rated and you have a few hundred ratings at least,
this should be a good way to go.

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


[android-developers] HTTP request to Android Market being blocked? (403 response)

2011-08-27 Thread Jason
Hi folks,

I'm building a system in which I'm wanting to verify the ownership of
a given Android app to a given user.  (eg. they enter the package name
of their app, and I verify that they own it).  I am currently using
Google App Engine for this, but it seems this is being blocked by the
Android Market.

When I try to access the android market page for any given app I get a
403 coming back from the Android Market. In fact any simple GET on a
market HTTP url responds with a 403 when running in GAE, but works
fine when running locally.

Does anyone know if the Android Market is blocking HTTP requests
coming from Google App Engine?

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: Freemium Model with In-App Purchases

2011-08-27 Thread Christopher Van Kirk
It's reasonable to expect that they will attempt to shake down everyone 
who sells an Android app. It's not reasonable to expect that they will 
actually sue everyone they contact. Nobody has the resources to do that. 
I still think this is just one guy in a dark room writing threatening 
letters hoping to scare people into sending him money. Not much 
different from the Nigerian prince scam, only legal.


The more of these letters we see, the less likely it is that any of them 
can be taken seriously.


My opinion of course.


On 8/9/2011 6:52 PM, makjaveli wrote:

The threat to get a letter from Lodsys about possible infringing their
"patents" on Android is quite real. We recieved such a letter
yesterday, we just provide a button with a link to the full version in
the demo version of our app which from their view is an "in-app
purchase".

We currently evaluating our opertunities but as a legal fight with a
patent bully and paying a patent license for the next years is not a
big option for us, we currently considering pulling all our demo
versions from the U.S. market and only offer payed versions.

On Jul 15, 3:38 pm, polyclefsoftware  wrote:

I'm close to releasing a new iPhone/Android local multiplayer game and I'm
looking into monetization issues. My ad revenue is still dismal this year,
even though impressions and clicks are fairly robust. And the format of the
game is such that I want to encourage new users to easily try the game for
free, so I was thinking of using a freemium model where the app is free to
download, then locks after a certain amount of gameplay and prompts the user
to unlock the full version using in-app purchases.

I'd be interested to hear any experiences of any developers who might
currently be using this approach.

 From a marketing/sales perspective, how well does this model work? I know
in-app purchases for virtual goods is extremely lucrative if done well, but
I haven't heard any experiences of the unlock-full-version model on the
Android Market.

 From a technical perspective, how easy is it for users to exploit such a
model, e.g. uninstalling and reinstalling the app or wiping local data
associated with the app in order to circumvent the limitations of the free
version? Are there best practices to avoid this?

 From a legal perspective, should developers (especially indie ones like me)
be concerned about the current patent trolling and lawsuits by companies
like Lodsys? Google still hasn't publicly commented on patent trolls
targeting Android developers, have they?


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

2011-08-27 Thread Christopher Van Kirk
The guy is still writing letters so it stands to reason some people are 
paying him.


On 8/27/2011 2:49 PM, Andy wrote:

Hi makjaveli,

i recieved a Lodsys letter 2 Days ago. Same Problem here. I have a 
button in my app linked to the Android Market. It's simply a button 
with a underlaying http Link pointing to the payed app URL. I can't 
think of a szenario where this can be proteced by a patent, because it 
a common/trivial link mechanisam found everywhere in the net , 
websites, apps, mobile apps, whatsoever.


Because I'm only a hobby programmer while my app sold like 250 times ( 
maybe 100 to US) I'm not sure what to do. I read their article on 
"what are we charging"
http://www.lodsys.com/1/post/2011/05/q-what-are-you-charging.html and 
thought it would be a solution to ask for licening an pay them ~ 5$ 
for the past usage.


Has anyone solved his Lodsys claim fast and easy ?

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

2011-08-27 Thread gaurav gupta
@Treking .. U r too good

On Fri, Aug 26, 2011 at 8:26 PM, TreKing  wrote:

> On Fri, Aug 26, 2011 at 9:25 AM, aparna rani  wrote:
>
>> is it possible do in android.
>>
>
> Of course.
>
>
>> if it is possible give me some sample code
>>
>
> Try doing your own work, then ask a question when you get stuck. There is
> documentation on PopupWindow and Dialog classes. Start by reading that.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] DashboardLayout (iosched 2011) behaves weirdly

2011-08-27 Thread Alexis Robert
Hi,

I have a little problem with DashboardLayout (the one on iosched 2011
mercurial repository) and as I really don't know what's wrong. I know
I'm wrong somewhere, as this layout works for the I/O app, and I've
tried to copy the situation of the I/O app everywhere I can, but
nothing worked.

When I'm in portrait, everything is fine :
http://img405.imageshack.us/img405/4851/device20110827093725.png

But when I'm in landscape, DashboardLayout behaves weirdly
:http://img231.imageshack.us/img231/3061/dashboardlandscape.png

For the source code,

-- home.xml --


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">










-- style.xml (stripped down to only useful parts) --






true

@style/ActionBarButton
@style/ActionBarSeparator
@style/ActionBarText



wrap_content
wrap_content
bold




By the way, if I uncomment the @null line, it gets even worse in
portrait : http://img32.imageshack.us/img32/3713/dashboardportraitnobg.png

Thanks a lot !!

Alexis Robert

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


[android-developers] Getting data from EditText failed why.

2011-08-27 Thread aparna rani
hi i am implementing change password option in my app. i displayed dialog
alert box.
when i trying to get data from edittext failed. why i don't know please help
me?

LayoutInflater factory = LayoutInflater.from(this);
final View textEntryView = factory.inflate(R.layout.password, null);

AlertDialog.Builder alert = new AlertDialog.Builder(this);

alert.setTitle("Change Passwoed");
alert.setView(textEntryView);
AlertDialog changePassword = alert.create();

final EditText oldPassword = (EditText)
changePassword.findViewById(R.id.old_password);
final EditText newPassword = (EditText)
changePassword.findViewById(R.id.new_password);
final EditText retypePassword = (EditText)
changePassword.findViewById(R.id.retype_password);
alert.setPositiveButton("Submit", new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton)
{
 String oldPass=oldPassword.getText().toString();
 String newPass=newPassword.getText().toString();
 String retypePass=retypePassword.getText().toString();

if(oldPass.trim().length()==0||newPass.trim().length()==0||retypePass.trim().length()==0)
 {
 displayAlert("Enter three fields");
 }

}
});

alert.setNegativeButton("Cancel", new
DialogInterface.OnClickListener() {
  public void onClick(DialogInterface dialog, int whichButton) {
// Canceled.
  }
});
alert.show();

//password.xml



http://schemas.android.com/apk/res/android";
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
  


  







 

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

2011-08-27 Thread gaurav gupta
H

On Sat, Aug 27, 2011 at 2:27 PM, aparna rani  wrote:

> hi i am implementing change password option in my app. i displayed dialog
> alert box.
> when i trying to get data from edittext failed. why i don't know please
> help me?
>
> LayoutInflater factory = LayoutInflater.from(this);
> final View textEntryView = factory.inflate(R.layout.password,
> null);
>
> AlertDialog.Builder alert = new AlertDialog.Builder(this);
>
> alert.setTitle("Change Passwoed");
> alert.setView(textEntryView);
> AlertDialog changePassword = alert.create();
>
> final EditText oldPassword = (EditText)
> changePassword.findViewById(R.id.old_password);
> final EditText newPassword = (EditText)
> changePassword.findViewById(R.id.new_password);
> final EditText retypePassword = (EditText)
> changePassword.findViewById(R.id.retype_password);
> alert.setPositiveButton("Submit", new
> DialogInterface.OnClickListener() {
> public void onClick(DialogInterface dialog, int whichButton)
> {
>  String oldPass=oldPassword.getText().toString();
>  String newPass=newPassword.getText().toString();
>  String retypePass=retypePassword.getText().toString();
>
> if(oldPass.trim().length()==0||newPass.trim().length()==0||retypePass.trim().length()==0)
>  {
>  displayAlert("Enter three fields");
>  }
>
> }
> });
>
> alert.setNegativeButton("Cancel", new
> DialogInterface.OnClickListener() {
>   public void onClick(DialogInterface dialog, int whichButton) {
> // Canceled.
>   }
> });
> alert.show();
>
> //password.xml
>
>
> 
> http://schemas.android.com/apk/res/android";
>  android:orientation="vertical"
> android:layout_width="fill_parent"
>  android:layout_height="fill_parent">
>  android:layout_width="fill_parent"
>   android:layout_height="fill_parent">
>  
>android:layout_width="fill_parent"
>  android:password="true"
>   android:singleLine="true"
>android:hint="Old Password"/>
>   
> 
> android:hint="New Password"
>android:layout_width="fill_parent"
>android:password="true"
>android:singleLine="true"/>
>  
> 
>   android:layout_width="fill_parent"
>android:hint="Retype New Password"
>android:password="true"
>android:singleLine="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

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

2011-08-27 Thread gaurav gupta
Hi Aparna,

* final EditText oldPassword = (EditText)
changePassword.findViewById(R.id.old_password);*
*Use this line*
**
*final EditText oldPassword = (EditText)
textEntryView.findViewById(R.id.old_password);*

On Sat, Aug 27, 2011 at 2:36 PM, gaurav gupta wrote:

> H
>
>
> On Sat, Aug 27, 2011 at 2:27 PM, aparna rani  wrote:
>
>> hi i am implementing change password option in my app. i displayed dialog
>> alert box.
>> when i trying to get data from edittext failed. why i don't know please
>> help me?
>>
>> LayoutInflater factory = LayoutInflater.from(this);
>> final View textEntryView = factory.inflate(R.layout.password,
>> null);
>>
>> AlertDialog.Builder alert = new AlertDialog.Builder(this);
>>
>> alert.setTitle("Change Passwoed");
>> alert.setView(textEntryView);
>> AlertDialog changePassword = alert.create();
>>
>> final EditText oldPassword = (EditText)
>> changePassword.findViewById(R.id.old_password);
>> final EditText newPassword = (EditText)
>> changePassword.findViewById(R.id.new_password);
>> final EditText retypePassword = (EditText)
>> changePassword.findViewById(R.id.retype_password);
>> alert.setPositiveButton("Submit", new
>> DialogInterface.OnClickListener() {
>> public void onClick(DialogInterface dialog, int whichButton)
>> {
>>  String oldPass=oldPassword.getText().toString();
>>  String newPass=newPassword.getText().toString();
>>  String retypePass=retypePassword.getText().toString();
>>
>> if(oldPass.trim().length()==0||newPass.trim().length()==0||retypePass.trim().length()==0)
>>  {
>>  displayAlert("Enter three fields");
>>  }
>>
>> }
>> });
>>
>> alert.setNegativeButton("Cancel", new
>> DialogInterface.OnClickListener() {
>>   public void onClick(DialogInterface dialog, int whichButton) {
>> // Canceled.
>>   }
>> });
>> alert.show();
>>
>> //password.xml
>>
>>
>> 
>> http://schemas.android.com/apk/res/android";
>>  android:orientation="vertical"
>> android:layout_width="fill_parent"
>>  android:layout_height="fill_parent">
>>   >   android:layout_width="fill_parent"
>>   android:layout_height="fill_parent">
>>  
>> >   android:layout_width="fill_parent"
>>  android:password="true"
>>   android:singleLine="true"
>>android:hint="Old Password"/>
>>   
>> 
>> >android:hint="New Password"
>>android:layout_width="fill_parent"
>>android:password="true"
>>android:singleLine="true"/>
>>  
>> 
>> >  android:layout_width="fill_parent"
>>android:hint="Retype New Password"
>>android:password="true"
>>android:singleLine="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
>
>
>

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

2011-08-27 Thread FBondarenko
That's a java thing:

to compare Strings use something like if (strResult.equals("Four")),
as (strResult == "Four") checks if the operands are the same object
and not if they have the same content.

On 26 Aug., 19:49, erik wagner  wrote:
> Hi all, I have a very simple game that I'm trying to do for learning
> purposes.  One of the options is selecting the number of players (2-4)
> via a spinner.  When a choice is made from the spinner I am moving the
> value to a string and then using that string in a series of if/else if
> statements to (eventually) handle the option.  I am running into the
> problem where the condition that (to me) seems like it should be true
> is evaluating to false.
> If I select "Two", the value moved to the variable is "Two" but the
> check for the variable == "Two" isn't getting hit.
> (hope that was all clear, backstory may not be needed but better safe
> than vague).  Anyway, the spinner's OnSelectedItemListener...
>
>     public class MyPlayerOnItemSelectedListener implements
> OnItemSelectedListener {
>         public void onItemSelected(AdapterView parent, View view, int
> pos, long id) {
>                 String strResult;
>                 strResult = parent.getItemAtPosition(pos).toString();
>                 if (strResult == "Two") {
>                         Toast.makeText(parent.getContext(), "this is the 
> result when
> one is selected", Toast.LENGTH_LONG).show();
>                 } else if (strResult == "Three") {
>                         Toast.makeText(parent.getContext(), "three players /" 
> +
> strResult + "/", Toast.LENGTH_LONG).show();
>                 } else if (strResult == "Four") {
>                         Toast.makeText(parent.getContext(), "four",
> Toast.LENGTH_LONG).show();
>                 } else {
>                         Toast.makeText(parent.getContext(), "something else 
> /" +
> strResult + "/", Toast.LENGTH_LONG).show();
>                 }
>
>         }
>         public void onNothingSelected(AdapterView parent) {
>
>         }
>     }
>
> No matter what I select using this code the Toast shows as "something
> else /" + what the value actually is + "/".  i.e. if I chose 'Two' the
> toast reads "something else /Two/".
> Any help would be greatly appreciated on this.  I'm certain it is
> something very fundamental that I'm just missing.  Thanks in advance
> Erik Wagner

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

2011-08-27 Thread Faizan Shaikh
Read News from various international sources like CNN,BBC,ESPN,FOX NEWS etc
using their RSS Feeds.

The application contains news feeds from more than 100
sources/channels/websites.

It consumes minimum bandwidth and runs very fast even if you are using the
GPRS.

News feeds are automatically UPDATED on hourly basis.

Read all the latest news at one place! Don't miss it!!!

https://market.android.com/details?id=app.news.main

-- 
Best Regards

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

[android-developers] how can i update my application without adding more devices?

2011-08-27 Thread 李白|字一日
it seems i can update my application now?

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

Re: [android-developers] Getting data from EditText failed why.

2011-08-27 Thread aparna rani
thank you its working fine.

On Sat, Aug 27, 2011 at 2:37 PM, gaurav gupta wrote:

> Hi Aparna,
>
> * final EditText oldPassword = (EditText)
> changePassword.findViewById(R.id.old_password);*
> *Use this line*
> **
> *final EditText oldPassword = (EditText)
> textEntryView.findViewById(R.id.old_password);*
>
> On Sat, Aug 27, 2011 at 2:36 PM, gaurav gupta 
> wrote:
>
>> H
>>
>>
>> On Sat, Aug 27, 2011 at 2:27 PM, aparna rani wrote:
>>
>>> hi i am implementing change password option in my app. i displayed dialog
>>> alert box.
>>> when i trying to get data from edittext failed. why i don't know please
>>> help me?
>>>
>>> LayoutInflater factory = LayoutInflater.from(this);
>>> final View textEntryView = factory.inflate(R.layout.password,
>>> null);
>>>
>>> AlertDialog.Builder alert = new AlertDialog.Builder(this);
>>>
>>> alert.setTitle("Change Passwoed");
>>> alert.setView(textEntryView);
>>> AlertDialog changePassword = alert.create();
>>>
>>> final EditText oldPassword = (EditText)
>>> changePassword.findViewById(R.id.old_password);
>>> final EditText newPassword = (EditText)
>>> changePassword.findViewById(R.id.new_password);
>>> final EditText retypePassword = (EditText)
>>> changePassword.findViewById(R.id.retype_password);
>>> alert.setPositiveButton("Submit", new
>>> DialogInterface.OnClickListener() {
>>> public void onClick(DialogInterface dialog, int whichButton)
>>> {
>>>  String oldPass=oldPassword.getText().toString();
>>>  String newPass=newPassword.getText().toString();
>>>  String retypePass=retypePassword.getText().toString();
>>>
>>> if(oldPass.trim().length()==0||newPass.trim().length()==0||retypePass.trim().length()==0)
>>>  {
>>>  displayAlert("Enter three fields");
>>>  }
>>>
>>> }
>>> });
>>>
>>> alert.setNegativeButton("Cancel", new
>>> DialogInterface.OnClickListener() {
>>>   public void onClick(DialogInterface dialog, int whichButton)
>>> {
>>> // Canceled.
>>>   }
>>> });
>>> alert.show();
>>>
>>> //password.xml
>>>
>>>
>>> 
>>> http://schemas.android.com/apk/res/android";
>>>  android:orientation="vertical"
>>> android:layout_width="fill_parent"
>>>  android:layout_height="fill_parent">
>>>   >>   android:layout_width="fill_parent"
>>>   android:layout_height="fill_parent">
>>>  
>>> >>   android:layout_width="fill_parent"
>>>  android:password="true"
>>>   android:singleLine="true"
>>>android:hint="Old Password"/>
>>>   
>>> 
>>> >>android:hint="New Password"
>>>android:layout_width="fill_parent"
>>>android:password="true"
>>>android:singleLine="true"/>
>>>  
>>> 
>>> >>  android:layout_width="fill_parent"
>>>android:hint="Retype New Password"
>>>android:password="true"
>>>android:singleLine="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
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: how can i update my application without adding more devices?

2011-08-27 Thread 李白|字一日
i would like to ask google why,

previously because of the signature expiration,
i had to republish my application with new package name.

this time again because my updates didn't change supporting devices?
my new updates cann't be published? why?

"
错误:6 版的 APK 与其他更高版本的 APK 所支持的设备完全相同。系统不会推出这样的 APK,请取消激活该 APK。
"
which means :
version 6 and other higher version apk support totally the same devices.
system will not publish this APK, please cancel activating this APK.


is there a way to solve this problem?


2011/8/27 李白|字一日 

> it seems i can update my application now?

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

[android-developers] Image manipulation similar to google+ app

2011-08-27 Thread charlie babitt
Hallo!

Looking on the google+ app on the dashboard, I have seen that they
display my profile image and draw a blue circle arround it. What is
the easiest way to achieve something like this? I want to create an
ImageView which contains an image (I'm loading it from the SD Card)
and drawing a rectangle as a frame around it. Where should I start
looking?

Thanks
charlie

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

2011-08-27 Thread Andy
Question would be as "super small developer" whats the easiest Exit 
Strategy.

A Patent Lawer in the US easily costs serveral hundert $/hour. Their 
strategy might be that this effort is too big for most of us. (Especially 
from Europe / laguage barrier) So after reading 
http://www.lodsys.com/1/post/2011/05/q-what-are-you-charging.html i was 
thinking if the easiest way to sleep better ist, ask them what you have to 
paid for the past and future use.

In case you removed the Button it would be the question how to the know how 
many apps you have sold in the US. If you sold you app like 500 times for 2 
$ this might be a very small amount of money you have to spend. The Question 
remains it this is legit because their claim that even a link to the Market 
violates one of their patents is kind of odd, because than you can claim 
that exact case for every website linking to a Commercial Item like Amazon 
links oder whatsover. Same Mechanism. The Button in you game is only a HTTP 
Link to a Android Market website. No Strings attached. 

Next question qould be hwo to contact them, and how fast do they respond. 

Anybody experienced a solution that was heading for a licening ?


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

[android-developers] Re: In-App Billing forces screen orientation change

2011-08-27 Thread groob
That's the solution we used in another title. I don't like it at all,
but nothing else can be done, as one can see.

Thank you.

On Aug 27, 8:46 am, Zsolt Vasvari  wrote:
> I would just draw a solid background of a color your choice.  I assume
> that the Checkout window takes most of the screen.

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

2011-08-27 Thread Jona
Create your own custom theme and override the activity animations.
See the theme.xml file located under the android sdk.

On Aug 26, 9:27 pm, hachi  wrote:
> i am also using windowIsTranslucent to achieve transparent background
> on activity B
>
> On Aug 26, 6:07 pm, hachi  wrote:
>
>
>
> > I am trying to make an activity transition for the switch between
> > animations. What I want is that if I go from activity A to activity B,
> > A gets a certain animation. I am adding this statement right after
> > startActivity() :
>
> > overridePendingTransition(0, R.anim.to_right)
>
> > the thing is this doesnt work (no animation on A, no animation on B)
> > but if I reverse it to be overridePendingTransition(R.anim.to_right,
> > 0), B gets an animation, so I know my animation resource file is
> > legit.
>
> > Any ideas? Is this not how to do animation on outgoing activity.

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

2011-08-27 Thread Christopher Van Kirk

They want 0.575% of your gross, past, present and future.

On 8/27/2011 6:58 PM, Andy wrote:
Question would be as "super small developer" whats the easiest Exit 
Strategy.


A Patent Lawer in the US easily costs serveral hundert $/hour. Their 
strategy might be that this effort is too big for most of us. 
(Especially from Europe / laguage barrier) So after reading 
http://www.lodsys.com/1/post/2011/05/q-what-are-you-charging.html i 
was thinking if the easiest way to sleep better ist, ask them what you 
have to paid for the past and future use.


In case you removed the Button it would be the question how to the 
know how many apps you have sold in the US. If you sold you app like 
500 times for 2 $ this might be a very small amount of money you have 
to spend. The Question remains it this is legit because their claim 
that even a link to the Market violates one of their patents is kind 
of odd, because than you can claim that exact case for every website 
linking to a Commercial Item like Amazon links oder whatsover. Same 
Mechanism. The Button in you game is only a HTTP Link to a Android 
Market website. No Strings attached.


Next question qould be hwo to contact them, and how fast do they respond.

Anybody experienced a solution that was heading for a licening ?


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


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


[android-developers] Re: In-App Billing forces screen orientation change

2011-08-27 Thread groob
Thank you for your interest, TreKing.

The strange thing is the display is of course rotated, but alsoscaled
down in height and untouched in width, so it looks like GL scaling has
been applied.
Nevertheless it might look like a bug or at least an unhandled
behaviour, so I need to get rid of it somehow.

The bug substance and the reason I ask a question here is that my
application is changing its orientation although I think I've done
everything what's needed to protect me against it.
To me IAB implementation is buggy and ignores this setup, not allowing
as well to handle rotations programmatically.

Will try with reporting the issue, but just cannot wait till anyone
address it. Zsolt's solution is not elegant at all, but the only quick
one I can imagine.

Thanks!


On Aug 27, 8:20 am, TreKing  wrote:
> On Fri, Aug 26, 2011 at 8:59 PM, groob  wrote:

> OK, this is all I was trying to get at - the display is corrupted - that's
> your problem. OK.
>
> Usually a "problem" on this group is a crash or not knowing how to achieve
> specific functionality and I was not understanding how this orientation
> change was adversely effecting your app's functionality.
>
> If I understand you correctly now, there is no adverse effect (your app
> doesn't crash for example), but you don't want it to happen because it looks
> bad to you. Correct?
>
> Well if that's the case, I don't know. If no one else has an answer for you,
> I'd check b.android.com and see if it's filed as a bug and if not, maybe
> file one. Of course, I suspect this is intended behavior - the app on top is
> what determines the current orientation and the phone can only have one
> configuration at a time, so the top-most one takes over - I think.
>
> P.S. - Even if your app is never intended to be used in landscape, you still
> have to handle properly restoring your app's state, since your app will go
> through the same cycle via other means (like pressing Home and coming back
> to it a while later). So you may just have to bite the bullet here and
> handle the orientation change.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Re: Just received Lodsys letter...

2011-08-27 Thread Michael Banzon
What is the patent number they refer to?

On Sat, Aug 27, 2011 at 3:25 PM, Christopher Van Kirk
 wrote:
> They want 0.575% of your gross, past, present and future.
>
> On 8/27/2011 6:58 PM, Andy wrote:
>>
>> Question would be as "super small developer" whats the easiest Exit
>> Strategy.
>>
>> A Patent Lawer in the US easily costs serveral hundert $/hour. Their
>> strategy might be that this effort is too big for most of us. (Especially
>> from Europe / laguage barrier) So after reading
>> http://www.lodsys.com/1/post/2011/05/q-what-are-you-charging.html i was
>> thinking if the easiest way to sleep better ist, ask them what you have to
>> paid for the past and future use.
>>
>> In case you removed the Button it would be the question how to the know
>> how many apps you have sold in the US. If you sold you app like 500 times
>> for 2 $ this might be a very small amount of money you have to spend. The
>> Question remains it this is legit because their claim that even a link to
>> the Market violates one of their patents is kind of odd, because than you
>> can claim that exact case for every website linking to a Commercial Item
>> like Amazon links oder whatsover. Same Mechanism. The Button in you game is
>> only a HTTP Link to a Android Market website. No Strings attached.
>>
>> Next question qould be hwo to contact them, and how fast do they respond.
>>
>> Anybody experienced a solution that was heading for a licening ?
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
Michael Banzon
http://michaelbanzon.com/

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


[android-developers] Crash on SQLiteOpenHelper::getReadableDatabase when I'm trying to copy new db from raw resources

2011-08-27 Thread pawpaw17
Hi Guys,

I ship a pre-created database as a raw resource and copy it into my
app's
database folder at startup. When I ship updates I overwrite the old db
with
my new db, which sometimes includes new stuff.

I can't reproduce this with any of my devices, but some of my app's
users
get a crash when my app calls this.getReadableDatabase() in my
override for
createDataBase:

android.database.sqlite.SQLiteException:
Can't upgrade read-only database from version 62 to 1: /data/data/
com.myapp.myapp/databases/ls.db
at
android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:
236)
at com.myapp.myapp.DataBaseHelper.createDataBase(DataBaseHelper.java:
75)
at com.myapp.myapp.myapp.MyApp$11.run(MyApp.java:675)
at java.lang.Thread.run(Thread.java:1020)

public void createDataBase() throws IOException{
boolean dbExist = checkDataBase();
if(dbExist){
//do nothing - database already exists
}else{

// delete the old database
this.getReadableDatabase();   <<< Exception is thrown HERE

try {
  copyDataBase();

} catch (IOException e) {
throw new Error("Error copying database");
}
}

}

I copy the database as follows:

private void copyDataBase() throws IOException{

//Open your local db as the input stream
InputStream myInput = null;

// Path to the just created empty db
String outFileName = DB_PATH + DB_NAME;

//Open the empty db as the output stream
OutputStream myOutput = new FileOutputStream(outFileName);


myInput = myContext.getResources().openRawResource(R.raw.ls_db);
//transfer bytes from the inputfile to the outputfile
byte[] buffer = new byte[1024];
int length;
while ((length = myInput.read(buffer))>0){
myOutput.write(buffer, 0, length);
}
myInput.close();



//Close the streams
myOutput.flush();
myOutput.close();
myInput.close();

openDataBase();
myDataBase.setVersion(packageVers);

// Copy stored data to new database
...

close();
}



Is the call to:

// delete the old database
this.getReadableDatabase();

problematic? What I really want to do is

chmod 777 myolddb
rm -f myolddb

if this were plain old Unix. What situations can lead to Android
treating this
as a read-only entity that can't be overwritten? This database is
originally created
by my app, and I only overwrite it on app updates.

Thanks!!

pawpaw17

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

2011-08-27 Thread Andy
I'm only accused for 7,222,078 (the in app billing)

beside my app has no in-app purchase or upgrade. It's simply a http link to 
the android market.I think they are sure that their patent covers the 
process behind this?!?!. But if so, this would ment, that even  
web-Applications are not allowed to link to a amazon store or something 
similar. This patent is so common sense / so widely interpretable that I 
think this will not last "that long". 


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

[android-developers] Advice on getting data from one activity to another

2011-08-27 Thread erik wagner
Hi, I guess this is more of a design with more than a little 'how do
i' mixed in question.  I have two activities (thus far), a main page
and an options page.  On the options page I set an option that I need
to 'see' on the main page (as well as on subsequent other activites).
What is the 'best' way to do this?  Global variables are a no-no and a
bit of a pain to do as I understand it.  How can I do this?  Perhaps
just point me in the direction of a dev article on the subject though
I couldn't find anything on point.  At least at that point I can then
move on to more detailed how-to questions.  Thanks again for all the
help on my various newbie questions.
Erik Wagner

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


[android-developers] SSH to device

2011-08-27 Thread kypriakos

Hi all,

I have the SSHDroid running on the device and I can ping it. But ssh-
ing to it asks for a root
passwd and I am assuming that means the phone needs to be rooted, or a
root login added
to it? Not sure. Since the ssh server is running on a particular port
and I get a login prompt
back I am assuming that there should be a login of some sort i can use
to access the shell?
Any ideas?

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] SSH to device

2011-08-27 Thread Mark Murphy
Support for SSHDroid is presumably provided by the SSHDroid authors,
not this list.

On Sat, Aug 27, 2011 at 10:41 AM, kypriakos  wrote:
>
> Hi all,
>
> I have the SSHDroid running on the device and I can ping it. But ssh-
> ing to it asks for a root
> passwd and I am assuming that means the phone needs to be rooted, or a
> root login added
> to it? Not sure. Since the ssh server is running on a particular port
> and I get a login prompt
> back I am assuming that there should be a login of some sort i can use
> to access the shell?
> Any ideas?
>
> 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/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

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

2011-08-27 Thread Mark Murphy
On Sat, Aug 27, 2011 at 10:32 AM, erik wagner  wrote:
> Hi, I guess this is more of a design with more than a little 'how do
> i' mixed in question.  I have two activities (thus far), a main page
> and an options page.  On the options page I set an option that I need
> to 'see' on the main page (as well as on subsequent other activites).
> What is the 'best' way to do this?

Use SharedPreferences and an OnSharedPreferenceChangeListener.

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

Android 3.1 Programming Books: http://commonsware.com/books

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

2011-08-27 Thread kypriakos

Agreed. A more general question:

What does the "adb connect" do exactly? Not much info on the adb page
about it.
If I run it it says that it's connected to the device but it shows it
as offline.
Is this supposed to be used in combination with any 3rd party app or I
should
be able to issue commands to the device remotely?

I have been using the USB connection and issue adb shell on the device
I can use
'su' to be able to let's say kill apps that are not responding. I want
to be
able to do that without the USB connection and via TCP.


On Aug 27, 10:49 am, Mark Murphy  wrote:
> Support for SSHDroid is presumably provided by the SSHDroid authors,
> not this list.
>
>
>
>
>
>
>
>
>
> On Sat, Aug 27, 2011 at 10:41 AM, kypriakos  wrote:
>
> > Hi all,
>
> > I have the SSHDroid running on the device and I can ping it. But ssh-
> > ing to it asks for a root
> > passwd and I am assuming that means the phone needs to be rooted, or a
> > root login added
> > to it? Not sure. Since the ssh server is running on a particular port
> > and I get a login prompt
> > back I am assuming that there should be a login of some sort i can use
> > to access the shell?
> > Any ideas?
>
> > 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 3.1 Programming Books:http://commonsware.com/books

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

2011-08-27 Thread Mark Murphy
On Sat, Aug 27, 2011 at 11:03 AM, kypriakos  wrote:
> What does the "adb connect" do exactly? Not much info on the adb page
> about it.

Sorry, I've never used it.

> I want
> to be
> able to do that without the USB connection and via TCP.

I can tell you that I've used QuickSSHd
(http://teslacoilsw.com/quicksshd). You supply the SSH password in the
QuickSSHd activity and use that to log in with a semi-arbitrary user
name, or you can use SSH shared keys. I can't speak to the `su` stuff,
but QuickSSHd does appear to support root.

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

Android 3.1 Programming Books: http://commonsware.com/books

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

2011-08-27 Thread erik wagner
Thanks!  Now to figure out how to use them, hopefully I won't be back
later with a 'uh, how do i do this?' question.

On Aug 27, 9:50 am, Mark Murphy  wrote:
> On Sat, Aug 27, 2011 at 10:32 AM, erik wagner  wrote:
> > Hi, I guess this is more of a design with more than a little 'how do
> > i' mixed in question.  I have two activities (thus far), a main page
> > and an options page.  On the options page I set an option that I need
> > to 'see' on the main page (as well as on subsequent other activites).
> > What is the 'best' way to do this?
>
> Use SharedPreferences and an OnSharedPreferenceChangeListener.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

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

2011-08-27 Thread kypriakos

Really? Well that's what I need - thanks Mark I will follow up!

On Aug 27, 11:21 am, Mark Murphy  wrote:
> On Sat, Aug 27, 2011 at 11:03 AM, kypriakos  wrote:
> > What does the "adb connect" do exactly? Not much info on the adb page
> > about it.
>
> Sorry, I've never used it.
>
> > I want
> > to be
> > able to do that without the USB connection and via TCP.
>
> I can tell you that I've used QuickSSHd
> (http://teslacoilsw.com/quicksshd). You supply the SSH password in the
> QuickSSHd activity and use that to log in with a semi-arbitrary user
> name, or you can use SSH shared keys. I can't speak to the `su` stuff,
> but QuickSSHd does appear to support root.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

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

2011-08-27 Thread Mark Murphy
On Sat, Aug 27, 2011 at 11:34 AM, erik wagner  wrote:
> Thanks!  Now to figure out how to use them, hopefully I won't be back
> later with a 'uh, how do i do this?' question.

Here is a sample project showing using SharedPreferences and a
PreferenceActivity:

https://github.com/commonsguy/cw-android/tree/master/Prefs/Simple

Whether you even need the OnSharedPreferenceChangeListener is
debatable, depending on your application flow. I re-read the
SharedPreferences in onResume(), for example, in the sample project
above.

If you are going to create an "options" screen, please please please
consider using a PreferenceActivity.

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

Android 3.1 Programming Books: http://commonsware.com/books

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

2011-08-27 Thread sblantipodi
Hi,
can you tell me why I can't download .apk file from the 2.3.3sdk
browser?

I can do it with all other SDK version but not with 2.3.3.

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] Terminating apps

2011-08-27 Thread kypriakos

Hi again,

I issue a finish() on a single process app, it exits to the home
screen of the
phone but a ps shows that the process is still running. Is this the
proper
way to terminate an app? I thought so.

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] Terminating apps

2011-08-27 Thread Mark Murphy
On Sat, Aug 27, 2011 at 11:56 AM, kypriakos  wrote:
> I issue a finish() on a single process app, it exits to the home
> screen of the
> phone but a ps shows that the process is still running.

Android will terminate the process eventually. Android keeps the
process running initially, in case the user happens to pop right back
into it, so they can get into the app more quickly and with less
battery use. Once Android starts needing RAM for other apps, though,
your unused process will be terminated.

> Is this the
> proper
> way to terminate an app? I thought so.

finish() is the proper way to exit an activity. You do not "terminate
an app" on Android any more than you "terminate a Web app".

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

Android 3.1 Programming Books: http://commonsware.com/books

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


[android-developers] Question around Bitmap loading

2011-08-27 Thread blew
Hello fellow developers,

This is again, about the famous "external allocation too large for
this process" Out of Memory exception when loading Bitmaps into your
memory.
The problem revolves around the following error message:

1502400-byte external allocation too large for this process.
Out of memory: Heap Size=5123KB, Allocated=2481KB, Bitmap Size=11183KB
VM won't let us allocate 1502400 bytes

I've been doing some simple tests and I just can't seem to figure out
what the "Bitmap Size" means.

The bit of code which generates the above error is as follow:

I call the following line (nothing else, this is my main call):

Bitmap bitmap =
loadBitmap(resources.getDrawable(R.drawable.map_image),
Config.RGB_565);
Bitmap bitmap1 =
loadBitmap(resources.getDrawable(R.drawable.map_image),
Config.RGB_565);
Bitmap bitmap2 =
loadBitmap(resources.getDrawable(R.drawable.map_image),
Config.RGB_565);
[...]
Bitmap bitmap9 =
loadBitmap(resources.getDrawable(R.drawable.map_image),
Config.RGB_565);

about 10 times

The map_image has the following dimensions: 1565x480
So it's using up 1502.4kb of memory: 1565*480*2/1000   (*2 => RGB_565)

The loadBitmap function used in the above few lines will call the
following function:

static public Bitmap loadBitmap(Drawable drawable, Config
bitmapConfig) {
int width = drawable.getIntrinsicWidth();
int height = drawable.getIntrinsicHeight();
long sizeStart;
long size;

Bitmap bitmap;

sizeStart = Debug.getNativeHeapAllocatedSize();
bitmap = Bitmap.createBitmap(width, height, bitmapConfig);
size = Debug.getNativeHeapAllocatedSize() - sizeStart;
System.out.println("Created : " + bitmapConfig.toString() + " : 
" +
size/1000 + " Kb, " + bitmap.getWidth() + "x" + bitmap.getHeight());

Canvas canvas = new Canvas(bitmap);
drawable.setBounds(0, 0, width, height);
drawable.draw(canvas);
return bitmap;
}


Now when I run the code, I will get about 5 calls to the loadBitmap:
Created : RGB_565 : 1503 Kb, 1565x480
Created : RGB_565 : 1503 Kb, 1565x480
Created : RGB_565 : 1503 Kb, 1565x480
Created : RGB_565 : 1503 Kb, 1565x480
Created : RGB_565 : 1503 Kb, 1565x480
Before getting the dreaded:
1502400-byte external allocation too large for this process.
Out of memory: Heap Size=5123KB, Allocated=2481KB, Bitmap Size=11183KB
VM won't let us allocate 1502400 bytes

Now I understand that 1502400 bytes is the memory needed to load a new
bitmap.
I'm guessing that the 5123+2481KB represent (approximately) the 5
previously loaded bitmaps (7604/5=1520.8)

But what in god's name is that Bitmap Size value? what is using up
those 11 megs?

My subsequent question is: In theory I should be able to load 10 times
that 1.5 mb bitmap in my memory (before I reach the 16mb limit) why am
getting an exception after the fifth bitmap?

Thank you very much for any reply or leads you might be able to give
me,

Regards,

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


[android-developers] Accelerometer vs Gravity Sensor in game code?

2011-08-27 Thread Jim Graham
When writing game code, what (if anything) is the difference between
the accelerometer, G-Sensor, and Gravity Sensor?  I'd assumed that
they were all different names for the same thing, until I pulled
up specs on my Motorola Bravo (MB520), and found a device id for
the accelerometer, an "Unsupported" for the Gravity Sensor, and
no mention of a G-Sensor (which I'm guessing is a Gravity Sensor).

Now I'm not so sure.  So, when writing game code, is there any real
difference?  Are they basically the same thing?  Or are they
completely different sensors?

In trying to find the answer myself, I found a lot of discussios
that went like this:

   An accelerometer is [this], and a G-sensor is [that].
   An accelerometer is [that], and a G-sensor is [this].
   An accelerometer is [that], and a G-sensor is [this].
   An accelerometer and a G-sensor are the same thing.
   An accelerometer is [that], and a G-sensor is [this].
   An accelerometer is [this], and a G-sensor is [that].
   An accelerometer is [that], and a G-sensor is [this].
   An accelerometer and a G-sensor are the same thing.
   An accelerometer is [this], and a G-sensor is [that].

and so on, ad nauseum

Is there an authoritative answer out there?

Later,
   --jim

-- 
73 DE N5IAL (/4)| Peter da Silva:  No, try "rm -rf /"
spooky1...@gmail.com| Dave Aronson:As your life flashes before
< Running FreeBSD 7.0 > |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

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

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


[android-developers] Re: Reading a MIFARE 1k TAG from 2.3.4 Nexus S

2011-08-27 Thread nadam
http://mifareclassicdetectiononandroid.blogspot.com

On 26 Aug, 09:14, Ankit Maheshwari  wrote:
> Hey all ,
> can any body please help me with the code to read a MIFARE 1k CARD,
> i.e it UID and data from a specific blocks .. asuming that i know both
> the keys ,
> any kinda help will be really appreciated .. really need help
> badly ...
>
> Thanks
> Ankit

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


[android-developers] WebView with Admob Error

2011-08-27 Thread OneaDayJ
Hey guys,

Okay, so I am having a heck of a time here doing this app.  I am
trying to create an app that has the webview up top and admob ads at
the bottom.  I got the webView aspect to work then when I tried to ad
the admob I began getting errors.  I first added the manifest and it
worked fine, but then when I tried to ad the admob xml to the main.xml
file I get a force close error before it opens.

I have many apps that the admob does fine, so I am pretty sure it is
just the combination of the 2



Now below is my error message in the ddms


08-27 09:58:40.682: ERROR/AndroidRuntime(7259): FATAL EXCEPTION: main
08-27 09:58:40.682: ERROR/AndroidRuntime(7259):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.my app.TranslinkActivity}:
android.view.InflateException: Binary XML file line #9: Error
inflating class com.google.ads.AdView
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1647)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1663)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.os.Looper.loop(Looper.java:130)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.main(ActivityThread.java:3683)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.reflect.Method.invokeNative(Native Method)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.reflect.Method.invoke(Method.java:507)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
dalvik.system.NativeStart.main(Native Method)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): Caused by:
android.view.InflateException: Binary XML file line #9: Error
inflating class com.google.ads.AdView
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.inflate(LayoutInflater.java:408)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
207)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.Activity.setContentView(Activity.java:1657)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
com.bettertranslinkapp.TranslinkActivity.onCreate(TranslinkActivity.java:
19)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1611)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): ... 11 more
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): Caused by:
java.lang.ClassNotFoundException: com.google.ads.AdView in loader
dalvik.system.PathClassLoader[/data/app/com.my app.apk]
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.createView(LayoutInflater.java:471)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
08-27 09:58:40.682: ERROR/AndroidRuntime(7259): ... 20 more




below is m

[android-developers] Re: SSH to device

2011-08-27 Thread Chris Stratton
On Saturday, August 27, 2011 11:03:26 AM UTC-4, kypriakos wrote:
>
> What does the "adb connect" do exactly? Not much info on the adb page 
> about it. 
>

You would use it to connect to a device which has an adbd listening on 
something other than the USB, for example listening on TCP so that you can 
have ADB over wireless (or even wired ethernet on some non-handheld 
platforms).

For something you would leave running, ssh could be preferable as ADB has no 
security.

In either case though, excepting system-level debugging its probably 
preferable to have the daemon started/stopped by an android app control 
panel, with status bar notification while it is on, so that you only have it 
on when you expect to be using it.

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

[android-developers] Re: Terminating apps

2011-08-27 Thread kypriakos

Aha ... With "eventually" you mean that if Android does not need
RAM the process could be around for a while (or until the phone
is rebooted)? Is finish() synchronous and it occurs immediately?
I am wondering if it is possible to exit the activity but
subsequently
ask Android to terminate it immediately ...

On a different note - how far back do your books go? Did you cover
1.6 and 2.1?

On Aug 27, 12:03 pm, Mark Murphy  wrote:
> On Sat, Aug 27, 2011 at 11:56 AM, kypriakos  wrote:
> > I issue a finish() on a single process app, it exits to the home
> > screen of the
> > phone but a ps shows that the process is still running.
>
> Android will terminate the process eventually. Android keeps the
> process running initially, in case the user happens to pop right back
> into it, so they can get into the app more quickly and with less
> battery use. Once Android starts needing RAM for other apps, though,
> your unused process will be terminated.
>
> > Is this the
> > proper
> > way to terminate an app? I thought so.
>
> finish() is the proper way to exit an activity. You do not "terminate
> an app" on Android any more than you "terminate a Web app".
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

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

2011-08-27 Thread kypriakos

Yes the security aspect is important so I agree with the suggestion.
However, I think I did try something along these lines a while back
but it didn't work. Is this the right approach? With the phone on USB:

setprop service.adb.tcp.port 
stop adbd
start adbd

Rebooting the phone removed the property.

Thanks

On Aug 27, 1:15 pm, Chris Stratton  wrote:
> On Saturday, August 27, 2011 11:03:26 AM UTC-4, kypriakos wrote:
>
> > What does the "adb connect" do exactly? Not much info on the adb page
> > about it.
>
> You would use it to connect to a device which has an adbd listening on
> something other than the USB, for example listening on TCP so that you can
> have ADB over wireless (or even wired ethernet on some non-handheld
> platforms).
>
> For something you would leave running, ssh could be preferable as ADB has no
> security.
>
> In either case though, excepting system-level debugging its probably
> preferable to have the daemon started/stopped by an android app control
> panel, with status bar notification while it is on, so that you only have it
> on when you expect to be using 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] How does Android EditText store the content internally

2011-08-27 Thread KK
Hi,

  I have an android EditText which holds a password. I have to
retrieve this in one of my modules and pass it to another. I am
calling EditText.getEditableText and encrypting its content. But I
want to know if android creates any immutable objects internally for
the EdiText Content(like String), in which case there might still be a
way for a hacker to get the password out?

Thanks
KK

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

2011-08-27 Thread Mark Murphy
On Sat, Aug 27, 2011 at 1:43 PM, kypriakos  wrote:
>
> Aha ... With "eventually" you mean that if Android does not need
> RAM the process could be around for a while (or until the phone
> is rebooted)?

Yes. How long will depend on what's all going on. I would expect it to
be gone within an hour or so, given various services that will wake up
periodically to do a bit of polling. Quite possibly it will be gone
much more quickly.

> Is finish() synchronous and it occurs immediately?

No, and no.

finish() will happen very quickly, but it is not synchronous (i.e., a
blocking call) and therefore cannot be construed strictly as
"immediately".

> I am wondering if it is possible to exit the activity but
> subsequently
> ask Android to terminate it immediately ...

If by "it", you mean "the process", please do not do this. Please let
Android terminate it when it is ready to. Whatever problem you are
trying to solve can be solved better some other way.

> On a different note - how far back do your books go? Did you cover
> 1.6 and 2.1?

Yes. 1.5, even. Mostly, I cover "Android" and try to point out when
various new-ish features were added to the OS.

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

Android 3.1 Programming Books: http://commonsware.com/books

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


[android-developers] delay

2011-08-27 Thread bob
Right now, I have code that has to download data from the web after
you click a button.  So, there's a delay.  Anyone know how to make
this more user-friendly?

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


[android-developers] JDK 7, jarsigner bug.

2011-08-27 Thread sblantipodi
As many other users I'm experiencing problems with singning my APK
with JDK 7.

http://forum.unity3d.com/threads/100334-Install_parse_failed_no_certificates

Is there a workaround or a fix for this?

Thanks.

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


Re: [android-developers] How does Android EditText store the content internally

2011-08-27 Thread Kristopher Micinski
You're not doing any IPC?  Perhaps I didn't get that, but because
you've got sandboxing, if you're keeping the password entirely in your
program memory you should be fine with it, modulo possible security
flaws in the vm, etc...

If you're leaking the passwords out across an IPC barrier, you might
want to be more careful.

Kris

On Sat, Aug 27, 2011 at 1:54 PM, KK  wrote:
> Hi,
>
>  I have an android EditText which holds a password. I have to
> retrieve this in one of my modules and pass it to another. I am
> calling EditText.getEditableText and encrypting its content. But I
> want to know if android creates any immutable objects internally for
> the EdiText Content(like String), in which case there might still be a
> way for a hacker to get the password out?
>
> Thanks
> KK
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Using multiple fragments in each screen in ViewPager

2011-08-27 Thread winnie
I have been trying the ViewPager from recently supported android
compatibility v4 package.

In my app, I have multiple screens which I would like to swipe across
just like what ViewPager does. But in my app, I have multiple
fragments in EACH single screen. In the ViewPager, the
FragmentPagerAdapter seems to be for the purpose of using multiple
screens, each with single fragment.

I am wondering if there is anyway I could use the current support
package for my current requirement? Or I need to go back to the same
android launcher src to reference and design my custom control.

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

2011-08-27 Thread Appaholics
What do you mean by making it more user friendly?

On Sat, Aug 27, 2011 at 11:36 PM, bob  wrote:

> Right now, I have code that has to download data from the web after
> you click a button.  So, there's a delay.  Anyone know how to make
> this more user-friendly?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

[android-developers] Working with the new ContactContracts API

2011-08-27 Thread ודים רוזנטל
Hi,
For example, I want to add 2 contacts with name and phone in each contact.
I must execute follow code:
ContentValues values = new ContentValues();
values.put(RawContacts.ACCOUNT_TYPE, accountType);
values.put(RawContacts.ACCOUNT_NAME, accountName);
Uri rawContactUri =
getContentResolver().insert(RawContacts.CONTENT_URI, values);
long rawContactId = ContentUris.parseId(rawContactUri);

1.Once, in start of adding.
2.Before adding each contact.
3.Before adding name and phone in each contact?

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

2011-08-27 Thread Christopher Van Kirk
They could be referring to a gyroscope sensor. The new Samsung devices 
have those now in addition to the accelerometer.


On 8/28/2011 12:28 AM, Jim Graham wrote:

When writing game code, what (if anything) is the difference between
the accelerometer, G-Sensor, and Gravity Sensor?  I'd assumed that
they were all different names for the same thing, until I pulled
up specs on my Motorola Bravo (MB520), and found a device id for
the accelerometer, an "Unsupported" for the Gravity Sensor, and
no mention of a G-Sensor (which I'm guessing is a Gravity Sensor).

Now I'm not so sure.  So, when writing game code, is there any real
difference?  Are they basically the same thing?  Or are they
completely different sensors?

In trying to find the answer myself, I found a lot of discussios
that went like this:

An accelerometer is [this], and a G-sensor is [that].
An accelerometer is [that], and a G-sensor is [this].
An accelerometer is [that], and a G-sensor is [this].
An accelerometer and a G-sensor are the same thing.
An accelerometer is [that], and a G-sensor is [this].
An accelerometer is [this], and a G-sensor is [that].
An accelerometer is [that], and a G-sensor is [this].
An accelerometer and a G-sensor are the same thing.
An accelerometer is [this], and a G-sensor is [that].

and so on, ad nauseum

Is there an authoritative answer out there?

Later,
--jim



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

2011-08-27 Thread Kristopher Micinski
On Sat, Aug 27, 2011 at 2:53 PM, Appaholics  wrote:
> What do you mean by making it more user friendly?
>
> On Sat, Aug 27, 2011 at 11:36 PM, bob  wrote:
>>
>> Right now, I have code that has to download data from the web after
>> you click a button.  So, there's a delay.  Anyone know how to make
>> this more user-friendly?
>>

I'd assume that he means that he's sleeping in the main thread and
it's causing ANRs, or just sluggish performance.  If you want to
download data, do it in a separate thread, look at AsyncTask.  If you
look at AsyncTask, you should find what you need, you can google
around for examples.  You can also use a service to do your
downloading for you, if you want to coordinate between different
pieces of the app.  (Note however, that you still have to use a
separate thread, as a service in and of itself is not a separate
thread.)

Kris

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


[android-developers] Re: JDK 7, jarsigner bug.

2011-08-27 Thread RichardC
Use JDK 6.

JDK 7 is not on the required software page:
http://developer.android.com/sdk/requirements.html

On Aug 27, 7:42 pm, sblantipodi  wrote:
> As many other users I'm experiencing problems with singning my APK
> with JDK 7.
>
> http://forum.unity3d.com/threads/100334-Install_parse_failed_no_certi...
>
> Is there a workaround or a fix for this?
>
> Thanks.

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


Re: [android-developers] Can we have a RelativeLayout with rounded rectangle shape and an image in the background?

2011-08-27 Thread Rajkiran Bande
Thanks dude. You solved my probs. Gr8 work.

On Thu, Aug 25, 2011 at 11:14 PM, gaurav gupta wrote:

> Hi
> Use framelayout.
>
> On 25 Aug 2011 23:12, "Raj"  wrote:
>
> Hello,
> I am stuck. Can we have a RelativeLayout with rounded rectangle shape and
> an image in the background? I was successful in giving roundrect shape/image
> in the background, but not both. So can anybody tell me how can we acheive
> both?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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




-- 

Regards,
Rajkiran Bande.

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

[android-developers] Implementing onShowCustomView on Android 3.1 throws in HTML5VideoFullScreen

2011-08-27 Thread novemberox
Hi,

I'm trying to play video in html on fullscreen. When I click on
fullscreen button in video method onShowCustomView is fired. Here is
my implementation:

public void onShowCustomView(View view, CustomViewCallback callback)
{
super.onShowCustomView(view, callback);
if (view instanceof FrameLayout) {
customComponenet.addView(view, new 
FrameLayout.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT,
Gravity.CENTER));
customComponenet.setVisibility(View.VISIBLE);
}
}
Where customComponenet is FrameLayout placed on top of my current
layout. Wideo is playing good, it's visibile and everything seams to
be ok but it throws:
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main
08-27 22:16:07.520: ERROR/AndroidRuntime(7235):
java.lang.NullPointerException
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoFullScreen.switchProgressView(HTML5VideoFullScreen.java:
320)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoView.setPlayerBuffering(HTML5VideoView.java:
319)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoView.start(HTML5VideoView.java:85)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoViewProxy
$VideoPlayer.onPrepared(HTML5VideoViewProxy.java:257)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoViewProxy.onPrepared(HTML5VideoViewProxy.java:
278)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoView.onPrepared(HTML5VideoView.java:265)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.webkit.HTML5VideoFullScreen.onPrepared(HTML5VideoFullScreen.java:
164)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:
1456)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.os.Looper.loop(Looper.java:132)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
android.app.ActivityThread.main(ActivityThread.java:4028)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
java.lang.reflect.Method.invokeNative(Native Method)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
java.lang.reflect.Method.invoke(Method.java:491)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:844)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
dalvik.system.NativeStart.main(Native Method)

What am I doing wrong?

My WebView settings:
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginState(PluginState.ON);
webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setDatabasePath("/data/data/" +
App.class.getPackage().getName() + "/databases");
webView.getSettings().setSupportZoom(false);

I'm testing on Galaxy Tab 10.1, on default browser this is working
just fine. I can switch to fullscreen. Moreover in my app when I play
video embeded I can hear only sound and see status bar below area
where video should be, while on browser I can see video both embeded
in WebView and on fullscreen.

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

2011-08-27 Thread Damien Cooke
Drezden,
Thanks for your assistance.  It is greatly appreciated.

Damien
On 26/08/2011, at 1:18 AM, Drezden wrote:

> I have an app in the market right now that uses a custom designed tab
> bar at the bottom of the screen and a relative layout at the top that
> acts as an iframe, so this is very doable.  In my app I used the
> LocalActivityManager to load the requested activity and then extract
> it's main layout, like this:
> 
> [code]
> 
> LocalActivityManager manager = getLocalActivityManager();
> 
> Intent preloader = new Intent("com.pkg.Foo");
> View childView = manager.startActivity(preloader.getAction(),
> preloader.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView();
> 
> frame.removeAllViews();
> frame.addView(childView);
> 
> [/code]
> 
> Each of the buttons in the tab bar calls to a loading function with
> the requested Activity name and options like ViewFlipper index or
> other startup options.  After you add the childView to the frame, you
> can also do something like this to animate in the view.
> 
> [code]
> 
> childView.startAnimation(slideLeftAnimation);
> 
> [/code]
> 
> The only problem with this approach is that LocalActivityManager has
> been deprecated as if this month in favor of Fragments and the
> FragmentManager.  So you might want to look into both options and see
> what works best for your users and app needs.  If you look at the
> demos over at android.com there is a tab example using Fragments.
> 
> 
> On Aug 25, 1:40 am, Damien Cooke  wrote:
>> Hi all,
>> I am sure what I want to do is possible I think I am going about it the 
>> wrong way.
>> 
>> I am building a kind-of tab controller.  I am attempting to define compound 
>> views in XML layouts and I want to import them into my Activity.  The idea 
>> being that each "tab" continues to function regardless whether it is visible 
>> or not.  
>> 
>> What I am attempting to do is create a View object and inflate the layout I 
>> want into the View Object.  Is this the correct approach?  (by the way the 
>> reason I can not use the tabhost is because the client needs a scrolling 
>> tabbar so they can have 10 options on the tab bar, so I have implemented a 
>> scrollview containing buttons for the tabbar)
>> 
>> The structure will be an array of Views each attached to one of the buttons 
>> in the scrollView.  When selected the View object (if not already populated) 
>> will populate using inflate then become visible.
>> 
>> Am I close? Is this the wrong approach? Thanks in advance for any assistance.
>> 
>> Regards
>> Damien
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-08-27 Thread sblantipodi
really boring option.

On Aug 27, 10:05 pm, RichardC  wrote:
> Use JDK 6.
>
> JDK 7 is not on the required software 
> page:http://developer.android.com/sdk/requirements.html
>
> On Aug 27, 7:42 pm, sblantipodi  wrote:
>
>
>
>
>
>
>
> > As many other users I'm experiencing problems with singning my APK
> > with JDK 7.
>
> >http://forum.unity3d.com/threads/100334-Install_parse_failed_no_certi...
>
> > Is there a workaround or a fix for this?
>
> > Thanks.

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


[android-developers] german french spanish dictionary

2011-08-27 Thread nivedita arora
hi ,
i am developing word android app which involves use of german french
and spanish words.Can somebody help by providing link for the file
containing just the dictionary words fr the given language. i am
unable to find it :(
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] delay

2011-08-27 Thread TreKing
On Sat, Aug 27, 2011 at 2:38 PM, Kristopher Micinski  wrote:

> (Note however, that you still have to use a separate thread, as a service
> in and of itself is not a separate thread.)
>

It is if you use IntentService.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] delay

2011-08-27 Thread Kristopher Micinski
On Sat, Aug 27, 2011 at 8:01 PM, TreKing  wrote:
> On Sat, Aug 27, 2011 at 2:38 PM, Kristopher Micinski
>  wrote:
>>
>> (Note however, that you still have to use a separate thread, as a service
>> in and of itself is not a separate thread.)
>
> It is if you use IntentService.

Good point, good point, but I was just speaking about the "Service"
class.  (However, you might look into IntentService as well.)

Kris

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


Re: [android-developers] Image manipulation similar to google+ app

2011-08-27 Thread TreKing
On Sat, Aug 27, 2011 at 5:53 AM, charlie babitt wrote:

> What is the easiest way to achieve something like this? I want to create
> an ImageView which contains an image (I'm loading it from the SD Card) and
> drawing a rectangle as a frame around it. Where should I start looking?
>

I would start with ImageView, see what you can do with that, and read the
docs on the various layout, and what you can do with those. FrameLayout in
particular may be of interest to you.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: In-App Billing forces screen orientation change

2011-08-27 Thread Zsolt Vasvari


As much as i hate hacky solutions as the next guy, if you are running
a business you must sometimes use hacks to work around bugs.  You
cannot wait around filing a bug report that may or may not be fixed in
this decade.

>
> Will try with reporting the issue, but just cannot wait till anyone
> address it. Zsolt's solution is not elegant at all, but the only quick
> one I can imagine.
>
> Thanks!
>
> On Aug 27, 8:20 am, TreKing  wrote:
>
>
>
>
>
>
>
> > On Fri, Aug 26, 2011 at 8:59 PM, groob  wrote:
> > OK, this is all I was trying to get at - the display is corrupted - that's
> > your problem. OK.
>
> > Usually a "problem" on this group is a crash or not knowing how to achieve
> > specific functionality and I was not understanding how this orientation
> > change was adversely effecting your app's functionality.
>
> > If I understand you correctly now, there is no adverse effect (your app
> > doesn't crash for example), but you don't want it to happen because it looks
> > bad to you. Correct?
>
> > Well if that's the case, I don't know. If no one else has an answer for you,
> > I'd check b.android.com and see if it's filed as a bug and if not, maybe
> > file one. Of course, I suspect this is intended behavior - the app on top is
> > what determines the current orientation and the phone can only have one
> > configuration at a time, so the top-most one takes over - I think.
>
> > P.S. - Even if your app is never intended to be used in landscape, you still
> > have to handle properly restoring your app's state, since your app will go
> > through the same cycle via other means (like pressing Home and coming back
> > to it a while later). So you may just have to bite the bullet here and
> > handle the orientation change.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

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


Re: [android-developers] Re: Failed to register input channel?

2011-08-27 Thread A.TNG
I also get this kind of FC. It happens a lot (only on Android 2.3.3).  Still
no clue to fix this bug.

On Sat, Aug 13, 2011 at 9:48 AM, Mark Carter  wrote:

> I'm getting this too (also only on SDK level 10) - anyone find any
> workarounds?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Jiyu

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

2011-08-27 Thread Streets Of Boston
Because the rest of your app is using memory as well.
And you'd need 10 blocks of 1.5MBytes of *contiguous *memory.
This may not be possible --> Out of memory error.

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

Re: [android-developers] Image manipulation similar to google+ app

2011-08-27 Thread Ralph Bergmann
Am 28.08.11 02:11, schrieb TreKing:
> On Sat, Aug 27, 2011 at 5:53 AM, charlie babitt
> mailto:charlie.bab...@gmail.com>> wrote:
> 
> What is the easiest way to achieve something like this? I want to
> create an ImageView which contains an image (I'm loading it from the
> SD Card) and drawing a rectangle as a frame around it. Where should
> I start looking?

take a lock at
http://android-developers.blogspot.com/2008/09/android-photostream.html

and line 103 from this file

http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/ImageUtilities.java



ralph

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

2011-08-27 Thread bob
Thanks.

On Aug 27, 2:38 pm, Kristopher Micinski 
wrote:
> On Sat, Aug 27, 2011 at 2:53 PM, Appaholics  wrote:
> > What do you mean by making it more user friendly?
>
> > On Sat, Aug 27, 2011 at 11:36 PM, bob  wrote:
>
> >> Right now, I have code that has to download data from the web after
> >> you click a button.  So, there's a delay.  Anyone know how to make
> >> this more user-friendly?
>
> I'd assume that he means that he's sleeping in the main thread and
> it's causing ANRs, or just sluggish performance.  If you want to
> download data, do it in a separate thread, look at AsyncTask.  If you
> look at AsyncTask, you should find what you need, you can google
> around for examples.  You can also use a service to do your
> downloading for you, if you want to coordinate between different
> pieces of the app.  (Note however, that you still have to use a
> separate thread, as a service in and of itself is not a separate
> thread.)
>
> Kris

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


[android-developers] Re: Terminating apps

2011-08-27 Thread kypriakos

> > I am wondering if it is possible to exit the activity but
> > subsequently
> > ask Android to terminate it immediately ...
>
> If by "it", you mean "the process", please do not do this. Please let
> Android terminate it when it is ready to. Whatever problem you are
> trying to solve can be solved better some other way.

I know I know - and thus the questions. I don't feel it's the right
thing
to do by doing so and I am trying to find a way around it.

>
> > On a different note - how far back do your books go? Did you cover
> > 1.6 and 2.1?
>
> Yes. 1.5, even. Mostly, I cover "Android" and try to point out when
> various new-ish features were added to the OS.

Good! That's a good approach. I like to study the OS but through its
transitions and the lessons learned. I will check them out.

Ack on the rest - good info. 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] Webview transparency bugs?

2011-08-27 Thread bob
Has anyone else noticed that sometimes things don't get drawn right
when you make a Webview transparent like this?

wv.setBackgroundColor(0x);

Here's an example of what I'm seeing:

http://i1190.photobucket.com/albums/z449/m75214/render2.png

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

2011-08-27 Thread bob
That URL doesn't work for some reason.

Try this:

http://sites.google.com/site/coolfonne/_/rsrc/1314500336927/problem-html/render2.png

On Aug 27, 9:41 pm, bob  wrote:
> Has anyone else noticed that sometimes things don't get drawn right
> when you make a Webview transparent like this?
>
> wv.setBackgroundColor(0x);
>
> Here's an example of what I'm seeing:
>
> http://i1190.photobucket.com/albums/z449/m75214/render2.png

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

2011-08-27 Thread Mark Carter
Out of interest, how do they get the dev's address?

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