[android-developers] Re: Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-08 Thread rashmi
Hi Mark,
I am working on froyo2.2 source code. My aim is to include the 'import 
org.json.JSONObject' statement in aidl file. It is giving the build error - 
'couldn't find import for class org.json.JSONObject'.

I also tried creating a project in Eclipse and including an aidl file with 
import org.json.JSONObject. Even this project is also giving the same error. 
Please give me solution for how to include json import in aidl.

Thanks,

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

[android-developers] Galaxy Tab and Market filtering

2011-07-08 Thread nadam
The old Galaxy Tab 7 is said to be a large mdpi device but it uses
hdpi drawables. I did an experiment to create an app with the
following restrictions in the manifest.

uses-sdk android:minSdkVersion=1 /
uses-feature android:name=android.hardware.touchscreen
android:required=false /

compatible-screens 
screen android:screenSize=large
android:screenDensity=mdpi /
screen android:screenSize=large
android:screenDensity=hdpi /
/compatible-screens

supports-screens
  android:smallScreens=false
  android:normalScreens=false
  android:largeScreens=true
  android:xlargeScreens=false
  android:anyDensity=true/

The Device Availability dialog in the Developer Console tells me that
this app will not be available in Android Market for any Samsung
device. In particular, all variations of Galaxy Tab are listed as
unsupported. Why?

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

2011-07-08 Thread Sapna Srivastav
My application running absolutely fine on Android 2.1 and 2.2.
But problem arises when I run the application in android 2.3 and later
version emulator.

On Jul 7, 12:05 pm, Ali Chousein ali.chous...@gmail.com wrote:
 Bbbrrr, looks scary. I've been working extensively with GPS signal and
 have been sending GPS coordinates to the emulator. The target AVDs I
 created are version 2.1 (updated) and 2.2 and I've never faced any
 issue. Some coordinates I worked with are:

 geo fix 5.4780 51.4480
 geo fix 9.9975 48.3945
 geo fix 2.3511 48.8577

 Could it be the case that there is a bug in the logic of your code
 which handles the GPS signal? Do you get the same problem when you
 send the GPS coordinates while running the 'Hello World' example?

 --
 Ali Chousein
 Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/
 Cisco Android marketplace 
 (Chosen)https://marketplace.cisco.com/apphq/products/510

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


Re: [android-developers] Re: How can Button clicks be sent to a View that has been disabled?

2011-07-08 Thread Filip Havlicek
Did you try setting setClickable(false) as well?

2011/7/8 William Ferguson william.ferguson...@gmail.com

 Has no one seen an incidence of this occurring?
 I would have said flat out it can't occur except that I see a couple
 of instances each day.

 Does this mean that all handler code needs to explicitly check to see
 if a button is enabled first before executing its action?


 On Jul 7, 10:31 am, William Ferguson william.ferguson...@gmail.com
 wrote:
  I'm finding that some of my users are occasionally getting a button
  firing twice in rapid succession (less than 100 millis) even though
  the first thing the handler does is to disable the button. ie
 
  button.addOnClickListener(new OnClickListener() {
 public void onClick(View view) {
button.setEnabled(false);
// do some stuff.
 }
 
  });
 
  Is this expected behaviour?
  Ie that the InputEvents (button clicks) stack and will be sent to a
  View even though the View is disabled?
 
  William

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


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

Re: [android-developers] how to typecast String data to Object data type java/Android

2011-07-08 Thread NaveenShrivastva
On Fri, Jul 8, 2011 at 10:27 AM, TreKing treking...@gmail.com wrote:

 On Thu, Jul 7, 2011 at 8:55 PM, Latcho spamtha...@gmail.com wrote:

 I you had actually answered the question or remained silent you too had
 served the list because


 I don't know what that means.


  A) I was actually interested in the answer


 I'm sorry to hear that you do not seem understand basic Java.

  B) I had to read your boring reply in the hope of an answer.


 I'm sorry to have bored you. If it makes you feel better, I was fairly
 bored with your reply as well. Call it even?



 -
 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

There is best solution for handle that case i have find it.

Thanks

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

[android-developers] edit pdf with android?

2011-07-08 Thread Hitendrasinh Gohil
Hi,

Is it possible edit pdf in android?

If yes than_
is it possible that i can edit the pdf page by drawing some text or
shape?

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

2011-07-08 Thread MG
Did that, thanks :)

It is my first real app, so there are surely still lots of things
that are done in an ugly way.

Best regards,
Matic

On Jul 7, 3:19 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jul 7, 2011 at 9:16 AM, MG matic.goropev...@gmail.com wrote:
  Solved.
  Created new Runnable with t.setVisibility(4). Then as suggested, added
  removeCallbacks() and it works perfectly.

 It would be even better if you called setVisibility(View.INVISIBLE),
 rather than hard-coding in some magic number.

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

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

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


[android-developers] Eole Survival Update Beta tester needed

2011-07-08 Thread TobyKaos
Hello,

I am preparing a new major update for Eole and the paper ball. If you
want to try it and answer to a survey, please go to 
http://www.chaos-interactive.com
to know what to do.

Thank you,

Thibaut Aubrun
Chaos Interactive

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

2011-07-08 Thread shubh
@Marcin Orlowski : so is it possible for upgrade above 3.0 ?


On Jun 29, 11:49 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On Jun 29, 2011 8:17 AM, shubh shubhampatn...@gmail.com wrote:



  hi thanks Murphy,

  so is there any other way to get two events from Notification panel.

 not on pre 3.x

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

2011-07-08 Thread Droid
I am guessing that samsung old tab does not 'like' sdk 1.
Sdk 4 is my minimum version because I assume sdk 1 is just 'too old'.

Not very scientific but works for me. :)



On Jul 8, 7:47 am, nadam a...@anyro.se wrote:
 The old Galaxy Tab 7 is said to be a large mdpi device but it uses
 hdpi drawables. I did an experiment to create an app with the
 following restrictions in the manifest.

     uses-sdk android:minSdkVersion=1 /
     uses-feature android:name=android.hardware.touchscreen
 android:required=false /

     compatible-screens 
         screen android:screenSize=large
 android:screenDensity=mdpi /
         screen android:screenSize=large
 android:screenDensity=hdpi /
     /compatible-screens

     supports-screens
       android:smallScreens=false
       android:normalScreens=false
       android:largeScreens=true
       android:xlargeScreens=false
       android:anyDensity=true/

 The Device Availability dialog in the Developer Console tells me that
 this app will not be available in Android Market for any Samsung
 device. In particular, all variations of Galaxy Tab are listed as
 unsupported. Why?

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


Re: [android-developers] Re: Android and OSGi/Apache Felix

2011-07-08 Thread Daniel Drozdzewski
On 7 July 2011 23:07, Jesse gotosl...@gmail.com wrote:
 I have looked at that, but the EZDroid community hasn't been updated since
 2009 and there is practically no content on their site. This makes me think
 it is completely abandoned. They do link to some code which was presented at
 a conference a few years
 back: https://opensource.luminis.net/wiki/display/SITE/Apache+Felix+on+Androids
  The code is extremely basic though and it doesn't address any of my
 concerns. In their example projects, they create all views through code.
 They don't reference any Android resources, such as layout files. There is
 no discussion on what happens to the view created by the bundle if the
 bundle needs to be updated or removed.
 Also, there is the fact that it is impossible to add an activity or service
 to an application without modifying the Android manifest.


Jesse,

That presentation that you linked shows few things that might be of help:
- Android does not allow apps to dynamically load classes, but there
are workarounds (app has root or all access allowed to
/data/dalvik-cache
- Apache Felix is portable (no crazy dependencies), so you can keep
porting newer versions as you need to Android

What I understand is that you can achieve OSGI on a servce/business logic layer
Resources (layouts, strings, graphics, ...) in Android are
pre-packaged and pre-compiled into binary bundle and then statically
referenced through R class, so here things get complicated.

I don't think that by dropping a new class or a set of classes
(bundle), which is what OSGI enables, you could swap binary resources
files into an application and R class with it.

In other words OSGI allows dynamic deployment of classes and services,
rather than dynamic deployment of arbitrary files.

This means that you would have to expose your layouts through the
service. In other words have your layouts defined in code, rather than
XML files and your activities would have to use the coded layouts
served by the OSGI service running as a part of your app.

Your layouts would have to come with their resources and you would be
loading those resources using your custom code rather than Android
APIs.

You could have service exposed and managed through OSGI to retrieve
activities, which the Apache Felix presentation shows. That would
essentially be, what you need.

Only thing that I am not sure about is the security and implications
of such setup... Apps need digital signing, activities and services
need upfront declaring through the manifest file. The presentations
asks Google for dynamic class loading and dynamic security policies,
which suggests that they have had some troubles. It is not clear
whether they have managed to work around these.

If you are in charge of the device, there might be a way around such
limitation, say by installing your certificate as trusted one, so that
provisioned code signed with your key would be trusted. Again this is
a question to a platform engineer.

Luminis website [*] certainly has some demo code next to that
presentation, so give it a go and see what can and cannot be achieved.

Good Luck and if possible, please share your findings.

Daniel

[*] https://opensource.luminis.net/wiki/display/SITE/Apache+Felix+on+Androids

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

2011-07-08 Thread nageswara rao rajana
Hi,

 I have 3 activites in my application. Exit in menu options.

   This is the code i am using for my exit


   Code for menu options:

 public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item)
{
switch(item.getItemId())
{
case R.id.help:
Intent s=new Intent(MainActivity.this,HelpActivity.class);
 startActivity(s);
 break;
case R.id.exit:
 super.onDestroy();
 this.finish();
 break;
case R.id.about:
 Intent t=new Intent(MainActivity.this,AboutUsActivity.class);
 startActivity(t);
 break;
}
return true;
}

