Re: [android-developers] Re: Handling Orientation Changes in AppWidgets

2010-05-22 Thread Kostya Vasilyev

Adam,

I was recently investigating this issue for my application's widget. My 
intent was slightly different - since I tried to update my widget 
incrementally, it was necessary to perform a complete update upon 
orientation changes.


My conclusions:

- When orientation changes, it's not possible for AppWidgetProvider to 
be notified. onUpdate is not called, and neither is any other 
notification method.
- The widget's real views hosted in home screen process are destroyed 
and recreated (as uaual, from xml layout file).
- Android correctly uses appropriate -land or -port layout for the 
previous step.
- After the layout is loaded, Android uses the most recent RemoteViews 
object (which it saves somewhere) to bring your widget up to date.


Recommendations:

- Create separate layouts for -port and -land orientations.
- Do text trimming in the widget's TextView by specifying its size and 
(possibly) ellipsize attribute.
- Consequently, do not trim text in the widget provider, or do it so 
there is enough left for either layout, the rest should be clipped by 
TextView.
- This is the most important: make sure each RemoveViews object you push 
to the widget completely specifies widget state, including all 
PendingIntents.


-- Kostya Vasilyev

22.05.2010 4:39, Adam Brookman пишет:

There is no Activity running during the orientation change. I would
like it to switch when the user changes the orientation on the Home
Screen.

On Apr 18, 2:31 pm, Anurag Singhanusingh...@gmail.com  wrote:
   

  Implement OnConfigurationChanged() function of your Activity and also
mention in your manifest as
   android:configChanges=orientation

How can we tell our AppWidget to recalculate the amount of text

 

displayed on screen orientation change? Is this possible? How would
you solve this problem?
   

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



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Re: Participate in app promotion experiment

2010-05-22 Thread Maps.Huge.Info (Maps API Guru)
Latest results:

  campaign  | hits_left | impressions | clicks | ctr
--
 Punching for Health |  3956 |   21044 |303 | 1.44
 ArmaBoing   |  4926 |   15074 |218 | 1.45
 Google Voice Call Adv |  3957 |   21043 |356 | 1.69
 My College Life Beta   |  3957 |   21043 |355 | 1.69
 PuzzleQube |  3955 |   21045 |451 | 2.14
 What Zip Code?  |  6466 |   18534 |514 | 2.77
 Diddo!  |  4950 |50 |  3
|6
(7 rows)

 hits_left | impressions | clicks | ctr
---+-++--
 32167 |  117833 |   2200 | 1.87

Added another volunteer. I will still accept more banners.

-John Coryat, USNaviguide LLC

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


[android-developers] Activity Not Finishing

2010-05-22 Thread Cody Raue
All,

I seem to have an issue that should be fairly easy for you guys to
figure out. I'm using an alertdialog to present the user with 4
options to create shortcuts on the launcher main screen. The problem
I'm running into is when I select the shortcut I want the dialog goes
away, and the shortcut is not created until I hit the back button. So
something is either failing to finish or it's waiting. My code is
below. If anyone could help that would be awesome.

package com.skittles.widget;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.widget.TextView;

import com.raue.rebootwidget.R;

public class LauncherShortcuts1 extends Activity {

private static final String EXTRA_KEY =
com.example.android.apis.app.LauncherShortcuts;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

// Resolve the intent

final Intent intent = getIntent();
final String action = intent.getAction();

// If the intent is a request to create a shortcut, we'll do
that and exit

String[] items={Shortcut1,
Shortcut2,Shortcut3,Shortcut4};
new AlertDialog.Builder(LauncherShortcuts1.this)
.setCancelable(false)
.setTitle(Select Shortcut)
.setItems(items, new DialogInterface.OnClickListener() {

public void onClick(DialogInterface dialog, int which) {

 if (which == 1) {

if 
(Intent.ACTION_CREATE_SHORTCUT.equals(action)) {
setupShortcut();
finish();
return;
}


 }
}})
.show();


setContentView(R.layout.configure);

TextView intentInfo = (TextView)
findViewById(R.id.button_two);
   String info = intent.toString();
String extra = intent.getStringExtra(EXTRA_KEY);
if (extra != null) {
info = info +   + extra;
}
intentInfo.setText(info);

}

private void setupShortcut() {
// First, set up the shortcut intent.  For this example, we
simply create an intent that
// will bring us directly back to this activity.  A more
typical implementation would use a
// data Uri in order to display a more specific result, or a
custom action in order to
// launch a specific operation.

Intent shortcutIntent = new Intent(Intent.ACTION_MAIN);
shortcutIntent.setClassName(this,
PoweroffActivity.class.getName());
shortcutIntent.putExtra(EXTRA_KEY, ApiDemos Provided This
Shortcut);

// Then, set up the container intent (the response to the
caller)

Intent intent = new Intent();
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME,
getString(R.string.shortcut1));
Parcelable iconResource =
Intent.ShortcutIconResource.fromContext(this,  R.drawable.shortcut);
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
iconResource);

// Now, return the result to the launcher

setResult(RESULT_OK, intent);
}

}

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


[android-developers] What's the localization language code for Turkish?

2010-05-22 Thread Dominik Erbsland
A friend of mine just translated my whole app to Turkish and I want to
implement this translation now. I just can't find the 2-letter code
for Turkish anywhere. What is it? 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] Re: Filtering Android Sensors Noise

2010-05-22 Thread Yahel
In addition to averaging.

You can also investigate tresholding.
Display your icons and don't move them unless there is a minimum
amount of displacement. You'll need fine tuning here, it will
compensate for small movement of the hand while looking through the
phone.

Don't forget parralax in your work : Averaging and thresholding values
should be proportionate to the z value of the point of interest your
icon is showing.

Yahel

On 21 mai, 19:30, Alfonso alfonsocris...@gmail.com wrote:
 HI,

 I'm programming an Augmented Reality application. It's development
 it's in an advanced state but I can't place the icons on the screen so
 still as anothers programs does (Layar, in example). This is because
 of the continuous variations of the sensors. I've tried the three
 modes of the sensors (FAST, GAME, and NORMAL) but I only get them to
 move more or less fast. The shivering is the same at different speed.

 Finally I thougth I could reach my goal with a digital filter,
 averaging historical values. But again the icons continues moving,
 specially the most far placed ones (in the z axis). Please, could some
 one help me with some clue?

 Of course, any help will be appreciated.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: Filtering Android Sensors Noise

2010-05-22 Thread Yahel


On 22 mai, 02:38, BobG bobgard...@aol.com wrote:
 Averaging is the right algorithm. The tradeoff is averaging lots of
 readings makes the movement smoother but slower to respond (lag). try
 averaging 8,16,32,64 samples. When it gets too slow, back up one.

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

2010-05-22 Thread Yahel
Oh and I forgot,

The other option you have that would be very accurate but requires a
biggest computational and battery overhead : Form recognition.

Using specific points on the image and following them will give you a
much better tracking(after effects style) on small movements.
Completely removing the bouncing around of your icons.

Good luck.

Yahel.

On 21 mai, 19:30, Alfonso alfonsocris...@gmail.com wrote:
 HI,

 I'm programming an Augmented Reality application. It's development
 it's in an advanced state but I can't place the icons on the screen so
 still as anothers programs does (Layar, in example). This is because
 of the continuous variations of the sensors.

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

2010-05-22 Thread Narendar
Hi all,
How to detect application launch and shutdown events?

I have used BroadcastReceiver for detecting incoming message, outgoing
call and so on. but now I want to use Application Launch and its Shut
Down event from my application..

Kindly waiting for any suggestion/link/source code

Regards,
Narendar
Software Engineer

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

2010-05-22 Thread Marwal
You can implement your own Application class. (MyApplication extends
Application) and set it as your Application in the manifest.

application
  android:name=MyApplication
  .
  .
  .

In MyApplication you implement onCreate and onTerminate.

See the docs for Application 
http://developer.android.com/intl/fr/reference/android/app/Application.html

/Martin


On May 22, 10:44 am, Narendar narendardisco...@gmail.com wrote:
 Hi all,
 How to detect application launch and shutdown events?

 I have used BroadcastReceiver for detecting incoming message, outgoing
 call and so on. but now I want to use Application Launch and its Shut
 Down event from my application..

 Kindly waiting for any suggestion/link/source code

 Regards,
 Narendar
 Software Engineer

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

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


[android-developers] Android Library Project

2010-05-22 Thread Mark Carter
Great to see the new Android Library Project feature in ADT 0.9.7.

http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject

However, some things aren't clear to me yet:

1. In the library project, what does versionCode, versionName,
packageName now mean? I assume nothing???
2. The docs state that activities, services etc need to be declared in
the library project and also the app project. So doesn't this just
result in a load of duplication? What if the activity is declared
slightly differently in one to the other?
3. It would have been incredibly useful to allow library projects to
reference each other. I'm curious as to why this is not possible...
4. If an app references both resources and code in a library project,
then that library project needs to be added as both a library and a
project in the app's build path (in eclipse at least) - why is this?
5. I'm considering subclassing library project activities/services in
my app project. Is there any reason not to do this?

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


[android-developers] Re: Can't debug with my Nexus One

2010-05-22 Thread Alistair.
I had to update my usb drivers.

http://developer.android.com/sdk/win-usb.html

Al.


On May 22, 8:37 am, Dominik Erbsland derbsl...@gmail.com wrote:
 Hi all

 I have a HTC Hero and newly also a Nexus One. I used to debug with the
 HTC Hero which worked just fine. Now when I try to debug with my Nexus
 One I just can't make it work. I updated everything Android via
 Eclipse and have now the version which officially supports Nexus One
 as a debug device. Whenever I connect the Nexus One, turn on Debug
 Mode and want to run the application I don't see the device in the
 debug list.

 Anyone got any ideas what I might do wrong? As said above, with the
 HTC Hero it works just fine.

 Thanks for help.
 Dominik

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

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


[android-developers] Re: How to detect application launch and shutdown events?

2010-05-22 Thread Narendar
Hi Martin, Thanks for quick reply...
Let me describe what I actually want to develop

