[android-developers] Galaxy Tab E 9.6 - Native crash at libhwui.so

2017-01-09 Thread gil . cohen
Hey everyone, i faced with a very frustrating problem, i have an 
application in Google play and i get crash in the crash report that i don't 
know how to catch it, this crash is a native crash at libhwui.so and it's 
happen only in *Galaxy Tab E 9.6 *and only in *Android 4.4.*
   
   

This is the full error from the google play:








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


Re: [android-developers] Preferences layout overlaps navigation drawer in fragment

2016-02-25 Thread Gil Carvalho
This is the code

This the main activity code

public class MainActivity extends AppCompatActivity implements 
NavigationView.OnNavigationItemSelectedListener {
private SessionManager session;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
final SharedPreferences preferences = 
PreferenceManager.getDefaultSharedPreferences(this);
session = new SessionManager(getApplicationContext());
session.checkLogin();
HomeFragment home = new HomeFragment();
getSupportFragmentManager().beginTransaction().add(R.id.content, 
home).commit();
FloatingActionButton fab = (FloatingActionButton) 
findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getApplicationContext(), 
LoginActivity.class);
startActivity(intent);
}
});
DrawerLayout drawer = (DrawerLayout) 
findViewById(R.id.drawer_layout);
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, 
R.string.navigation_drawer_close);
drawer.setDrawerListener(toggle);
toggle.syncState();
NavigationView navigationView = (NavigationView) 
findViewById(R.id.nav_view);
navigationView.setNavigationItemSelectedListener(this);
}

@Override
public void onBackPressed() {
DrawerLayout drawer = (DrawerLayout) 
findViewById(R.id.drawer_layout);
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
super.onBackPressed();
}
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is 
present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
return id == R.id.action_settings || 
super.onOptionsItemSelected(item);
}

@SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
Fragment fragment = null;
Class fragmentClass = null;
int id = item.getItemId();
if (id == R.id.nav_home) {
fragmentClass = HomeFragment.class;
} else if (id == R.id.nav_req) {


} else if (id == R.id.nav_ver) {

} else if (id == R.id.nav_atividades) {
fragmentClass = AtividadesFragment.class;
} else if (id == R.id.nav_training) {
fragmentClass = TrainingFragment.class;
} else if (id == R.id.nav_settings) {
fragmentClass = SettingsFragment.class;
}
else if (id == R.id.nav_about) {
}
else if (id == R.id.nav_sair) {
session.logOut();
System.exit(0);
}
try{
assert fragmentClass != null;
fragment = (Fragment) fragmentClass.newInstance();
}catch (Exception e) {
e.printStackTrace();
}

FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.content, 
fragment).commit();
fragmentManager.popBackStack();
DrawerLayout drawer = (DrawerLayout) 
findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;
}
}

And all fragments are okbut when i call SettingsFragment i have this 
problem
This settings call the layout like this

public class SettingsFragment extends PreferenceFragmentCompat {
//SharedPreferences sharedPreferences;
   @Override
public void onCreatePreferences(Bundle bundle, String s) {
addPreferencesFromResource(R.xml.prefs);
//sharedPreferences = 
PreferenceManager.getDefaultSharedPreferences(getActivity());
}
}


The rest of the fragments like this


@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle 
savedInstanceState) {
View rootView = inflater.inflate(R.layout.atividades, container, false);
setHasOptionsMenu(true);
return rootView;

}


What's wrong?


Thanks for your help




On Thursday, February 25, 2016 at 6:29:57 PM UTC, TreKing wrote:
>
>
> On Wed, Feb 24, 2016 at 7:58 AM, Gil Carvalho  > wrote:
>
>> So, when i runn the app in my phone...i get preferences overlaping the 
>> navigation drawer...but in android studio preview it doesn't,
>>
>> Any help?
>&

[android-developers] Google Cloud Messaging Payload Issue

2012-08-21 Thread Jorge Gil Royo
 

Hi all.

I'm making an application with a server (web) part and a client part in 
android. The web part is responsible for registering the device and send 
messages to the device using GCM.

The problem comes when I try to send a payload message to the mobile client 
application, the payload value comes as null.

The server code is as follows:

Message message = *new *Message.Builder().collapseKey("1"
).timeToLive(3).delayWhileIdle(*true*).addData("payload", "payload"
).build();

System.*out*.println(message.getData().get("payload"));

Result result = sender.send(message, registrationId, 5);

When printing on screen on the server, the result of payload value is 
"payload", but its value is null on the client:

String newMessage = intent.getExtras().getString(*"payload"*);
System.*out*.println(newMessage);

Anyone know why this happens? How should I do it?

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

Re: [android-developers] Android Carousel

2012-07-05 Thread Jorge Gil Royo
Problem solved.

What happened was that I did not realize the resolution of the mobile screen,
then the carousel buttons appear, but were covered by other layouts.

Once adjusted the size and position of the buttons of the carousel, the
buttons are displayed correctly.

Thanks for the help!

2012/7/4 Jorge Gil Royo 

> Using the emulator 4.x working properly.
>
> When I use the phone there is no message in the logcat containing
> information about the carousel.
>
> Is the first time something happens to me so strange.
>
> Thank you!
>
>
> 2012/7/4 Jorge Gil Royo 
>
>> Usando el emulador 4.x funciona correctamente.
>>
>> Cuando uso el teléfono móvil no aparece ningún mensaje en el LogCat que
>> contenga información acerca del carrusel.
>>
>> Es la primera vez que me sucede algo tan raro.
>>
>> Gracias!
>>
>>
>> 2012/7/2 TreKing 
>>
>>> On Fri, Jun 29, 2012 at 6:26 AM, Jorge Gil Royo wrote:
>>>
>>>> But when I test the application on a mobile phone (Android 4.x) the
>>>> carousel works correctly, but no buttons appear.
>>>>
>>>
>>> And if you test on the 4.X emulator?
>>>
>>>
>>>>  Does anyone know why it happens?
>>>> Does anyone know how to fix it?
>>>>
>>>
>>> Your question is extremely vague. How about some screenshots? Anything
>>> in the LogCat that looks useful?
>>>
>>>
>>> -
>>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>>> transit tracking app for Android-powered devices
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>

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

Re: [android-developers] Android Carousel

2012-07-04 Thread Jorge Gil Royo
Using the emulator 4.x working properly.

When I use the phone there is no message in the logcat containing
information about the carousel.

Is the first time something happens to me so strange.

Thank you!

2012/7/4 Jorge Gil Royo 

> Usando el emulador 4.x funciona correctamente.
>
> Cuando uso el teléfono móvil no aparece ningún mensaje en el LogCat que
> contenga información acerca del carrusel.
>
> Es la primera vez que me sucede algo tan raro.
>
> Gracias!
>
>
> 2012/7/2 TreKing 
>
>> On Fri, Jun 29, 2012 at 6:26 AM, Jorge Gil Royo wrote:
>>
>>> But when I test the application on a mobile phone (Android 4.x) the
>>> carousel works correctly, but no buttons appear.
>>>
>>
>> And if you test on the 4.X emulator?
>>
>>
>>>  Does anyone know why it happens?
>>> Does anyone know how to fix it?
>>>
>>
>> Your question is extremely vague. How about some screenshots? Anything in
>> the LogCat that looks useful?
>>
>>
>> -
>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>> transit tracking app for Android-powered devices
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Re: [android-developers] Android Carousel

2012-07-04 Thread Jorge Gil Royo
Usando el emulador 4.x funciona correctamente.

Cuando uso el teléfono móvil no aparece ningún mensaje en el LogCat que
contenga información acerca del carrusel.

Es la primera vez que me sucede algo tan raro.

Gracias!

2012/7/2 TreKing 

> On Fri, Jun 29, 2012 at 6:26 AM, Jorge Gil Royo wrote:
>
>> But when I test the application on a mobile phone (Android 4.x) the
>> carousel works correctly, but no buttons appear.
>>
>
> And if you test on the 4.X emulator?
>
>
>>  Does anyone know why it happens?
>> Does anyone know how to fix it?
>>
>
> Your question is extremely vague. How about some screenshots? Anything in
> the LogCat that looks useful?
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Android Carousel

2012-06-29 Thread Jorge Gil Royo
Hi all.

I'm working on Android 2.2 and I have a carousel of buttons. If I test
the application on the Eclipse emulator everything works fine. But
when I test the application on a mobile phone (Android 4.x) the
carousel works correctly, but no buttons appear.

Does anyone know why it happens?

Does anyone know how to fix it?

Thank you!

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


[android-developers] Are custom xml attributes supported on current aapt version ?

2012-04-22 Thread Gil Eichenbaum
I just upgraded my SDK and wanted to find out if custom attributes are 
supported now, or should I get a patched aapt version like i had to do 
before?

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

2011-12-12 Thread gil eichenbaum
I have two apps installed which share same user id.

I can get resources from the second .apk, and now I want to load a
class from it, but allways fail (ClassNotFound exeption).

What is the correct way to do this?

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


[android-developers] Re: How do you load class from a sharedUser apk file?

2011-11-29 Thread gil eichenbaum
Tried that one as well (my.package.myclass), but still get the same
result.

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

2011-11-29 Thread gil eichenbaum
I have also found this:

http://yenliangl.blogspot.com/2009/11/dynamic-loading-of-classes-in-your.html

which did seem to help, but still can't get to load my class from
another apk.

any suggestions ?

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

2011-11-28 Thread gil eichenbaum
Are you trying to avoid getting specific characters inside your
editText or you have another reason to disable popups?