My problem when i click on exit my application is closing but it is still
running in background.
Again i need to go to Settings-Applications-Manage
Applications-Running-my application name. Here i need to ForceClose the
application.


So, please help me to avoid this process and exit application. Any sample
code please.


Thanking you,
Nagu.

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

Re: [android-developers] Re: Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-08 Thread Mark Murphy
On Fri, Jul 8, 2011 at 2:04 AM, rashmi rashmi@gmail.com wrote:
 Hi Mark,
 I am working on froyo2.2 source code. My aim is to include the 'import
 org.json.JSONObject' statement in aidl file. It is giving the build error -
 'couldn't find import for class org.json.JSONObject'.

 I also tried creating a project in Eclipse and including an aidl file with
 import org.json.JSONObject. Even this project is also giving the same error.
 Please give me solution for how to include json import in aidl.

You cannot use JSONObject in AIDL. Please read the AIDL documentation:

http://developer.android.com/guide/developing/tools/aidl.html

In particular, note the valid data types listed in 1. Create the .aidl file.

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

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

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


[android-developers] How to set ListView to render in right-to-left direction

2011-07-08 Thread linnuxxy
how to configure ListView to display text in Right-to-left direction? I'm 
developing an Arabic app

Sorry if it is a primitive question, but I'm an newbie...  and I've been 
searching for 2 hours without luck...

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

[android-developers] onReceive not working with android.provider.Telephony.SMS_RECEIVED

2011-07-08 Thread afpineda
Hi.

Hope someone can help with this. This quite simple code is not working
and I don't know why.
It is supposed to receive incoming SMS intents and write some words to
logcat and display a Toast.
DDMS reports com.example process being created when I send a sms,
but nothing else happens.

The manifest:

?xml version=1.0 encoding=UTF-8?
manifest android:versionCode=1 android:versionName=1.0
package=com.example xmlns:android=http://schemas.android.com/apk/
res/android
uses-sdk android:minSdkVersion=4 /
application android:icon=@drawable/icon android:label=@string/
app_name   android:enabled=true
receiver android:name=.SmsReceiver android:enabled=true
android:exported=true android:priority=999
intent-filter
action 
android:name=android.provider.Telephony.SMS_RECEIVED /
/intent-filter
/receiver
/application
uses-permission android:name=android.permission.RECEIVE_SMS /
uses-permission android:name=android.permission.READ_SMS /
/manifest


The code:

package com.example;

import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;

public class SmsReceiver extends BroadcastReceiver {
/**
 * @see android.content.BroadcastReceiver#onReceive(Context,Intent)
 */
@Override
public void onReceive(Context context, Intent intent) {
Log.d(SMS,hey you);
Toast.makeText(context, hey you, Toast.LENGTH_LONG);
}
}

The emulator run android 2.2.

I'm going crazy.

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


[android-developers] How to install several versions of activity from one Eclipse project?

2011-07-08 Thread Anna
Hello all! I need your advise. I'm writing an application in Eclipse.
Every time, when I run the activity from Eclipse, it is  reinstalling.
Question is: Is it possible to preserve previous versions of activity
in device? Or do I need to create the new project each version of
activity?
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] am and broadcasting to a single component

2011-07-08 Thread Alex Pruss
I've been trying to broadcast an intent to a single component.  For
instance, I have two apps, ExecMount and IntentTest, with manifest
intent filters that watch for android.intent.action.MEDIA_MOUNTED.  I
do:

  am broadcast -a android.intent.action.MEDIA_MOUNTED -n
mobi.pruss.execmount/mobi.pruss.execmount.OnMount file:///mnt/storage

Result: every package registered for it gets a MEDIA_MOUNTED intent.
In particular, my IntentTest's broadcast receiver fires, and
getIntent() returns mobi.pruss.intenttest/
mobi.pruss.intenttest.IntentReceiver.


Why do I care?  Well, I'm doing a root app that needs to notify some
other package that they have been replaced (I don't currently want to
go into the long story of what I am up to, but it's part of a user
profile switcher).  For API below 12, that's easy: I just broadcast
the PACKAGE_REPLACED intent to everybody.  But it would be nice to
additionally send MY_PACKAGE_REPLACED for API 12 directly to the
package.  But I can't.  When I broadcast MY_PACKAGE_RECEIVED to a
particular component with am, it goes out to everybody.

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


[android-developers] ListView recycle views that are visible on screen

2011-07-08 Thread Amir Tsafrir
I have a problem with ListView which recycles views that are visible on the 
screen. 
I can have up to 4 items in my the ListView, they are all visible on 
screen. 
After I update a property of an object in the ArrayList that the ListAdapter 
uses i call the notifyDataSetChanged() method of the list adapter. 
This causes the ListView to recycle the views and to redraw it self. The 
problem is that it's doing the recycling in a reverse order. 
so if i have a button on the first Listview item it will be in the second 
list view item after the notifyDataSetChanged(). 
I have getView that changes the convertView properties except for the button 
onTouchListenet.
This is very problematic if i have a button that works with touch event 
(Like PTT button). one second it's there and than it's not :-(. 
1. why does the ListView recycle items that are visible on the screen ? is 
this normal behaviour? why does it done in reverse order ?
2. What can I do to solve my 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] Relative layout java

2011-07-08 Thread JCC
Hello,
I created a relative layout by code in java wich basically is a list
on wich each row has 3 elements.. name, age and sex but then i want
that age be displayed below name and the image of the gender be
displayed on the right of the screen (not imediatly right of the
name).
the problem is that when I coded that, it just overlaps everything and
I got no idea what I'm doing wrong =S any ideas?
here is the code:

public class PersonasAdapterView extends RelativeLayout {
private final static int idNombreView = 0;
private static final int idEdadView = 1;
private static final int idImgView =2;
private TextView viewNombre;
private TextView viewAge;
private ImageView sexImg;
public PersonasAdapterView(Context context, Personas per) {
super(context);
//layout for name in textview
RelativeLayout.LayoutParams nameParams =
new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
nameParams.setMargins(10, 1, 1, 1);

TextView viewNombre = new TextView(context);
viewNombre.setText(per.getName());
viewNombre.setId(idNombreView);
viewNombre.setTextSize(19f);
viewNombre.setTextColor(Color.BLACK);
addView(viewNombre,nameParams);

//layout for age in textview
RelativeLayout.LayoutParams ageParams=
new 
RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
ageParams.setMargins(1, 1, 1, 1);
ageParams.addRule(RelativeLayout.BELOW,viewNombre.getId());

TextView viewEdad = new TextView(context);
viewEdad.setText(String.valueOf(per.getAge()));
viewEdad.setId(idEdadView);
viewEdad.setTextSize(14f);
viewEdad.setTextColor(Color.BLACK);
addView(viewEdad,ageParams);

//layout for img
RelativeLayout.LayoutParams imParams =
new
RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
imParams.addRule(CENTER_VERTICAL,ALIGN_PARENT_RIGHT);
ImageView imSex = new ImageView(context);
imSex.setImageResource(per.getSexImg());
imSex.setId(idImgView);
addView(imSex,imParams);
}
}

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

2011-07-08 Thread Mark Murphy
On Fri, Jul 8, 2011 at 5:34 AM, nageswara rao rajana
nagu.raj...@gmail.com wrote:
      I have 3 activites in my application. Exit in menu options.
        This is the code i am using for my exit

    Code for menu options:
              public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
 inflater.inflate(R.menu.main, menu);
 return true;
 }
 @Override
 public boolean onOptionsItemSelected(MenuItem item)
 {
 switch(item.getItemId())
 {
 case R.id.help:
 Intent s=new Intent(MainActivity.this,HelpActivity.class);
 startActivity(s);
 break;
 case R.id.exit:
     super.onDestroy();
     this.finish();
     break;
 case R.id.about:
 Intent t=new Intent(MainActivity.this,AboutUsActivity.class);
 startActivity(t);
 break;
 }
 return true;
 }
 My problem when i click on exit my application is closing but it is still
 running in background.
 Again i need to go to Settings-Applications-Manage
 Applications-Running-my application name. Here i need to ForceClose the
 application.

 So, please help me to avoid this process and exit application. Any sample
 code please.

Get rid of your Exit menu:

http://blog.radioactiveyak.com/2010/05/when-to-include-exit-button-in-android.html

http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238

Android will destroy your activities as part of normal cleanup, when
the OS needs RAM. You do not have to do anything special for this.

Also, do not call super.onDestroy() from any place other than inside
of onDestroy().

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

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

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


[android-developers] Use of the Android logo and likeness

2011-07-08 Thread Remout
I've building a website and graphics to go with my App. What is
Google's position on use of the Android robot and or it's likeness?

Thanks!

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


[android-developers] Re: Dalvik VM Java Annotations has very poor Performance

2011-07-08 Thread Bruno Vinicius
Hi Dan!