1) Suppose I have a single Activity, name is MyActivity.
2) Now I close this Activity and I am in Home Screen.
3) Now suppose I want to start any other application like Broswer,
Gmail, Gtalk, Map and whatever MyActivity would be invoked before
starting one of the mentioned activity.

If issue is not clear please let me know.
Waiting for response..
Narendar


On May 22, 2:33 pm, Marwal martin.wallgren...@gmail.com wrote:
 You can implement your own Application class. (MyApplication extends
 Application) and set it as your Application in the manifest.

 application
   android:name=MyApplication
   .
   .
   .

 In MyApplication you implement onCreate and onTerminate.

 See the docs for 
 Applicationhttp://developer.android.com/intl/fr/reference/android/app/Applicatio...

 /Martin

 On May 22, 10:44 am, Narendar narendardisco...@gmail.com wrote:



  Hi all,
  How to detect application launch and shutdown events?

  I have used BroadcastReceiver for detecting incoming message, outgoing
  call and so on. but now I want to use Application Launch and its Shut
  Down event from my application..

  Kindly waiting for any suggestion/link/source code

  Regards,
  Narendar
  Software Engineer

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://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 
 athttp://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: Android Library Project

2010-05-22 Thread Mark Carter
When trying to launch an activity, the console gives:

Uploading MyApp.apk onto device 'emulator-5554'
Installing MyApp.apk...
Success!
Could not find MyLibrary.apk!
Starting activity com.mycompany.MyActivity on device
ActivityManager: Starting: Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] cmp=com.mycompany/
com.mycompany.MyActivity }
Attempting to connect debugger to 'com.mycompany' on port 8612

And then the activity fails to start (ClassNotFoundException).

This seems to be because of the line:

Could not find MyLibrary.apk!

Any ideas?

On May 22, 11:49 am, Mark Carter m...@carter.name wrote:
 Great to see the new Android Library Project feature in ADT 0.9.7.

 http://developer.android.com/guide/developing/eclipse-adt.html#librar...

 However, some things aren't clear to me yet:

 1. In the library project, what does versionCode, versionName,
 packageName now mean? I assume nothing???
 2. The docs state that activities, services etc need to be declared in
 the library project and also the app project. So doesn't this just
 result in a load of duplication? What if the activity is declared
 slightly differently in one to the other?
 3. It would have been incredibly useful to allow library projects to
 reference each other. I'm curious as to why this is not possible...
 4. If an app references both resources and code in a library project,
 then that library project needs to be added as both a library and a
 project in the app's build path (in eclipse at least) - why is this?
 5. I'm considering subclassing library project activities/services in
 my app project. Is there any reason not to do this?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] make your application multimedial

2010-05-22 Thread Simone
Hi, I need for my application to be recognized as multimedial.
In particular, I want that if the user sets the volume, it's the
volume of multimedia applications, and not the one of the ring.
Thanks
Simone

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


[android-developers] Persistent Android Activities

2010-05-22 Thread Android Development
What is the meaning of having a persistent activity ?

There is a permission that can be used in the manifest:
android.permission.PERSISTENT_ACTIVITY

Does anyone know of any practical use case of having this permission in the
application ? What can be done with it ?

Best Regards

Indodroid.

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

2010-05-22 Thread satish bhoyar
Hi Rogerio,

Thanks for the link.
Do you know any link on the tutorial to use this ndk , how to write any code
for the same.?

thanks,
satish

2010/5/18 Rogério de Souza Moraes rogerio.so...@gmail.com

 Hi Satish,

 here is the link were you can find it:

 http://developer.android.com/sdk/ndk/index.html

 Regards,

 Rogerio

 2010/5/18 satish bhoyar getsatonl...@gmail.com

 Hi all,

 How i can download android NDK?

 thanks
 satish

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Phone Unlocked Notification

2010-05-22 Thread Nik Bhattacharya
Is there any way to receive an event when the phone is unlocked?  I
know there is a way to query at a specific point in time for whether
the screen is locked or not via:

KeyguardManager k =
(KeyguardManager)this.context.getSystemService(“keyguard”);
if (k.inKeyguardRestrictedInputMode()) {
inLockScreen = true;
} else {
inLockScreen = false;
}

But really I don't want a polling mechanism.  I would like to know if
there is some sort of system broadcast just like the Boot Complete
broadcast.

Thanks!

Nik Bhattacharya

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


[android-developers] Any hope for call recording in 2.2?

2010-05-22 Thread Steve Hueners
Is the root cause of android phones' inability to record phone conversations
documented anywhere?

thx
--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] Back Button displays previous activity

2010-05-22 Thread mike
hi guys,

i have many activities in my application. since i had this issue
previously too, after going through few replies related to this issue
i used to start my activities like this

startActivityForResult(intent, 107);

so when i'm done with the started activity i'm calling finish() as
well as finishActivity(107)

now i have 1 activity which will display a List and another activity
to have a Blur background.

since underneath of the blur activity i have to display List activity
once i'm done with the list i'm not calling finish() or
finishActivity(107)

so once i pressed back button i'm calling finishActivity(107) but
still it displays the List activity.

may i know why is that and could you guys tell me how to achieve
this??


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


[android-developers] Re: Can't debug with my Nexus One

2010-05-22 Thread JP
Did you enable USB debugging on the device?

Settings - Applications - Development


On May 22, 3:36 am, Alistair. alistair.rutherf...@googlemail.com
wrote:
 I had to update my usb drivers.

 http://developer.android.com/sdk/win-usb.html

 Al.

 On May 22, 8:37 am, Dominik Erbsland derbsl...@gmail.com wrote:



  Hi all

  I have a HTC Hero and newly also a Nexus One. I used to debug with the
  HTC Hero which worked just fine. Now when I try to debug with my Nexus
  One I just can't make it work. I updated everything Android via
  Eclipse and have now the version which officially supports Nexus One
  as a debug device. Whenever I connect the Nexus One, turn on Debug
  Mode and want to run the application I don't see the device in the
  debug list.

  Anyone got any ideas what I might do wrong? As said above, with the
  HTC Hero it works just fine.

  Thanks for help.
  Dominik

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://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 
 athttp://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] Any hope for call recording in 2.2?

2010-05-22 Thread Mark Murphy
Steve Hueners wrote:
 Is the root cause of android phones' inability to record phone
 conversations documented anywhere?

At the 2009 Google I|O conference, the question came up in the
(unfortunately unrecorded) Fireside Chat. As I recall, as of that point
in time, in-call audio was not even being handed to the operating
system, though there was some disagreement as to whether that was an
architectural restriction or just something that hadn't been done yet. I
am not aware of any changes to that for Android 2.2 -- Dave Sparks
certainly did not mention it in his presentation on Android 2.2 audio
API changes.

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

Android Consulting: http://commonsware.com/consulting

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

2010-05-22 Thread Olivier Guilyardi
On 05/22/2010 03:28 PM, Steve Hueners wrote:
 Is the root cause of android phones' inability to record phone
 conversations documented anywhere?

I don't know about documentation, but there are discussions:
http://code.google.com/p/android/issues/detail?id=2117
http://code.google.com/p/android/issues/detail?id=8112

--
  Olivier

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

2010-05-22 Thread Moto
I'm currently running into an issue where if bad audio data is passed
to the MediaPlayer calling reset or release never returns and hangs my
thread...  Any way to forcefully kill this?

Thanks,
-Moto

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


[android-developers] My first app is on the market!

2010-05-22 Thread Federico Paolinelli
Just to share with you, who directly or indirectly (I read so much on
this group) have helped me to do this\
The app is geotagger, is free and fully open source.
You can check the sources at http://github.com/fedepaol/geotagger , I
hope this may help somebody. It uses gps, sqllite and xml.

The official site is http://sites.google.com/site/geotaggerandr/ and
you can get from there the desktop application needed to perform the
final geotag.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Team: Please give help on serious OnSensorChanged()-not-called-in-standby bug

2010-05-22 Thread Bruno Albuquerque
Yes, you do. Are you sure you do not need to do that for the GPS? If
this is true, it is probably because the location manager gets a CPU
lock by itself.

-Bruno