On 28 נובמבר, 17:09, Deepak Kumar  wrote:
>  Filter in the input text means?Actually once I will long press on any of
> the key present on softKeyboard  it  will  popup  options  and  upon
> selection  ,it  will  be  displayed  in Edittext.
>
> Thanks,
> DEEPAK KUMAR
>
> On Mon, Nov 28, 2011 at 8:26 PM, gil eichenbaum 
> wrote:
>
>
>
>
>
>
>
> > Isn't filtering the input text inside your editText enough to get what
> > you need?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Disable long press on soft Keyboard in android

2011-11-28 Thread gil eichenbaum
Isn't filtering the input text inside your editText enough to get what
you need?

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


[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-28 Thread gil eichenbaum
try adding this:

popupWindow.setWindowLayoutMode(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);

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

2011-11-28 Thread gil eichenbaum
Hello Everyone!

I am trying to load a class from another .apk which uses the same
sharedUser as my apk.

No matter what I try, I always get just ClassNotFoundExeption.

This is one thing I have tried:

classLoader = context.createPackageContext(pInfo.packageName,
0).getClassLoader();
classLoader.loadClass("myClass");

Is there any other way to make this work?

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


[android-developers] Issue 9656: Library projects don't support custom XML attributes for custom classes

2011-11-23 Thread gil eichenbaum
>From what i have read about new ADT R.15, I hoped this issue is solved
by now, but when I tried compiling my library project and the projects
that use it, I got same error saying "error: No resource identifier
found for
attribute."

I was using a sulotion offered here:
http://devmaze.wordpress.com/2011/05/22/the-case-of-android-libraries-and-custom-xml-attributes-part-2/

but it requieres the aapt.exe to be replaced, which I belive would not
be good for this version.

Is there any good sulotion for this ADT version ?

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


[android-developers] how can I post questions here ?

2011-11-23 Thread gil eichenbaum
I have tried posting a question, but it never got to be on the thread.
What sould I do?

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


[android-developers] ?Is it now possible to declare a custom attribute in a library project

2011-11-22 Thread gil eichenbaum
I know this issue has been disscused in many places, but I couldn't
find a good answer for it.

I am developing a library project, which declares custom attributes
and uses them locally, and I want to re-use these attributes on the
applications which will use that library.

I am now using  ADT 15.0.1 (November 2011) and the most recent and
updated SDK, but when I tried compiling the app, console was all full
with errors about "No resource identifier found for
attribute..."


Wasn't this issue solved with ADT 15 ?

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


[android-developers] ?Is it now possible to declare a custom attribute in a library project

2011-11-22 Thread gil eichenbaum
I know this issue has been disscused in many places, but I couldn't
find a good answer for it.

I am developing a library project, which declares custom attributes
and uses them locally, and I want to re-use these attributes on the
applications which will use that library.

I am now using  ADT 15.0.1 (November 2011) and the most recent and
updated SDK, but when I tried compiling the app, console was all full
with errors about "No resource identifier found for
attribute..."


Wasn't this issue solved with ADT 15 ?

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

2011-01-19 Thread José Gil
Thanks Stephan
José

On 19 ene, 08:26, Stephan Wiesner  wrote:
> No (at least I did not find a way to do that) :-( Would be great
> though.
>
> Stephan
>
> --
> Interessiert an Android?http://android-schweiz.blogspot.com/
> Whant to learn German?http://german-podcast.blogspot.com
>
> On 15 Jan., 00:38, José Gil  wrote:
>
>
>
>
>
>
>
> > Hi all!
>
> > Is it possible to select the relief view in a mapActivity?
> > I'm looking for a method similar to setSatellite or setTraffic on
> > MapView
>
> > Thanks
>
> > José Gil

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

2011-01-19 Thread José Gil
Hi TreKing,
In the Google Maps JavaScript API V2 there is a constant named:
G_PHYSICAL_MAP. It is a map type which displays maps with physical
features such as terrain and vegetation.
I'm looking for something similar in the Google Maps API for Android.
Thanks
José

On 19 ene, 03:15, TreKing  wrote:
> On Fri, Jan 14, 2011 at 5:38 PM, José Gil  wrote:
> > Is it possible to select the relief view in a mapActivity?
>
> Uh ... what is a "relief view"?
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Relief view on mapActivity?

2011-01-18 Thread José Gil
Hi all!

Is it possible to select the relief view in a mapActivity?
I'm looking for a method similar to setSatellite or setTraffic on
MapView

Thanks

José Gil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: c2DM error when third-party server sends data to push

2011-01-03 Thread Jose Ignacio Gil Jaldo
Hi Nagaraj,

I made it work... The point is: what are you sending as Auth token?
the whole response that you got from /ClientLogin? or just the
Auth= section? (Without the Auth=). You have to send the second
one.

If you're already doing it that way, try removing all "\n" in that
String.

You will also have to disable expect:continue in http requests (it's
something that sends only the headers and if it's ok, continues
sending the body). To do so:

HttpParams params = new BasicHttpParams();
HttpProtocolParams.setUseExpectContinue(params, false);
HttpClient httpclient = new DefaultHttpClient(params);

That way it worked for me...

On Jan 3, 11:25 am, Jose Ignacio Gil Jaldo 
wrote:
> Hi Nagaraj,
>
> could you make it work? I also tried downloading sources from google
> examples (JumpNote and Google2Chrome) and I couldn't make them work
> due to Authentication error (I think it could be related to something
> that Nasif Nooruden pointed you out about trimming the Auth string).
> However in my code, I've tried trimming the string and then I get 401
> - UnAuthorized (I suppose it is because I have wrongly changed the
> auth string).
>
> Could it be an Apache HTTP related issue?
>
> But for me the most strange thing is that I can see the header in my
> POST request and the value of Content-Length is the same as the length
> of the POST parameters (and I have no querystring parameters).
>
> On Dec 27 2010, 6:18 pm, Jose Ignacio Gil Jaldo 
> wrote:
>
> > I am having the same problem as you and I think it's not my mistake I
> > have checked the tcpdump (to do it I changed from https to http to
> > have plain text).
>
> > POST /c2dm/send HTTP/1.1
>
> > Authorization: GoogleLogin
> > auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG-
> > pTSPl07dQWCwM2tNSnbFCS6FO-
> > Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO-
> > eHFXp1UsCE6FM6mQ
> > LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS-
> > iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq-
> > TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T-
> > NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk
> > Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI-
> > D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl--
> > eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs
>
> > Content-Type: application/x-www-form-urlencoded
>
> > Content-Length: 209
>
> > User-Agent: Jakarta Commons-HttpClient/3.1
>
> > Host: android.apis.google.com
>
> > registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz-
> > i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfE&collapse_key=12345&data.receiver=1234&data.source=12345&data.message=holaHTTP/
> > 1.0411Length Required
>
> > Content-Type: text/html; charset=UTF-8
>
> > Content-Length: 1363
>
> > Date: Mon, 27 Dec 2010 16:30:22 GMT
>
> > Server: GFE/2.0
>
> > 
> > 
> > 411Length Required
> > <!--
> > body {font-family: arial,sans-serif}
> > div.nav {margin-top: 1ex}
> > div.nav A {font-size: 10pt; font-family: arial,sans-serif}
> > span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight:
> > bold}
> > div.nav A,span.big {font-size: 12pt; color: #cc}
> > div.nav A {font-size: 10pt; color: black}
> > A.l:link {color: #6f6f6f}
> > A.u:link {color: green}
> > //-->
> > <!--
> > var rc=411;
> > //-->
> > 
> > 
> > 
> >  > rowspan=3 width=1% nowrap>
> > G > color=#c41200 size=10>o > size=10>og > face=times color=#30a72f size=10>l > color=#c41200 size=10>e  
> >  
> >  > color="#ff">Error
> >  
> > 
> > Length Required
> > POST requests require a Content-length header.
>
> > 
> > 
> >  > bgcolor="#3366cc">
> > 
>
> > This is my code:
> >         Protocol myhttps = new Protocol("https", new
> > EasySSLProtocolSocketFactory(), 443);
> >                 HttpClient httpclient = new HttpClient();
> >                 
> > httpclient.getHostConfiguration().setHost("android.apis.google.com",
> > 443, myhttps);
> >                 PostMethod httppost = new PostMethod(C2DM_URL);
> &

[android-developers] Re: c2DM error when third-party server sends data to push

2011-01-03 Thread Jose Ignacio Gil Jaldo
Hi Nagaraj,

could you make it work? I also tried downloading sources from google
examples (JumpNote and Google2Chrome) and I couldn't make them work
due to Authentication error (I think it could be related to something
that Nasif Nooruden pointed you out about trimming the Auth string).
However in my code, I've tried trimming the string and then I get 401
- UnAuthorized (I suppose it is because I have wrongly changed the
auth string).

Could it be an Apache HTTP related issue?

But for me the most strange thing is that I can see the header in my
POST request and the value of Content-Length is the same as the length
of the POST parameters (and I have no querystring parameters).

On Dec 27 2010, 6:18 pm, Jose Ignacio Gil Jaldo 
wrote:
> I am having the same problem as you and I think it's not my mistake I
> have checked the tcpdump (to do it I changed from https to http to
> have plain text).
>
> POST /c2dm/send HTTP/1.1
>
> Authorization: GoogleLogin
> auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG-
> pTSPl07dQWCwM2tNSnbFCS6FO-
> Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO-
> eHFXp1UsCE6FM6mQ
> LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS-
> iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq-
> TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T-
> NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk
> Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI-
> D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl--
> eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs
>
> Content-Type: application/x-www-form-urlencoded
>
> Content-Length: 209
>
> User-Agent: Jakarta Commons-HttpClient/3.1
>
> Host: android.apis.google.com
>
> registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz-
> i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfE&collapse_key=12345&data.receiver=1234&data.source=12345&data.message=holaHTTP/
> 1.0 411 Length Required
>
> Content-Type: text/html; charset=UTF-8
>
> Content-Length: 1363
>
> Date: Mon, 27 Dec 2010 16:30:22 GMT
>
> Server: GFE/2.0
>
> 
> 
> 411 Length Required
> <!--
> body {font-family: arial,sans-serif}
> div.nav {margin-top: 1ex}
> div.nav A {font-size: 10pt; font-family: arial,sans-serif}
> span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight:
> bold}
> div.nav A,span.big {font-size: 12pt; color: #cc}
> div.nav A {font-size: 10pt; color: black}
> A.l:link {color: #6f6f6f}
> A.u:link {color: green}
> //-->
> <!--
> var rc=411;
> //-->
> 
> 
> 
>  rowspan=3 width=1% nowrap>
> G color=#c41200 size=10>o size=10>og face=times color=#30a72f size=10>l color=#c41200 size=10>e  
>  
>  color="#ff">Error
>  
> 
> Length Required
> POST requests require a Content-length header.
>
> 
> 
>  bgcolor="#3366cc">
> 
>
> This is my code:
>         Protocol myhttps = new Protocol("https", new
> EasySSLProtocolSocketFactory(), 443);
>                 HttpClient httpclient = new HttpClient();
>                 
> httpclient.getHostConfiguration().setHost("android.apis.google.com",
> 443, myhttps);
>                 PostMethod httppost = new PostMethod(C2DM_URL);
>                 try {
>                         httppost.addRequestHeader("Authorization", 
> "GoogleLogin auth=" +
> authToken);
>                         httppost.addRequestHeader("Content-Type", 
> "application/x-www-form-
> urlencoded");
>                         httppost.addParameter("registration_id", 
> registrationID);
>                         httppost.addParameter("collapse_key", collapseKey);
>                         httppost.addParameter("data.receiver", destination);
>                         httppost.addParameter("data.source", source);
>                         httppost.addParameter("data.message", message);
>                         httppost.addRequestHeader("Content-Length",
> ""+httppost.getRequestEntity().getContentLength());
>                         httpclient.executeMethod(httppost);
>                         return new String(httppost.getResponseBody());
>                 } finally {
>                         httppost.releaseConnection();
>                 }
>         }
>
> I have tested all those headers and it does

[android-developers] Re: c2DM error when third-party server sends data to push

2010-12-28 Thread Jose Ignacio Gil Jaldo
I am having the same problem as you and I think it's not my mistake I
have checked the tcpdump (to do it I changed from https to http to
have plain text).

POST /c2dm/send HTTP/1.1

Authorization: GoogleLogin
auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG-
pTSPl07dQWCwM2tNSnbFCS6FO-
Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO-
eHFXp1UsCE6FM6mQ
LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS-
iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq-
TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T-
NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk
Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI-
D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl--
eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs


Content-Type: application/x-www-form-urlencoded

Content-Length: 209

User-Agent: Jakarta Commons-HttpClient/3.1

Host: android.apis.google.com



registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz-
i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfE&collapse_key=12345&data.receiver=1234&data.source=12345&data.message=holaHTTP/
1.0 411 Length Required

Content-Type: text/html; charset=UTF-8

Content-Length: 1363

Date: Mon, 27 Dec 2010 16:30:22 GMT

Server: GFE/2.0







411 Length Required






Google  
 
Error
 

Length Required
POST requests require a Content-length header.







This is my code:
Protocol myhttps = new Protocol("https", new
EasySSLProtocolSocketFactory(), 443);
HttpClient httpclient = new HttpClient();

httpclient.getHostConfiguration().setHost("android.apis.google.com",
443, myhttps);
PostMethod httppost = new PostMethod(C2DM_URL);
try {
httppost.addRequestHeader("Authorization", "GoogleLogin 
auth=" +
authToken);
httppost.addRequestHeader("Content-Type", 
"application/x-www-form-
urlencoded");
httppost.addParameter("registration_id", 
registrationID);
httppost.addParameter("collapse_key", collapseKey);
httppost.addParameter("data.receiver", destination);
httppost.addParameter("data.source", source);
httppost.addParameter("data.message", message);
httppost.addRequestHeader("Content-Length",
""+httppost.getRequestEntity().getContentLength());
httpclient.executeMethod(httppost);
return new String(httppost.getResponseBody());
} finally {
httppost.releaseConnection();
}
}

I have tested all those headers and it does not work.

Did you find anything? Is it possible to contact to some at C2DM
project to see what happens?

Thanks a lot!

On Dec 24, 3:23 pm, Nagaraj Ramarao  wrote:
> Can someone knowledgable with C2DM help me resolve this issue please.
>
> Thanks
> Nagaraj
>
> On Thu, Dec 23, 2010 at 10:20 AM, nagaraj  wrote:
> > I am trying to push data from my server hosting a webservice but I get
> > the following error:
>
> > 
> > 
> > 411 Length Required
> > 
> > 
> > 
> > 
> > 
> >  > rowspan=3 width=1% nowrap>
> > G > color=#c41200 size=10>o > size=10>og > face=times color=#30a72f size=10>l > color=#c41200 size=10>e  
> >  
> >  > color="#ff">Error
> >  
> > 
> > Length Required
> > POST requests require a Content-length header.
>
> > 
> > 
> >  > bgcolor="#3366cc">
> > 
>
> > Here is the java code that posts message to google c2dm which inturn
> > will send a push notification to the device:
>
> >  private void postData(String auth, String id, String data) {
> >  DefaultHttpClient client = new DefaultHttpClient();
> >  HttpPost httppost = new HttpPost(
> >    "https://android.apis.google.com/c2dm/send";);
> >  List formparams = new ArrayList();
> >  formparams.add(new Bas

[android-developers] Re: c2DM error when third-party server sends data to push

2010-12-28 Thread Jose Ignacio Gil Jaldo
Hi Nagaraj,

did you solve the problem?

I'm having just the same problem!!! And I start to think it's not my
mistake because I have changed https for http and taken tcpdump traces
and I have seen that I am sending the header. I have tested it with
several lower case upper case combinations. My code is:

public static String C2DM_URL = "https://android.apis.google.com/c2dm/
send";

public String sendMessage(String registrationID, String source, String
destination, String message, String collapseKey, String authToken)
throws Exception{
Protocol myhttps = new Protocol("https", new
EasySSLProtocolSocketFactory(), 443);
HttpClient httpclient = new HttpClient();

httpclient.getHostConfiguration().setHost("android.apis.google.com",
443, myhttps);
PostMethod httppost = new PostMethod(C2DM_URL);
try {
httppost.addRequestHeader("Authorization", "GoogleLogin 
auth=" +
authToken);
httppost.addRequestHeader("Content-Type", 
"application/x-www-form-
urlencoded");
httppost.addParameter("registration_id", 
registrationID);
httppost.addParameter("collapse_key", collapseKey);
httppost.addParameter("data.receiver", destination);
httppost.addParameter("data.source", source);
httppost.addParameter("data.message", message);
httppost.addRequestHeader("Content-Length",
""+httppost.getRequestEntity().getContentLength());
httppost.addRequestHeader("Content-length",
""+httppost.getRequestEntity().getContentLength());
httppost.addRequestHeader("content-length",
""+httppost.getRequestEntity().getContentLength());
httpclient.executeMethod(httppost);
return new String(httppost.getResponseBody());
} finally {
httppost.releaseConnection();
}
}

Does anybody see any mistake? Does anybody know what can be the
problem? Is it possible to contact someone at Google to try to see
what's happening?

Here is the HTTP request/response:

POST /c2dm/send HTTP/1.1

Authorization: GoogleLogin
auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG-
pTSPl07dQWCwM2tNSnbFCS6FO-
Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO-
eHFXp1UsCE6FM6mQ
LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS-
iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq-
TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T-
NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk
Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI-
D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl--
eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs


Content-Type: application/x-www-form-urlencoded

Content-Length: 209

User-Agent: Jakarta Commons-HttpClient/3.1

Host: android.apis.google.com



registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz-
i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfE&collapse_key=12345&data.receiver=1234&data.source=12345&data.message=holaHTTP/
1.0 411 Length Required

Content-Type: text/html; charset=UTF-8

Content-Length: 1363

Date: Mon, 27 Dec 2010 16:30:22 GMT

Server: GFE/2.0







411 Length Required






Google  
 
Error
 

Length Required
POST requests require a Content-length header.







On Dec 24, 3:23 pm, Nagaraj Ramarao  wrote:
> Can someone knowledgable with C2DM help me resolve this issue please.
>
> Thanks
> Nagaraj
>
> On Thu, Dec 23, 2010 at 10:20 AM, nagaraj  wrote:
> > I am trying to push data from my server hosting a webservice but I get
> > the following error:
>
> > 
> > 
> > 411 Length Required
> > 
> > 
> > 
> > 
> > 
> >  > rowspan=3 width=1% nowrap>
> > G > color=#c41200 size=10>o > size=10>

[android-developers] Re: Google wave invitations...?

2009-10-20 Thread Gil

any else? i need one. thanks.

On Oct 16, 11:41 am, Kenneth Adam Miller 
wrote:
> Who wants to be in Google wave?
> I have 16 invitations
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Gil

Any more left? I wanna have one . Thanks...

On Oct 16, 11:41 am, Kenneth Adam Miller 
wrote:
> Who wants to be in Google wave?
> I have 16 invitations
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Google wave invitations...?

2009-10-18 Thread Gil

Could you share me an invitation?
Thanks very much.

On Oct 17, 4:32 am, renjun wang  wrote:
> On Thu, 2009-10-15 at 22:41 -0500, Kenneth Adam Miller wrote:
> > Who wants to be in Google wave?
> > I have 16 invitations
>
> does it have linux version?

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



[android-developers] Re: Error starting tools in 1.6 on Mac OS - SOLUTION

2009-09-17 Thread Gil Margolin

Or a much easier way is just rename the folder "/tools/lib/x86" to "/
tools/lib/x86_64"

On Sep 16, 10:04 pm, David Horn  wrote:
> Hi,
>
> I've been unable to run any of the tools in the Donut SDK, using Snow
> Leopard - it seems to be due to the 64bit nature of the OS.
>
> Followed the steps in the upgrade guide, but when it comes to starting
> any of the tools (android, ddms etc), they refuse to start with the
> error message:
>
> "David-Horns-MacBook:tools David$ ./ddms
> SWT folder '/Users/David/Desktop/Eclipse IDE/android-sdk-
> mac_x86-1.6_r1/tools/lib/x86_64' does not exist.
> Please export ANDROID_SWT to point to the folder containing swt.jar
> for your platform."
>
> There is no x86-64 folder, but I've come up with a bit of a bodge that
> works.  Open the file in a handy text editor, and look for the lines:
>
> # Combine the swtpath and the framework dir path.
> if [ -d "$swtpath" ]; then
>     frameworkdir="${swtpath}:${frameworkdir}"
> else
>     echo "SWT folder '${swtpath}' does not exist."
>     echo "Please export ANDROID_SWT to point to the folder containing
> swt.jar for your platform."
>     exit 1
> fi
>
> Replace them with this, substituting your own path in to the lib
> folder.
>
> # Combine the swtpath and the framework dir path.
>     frameworkdir="/Users/David/Desktop/Eclipse IDE/android-sdk-
> mac_x86-1.6_r1/tools/lib/x86:${frameworkdir}"
>
> Hope this helps (not sure if this is a problem unique to me, or
> whether it's affecting everyone on Snow Leopard).
>
> Dave.

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

2009-05-29 Thread Gil

Why is it possible to input text into a disabled EditText by using the
soft keyboard? Is this a bug in Cupcake?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Cupcake Keyboard Crash in Landscape mode

2009-05-28 Thread Gil

If I enable the "Orientation" preference in the "Sound & Display"
settings and I use the device in landscape mode I get the following
crash in Cupcake when I hit the Enter key:

05-28 19:48:40.250: ERROR/AndroidRuntime(364):
java.lang.IndexOutOfBoundsException: getChars (6 ... 0) has end before
start
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.text.SpannableStringBuilder.checkRange
(SpannableStringBuilder.java:935)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.text.SpannableStringBuilder.getChars
(SpannableStringBuilder.java:847)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.text.TextUtils.getChars(TextUtils.java:69)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.text.SpannableStringBuilder.(SpannableStringBuilder.java:
59)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.text.SpannableStringBuilder.subSequence
(SpannableStringBuilder.java:839)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.widget.TextView.extractTextInternal(TextView.java:4405)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.widget.TextView.reportExtractedText(TextView.java:4443)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.widget.TextView.finishBatchEdit(TextView.java:4585)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.widget.TextView.endBatchEdit(TextView.java:4567)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
com.android.internal.widget.EditableInputConnection.endBatchEdit
(EditableInputConnection.java:54)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
com.android.internal.view.IInputConnectionWrapper.executeMessage
(IInputConnectionWrapper.java:334)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
com.android.internal.view.IInputConnectionWrapper
$MyHandler.handleMessage(IInputConnectionWrapper.java:57)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.os.Looper.loop(Looper.java:123)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
android.app.ActivityThread.main(ActivityThread.java:3948)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
java.lang.reflect.Method.invokeNative(Native Method)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
java.lang.reflect.Method.invoke(Method.java:521)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
05-28 19:48:40.250: ERROR/AndroidRuntime(364): at
dalvik.system.NativeStart.main(Native Method)

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

2009-03-27 Thread Gil

I am trying to use a TabActivty with theme Light. The contrast of the
font in unselected tabs makes the tabs text unreadable. Also, due to
the white background of the activity the edges of the tabs are barely
visible. Are tabs supported for theme Light? Am I missing something?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Paid apps related questions discussion list?

2009-02-21 Thread Gil

+ 1 for updates not downloading.

Google, please fix the Market problems. I got 100 e-mails today about
Market payment and download problems. Please support your products!

On Feb 21, 12:53 pm, Jon Colverson  wrote:
> On Feb 21, 3:24 pm, Stoyan Damov  wrote:
>
> > Is there a dedicated list for developers who have paid apps in Android
> > Market? It would be best if that list has at least 1 *Google* (not
> > Android, i.e. I don't need it to be technically savvy) employee able
> > to give sensible answers to WTF questions related to the Market and
> > paid apps?
>
> This would seem to be the official 
> place:http://www.google.com/support/forum/p/Android+Market
>
> --
> Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Paid apps related questions discussion list?

2009-02-21 Thread Gil

Many users who try to download paid apps are complaining that the
downloads are not actually working. Google needs to display a support
e-mail regarding Market issues in plain site so that users will not
contact developers for payment and download related issues.

On Feb 21, 10:54 am, Stoyan Damov  wrote:
> "Think twice before turning on the "Copy Protection" option!" I think
>
> On Sat, Feb 21, 2009 at 7:25 PM, ellipsoidmob...@googlemail.com
>
>  wrote:
>
> > Yup I share a lot of these frustrations. I now have a return but
> > absolutely no idea why. I don't know whether my app is visible to all
> > users in the US or just a subset.  I have copy protection enabled, so
> > maybe as above it's causing my app to crash? Who knows - I can't
> > download it to try it myself (I'm in the UK) and I can't even see the
> > feedback for my own app!!
>
> > BTW - Stoyan, where's the thread on copy protection causing crashes? I
> > couldn't find 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: TextView with autoLink

2009-02-19 Thread Gil

If the linksClickable property is set to false the problem goes away.

On Feb 19, 2:00 pm, Gil  wrote:
> My app implements a ListView in which every row contains a TextView
> which has the autoLink property turned on. The links are properly
> displayed when emails, phone numbers and web links are present in the
> text. The problem I have is that long presses don't work as they would
> if the no links would be detected in the text message. Specifically
> the selection rectangle (the one that becomes progressively whiter as
> long as the list item is pressed) does not appear at all. It looks
> like when links are present in the text the touch events are consumed
> by the links.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] TextView with autoLink

2009-02-19 Thread Gil

My app implements a ListView in which every row contains a TextView
which has the autoLink property turned on. The links are properly
displayed when emails, phone numbers and web links are present in the
text. The problem I have is that long presses don't work as they would
if the no links would be detected in the text message. Specifically
the selection rectangle (the one that becomes progressively whiter as
long as the list item is pressed) does not appear at all. It looks
like when links are present in the text the touch events are consumed
by the links.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Charging for upgrading from free to paid version with new features

2009-02-19 Thread Gil

David,

If I understand correctly what you are saying, a developer can upload
an updated version of an application and then set a price. Others seem
to suggest that the application package name must be changed (a new
application must be created) in order to allow the developer to set a
price otherwise the price of the app cannot be changed (it must remain
free). Please clarify this matter for us.

On Feb 17, 7:10 pm, tberthel  wrote:
> On Feb 17, 6:09 pm, "David McLaughlin (AndroidAdvocate)"
>
>  wrote:
> > Hi,
>
> > You may not add a price to an existing app; instead, you will need to
> > upload a new application version and add a price to that. Section 3.3
> > states that people who download a free app can not be charged at a
> > later date for what they have already downloaded. For example, they
> > can't be charged an ongoing subscription fee for additional content.
>
> To me this contradicts the following:
>
> " This is not intended to prevent distribution of free trial versions
> of
> the Product with an “upsell” option to obtain the full version of the
> Product: Such free trials for Products are encouraged. "
>
> Where, "obtain the full version" could be just getting a registration
> key that unlocks more features.  I will however create a new version
> despite the insanity of making customers download applications more
> than once.  They will still need to purchase a registration key each
> year from Google if they downloaded the application from Google
> otherwise they will revert back to Trial Mode.  This clearly meets the
> requirements.  Since when did "obtain" == download.
>
> > However, the user can be redirected back to the market to download a
> > "full" version (this would be considered a different version) for a
> > price.
>
> > Thanks,
> > David
>
> > On Feb 17, 12:12 pm, Jay-andro  wrote:
>
> > > I have a free app on the Market. With paid support finally arriving, I
> > > want to be able to charge for my app. I have readied a new version
> > > that includes new features. Can I publish this as a version 2.0 and
> > > charge for it including to existing users?
>
> > >http://market.android.com/support/bin/answer.py?answer=138412&topic=1...
> > > says:
> > > Please keep in mind, that in accordance with section 3.3 in the
> > > Developer Distribution Agreement, any users who installed the free
> > > version of your application are entitled to upgrades of that free
> > > version for no extra charge.
>
> > > However The Distribution Agreement 3.3 says:
> > >  You may not collect future charges from users for copies of the
> > > Products that those users were initially allowed to download for
> > > free.
> > > This is not intended to prevent distribution of free trial versions of
> > > the Product with an “upsell” option to obtain the full version of the
> > > Product: Such free trials for Products are encouraged.
> > > -
> > > If I release an upgrade that has new features, that is not "copies of
> > > the Product that users initially downloaded". It is not a copy, it is
> > > a new changed version. I should be able to charge for a version that
> > > has new features. But Google seems to want to disallow that citing
> > > 3.3
> > > which doesn't disallow it in my view.
>
> > > Can I charge existing users for upgrades to a version with new
> > > features?
> > > How do you other developers view this and what are you planning on
> > > doing?
> > > Jay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: RC33 Network Problem

2009-02-18 Thread Gil

Yes, the phone still has the connection to the router however what
matters is the status of the TCP socket which needs end-to-end
connectivity. Applications need to know when TCP connectivity is lost.

Not all TCP based protocols require a response for a request. For
example in XMPP you send keep-alive packets to the server the server
does not actually respond. Also, sending packets just to see if the
TCP connection is alive is a waste of battery power.

It is wrong for a disconnected socket not to throw an IOException when
trying to send data as well as when executing a blocking read. It also
needs to throw and EOFException when the server disconnects. While
this behavior is not in the documentation one would expect the same
API behavior in dalvik and JVM from this standpoint. I want to
reiterate that prior firmware versions (RC28/maybe RC30 and earlier)
exhibited the correct behavior from this standpoint.  Even the current
emulator works fine by throwing an IOException from a blocking read 20
to 30 seconds after the TCP connection is lost.

On Feb 18, 5:28 pm, "Justin (Google Employee)" 
wrote:
> I'm looking into this further, although I'm not sure that this is
> actually wrong behavior. In terms of the network interface, there is
> no change when the router loses internet connectivity. The phone is
> still connected to the router. The only way anything can really deal
> with this is to have a timeout. If no response is sent in X seconds,
> assume the remote server died or there is no path to it. While
> inconvenient, you should be able to extend BufferedInputReader to use
> this timeout mechanism. Have a timer thread, that if the timer expires
> and no bytes have been read, throw an exception.
>
> I'll look into this further.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Feb 17, 5:02 pm, Gil  wrote:
>
> > Can anyone from Google comment on this matter?
>
> > On Feb 17, 11:42 am, Gil  wrote:
>
> > > I did further testing and I was wrong about one thing: the disconnect
> > > is not detected at all (not even after 5 minutes as I said initially).
> > > The reason I though that the disconnection was detected after 5 min.
> > > is because the W-Fi was going to sleep. If I keep Wi-Fi alive by not
> > > allowing the phone to go to sleep the problem is quite evident. I also
> > > looked at the GTalk debug messages and it turns out that it has the
> > > same problem (it never detects that it is disconnected from the
> > > server).
>
> > > On Feb 17, 11:19 am, Gil  wrote:
>
> > > > Unfortunately, watching the network state will not always work because
> > > > it does not account for end-to-end TCP connectivity. The server may
> > > > crash or its Internet connection may go down and you won't know about
> > > > it.
>
> > > > On Feb 17, 10:05 am, Guillaume Perrot 
> > > > wrote:
>
> > > > > Yes it's exactly what happens since RC33.
> > > > > Kinda annoying. I have to close sockets in a separate thread when I
> > > > > receive a connectivity event indicating the network is down or we
> > > > > switched network. This thread becomes zombie most of the time because
> > > > > the socket refuses to close (deadlock with a nativeread).
>
> > > > > 2009/2/17 Gil :
>
> > > > > > What is disturbing is that event if you try to send data on a socket
> > > > > > that is not actually connected (according to the situation I 
> > > > > > outlined
> > > > > > initially) the socket does not throw an IOException. It simply 
> > > > > > thinks
> > > > > > it is still connected.
>
> > > > > > On Feb 17, 7:21 am, Guillaume Perrot  
> > > > > > wrote:
> > > > > >> I had the same problem too.
> > > > > >> Plus when I loose connectivity, it's nearly impossible not to 
> > > > > >> block on
> > > > > >> socket.close();
> > > > > >> It takes forever in that case.
> > > > > >> I tried both plain and ssl sockets, same behavior in RC33.
>
> > > > > >> On Feb 17, 1:23 am, Marc  wrote:
>
> > > > > >> > I've seen inconsistent behavior from RC30 on in this regard.  The
> > > > > >> > IOException happens anywhere from instantly to five minutes 
> > > > > >> > later.  It
> > > > > >> > seems like a bug to me.
>
> > > > > >> > Marc
>
> > > >

[android-developers] Re: RC33 Network Problem

2009-02-17 Thread Gil

Can anyone from Google comment on this matter?

On Feb 17, 11:42 am, Gil  wrote:
> I did further testing and I was wrong about one thing: the disconnect
> is not detected at all (not even after 5 minutes as I said initially).
> The reason I though that the disconnection was detected after 5 min.
> is because the W-Fi was going to sleep. If I keep Wi-Fi alive by not
> allowing the phone to go to sleep the problem is quite evident. I also
> looked at the GTalk debug messages and it turns out that it has the
> same problem (it never detects that it is disconnected from the
> server).
>
> On Feb 17, 11:19 am, Gil  wrote:
>
> > Unfortunately, watching the network state will not always work because
> > it does not account for end-to-end TCP connectivity. The server may
> > crash or its Internet connection may go down and you won't know about
> > it.
>
> > On Feb 17, 10:05 am, Guillaume Perrot 
> > wrote:
>
> > > Yes it's exactly what happens since RC33.
> > > Kinda annoying. I have to close sockets in a separate thread when I
> > > receive a connectivity event indicating the network is down or we
> > > switched network. This thread becomes zombie most of the time because
> > > the socket refuses to close (deadlock with a nativeread).
>
> > > 2009/2/17 Gil :
>
> > > > What is disturbing is that event if you try to send data on a socket
> > > > that is not actually connected (according to the situation I outlined
> > > > initially) the socket does not throw an IOException. It simply thinks
> > > > it is still connected.
>
> > > > On Feb 17, 7:21 am, Guillaume Perrot  wrote:
> > > >> I had the same problem too.
> > > >> Plus when I loose connectivity, it's nearly impossible not to block on
> > > >> socket.close();
> > > >> It takes forever in that case.
> > > >> I tried both plain and ssl sockets, same behavior in RC33.
>
> > > >> On Feb 17, 1:23 am, Marc  wrote:
>
> > > >> > I've seen inconsistent behavior from RC30 on in this regard.  The
> > > >> > IOException happens anywhere from instantly to five minutes later.  
> > > >> > It
> > > >> > seems like a bug to me.
>
> > > >> > Marc
>
> > > >> > On Feb 16, 2:29 pm, Gil  wrote:
>
> > > >> > > I finally got to test some code on the RC33 release and I 
> > > >> > > uncovered a
> > > >> > > difference in the network code compared to earlier versions and the
> > > >> > > emulator. I'm using a persistent TLS connection to a server and a
> > > >> > > BufferedInputStream to read from the socket. The problem is that 
> > > >> > > the
> > > >> > > read method throws an IOException only 5 minutes after the Wi-Fi
> > > >> > > connection looses connectivity (I unplug the Internet connection 
> > > >> > > from
> > > >> > > the router to simulate a connection problem). In RC30 and earlier
> > > >> > > version as well as the latest emulator version (SDK 1.1) read 
> > > >> > > throws
> > > >> > > an exception after approximately 30 seconds after the connectivity 
> > > >> > > is
> > > >> > > lost. My code uses an infinite timeout for read (setSoTimeout(0)).
>
> > > --
> > > Guillaume Perrot
> > > Software Engineer at Ubikod
> > > BuddyMob developer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: RC33 Network Problem

2009-02-17 Thread Gil

I did further testing and I was wrong about one thing: the disconnect
is not detected at all (not even after 5 minutes as I said initially).
The reason I though that the disconnection was detected after 5 min.
is because the W-Fi was going to sleep. If I keep Wi-Fi alive by not
allowing the phone to go to sleep the problem is quite evident. I also
looked at the GTalk debug messages and it turns out that it has the
same problem (it never detects that it is disconnected from the
server).

On Feb 17, 11:19 am, Gil  wrote:
> Unfortunately, watching the network state will not always work because
> it does not account for end-to-end TCP connectivity. The server may
> crash or its Internet connection may go down and you won't know about
> it.
>
> On Feb 17, 10:05 am, Guillaume Perrot 
> wrote:
>
> > Yes it's exactly what happens since RC33.
> > Kinda annoying. I have to close sockets in a separate thread when I
> > receive a connectivity event indicating the network is down or we
> > switched network. This thread becomes zombie most of the time because
> > the socket refuses to close (deadlock with a nativeread).
>
> > 2009/2/17 Gil :
>
> > > What is disturbing is that event if you try to send data on a socket
> > > that is not actually connected (according to the situation I outlined
> > > initially) the socket does not throw an IOException. It simply thinks
> > > it is still connected.
>
> > > On Feb 17, 7:21 am, Guillaume Perrot  wrote:
> > >> I had the same problem too.
> > >> Plus when I loose connectivity, it's nearly impossible not to block on
> > >> socket.close();
> > >> It takes forever in that case.
> > >> I tried both plain and ssl sockets, same behavior in RC33.
>
> > >> On Feb 17, 1:23 am, Marc  wrote:
>
> > >> > I've seen inconsistent behavior from RC30 on in this regard.  The
> > >> > IOException happens anywhere from instantly to five minutes later.  It
> > >> > seems like a bug to me.
>
> > >> > Marc
>
> > >> > On Feb 16, 2:29 pm, Gil  wrote:
>
> > >> > > I finally got to test some code on the RC33 release and I uncovered a
> > >> > > difference in the network code compared to earlier versions and the
> > >> > > emulator. I'm using a persistent TLS connection to a server and a
> > >> > > BufferedInputStream to read from the socket. The problem is that the
> > >> > > read method throws an IOException only 5 minutes after the Wi-Fi
> > >> > > connection looses connectivity (I unplug the Internet connection from
> > >> > > the router to simulate a connection problem). In RC30 and earlier
> > >> > > version as well as the latest emulator version (SDK 1.1) read throws
> > >> > > an exception after approximately 30 seconds after the connectivity is
> > >> > > lost. My code uses an infinite timeout for read (setSoTimeout(0)).
>
> > --
> > Guillaume Perrot
> > Software Engineer at Ubikod
> > BuddyMob developer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: RC33 Network Problem

2009-02-17 Thread Gil

Unfortunately, watching the network state will not always work because
it does not account for end-to-end TCP connectivity. The server may
crash or its Internet connection may go down and you won't know about
it.

On Feb 17, 10:05 am, Guillaume Perrot 
wrote:
> Yes it's exactly what happens since RC33.
> Kinda annoying. I have to close sockets in a separate thread when I
> receive a connectivity event indicating the network is down or we
> switched network. This thread becomes zombie most of the time because
> the socket refuses to close (deadlock with a nativeread).
>
> 2009/2/17 Gil :
>
>
>
>
>
> > What is disturbing is that event if you try to send data on a socket
> > that is not actually connected (according to the situation I outlined
> > initially) the socket does not throw an IOException. It simply thinks
> > it is still connected.
>
> > On Feb 17, 7:21 am, Guillaume Perrot  wrote:
> >> I had the same problem too.
> >> Plus when I loose connectivity, it's nearly impossible not to block on
> >> socket.close();
> >> It takes forever in that case.
> >> I tried both plain and ssl sockets, same behavior in RC33.
>
> >> On Feb 17, 1:23 am, Marc  wrote:
>
> >> > I've seen inconsistent behavior from RC30 on in this regard.  The
> >> > IOException happens anywhere from instantly to five minutes later.  It
> >> > seems like a bug to me.
>
> >> > Marc
>
> >> > On Feb 16, 2:29 pm, Gil  wrote:
>
> >> > > I finally got to test some code on the RC33 release and I uncovered a
> >> > > difference in the network code compared to earlier versions and the
> >> > > emulator. I'm using a persistent TLS connection to a server and a
> >> > > BufferedInputStream to read from the socket. The problem is that the
> >> > > read method throws an IOException only 5 minutes after the Wi-Fi
> >> > > connection looses connectivity (I unplug the Internet connection from
> >> > > the router to simulate a connection problem). In RC30 and earlier
> >> > > version as well as the latest emulator version (SDK 1.1) read throws
> >> > > an exception after approximately 30 seconds after the connectivity is
> >> > > lost. My code uses an infinite timeout for read (setSoTimeout(0)).
>
> --
> Guillaume Perrot
> Software Engineer at Ubikod
> BuddyMob developer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: RC33 Network Problem

2009-02-17 Thread Gil

What is disturbing is that event if you try to send data on a socket
that is not actually connected (according to the situation I outlined
initially) the socket does not throw an IOException. It simply thinks
it is still connected.

On Feb 17, 7:21 am, Guillaume Perrot  wrote:
> I had the same problem too.
> Plus when I loose connectivity, it's nearly impossible not to block on
> socket.close();
> It takes forever in that case.
> I tried both plain and ssl sockets, same behavior in RC33.
>
> On Feb 17, 1:23 am, Marc  wrote:
>
> > I've seen inconsistent behavior from RC30 on in this regard.  The
> > IOException happens anywhere from instantly to five minutes later.  It
> > seems like a bug to me.
>
> > Marc
>
> > On Feb 16, 2:29 pm, Gil  wrote:
>
> > > I finally got to test some code on the RC33 release and I uncovered a
> > > difference in the network code compared to earlier versions and the
> > > emulator. I'm using a persistent TLS connection to a server and a
> > > BufferedInputStream to read from the socket. The problem is that the
> > > read method throws an IOException only 5 minutes after the Wi-Fi
> > > connection looses connectivity (I unplug the Internet connection from
> > > the router to simulate a connection problem). In RC30 and earlier
> > > version as well as the latest emulator version (SDK 1.1) read throws
> > > an exception after approximately 30 seconds after the connectivity is
> > > lost. My code uses an infinite timeout for read (setSoTimeout(0)).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] RC33 Network Problem

2009-02-16 Thread Gil

I finally got to test some code on the RC33 release and I uncovered a
difference in the network code compared to earlier versions and the
emulator. I'm using a persistent TLS connection to a server and a
BufferedInputStream to read from the socket. The problem is that the
read method throws an IOException only 5 minutes after the Wi-Fi
connection looses connectivity (I unplug the Internet connection from
the router to simulate a connection problem). In RC30 and earlier
version as well as the latest emulator version (SDK 1.1) read throws
an exception after approximately 30 seconds after the connectivity is
lost. My code uses an infinite timeout for read (setSoTimeout(0)).

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

2009-01-19 Thread Gil

Sorry, it's working. My bug.

On Jan 19, 10:48 am, Gil  wrote:
> My app uses the ringtone picker and it displays the "Silent" option.
> If the users picks the "Silent" option I get a null Uri in
> onActivityResult; no problem here. The problem occurs the next time I
> display the ringtone picker. The input URI is null but the Silent
> option is not selected. Is there a special URI I need to set in
> EXTRA_RINGTONE_EXISTING_URI in order to select the "Silent" option?
>
> String uri = null;
> Intent intent = new Intent( RingtoneManager.ACTION_RINGTONE_PICKER);
> intent.putExtra( RingtoneManager.EXTRA_RINGTONE_TYPE,
> RingtoneManager.TYPE_NOTIFICATION);
> intent.putExtra( RingtoneManager.EXTRA_RINGTONE_TITLE, "Test title");
> if( uri != null)
> {
>      intent.putExtra( RingtoneManager.EXTRA_RINGTONE_EXISTING_URI,
> Uri.parse( uri));}
>
> else
> {
>      intent.putExtra( RingtoneManager.EXTRA_RINGTONE_EXISTING_URI,
> (Uri)null);}
>
> startActivityForResult( intent, PICK_MY_RINGTONE);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Ringtone Picker Silent Option Selection

2009-01-19 Thread Gil

My app uses the ringtone picker and it displays the "Silent" option.
If the users picks the "Silent" option I get a null Uri in
onActivityResult; no problem here. The problem occurs the next time I
display the ringtone picker. The input URI is null but the Silent
option is not selected. Is there a special URI I need to set in
EXTRA_RINGTONE_EXISTING_URI in order to select the "Silent" option?

String uri = null;
Intent intent = new Intent( RingtoneManager.ACTION_RINGTONE_PICKER);
intent.putExtra( RingtoneManager.EXTRA_RINGTONE_TYPE,
RingtoneManager.TYPE_NOTIFICATION);
intent.putExtra( RingtoneManager.EXTRA_RINGTONE_TITLE, "Test title");
if( uri != null)
{
 intent.putExtra( RingtoneManager.EXTRA_RINGTONE_EXISTING_URI,
Uri.parse( uri));
}
else
{
 intent.putExtra( RingtoneManager.EXTRA_RINGTONE_EXISTING_URI,
(Uri)null);
}
startActivityForResult( intent, PICK_MY_RINGTONE);

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

2008-12-31 Thread Gil

I'm getting the same report from my users. Some users claim that all
the preferences saved using SharedPreferences are lost when the phone
is restarted.


On Nov 19, 4:48 am, dar  wrote:
> I'm on RC30, and I have not seen this issue first hand, but some of my
> users are reporting that my app is losing itsSharedPreferencesafter
> about an hour, or some other unspecified time.
>
> They say they are not uninstalling the application.  The only way I
> have seen theSharedPreferencesbe erased is if I unistall the
> application
>
> Is this a known bug?  Has anyone else encountered this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] CPU asleep when using the network

2008-12-30 Thread Gil

I'm developing an application which needs a persistent TCP connection
to server. I'm trying to understand what is the proper way of dealing
with persistent connections to avoid draining the battery quickly. My
understanding is if a socket is connected to the server and the CPU
goes to sleep, if packets are received on that connection the CPU will
wake up. The thing I don't know is when it will go back to sleep
again. Do I need to grab a WakeLock right after the read operation and
release it after I'm done processing the incoming packet? If I don't
grab the WakeLock is there the concept of an execution context which
ends when the current thread goes to the blocking or sleeping state?

One think I noticed when using the HttpConnection is that
getResponseCode (which is a blocking call) will NOT wake up if the CPU
goes to sleep. At this time I am considering writing my own HTTP
connection class in order to gain fine control over the behavior of
the class in regards to the CPU sleep issue.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Crop Image Problem

2008-12-11 Thread Gil

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



[android-developers] ExpandableListAdapter Crash

2008-12-10 Thread Gil

My uses an expandable list adapter. I ran into a problem when I update
the adapter content. Here is the sequence of events:

1) Adapter contains groups A, B, C. Group A and C contain 2 children
2) I update the adapter data (I call notifyDataSetChanged) due to the
fact that Group B is removed by the user
3) If group C was expanded the code crashes in getChildrenCount
because it gets called with a groupPosition which is 3 (the old number
of groups)

@Override
public int getChildrenCount( int groupPosition)
{
if( groupPosition >= m_groups.size())
{
Log.e( "getChildrenCount", "Group index: " + groupPosition);
return 0;
}
return m_groups.get(groupPosition).getBuddies().size();
}

If I check that the group position is correct and return 0 for the
children count the problem goes away. Also, if group C was not
collapsed before I removed group B the crash does not occur because
getChildrenCount is not called (makes sense).

It seems to me that the adapter is using the old size of the groups
array to do something with the expanded items. If the last item is
expanded a crash would occur.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Crop Image Problem

2008-12-09 Thread Gil

Hi,

I am using the code below to start the crop image activity. The
photoUri is obtained by picking a photo. The crop activity is
displayed as expected. When the activity terminates due to the user
clicking 'Save'  onActivityResult gets called, there are no errors in
LogCat yet the output file is not there.

final Intent intent = new Intent
("com.android.camera.action.CROP");
intent.setClassName("com.android.camera",
"com.android.camera.CropImage");
intent.setData( photoUri);
final int SIZE = 48;
intent.putExtra("outputX", SIZE);
intent.putExtra("outputY", SIZE);
intent.putExtra("aspectX", SIZE);
intent.putExtra("aspectY", SIZE);
intent.putExtra("scale", true);
intent.putExtra("noFaceDetection", true);
m_filename = getFileStreamPath( "icon.jpg").getAbsolutePath();
intent.putExtra("output", Uri.parse("file:/" + m_filename));

startActivityForResult(intent, REQUEST_CROP_IMAGE);

Thank you for your help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] RingtoneManager URIs

2008-11-07 Thread Gil

My application offers a preference to allow the user to set the
preferred notification sound. I save that URI and I use it when I have
to play a notification sound. I just noticed that the ringtone URIs
can change over time therefore invalidating the URI that I saved. This
could be because of an application I installed recently which records
sounds. Should ringtone URIs change over time? Should I use the name
of the ringtone to get the URI every time I need to play a sound?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] GalleryPicker Crash

2008-11-03 Thread Gil

I'm using MediaStore.Images.insertImage to insert an image into the
images content provider. The insert reports no errors yet when I try
to open the Pictures application I get the following crash:

11-03 16:09:38.196: ERROR/AndroidRuntime(980):
java.lang.RuntimeException: Unable to resume activity
{com.android.camera/com.android.camera.GalleryPicker}:
java.lang.NullPointerException
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2504)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:
2519)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2159)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.os.Handler.dispatchMessage(Handler.java:88)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.os.Looper.loop(Looper.java:123)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread.main(ActivityThread.java:3742)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
java.lang.reflect.Method.invokeNative(Native Method)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
java.lang.reflect.Method.invoke(Method.java:515)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
dalvik.system.NativeStart.main(Native Method)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): Caused by:
java.lang.NullPointerException
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
com.android.camera.GalleryPicker
$GalleryPickerAdapter.init(GalleryPicker.java:251)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
com.android.camera.GalleryPicker.rebake(GalleryPicker.java:96)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
com.android.camera.GalleryPicker.onResume(GalleryPicker.java:435)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:
1224)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.Activity.performResume(Activity.java:3359)
11-03 16:09:38.196: ERROR/AndroidRuntime(980): at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2491)