Tks for your reply! The retention police of the annotations is
Runtime, because in need of the annotated values at runtime.
I can post the code, but it is far to long. I wrote an litle article
explaining why its used and my whole solution. Check it out if you
please.
It is originally writen in portuguese(brazil) but google should have
no problems translating it to english in case you want to check
anything further than the code (which is writen mainly in english
itself).

http://zbra.com.br/2011/07/06/androidksoap-pt-1-transcrevendo-soapobjects-atraves-de-annotations-reflection/

I will check the tool you pointed out.

Tks in advance,
Bruno

On Jul 7, 5:45 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com
wrote:
 On Tue, Jul 5, 2011 at 9:06 PM, Bruno Vinicius

 bruno.vinicius...@gmail.com wrote:
  Hi,

  I've been using annotations on a Android project for a parsing XML
  data into a VO object, and I came to notice that retrieving Annotation
  info from a class or field is very slow. On a 1k iterations loop it
  gives me a 100x fold performance drop vesus a specific parsing
  algorithm version. Caching the annotation data on the first run, gave
  me results very close (~10ms diference) on the specific algorithm
  version.

 Bruno,

 any chance to see the code of all 3 versions (annotated, annotated 
 cached, and specific parsing) ?
 If the parsing is specific to your problem, then it is bound to be
 quicker, as otherwise you pay for universality.

 Annotations per se should not hit the performance, the same way that
 static class members or methods don't hit the performance.
 It is what happens to those annotations. They annotate various parts
 of your code, so that some processing based on that metadata can be
 done. They are essentially markers helping to find code, for whatever
 reason and whatever processing.

 They can be processed at compile time, which is probably what you
 should do with your parser, but it will depend on the parsing
 technology you use. How are the annotations that you use defined (each
 annotation has retention policy).

 Have a look at Annotation Processing Tool (apt), that comes with Java
 JDK 5. In JDK 6 it is a part of the compiler. It should help you
 generate the code at compile time, so you would not be hit by runtime
 reflection and introspecting.

 ...but it's all speculations as the problem of performance is quite
 complex and multi-layered as you can imagine

 The best solution to XML parsing is to use parsers that are geared
 towards mobile platforms.

 Daniel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Does android support the opening of two cameras in same time

2011-07-08 Thread Itri Ignwane
Hello , thanks for your answer.
what I had done is :
Cma1= Camera.open()  // to open the main camera
Cam2 = Camera.open(1) // to open the front camera

and I set listeners to both camera.
what i need to know, is it possible to activate the cameras in same
time?.
thanks for help.

On 7 juil, 05:55, TreKing treking...@gmail.com wrote:
 On Wed, Jul 6, 2011 at 10:04 AM, Itri Ignwane bssnt...@gmail.com wrote:
  I tried to do this, but it doesn't work.

 Tried how?

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

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


[android-developers] Re: Does android support the opening of two cameras in same time

2011-07-08 Thread Itri Ignwane
Hello guys .

I'm new in this forum. I program in android, I want to know if it is
possible to use both the camera phone in same time.
I tried to do this, but it doesn't work.
I did it like this :

Camera1 =Camera.open() // to open the main Camera.
Camera2 = Camera.open(1) // to open the front Camera
and I set listeners to the cameras.

I need help please.

Any ideas are accepted.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Keep app from restarting when touching icon from Home screen

2011-07-08 Thread jayesh
Even I am facing same problem..Do you got any fix?

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

Re: [android-developers] Re: EditText stops displaying characters as I'm typing?

2011-07-08 Thread e2gGuy
OK, did that and listed a couple of Web references from last year that 
appear to be the same problem.

Chuck

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

2011-07-08 Thread Cindy
Thanks. I thought ItemizedOverlay was used whenever you have a list of
of geographic coordinates?

On Jul 6, 10:27 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jul 6, 2011 at 2:23 PM, Cindy cindy...@gmail.com wrote:
  Since there are a lot of eye doctor locations, what's the best way to
  display them on Goggle Maps using MapView?

 ItemizedOverlay.

 --- 
 --
 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


Re: [android-developers] How to set ListView to render in right-to-left direction

2011-07-08 Thread Romain Guy
RTL/BiDi is currently not fully supported by Android.

On Fri, Jul 8, 2011 at 2:02 AM, linnuxxy ahmad.aloba...@gmail.com wrote:

 how to configure ListView to display text in Right-to-left direction? I'm
 developing an Arabic app

 Sorry if it is a primitive question, but I'm an newbie...  and I've been
 searching for 2 hours without luck...

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




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

Re: [android-developers] Re: Sending GPS coordinate to emulator reboots it

2011-07-08 Thread Mark Murphy
The Android 2.3 emulator does not support GPS fix emulation, due to a
bug that has never been fixed.

The Android 3.0 emulator worked for this the last time I tried it, but
I avoid using that emulator for obvious reasons.

I have not tried this on an Android 3.1 emulator.

On Fri, Jul 8, 2011 at 2:50 AM, Sapna Srivastav sapna.ari...@gmail.com wrote:
 My application running absolutely fine on Android 2.1 and 2.2.
 But problem arises when I run the application in android 2.3 and later
 version emulator.

 On Jul 7, 12:05 pm, Ali Chousein ali.chous...@gmail.com wrote:
 Bbbrrr, looks scary. I've been working extensively with GPS signal and
 have been sending GPS coordinates to the emulator. The target AVDs I
 created are version 2.1 (updated) and 2.2 and I've never faced any
 issue. Some coordinates I worked with are:

 geo fix 5.4780 51.4480
 geo fix 9.9975 48.3945
 geo fix 2.3511 48.8577

 Could it be the case that there is a bug in the logic of your code
 which handles the GPS signal? Do you get the same problem when you
 send the GPS coordinates while running the 'Hello World' example?

 --
 Ali Chousein
 Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/
 Cisco Android marketplace 
 (Chosen)https://marketplace.cisco.com/apphq/products/510

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




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

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

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


[android-developers] Re: Does android support the opening of two cameras in same time

2011-07-08 Thread Itri Ignwane
Hello,
What I tried to do, is to activate and use the data of the main camera
and the front camera at the same
time. I did like this :

*
Camera_1 = new Camera();
Camera_2 = new Camera();

Camera_1 = Camera.open();   // to open the main camera
Camera_2 = Camera.open(1);  // to open the front camera

and I set listeners to both camera_1 and camera_2.

Thanks for help.

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


[android-developers] Replace an existing app without deleting existing files

2011-07-08 Thread Jing
Hi. I want to replace the previously installed app (e.g. A.apk) with a
new version. But when I install the new one , it always unistall the
previous one first. Since I have to keep some data files in previous
one, is there any way to replace/override previous app without
deleting any files. thx in advance.

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


[android-developers] different user screen

2011-07-08 Thread muthumani
Is it possible to customize a single user screen(xml file) depending
upon the user who logs in? consider that one or two buttons in that
screen should be completely hidden for some selected users

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


[android-developers] Re: Building a commercial app that uses maps

2011-07-08 Thread David

Thanks for the info and links! somehow I missed the Location api in my
search, so really its the directions service, that can be called via
the web services. seems odd that this is not encapsulated into the
mapping api.

When I said state of play about the rate limiting, I mean does
anyone know if this situation is true or even an issue?



On Jul 7, 8:27 am, gjs garyjamessi...@gmail.com wrote:
 Hi,

 There is other options as well -

 You could use both of google native  web based.

 Other map provider libraries/api eg:

 http://www.openstreetmap.org/http://resources.arcgis.com/content/arcgis-android/api

 plus the online offering from microsoft, ovi

 http://msdn.microsoft.com/en-us/library/dd877180.aspxhttp://api.maps.ovi.com/devguide/overview.html

 usgs -http://store.usgs.gov/

 etc, etc

 Regards

 On Jul 7, 2:06 pm, TreKing treking...@gmail.com wrote:







  On Wed, Jul 6, 2011 at 7:50 AM, David da...@teamrobots.net wrote:
   1) Looking at the native map api, there seems to be functionality
   missing that we would need, such as finding directions between two
   points and geocoding.

  You can use the online Google Directions API and the built-in GeoCoder
  class(es).

   Has this functionality been intentionality
   missed out due to Terms of Service restrictions? or is it in the road
   map for future api releases?

  That would require insider Google knowledge into the maps library,
  development of which has been fairly stagnant - you're unlikely to get an
  answer to that.

  2) We understand that we could make the app as a browser based app and

   use the functionality of the javascript v3 libs or even just use the
   web services to get the data we need to keep the app in line with the
   desktop version. But reading around the forums, it has been speculated
   that mobile apps are going to fall into rate limiting problems due to
   mobile providers ip masking for individual phones (ie lots of phones
   on one ip, as far as google maps is concerned). Does anyone know what
   the state of play is here?

  What state of play?

   I am a little confused about the recommended direction App developers
   are meant to take when building Android map based apps. The options
   seem to be, make a native app with missing functionality / workarounds
   or make a browser based app that has all the functionality of the
   desktop version, but the interaction experience and visual quality of
   the app is poor in the browser compared to the native solution; any
   suggestions here?

  Yup, that about sums it up.

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

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


[android-developers] Re: Building a commercial app that uses maps

2011-07-08 Thread David
Hi again, so I was reading around the Google Web Services forums, and
it does seem that the mobile shared IP issue could be a problem. One
post suggests that a significant portion of mobiles in France share
only 30 outward facing ip addresses in total. But non of this is
officially documented anywhere, so we are left a little in the dark
here.