2010/5/22 mike enervat...@gmail.com:
 On 05/21/2010 06:14 AM, Bruno Albuquerque wrote:

 Resurrecting an old thread, with good news for a change. ;)

 Issue 3708 (http://code.google.com/p/android/issues/detail?id=3708)
 has been fixed and is included in Android 2.2.


 So I looked through the notes, and there wasn't much said.

 Does this mean that you have to hold a partial wake lock, or anything
 else? With GPS, you don't have to hold any locks.

 Mike

 -Bruno

 2010/1/26 Alexander Kosenkovalexan...@kosenkov.com:


 I've just updated Smart Alarm Clock (27k installs) with this
 workaround and it WORKS on Motorola  Samsung phones. Unfortunately,
 it does NOT help to Hero and Tatto phones.

 Haven't tried running w/o CPU lock because documenation says it
 wouldn't be possible... Maybe in the next release.

 BTW, please ask your users to put a star on the issue (something like

 http://intelligentalarmclock.blogspot.com/2009/12/smart-alarm-clock-needs-your-help-to.html).
 This will really help us.

 It's not a hardware bug. It's a software bug - it might be fixed on
 next firmware update.
 Let's star the issue. Let's write to HTC support!

 Yes, we can! =)

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

2010-05-22 Thread Maps.Huge.Info (Maps API Guru)
The experiment has generated over 125,000 impressions so far and
things look to be working pretty well.

I would like to open up this a bit. I'll accept up to 12 more apps
with at least a 4 star rating and up to 10,000 downloads as shown in
the market.

Please provide the following information in this order:

Your name or company name
e-mail address
Name of your app
Package name

Banner ad 320x50 pix as a png. Please see http://stats.radarnow.net/banners
for examples of the ones running now.

Please include app name, cost and your launcher icon on the left side
of the banner.

I will ask you to provide:

Daily download numbers
Track your popularity index for your category

Your app should:

Comply with the Android terms of service
Honor copyright rules
Be useful to the average device user
Not contain anything objectionable
Be compatible with the Droid device

Thanks in advance.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 configure the default bitmap color format of the whole system?

2010-05-22 Thread toe
I found in my system the bitmap color format is RGB565. That means,
everything rendered to the framebuffer is in RGB565.

So can I change this and configure it as ARGB?

I saw lots of code in the framework (framework/base/graphics/)
handling different formats, including RGB565, RGBA5551, ARGB, etc.
But I can't figure out where to configure the default color format.

Thank you all!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Best practices for creating multiple app versions from a single codebase?

2010-05-22 Thread Michael
Hi Bob,

I too would be very interested to hear how you have your build process
setup.

Ideally I would like to develop and debug with Eclipse, commit my code
and then like you say, checkout a pristine copy and do production
builds of paid and free versions with a script.

If you get time to write it up, I think a number of us would be
extremely greatfull.

Cheers,
Mike

On May 7, 4:25 pm, Bob Kerns r...@acm.org wrote:
 I don't recommend doing production builds directly in your Eclipse
 environment.

 Export a copy, and modify that. In fact, I strongly urge checking out
 a pristine copy from revision control for real production builds.

 I derive my build numbers from the Eclipse revision I'm building. I
 inject that into the AndroidManifest.xml via an XSLT ant task.

 I've been meaning to write up my build practices for a while; I keep
 holding off for certain refinements, but I really should get to it
 soon, since it's a recurring issue for people.

 On May 4, 4:42 pm, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:



  Since you talk about a generated ant file tt sounds like you're project
  was created using the android tool instead of Eclipse.  Is this
  correct?  I spent most of today trying to get a non-eclipse project
  going and had some success up until debugging.  I really wanted to use
  NetBeans but it looks like Eclipse is doing quite a bit under the hood
  for you when it comes to debugging.

  If you're using an Ant script for the main build, how are you using
  Eclipse with it?  I wrote something to inc the version number and
  Eclipse really doesn't like the AndroidManifest.xml  file touched.

  Leigh

  On 5/4/2010 4:36 PM, Alex (PS3 Friends) wrote:

   My solution was to create two different starter classes with different
   packages.  One for the paid version and the other for the free
   version.  Since the package name is used to identify the application
   in the market.  You can use this to customize the app, by setting
   properties in the different start classes.  I modified the generated
   Ant file to switch between the paid/free versions.  I created a task
   that uses regular expression replacements, identifying sections and
   replacing the starting class name depending on what I am deploying in
   the manifest.  You can even modify the XML layouts using this method.
   Essentially pre-processing prior to compilation.  The R class is the
   only issue, you need to make sure you include an * import for both
   packages otherwise it won't work, and you will have to modify code
   each time.  Also, Eclipse gets upset when you change things underneath
   it after compiling the R class, you need to delete the generated
   source directory.  This is the best solution I have come up with so
   far, it's not great but it works for me and it is scripted.

   Alex

   On May 4, 3:01 pm, Tomáš  Hubálektom.huba...@gmail.com  wrote:

   I'm thinking about the same thing.

   I believe thathttp://code.google.com/p/maven-android-plugin/couldbe
   a solution. Maven is very powerful tool for building (we are using it
   for JEE projects) so I'm sure that it will support also multiple APKs
   from one source code base.

   But I didn't looked into details yet.

   Tom

   On 4 kvě, 20:37, E.Peld...@gmail.com  wrote:

   Are there any viable approaches for creating multiple .APKs out of a
   single codebase?

   The apps may share the same code, but they could have different
   manifest files, different resources, or different external libraries
   (for example in an app with both free and paid versions, the free
   version could have a library for display ads).

   Ideally, this would be a single Eclipse project, with a way to specify
   which app to build/debug, and possibly a command line way to batch
   build everything.

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

  --
  Leigh McRaewww.lonedwarfgames.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 
  

[android-developers] Connection is broken error when try to connect to remote HSQLDB web database

2010-05-22 Thread Tim
I am trying to connect from an Android device to a remote HSQLDB web
database server using:

DriverManager.getConnection(jdbc:hsqldb:http://
remoteserveripaddress:port,user,pwd)

But in logcat I get errors:

Rejecting allocation of 1011373133-element array
java.sql.SQLException: Connection is broken: java.lang.InternalError:
array size too large

Before trying to connect I do a System.gc()
My FreeMemory is 1355832, MaxMemory is 16777216, TotalMemory is
5185504

Have I run out of memory?
How do I release more memory?

Any ideas greatly appreciated.

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


[android-developers] Re: What's the localization language code for Turkish?

2010-05-22 Thread Dominik Erbsland
JFYI I probably found it:
http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes


On May 22, 9:43 am, Dominik Erbsland derbsl...@gmail.com wrote:
 A friend of mine just translated my whole app to Turkish and I want to
 implement this translation now. I just can't find the 2-letter code
 for Turkish anywhere. What is it? 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] How to compile libfuse for android?

2010-05-22 Thread Ruini Xue
Hello,

   I want to use FUSE in android. It's easy to compile the kernel part by
enabling FUSE in .config, but how to compile libfuse.a/.so?
  I tried to put it in platform/external/ and create an Android.mk
according to fuse's Makefile.am. However, lots of header files are missed,
such as sys/statvfs.h.
  anyone has tried it?


Best

-- ruini

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Connection is broken error when try to connect to remote HSQLDB web database

2010-05-22 Thread Mark Murphy
Tim wrote:
 I am trying to connect from an Android device to a remote HSQLDB web
 database server using:
 
 DriverManager.getConnection(jdbc:hsqldb:http://
 remoteserveripaddress:port,user,pwd)
 
 But in logcat I get errors:
 
 Rejecting allocation of 1011373133-element array
 java.sql.SQLException: Connection is broken: java.lang.InternalError:
 array size too large
 
 Before trying to connect I do a System.gc()
 My FreeMemory is 1355832, MaxMemory is 16777216, TotalMemory is
 5185504
 
 Have I run out of memory?
 How do I release more memory?
 
 Any ideas greatly appreciated.

You are not going to be able to allocate a 1-billion-element array. To
put that in perspective, that's 4GB, if every element is only 4 bytes.

I suggest that you write a REST Web service and access your remote SQL
database using it. I do not recommend JDBC on mobile platforms for
access to remote databases.

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

Android App Developer Books: http://commonsware.com/books

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


Re: [android-developers] Filtering Android Sensors Noise

2010-05-22 Thread Frank Weiss
I've had success using a digital filter with the accelerometer sensor.
However, what do you you mean by averaging historical values. It seems to
me you need a low pass filter.

On Fri, May 21, 2010 at 10:30 AM, Alfonso alfonsocris...@gmail.com wrote:

 HI,

 I'm programming an Augmented Reality application. It's development
 it's in an advanced state but I can't place the icons on the screen so
 still as anothers programs does (Layar, in example). This is because
 of the continuous variations of the sensors. I've tried the three
 modes of the sensors (FAST, GAME, and NORMAL) but I only get them to
 move more or less fast. The shivering is the same at different speed.

 Finally I thougth I could reach my goal with a digital filter,
 averaging historical values. But again the icons continues moving,
 specially the most far placed ones (in the z axis). Please, could some
 one help me with some clue?

 Of course, any help will be appreciated.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Can't debug with my Nexus One

2010-05-22 Thread Dominik Erbsland
OK I insalled the driver as directed at:
http://developer.android.com/sdk/win-usb.html#XPFreshInstall
the installation went through successfully - but still the same. it
does not show up in the list of devices in eclipse.
any other ideas? thank you.

On May 22, 12:36 pm, Alistair. alistair.rutherf...@googlemail.com
wrote:
 I had to update my usb drivers.

 http://developer.android.com/sdk/win-usb.html

 Al.

 On May 22, 8:37 am, Dominik Erbsland derbsl...@gmail.com wrote:



  Hi all

  I have a HTC Hero and newly also a Nexus One. I used to debug with the
  HTC Hero which worked just fine. Now when I try to debug with my Nexus
  One I just can't make it work. I updated everything Android via
  Eclipse and have now the version which officially supports Nexus One
  as a debug device. Whenever I connect the Nexus One, turn on Debug
  Mode and want to run the application I don't see the device in the
  debug list.

  Anyone got any ideas what I might do wrong? As said above, with the
  HTC Hero it works just fine.

  Thanks for help.
  Dominik

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://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 
 athttp://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] Dictionary application.

2010-05-22 Thread angushir...@googlemail.com
I am currently developing a small dictionary application of 1000 -
2000 terms and their definitions. What would be the best way of
inserting this data in SQLite? In the code or read in from XML and
then inserted?

Angus

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


[android-developers] Error uploading .apk to device

2010-05-22 Thread Kostya Vasilyev

Hi,

I ran into a problem with my development work. When eclipse tries to 
upload my .apk to the phone, I get this in the console:


Uploading [...].apk onto device '[...]'
Failed to upload kmanWifiManager.apk on device '04038F030200D005'
java.io.IOException: Unable to upload file: timeout
Launch canceled!

I've already tried: rebooting the phone (adb reboot), rebooting the 
computer, restarting adb (kill-server and start-server).


The phone is visible in Windows Device Manager (under ADB Interface) and 
DBMS, and debugging is enabled in Android settings.


Apk size is ~190K.

This device worked just fine before.

Any suggestions on what to try to solve this problem?

--

Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Caller ID ON/OFF

2010-05-22 Thread mlock
Hello

I am quite new to program the android I have only followed some videos
from youtube ...

I would like to create a program where I can turn on caller ID an
and off something like the power buttons style you can get the android
2.0

not least, I seek help for the tool that is easiest to use and what
programming methode is best for my project

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

2010-05-22 Thread sachin ravi
use DroidDraw tool for making quick and better UI.