I tried to use bot forms of insertImage (using bitmap or a filename).
They behave identically.

This crash occurs on a device and in the emulator. The only way to get
rid of the Pictures app crash is to unmount the SD card and then
remount it. The funny thing is that after I do this my image does
appear in the Pictures app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] DatePicker widget element

2008-11-03 Thread Gil

I need a widget that allows the user to increment/decrement an integer
value, identical to the ones used by the DatePicker. Is one element
(change day/month/year) of the DatePicker available as a widget that I
can use in my application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Lat/Lon Calculation

2008-10-25 Thread Gil

I need to compute the lat/lon for a point which is located 'n' meters
south and north of a given location. Is there a class to help with
this calculation?

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



[android-developers] Long Clickable View

2008-10-24 Thread Gil

I have a layout to which I dynamically add ImageViews by calling
addView. How can I make the views that I add react to long click
events (orange animation)? I tried setLongClickable but that does not
make a difference. BTW long clicks work fine I'm just missing the
animation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Content Provider MIN query

2008-10-17 Thread Gil

I would like to execute the following SQL query for a content provider
I wrote:

select MIN(time) filename from CACHE_OBJECTS;

How can I execute such a statement using the content resolver?

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



[android-developers] ACTION_MEDIA_EJECT Receiver

2008-10-17 Thread Gil