This could be a real problem for our app, as going over quota using
the web direction service due to unrelated allocation is not really a
use case I can go forward with. I would speculate the Android team has
implemented a different rate limit system for the Location geocing as
otherwise surly this will be an issue here too.

Where to move forwards, Im not sure, I think I will do some
investigation for other providers.

Thanks -D


On Jul 7, 8:27 am, gjs garyjamessi...@gmail.com wrote:
 Hi,

 There is other options as well -

 You could use both of google native  web based.

 Other map provider libraries/api eg:

 http://www.openstreetmap.org/http://resources.arcgis.com/content/arcgis-android/api

 plus the online offering from microsoft, ovi

 http://msdn.microsoft.com/en-us/library/dd877180.aspxhttp://api.maps.ovi.com/devguide/overview.html

 usgs -http://store.usgs.gov/

 etc, etc

 Regards

 On Jul 7, 2:06 pm, TreKing treking...@gmail.com wrote:







  On Wed, Jul 6, 2011 at 7:50 AM, David da...@teamrobots.net wrote:
   1) Looking at the native map api, there seems to be functionality
   missing that we would need, such as finding directions between two
   points and geocoding.

  You can use the online Google Directions API and the built-in GeoCoder
  class(es).

   Has this functionality been intentionality
   missed out due to Terms of Service restrictions? or is it in the road
   map for future api releases?

  That would require insider Google knowledge into the maps library,
  development of which has been fairly stagnant - you're unlikely to get an
  answer to that.

  2) We understand that we could make the app as a browser based app and

   use the functionality of the javascript v3 libs or even just use the
   web services to get the data we need to keep the app in line with the
   desktop version. But reading around the forums, it has been speculated
   that mobile apps are going to fall into rate limiting problems due to
   mobile providers ip masking for individual phones (ie lots of phones
   on one ip, as far as google maps is concerned). Does anyone know what
   the state of play is here?

  What state of play?

   I am a little confused about the recommended direction App developers
   are meant to take when building Android map based apps. The options
   seem to be, make a native app with missing functionality / workarounds
   or make a browser based app that has all the functionality of the
   desktop version, but the interaction experience and visual quality of
   the app is poor in the browser compared to the native solution; any
   suggestions here?

  Yup, that about sums it up.

  --- 
  --
  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] Android emulator gets stuck in Ubuntu 10.04 (Lucid)

2011-07-08 Thread vyom
I am trying to run the Android emulator on Ubuntu, and it gets stuck at a
specific point all the time, and does not move forward. I ran the emulator 
on
the Mac with the same options and the emulator is able to move forward, 
launch
more applications (like the binder) and get to a usable state.

Any ideas on how I can coax the emulator on Ubuntu to move forward. I have
attached some info and the command I am using to run the emulator below.


 commands ==

vyom@vyom-desktop:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION=Ubuntu 10.04 LTS

vyom@vyom-desktop:~$ uname -a
Linux vyom-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 
2010 i686 GNU/Linux

vyom@vyom-desktop:~$ emulator -verbose -no-boot-anim -no-snapshot -wipe-data 
-avd VyomTest -no-window 
…….snip…….
emulator: control console listening on port 5554, ADB on port 
emulator: sent '0012host:emulator:' to ADB server
emulator: ping program: /home/vyom/android-sdk-linux_x86/tools/ddms
emulator: ping command: /home/vyom/android-sdk-linux_x86/tools/ddms ping 
emulator 11.0
goldfish_fb_get_pixel_format:167: display surface,pixel format:
  bits/pixel:  16
  bytes/pixel: 2
  depth:   16
  red: bits=5 mask=0xf800 shift=11 max=0x1f
  green:   bits=6 mask=0x7e0 shift=5 max=0x3f
  blue:bits=5 mask=0x1f shift=0 max=0x1f
  alpha:   bits=0 mask=0x0 shift=0 max=0x0
* Emulator gets stuck here **

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Load in image based on screen size and density

2011-07-08 Thread dutchiedave
I know how to load images for an ImageView based on size and density
(using layout and drawable folders etc), but I would like to load an
image for processing based on size and density of the device.

The use case is I have a 'single image' which comprises 52 images
representing a deck of cards. I load this image into an array of 52
bitmaps for later use.

I would like to load a different 'single image' depending on the
screen size and density of the device.

I can do this per screen density by using the 'drawable' folder
mechanism, but the screen size will also affect the size of the image
i want to load.

Can anyone tell me the 'right' way to approach this.

Thanks,

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] Best approach for dealing with application with many images

2011-07-08 Thread dutchiedave
I have an application that uses many images. Each screen resolution
has its own set of images. I would like to publish my application in
the Android Market.

To keep the final application size small it would seem the best
solution is to have a different application for each screen size, so
each application has only one set of images in it.

Is this the right approach? Is this possible for applications
published on Android Market?

Thanks,

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


Re: [android-developers] How to install several versions of activity from one Eclipse project?

2011-07-08 Thread Raghav Sood
If you want to preserve different versions you will have to change the
package name for each version.

On Thu, Jul 7, 2011 at 7:08 PM, Anna anna.be...@gmail.com wrote:

 Hello all! I need your advise. I'm writing an application in Eclipse.
 Every time, when I run the activity from Eclipse, it is  reinstalling.
 Question is: Is it possible to preserve previous versions of activity
 in device? Or do I need to create the new project each version of
 activity?
 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




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 emulator gets stuck in Ubuntu 10.04 (Lucid)

2011-07-08 Thread Raghav Sood
What is the configuration of your ubuntu system? RAM, CPU etc.

On Thu, Jul 7, 2011 at 8:02 PM, vyom deepak.j...@gmail.com wrote:

 I am trying to run the Android emulator on Ubuntu, and it gets stuck at a
 specific point all the time, and does not move forward. I ran the emulator
 on
 the Mac with the same options and the emulator is able to move forward,
 launch
 more applications (like the binder) and get to a usable state.

 Any ideas on how I can coax the emulator on Ubuntu to move forward. I have
 attached some info and the command I am using to run the emulator below.


  commands ==

 vyom@vyom-desktop:~$ cat /etc/lsb-release
 DISTRIB_ID=Ubuntu
 DISTRIB_RELEASE=10.04
 DISTRIB_CODENAME=lucid
 DISTRIB_DESCRIPTION=Ubuntu 10.04 LTS

 vyom@vyom-desktop:~$ uname -a
 Linux vyom-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC
 2010 i686 GNU/Linux

 vyom@vyom-desktop:~$ emulator -verbose -no-boot-anim -no-snapshot
 -wipe-data -avd VyomTest -no-window
 …….snip…….
 emulator: control console listening on port 5554, ADB on port 
 emulator: sent '0012host:emulator:' to ADB server
 emulator: ping program: /home/vyom/android-sdk-linux_x86/tools/ddms
 emulator: ping command: /home/vyom/android-sdk-linux_x86/tools/ddms ping
 emulator 11.0
 goldfish_fb_get_pixel_format:167: display surface,pixel format:
   bits/pixel:  16
   bytes/pixel: 2
   depth:   16
   red: bits=5 mask=0xf800 shift=11 max=0x1f
   green:   bits=6 mask=0x7e0 shift=5 max=0x3f
   blue:bits=5 mask=0x1f shift=0 max=0x1f
   alpha:   bits=0 mask=0x0 shift=0 max=0x0
 * Emulator gets stuck here **

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




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

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

Re: [android-developers] Use of the Android logo and likeness

2011-07-08 Thread Mark Murphy
http://www.android.com/branding.html

On Thu, Jul 7, 2011 at 10:19 AM, Remout bobbeas...@gmail.com wrote:
 I've building a website and graphics to go with my App. What is
 Google's position on use of the Android robot and or it's likeness?

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

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

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


[android-developers] RenderScript: rsDebug messages not displayed with logcat

2011-07-08 Thread Neo
Hi,

I'm trying to explore RenderScript examples, I could not see debug
statements from native renderscript layer (i.e. rsDebug from .rs
files) in logcat when running any of of the examples, however I can
see all messages from other layers, I'm printing at verbose level, Am
I missing something or does it go somewhere else?

Thanks,
Neo.

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


[android-developers] ListView items height

2011-07-08 Thread omar0226
Hi!

I have to build a functionality that would allow the user to browse
the tweets from a twitter account. My problem is how to know the
appropriate height for the items in the list, since each tweet has a
variable number of characters, how do I know the height for each item
in the list (as a function of its content lenght)?

Thanks.

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


[android-developers] Re: Implementing a REST web Server and Client in android device.

2011-07-08 Thread JochenR
Hi,

with PAW that should possible.
You have several possibilities from using BeanShell, existing Java
classes or using PHP.

Bye
Jochen

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


[android-developers] Re: [android] app does not show up after wake up

2011-07-08 Thread oochieman
Is your activity still active? You may need an intent to restart it. I
did read somewhere that it's not good practice to start an activity
from a broadcast receiver. The usual way seems to be to add a
notification and let the user choose to start it, like receiving a sms
message. I know that if I were using an app and some other app
interrupted and brought up its own activity I would be more that
annoyed...