2010/5/18 Gabriel Simões gsim...@gmail.com

 Well, my tip is: understand how layouts work for the different display
 sizes/resolutions and then start thinking about using images to create
 your UIs.
 It´s a lot easier when you are developping for iphone/iPT since (until
 today) you have only one display size and one resolution config.

 For android you have to understand how each image will be positioned
 and displayed for each device. After you get it ... just find a
 designer and bring it on!

 On 18 maio, 11:46, Moto medicalsou...@gmail.com wrote:
  For actual graphics I recommend Adobe products, i.e. Photoshop...  and
  yeah for layout design use the Eclipse one...  I hope better tools do
  become available for layout design... :)
 
  On May 18, 10:10 am, Tomáš  Hubálek tom.huba...@gmail.com wrote:
 
 
 
 
 
   I'm using Eclipse with Android Plugin.
 
   Tom
 
   On 18 kvě, 08:25, warunsl waru...@gmail.com wrote:
 
Hello everyone,
.
I am new to Android programming and have tried writing a couple of
apps myself. One thing i noticed is that my application was very poor
wrt the UI and the design aspects. I want to know what
 tools/softwares
are used for developing the UI for Android apps.
.
Thanks in advance
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en- Ocultar texto das
 mensagens anteriores -
 
  - Mostrar texto das mensagens anteriores -

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


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

[android-developers] Android 2.0 -Map not showing up

2010-05-22 Thread Venkat
Hi All,

I need a help in displaying map in android.
I have pasted my manifst.xml and my java file.

please tell me where i am going wrong.


Manifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.src
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.HelloMapView
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
uses-library android:name=com.google.android.maps /
/application
uses-sdk android:minSdkVersion=5 /

uses-permission android:name=android.permission.INTERNET/uses-
permission
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_MOCK_LOCATION/uses-
permission
/manifest


HelloMapView.java
*
package com.src;

import android.os.Bundle;
import com.google.android.maps.MapActivity;

public class HelloMapView extends MapActivity {

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

}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}

I was trying to view map through my app for further development, but
the map is not showing...

Any help or guidance would be much appreciated.

Thanks  Regards,
Venkat

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


[android-developers] Bind service to multiple activities advice

2010-05-22 Thread redneon
I'm new to Android development and am working on a small test project.
I have a service, which communicates with an SQLite3 database, and two
activities. A main activity which fetches database information via the
service and displays it and a second activity which allows me to add
data to the database via the service.

Currently, I have a singleton class which implements the
ServiceConnection interface and I'm binding this to the service in the
the main activity using the bindService function. Because it's a
singleton, I can then use this service connection in both the main
activity and second activity to work with the database and it all
seems to work quite well.

However, I'm all the time aware that the service connection is bound
to the main activity and I'm wondering if this is the wrong/bad way to
do it? Would I be best off having two service connections, one in each
activity, and binding each to the service?

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


[android-developers] ServerSocket issues

2010-05-22 Thread Lee
Hello,

I am attempting to open a ServerSocket on my Android device to receive
network connections, but do not seem to recieve network traffic from
them.

Running netstat -an on the device shows it is listening on
0.0.0.0:1234, but my connections to telnet to public ip of Android
device:1234 do not appear (and do not receive a SYN,ACK in response).

How can I write an application which will open an accessible server
socket? Is this possible? I am thinking that either the ISP (mobile
carrier) may be blocking this incoming connection attempts or the
Android OS is blocking them (host firewall) ?

Thanks,
Lee

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

2010-05-22 Thread m2k
hey,

On 15 Mai, 19:27, Julian Bunn jjb...@gmail.com wrote:
 I create a set of RadioButtons in a RadioGroup on the fly (no XML),
 and would like to arrange them in either two columns or two rows -
 right now they are in a single column. I could of course create two
 sets of RadioButtons, and place each in a different RadioGroup view,
 but presumably then I would have to control the active state of each
 button by taking into account both views.

 Does anyone have an idea how to better do this?

 Thanks!

i faced the same problem :)

but there's an easy solution :) combine a radio group with a relative
layout and align the radio button within :))
just with leftOf , rightOf , below, above :)

works great :)

gl  have fun :)

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

2010-05-22 Thread sachin ravi
use thread.join() method.

On Tue, May 18, 2010 at 10:09 PM, TreKing treking...@gmail.com wrote:

 On Tue, May 18, 2010 at 10:38 AM, henrik henrik.aron...@gmail.com wrote:

 Because the startup is not dependent on the background check.


 I see. In that case, since you have multiple threads, you could have the
 integrity checker wait on the login thread to ensure that one completes
 first before showing the error message (if any).



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

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


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

[android-developers] How to alpha fade all Canvas drawing?

2010-05-22 Thread kitfox
I have a 2D scene graph which includes an opacity filter for graph
nodes.  As I walk the tree, I'd like to be able to set my opacity -
for example, if I set opacity to .8, then all vector and bitmap draws
after that will have their alpha multiplied by .8 (in addition to
whatever alpha they may already have).

I'm looking for something that would be similar to Swing's
AlphaComposite.  So far I've tried adding a LightingColorFilter and a
ColorMatrixColorFilter to my Paint, but neither seem to have any
affect (at least, the test oval that I'm drawing has its alpha
unaltered).

Is there a way to cause all rendering to fade?

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

2010-05-22 Thread sachin ravi
If you use Linear layout then it will automatically adjust.

If you use Absolute layout then you need to create a new xml layout under
res/layout-land with file name same as res/layout.


On Mon, May 17, 2010 at 2:19 PM, grace grace.a...@wipro.com wrote:

 because the width and height values differ int he landscape and
 potrait..
 the positioning of widgets on screen will differ..

 so if you are changing the orientation ,then you can have different
 layouts for each orientation and set the same for respective
 orientations.

 On May 15, 4:42 pm, Karteek N kartee...@gmail.com wrote:
  Hi,
  I have a an application which is having some UI items like Buttons Radio
  Buttons etc.
  I want to change through code from landscape to portrait mode.
  I did  by calling the method
  setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  But my UI items totally disturbed some of the i am unable to see.
  What care i need to take for this
  Any one can give me any documents or any help
 
  Thanks in advance
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@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] onActivityResult does not always get triggered when using IMAGE_CAPTURE with startActivityForResult

2010-05-22 Thread efe
Hi all,

I am trying to track down and see if anyone else has encountered
something similar to a behavior i am seeing regarding the
IMAGE_CAPTURE intent.

Using the emulator it is the case that every time I call
startActivityForResult() and choose OK after taking a picture, the
code that I declared in my onActivityResult() function successfully
gets executed. However when I switch to a real device, ( I tested this
on both a Motorola droid and HTC Eris) there are cases that clicking
the OK or Done button within the camera app just results in the camera
app (IMAGE_CAPTURE intent) to simply restart instead of executing the
code in onActivityResult(). I also noticed that if I put a break point
in my onActivityResult() function when debugging with a device than
the break point gets hit every time. Additionaly this behavior seems
to be occuring more frequently in debug code (without the break point
in onActivityResult) than in release code.

It just seems like I am hitting a bizarre timing issue. I am wondering
if anyone out there has observed similar behavior in the IMAGE_CAPTURE
intent. I don't have any special intent-filters declared in my
androidmanifest.xml file for the activity i am using i wasn't sure if
i needed to specify anything in there.

Below is the code I am using to startup the IMAGE_CAPTURE intent and
the onActivityResult() function declared within the same class.

Any suggestions will be greatly appreciated.