I'm trying to register a broadcast listener for ACTION_MEDIA_EJECT. I
tried:

IntentFilter filter = new IntentFilter();
filter.addAction( Intent.ACTION_MEDIA_EJECT);
context.registerReceiver( myCardListener, filter);

but the onReceive of the listener does not get called when I eject the
SD card. Most likely I'm missing the scheme or some other intent
filter data.


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



[android-developers] Re: HttpURLConnection getResponseCode

2008-10-16 Thread Gil

I learned more about the problem. It always occurs after I cancel a
GET request. By cancel I mean quit the loop that reads from the input
stream, disconnect the HttpURLConnection and quit the thread which
runs the connection. Next HttpURLConnection I create exhibits the
problem described above. If I restart my application using Eclipse the
problem goes away. It also goes away some time after the canceled GET
request (simply wait a 30 seconds to a minute).


On Oct 16, 5:15 pm, androidian <[EMAIL PROTECTED]> wrote:
> I have the same problem.  No idea what's happening.
>
> On Oct 16, 4:04 pm, Gil <[EMAIL PROTECTED]> wrote:
>
> > I have a class that implements an HttpURLConnection. The class works
> > fine most of the time. Once in a while when I perform a GET operation
> > getResponseCode returns -1. Does anyone know under what circumstances
> > getResponseCode returns -1? The documentation states:
>
> > "the response code, -1 if no valid response code".
>
> > Ethereal shows that the GET request has been sent but that no bytes
> > have been received. Also, the getResponseCode does not time out. When
> > it fails it does so without waiting at all (typically <100ms).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] HttpURLConnection getResponseCode