On Jul 7, 12:09 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jul 6, 2011 at 5:36 PM, kaizie kai...@gmail.com wrote:
  If i do so, the service keeps on its duty and throws its message for
  the broadcast to receive it. It executes the wake up code so my screen
  turns on, but i see the mobile desktop, not my app running. Nothing
  but my desktop.
  Its like i have to load my layout or something on the onstart...

 If your code does not request the Activity to come to the foreground, why
 would it?

 --- 
 --
 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] Force Close when opening app after pressing home button

2011-07-08 Thread Jo Mon
Is there a way to make my game open without force closing when ever
the user presses the home button and then goes back to the app.

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


[android-developers] Intent.ACTION_USER_PRESENT is not triggered before screen lock

2011-07-08 Thread Federico Pelloni
I have a service running in background that checks the orientation
sensor, I'd like it to stop checking when screen is locked as my
service does nothing useful then.
I've done this with a BroadcastReceiver which listens for
ACTION_SCREEN_OFF and ACTION_USER_PRESENT.

While the first works well, I noticed that ACTION_USER_PRESENT is not
triggered if the user presses a physical button during the short time
after the screens switches off but before it gets locked.
Is this a bug or is it intended to work this way?

In any case, I thought I could workaround this listening also for
ACTION_SCREEN_ON and then checking whether the screen is locked or
not, but I couldn't find a way to get this information.

What can I do?

Thank you very much,
Federico

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

2011-07-08 Thread Mark Murphy
In Java, if you detect that this is the special user, call
setVisibility(View.INVISIBLE) on those Buttons.

On Fri, Jul 8, 2011 at 4:26 AM, muthumani ct.muthum...@gmail.com wrote:
 Is it possible to customize a single user screen(xml file) depending
 upon the user who logs in? consider that one or two buttons in that
 screen should be completely hidden for some selected users

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




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

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

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


[android-developers] Re: A way to adding Unicode font to SoftKeyboard

2011-07-08 Thread Édouard Lopez
@Vinodkumar
If I'm not mistaken, the change will only work on its custom system.
So it's not a good solution if Randil want to ship his apps through
the Android Market.

@Randil,
if you find a workable solution let me know, I'll probably need
something similar for chinese.

Cheers,
Éd

On Jul 7, 6:25 am, Vinod Pache vinodpach...@gmail.com wrote:
 u have to put the font in the system folder of android .have to make an
 entry in the source of the skia libraray of the android source
 code..

 path to source code:-  ./Android_Source/external/skia/src/ports

 file name: SkFontHost_android.cpp

 add ur unicode font in the array and compile the code and get the new system
 image.

 regards
 Vinodkumar Pache
 India...







 On Thu, Jul 7, 2011 at 5:59 AM, Randil randilpushpana...@gmail.com wrote:
  I am developing a predictive text input system for Sinhala language.
  So I started with sample SoftKeyboard and still I could see only white
  boxes. I tried to change the some codes inside the CandidateView.java
  in the SoftKeyboard sample as follows. I am new to the android.

  I want to know how to get font in the assets

  
  AssetManager assetManager=getAssets(); // initializes=d as this, but
  gives an error

  Typeface aassets= Typeface.createFromAsset(assetManager, fonts/
  isk.ttf);
  //Typeface tf = Typeface.create(aassets, Typeface.DEFAULT_BOLD);
  mPaint.setTypeface(aassets);

  

  Thank you

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

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


[android-developers] Live Streaming in Android

2011-07-08 Thread deepak
Hi,

 I am developing an application where i need to live stream from my Ip
camera to the android phone. Any help on how i can accomplish 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 to implement UniqueFieldValueConstraint in db4o on Android ?

2011-07-08 Thread Gamlor
Hi. I've answered this also on the db4o forum. This is a copy of my
answer:

Which version of db4o are you using?

To me that looks like some kind of regression / accidental API
breakage. Instead of the UniqueFieldValueConstraintViolationException
the EventException is thrown. The unique-field detection is just
another event handler. So it looks like the original
UniqueFieldValueConstraintViolationException is hidden by the event-
exception

Try to catch the  EventException an check if the .getCause() is a
UniqueFieldValueConstraintViolationException.





In general the   UniqueFieldValueConstraintViolationException  should
be the last 'barrier' before violating the constrain. If you know that
you probably will insert a doublicate then I recommend to first check
if that id isn't used yet.

On Jun 22, 3:29 pm, imran ali imran...@gmail.com wrote:
  Hi All,

 in one of my application i have been downloading lots of data from
 server and then saving in to db4o.

 in my case i am saving 200 objects of Recipe class in loops, and on
 every  200 store, i am using commit().

 in Recipe Class i have define id as unique as follows

 configuration.common().add(new
 UniqueFieldValueConstraint(Recipe.class, id));
 when i have been commiting after 200 stor,e it has been throwing
 exception,code at comit is as follows

   public void commitdb()

                   {

                          try

                          {

                         oc.commit(); // oc is object of objectContainer

                   }

         catch(UniqueFieldValueConstraintViolationException exp)

                         { oc.rollback();         }

 }

 Still i am getting exception as follows, (i am using db4o on Android)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):
 com.db4o.events.EventException
 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.events.EventRegistryImpl.withExceptionHandlingInCallback(­EventRegistryImpl.java:
 283)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.events.EventRegistryImpl.commitOnStarted(EventRegistryImp­l.java:
 121)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.LocalTransaction.dispatchCommittingCallback(LocalTransact­ion.java:
 90)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.LocalTransaction.commit(LocalTransaction.java:65)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.LocalTransaction.commit(LocalTransaction.java:59)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.LocalObjectContainer.commit1(LocalObjectContainer.java:
 104)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.IoAdaptedObjectContainer.commit1(IoAdaptedObjectContainer­.java:
 171)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.ObjectContainerBase$3.apply(ObjectContainerBase.java:
 403)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.ObjectContainerBase$3.apply(ObjectContainerBase.java:
 401)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.ObjectContainerBase.asTopLevelCall(ObjectContainerBase.ja­va:
 427)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.ObjectContainerBase.commit(ObjectContainerBase.java:
 401)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.ExternalObjectContainer.commit(ExternalObjectContainer.ja­va:
 39)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.altaworks.kokaihop.db4o.RecipeProvider.commitdb(RecipeProvider.java:
 42)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.altaworks.kokaihop.ui.TakeoffActivity$4.run(TakeoffActivity.java:
 707)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 java.lang.Thread.run(Thread.java:1096)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823): Caused by:
 java.lang.NullPointerException

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.constraints.UniqueFieldValueConstraint
 $1.ensureSingleOccurence(UniqueFieldValueConstraint.java:59)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.constraints.UniqueFieldValueConstraint
 $1.onEvent(UniqueFieldValueConstraint.java:96)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.events.Event4Impl.trigger(Event4Impl.java:78)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.events.EventRegistryImpl
 $4.run(EventRegistryImpl.java:123)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.foundation.DynamicVariable.with(DynamicVariable.java:54)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.InCallback.run(InCallback.java:24)

 06-22 18:30:41.568: ERROR/AndroidRuntime(14823):     at
 com.db4o.internal.events.EventRegistryImpl.withExceptionHandlingInCallback(­EventRegistryImpl.java:
 279)

 What should be solution, i have to 

השב: RE: [android-developers] SIP + BT Doesn't work

2011-07-08 Thread Guye
I dont think its related to the phone.
I've tried it with Nexus1 as well and it fails there too.

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

Re: [android-developers] Re: Locations using Google Maps

2011-07-08 Thread Mark Murphy
You need to have geographic coordinates for your eye doctors. The
Google Maps add-on for Android does not have a showEyeDoctors()
method. :-)

On Thu, Jul 7, 2011 at 10:47 AM, Cindy cindy...@gmail.com wrote:
 Thanks. I thought ItemizedOverlay was used whenever you have a list of
 of geographic coordinates?

 On Jul 6, 10:27 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jul 6, 2011 at 2:23 PM, Cindy cindy...@gmail.com wrote:
  Since there are a lot of eye doctor locations, what's the best way to
  display them on Goggle Maps using MapView?

 ItemizedOverlay.

 --- 
 --
 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




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

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

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


[android-developers] How to publish the application in test mode

2011-07-08 Thread Сергей Большаков
Hello all. I have created application, has uploaded it to market and clicked 
save button. I see publish and save buttons, but nothing about how i can 
test app after upload it. Wha t should i do to able to download my app from 
market in test mode. 
If i click publish, my app will be avalible for all users? What i should do 
fot test my app un market

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Force Close when opening app after pressing home button

2011-07-08 Thread Mark Murphy
Sure: fix the bug that causes the force close. Use adb logcat, DDMS,
or the DDMS perspective in Eclipse to examine LogCat and look at the
stack trace associated with your force close.

On Fri, Jul 8, 2011 at 2:31 AM, Jo Mon ebau...@gmail.com wrote:
 Is there a way to make my game open without force closing when ever
 the user presses the home button and then goes back to the app.

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




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

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

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


[android-developers] How to get information on what happened before an unexpected phone shut down.