thanks

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.confirmandupload);
try {
Intent intent = new Intent(

android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageURI);
startActivityForResult(intent, main.TAKE_PICTURE);
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
Log.i(candup, got the activity result);
if (resultCode == Activity.RESULT_OK
 requestCode == main.TAKE_PICTURE) {
try {}
}

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


[android-developers] TCP/IP Communication between application running on development system with application running in Android emulator

2010-05-22 Thread imjustmattroper
Hello -

I would like to learn how to establish TCP/IP communication between an
application running on a development machine with an application
running inside the Android Emulator. When running the Android Emulator
I do not see an emulated network connection etc. I have read the
emulator documentation on the android developers page (http://
developer.android.com/guide/developing/tools/
emulator.html#emulatornetworking) but am still not sure how to achieve
this goal. Any help would be much appreciated.

Matthew Roper

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


[android-developers] interprocess communication

2010-05-22 Thread irbaboon
Hi,

I'm developing an application which consists of two different
activities which edit files. The two activities run in separate
processes. Multiple instances of both activities can be launched
concurrently in different tasks. Each activity instance is passed a
file path to work on in its intent. I'd like to make it so that a
given file cannot be edited in more than one activity instance at the
same time.

As far as my understanding goes, I have to use a Service. Each
activity instance must ask the service whether it is allowed to
acquire the editing rights for the file passed in its intent. The
service will keep a set of open files. Set entries will be removed
when activity instances are closed.

The problem is that the service process can be killed at almost any
time. There is not any method like Activity.saveInstanceState(...) in
Service. How is the set of open files supposed to persist an eventual
killing and later re-launching of the service process?

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


[android-developers] Need some help understanding RelativeLayout

2010-05-22 Thread mat
Hi,

I'm attempting to add four controls to a layout;

label
text seek radio

I want the seek widget to occupy all the available screen space
between the edittext control and the radio control.  However if I give
it the value

android:layout_width=wrap_content

only a small seek control is displayed.  and if I set the value to
fill_parent it overwrites the radio control.  I would have thought
there would be a mechanism to occupy the free space between the text
and radio controls dynamically.

The xml file I am using is below;



?xml version=1.0 encoding=utf-8?
RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:background=@drawable/blue
android:padding=10px 
TextView
android:id=@+id/lblvalue
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Enter Some Value /
EditText android:id=@+id/txtvalue
android:layout_width=wrap_content
android:layout_height=wrap_content
android:background=@android:drawable/
editbox_background
android:layout_below=@id/lblvalue /
RadioButton android:id=   @+id/usevalue
android:layout_height=wrap_content
android:background=@android:drawable/editbox_background
android:layout_below=@id/lblvalue
android:layout_toRightOf=@id/seekvalue
android:layout_width=wrap_content/
SeekBar android:id=   @+id/seekvalue
android:layout_height=wrap_content
android:layout_width=wrap_content
android:background=@android:drawable/editbox_background
android:layout_below=@id/lblvalue
android:layout_toRightOf=@id/txtvalue
android:layout_width=wrap_content/
/RelativeLayout

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


[android-developers] Re: Face book Data coming null

2010-05-22 Thread Bluebeard
Have you got the correct FB permissions set on the FB account you're
using? Some calls return an error if you don't have the permissions
and some just return empty data. In particular stream.get will return
a valid but empty response if you don't have the read_stream
permission.

On May 19, 6:59 pm, TreKing treking...@gmail.com wrote:
 On Sat, May 15, 2010 at 6:10 AM, Sohan badaya sohan.bad...@gmail.comwrote:

  In my application i want to show facebook friends name with online status.

 You'll probably have better luck posting your question on a forum dedicated
 specifically to the Facebook API.

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Make a phone call with special character *123*456789#

2010-05-22 Thread sachin ravi
You need to modify the dialer parser.

Add the check for Dialed string in below file.
\packages\apps\Contacts\src\com\android\contacts\SpecialCharSequenceMgr.java



On Tue, May 18, 2010 at 6:36 PM, Thang Q. Tran tranquocth...@gmail.comwrote:

 Dear all,

 I would like to make an Android application that user enter the number
 they would like to dial, and the app automatically format the number
 into *123*number# (that means the final number would contain 2 special
 character * and #.

 Could you please help me how to let Android understand these special
 character and make the phone call in the right direction! Thank you
 very much

 Best Regards,
 Thang

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] dynamic broadcast receiver for connectivity changes

2010-05-22 Thread ar
I'm trying to register a dynamic broadcast receiver using the
following:

BroadcastReceiver connectivityReceiver = new
ConnectivityChangeIntentReceiver(); IntentFilter connectivityFilter =
new IntentFilter();
filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
filter.addAction(android.net.ConnectivityManager.CONNECTIVITY_ACTION);
myApplicationContext.registerReceiver(connectivityReceiver,
connectivityFilter);

but I see my ConnectivityChangeIntentReceiver.onReceive method is not
called when I turn off Wifi through settings or change to airplane
mode.

Has anyone faced a similar problem?

I do not want to statically register the receiver in the Manifest
file, as I don't want my app to be started by connectivity changes.

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


[android-developers] XML verification failed error

2010-05-22 Thread curleesace
I have received the following error when trying to install packages
through the SDK and AVD manager tool:

XML verification failed for 
http://dl-ssl.google.com/android/repository/repository.xml.
Error: The markup declarations contained or pointed to by the document
type declaration must be well-formed.

I have downloaded the latest versions of the Android SDK and AVD
manager (revision 5), Eclipse IDE for Java EE developers (version
1.2.2), and the ADT (0.9.6).  I have checked the Force https box in
the settings tab, I also have both an http and https version of the
same url.  I re-downloaded all components multiple times.

I am using Windows XP service pack 3.

Anything anyone could suggest would be extremely helpful.

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

2010-05-22 Thread Surendra
You need a map key in your layout to use.

Follow the instructions at the site and obtain the map api key.

http://code.google.com/android/add-ons/google-apis/mapkey.html

And in in your layout xml file in the place you have these lines add
the map api key in the android:apikey place.

com.google.android.maps.mapview
android:id=@+id/mapview
android:visibility=visible
android:clickable=true
android:apiKey=Add your map api key here
android:layout_width=fill_parent
android:layout_height=fill_parent /

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


Re: [android-developers] ServerSocket issues

2010-05-22 Thread Kostya Vasilyev
Works for me over Wifi...

So the problem is likely your cell operator - either blocking incoming
connections, or else your phone could be behind a NAT.

You also could verify your code by trying it over Wifi.

22.05.2010 23:32 пользователь Lee dr...@lc-cs.com написал:

Hello,

I am attempting to open a ServerSocket on my Android device to receive
network connections, but do not seem to recieve network traffic from
them.

Running netstat -an on the device shows it is listening on
0.0.0.0:1234, but my connections to telnet to public ip of Android
device:1234 do not appear (and do not receive a SYN,ACK in response).

How can I write an application which will open an accessible server
socket? Is this possible? I am thinking that either the ISP (mobile
carrier) may be blocking this incoming connection attempts or the
Android OS is blocking them (host firewall) ?

Thanks,
Lee

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Can't debug with my Nexus One

2010-05-22 Thread Dominik Erbsland
JFYI - it works now! A reboot was neccessary, after that it worked
after updating the USB driver!

On May 22, 8:48 pm, Dominik Erbsland derbsl...@gmail.com wrote:
 OK I insalled the driver as directed 
 at:http://developer.android.com/sdk/win-usb.html#XPFreshInstall
 the installation went through successfully - but still the same. it
 does not show up in the list of devices in eclipse.
 any other ideas? thank you.

 On May 22, 12:36 pm, Alistair. alistair.rutherf...@googlemail.com
 wrote:



  I had to update my usb drivers.

 http://developer.android.com/sdk/win-usb.html

  Al.

  On May 22, 8:37 am, Dominik Erbsland derbsl...@gmail.com wrote:

   Hi all

   I have a HTC Hero and newly also a Nexus One. I used to debug with the
   HTC Hero which worked just fine. Now when I try to debug with my Nexus
   One I just can't make it work. I updated everything Android via
   Eclipse and have now the version which officially supports Nexus One
   as a debug device. Whenever I connect the Nexus One, turn on Debug
   Mode and want to run the application I don't see the device in the
   debug list.

   Anyone got any ideas what I might do wrong? As said above, with the
   HTC Hero it works just fine.

   Thanks for help.
   Dominik

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

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


Re: [android-developers] Android Library Project

2010-05-22 Thread Xavier Ducrohet
On Sat, May 22, 2010 at 2:49 AM, Mark Carter m...@carter.name wrote:
 Great to see the new Android Library Project feature in ADT 0.9.7.

 http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject

 However, some things aren't clear to me yet:

 1. In the library project, what does versionCode, versionName,
 packageName now mean? I assume nothing???

Yes, nothing.

The manifest for the library is not used besides looking at the
package name for the library.

 2. The docs state that activities, services etc need to be declared in
 the library project and also the app project. So doesn't this just
 result in a load of duplication? What if the activity is declared
 slightly differently in one to the other?

They actually don't need to be declared in the library (yet).
We only recommend you put them in the library manifest as a reference
so that you can easily copy-paste them into the app projects that
reference them.
(In the future we will automatically merge the library manifests into
the app manifests).

 3. It would have been incredibly useful to allow library projects to
 reference each other. I'm curious as to why this is not possible...

It was mainly that we didn't have time.
We need to figure out the order of the resources (as you may already
have read, the priority order is important as resources could override
each other).
The question is what happens when a project depends on libraries A  B
which both depend on library C. What's the library priority order? A,
B, C or A, C, B?

 4. If an app references both resources and code in a library project,
 then that library project needs to be added as both a library and a
 project in the app's build path (in eclipse at least) - why is this?

hmm no you should not have too.
Adding the library as a project dependence (in project properties
under Android) should bring the source code of the library into the
main project.

 5. I'm considering subclassing library project activities/services in
 my app project. Is there any reason not to do this?

Since the library project is compiled inside the app project, there's
no reason this won't work.

Xav

-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Android Library Project

2010-05-22 Thread Xavier Ducrohet
There is something very strange here.

What is MyLibrary.apk?

I think you may be a bit confused with what libraries are.

Library projects are handled at compilation time. They are *NOT* meant
to be export as APK (I don't even know how you managed to create
MyLibrary.apk because the tools don't let you do it).

When you compile an application project that depends on a library, the
code and resources of the library are included in the app project's
apk when you compile it.

Xav

On Sat, May 22, 2010 at 4:21 AM, Mark Carter mjc1...@googlemail.com wrote:
 When trying to launch an activity, the console gives:

 Uploading MyApp.apk onto device 'emulator-5554'
 Installing MyApp.apk...
 Success!
 Could not find MyLibrary.apk!
 Starting activity com.mycompany.MyActivity on device
 ActivityManager: Starting: Intent { act=android.intent.action.MAIN
 cat=[android.intent.category.LAUNCHER] cmp=com.mycompany/
 com.mycompany.MyActivity }
 Attempting to connect debugger to 'com.mycompany' on port 8612

 And then the activity fails to start (ClassNotFoundException).

 This seems to be because of the line:

 Could not find MyLibrary.apk!

 Any ideas?

 On May 22, 11:49 am, Mark Carter m...@carter.name wrote:
 Great to see the new Android Library Project feature in ADT 0.9.7.

 http://developer.android.com/guide/developing/eclipse-adt.html#librar...

 However, some things aren't clear to me yet:

 1. In the library project, what does versionCode, versionName,
 packageName now mean? I assume nothing???
 2. The docs state that activities, services etc need to be declared in
 the library project and also the app project. So doesn't this just
 result in a load of duplication? What if the activity is declared
 slightly differently in one to the other?
 3. It would have been incredibly useful to allow library projects to
 reference each other. I'm curious as to why this is not possible...
 4. If an app references both resources and code in a library project,
 then that library project needs to be added as both a library and a
 project in the app's build path (in eclipse at least) - why is this?
 5. I'm considering subclassing library project activities/services in
 my app project. Is there any reason not to do this?

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Reboot Loop System Crash

2010-05-22 Thread kec6227
Here is the stack trace from a reboot crash loop:

05-22 16:04:04.720: ERROR/AndroidRuntime(1284): Uncaught handler:
thread AsyncPlayer-NotificationService exiting due to uncaught
exception
05-22 16:04:04.720: ERROR/AndroidRuntime(1284): *** EXCEPTION IN
SYSTEM PROCESS.  System will crash.
05-22 16:04:04.806: ERROR/AndroidRuntime(1284):
android.content.res.Resources$NotFoundException: File res/raw/
fallbackring.ogg from drawable resource ID #0x10c
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.content.res.Resources.openRawResourceFd(Resources.java:859)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
com.android.providers.settings.SettingsProvider.openAssetFile(SettingsProvider.java:
475)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.content.ContentProvider
$Transport.openAssetFile(ContentProvider.java:194)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:
510)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.media.MediaPlayer.setDataSource(MediaPlayer.java:678)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.media.AsyncPlayer.startSound(AsyncPlayer.java:62)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.media.AsyncPlayer.access$200(AsyncPlayer.java:33)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.media.AsyncPlayer$Thread.run(AsyncPlayer.java:99)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): Caused by:
java.io.FileNotFoundException: This file can not be opened as a file
descriptor; it is probably compressed
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.content.res.AssetManager.openNonAssetFdNative(Native Method)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.content.res.AssetManager.openNonAssetFd(AssetManager.java:410)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): at
android.content.res.Resources.openRawResourceFd(Resources.java:856)
05-22 16:04:04.806: ERROR/AndroidRuntime(1284): ... 7 more