2008-10-16 Thread Gil

I have a class that implements an HttpURLConnection. The class works
fine most of the time. Once in a while when I perform a GET operation
getResponseCode returns -1. Does anyone know under what circumstances
getResponseCode returns -1? The documentation states:

"the response code, -1 if no valid response code".

Ethereal shows that the GET request has been sent but that no bytes
have been received. Also, the getResponseCode does not time out. When
it fails it does so without waiting at all (typically <100ms).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification Intent

2008-09-29 Thread Gil

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



[android-developers] Re: Notification Intent

2008-09-29 Thread Gil

Interestingly enough if I use setData(Uri) instead of using extra
intent fields, the data is different (as you would expect) between the
two intents.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Notification Intent

2008-09-29 Thread Gil

My app uses the status bar to handle notifications. It also sets an
extra string in the intent when a notification is generated. Consider
the following sequence of events:

1) First notification is generated. User clicks on the notification.
An activity of my app receives the intent looks at the extra string.
The app gets what it expects in the extra string.
2) The second notification is received.  User clicks on the
notification. My activity receives the intent but the extra string
(which is different this time) is the extra string from the first
notification.

Here is the code I use each time I generate a notification:
1) I create the notification intent at startup:

m_clickIntent = new Intent( Intent.ACTION_MAIN);
m_clickIntent.setClass( m_context, MyActivity.class);
m_clickIntent.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_NEW_TASK);