2011-07-08 Thread RestoDruid
After a phone has booted back up from an unexpected shut down, is
there a place where I can go look for errors? Maybe hardware
malfunctions, kernel crashes that caused it to shut down, etc?  My
understanding is that logcat clears when the phone reboots, so this is
not useful for my case (correct me if I'm wrong).  Where can I go to
get some information on what the phone's state was before the crash?
Thanks.

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


[android-developers] Re: calendar set repeat for an event

2011-07-08 Thread leslie.karpati
Thanks!

Where can I find a how to for that?

Leslie.

On júl. 7, 05:54, TreKing treking...@gmail.com wrote:
 On Tue, Jul 5, 2011 at 3:25 PM, leslie.karpati 
 leslie.karp...@gmail.comwrote:

  How could I add this function?

 Use the official online Google Calendar API.

 --- 
 --
 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] SDK Tools r12, scaling down emulator window

2011-07-08 Thread lnxtux
Folks,

I have a need to run the emulator with scaled down window (please
don't suggest to always run it at 100% scale, it has to be scaled
down, period). Typically started as emulator @AVDNAME -scale 0.8.

Everything was just fine until I upgraded to SDK Tools 12. Now the
emulator window has distorted colors (8 bit palette?) when 50  scale
 100. There are no issues when it's not scaled at all or scale is
less than 50%.

Anybody else seen the same behavior?

Thanks.

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


Re: [android-developers] ListView recycle views that are visible on screen

2011-07-08 Thread Mark Murphy
On Thu, Jul 7, 2011 at 4:48 AM, Amir Tsafrir atsaf...@gmail.com wrote:
 I have a problem with ListView which recycles views that are visible on the
 screen.
 I can have up to 4 items in my the ListView, they are all visible on
 screen.
 After I update a property of an object in the ArrayList that the ListAdapter
 uses i call the notifyDataSetChanged() method of the list adapter.
 This causes the ListView to recycle the views and to redraw it self. The
 problem is that it's doing the recycling in a reverse order.

The order of recycling is not guaranteed.

 so if i have a button on the first Listview item it will be in the second
 list view item after the notifyDataSetChanged().