Is this avoidable, or is it a completely random bug. I am not entirely
sure what it means. Could my app be causing this? It looks like it
would just be coincidence, but it seems to happen more after
installing my app. I am trying to figure out how to avoid this crash,
does anyone have any experience with this? My app does change the
notification tone.

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

2010-05-22 Thread Xavier Ducrohet
You should download rev 6 of the tools and ADT 0.9.7 (we just updated
them on the 20th).

What version of Java are you running?

xav

On Wed, May 19, 2010 at 8:09 PM, curleesace curlees...@gmail.com wrote:
 I have received the following error when trying to install packages
 through the SDK and AVD manager tool:

 XML verification failed for 
 http://dl-ssl.google.com/android/repository/repository.xml.
 Error: The markup declarations contained or pointed to by the document
 type declaration must be well-formed.

 I have downloaded the latest versions of the Android SDK and AVD
 manager (revision 5), Eclipse IDE for Java EE developers (version
 1.2.2), and the ADT (0.9.6).  I have checked the Force https box in
 the settings tab, I also have both an http and https version of the
 same url.  I re-downloaded all components multiple times.

 I am using Windows XP service pack 3.

 Anything anyone could suggest would be extremely helpful.

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] accessing phone images through content provider

2010-05-22 Thread Tabman


Hi,

I need a sample code or tutorial for accessing phone images/media
through content provider ?

I know the following, what next ?

ContentResolver cr = mContext.getContentResolver(); Cursor cursor =
cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null,
null, null);

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


[android-developers] リソースファイルが破 損?

2010-05-22 Thread Sasaki
初めて投稿します、佐々木ともうします。

最近開発を始めたのですが、エミュレータ上で表示される ToggleButton の外見と、
実機上で表示される ToggleButton との外見がかなり異なっています。
また、DateWidgets の表示も横線が入り、少々おかしいようです。

http://www.downspade.com/images/device.png
http://www.downspade.com/images/device2.png

画像は ApiDemos の Views の Buttons ものと Views の DateWidgets のものです。

Android2.1 端末ではこのように表示されるのが正しいのでしょうか?
機種は HTC Desire (X06HT) です。
また、試しに ToggleButton を使用したほかのアプリケーションを
マーケットからダウンロードしてみたのですが、やはり同じように表示されるみたいです。

そこで、最初から用意されているリソースを直接抜き出すプログラムを使い、
ToggleButton のインジケータの部分の画像をチェックしたのですが、
そちらの png ファイルはエミュレータと同じように表示され破損してはいませんでした。

ToggleButton のレイアウトを定義する xml ファイルがもし内部的に存在するのであれば、
そのリソースが破損したか、もしくはおかしなファイルを参照しているのではないかと
想像しているのですが、なにかアドバイスを頂けると幸いです。
よろしくお願いいたします。

※他のグループにも投稿しましたが、レスが付きませんでしたので、
こちらにも投稿させていただきました。なにとぞご容赦ください。

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


[android-developers] Re: リソースファイルが 破損?

2010-05-22 Thread Sasaki
I'm very sorry for japanese language post.
This is a wrong post. It is mistake.

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

2010-05-22 Thread Mark Carter
On May 22, 10:12 pm, Xavier Ducrohet x...@android.com wrote:
 The manifest for the library is not used besides looking at the
 package name for the library.

So, for now, the packageName is the only important thing in the
library manifest?

 The question is what happens when a project depends on libraries A  B
 which both depend on library C. What's the library priority order? A,
 B, C or A, C, B?

Why didn't you just use fully qualified resources when referring to
library resources?

So, in XML that would be @mylibrary:string/mystring and in Java
com.mycompany.mylibrary.R.String.mystring etc

  4. If an app references both resources and code in a library project,
  then that library project needs to be added as both a library and a
  project in the app's build path (in eclipse at least) - why is this?

 hmm no you should not have too.
 Adding the library as a project dependence (in project properties
 under Android) should bring the source code of the library into the
 main project.

It seems that when I was adding the library before, it wasn't being
added properly. I set it as described in the docs but for some reason
it wasn't showing up as a library under the project.

Now, I've recreated all the projects and this time the library shows
up as a child node of the MyApp project. So it all seems to work. I
didn't do anything different from before, but maybe starting from a
clean slate made a difference...

I think the bug mentioned in my second post was due to (additionally)
specifying the library as a project in the build path of MyApp.
Something was expecting MyLibrary.apk to exist because of that (and
because MyLibrary is an Android project). Just a guess.

Now that I don't need to specify the library in the build path, this
problem is gone.

If this is right, maybe it would be good to stop the same project from
being added in both places?

  5. I'm considering subclassing library project activities/services in
  my app project. Is there any reason not to do this?

 Since the library project is compiled inside the app project, there's
 no reason this won't work.

Consider this pro  lite projects scenario:

Pro-specific activities go in the pro project.
Common activities go in the library.

But what about common activities that are slightly different in pro
versus lite?  Could be tricky to inject pro-specific behaviour into
those common activities (because of the way activities are
instantiated).

It seems it might be simpler to just subclass such activities...

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


[android-developers] Widget does not respond when phone orientation changes

2010-05-22 Thread dstefanox
I am working on home screen widget, and I am facing problems when
changing orientation of the phone - widget stops responding to clicks.
I tried to search through groups to find solution, and closest topic
was one here:
http://groups.google.com/group/android-developers/browse_thread/thread/9c39f2279f8cdac3/
However, I was unable to find solution of my problem there. So, here
are details of my problem:

AppWidget has two ImageViews, used to navigate through
messages(forward and back). Messages are shown in TextView within a
widget. When I add widget to the home screen, it works perfectly -
both buttons, left and right, work ok, messages are changed when I
click on buttons.

Once I switch orientation of the phone, buttons are not responding
anymore! So I tried to eliminate piece by piece of code, and came to
strange situation:when one button is used to change message,
everything works fine. But, if other button is also used to change
message, application stops working after orientation change.

Simply - in code provided below, when I comment out part of the code
which handles ACTION_RIGTH in function onReceive, application is
working properly when orientation is changed. If I uncommend it,
application stops working on orientation change. Can anyone tell me
what I am doing wrong here? Content of all project files is given
bellow. Thanks!


File - AndroidManifest:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.code_rs.android
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
!-- Broadcast Receiver that will process AppWidget 
updates --
receiver android:name=.NavigationWidget 
android:label=@string/
app_name
intent-filter
action 
android:name=android.appwidget.action.APPWIDGET_UPDATE /

action
android:name=com.code_rs.android.NavigationWidget.ACTION_LEFT/
action
android:name=com.code_rs.android.NavigationWidget.ACTION_RIGTH/
/intent-filter
meta-data 
android:name=android.appwidget.provider
android:resource=@xml/widget_ots /
/receiver
/application
uses-sdk android:minSdkVersion=4 /

/manifest

File - main.xml:

?xml version=1.0 encoding=utf-8?
RelativeLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:id=@+id/rel_lay
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:background=@drawable/widget_frame_portrait2x2
  ImageView
android:id=@+id/btn_prev
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_marginRight=6dip
android:layout_alignParentTop=false
android:layout_alignParentBottom=true
android:src=@drawable/back android:layout_marginLeft=16dip
android:layout_marginBottom=12dip/
  ImageView
android:id=@+id/btn_next
android:layout_height=wrap_content
android:layout_alignParentTop=false
android:layout_alignParentBottom=true
android:layout_alignParentLeft=false
android:layout_alignParentRight=true
android:layout_width=wrap_content
android:src=@drawable/next
android:layout_marginBottom=12dip android:layout_marginRight=16dip/

TextView
android:id=@+id/sms_text
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_above=@+id/btn_prev
android:text=Message text goes here
android:layout_marginLeft=16dip android:layout_marginRight=16dip
android:paddingTop=10dip android:textColor=#00
android:textSize=12dip android:layout_marginTop=30dip/
/RelativeLayout

File - widget_ots.xml:

?xml version=1.0 encoding=utf-8?
appwidget-provider xmlns:android=http://schemas.android.com/apk/res/
android
android:minWidth=146dip
android:minHeight=146dip
android:updatePeriodMillis=2160
android:initialLayout=@layout/main /

File - NavigationWidget.java:

package com.code_rs.android;

import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import 

Re: [android-developers] Re: Android Library Project

2010-05-22 Thread Xavier Ducrohet
On Sat, May 22, 2010 at 2:48 PM, Mark Carter mjc1...@googlemail.com wrote:
 On May 22, 10:12 pm, Xavier Ducrohet x...@android.com wrote:
 The manifest for the library is not used besides looking at the
 package name for the library.

 So, for now, the packageName is the only important thing in the
 library manifest?

 The question is what happens when a project depends on libraries A  B
 which both depend on library C. What's the library priority order? A,
 B, C or A, C, B?

 Why didn't you just use fully qualified resources when referring to
 library resources?

 So, in XML that would be @mylibrary:string/mystring and in Java
 com.mycompany.mylibrary.R.String.mystring etc

This would require platform changes, which means it would only have
worked on 2.2.