2) I generate the first notification:

m_clickIntent.putExtra( "data", "first hello");
m_currentNotification = new
Notification( R.drawable.status_bar_message_image, "Test",
System.currentTimeMillis());
m_currentNotification.setLatestEventInfo( m_context,
m_context.getResources().getString( R.string.app_name), "Test",
PendingIntent.getActivity( m_context, 0, m_clickIntent, 0));
m_notificationManager.notify( APP_NOTIFICATIONS,
m_currentNotification);

3) I generate the second notification:
m_clickIntent.putExtra( "data", "second hello");
... same code as for the first notification

I tried allocating the intent each time I generate the notification
but that makes no difference.

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



[android-developers] Re: Activity Lifecycle Question

2008-09-28 Thread Gil

Awesome! You saved the day ... again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---




[android-developers] Activity Lifecycle Question

2008-09-28 Thread Gil

I have an activity which is started by the intent set by my app in the
status bar. My activity uses the singleTop launchMode. I go through
the following sequence of events:

1) My activity is initially not visible.
2) I get a notification in the status bar. I click on the new
notification which starts my activity.
3) While my activity is still visible I get a new notification in the
status bar. I click on the new notification again.

My question is the following: What method should I override to learn
that my activity is being "started" when the user clicks on the
notification the second time?