This is perfectly normal.

 I have getView that changes the convertView properties except for the button
 onTouchListenet.
 This is very problematic if i have a button that works with touch event
 (Like PTT button). one second it's there and than it's not :-(.
 1. why does the ListView recycle items that are visible on the screen ? is
 this normal behaviour? why does it done in reverse order ?
 2. What can I do to solve my issue ?

Write an implementation of getView() that makes no assumptions about
the order of the getView() calls. Or, do not use ListView.

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

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

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


[android-developers] Samsung Galaxy Tab dictionary

2011-07-08 Thread Lukas Kalt
Hi all

We want to edit the internal dictionary of the Samsung Galaxy tab.
With other Android devices this is no problem. You can just add Words
with the android.provider.UserDictionary.Words class or delete and
update words with a ContentResolver and the Content URI definded in
said class.
When I install a third party keyboard like Gingerbrad Keyboard, our
application works fine. It uses the standard user dictionary and shows
the programatically added words for text prediction. The Samsung
Keypad doesn't. Now, how can I access the Samsung Keypad dictionary
and delete, add and update words?

Tanks 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Simple Image Download

2011-07-08 Thread angelfish
Hi,

I have spent hours searching for tutorials on downloading a file to a folder 
on my phone.  Despite my best efforts I still haven't been able to 
accomplish this task.

Here is what I have so far.  It is within a on button click handler, I will 
place the code in a separate class when I get it working.

try {
URL url = new URL(http://mywebsite.com/cards/1.jpg;);
File file = new File(/sdcard/cards/1.jpg);  // I dont think this is right! 
example I got this code from used /data/data/project name/filename but 
did not work
 /* Open a connection to that URL. */
URLConnection ucon = url.openConnection();

InputStream is = ucon.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);

ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while ((current = bis.read()) != -1) {
baf.append((byte) current);
}
bis.close();

FileOutputStream fos = new FileOutputStream(file);
fos.write(baf.toByteArray());
fos.flush();
fos.close();

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

Many Thanks in advance for any assistance.

Mark

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

2011-07-08 Thread MGR
Trying to build a four (4) tab TabWidget (position top), each with
seperate WebView targeting three (3) HTML5 mobile web pages with one
(1) call me button with preprogramed number. Tried numerous tutorials
for hours, nothing has worked..anyone?

Thanks,

M

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


Re: [android-developers] Re: calendar set repeat for an event

2011-07-08 Thread Mark Murphy
http://code.google.com/apis/calendar/

On Thu, Jul 7, 2011 at 4:59 PM, leslie.karpati leslie.karp...@gmail.com wrote:
 Thanks!

 Where can I find a how to for that?

 Leslie.

 On júl. 7, 05:54, TreKing treking...@gmail.com wrote:
 On Tue, Jul 5, 2011 at 3:25 PM, leslie.karpati 
 leslie.karp...@gmail.comwrote:

  How could I add this function?

 Use the official online Google Calendar API.

 --- 
 --
 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




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

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

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


[android-developers] Resources$NotFoundException when running integration tests

2011-07-08 Thread Mike Mangino
I have an android 3.0 project and associated test project that have
been under development for a few months. We are currently testing via
maven, but we see the same thing using eclipse or intellij IDEA. When
we run the tests, we randomly see errors like the following:


com.xxx.apps.select.test.endtoend.FacebookShareTest:.INSTRUMENTATION_RESULT:
shortMsg=android.content.res.Resources$NotFoundException
INSTRUMENTATION_RESULT: longMsg=android.content.res.Resources
$NotFoundException: Resource ID #0x7f03000b
INSTRUMENTATION_CODE: 0

Interestingly, the missing resource is typically the same resource and
occurs about half way through the running of the tests. That resource
does exist, as it is defined:


grep -r 0x7f03000b application
application/target/generated-sources/r/com/xx/apps/select/
R.java:public static final int tab_container=0x7f03000b;

Also, that resource is the main container used by a tab interface. It
seems that if the resource was really gone there's no way the previous
tests could pass.

I've run the tests about 10 times in the last hour and I've gotten
that failure about 6 times even though the code hasn't changed at all.

Does anyone have suggestions to debug and/or fix?

Mike

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

2011-07-08 Thread Mark Murphy
http://code.google.com/p/android/issues/detail?id=18299

On Thu, Jul 7, 2011 at 6:03 AM, lnxtux lin...@gmail.com wrote:
 Folks,

 I have a need to run the emulator with scaled down window (please
 don't suggest to always run it at 100% scale, it has to be scaled
 down, period). Typically started as emulator @AVDNAME -scale 0.8.

 Everything was just fine until I upgraded to SDK Tools 12. Now the
 emulator window has distorted colors (8 bit palette?) when 50  scale
  100. There are no issues when it's not scaled at all or scale is
 less than 50%.

 Anybody else seen the same behavior?

 Thanks.

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




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

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

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


[android-developers] How to start the Volume dialog in Setting app from somewhere else?

2011-07-08 Thread pengguang
The volume dialog is of type RingerVolumePreference, not a subclass of
Activity. I have tried the 'am start' command, and it failed.
I want to start this dialog from another app.

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


[android-developers] NFC card emulation, NXP PN544 and S2C (NFC-WI)

2011-07-08 Thread petr.maza...@mautilus.com
Hello,

the Nexus S device NXP PN544 NFC controller supports not only SWP for
UICC based SE, but also the S2C (aka NFC-WI) for the external, e.g.
micro SD card SE. Does anybody know how this can be enabled and what
it means for the SD card? That is not relevant for the Google Nexus S
(there is not SD card slot), but the NFC version of the Samsung Galaxy
S II comes already with the SD card slot and here this will be a
question.

I have tried to search for that and even the S2C standard seems to be
relatively old (I think ECMA, 2006) I did not any related materials.
What it means supporting S2C? The NXP544 has the built-in support, but
what about the phone? Should the device have some hardware support
like, e.g. antenna connectors in the slot and on the SD card to be
connected directly to the RF interface?

Thanks a lot
Regards,
STeN

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

2011-07-08 Thread petr.maza...@mautilus.com
Hi,

does anybody see the possibility to enable (by enable I mean even
compile the sources, e.g. as shown by Gerald Madlmayr on the
http://www.nearfieldcommunicationsworld.com/2011/02/13/35913/uncovered-the-hidden-nfc-potential-of-the-google-nexus-s-and-the-nokia-c7/)
the NFC NXP 544 to work in card emulation mode not using the SWP and
UICC for SE as shown in the article, but using the SE on the microSD?
For this there is dedicated protocol S2C, but I would like to stick
the the traditional SD card with the SE like the Mobile Security Card
from GD (http://www.gi-de.com/en/products_and_solutions/products/
secure_microsd/product_details_4992.jsp). It contains SE, which can be
accessed by the standard file I/O commands, which are APDUs
'decorated' by specific 'magic' numbers, so they are by the SD card
micro controller distinguished from other file I/O and those commands
are send directly to the GP enabled secure element instead of the
standard flash storage...

Thanks for comments and tips.
Regards,
STeN

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

2011-07-08 Thread sandeep kumar
On Back Key press i want to minimize the application, How can i do
this???

public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {

//Here i want to put minimize code.. pls give me this
statement

return true;
}
return super.onKeyDown(keyCode, event);
}

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


[android-developers] Re: How to create a Text File

2011-07-08 Thread sandeep kumar
File root = Environment.getExternalStorageDirectory();
File textFile = new File(root, name.txt);

FileWriter writer = new FileWriter(textFile);
BufferedWriter out = new BufferedWriter(writer);
out.write(Your Data);
out.close();


This will create file in SD card

On Jul 6, 10:53 pm, Vishal vishaldab...@gmail.com wrote:
 I am creating an application in Android that will read data from a
 bluetooth rs232 device and transfer the data into a graph. I am not
 going to worry about the bluetooth part yet, but i want to test the
 function of my code and app. I want to create a text file of fake data
 so i could perform this task. First off, How would i create the actual
 text file? How do i write into the Text file? and finally How would i
 read the fake data into my code? I am very new to Android so it
 would be much appreciated if i could get some tutorial on how to do
 this.

 Thank you very much in advance

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


[android-developers] how to differ reject call and miss call

2011-07-08 Thread prabhat shishodia
How i differ reject call and miss callits urgent please reply me
as soon as possible.


-- 
with regards
Prabhat singh

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

2011-07-08 Thread qiongju
Hi all

I'm trying to fetch logs from system,and this is my solution:
Process p=Runtime.getRuntime().exec(logcat -d -v time -b main *:D)
InputStream is=p.getInputStream();

then write the inputstream to a file,
some guys may say it's more conveniently to use logcat -f filename.
but the filter-spec of logcat doesn't support a regex.
and i want to use a regex to filter the logs.

the problem is:after every execution of fetch logs.
i will execute a command logcat -c to clear the buffer in cache.
but it seems doesn't work well.

any suggestion or solution?
Thx.

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

2011-07-08 Thread Raffaele Albertini
I have a problem with the creation of a socket server that listen on a
port and run on phone.

When my code run this istruction

InetAddress serverAddr =
InetAddress.getByName(192.168.1.103);
server = new ServerSocket(,5,serverAddr);
there is an exception on the second istruction:

IOException - Java.net.BindException. Cannot Assign requested address
- 192.168.1.103

The address is on WIFI connection and is correct (i'm sure).

Why doesn't work ?

Thanks !

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


[android-developers] block outgoing SMS / MMS and calls

2011-07-08 Thread raghu reddy
hi frends,

Can you tell me how you would block outgoing SMS / MMS and calls to some
numbers but allow others ? 
-- 
Thanks  Regards,
B.Raghavender Reddy

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

2011-07-08 Thread Mark Murphy
On Thu, Jul 7, 2011 at 8:58 AM, sandeep kumar pksandeepku...@gmail.com wrote:
 On Back Key press i want to minimize the application, How can i do
 this???

 public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {

                //Here i want to put minimize code.. pls give me this
 statement

            return true;
        }
        return super.onKeyDown(keyCode, event);
    }

Please don't. Whatever problem you are trying to solve can be solved
better some other way.

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

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

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


[android-developers] how to block an sms?(ASAP)

2011-07-08 Thread raghu reddy
Hi Frends,

Im in discussion with the client today ragarding how to block an outgoing
sms which are in whitelist
Please do help in this...
Any small suggestion / link regarding that can be a great help.
-- 
Thanks  Regards,
B.Raghavender Reddy

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

2011-07-08 Thread Randil Pushpananda
Thanks Vinod. I ll check it.

On Thu, Jul 7, 2011 at 9:55 AM, Vinod Pache vinodpach...@gmail.com wrote:

 u have to put the font in the system folder of android .have to make an
 entry in the source of the skia libraray of the android source
 code..

 path to source code:-  ./Android_Source/external/skia/src/ports

 file name: SkFontHost_android.cpp

 add ur unicode font in the array and compile the code and get the new
 system image.



 regards
 Vinodkumar Pache
 India...



  On Thu, Jul 7, 2011 at 5:59 AM, Randil randilpushpana...@gmail.comwrote:

  I am developing a predictive text input system for Sinhala language.
 So I started with sample SoftKeyboard and still I could see only white
 boxes. I tried to change the some codes inside the CandidateView.java
 in the SoftKeyboard sample as follows. I am new to the android.

 I want to know how to get font in the assets

 
 AssetManager assetManager=getAssets(); // initializes=d as this, but
 gives an error

 Typeface aassets= Typeface.createFromAsset(assetManager, fonts/
 isk.ttf);
 //Typeface tf = Typeface.create(aassets, Typeface.DEFAULT_BOLD);
 mPaint.setTypeface(aassets);

 

 Thank you

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


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

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

2011-07-08 Thread Raúl Do Santos
hi, i have an issue when i tried inflate popup layout created
programmatically,
in this code broke:

LinearLayout layout_pop = new LinearLayout ();
layout_pop.setId(R.id.layout_pop);
View = getInflater().inflate(R.id.layout_pop,null);

this throw an Exception, resource not found, in xmlparser. The problem is
that i should create the ui only programmatically without xml.

thank!

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

Re: [android-developers] Help. I need to pull and eventually send a value via webview

2011-07-08 Thread Richard Diuk
yes I need to display it and pull the hidden value. and i was just using an
httpGet for supplying the other value back(but I'm really not set on any one
method)

On Thu, Jul 7, 2011 at 3:58 AM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Do you need to display the webpage? Or you are just interested in the value
 if the hidden input? How is the other value supposed to be sent back to the
 server, is it via javascript, is it a html form or something else?

 2011/7/6 sabanim rickd...@gmail.com

 OK so it does not need to be webview but that's the closest I have
 gotten to solving my problem. (going on 2 weeks now).

 ok so right now I am using a webview to go and see a page. On that
 page is a hidden input tag with an id and value.
 I need to pull that value and use it in java.  Eventually I need to
 send something also.  I have this all working in a blackberry webworks
 app using javascript and ajax.

 I think I'm close but I cant seem to modify my code to get the right
 result.  with this code I can get all the html on the page but not
 just the one thing I want. This is put into an alert.

 How do I get just the value and then how do I get it so the java will
 read it.

 client code:
 ~~~
 public class button3 extends Activity{

 WebView wb = null;

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.buttons);
  wb = new WebView(this);
  wb.setWebViewClient(new HelloWebViewClient());
  wb.getSettings().setJavaScriptEnabled(true);
  wb.addJavascriptInterface(new MyJavaScriptInterface(),
 HTMLOUT);
  /* WebViewClient must be set BEFORE calling loadUrl! */
  wb.setWebViewClient(new WebViewClient() {
  @Override
  public void onPageFinished(WebView view, String url)
  {
  /* This call inject JavaScript into the page which just
 finished loading. */


 wb.loadUrl(javascript:window.HTMLOUT.showHTML(document.getElementsByTagName('html').innerHTML););

  }
  });
  wb.loadUrl(http://www.whateverurl.com;);
  setContentView(wb);
 }



 private class HelloWebViewClient extends WebViewClient {

  public boolean shouldOverrideUrlLoading(WebView view, String url)
 {
   view.loadUrl(url);
   return true;
  }
 }

 final Context myApp = this;
  class MyJavaScriptInterface
  {
  public void showHTML(String html)
  {
  new AlertDialog.Builder(myApp)
  .setTitle(Value of Hidden ID)
  .setMessage(html)
  .setPositiveButton(android.R.string.ok, null)
  .setCancelable(false)
  .create()
  .show();
  }
  }
 ~~~

 html code:
 ~~~
 Lunchbrimg src='http://www.?/mimages/image002.jpg'
 style=width: 300px; brpinput type='hidden' id='sendtextcoupon'
 value='0'
  Do You SEE THIS/p
 ~~~

 Any help would be great!

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


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

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

[android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-08 Thread AdamRedwoods
My other thought re:Google is they specifically have a section in
their Developers documentation that encourages in-app billing:
http://developer.android.com/guide/market/billing/index.html

This alone should allow developers to demand a little assistance from
Google.
If nothing else, Google and Apple could negotiate a license with
Lodsys, and cover developers within the developer fee they charge
for putting apps on their stores.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Not able to run a simple Android Program on Eclipse 3.5.2 IDE - Caused by: java.lang.IllegalStateException

2011-07-08 Thread Sagar K
Hi Everbody,

I facing this Strange problem today.
I'm not able to run a simple Android Program because of the below
Error.


Error logged from Debug UI:

org.eclipse.core.runtime.CoreException: Plug-in
com.android.ide.eclipse.adt was unable to load class
com.android.ide.eclipse.adt.internal.launch.LaunchShortcut.
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:
180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
162)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:
874)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:
243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:
51)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.getDelegate(LaunchShortcutExtension.java:
410)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:
432)
at
org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run(LaunchShortcutAction.java:
73)
at
org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAction.java:
121)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:
584)
at org.eclipse.jface.action.ActionContributionItem.access
$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem
$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.IllegalStateException: Bundle
reference:file:plugins/
com.android.ide.eclipse.adt_11.0.0.v201105251008-128486.jar has been
uninstalled
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.checkValid(AbstractBundle.java:
1160)
at
org.eclipse.osgi.framework.internal.core.BundleHost.checkLoader(BundleHost.java:
185)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:
227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:
1193)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
160)
... 34 more

eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product


Additionally, I have checked - File under Eclipse plugins its present.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send 

[android-developers] Buy multiple Items from Google Market Billing

2011-07-08 Thread Saurabh Minni
Hi,
I would like to know if there is a way to allow same item to be purchased in
quantity of 2 or more from the Google Market Billing.
Say there is an item X which the user wants to purchase. But instead of
making him do multiple requests for same item, is there any way to make this
a single transaction.
I tried searching but could not find anything. Any pointers would be
helpful.

Thanks,
Saurabh

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