We wanted to make this a build change only in order to support 1.5+
(the 1.5/1.6/2.1 SDK components were updated only to update the build system)

  4. If an app references both resources and code in a library project,
  then that library project needs to be added as both a library and a
  project in the app's build path (in eclipse at least) - why is this?

 hmm no you should not have too.
 Adding the library as a project dependence (in project properties
 under Android) should bring the source code of the library into the
 main project.

 It seems that when I was adding the library before, it wasn't being
 added properly. I set it as described in the docs but for some reason
 it wasn't showing up as a library under the project.

 Now, I've recreated all the projects and this time the library shows
 up as a child node of the MyApp project. So it all seems to work. I
 didn't do anything different from before, but maybe starting from a
 clean slate made a difference...

 I think the bug mentioned in my second post was due to (additionally)
 specifying the library as a project in the build path of MyApp.
 Something was expecting MyLibrary.apk to exist because of that (and
 because MyLibrary is an Android project). Just a guess.

 Now that I don't need to specify the library in the build path, this
 problem is gone.

 If this is right, maybe it would be good to stop the same project from
 being added in both places?

yeah we should add a test there.

  5. I'm considering subclassing library project activities/services in
  my app project. Is there any reason not to do this?

 Since the library project is compiled inside the app project, there's
 no reason this won't work.

 Consider this pro  lite projects scenario:

 Pro-specific activities go in the pro project.
 Common activities go in the library.

 But what about common activities that are slightly different in pro
 versus lite?  Could be tricky to inject pro-specific behaviour into
 those common activities (because of the way activities are
 instantiated).

 It seems it might be simpler to just subclass such activities...

Yes, which is why I said it should work :)

xav
-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Re: make your application multimedial

2010-05-22 Thread Lance Nanek
http://developer.android.com/reference/android/app/Activity.html#setVolumeControlStream%28int%29

On May 22, 4:23 am, Simone simone.russ...@gmail.com wrote:
 Hi, I need for my application to be recognized as multimedial.
 In particular, I want that if the user sets the volume, it's the
 volume of multimedia applications, and not the one of the ring.
 Thanks
 Simone

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: Flash on Froyo Emulator

2010-05-22 Thread brindy

So the implication is that the answer to Mr Pants' secondary question
in his original post is: yes - it is being delivered as a separate
app which you have to install from the market.   Can someone
explicitly state if this is correct?

Whatever the answer there are a couple of implications.

If the answer is no - i.e. that Flash is coming as part of the Froyo
release - does this mean Flash Player is going to be open sourced?
And if the answer to that question is no does this now mean that
Android is could start shipping with other closed extensions in the
future?  All this seems contrary to the whole open source movement but
I am presuming the answer is going to be yes anyway...

And if the answer *is* yes then does this mean that the Android
browser now support plugins / extensions a la Chrome/other desktop
browsers?  If so - I presume this is in the SDK docs now? (I haven't
chance to look as I am still in San Francisco on vacation post-
Googleio).

Finally - have Android engineers at Google actually had their hands on
the Flash Player code?  i.e. for review or to help the integration
process.  I realise there are probably NDAs in place, but it would be
reassuring to know that Adobe have received some direct guidance and
feedback from the people closest to Android's guts, though I presume
this is what is meant by working /with/ Adobe.

Cheers,
Chris



On May 21, 12:32 pm, Mr Pants pantssoftw...@googlemail.com wrote:
 Thanks David.

 On May 21, 8:17 pm, David Turner di...@android.com wrote:





  TheFlashplugin will not run on the emulator for multiple technical
  reasons: no ARMv7 emulation, and no hardware OpenGL ES 2.0 emulation yet.

  On Fri, May 21, 2010 at 11:26 AM, Mr Pants 
  pantssoftw...@googlemail.comwrote:

   HI

   I might have missed something, but how do we getflashworking on the
   new 2.2 emulator?

   The sites I've tried don't work (eg BBC), and when trying to go to
  flashinstall site, i get rerouted to a market url for
   com.adobe.flashplayer (which obviously won't work on an emulator).

   So isflashbeing delivered as a market app? And if so how do we get
   it on an emulator

   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.comandroid-developers%2Bunsubs
cr...@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 
  athttp://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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Flash on Froyo Emulator

2010-05-22 Thread Mark Murphy
brindy wrote:
 So the implication is that the answer to Mr Pants' secondary question
 in his original post is: yes - it is being delivered as a separate
 app which you have to install from the market.   Can someone
 explicitly state if this is correct?

Yes, this is correct.

http://labs.adobe.com/wiki/index.php/Flash_Player_10.1_for_Android

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

Android Consulting: http://commonsware.com/consulting

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

2010-05-22 Thread TreKing
On Wed, May 19, 2010 at 5:06 PM, mat matthew-andr...@ntlworld.com wrote:

 I would have thought there would be a mechanism to occupy the free space
 between the text and radio controls dynamically.


There is, it's called weight or layout_weight. Try setting it to 1 for
the seek and to 0 for all others.

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

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

[android-developers] i dont understand this error

2010-05-22 Thread emada.adame
i have a app that searches a site then displays the results in a
listview. then you can click on one of the items in the list and it
should pop up a dialog displaying info about the item selected but i
get IllegalStateException: ScrollView can host only one direct child
i have made a few other apps with the same type functions and never
run across this, any ideas?

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

2010-05-22 Thread brindy
Thanks Mark.

That appears to be a yes to plugins as well, though I notice they've
been in the SDK for a while (API Level 5):
http://developer.android.com/reference/android/webkit/package-summary.html

Cheers,
Chris


On May 22, 5:58 pm, Mark Murphy mmur...@commonsware.com wrote:
 brindy wrote:
  So the implication is that the answer to Mr Pants' secondary question
  in his original post is: yes - it is being delivered as a separate
  app which you have to install from the market.   Can someone
  explicitly state if this is correct?

 Yes, this is correct.

 http://labs.adobe.com/wiki/index.php/Flash_Player_10.1_for_Android

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

 Android Consulting:http://commonsware.com/consulting

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Launching another activity from my app.

2010-05-22 Thread Yesmic
Hello !

I am trying to launch another application from my Activity.
Something weird happens when I am running this code :

Intent myIntent = new Intent( Intent.ACTION_MAIN, null );
myIntent.addCategory( Intent.CATEGORY_LAUNCHER );
myIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED );
ComponentName compName=new ComponentName(myArray[i][0], myArray[i]
[1] ); // String[][] myArray
myIntent.setComponent( compName );
startActivity( myIntent );

I Have this error :

android.content.ActivityNotFoundException: Unable to find explicit
activity class { com.android.settings/com.android.settings.Settings};
have you declared this activity in your AndroidManifest.xml?

But when I replace this line
// myArray[i][0] = com.android.settings
// myArray[i][1] = com.android.settings.Settings
ComponentName compName=new ComponentName(myArray[i][0], myArray[i]
[1] );
with
ComponentName compName=new
ComponentName(com.android.settings,com.android.settings.Settings);
and without any modification in my manifest, it works !


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


Re: [android-developers] Launching another activity from my app.

2010-05-22 Thread Mark Murphy
Yesmic wrote:
 Hello !
 
 I am trying to launch another application from my Activity.
 Something weird happens when I am running this code :
 
 Intent myIntent = new Intent( Intent.ACTION_MAIN, null );
 myIntent.addCategory( Intent.CATEGORY_LAUNCHER );
 myIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK |
 Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED );
 ComponentName compName=new ComponentName(myArray[i][0], myArray[i]
 [1] ); // String[][] myArray
 myIntent.setComponent( compName );
 startActivity( myIntent );
 
 I Have this error :
 
 android.content.ActivityNotFoundException: Unable to find explicit
 activity class { com.android.settings/com.android.settings.Settings};
 have you declared this activity in your AndroidManifest.xml?
 
 But when I replace this line
 // myArray[i][0] = com.android.settings
 // myArray[i][1] = com.android.settings.Settings
 ComponentName compName=new ComponentName(myArray[i][0], myArray[i]
 [1] );
 with
 ComponentName compName=new
 ComponentName(com.android.settings,com.android.settings.Settings);
 and without any modification in my manifest, it works !
 
 
 Can someone help ?

Sure. Don't use ComponentName for Intents for applications that are not
yours.

In this case, use:

startActivity(new Intent(android.provider.Settings.ACTION_SETTINGS));

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

Android Consulting: http://commonsware.com/consulting

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

2010-05-22 Thread Mark Murphy
emada.adame wrote:
 i have a app that searches a site then displays the results in a
 listview. then you can click on one of the items in the list and it
 should pop up a dialog displaying info about the item selected but i
 get IllegalStateException: ScrollView can host only one direct child
 i have made a few other apps with the same type functions and never
 run across this, any ideas?

You are adding a second child to a ScrollView. Don't do that.

If the ScrollView in question is in your activity, you should not need
it -- ListView already knows how to scroll.

Otherwise, look for calls to addView() in your code.

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

Android Consulting: http://commonsware.com/consulting

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


[android-developers] New media framework Stagefright sucks... :P