I thought that onNewIntent should be called but it is not. onNewIntent
does get called each time I click on the notification if my activity
is initially started from the home screen (but not if it is initially
started by clicking on the notification).

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



[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Gil

Xavier,

I'm using the English version of Windows XP (I never switched to any
another locale) and I'm in the Pacific timezone and yet I had this
problem this morning.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-27 Thread Gil

Thanks hackbod, I understand that the app is uninstalled and then
reinstalled when started from Eclipse. I guess what I did not
understand is that when you launch the app from Eclipse the behavior
is different (as outlined in the sequence of steps to reproduce the
problem I posted earlier) than when you start the app from the Home
screen. Now I know.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-27 Thread Gil

webmonkey: I confirm the behavior you are describing. If the
application is started from Eclipse it behaves the way I described
above. Once I start it from the Home screen the problem goes away.

Justin: Given what webmonkey stated I removed all the launch flags
from all the activities in the manifest file. The behavior seems
correct now if I start the app from the Home screen but not if I
launch the app from Eclipse. I added the intent-filter you recommended
but that did not help the situation so for now I took it back out.
Also, I was not trying to optimize anything when I was experimenting
with the launch flags, I was just trying to obtain the correct
behavior; now I know that the launch flags do not help in this case.

Thanks to both of you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 0.9 SDK Build Error

2008-08-27 Thread Gil

Thanks Ralf! That solved the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Gil

I'm having the same problem today.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] 0.9 SDK Build Error

2008-08-27 Thread Gil

This morning I ran into the following error when I initiated the first
build of the day:

Error generating final archive: Debug Certificate expired on 8/27/08
9:06 AM!

I try restarting Eclipse but that did not help. I'm stuck.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-25 Thread Gil

Hi Justin,

Any update related to this issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-22 Thread Gil

It turns out that "singleTask" is what I need in my app for my main
(LAUNCHER) activity otherwise sometimes I end up with multiple
instances of my activities.

On Aug 22, 10:33 am, Gil <[EMAIL PROTECTED]> wrote:
> If I use "singleTop" for both activities the code works as expected.
> The "singleTask" launchMode is causing the behavior described
> above.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-22 Thread Gil

If I use "singleTop" for both activities the code works as expected.
"The "singleTask" launchMode is causing the behavior described
above.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

hackbod,

I wrote a simple app, based on the SDK Forwarding example, which
reproduces the problem. The only difference between my app and the
Forwarding app, as far as I can tell, is that the manifest:


http://schemas.android.com/apk/res/android";
package="com.multiplefacets.test">