2011-07-08 Thread selvanayaki selvi
Android Developers   android-developers@googlegroups.com

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


[android-developers] regarding android developer group

2011-07-08 Thread shafali impetus
Hi,

After joining the group i am able to reply the post but all my replies went
to the mail id of the respective person.

I am not able to see my reply in the discussion thread.

Can you please let me know how to achieve this?

Thanks,
Shafali

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

Re: [android-developers] Need help with a Spinner

2011-07-08 Thread shwetha NV
Hi All,



Docs anyone is having idea about kakaotalk application?

its free for android devices.

I would like to know technology used implementation

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

[android-developers] Re: Array Adapter Problem

2011-07-08 Thread Shafali Gupta
Please check whether your items variable has some value or not.

On Jul 6, 4:20 pm, Teodor Ciuraru a_kid_with_a_gui...@yahoo.com
wrote:
   I have a problem when trying to move the content of the EditText in
 the Spinner using that ArrayAdapter, I really don't know what to do,
 please have a look:
 public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.list);

         m_myDynamicSpinner = (Spinner)findViewById(R.id.textView1);
         m_addItemText = (EditText)findViewById(R.id.itemtext);
         Button addButton = (Button)findViewById(R.id.add);
         Button clearButton = (Button)findViewById(R.id.clear);
         Button next = (Button) findViewById(R.id.back);
         String items = m_addItemText.getText().toString();
         ArrayAdapterString adapter = new ArrayAdapter(this,
 android.R.layout.simple_spinner_item,items); //Here is the problem, I
 think it's something related to the last parameter and the line before
 it.

 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_it­em);
         m_myDynamicSpinner.setAdapter(adapter);
         next.setOnClickListener(new View.OnClickListener() {
             public void onClick(View view) {
                 Intent intent = new Intent();
                 setResult(RESULT_OK, intent);
                 finish();
             }});}}

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


[android-developers] Re: Audio

2011-07-08 Thread Shafali Gupta
you can make use of Media Player to play the audio file.

On Jul 7, 3:06 pm, kaushik p kaushiks...@gmail.com wrote:
 Hi

 all is there any way we can our own voice for the button click . I want some
 .mp3 file to be played when a button is clicked . Can anyone  please help me
 do it ?

 --
 ThanksRegards
 Kaushik Pendurthi

 http://kaushikpendurthi.blogspot.com/

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


Re: [android-developers] Re: Patent Infringement notice by Lodsys.

2011-07-08 Thread sweta android
On Fri, Jul 8, 2011 at 9:33 AM, Chris crehb...@gmail.com wrote:

 I'm guessing whatever was communicated was sent 'in confidence' and by
 emanating the contents would hurt whatever case he had.  Best to leave this
 question alone for a lil while.

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

2011-07-08 Thread sweta android
Hi All,


For my final year project I am planning to develop Instance messenger
application   for android platform.

which will be similar to popular android application  kakao talk .

can any one help to begin..


Thanks,
Shwetha

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

2011-07-08 Thread shwetha NV
Hi All,



Docs anyone is having idea about kakaotalk application?

its free for android devices.

I would like to know underlying technology used implementation

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

[android-developers] MediaPlayer - Streaming

2011-07-08 Thread Thanh Le Cong
Hello Everybody,
I want to use MediaPlayer play a file mp3 or video with Streaming. I have
code:
   try {
String path = http://codpro.tk/test.mp3;;
mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource(path);

mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mediaPlayer.prepare();
mediaPlayer.start();
} catch (Exception e) {
Toast.makeText(PlayLocalFiles.this, e.getMessage(),
Toast.LENGTH_LONG);
txtStatus.setText(e.getMessage());
}
I got error message: Prepare failed.: status=0x1. I have been search for
slove it and repair it. But I didn't solve the problem yet.

Could you please help me?
Thank you,
-- 
Thanh, Le Cong http://fit.utehy.edu.vn/codepro

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

[android-developers] How to use broadcast receiver. It won't pick up the DISCOVERY_STARTED message??

2011-07-08 Thread Steven Bruce
Ok I am totally stuck. I am trying to scan for bluetooth devices but
it needs a broadcast receiver and I've never used them before. I set
up my receiver correctly in the manifest:

receiver android:name=.BluetoothReceiver android:enabled=true
intent-filter
action
android:name=android.bluetooth.device.action.DISCOVERY_STARTED/
action
/intent-filter
/receiver


I have a class called BluetoothReceiver which is pretty basic so far
as I'm just testing:

public class BluetoothReceiver extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
System.out.println(HIT OUTGOING);
}
}


It all compiles ok so why am I not seeing the System Out message in
the debugger. I set a break point for that line and its just not
reaching it. What is going? Help cos I have been working on this for
the past two days and I'm getting annoyed with it now. :)

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


[android-developers] Re:issue with adb going offline on windows 7 PC

2011-07-08 Thread vennapusa
Hi all,
i am doing stress testing on the android phone by running the perl
script on windows 7 PC which uses adb driver for sending commands ,
which will do some kind of testing on UI applications. while  running
the test, adb is going offline. even if we do adb-kill-server and adb
devices , it is still showing  adb offline as follows:
adb devices status
61324765   offline.
when i analyse the issue , i found that windows 7 PC is not sending
USB In tokens to get data from the target device even target is ready
with data.   Due to which , whenever we type adb kill-server and adb
devices , USB host is sending only commands to the target , but it is
not sending the USB IN tokens to get data .  because of this, adb is
showing as offline.  We are suspecting it as adb driver issue on the
windows 7 USB Host PC.
adb.exe application is giving read request to adb driver , but adb
driver is not scheduling the read request to Hw i think. Due to which
test is failing as application thinks there is no response from the
target device.
So, it has to be debugged from ADB driver on Host PC.

Has anybody encountered this issue and How it could be solved ? Please
help me on this.

Note: same script is getting executed on Windows XP PC with the same
andorid phone.

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

2011-07-08 Thread sweta sweta
Hi All,

For my final year project am planning to creat instant messaging
application.

Since kakao talk is very popular for android mobile.

 I would like to know underlying technology used for implementation of kakao
talk messenger.

can any one help me to start with this project.



-thanks

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

[android-developers] [Voice Capture]

2011-07-08 Thread Dayvid Victor
Hello Everybody,

I need to implement a voice recognition system and right now, I'm using
google service
(calling the voice recognition as a intent) ...

Well, I already made a server that receives a stream and process the speech,
but I want
the audio capture be like the google intent ... when started it waits you
say something, and
after something is said, he finish capturing and sends the stream without
press any button.

Does anybody know how to do that?

-- 
Dayvid Victor R. de Oliveira
9º Periodo de Engenharia da Computação - UFPE
Monitor-Chefe de Lógica para Computação (EC)
Laboratório Itautec - CIn/UFPE

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

2011-07-08 Thread Bsweet
I want to use the built in functionality to select a contact as the
first step in my application.

1. User clicks my app icon
2. Contact Select Appears
3. My Activity Appears

How do I go about this?

Thanks

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


[android-developers] Post about Broadcast Receiver

2011-07-08 Thread Steven Bruce
Hi

I posted on yours group about a problem I am having with a broadcast
receiver. That was about four hours ago and I still haven't seen it appear
on the group yet? Is this normal or was it rejected for some reason?

Steve

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

2011-07-08 Thread LoveScorpio
Hello, everyone,

It's painful for me to get the answer. Is it possible to have more
than one processes in one Android application? Anyone could help me?
Would you please give me an example? How could we implemente two
processes in one Android application?

Thank you very much.

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


[android-developers] Android SDK tools revision 12 and Proguard

2011-07-08 Thread Yongki
I am not so sure if I re-post this here, but I am having big problem
that the Android SDK tools that I updated now can't support proguard.

It happens even when I tried to export a signed simple hello project
with no library used, I get conversion to dalvik format failed with
error 1 Proguard. I don't know if there something that I missed or it
is a bug.

I have been trying to solve this problem but unfortunately there is
none found. It would be much appreciated if someone can provide me
with a pointer.

If it is a bug, this message should serve as a warning for those who
wish to update to this latest version Android SDK tools. If you use
proguard, it will 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android SDK tools revision 12 and Proguard

2011-07-08 Thread Yongki
I have just updated to Android SDK tools revision 12, now all of a
sudden, my project with proguard can't be export. I get the message
error conversion to Dalvik format failed  even a simple hello
message application with proguard setting enable. Is there anything I
miss here?

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

2011-07-08 Thread BZ
Hello

I am trying to run the video but it gives me white screen. Can anyone
please help me asap. Its urgent and critical

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.web_main);
String path = ;
try {
videoView = (VideoView) findViewById(R.id.videoView);
path = 
http://64.250.238.26:/clips/GeorgeKahumokuHaleOlu.mp4;;
if (path == ) {
// Tell the user to provide a media file 
URL/path.
Toast.makeText(
VideoViewSample.this,
Please edit VideoViewDemo 
Activity, and set path
+  variable to 
your media file URL/path,
Toast.LENGTH_LONG).show();

} else {

 videoView.setVideoURI(Uri.parse(path));
videoView.setMediaController(new 
MediaController(this));
videoView.requestFocus();
}

} catch (Exception e) {
// TODO Auto-generated catch block

Log.e(Exception durin Videoview video View , 
e.toString());
e.printStackTrace();
}

}

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


  1   2   3   >