2010-05-22 Thread Moto
I'm very sad that the new Stagefright broke my application ability to
streams AAC+ content :(
Any pointers on this library? does it still support AAC?  Where can I
find Android StageFright source code?

Anyone having issues with the new media library?

Thank!
--Moto

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

2010-05-22 Thread Moto
Here is a little more details about the issue:

Starts preparing and after few seconds I get the following error
followed by a MediaPLayer error event.

05-23 03:56:05.397: ERROR/SampleIterator(34): getSampleSizeDirect
return error
05-23 03:56:05.447: INFO/AwesomePlayer(34): prefetcher is done
preparing
05-23 03:56:10.057: DEBUG/AudioSink(34): bufferCount (4) is too small
and increased to 12
05-23 03:56:10.087: DEBUG/MediaService(2179): STATUS: 16
05-23 03:56:10.166: ERROR/MediaPlayer(2179): error (1, -1008)
05-23 03:56:10.166: ERROR/MediaPlayer(2179): Error (1,-1008)

-Moto

On May 22, 11:42 pm, Moto medicalsou...@gmail.com wrote:
 I'm very sad that the new Stagefright broke my application ability to
 streams AAC+ content :(
 Any pointers on this library? does it still support AAC?  Where can I
 find Android StageFright source code?

 Anyone having issues with the new media library?

 Thank!
 --Moto

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Application with no title

2010-05-22 Thread John Gaby
When my application starts, I call:

this.requestWindowFeature(Window.FEATURE_NO_TITLE);

to get rid of the title bar.  I then create a custom ViewGroup and
when set that view to be the content view via a call to
'setContentView', the 'onLayout' method of my ViewGroup is called.
However, the top position is set to 25, even though I have turned off
the title.  How can I set my ViewGroup to take up all of the space,
including the space formally occupied by the title bar?

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] Application with no title

2010-05-22 Thread pawan nimje
activity android:name=.MyMainClass
android:label=@string/app_name
android:theme=@android:style/Theme.NoTitleBar


hope this is what you meant.

On Sun, May 23, 2010 at 9:33 AM, John Gaby jg...@gabysoft.com wrote:

 When my application starts, I call:

 this.requestWindowFeature(Window.FEATURE_NO_TITLE);

 to get rid of the title bar.  I then create a custom ViewGroup and
 when set that view to be the content view via a call to
 'setContentView', the 'onLayout' method of my ViewGroup is called.
 However, the top position is set to 25, even though I have turned off
 the title.  How can I set my ViewGroup to take up all of the space,
 including the space formally occupied by the title bar?

 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.comandroid-developers%2bunsubscr...@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] HTC EVO/Incredible multitouch only reporting max of 2 points?

2010-05-22 Thread Robert Green
Has anyone checked to see if 3 or more points will show up on an
Incredible?  I'm trying to see if there's hardware/driver/android
support for more touch points.  Why more touch points?  I dunno.  It
could be cool for something :)

I read that the physical screen supports 10 but my first tests
printing MotionEvent.getPointerCount() only give me 2. :(

Anyone seeing anything the same or different?

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

2010-05-22 Thread dan raaka
There are already several including few from 3rd parties, carriers and OEMs

SlideME
Shopapps from Motorola
Vodaphone to launch its own app store (
http://www.intomobile.com/2010/04/13/vodafone-to-launch-its-own-android-app-store.html
)
AndAppStore (http://andappstore.com)
Playnow by Sony Ericsson

Most of the carriers/OEM either have their own apps supporting other
platforms (read as non-android). so, they will be extending them even with
all the hue/cry around.

-Dan


2010/5/21 Tomáš Hubálek tom.huba...@gmail.com



 On 21 kvě, 16:50, Gabriel Simões gsim...@gmail.com wrote:
  Well, my opinion:
 
  - paid apps (for users)
 
  - The problems google have to be able to sell to any country, any
  store will have: laws! Apple took a lot of time to open an app store
  here in Brazil and still most of the apps aren´t available because the
  governament has a diferent age definition per category here, so most
  games aren´t publihed.

 There is 27 countries in European Union that have compatible law.
 Developers from only 6 of them can sell and users from about 7 can
 buy. This is strange, isn't? Why Google does not state clearly that
 this is law compatibility issue?

  - paid apps (for developers)
 
  - This sucks, and sucks hard! It´s something google needs to fix as
  soon as possible. Most users are on USA and Europe but developers are
  around the whole world and using ads to support our development is
  taking things to the limit already.

 Agree.

  - no trash apps (some form of quality standards)
 
  - Freedom vs. Closed systems. This is the discussion between app
  store and android market. I prefer open systems where anyone can
  publish anything. This way the comunity will show what is best and
  what is worst. Also, the ability to ask for a refund forces developers
  to make great apps in order to receive anything for them. If there´s
  someone to say if your app is good enough we will see the same old
  story again: rejected apps for no reason, long delays between
  releases 
  In this case I do agree that android market should use a system to
  give emphasis to the best apps and start putting the crap ones on the
  lower parts of the search lists...

 Agree. Sometimes I'm curious why some app will less downloads and
 lower rating is at higher position. Not sure what is the algorithm for
 this and whether it is optimal.

 Tom

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


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

Re: [android-developers] Re: Is Google working on the Bluetooth bug? Any estimated date of completion?

2010-05-22 Thread dan raaka
This issue is fixed in newer binaries/builds for this device.

-Dan


On Sun, May 16, 2010 at 10:01 AM, frankentux cfarrell1...@googlemail.comwrote:

 Dan,

 what is the build id that you mean? Can you elaborate on what the fix
 is?

 Ciaran

 On 14 Mai, 01:12, danraaka danra...@gmail.com wrote:
  Newer build sud fix this.
 
  -Dan
 
  On Mon, May 10, 2010 at 7:29 AM, frankentux cfarrell1...@googlemail.com
 wrote:
 
   The same problem seems to be detailed here:
  http://forum.samdroid.net/threads/598
   Looks like SPP is completely broken on the i5700 - possibly because of
   the Broadcom BCM4325.
   On the positive side, that chip has a FM module :-)
 
   On May 3, 6:56 pm, frankentux cfarrell1...@googlemail.com wrote:
   http://stackoverflow.com/questions/2661932http://pastebin.org/199621
 
could also be interesting
 
On May 2, 2:32 am, DonFrench dcfre...@gmail.com wrote:
 
 Nexus One.  No experience with spica.
 
 On May 1, 6:35 am, frankentux cfarrell1...@googlemail.com wrote:
 
  My device is a i5700 Samsung spica. The stackoverflow links and
 the
  logcats i pasted to pastebin.com (again, see my last post above)
 all
  relate to the issue on the spica. Do you have a similar issue
 with a
  spica?
 
  On 1 Mai, 00:13, dan raaka danra...@gmail.com wrote:
 
   is the device being referred here Spica (i5700)?
 
   -Dan
 
   On Fri, Apr 30, 2010 at 12:10 PM, DonFrench 
 dcfre...@gmail.com
   wrote:
I am not sure if it is the same issue but it sounds related.
  My
   app
was eventually able to connect to the device I was having
 trouble
   with
but only after I manually unpaired it.  I never deliberately
   paired it
in the first place and I was never asked for a pin during the
   time it
was failing to connect.  The device had apparently been
   automatically
paired by Android when it was first detected, as are other
 nearby
laptops and phones and PDAs.   After unpairing it, I did not
   re-pair
through the Android utility but ran my app again and
 attempted to
connect to it, at which time I was prompted to enter the pin
 and
   to
pair.  This request to pair did not come directly from my
 code
   but
resulted from a call to BluetoothSocket.connect( ).  At this
   point it
successfully connected and continues to connect.  So it seems
   like the
automatic pairing does something that prevents later
 connection.
I
wonder if once it is automatically paired without a pin,
 future
attempts to connect recognize that it has been paired but
 doesn't
recognize that no pin was ever requested and so fails for
 lack of
   a
valid pin.  Just a guess.
 
On Apr 29, 9:21 am, frankentux cfarrell1...@googlemail.com
   wrote:
 Is this related to:
 
  http://stackoverflow.com/questions/2661932/problem-with-bluetooth-on-.
 ..
 
  http://pastebin.org/191806http://pastebin.org/191824http://pastebin.o.
 ..
 
 It sounds like the same issue...
 
 On Apr 29, 2:09 am, DonFrench dcfre...@gmail.com wrote:
 
  (sorry, premature Send of previous message)
 
  As I was saying, the two devices have the same name but
   different MAC
  addresses.  Whether this was related to the problem I am
 not
   sure.
  But simply unpairing the device that would not connect
 solved
   the
  problem.  It re-paired the next time my code tried to
 connect
   and from
  then on I could connect to either device without doing
 any
   more
  unpairing.
 
  On Apr 28, 5:03 pm, DonFrench dcfre...@gmail.com
 wrote:
 
   Update to this problem:  I discovered that the device
 that
   could not
   be connected to had been paired at some time in the
 past.
Both
   devices have the same name but different MAC
 
   On Apr 24, 4:30 pm, DonFrench dcfre...@gmail.com
 wrote:
 
There is an apparentbugin theBluetoothservice
 discovery
   code, as
has been mentioned by several people on several
 forums.
The upshot
is
that the BluetoothSocket.connect( ) method
 consistently
   fails to
discover a valid SPP service on some devices that are
   discoverable
with non-Android devices while it consistently
 succeeds
   to discover
the SPP service on seemingly identical devices.
Obviously, the two
devices are not identical but the fact is that I
   manufacture two
such
devices and there is nothing obviously different
 about
   them.  I can
consistently connect to both devices from a Windows
   Mobile app.   I
hope thatGooglewill address thisbugin the very near
   future.  I
will be willing to test any trialbug-fixes on my
 devices.
 
Here is the relevant log output from the failed
 attempt:
 
   

Re: [android-developers] Hello My name is Youngrok Song from ZDNet Korea

2010-05-22 Thread dan raaka
you might have better luck here - www.kandroid.org

-Dan


On Thu, May 13, 2010 at 10:05 PM, sabbit sabbi...@gmail.com wrote:

 Hello My name is Youngrok Song from ZDNet Korea Planning dept.

 We have 3 times conferences for a year for Android developers. We
 completed a huge conference 4times like the advanced computing
 conference and Communication Mobile Conference which is held by ZDNet
 Korea in Seoul. In last conference, There are a variety of Global
 companies were participated in this conference like Google, HP, Intel,
 Juniper, Salesforce.com, and Korean big companies like Samsung, LG
 SKT, KT were joined this conference. We are making a plan this
 conference bigger and bigger. So we are looking for Android developers
 who want to speech in the Communication Vision Conference 2010. Also
 we want to know each other to share our information regarding Android
 developer. Android is hot issue in Korea at this point.
 This is a good opportunities to let developers know how Korea market
 is huge and important among the Asia country. That's why many global
 companies are really interested in our conference July 8th 2010.

 I can be reached by phone at 82.2.3300.112 or 82.10.9906.7864 or by e-
 mail at sab...@zdnet.co.kr
 If you cannot contact with me please let me know how can I contact
 with your company.
 Thank you for your time and consideration.

 Sincerely,

 Youngrok Song

 Youngrok Song




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