Note the launchModes for the two Activities. The source for ActivityA
and ActivityB is not worth posting; it is almost identical to the
Forwarding app code.

Thanks for your unrelenting help!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

Thanks hackbod! I'll look into that example tomorrow to try to
understand the differences.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

Thanks hackbod! I moved the call to finish() after startActivity().
The behavior has not changed though.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AlertDialog Padding

2008-08-21 Thread Gil

Thanks hackbod!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Images Cursor Problem

2008-08-21 Thread Gil

My code launches the image picker to select a photo from external
media. In the onActivityResult I call extra.getData() to obtain the
image Uri. I know that it is valid because I can obtain a bitmap from
the Uri. However, when I try to get a cursor for this item for the
purpose of getting the photo information (description, ...) I get an
exception:

Cursor cursor = MediaStore.Images.Media.query( getContentResolver(),
extras.getData(), null);

ERROR/AndroidRuntime(1463): Caused by:
android.database.sqlite.SQLiteException: no such column: name: , while
compiling: SELECT * FROM images WHERE (_id = 40) ORDER BY name ASC
ERROR/AndroidRuntime(1463): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
143)
ERROR/AndroidRuntime(1463): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
111)
ERROR/AndroidRuntime(1463): at
android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java:
259)
ERROR/AndroidRuntime(1463): at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
278)
ERROR/AndroidRuntime(1463): at
android.content.ContentResolver.query(ContentResolver.java:146)
ERROR/AndroidRuntime(1463): at android.provider.MediaStore$Images
$Media.query(MediaStore.java:186)
ERROR/AndroidRuntime(1463): at
com.multiplefacets.blogger.PostActivity.onActivityResult(PostActivity.java:
493)
ERROR/AndroidRuntime(1463): at
android.app.Activity.dispatchActivityResult(Activity.java:3413)
ERROR/AndroidRuntime(1463): at
android.app.ActivityThread.deliverResults(ActivityThread.java:2826)

Any idea what is causing this? Does the column "name" actually exist?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

I'm starting my own thread from Activity A and then I use a Handler to
post the callback to make it thread safe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

Sorry it was not clear.Please let me try to explain the second part in
a different way.

1) Start the application for the first time. Activity A is displayed
(it is the main Activity i.e. uses MAIN/LAUNCHER in the intent
filter). Activity A also uses singleTask launch mode.
2) User enters username and password. An asynchronous authentication
is started. When authetication completes I execute the following code
inside the authentication callback:

finish();
Intent intent = new Intent( this, ActivityB.class);
intent.setAction( Intent.ACTION_VIEW);
intent.setData( m_signedInUser.getContentUri());
startActivity( intent);

3) Now, Activity B is visible. BTW, Activity B uses the singleTop
launch mode.
4) User hits the Home button. Activity B is no longer visible.
5) The user clicks the app icon in the home screen. Activity A is
displayed.
Note: As hackbod said earlier, Activity B should be displayed.
6) While Activity A is still visible hit the Back button. Activity B
is now visible.

Hope this is clearer. Thanks for helping out!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AlertDialog Padding

2008-08-21 Thread Gil

I need to implement an AlertDialog with a EditView and an an OK and a
Cancel button. I would like to be able to enable/disable the OK button
if the EditText has/does not have text in it. I have two choices but I
have problems with each approach:

1) If I create the AlertDialog with a layout which contains simply the
EditText, the problem I'm having is that I can't get hold of the OK
button widget to enable/disable it. Maybe you can suggest a way...
like calling findViewById( unknown_ok_button_id) for the dialog layout
which I don't know how to get :-)

2) I can create the AlertDialog with a layout which contains the
EditText and the OK and the Cancel buttons (no positive and negative
buttons). This approach works but there is side effect. In the 0.9 SDK
there is unwanted padding at the bottom and the of the dialog (maybe
20dip). Maybe you can suggest a way to modify my layout to make it
ignore the padding of the dialog layout. I tried clipToPadding="false"
but that did not work.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Managed Dialogs

2008-08-21 Thread Gil

A related question... I noticed that the AlertDialogs that I use in my
app seem to be managed without me calling showDialog in an Activity.
If that is true, is there a way for me to write a class which extends
Dialog and maybe call some getOwnerActivty() member methods to achieve
the managed status for my Dialog?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

Dianne, please save me one more time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity Question

2008-08-21 Thread Gil

I did more research on this subject and I have a new situation.
Activity A is the main activity and it uses the singleTask launch
mode. Activity B uses the singleTop launch mode. In my app Activity A
is the login activity for my application. The user enters the username
and password and if it is correct I call finish() on Activity A an
call startActivity to start Activty B.

If I hit the Home button while in the Activity B and then hit the home
screen icon of the app something interesting happens: Activity A comes
to the front. If I hit the Back button I now see Activity B. I thought
to my self: If I know that the user is logged in I can call finish()
in the onCreate() of Activty A.That works, meaning that while I'm in
Activity B I hit the Home button, clicking the home screen app icon
returns me to Activity B without displaying Activty A; so far so good.
The problem now is that if I hit Back from Activity B and then click
the home screen app icon of course nothing happens because Activity A
calls finish().

Please let me know if I'm on the right path. 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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Managed Dialogs

2008-08-20 Thread Gil

I would like to create a Dialog which is managed by the creating
Activity (showDialog(int)). My Dialog needs a couple of parameters.
The documentation suggests that I use onPrepareDialog to pass my
parameters to the dialog. This can yield code that is less than
elegant. First I need to store the two parameters I need to pass to
the dialog in the onPrepareCall in local variables (for temporary
storage). This approach is error prone, not to mention that the code
becomes difficult to read. Why can't we have a Bundle parameter to
showDialog which we could use to pass the parameters to to the dialog.
It seems to me that would be better.

I would like to use the dialog management available in Android but for
the reasons mentioned above I hesitate to do it. I actually tried it
and it came out as I expected. I hope I'm missing something.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Activity Question

2008-08-20 Thread Gil

I have an Activity A (the main activity) which invokes
startActivityForResult with an ACTION_EDIT Intent and the associated
data URI, to launch Activity B. While Activity B is displayed, the
user hits the "Home" button. From the home screen if I click my
application icon the application displays Activity A which is my main
activity. I would like it to display Activity B and restore the data
URI of the item I was editing. What is the correct way to implement
this behavior?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to display a local file in the browser?

2008-08-20 Thread Gil

Sorry for my bad English earlier. Recently I had to solve a similar
problem. I decided to load the contents of the file myself and then
call loadData in an Activity which includes a WebView. That trick
worked for me.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to display a local file in the browser?

2008-08-20 Thread Gil

You can you load the contents of the html file yourself and call
loadData with that html on a WebView?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AlertDialog Questions

2008-08-18 Thread Gil

I'm finding that the problem above is dependent on the length of the
string parameter passed to setMessage. For certain messages it works
fine while for others it does not. Longer messages seem to always work
while shorter ones might not be displayed correctly.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AlertDialog Questions

2008-08-18 Thread Gil

I'm building an AlertDialog using the code below:

AlertDialog.Builder d = new AlertDialog.Builder( context);
d.setTitle( title);
d.setIcon( iconId);
d.setMessage( "Please enter a valid username");
d.setPositiveButton( positive, positiveListener);
d.setOnCancelListener( cancelListener);
d.setCancelable( true);

Even though the text message is short the AlertDialog which appears
requires scrolling ("username" appears in the second row). In addition
to this when I scroll all the way down the word "username" appears
clipped. I saw the AlertDialogSamples.java in the APIDemos but I'm not
doing anything different (as far as I can tell).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AlertDialog Icon Size

2008-08-18 Thread Gil

I built an AlertDialog and I set a 48x48 icon in the title. When I
rotate the dialog to view it in landscape orientation the bottom part
of the view is clipped. My view is similar to
R.layout.alert_dialog_text_entry from the SDK samples.

If I change the icon size to be 32x32 the AlertDialog is displayed
fine in landscape orientation. Is it a design requirement to use 32x32
icons for AlertDialogs? The nice thing about using the 48x48 icons is
that I can use the same icon for a AlertDialog and a menu item (which
seem to use 48x48 icons).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: HttpsURLConnection connect exception

2008-08-18 Thread Gil

Hi Megha,

Once I added the permission it worked!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] HttpsURLConnection connect exception

2008-08-18 Thread Gil

In the 0.9 SDK version if you get an exception when invoking the
HttpURLConnection "connect" method:

ERROR/OSNetworkSystem(419): unknown socket error -1

add the INTERNET permission to the manifest:



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Bucket Fill

2008-05-24 Thread Gil

Hi everyone,

Is there a way to implement the color bucket fill? I would like to
choose a fill color, a point on the canvas and extend the reach of
that color until another color or the canvas boundary is encountered.
Could the PorterDuff modes be used?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AlertDialog Item Icons

2008-05-23 Thread Gil

Thanks for acknowledging!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] addRoundRect Bug?

2008-05-21 Thread Gil

I'm using the Path addRoundRect method in a modified FingerPaint
application. It looks like the round rectangle is being drawn only in
the fourth quadrant (finger right and below the start position). The
addRectangle works correctly in all quadrants.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] AlertDialog Item Icons

2008-05-21 Thread Gil

Hi everyone,

I want to create an dialog list that has icons as well as text. I know
this is possible because I have no trouble creating it by using a
submenu item with the associated items (which can have icons). My
question is: can I use the AlertDialog.Builder to achieve the same
result? Currently the AlertDialog.Builder allows an array of resource
items. Can resource array items be more complex (not just strings)? Is
there another way to create such list dialogs?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] SDK Update?

2008-05-09 Thread Gil

It's been more than two months since the release of m5-rc15. Can
anyone from Google give us an update on the next SDK release schedule?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---