[android-developers] Re: ActivityThread.ContextCleanupInfo leaking memory?

2009-12-21 Thread kohlerm

Hi,
kohlerm thats me :-)
Thanks for the compliment!
Your applications looks cool, and might be something I need within the
near future :-)
So let's see whether I can help you.

Is there anything I need to do to reproduce the issue?
Or maybe you can just send me a heap dump?


Regards,
Markus

On Dec 17, 1:17 pm, freezy phree...@gmail.com wrote:
 Thanks for the interest Matt. Here are some references I found very
 interesting regarding memory leaks:

 How to import a heap dump from Android into Eclipse's Memory Analyser Tool
 (MAT)http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-a...
 Good article on how to fix memory leaks in 
 general:http://java.dzone.com/news/how-fix-memory-leaks-java
 Another one (The whole kohlerm blog is pretty 
 interesting):http://kohlerm.blogspot.com/2009/02/memory-leaks-are-easy-to-find.html
 Romain's blog entry on memory leaks in 
 Android:http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks

 I hope that maybe someone else has an idea about what's going on with my
 particular problem.



 On Wed, Dec 16, 2009 at 8:02 PM, Matt Kanninen mathias...@gmail.com wrote:
  I don't have any advice, I'm just very interested in hearing if and
  how you make an progress diagnosing, debugging and fixing this sort of
  issue.  I'm still trying to fix what looks like memory leak in my
  app.  All I have succeeded in doing is reducing the total memory used,
  thereby making the bug dramatically less noticeable.

  Thanks,
  -Matt Kanninen

  On Dec 16, 8:19 am, freezy phree...@gmail.com wrote:
   Hi all,

   I'm trying to locate a memory leak in my app (it's client for a
   mediacenter). So I start it up, go to the screen that lists all movies,
  go
   back to my home activity, trigger the GC a few times manually via DDMS,
  dump
   the memory heap, pull it, convert it and load it into MIT in Eclipse.

   Now the movie list screen is pretty heavy, around 800k of movie objects,
   which should be freed when I go back to the home screen. However, it
  stays
   allocated, with the GC root as a local variable in the main thread at
   ActivityThread.ContextCleanupInfo
   (see attached screenshot).

   I've tried searching but there is no documentation on this class, not
  even
   in the source code. Is there any way to avoid this kind of behavior? Am I
   doing something wrong or is the problem in Android? My app is open source
   and can be checked out here[1].

   Any hints and suggestions appreciated!

   [1]http://code.google.com/p/android-xbmcremote/

    leak-contextcleanupinfo.png
   120KViewDownload

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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 at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Emulating TreeViews using Expandable ListViews

2009-12-21 Thread Samuh
:bump:

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


[android-developers] sending and receiving data with sockets

2009-12-21 Thread Benjamin
Hello,

i want to develop an app for controlling my Windows Media Center with
my Android phone. Therefore i use the vmccontroller plugin (http://
vmccontroller.codeplex.com/Release/ProjectReleases.aspx?
ReleaseId=23251). With this plugin i can controll my MediaCenter by
sending Strings like button-up through sockets to the MediaCenter.
Also it is possible to get data from the MediaCenter, like all
artists.

My problem ist getting data through sockets. This is my code:

public class Connector implements Runnable{
static final String IP = 192.168.2.33;
//static final String IP = 192.168.1.92;
static final int PORT = 40500;

//system
public static final String ALIVE = version;

//general
public static final String UP = button-up;
public static final String RIGHT = button-right;
public static final String DOWN = button-down;
public static final String LEFT = button-left;
public static final String OK = button-ok;
public static final String BACK = button-back;

//music
public static final String ARTISTS = list-artists;

static Socket s;
static BufferedReader reader;
static PrintWriter writer;

public static void createConnection(){
try {
s = new Socket(IP, PORT);
reader = new BufferedReader(new 
InputStreamReader(s.getInputStream
()));
writer = new PrintWriter(new BufferedWriter(new 
OutputStreamWriter
(s.getOutputStream())), true);
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}

public static String sendMessage(String message){
if(s == null){
createConnection();
}

String response = null;
try {
writer.println(message);
response = reader.readLine();
Log.v(message,response);
} catch (IOException e) {
e.printStackTrace();
}

return response;
}

public static void closeConnection(){
writer.println(END);
try {
reader.close();
writer.close();
s.close();
} catch (IOException e) {
e.printStackTrace();
}
}

@Override
public void run() {
createConnection();
sendMessage(ARTISTS);
closeConnection();
}
}


If i create a new thread with new Thread(new Connector()).start() it
sends the correct message. But instead of receiving the artistdata it
receives only a statusmessage like 204 Success.

I tried this with telnet and i received the artistsdata without any
problems. What do i wrong with th sockets.

Any help would be nice. Thanks.

PS: Sorry for my bad english ;)

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


[android-developers] strings.xml resource

2009-12-21 Thread Patrick Plaatje
Hi All,

i was wondering if i could put extra attributes in a strings.xml resource. I
need more metadata for the value in this resource and it seems to me that if
i could read those extra attributes from the static R reference, it saves me
resources over implementing an xml reader. So what i actually try to do is
access the following xml:

?xml version=1.0 encoding=utf-8?
resources
  string name=index url=http://www.this.com/;Frontpage/string
string name=sport url=http://www.this2.com/;Sport/string
/resources

Any suggestions?

Regards,

Patrick

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

2009-12-21 Thread Neilz
Isn't there some software you can use for visually viewing the
database? Would that work on my device?

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


[android-developers] A question regarding AsyncTasks

2009-12-21 Thread Android Development
Hello,

In the documentation, I read that it is not possible for executing 2 Async
Tasks. If execute is called again, it should throw an exception.

The following is given under the heading of Threading Rules, and i quote:

The task can be executed only once (an exception will be thrown if a second
execution is attempted.)

I wish to understand the meaning of this statement.

Does this mean, that if i try and execute the same task twice (concurrently)
when the first execution of the task was still going on...an exception will
be thrown ? Will i need to wait for the completion of the first task, before
i spawn a second task ?

A possible use case:

The user wishes to download a set of files. He clicks on the download button
by providing the URL. When the first download is still going on, he wishes
to download another file and provides another URL. Both these user actions
are serviced by a DownloadTask, that extends the AysncTask.

If i wish to change this default behavior, is there a configuration option
?

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

2009-12-21 Thread ko5tik
What is wrong with CSS?

On Dec 20, 8:21 pm, guruk ilovesi...@gmail.com wrote:
 Hi, first thanks for all your previous help before :)

 Now I need a solution for HOW to disable the standart LINK Borders in
 a WebView!

 I mean. For example I have a page with some Pics or Text and all with
 Links.

 So when i Click on them .. the Android Browser shows me a orange
 Border around
 of them. I dont need that.. how can i disable that ?

 Thx
 Chris

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


Re: [android-developers] A question regarding AsyncTasks

2009-12-21 Thread Agus
No you don't wait for the 1st to finish, just create another instance of
AsyncTask.  The implementation of AsyncTask uses pooled threads

On Mon, Dec 21, 2009 at 2:23 AM, Android Development indodr...@gmail.comwrote:

 Hello,

 In the documentation, I read that it is not possible for executing 2 Async
 Tasks. If execute is called again, it should throw an exception.

 The following is given under the heading of Threading Rules, and i
 quote:

 The task can be executed only once (an exception will be thrown if a
 second execution is attempted.)

 I wish to understand the meaning of this statement.

 Does this mean, that if i try and execute the same task twice
 (concurrently) when the first execution of the task was still going on...an
 exception will be thrown ? Will i need to wait for the completion of the
 first task, before i spawn a second task ?

 A possible use case:

 The user wishes to download a set of files. He clicks on the download
 button by providing the URL. When the first download is still going on, he
 wishes to download another file and provides another URL. Both these user
 actions are serviced by a DownloadTask, that extends the AysncTask.

 If i wish to change this default behavior, is there a configuration option
 ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Dont show Link Borders in WebView

2009-12-21 Thread guruk
Thanks... i solved it now.


webview.setFocusable(true);
webview.setFocusableInTouchMode(false);

so this orange frames does not appear while in touch mode
but when you use your trackball you still can use that
orange Link Marker.

greets
chris


On Dec 21, 12:35 pm, ko5tik kpriblo...@yahoo.com wrote:
 What is wrong with CSS?

 On Dec 20, 8:21 pm, guruk ilovesi...@gmail.com wrote:



  Hi, first thanks for all your previous help before :)

  Now I need a solution for HOW to disable the standart LINK Borders in
  a WebView!

  I mean. For example I have a page with some Pics or Text and all with
  Links.

  So when i Click on them .. the Android Browser shows me a orange
  Border around
  of them. I dont need that.. how can i disable that ?

  Thx
  Chris

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


Re: [android-developers] A question regarding AsyncTasks

2009-12-21 Thread Android Development
Thanks for the prompt response Agus.

So, this means that the documentation needs to be updated ?

On Mon, Dec 21, 2009 at 4:09 PM, Agus agus.sant...@gmail.com wrote:

 No you don't wait for the 1st to finish, just create another instance of
 AsyncTask.  The implementation of AsyncTask uses pooled threads

 On Mon, Dec 21, 2009 at 2:23 AM, Android Development 
 indodr...@gmail.comwrote:

 Hello,

 In the documentation, I read that it is not possible for executing 2 Async
 Tasks. If execute is called again, it should throw an exception.

 The following is given under the heading of Threading Rules, and i
 quote:

 The task can be executed only once (an exception will be thrown if a
 second execution is attempted.)

 I wish to understand the meaning of this statement.

 Does this mean, that if i try and execute the same task twice
 (concurrently) when the first execution of the task was still going on...an
 exception will be thrown ? Will i need to wait for the completion of the
 first task, before i spawn a second task ?

 A possible use case:

 The user wishes to download a set of files. He clicks on the download
 button by providing the URL. When the first download is still going on, he
 wishes to download another file and provides another URL. Both these user
 actions are serviced by a DownloadTask, that extends the AysncTask.

 If i wish to change this default behavior, is there a configuration option
 ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Linkify specifications

2009-12-21 Thread Ajp007
Hi,

I added android:autoLink= true to TextView.

Now, wanted to know, specifications which it turns as links.

Like:
What is the length of the number, which can turn to clickable phone
number.

Some times, If date present in Body of SMS, it is linking year as
number.

Appreciate your help.

-- Jyothi

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


[android-developers] Some permissions not being copied

2009-12-21 Thread ber4444
Hi,
I'm having the following permissions in my manifest:
 uses-permission android:name=android.permission.INTERNET/
 uses-permission
android:name=android.permission.MOUNT_UNMOUNT_FILESYSTEMS /
 uses-permission android:name=android.permission.RECORD_AUDIO
 uses-permission android:name=android.permission.CAMERA /
 uses-feature android:name=android.hardware.camera /

... but only the first 3 gets copied to the device. Why?
I'm using Snow Leopard with Eclipse and G1 / HTC Hero. 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: Some permissions not being copied

2009-12-21 Thread ber4444
Never mind.

On Dec 21, 12:24 pm, ber gabor.berenyi...@gmail.com wrote:
 Hi,
 I'm having the following permissions in my manifest:
  uses-permission android:name=android.permission.INTERNET/
  uses-permission
 android:name=android.permission.MOUNT_UNMOUNT_FILESYSTEMS /
  uses-permission android:name=android.permission.RECORD_AUDIO
  uses-permission android:name=android.permission.CAMERA /
  uses-feature android:name=android.hardware.camera /

 ... but only the first 3 gets copied to the device. Why?
 I'm using Snow Leopard with Eclipse and G1 / HTC Hero. 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] How to start activity in android default packages

2009-12-21 Thread saikiran n
Hi
I have implemented code to start android built in applications like email
application
see the following code
  PackageManager appInfo = context.getPackageManager();
ListPackageInfo plist=appInfo.getInstalledPackages(0);
  for(int i=0;iplist.size();i++)
{
PackageInfo l1=plist.get(i);

  if(l1.packageName.equals(com.android.email))
{

Intent s;
try {
s =
appInfo.getLaunchIntentForPackage(l1.packageName);//This will lanuch the
activity of the perticular package
 s.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(s);

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


}
}


It is working fine .It starting the main activity
But my requirement is this email app is having several activites if i want
to start a perticular one
how can i do it
Please any one can help me

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

[android-developers] Display numeric entities (eg. #35;) in TextView or WebView

2009-12-21 Thread Patrick Plaatje
Hi All,

i'm trying to process text which i'm receiving from a RSS feed. In this feed
all special characters are defined as numeric entities. When i try to
display these texts in a Text- or WebView, it stops displaying anything
after encountering the numeric entity.

Any thoughts?

Regards,

Patrick

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

2009-12-21 Thread Mark Murphy
FJMustak wrote:
 In my manifest, I defined uses-configuration
 android:reqNavigation=trackball, and when I published my game, I
 got a user comment saying the game force closed on him.  I used that
 configuration specifically because I only had access to phones with a
 trackball (G1 and Google Ion).  How is it possible that a DROID user
 was able to see it in the market with that attribute set (a droid has
 a D-pad, and not a trackball)?  Could that have caused the crash?
 I subsequently restricted Droids by using supports-screens, until I
 can test it out correctly.
 Any ideas why the Droid user was able to see it? Or if the
 reqNavigation attribute could have caused the crash on a phone with no
 trackball?

Could you post your entire manifest, or at least the portion from the
top until where your uses-configuration element resides?

You might also consider adding in some top-level exception handlers tied
to an exception logging service -- I mention a few here:

http://www.androidguys.com/2009/11/16/diagnosing-sporadic-errors/

That way, you'd have your stack trace to examine.

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

Android Consulting/App Development: 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] Re: ($25 reward) GPS not triggering onLocationChanged

2009-12-21 Thread Mark Murphy
dapaintballer331 wrote:
 Seems I'm having trouble keeping my service running.
 12-21 02:24:49.060: WARN/MessageQueue(267):
 java.lang.RuntimeException: Handler{43782188} sending message to a
 Handler on a dead thread

What thread are you using? If this is the main application thread, I'd
be surprised for you to get this exception -- after all, the thing that
is logging the exception is on the main application thread.

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

Android Consulting/App Development: 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] Re: Lifecycle states

2009-12-21 Thread stanlick
Actually, the save preferences code was factored into its own method
and there was a commit.  The two lifecycle methods were simply calling
it.  This is why it appeared to me to be a threading issue in the
lifecycle callbacks

On Dec 19, 6:05 pm, Mark Murphy mmur...@commonsware.com wrote:
 stanlick wrote:
  SharedPreferences.Editor editor = settings.edit(); returns
  android.app.ApplicationContext$SharedPreferencesImpl
  $editori...@447d10e8 which resolves to a backing HashMap.  When I was
  saving preferences from both lifecycle methods, it was missing the
  last key that was put.

 Sounds like perhaps you weren't calling commit(), or were trying to hang
 onto the Editor, or had two disparate SharedPreferences objects you were
 trying to use, or something.

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

 Warescription: Three Android Books, Plus Updates, $35/Year

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


Re: [android-developers] How to start activity in android default packages

2009-12-21 Thread Mark Murphy
saikiran n wrote:
 But my requirement is this email app is having several activites if i
 want to start a perticular one
 how can i do it

Read the documentation for the application in question, and use whatever
public Intents they offer to start other activities.

If there is no such documentation, do not write your app and move onto
another project.

If the author of the application wanted you to start up other activities
besides the main one, they would have provided instructions for it.

If you specifically are trying to reach the built-in email application,
that is not part of the SDK, and therefore should not be used in this
fashion:

http://www.androidguys.com/2009/12/14/code-pollution-reaching-past-the-sdk/

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

Android Consulting/App Development: 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] Calendar - Custom Appointment Data

2009-12-21 Thread moa
Hi,

Is it possible to hook into a calendar appointment so that I can
create a new button for the appointments' menu? I would like to add
some extra functionality to an appointment. When my new button is
pressed the appointment will be passed to my new activity?

Is this possible? and how?


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

2009-12-21 Thread maxsap
ok thanks, currently I am using jlibrtp but I don't mind GPL license
so if I can't do it I will use Sipdroid's

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

2009-12-21 Thread matt smith
phew - its not just me then - thought everyone has abandoned my app in
the last week (14% unaccounted drop in active installs in 7 days even
after staying steady for the last 8 months) - even though i haven't
changed anything!

thought i'd done something to upset all my users all at once ...

google please fix

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


Re: [android-developers] Re: Are the market stats for developers broken?

2009-12-21 Thread Justin Giles
Well, after the update over night my active installs didn't decrease at
least.  I'm still missing 15% from what I had 3 days ago (and averaged over
a month prior).

On Mon, Dec 21, 2009 at 8:09 AM, matt smith mattsmith...@googlemail.comwrote:

 phew - its not just me then - thought everyone has abandoned my app in
 the last week (14% unaccounted drop in active installs in 7 days even
 after staying steady for the last 8 months) - even though i haven't
 changed anything!

 thought i'd done something to upset all my users all at once ...

 google please fix

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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: Are the market stats for developers broken?

2009-12-21 Thread Greg Donald
On Mon, Dec 21, 2009 at 8:16 AM, Justin Giles jtgi...@gmail.com wrote:
 Well, after the update over night my active installs didn't decrease at
 least.  I'm still missing 15% from what I had 3 days ago (and averaged over
 a month prior).

At this rate I'll have a zero retention rate in a week, including all
the buyers.  I find it really difficult to believe everyone who ever
bought my app is now suddenly choosing to uninstall it, at a steady
rate of a few percent per day.

Is anyone at Google looking into this?


-- 
Greg Donald
http://destiney.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: Droid - How to create a top bar notification during calls.

2009-12-21 Thread Matt
Thanks Dianne,

Are you saying that notifications can not be delivered or can be
delivered on all Android phones during calls?

Thanks again,

Matt


On Dec 20, 3:14 pm, Dianne Hackborn hack...@android.com wrote:
 It works the same as all other Android phones.



 On Sun, Dec 20, 2009 at 12:02 PM, Matt hansen.matt...@gmail.com wrote:
  This just doesn't seem to be possible on the Droid.  The notification
  is just killed and never delivered.

  Thanks,

  Matt

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] AudioTack

2009-12-21 Thread Business Talk
I seems as if the sdk 2.0.1 introduced some instability into the
AudioTrack.  The PlaybackPositionUpdateListener is call very
inpredicably. It used to work fine in 2.0.0. Has anybody alse noticed
this change?

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

2009-12-21 Thread Matt
If your application is a pay application, and you make it free as a
temporary promotion, can you then charge again?

Matt


On Dec 20, 1:58 pm, Mark Murphy mmur...@commonsware.com wrote:
 frantz lohier wrote:
  Is there a way to convert a free app to a paid for ? Does not look like
  this option is available in the upload an Application page. What are
  the options ?

 You cannot start charging for an app that was previously free. You will
 need to release a separate paid app.

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

 _Beginning Android_ from Apress Now Available!

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


Re: [android-developers] Re: Converting a free app to a paid-for

2009-12-21 Thread Mark Murphy
Matt wrote:
 If your application is a pay application, and you make it free as a
 temporary promotion, can you then charge again?

That's a good question. All I know is that in my Market panel, things
that are free have the paid option disabled.

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

Android Consulting/App Development: 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] Re: Converting a free app to a paid-for

2009-12-21 Thread TreKing
I don't think so. I believe I saw a post on the Market Help Forums about
this. Someone tried this and was surprised to find they couldn't revert
back. Same rules apply. Once it's free it stays free.

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


On Mon, Dec 21, 2009 at 8:57 AM, Matt hansen.matt...@gmail.com wrote:

 If your application is a pay application, and you make it free as a
 temporary promotion, can you then charge again?

 Matt


 On Dec 20, 1:58 pm, Mark Murphy mmur...@commonsware.com wrote:
  frantz lohier wrote:
   Is there a way to convert a free app to a paid for ? Does not look like
   this option is available in the upload an Application page. What are
   the options ?
 
  You cannot start charging for an app that was previously free. You will
  need to release a separate paid app.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy
 
  _Beginning Android_ from Apress Now Available!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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: Droid - won't rotate image captured from camera? (Camera.Parameters)

2009-12-21 Thread 李務誠
Droid respects setRotation. The problem is Droid does not rotate the entire
picture. Droid only sets orientation in the EXIF header. Applications need
to check the orientation in the EXIF header and then rotate it accordingly
before display.

http://developer.android.com/reference/android/hardware/Camera.Parameters.html
public void setRotation (int rotation)
Sets the orientation of the device in degrees. For example, suppose the
natural position of the device is landscape. If the user takes a picture in
landscape mode in 2048x1536 resolution, the rotation should be set to 0. If
the user rotates the phone 90 degrees clockwise, the rotation should be set
to 90. Applications can useOrientationEventListener to set this parameter.
The camera driver may set orientation in the EXIF header without rotating
the picture. Or the driver may rotate the picture and the EXIF thumbnail. If
the Jpeg picture is rotated, the orientation in the EXIF header will be
missing or 1 (row #0 is top and column #0 is left side).

The problem is not related to set(rotation, 90) or setRotation(90). They
are the same except setRotation only exists from 2.0.

On Sun, Dec 20, 2009 at 1:48 PM, Mark Wyszomierski mar...@gmail.com wrote:

 It looks like what I might have to do is switch my project to the 2.0
 sdk (it's currently at 4). If I see that the OS level my app is
 running on is less than 2.0, then I make this call:

  Camera.Parameters params = camera.getParameters();
  params.set(rotation, 0);
  camera.setParameters(params);

 if it's 2.0 or above, I use this call (added in the 2.0 api):

  Camera.parameters.setRotation(int rotation);

 is this probably the best way to go? I don't know if I could go the
 other direction (stay at sdk level 4, and if I see the user is running
 5, try to somehow invoke the 2.0 api which should be present),

 Thanks


 On Dec 19, 9:09 pm, Mark Wyszomierski mar...@gmail.com wrote:
  Thanks, just posted there too. I hope there's a way to get around this
  innovation in camera.parameters..
 
  In the worst case, I guess I could check what platform the user is
  running on, and use the native camera intent?
 
  Thanks
 
  On Dec 19, 8:55 pm, Mark Murphy mmur...@commonsware.com wrote:
 
 
 
   Mark Wyszomierski wrote:
I got all the parameters from a Droid for the camera - looks like
rotation is not one of them... how do you get the camera to rotate
 the
output?:
 
picture-size-
values=1280x960,1600x1200,2048x1536,2592x1936,2592x1456;mot-postview-
mode=on;zoom=0;antibanding=auto;zoom-
supported=true;whitebalance=auto;jpeg-thumbnail-height=240;scene-
mode=auto;jpeg-quality=95;smooth-zoom-supported=true;preview-format-
values=yuv422i-yuyv,yuv420sp;focus-mode=auto;preview-
format=yuv420sp;mot-test-command=;mot-zoom-step=0.5;preview-
size=560x320;picture-format-values=jpeg,jfif,exif;mot-areas-to-
focus=0;mot-postview-modes=off,on;flash-mode-
values=off,on,auto;preview-frame-rate-values=5,10,15,20,24,25,30;mot-
max-areas-to-focus=1;preview-frame-rate=30;flash-mode=off;effect-
values=none,mono,sepia,negative,solarize,red-tint,blue-tint,green-
tint;focus-mode-values=off,auto,infinity,macro;picture-
size=2048x1536;max-zoom=6;effect=none;jpeg-thumbnail-
width=320;whitebalance-values=auto,daylight,fluorescent,cloudy-
daylight,incandescent,warm-fluorescent;scene-mode-
values=auto,action,portrait,landscape,night,night-
portrait,theatre,beach,snow,sunset,steadyphoto;picture-
format=jpeg;jpeg-thumbnail-size-
values=160x90,160x120,176x144,320x180,320x240;mot-zoom-
speed=99;preview-size-
   
 values=176x144,320x240,352x288,640x480,720x480,720x576,848x480;antibanding-
values=auto,50hz,60hz
 
   If your problem is unique to the DROID, you may get more assistance by
   posting at the MOTODEV boards:
 
  http://developer.motorola.com
 
   Forgive me if you've already tried that...
 
   --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy
 
   _Android Programming Tutorials_ Version 1.0 In Print!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Get the list of discovered bluetooth

2009-12-21 Thread rezar
No answer ? :(

On Dec 18, 12:06 pm, rezar rraw...@gmail.com wrote:
 Can any body help me how can I get the list of discoveredbluetooth
 device ?
 I am currently developing an application which scan forbluetooth
 devices in a specific time interval and log their names.
 I haven't been found any example yet. also it seems that
 BluetoothAdapter class does not support 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] Cant find my content provider?

2009-12-21 Thread draf...@gmail.com
Hi,

I have written the following content provider, but when I try to pull
information from it into an array, I get the following error:

12-21 15:14:18.627: ERROR/ActivityThread(1160): Failed to find
provider info for cicero.org.provider.CiceroContentProvider


I presume its something to do with my naming of the CONTENT_URI or
something? I'm not quite sure how it works so could anyone explain a
bit and spot what I have done wrong?

This is what I have in the manifest:

XML:
provider android:name=.CiceroContentProvider
 
android:authorities=cicero.org.provider.CiceroContentProvider /


Java:
public class CiceroContentProvider extends ContentProvider{

 //URI
 public static final Uri CONTENT_URI =
   Uri.parse(content://
cicero.org.provider.CiceroContentProvider);

 //Underlying database

 private SQLiteDatabase settingsDB;

 private static final String TAG = CiceroProvider;
 private static final String DATABASE_NAME = cicero_settings.db;
 private static final int DATABASE_VERSION = 1;
 private static final String SETTINGS_TABLE = settings;


 //Column names
 public final static String _ID = _id;
 public final static String VOIPUSERNAME = voipusername;
 public final static String VOIPAUTHID = voipauthid;
 public final static String PASSWORD = password;
 public final static String SIPPROXYSERVER = sipproxyserver;
 public final static String SIPREGISTRAR = sipregistrar;
 public final static String SIPREALM = siprealm;
 public final static Integer EXPIRESTIME =30;

 //column indexes
 public static final int VOIPUSERNAME_COL = 1;
 public static final int VOIPAUTHID_COL = 2;
 public static final int PASSWORD_COL = 3;
 public static final int SIPPROXYSERVER_COL = 4;
 public static final int SIPREGISTRAR_COL = 5;
 public static final int SIPREALM_COL = 6;
 public static final int EXPIRESTIME_COL = 7;

 //helper class
 private static class settingsDatabaseHelper extends
SQLiteOpenHelper{

  private static final String CREATE_SETTINGS_TABLE
  = CREATE TABLE tbl_settings( +
_ID INTEGER PRIMARY KEY AUTOINCREMENT, +
VOIPUSERNAME TEXT, +
VOIPAUTHID TEXT, +
PASSWORD TEXT, +
SIPPROXYSERVER TEXT, +
SIPREGISTRAR TEXT, +
SIPREALM TEXT, +
EXPIRESTIME INTEGER);;

  public settingsDatabaseHelper(Context context, String name,
CursorFactory factory, int version) {
   super(context, name, factory, version);

  }

  @Override
  public void onCreate(SQLiteDatabase db) {
   db.execSQL(CREATE_SETTINGS_TABLE);

  }

  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion) {
   Log.w(TAG, Upgrading database from version  +
oldVersion +  to  +
  newVersion + , which will destroy all old
data);

   db.execSQL(DROP TABLE IF EXISTS  + SETTINGS_TABLE);
   onCreate(db);

  }

 }

 //end helper class


 private static final int SETTINGS = 1;
 private static final int SETTINGS_ID = 2;

 private static final UriMatcher uriMatcher;

 static{
  uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
  uriMatcher.addURI
(cicero.org.provider.CiceroContentProvider, settings, SETTINGS);
  uriMatcher.addURI
(cicero.org.provider.CiceroContentProvider, settings/#,
SETTINGS_ID);
 }


 @Override
 public String getType(Uri uri) {
  switch(uriMatcher.match(uri)){
  case SETTINGS:
   return vnd.android.cursor.dir/
vnd.org.CiceroContentProvider;
  case SETTINGS_ID:
   return vnd.android.cursor.item/
vnd.org.CiceroContentProvider;
  default:
   throw new IllegalArgumentException(Unsupported URI: 
+ uri);
  }

 }



 @Override
 public boolean onCreate() {
  Context context = getContext();

  settingsDatabaseHelper dbHelper;
  dbHelper = new settingsDatabaseHelper(context,
DATABASE_NAME, null, DATABASE_VERSION);

  SQLiteDatabase settingsDB = dbHelper.getWritableDatabase();
  return (settingsDB == null) ? false : true;
 }

 @Override
 public Cursor query(Uri uri, String[] projection, String
selection,
   String[] selectionArgs, String sortOrder) {

  SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder();

  qBuilder.setTables(SETTINGS_TABLE);

  switch(uriMatcher.match(uri)){

  case SETTINGS_ID:
   qBuilder.appendWhere(_ID + = + uri.getPathSegments
().get(1));
   break;
  default:
   break;

  }

  String orderBy;

  if(TextUtils.isEmpty(sortOrder)){

 

Re: [android-developers] Re: Are the market stats for developers broken?

2009-12-21 Thread TreKing
I noticed a drop as well (at least 10%) but ... the ACTIVE / TOTAL ratio is
now actually accurate as far as I can tell.

Maybe they just adjusted their stats to only count ACTIVE once the user has
exceeded their refund window and can no longer get a refund?

If you have a large volume of sales on a daily basis this would explain your
totals continuing to increase (and therefore your percentage decreases) but
the active count stays put until the sales are finalized.

Of course, this is just guessing. It would definitely be nice to have an
official word from the Goog.

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


On Mon, Dec 21, 2009 at 8:32 AM, Greg Donald gdon...@gmail.com wrote:

 On Mon, Dec 21, 2009 at 8:16 AM, Justin Giles jtgi...@gmail.com wrote:
  Well, after the update over night my active installs didn't decrease at
  least.  I'm still missing 15% from what I had 3 days ago (and averaged
 over
  a month prior).

 At this rate I'll have a zero retention rate in a week, including all
 the buyers.  I find it really difficult to believe everyone who ever
 bought my app is now suddenly choosing to uninstall it, at a steady
 rate of a few percent per day.

 Is anyone at Google looking into this?


 --
 Greg Donald
 http://destiney.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.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: Video Playback freezes on 1.6 donut with opencore2

2009-12-21 Thread Alexey Krasnoriadtsev
bump

Anyone has any ideas?

On Dec 18, 9:35 pm, Alexey Krasnoriadtsev ale...@agilefusion.com
wrote:
 It looks like there is something wrong with the player (opencore), at
 times, video playback will get stuck on one frame, and will stay there
 for a long time.

 If you look at the log, you can see that player started playing at
 17:59:48, at that time it has already buffered 6 seconds of video.
 Then at 17:59:53 the video and sound got stuck, while buffering kept
 going on in the background

 After 25 seconds (18:00:19) it resumed playing and buffer was already
 at 36 seconds, and all this time the api report that it is playing,
 meaning in the code, i don't know that video is stuck...

 Any thoughts or suggestions? This started to happen in donut (1.6)
 with the introduction ofopencore2. I have never seen this problem in
 with previous version of opencore (android versions = 1.5)

 Legend: the integers next to current and buffer are in seconds of
 video. while playerDriver buffering are in percentages.

 12-18 17:59:48.529 D/dalvikvm(19121): GC freed 4446 objects / 813696
 bytes in 294ms
 12-18 17:59:48.589 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 0 buffer: 4 playing?true
 12-18 17:59:49.109 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 0 buffer: 4 playing?true
 12-18 17:59:49.269 D/PlayerDriver(18730): buffering (5)
 12-18 17:59:49.619 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 1 buffer: 5 playing?true
 12-18 17:59:50.119 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 1 buffer: 5 playing?true
 12-18 17:59:50.279 D/PlayerDriver(18730): buffering (6)
 12-18 17:59:50.619 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 2 buffer: 6 playing?true
 12-18 17:59:51.119 V/RhythmClipBrowser(19121): channels count: 20
 12-18 17:59:51.249 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 3 buffer: 6 playing?true
 12-18 17:59:51.619 D/PlayerDriver(18730): buffering (7)
 12-18 17:59:51.759 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 3 buffer: 7 playing?true
 12-18 17:59:52.269 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 4 buffer: 7 playing?true
 12-18 17:59:52.719 D/PlayerDriver(18730): buffering (7)
 12-18 17:59:52.779 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 4 buffer: 7 playing?true
 12-18 17:59:52.939 D/PlayerDriver(18730): buffering (8)

 - VIDEO FREEZES HERE,

 12-18 17:59:53.289 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 8 playing?true
 12-18 17:59:53.794 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 8 playing?true
 12-18 17:59:54.301 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 8 playing?true
 12-18 17:59:54.724 D/PlayerDriver(18730): buffering (8)
 12-18 17:59:54.809 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 8 playing?true
 12-18 17:59:55.314 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 8 playing?true
 12-18 17:59:55.621 D/PlayerDriver(18730): buffering (9)
 12-18 17:59:55.819 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:56.325 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:56.719 D/PlayerDriver(18730): buffering (9)
 12-18 17:59:56.829 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:57.340 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:57.849 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:58.353 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:58.730 D/PlayerDriver(18730): buffering (9)
 12-18 17:59:58.859 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:59.363 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 9 playing?true
 12-18 17:59:59.849 D/PlayerDriver(18730): buffering (10)
 12-18 17:59:59.869 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 10 playing?true
 12-18 18:00:00.371 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 10 playing?true
 12-18 18:00:00.879 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 10 playing?true
 12-18 18:00:01.119 D/PlayerDriver(18730): buffering (11)
 12-18 18:00:01.349 I/ActivityManager(   73): Start proc
 com.android.calendar for broadcast
 com.android.providers.calendar/.CalendarAppWidgetProvider: pid=19211
 uid=10021 gids={3003}
 12-18 18:00:01.379 V/UpdatedMediaPlayerActivity(19121): update
 progress, current: 5 buffer: 11 playing?true
 12-18 18:00:01.679 I/dalvikvm(19211): Debugger thread not active,
 ignoring DDM send (t=0x41504e4d l=38)
 12-18 18:00:01.729 

[android-developers] Re: Setting for Use incoming call volume for notifications

2009-12-21 Thread Beth
I need to bump this thread I face the same problem.  My guess is that
there is nothing public and anything we might find through source and
code into a program could change without notice.  Truth is that the
shift from SDK 1.1 to SDK 1.5 introduced this tie in and broke my UI!

My solution was to pop an alert dialog that will open the settings
application.  To further complicate the matter, I found that the
public action - the intent that is supposed to open the sound
preferences page, was broken (on the Hero?).  Thus, I cannot navigate
to the specific page that holds this setting.

I guess maybe an issue needs to be filed.  So far I have not taken
that step.  If anybody has a better solution, please speak up!

Thanks and regards,
Beth

On Dec 12, 11:25 am, Open ldonel...@gmail.com wrote:
 Hi All-

 Does anyone know where the value for Use incoming call volume for
 notifications is stored?

 This is a checkbox found in the Ringer Volume settings that allows you
 to set a separate notification volume and incoming call volume.  I
 would like to programatically toggle the value, but I can't figure out
 where it's stored.  I looked at Context.AudioManager, I see methods
 for controlling the notification volume, but I can't find a setting
 for separating notification volume from incoming call volume.

 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: Droid - won't rotate image captured from camera? (Camera.Parameters)

2009-12-21 Thread Mark Wyszomierski
Hi Wu-Cheng,

I'm not following - I'm using the native camera intent with the Droid.
So if I take a picture while holding the camera in a portrait
orientation, then it should write a rotation of 90 degrees into the
exif header of the output jpeg (while not really rotating the image
data)? If that's the case, I'm not sure how to proceed. Looks like I
would have to do the following:

  1) Check the exif header to see if this rotation parameter exists
  2) If it does exist, rotate the image myself before display

#1 could probably be done using the ExifInterface class, but that's
only been added to the level 5 sdk, while I'm targeting sdk 3 and
above.
#2 could also be done after a lot of downsampling. I'm not sure if
other applications understand exif headers though. So I'd want to
rewrite the image data with an actual rotation. Doing this at full
resolution would be difficult on the device.

Thanks for your help.




On Dec 21, 10:37 am, Wu-cheng Li (李務誠) wuchen...@google.com wrote:
 Droid respects setRotation. The problem is Droid does not rotate the entire
 picture. Droid only sets orientation in the EXIF header. Applications need
 to check the orientation in the EXIF header and then rotate it accordingly
 before display.

 http://developer.android.com/reference/android/hardware/Camera.Parame...
 public void setRotation (int rotation)
 Sets the orientation of the device in degrees. For example, suppose the
 natural position of the device is landscape. If the user takes a picture in
 landscape mode in 2048x1536 resolution, the rotation should be set to 0. If
 the user rotates the phone 90 degrees clockwise, the rotation should be set
 to 90. Applications can useOrientationEventListener to set this parameter.
 The camera driver may set orientation in the EXIF header without rotating
 the picture. Or the driver may rotate the picture and the EXIF thumbnail. If
 the Jpeg picture is rotated, the orientation in the EXIF header will be
 missing or 1 (row #0 is top and column #0 is left side).

 The problem is not related to set(rotation, 90) or setRotation(90). They
 are the same except setRotation only exists from 2.0.



 On Sun, Dec 20, 2009 at 1:48 PM, Mark Wyszomierski mar...@gmail.com wrote:
  It looks like what I might have to do is switch my project to the 2.0
  sdk (it's currently at 4). If I see that the OS level my app is
  running on is less than 2.0, then I make this call:

   Camera.Parameters params = camera.getParameters();
   params.set(rotation, 0);
   camera.setParameters(params);

  if it's 2.0 or above, I use this call (added in the 2.0 api):

   Camera.parameters.setRotation(int rotation);

  is this probably the best way to go? I don't know if I could go the
  other direction (stay at sdk level 4, and if I see the user is running
  5, try to somehow invoke the 2.0 api which should be present),

  Thanks

  On Dec 19, 9:09 pm, Mark Wyszomierski mar...@gmail.com wrote:
   Thanks, just posted there too. I hope there's a way to get around this
   innovation in camera.parameters..

   In the worst case, I guess I could check what platform the user is
   running on, and use the native camera intent?

   Thanks

   On Dec 19, 8:55 pm, Mark Murphy mmur...@commonsware.com wrote:

Mark Wyszomierski wrote:
 I got all the parameters from a Droid for the camera - looks like
 rotation is not one of them... how do you get the camera to rotate
  the
 output?:

 picture-size-
 values=1280x960,1600x1200,2048x1536,2592x1936,2592x1456;mot-postview-
 mode=on;zoom=0;antibanding=auto;zoom-
 supported=true;whitebalance=auto;jpeg-thumbnail-height=240;scene-
 mode=auto;jpeg-quality=95;smooth-zoom-supported=true;preview-format-
 values=yuv422i-yuyv,yuv420sp;focus-mode=auto;preview-
 format=yuv420sp;mot-test-command=;mot-zoom-step=0.5;preview-
 size=560x320;picture-format-values=jpeg,jfif,exif;mot-areas-to-
 focus=0;mot-postview-modes=off,on;flash-mode-
 values=off,on,auto;preview-frame-rate-values=5,10,15,20,24,25,30;mot-
 max-areas-to-focus=1;preview-frame-rate=30;flash-mode=off;effect-
 values=none,mono,sepia,negative,solarize,red-tint,blue-tint,green-
 tint;focus-mode-values=off,auto,infinity,macro;picture-
 size=2048x1536;max-zoom=6;effect=none;jpeg-thumbnail-
 width=320;whitebalance-values=auto,daylight,fluorescent,cloudy-
 daylight,incandescent,warm-fluorescent;scene-mode-
 values=auto,action,portrait,landscape,night,night-
 portrait,theatre,beach,snow,sunset,steadyphoto;picture-
 format=jpeg;jpeg-thumbnail-size-
 values=160x90,160x120,176x144,320x180,320x240;mot-zoom-
 speed=99;preview-size-

  values=176x144,320x240,352x288,640x480,720x480,720x576,848x480;antibanding-
 values=auto,50hz,60hz

If your problem is unique to the DROID, you may get more assistance by
posting at the MOTODEV boards:

   http://developer.motorola.com

Forgive me if you've already tried that...

--
Mark Murphy (a 

[android-developers] Re: Focus problem with dpad

2009-12-21 Thread tikky
I was able to get this working by calling:
list.setItemsCanFocus(true);

Now the button gets focus when navigating with D_PAD.
But now I face another issue.

The textview does not get highlighted when selected. Is there anyway I
can get the textview to be highlighted when focussing on it?

Kunal

On Dec 8, 11:07 am, tikky tiku...@gmail.com wrote:
 Hi,
 I have a a simple activity with  a list view. Each element of the list
 view contains a photo, text view and a button. I have an
 onClickListener() implemented for the button.
 When I touch the button, onClickListener gets called, which is what I
 want. But when I use the D-PAD, and press down key, the entire list
 item gets focus, so the center-select key takes no effect. I need the
 focus to go only to the button instead of the entire list element, so
 that when center key is pressed, it will do the same action as in the
 touch mode.

 How can I achieve this?
 I have tried calling requestFocus() on the button, but still it does
 not work.

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


[android-developers] Using new sdk methods on devices running older sdks?

2009-12-21 Thread Mark Wyszomierski
Hi,

I'm using the level 5 sdk to compile my app, but set my target to sdk
level 3 in my manifest. All is fine.

I may need to use some level 5 classes (ExifInterface) though. What's
the right way to go about using them while not fouling things up for
devices running older sdk versions? Do we simply restrict use of the
newer API methods to completely separate class files? Something like
this:

  // Test.java
  class Test
  {
  public boolean sdkDependentItem() {
  if (Build.VERSION.SDK.equals(5)) {
  return (new sdk5()).getItem();
  }
  else {
  return (new sdk3and4()).getItem();
  }
  }
   }

  // sdk5.java
  class sdk5 {
  public boolean getItem() {
  // can use sdk level 5 apis in here ok.
  }
  }

  // sdk3and4.java
  class sdk3and4 {
  public boolean getItem() {
  // can use sdk level 3 and 4 apis in here ok.
  }
  }

so as long as the api methods are completely separated into files that
the older devices won't invoke, we should be ok?

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: AudioTrack - Clicking Sound

2009-12-21 Thread Business Talk
Mark,

Yours is a golden tip. In a long run using files is out of the
question, considering the size of the application it would generate.
Your approach is definitely the way to go. I just have no experience
in the sound synthesis, Specifically synthesizing instrument sounds.
Do you have any documentation (links) to point me to. I will have to
look into a simple synthesizer running on android. Any code examples
you could share?

I appreciate your advice,
Roman


On Dec 15, 6:01 pm, MarkNZ mbutler...@gmail.com wrote:
 Do you need to use files?
 I have been generating audio at run time using the java math sine
 function to create an array of short, then playing it with audio
 track. Perfomance has been fine, I have been testing on an HTC tattoo.
 The only problem I have found is when I record the the data being
 played, write it to SD card and plot it in MATLAB, There is a large DC
 offset that decays quickly at the start of playback. I'm still trying
 to figure out the cause of it however this may not bother you.

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


Re: [android-developers] Re: Droid - How to create a top bar notification during calls.

2009-12-21 Thread Dianne Hackborn
On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote:

 Are you saying that notifications can not be delivered or can be
 delivered on all Android phones during calls?


You absolutely can post them.  It is unlikely to me they would cause a sound
to play, though, if the user is currently talking on the phone.

You are being very vague so I don't really know what to answer (your first
 post sounded like you were having a problem specific to Droid but
apparently that is not the case).

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using new sdk methods on devices running older sdks?

2009-12-21 Thread Mark Murphy
Mark Wyszomierski wrote:
 Hi,
 
 I'm using the level 5 sdk to compile my app, but set my target to sdk
 level 3 in my manifest. All is fine.
 
 I may need to use some level 5 classes (ExifInterface) though. What's
 the right way to go about using them while not fouling things up for
 devices running older sdk versions? Do we simply restrict use of the
 newer API methods to completely separate class files? Something like
 this:
 
   // Test.java
   class Test
   {
   public boolean sdkDependentItem() {
   if (Build.VERSION.SDK.equals(5)) {
   return (new sdk5()).getItem();
   }
   else {
   return (new sdk3and4()).getItem();
   }
   }
}
 
   // sdk5.java
   class sdk5 {
   public boolean getItem() {
   // can use sdk level 5 apis in here ok.
   }
   }
 
   // sdk3and4.java
   class sdk3and4 {
   public boolean getItem() {
   // can use sdk level 3 and 4 apis in here ok.
   }
   }
 
 so as long as the api methods are completely separated into files that
 the older devices won't invoke, we should be ok?

I wouldn't do:

if (Build.VERSION.SDK.equals(5)) {

Instead, parse it to an integer and do a =5 comparison. After all, most
DROIDs are now on API 6 (i.e., Android 2.0.1). And, once you drop older
SDK support, you can use SDK_INT and skip the parse step.

If you are going to make the request a lot, you might consider having
your two implementations extend a common abstract class or implement a
common interface. Then, you can make the determination of which one to
use once and hold onto that object, calling it by the common interface
as needed.

Otherwise, the notion of if I don't load the class, there will be no
harm in it referencing newer API capabilities is sound.

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

_The Busy Coder's Guide to Android Development_ Version 2.8
Available!

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


[android-developers] Re: Working with the new ContactContracts API

2009-12-21 Thread Molee

for content of email and note, by convention,  you can put then into
column data1 directly
ContactsContract.DataColumns.data1

i found that there is no object in
ContactsContract.CommonDataKinds.Email
representing data1 hence i just put data1 directly and it works

ContactsContract.CommonDataKinds.Phone.NUMBER = data1 as well

hope it helps



On 11月17日, 下午3時13分, EMMNS eihabshad...@gmail.com wrote:
 Hi all,

 thanks for your posts, that got me started and going on the new sdk
 2.0, but still facing some problems adding contacts.

 let's say i have an array of String has the contacts info

 String[] c = new String[] {First name,Last name,mobile number,
 home number, work number, fax number, email address, some
 notes}

 please help me adding these to a single contact, I read the code you
 guys posted and helped me to start,

 it adds the contact info
 but can't add the email or the notes

 also it seems it adds a new contact on every field ??

 here is my code:

 code

 ContentValues values = new ContentValues();

 values.put(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, c[1]+
   + c[0]);

 Uri rawContactUri = getContentResolver().insert(
 RawContacts.CONTENT_URI, values);
 long rawContactId = ContentUris.parseId(rawContactUri);

 values.clear();
 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId);
 values.put(ContactsContract.Data.MIMETYPE,
 StructuredName.CONTENT_ITEM_TYPE);
 values.put(StructuredName.DISPLAY_NAME, c[1] +   + c[0]);
 getContentResolver().insert(ContactsContract.Data.CONTENT_URI,
 values);

 Uri mobileUri = null;
 Uri homeUri = null;
 Uri emailUri = null;
 Uri workUri = null;
 Uri faxUri = null;
 Uri noteUri = null;

 mobileUri = Uri.withAppendedPath(rawContactUri,
 ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
 values.clear();
 values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
 ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE);
 values.put(ContactsContract.CommonDataKinds.Phone.IS_SUPER_PRIMARY,
 1);
 values.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
 values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[2]);
 getContentResolver().insert(mobileUri, values);

 homeUri = Uri.withAppendedPath(rawContactUri,
 ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
 values.clear();
 values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
 ContactsContract.CommonDataKinds.Phone.TYPE_HOME);
 values.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
 values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[3]);
 getContentResolver().insert(homeUri, values);

 workUri = Uri.withAppendedPath(rawContactUri,
 ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
 values.clear();
 values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
 ContactsContract.CommonDataKinds.Phone.TYPE_WORK);
 values.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
 values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[5]);
 getContentResolver().insert(workUri, values);

 faxUri = Uri.withAppendedPath(rawContactUri,
 ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
 values.clear();
 values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
 ContactsContract.CommonDataKinds.Phone.TYPE_FAX_HOME);
 values.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
 values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[6]);
 getContentResolver().insert(faxUri, values);

 emailUri = Uri.withAppendedPath(rawContactUri,
 ContactsContract.Contacts.Data.CONTENT_DIRECTORY);

 values.clear();
 values.put(ContactsContract.CommonDataKinds.Email.TYPE,
 ContactsContract.CommonDataKinds.Email.TYPE_OTHER);
 values.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE);
 values.put(ContactsContract.CommonDataKinds.Email.DISPLAY_NAME, c[4]);
 getContentResolver().insert(emailUri, values);

 noteUri = Uri.withAppendedPath(rawContactUri,
 ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
 values.clear();
 values.put(ContactsContract.Data.MIMETYPE,
 ContactsContract.CommonDataKinds.Note.CONTENT_ITEM_TYPE);
 values.put(ContactsContract.CommonDataKinds.Note.NOTE, c[7]);
 getContentResolver().insert(noteUri, values);

 /code

 Thank you for your help in advance.

 On Nov 2, 5:24 pm, Dmitri Plotnikov dplotni...@google.com wrote:

  You can always delegate contact creation to the Contacts app using the
  ContactsContract.Intents.UI.Insert intent with extras. This will show the
  edit UI.

  If you want to explicitly create the contact by yourself, that's now a bit
  tricky because Android 2.0 support multiple accounts.

  First of all, you will need to figure out which account you want to create
  the contact in. Get a list of all available accounts from AccountManager:

  AccountManager am = AccountManager.get(getContext());
  Account[] accounts = am.getAccounts();

  Also, get a list 

[android-developers] Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-21 Thread superjet
I had posted a similar thread a while back and received no feedback,
so let me try to be more clear...

I am able to use Androids components to build the most basic layouts,
which include images, buttons, text areas, etc. These are like Android
Lego! I can build the castle.

BUT I want to design my own component, my own Lego, that draws on the
screen and uses the available area that the Android components have
not used. ie, I want to have a top layer of buttons, and the rest of
the screen, whatever it is, I want to use to draw 2d graphics. So, I
want to make my own Lego, and use it with the other Android Lego.
However, I'm also trying to be a good developer and making this for
whatever resolution is thrown my way.

What is the best way to do this considering the deluge of different
resolutions Android developers must cope with? Is there a way to do a
table view and return the remaining screen size? Or, am I stuck making
an entire new box of Lego here?

Thanks for any help!
-sj


BTW the original thread is here:
http://groups.google.com/group/android-developers/browse_thread/thread/f169ade70f036e69/726df0acdf06949a?lnk=gstq=Custom+Component+ImageView+Override+Help#726df0acdf06949a

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

2009-12-21 Thread Justin Giles
Most recent update: +113 downloads, -131 active installs.  Numbers just
don't add up.  I would not think by chance that this would happen,
consistently over a 4 day period when a months worth of data says that both
the downloads increase as well as the active installs.  So far I've lost 16%
points and I've gone down over 20 positions in the popularity list.  Is my
application just all of the sudden performing very poorly even though I
consistently get 4 and 5 star reviews?  Or is there something going on with
the stats?

Could anyone with any knowledge about this please respond?


On Mon, Dec 21, 2009 at 10:01 AM, TreKing treking...@gmail.com wrote:

 I noticed a drop as well (at least 10%) but ... the ACTIVE / TOTAL ratio is
 now actually accurate as far as I can tell.

 Maybe they just adjusted their stats to only count ACTIVE once the user has
 exceeded their refund window and can no longer get a refund?

 If you have a large volume of sales on a daily basis this would explain
 your totals continuing to increase (and therefore your percentage decreases)
 but the active count stays put until the sales are finalized.

 Of course, this is just guessing. It would definitely be nice to have an
 official word from the Goog.


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



 On Mon, Dec 21, 2009 at 8:32 AM, Greg Donald gdon...@gmail.com wrote:

 On Mon, Dec 21, 2009 at 8:16 AM, Justin Giles jtgi...@gmail.com wrote:
  Well, after the update over night my active installs didn't decrease at
  least.  I'm still missing 15% from what I had 3 days ago (and averaged
 over
  a month prior).

 At this rate I'll have a zero retention rate in a week, including all
 the buyers.  I find it really difficult to believe everyone who ever
 bought my app is now suddenly choosing to uninstall it, at a steady
 rate of a few percent per day.

 Is anyone at Google looking into this?


 --
 Greg Donald
 http://destiney.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.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] Re: Droid - won't rotate image captured from camera? (Camera.Parameters)

2009-12-21 Thread Streets Of Boston
Check by using the content-provider. Do a query on the image-id (can
be obtained from the image-Uri) and request its value of the column
'MediaStore.Images.ImageColumns.ORIENTATION'.

About #2: Yep, doing that in the device using full-resolution will be
hard to do. Not enough memory available for that. You could do it by
using a file (RandomAccessFile) as a 'temporary', writing column by
column to this file and reading it back in row by row. This will be
very slow.

On Dec 21, 11:59 am, Mark Wyszomierski mar...@gmail.com wrote:
 Hi Wu-Cheng,

 I'm not following - I'm using the native camera intent with the Droid.
 So if I take a picture while holding the camera in a portrait
 orientation, then it should write a rotation of 90 degrees into the
 exif header of the output jpeg (while not really rotating the image
 data)? If that's the case, I'm not sure how to proceed. Looks like I
 would have to do the following:

   1) Check the exif header to see if this rotation parameter exists
   2) If it does exist, rotate the image myself before display

 #1 could probably be done using the ExifInterface class, but that's
 only been added to the level 5 sdk, while I'm targeting sdk 3 and
 above.
 #2 could also be done after a lot of downsampling. I'm not sure if
 other applications understand exif headers though. So I'd want to
 rewrite the image data with an actual rotation. Doing this at full
 resolution would be difficult on the device.

 Thanks for your help.

 On Dec 21, 10:37 am, Wu-cheng Li (李務誠) wuchen...@google.com wrote:



  Droid respects setRotation. The problem is Droid does not rotate the entire
  picture. Droid only sets orientation in the EXIF header. Applications need
  to check the orientation in the EXIF header and then rotate it accordingly
  before display.

 http://developer.android.com/reference/android/hardware/Camera.Parame...
  public void setRotation (int rotation)
  Sets the orientation of the device in degrees. For example, suppose the
  natural position of the device is landscape. If the user takes a picture in
  landscape mode in 2048x1536 resolution, the rotation should be set to 0. If
  the user rotates the phone 90 degrees clockwise, the rotation should be set
  to 90. Applications can useOrientationEventListener to set this parameter.
  The camera driver may set orientation in the EXIF header without rotating
  the picture. Or the driver may rotate the picture and the EXIF thumbnail. If
  the Jpeg picture is rotated, the orientation in the EXIF header will be
  missing or 1 (row #0 is top and column #0 is left side).

  The problem is not related to set(rotation, 90) or setRotation(90). They
  are the same except setRotation only exists from 2.0.

  On Sun, Dec 20, 2009 at 1:48 PM, Mark Wyszomierski mar...@gmail.com wrote:
   It looks like what I might have to do is switch my project to the 2.0
   sdk (it's currently at 4). If I see that the OS level my app is
   running on is less than 2.0, then I make this call:

    Camera.Parameters params = camera.getParameters();
    params.set(rotation, 0);
    camera.setParameters(params);

   if it's 2.0 or above, I use this call (added in the 2.0 api):

    Camera.parameters.setRotation(int rotation);

   is this probably the best way to go? I don't know if I could go the
   other direction (stay at sdk level 4, and if I see the user is running
   5, try to somehow invoke the 2.0 api which should be present),

   Thanks

   On Dec 19, 9:09 pm, Mark Wyszomierski mar...@gmail.com wrote:
Thanks, just posted there too. I hope there's a way to get around this
innovation in camera.parameters..

In the worst case, I guess I could check what platform the user is
running on, and use the native camera intent?

Thanks

On Dec 19, 8:55 pm, Mark Murphy mmur...@commonsware.com wrote:

 Mark Wyszomierski wrote:
  I got all the parameters from a Droid for the camera - looks like
  rotation is not one of them... how do you get the camera to rotate
   the
  output?:

  picture-size-
  values=1280x960,1600x1200,2048x1536,2592x1936,2592x1456;mot-postview-
  mode=on;zoom=0;antibanding=auto;zoom-
  supported=true;whitebalance=auto;jpeg-thumbnail-height=240;scene-
  mode=auto;jpeg-quality=95;smooth-zoom-supported=true;preview-format-
  values=yuv422i-yuyv,yuv420sp;focus-mode=auto;preview-
  format=yuv420sp;mot-test-command=;mot-zoom-step=0.5;preview-
  size=560x320;picture-format-values=jpeg,jfif,exif;mot-areas-to-
  focus=0;mot-postview-modes=off,on;flash-mode-
  values=off,on,auto;preview-frame-rate-values=5,10,15,20,24,25,30;mot-
  max-areas-to-focus=1;preview-frame-rate=30;flash-mode=off;effect-
  values=none,mono,sepia,negative,solarize,red-tint,blue-tint,green-
  tint;focus-mode-values=off,auto,infinity,macro;picture-
  size=2048x1536;max-zoom=6;effect=none;jpeg-thumbnail-
  width=320;whitebalance-values=auto,daylight,fluorescent,cloudy-
  

Re: [android-developers] Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-21 Thread Mark Murphy
superjet wrote:
 I had posted a similar thread a while back and received no feedback,
 so let me try to be more clear...
 
 I am able to use Androids components to build the most basic layouts,
 which include images, buttons, text areas, etc. These are like Android
 Lego! I can build the castle.
 
 BUT I want to design my own component, my own Lego, that draws on the
 screen and uses the available area that the Android components have
 not used. ie, I want to have a top layer of buttons, and the rest of
 the screen, whatever it is, I want to use to draw 2d graphics. So, I
 want to make my own Lego, and use it with the other Android Lego.
 However, I'm also trying to be a good developer and making this for
 whatever resolution is thrown my way.
 
 What is the best way to do this considering the deluge of different
 resolutions Android developers must cope with? Is there a way to do a
 table view and return the remaining screen size? Or, am I stuck making
 an entire new box of Lego here?

To be honest, I find this one less clear than the original. I think you
are looking at the problem backwards.

If you create a custom View class (my own Lego), your size will
generally be handed to you, courtesy of the containers (layouts) and
rules (android:layout_width, android:layout_height). You can indicate
some size preferences, if needed.

Hence, the best way to do this considering the deluge of different
resolutions Android developers must cope with? is no different for your
own custom View than it is for anything else -- specify the layout rules
with density-independent dimensions, use RelativeLayout, etc.

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

Android App Developer Training: http://commonsware.com/training

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


Re: [android-developers] Re: Working with the new ContactContracts API

2009-12-21 Thread Dmitri Plotnikov
That's right.  DATA1 is used for the most important data element by
convention.

Email has an unfortunate alias DATA for DATA1.  In 2.1 we will also have
Email.ADDRESS mapping to DATA1.

The DATA1 column is indexed, so doing searches on that column in combination
with a MIMETYPE constraint will be the most efficient.

Cheers,
- Dmitri

On Mon, Dec 21, 2009 at 10:07 AM, Molee leehc...@gmail.com wrote:


 for content of email and note, by convention,  you can put then into
 column data1 directly
 ContactsContract.DataColumns.data1

 i found that there is no object in
 ContactsContract.CommonDataKinds.Email
 representing data1 hence i just put data1 directly and it works

 ContactsContract.CommonDataKinds.Phone.NUMBER = data1 as well

 hope it helps



 On 11月17日, 下午3時13分, EMMNS eihabshad...@gmail.com wrote:
  Hi all,
 
  thanks for your posts, that got me started and going on the new sdk
  2.0, but still facing some problems adding contacts.
 
  let's say i have an array of String has the contacts info
 
  String[] c = new String[] {First name,Last name,mobile number,
  home number, work number, fax number, email address, some
  notes}
 
  please help me adding these to a single contact, I read the code you
  guys posted and helped me to start,
 
  it adds the contact info
  but can't add the email or the notes
 
  also it seems it adds a new contact on every field ??
 
  here is my code:
 
  code
 
  ContentValues values = new ContentValues();
 
  values.put(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, c[1]+
+ c[0]);
 
  Uri rawContactUri = getContentResolver().insert(
  RawContacts.CONTENT_URI, values);
  long rawContactId = ContentUris.parseId(rawContactUri);
 
  values.clear();
  values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId);
  values.put(ContactsContract.Data.MIMETYPE,
  StructuredName.CONTENT_ITEM_TYPE);
  values.put(StructuredName.DISPLAY_NAME, c[1] +   + c[0]);
  getContentResolver().insert(ContactsContract.Data.CONTENT_URI,
  values);
 
  Uri mobileUri = null;
  Uri homeUri = null;
  Uri emailUri = null;
  Uri workUri = null;
  Uri faxUri = null;
  Uri noteUri = null;
 
  mobileUri = Uri.withAppendedPath(rawContactUri,
  ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
  values.clear();
  values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
  ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE);
  values.put(ContactsContract.CommonDataKinds.Phone.IS_SUPER_PRIMARY,
  1);
  values.put(ContactsContract.Data.MIMETYPE,
  ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
  values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[2]);
  getContentResolver().insert(mobileUri, values);
 
  homeUri = Uri.withAppendedPath(rawContactUri,
  ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
  values.clear();
  values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
  ContactsContract.CommonDataKinds.Phone.TYPE_HOME);
  values.put(ContactsContract.Data.MIMETYPE,
  ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
  values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[3]);
  getContentResolver().insert(homeUri, values);
 
  workUri = Uri.withAppendedPath(rawContactUri,
  ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
  values.clear();
  values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
  ContactsContract.CommonDataKinds.Phone.TYPE_WORK);
  values.put(ContactsContract.Data.MIMETYPE,
  ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
  values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[5]);
  getContentResolver().insert(workUri, values);
 
  faxUri = Uri.withAppendedPath(rawContactUri,
  ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
  values.clear();
  values.put(ContactsContract.CommonDataKinds.Phone.TYPE,
  ContactsContract.CommonDataKinds.Phone.TYPE_FAX_HOME);
  values.put(ContactsContract.Data.MIMETYPE,
  ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
  values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[6]);
  getContentResolver().insert(faxUri, values);
 
  emailUri = Uri.withAppendedPath(rawContactUri,
  ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
 
  values.clear();
  values.put(ContactsContract.CommonDataKinds.Email.TYPE,
  ContactsContract.CommonDataKinds.Email.TYPE_OTHER);
  values.put(ContactsContract.Data.MIMETYPE,
  ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE);
  values.put(ContactsContract.CommonDataKinds.Email.DISPLAY_NAME, c[4]);
  getContentResolver().insert(emailUri, values);
 
  noteUri = Uri.withAppendedPath(rawContactUri,
  ContactsContract.Contacts.Data.CONTENT_DIRECTORY);
  values.clear();
  values.put(ContactsContract.Data.MIMETYPE,
  ContactsContract.CommonDataKinds.Note.CONTENT_ITEM_TYPE);
  values.put(ContactsContract.CommonDataKinds.Note.NOTE, c[7]);
  getContentResolver().insert(noteUri, values);
 
  /code
 
  Thank you for your help in advance.
 
  On Nov 2, 5:24 pm, Dmitri Plotnikov dplotni...@google.com wrote:
 
   You can always delegate contact 

[android-developers] Re: Converting a free app to a paid-for

2009-12-21 Thread polyclefsoftware
No, you can't.

At least, the market didn't let me do this the last time I tried
(about 6 weeks ago). Sales on a particular app were near zero, so I
decided to put ads in it and distribute it for free. Once I did so,
the option to toggle it back to paid was permanently disabled.

On Dec 21, 8:57 am, Matt hansen.matt...@gmail.com wrote:
 If your application is a pay application, and you make it free as a
 temporary promotion, can you then charge again?

 Matt

 On Dec 20, 1:58 pm, Mark Murphy mmur...@commonsware.com wrote:



  frantz lohier wrote:
   Is there a way to convert a free app to a paid for ? Does not look like
   this option is available in the upload an Application page. What are
   the options ?

  You cannot start charging for an app that was previously free. You will
  need to release a separate paid app.

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

  _Beginning Android_ from Apress Now Available!

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


[android-developers] Re: Rotate animation applied to full window -- view crops width? How to fix?

2009-12-21 Thread jean-guys
Just to follow up, the desired effect is achieved by hard-coding the
dimensions of the ImageView to the dimensions of the actual image.

On Dec 20, 10:54 am, jean-guys jean...@gmail.com wrote:
 Hi all,

 I have a pretty simple view hierarchy, including an ImageView in a
 FrameLayout with a source drawable that is bigger than the window
 size.  Using scaleType=center the image is cropped and centered, as
 expected, when laid out.

 In response to user interaction we need to rotate the ImageView.  I am
 using a rotate animation XML definition and View.startAnimation().
 This works with one remaining problem: the cropped part of the image
 remains cropped when rotated, so when the image is rotated by 90
 degrees in portrait orientation the image is clearly cropped on the
 top and bottom.  Essentially it looks like a rectangle the size of the
 view window is being rotated, rather than the oversized image in its
 entirety (note it is intentionally oversized in the hope of avoiding
 this cropping problem).  We want the image to fill the screen
 regardless of the angle of rotation.

 What am I missing?

 Thanks in advance for any assistance!

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


Re: [android-developers] Display numeric entities (eg. #35;) in TextView or WebView

2009-12-21 Thread Frank Weiss
I suppose the feed you're reading is correctly formed XML.How are you
parsing it? If you're using say javax.xml.parsers.SAXParser, the entity
escapes should already be decoded once you access the text or attribute as a
java.lang.String.

On Mon, Dec 21, 2009 at 5:22 AM, Patrick Plaatje
patrick.plaa...@ndcvbk.nlwrote:

 Hi All,

 i'm trying to process text which i'm receiving from a RSS feed. In this
 feed all special characters are defined as numeric entities. When i try to
 display these texts in a Text- or WebView, it stops displaying anything
 after encountering the numeric entity.

 Any thoughts?

 Regards,

 Patrick

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Issues debugging Droid with Eclipse

2009-12-21 Thread Frank Weiss
The issue was mostly my bad programming with the UI thread and other things.
I was collecting items with SAXParser using AsyncTask and adding items to a
subclass of ItemizedOverlay. I was calling the populate method for each
added item instead of only once when all items are available (read the fine
print for ItemizedOverlay.size()). Another issue was setting a button text
in the AsyncTask.doInBackground method.

I think in the end, being able to breakpoint the Android source would not
have helped me with multi-threaded debugging.

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

[android-developers] AlarmManager PendingIntents Query

2009-12-21 Thread stanlick
Is there a way to identify PendingIntents sitting on the
AlarmManager?

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


Re: [android-developers] A question regarding AsyncTasks

2009-12-21 Thread Frank Weiss
It was clear to me that the documentation meant the instance of AsyncTask
cannot be executed again.

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

[android-developers] Building Android Applications using J2ME Polish

2009-12-21 Thread Sandeep Ranganath
Hi,

Was just going through J2ME Polish, it supports to build applcations
for various platforms, What are the disavantages i would face if i use
J2ME Polish for developing an application for Android Phones. I have
little info about how J2ME polish doesnt allow us to use the native
commands of android, apart from these, do the Google place any
restriciton on using J2ME polish, any other techincal issues and legal
issues as well.

Regards,
Sandeep

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Droid - How to create a top bar notification during calls.

2009-12-21 Thread Matt
My problem is specific to the Droid.

I can successfully post notifications during calls in the emulator
using 1.5, 1.6, and 2.0.  I can also post notifications on the G1.

However, when I use the Droid, notifications are squelched (as far as
I can tell) during active phone calls.  All other environments
correctly display the notification during calls.

I am not trying to play a sound, I am simply trying to display an icon
in the top notification bar.

Thanks for your help,

Matt


On Dec 21, 10:42 am, Dianne Hackborn hack...@android.com wrote:
 On Mon, Dec 21, 2009 at 6:53 AM, Matt hansen.matt...@gmail.com wrote:
  Are you saying that notifications can not be delivered or can be
  delivered on all Android phones during calls?

 You absolutely can post them.  It is unlikely to me they would cause a sound
 to play, though, if the user is currently talking on the phone.

 You are being very vague so I don't really know what to answer (your first
  post sounded like you were having a problem specific to Droid but
 apparently that is not the case).

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 change widget layout background or hide it dynamically?

2009-12-21 Thread Ryan
I am having this same issue have you found a solution? My current
workaround is to make a new XML layout file for each background that I
want in the imageview. But I can't believe that there isn't a way to
do this in code. Thanks,

- Ryan


On Dec 9, 2:58 pm, pcm2a reeeye...@gmail.com wrote:
 I have a simple layout:
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
                 android:background=@drawable/background
         android:layout_height=fill_parent
         android:layout_width=wrap_content
         android:orientation=vertical

 In my method onUpdate I can get theremoteview:

 RemoteViews remoteView = new RemoteViews(context.getPackageName(),
 R.layout.somelayout);

 I cannot find any information on how to change or hide thebackground
 image.

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


[android-developers] Is it ever OK to use AbsoluteLayout?

2009-12-21 Thread k_day

I understand the problems with assigning a fixed position to UI
components, but I would like to use AbsoluteLayout in a way such that
the position of the components are chosen dynamically, calculated
based on the screen size.

Here is why I am thinking this may be easiest:

I want to display a nXm grid of imageViews on the screen (n,m chosen
by the user) with 0 padding betweeen the imageViews.  With
absoluteLayout, I could easily choose the size of the imageViews and
in a way that maximizes the amount of the screen that is used.

The reason that using relativeLayout or LineraLayouts may not work for
this is because when a user touches an image in this grid, I would
like it to pulse (quickly scale larger than back to its normal
size).  If I scale an imageView using realtive or linear layout, it
would resize the adjacent imageViews (since the padding is 0), which I
don't want.  I would prefer permitting temporary overlapping of the
imageViews.

This is currently the approach I have taken, except instead of
changing the position of imageViews, I am just drawing bitmaps to the
canvas at the locations I calculated.  I can't use the animation
framework, however, on bitmaps that I draw to a canvas.

Is this an acceptable use for AbsoluteLayout, or is there a better way
to achieve what I want to do here?

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


[android-developers] NumberPicker based widgets function different in emulator than phone

2009-12-21 Thread jtoolsdev
TimePicker and DatePicker use NumberPicker which is an internal
widget.  On the emulator the EditText on the widget is focusable and
you can type into it.  On my phone, and HTC Eris, you cannot.  Does
this have something to do with the attributes (which I don't
entirely understand) and HTC maybe setting them differently?  These
are my own test routines and I also downloaded the NumberPicker and
DatePicker source to build my own versions as well as some additional
widgets so I can use them in my program.  Those do allow the EditText
to be focusable.  For consistency it so far looks like I'll have to
rebuild the TimePicker too.  I don't set any attrs in my versions.

- Brian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SDK 1.6, ADT 0.9.3, Eclipse 3.4.2: Problem with Android Editors

2009-12-21 Thread dmanpearl
I have the same problem.  Reversion to Eclipse XML Editors and Tools
v3.0.5 or v3.0.4 did not help or change the symptoms.  My work-around
is to use a text editor.  Any solution?
  - David

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: button Click event inside custom listview.... Help!

2009-12-21 Thread Abhi
That didn't help. :(

Can someone guide me to the right tutorial/sample code?

Thanks,

Abhishek

On Dec 18, 11:03 pm, android09 pranav.jaja...@gmail.com wrote:
 Hi Abhishek,

 You can to through the below example for creatingcustomview. Follow
 the below link.

 http://www.anddev.org/basic_drag_and_drop-t3095.html

 I hope you will get the something from the above example.

 Best Luck.
 Thanks.

 On Dec 18, 7:47 am, Abhi abhishek.r.sha...@gmail.com wrote:



  Hi guys,

  I have my owncustomadapter to create acustomlistviewwith
  checkbox, textview and button in each row. I want to implement onClick
  on Button and take different action based on which row button is
  pressed. How can I use onClickListener in this case? Define it inside
  getView? If so how?

  Thanks

  Abhishek- Hide quoted text -

 - Show quoted text -

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

2009-12-21 Thread Seni Sangrujee
That's disturbing that you dropped 20 positions. I'd been thinking
that this problem was happening to everyone or the changes wouldn't be
enough to change the rankings much. I hadn't noticed my app dropping
in the rankings the last few days, but dropped 3 spots today.

Actually, rereading this thread, John(Radar Now!) said it wasn't
happening to his app.

Is there anything in common with the apps of those of us affected?
Did you guys deploy updates recently?



On Dec 21, 10:16 am, Justin Giles jtgi...@gmail.com wrote:
 Most recent update: +113 downloads, -131 active installs.  Numbers just
 don't add up.  I would not think by chance that this would happen,
 consistently over a 4 day period when a months worth of data says that both
 the downloads increase as well as the active installs.  So far I've lost 16%
 points and I've gone down over 20 positions in the popularity list.  Is my
 application just all of the sudden performing very poorly even though I
 consistently get 4 and 5 star reviews?  Or is there something going on with
 the stats?

 Could anyone with any knowledge about this please respond?

 On Mon, Dec 21, 2009 at 10:01 AM, TreKing treking...@gmail.com wrote:
  I noticed a drop as well (at least 10%) but ... the ACTIVE / TOTAL ratio is
  now actually accurate as far as I can tell.

  Maybe they just adjusted their stats to only count ACTIVE once the user has
  exceeded their refund window and can no longer get a refund?

  If you have a large volume of sales on a daily basis this would explain
  your totals continuing to increase (and therefore your percentage decreases)
  but the active count stays put until the sales are finalized.

  Of course, this is just guessing. It would definitely be nice to have an
  official word from the Goog.

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

  On Mon, Dec 21, 2009 at 8:32 AM, Greg Donald gdon...@gmail.com wrote:

  On Mon, Dec 21, 2009 at 8:16 AM, Justin Giles jtgi...@gmail.com wrote:
   Well, after the update over night my active installs didn't decrease at
   least.  I'm still missing 15% from what I had 3 days ago (and averaged
  over
   a month prior).

  At this rate I'll have a zero retention rate in a week, including all
  the buyers.  I find it really difficult to believe everyone who ever
  bought my app is now suddenly choosing to uninstall it, at a steady
  rate of a few percent per day.

  Is anyone at Google looking into this?

  --
  Greg Donald
 http://destiney.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.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] Re: ($25 reward) GPS not triggering onLocationChanged

2009-12-21 Thread dapaintballer331
This is interesting.

Every time that block of log was sent to logCat, it was due to the
system trying to send the WakefulIntentService a location.
HOWEVER, only a WakefulIntentService was able to activate the gps
activity. (Based on the gps icon in the notification bar)

Once I made the program a regular service, GPS was never activated,
and i therefore never got that block in the logcat again... I wonder
why my phone is having trouble activating GPS via a regular android
service...

On Dec 21, 8:24 am, Mark Murphy mmur...@commonsware.com wrote:
 dapaintballer331 wrote:
  Seems I'm having trouble keeping my service running.
  12-21 02:24:49.060: WARN/MessageQueue(267):
  java.lang.RuntimeException: Handler{43782188} sending message to a
  Handler on a dead thread

 What thread are you using? If this is the main application thread, I'd
 be surprised for you to get this exception -- after all, the thing that
 is logging the exception is on the main application thread.

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

 Android Consulting/App Development: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] Develop Android app using J2ME Polish

2009-12-21 Thread Sandeep Ranganath
Hi,

I  m currently evaluating the pros and cons of devleoping the
application for Android devices using J2ME polish, please send me
accross your views on this. What are the technical issues, legal
issues etc

Regards,
Sandeep

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


[android-developers] Anyone noticing more uninstalls of their app than usual over last weekend/today?

2009-12-21 Thread pawpaw17
I released an upgrade to my app on Saturday night and since have
noticed an unusual number of uninstalls. My app has been out for 8
months, and this is very unusual. Has anyone else noticed this? I'm
wondering if there is anything related to the market, or a new OS
version hitting, or contracts with one of the phones coming up?

Any thoughts would be very appreciated.

Thanks!

pawpaw17

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


Re: [android-developers] Re: button Click event inside custom listview.... Help!

2009-12-21 Thread Patrick Plaatje
Abhishek,

it's kinda hard to resolve this without any code, but here's how i solved
it:

in the main activity, i defined the following:

setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? arg0, View arg1, int
arg2,
long arg3) {
Log.d(this.getClass().getSimpleName, arrayList.get((int) arg3).toString);
}});

so within the onItemClickListener, i make a reference to my ArrayList and
show them in the log.

Hopes it helps,

Regards,

Patrick


2009/12/21 Abhi abhishek.r.sha...@gmail.com

 That didn't help. :(

 Can someone guide me to the right tutorial/sample code?

 Thanks,

 Abhishek

 On Dec 18, 11:03 pm, android09 pranav.jaja...@gmail.com wrote:
  Hi Abhishek,
 
  You can to through the below example for creatingcustomview. Follow
  the below link.
 
  http://www.anddev.org/basic_drag_and_drop-t3095.html
 
  I hope you will get the something from the above example.
 
  Best Luck.
  Thanks.
 
  On Dec 18, 7:47 am, Abhi abhishek.r.sha...@gmail.com wrote:
 
 
 
   Hi guys,
 
   I have my owncustomadapter to create acustomlistviewwith
   checkbox, textview and button in each row. I want to implement onClick
   on Button and take different action based on which row button is
   pressed. How can I use onClickListener in this case? Define it inside
   getView? If so how?
 
   Thanks
 
   Abhishek- Hide quoted text -
 
  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
Met vriendelijke groet,


Patrick Plaatje

NDC|VBK de uitgevers
Sixmastraat 32, 8915 PA Leeuwarden
Postbus 394, 8901 BD Leeuwarden
T   (058) - 284 5044
M  (06) - 158 966 34

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Anyone noticing more uninstalls of their app than usual over last weekend/today?

2009-12-21 Thread Greg Donald
On Mon, Dec 21, 2009 at 3:11 PM, pawpaw17 georgefraz...@yahoo.com wrote:
 I released an upgrade to my app on Saturday night and since have
 noticed an unusual number of uninstalls. My app has been out for 8
 months, and this is very unusual. Has anyone else noticed this? I'm
 wondering if there is anything related to the market, or a new OS
 version hitting, or contracts with one of the phones coming up?

 Any thoughts would be very appreciated.

 Thanks!

 pawpaw17

Yeah, stuff seems broken for many of us:

http://groups.google.com/group/android-developers/browse_thread/thread/a16e23d9e6f5eea3?hl=en



-- 
Greg Donald
http://destiney.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: Are the market stats for developers broken?

2009-12-21 Thread greenrift
I put out a bug update for mine on Friday evening.


On Dec 21, 3:00 pm, Seni Sangrujee sangru...@gmail.com wrote:
 That's disturbing that you dropped 20 positions. I'd been thinking
 that this problem was happening to everyone or the changes wouldn't be
 enough to change the rankings much. I hadn't noticed my app dropping
 in the rankings the last few days, but dropped 3 spots today.

 Actually, rereading this thread, John(Radar Now!) said it wasn't
 happening to his app.

 Is there anything in common with the apps of those of us affected?
 Did you guys deploy updates recently?

 On Dec 21, 10:16 am, Justin Giles jtgi...@gmail.com wrote:

  Most recent update: +113 downloads, -131 active installs.  Numbers just
  don't add up.  I would not think by chance that this would happen,
  consistently over a 4 day period when a months worth of data says that both
  the downloads increase as well as the active installs.  So far I've lost 16%
  points and I've gone down over 20 positions in the popularity list.  Is my
  application just all of the sudden performing very poorly even though I
  consistently get 4 and 5 star reviews?  Or is there something going on with
  the stats?

  Could anyone with any knowledge about this please respond?

  On Mon, Dec 21, 2009 at 10:01 AM, TreKing treking...@gmail.com wrote:
   I noticed a drop as well (at least 10%) but ... the ACTIVE / TOTAL ratio 
   is
   now actually accurate as far as I can tell.

   Maybe they just adjusted their stats to only count ACTIVE once the user 
   has
   exceeded their refund window and can no longer get a refund?

   If you have a large volume of sales on a daily basis this would explain
   your totals continuing to increase (and therefore your percentage 
   decreases)
   but the active count stays put until the sales are finalized.

   Of course, this is just guessing. It would definitely be nice to have an
   official word from the Goog.

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

   On Mon, Dec 21, 2009 at 8:32 AM, Greg Donald gdon...@gmail.com wrote:

   On Mon, Dec 21, 2009 at 8:16 AM, Justin Giles jtgi...@gmail.com wrote:
Well, after the update over night my active installs didn't decrease at
least.  I'm still missing 15% from what I had 3 days ago (and averaged
   over
a month prior).

   At this rate I'll have a zero retention rate in a week, including all
   the buyers.  I find it really difficult to believe everyone who ever
   bought my app is now suddenly choosing to uninstall it, at a steady
   rate of a few percent per day.

   Is anyone at Google looking into this?

   --
   Greg Donald
  http://destiney.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.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] Re: Are the market stats for developers broken?

2009-12-21 Thread pawpaw17
I put out a bug update Saturday night and, like you guys, the
floodgates opened on uninstalls. What makes no sense is I had a
large number of uninstalls Monday morning which is always light for
activity.

I want someone from Google to respond to this. I think there is
something wrong with the market.

My app hasn't slipped in the rankings.

Also, my app is free, some of the apps mentioned above are paid.

If anyone finds something out, please post!!

pawpaw17

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


[android-developers] Re: button Click event inside custom listview.... Help!

2009-12-21 Thread Patrick Plaatje
My Apologies,

i didn;t see the complete message thread earlier (thanx Gmail!). I hope my
post did help you though. If not, reply again and i'll see if i can help.

Regards,

Patrick

-- Forwarded message --
From: Patrick Plaatje pplaa...@gmail.com
Date: 2009/12/21
Subject: Re: [android-developers] Re: button Click event inside custom
listview Help!
To: android-developers@googlegroups.com


Abhishek,

it's kinda hard to resolve this without any code, but here's how i solved
it:

in the main activity, i defined the following:

setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? arg0, View arg1, int
arg2,
long arg3) {
Log.d(this.getClass().getSimpleName, arrayList.get((int) arg3).toString);
}});

so within the onItemClickListener, i make a reference to my ArrayList and
show them in the log.

Hopes it helps,

Regards,

Patrick


2009/12/21 Abhi abhishek.r.sha...@gmail.com

That didn't help. :(

 Can someone guide me to the right tutorial/sample code?

 Thanks,

 Abhishek

 On Dec 18, 11:03 pm, android09 pranav.jaja...@gmail.com wrote:
  Hi Abhishek,
 
  You can to through the below example for creatingcustomview. Follow
  the below link.
 
  http://www.anddev.org/basic_drag_and_drop-t3095.html
 
  I hope you will get the something from the above example.
 
  Best Luck.
  Thanks.
 
  On Dec 18, 7:47 am, Abhi abhishek.r.sha...@gmail.com wrote:
 
 
 
   Hi guys,
 
   I have my owncustomadapter to create acustomlistviewwith
   checkbox, textview and button in each row. I want to implement onClick
   on Button and take different action based on which row button is
   pressed. How can I use onClickListener in this case? Define it inside
   getView? If so how?
 
   Thanks
 
   Abhishek- Hide quoted text -
 
  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
Met vriendelijke groet,


Patrick Plaatje

NDC|VBK de uitgevers
Sixmastraat 32, 8915 PA Leeuwarden
Postbus 394, 8901 BD Leeuwarden
T   (058) - 284 5044
M  (06) - 158 966 34



-- 
Met vriendelijke groet,


Patrick Plaatje

NDC|VBK de uitgevers
Sixmastraat 32, 8915 PA Leeuwarden
Postbus 394, 8901 BD Leeuwarden
T   (058) - 284 5044
M  (06) - 158 966 34

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

2009-12-21 Thread Greg Donald
On Mon, Dec 21, 2009 at 3:30 PM, pawpaw17 georgefraz...@yahoo.com wrote:
 I want someone from Google to respond to this.

This one guy said something earlier here:

http://www.google.com/support/forum/p/Android+Market/thread?tid=4c5752ca3e5af4ffhl=en

 Also, my app is free, some of the apps mentioned above are paid.

I have paid and free apps that are both showing lost/reduced stats.



-- 
Greg Donald
http://destiney.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: button Click event inside custom listview.... Help!

2009-12-21 Thread Abhi
Hi Patrick,

Thanks for getting back.

I don't think I understand your solution completely. Maybe I am too
exhausted to think straight.

Here is what I am trying to do, I have a custom listview with an icon,
textview and button on each row. There are 6 items in the listview and
each row button would bring up a different activity. I want to define
button onClick event inside my getView method to listen to the button
clicks on each row and take necessary action. As you can see, I am
setting the row icons under getView based on position. I want to use
the position information to now listen to respective button clicks.
Clueless!

Would you be able to help?


class CustomAdapter extends ArrayAdapter
{
CustomAdapter()
{
super(kis.this, R.layout.row_kis, items);
}


public View getView(int position, View
convertView, ViewGroup
parent)
{
LayoutInflater inflater=getLayoutInflater();
View row=inflater.inflate(R.layout.row_kis,
parent, false);
TextView label=(TextView)row.findViewById
(R.id.label);
label.setText(items[position]);
ImageView icon=(ImageView)row.findViewById
(R.id.icon);
Button row_button = (Button) findViewById
(R.id.btlst1);


if (items[position].compareTo(Abhi) == 0) {


  icon.setImageResource
(R.drawable.alan);   //set icon for row with name Abhi


}


.. and so on for other rows


   }
}


Thanks,

Abhishek

On Dec 21, 4:31 pm, Patrick Plaatje pplaa...@gmail.com wrote:
 My Apologies,

 i didn;t see the complete message thread earlier (thanx Gmail!). I hope my
 post did help you though. If not, reply again and i'll see if i can help.

 Regards,

 Patrick



 -- Forwarded message --
 From: Patrick Plaatje pplaa...@gmail.com
 Date: 2009/12/21
 Subject: Re: [android-developers] Re: button Click event inside custom

 listview Help!
 To: android-developers@googlegroups.com

 Abhishek,

 it's kinda hard to resolve this without any code, but here's how i solved
 it:

 in the main activity, i defined the following:

 setOnItemClickListener(new OnItemClickListener() {
                 public void onItemClick(AdapterView? arg0, View arg1, int
 arg2,
                         long arg3) {
 Log.d(this.getClass().getSimpleName, arrayList.get((int) arg3).toString);
 }});

 so within the onItemClickListener, i make a reference to my ArrayList and
 show them in the log.

 Hopes it helps,

 Regards,

 Patrick

 2009/12/21 Abhi abhishek.r.sha...@gmail.com

 That didn't help. :(

  Can someone guide me to the right tutorial/sample code?

  Thanks,

  Abhishek

  On Dec 18, 11:03 pm, android09 pranav.jaja...@gmail.com wrote:
   Hi Abhishek,

   You can to through the below example for creatingcustomview. Follow
   the below link.

  http://www.anddev.org/basic_drag_and_drop-t3095.html

   I hope you will get the something from the above example.

   Best Luck.
   Thanks.

   On Dec 18, 7:47 am, Abhi abhishek.r.sha...@gmail.com wrote:

Hi guys,

I have my owncustomadapter to create acustomlistviewwith
checkbox, textview and button in each row. I want to implement onClick
on Button and take different action based on which row button is
pressed. How can I use onClickListener in this case? Define it inside
getView? If so how?

Thanks

Abhishek- Hide quoted text -

   - Show quoted text -

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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

 --
 Met vriendelijke groet,

 Patrick Plaatje

 NDC|VBK de uitgevers
 Sixmastraat 32, 8915 PA Leeuwarden
 Postbus 394, 8901 BD Leeuwarden
 T   (058) - 284 5044
 M  (06) - 158 966 34

 --
 Met vriendelijke groet,

 Patrick Plaatje

 NDC|VBK de uitgevers
 Sixmastraat 32, 8915 PA Leeuwarden
 Postbus 394, 8901 BD Leeuwarden
 T   (058) - 284 5044
 M  (06) - 158 966 34- Hide quoted text -

 - Show quoted text -

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

2009-12-21 Thread Jae Chang
HOW DO I RUN SAMPLE CODE I GOT FROM ANDROID PAGE IN ECLIPSE WITH
ANDROID ADT/AVD/SDK?
Thanks for helping this n00b out. I got that USB driver thing and
other stuff you explained kind of...

On Dec 19, 8:10 pm, Frank Weiss fewe...@gmail.com wrote:
 Info about the USB driver is on the developer.android.com web site 
 here:http://developer.android.com/sdk/win-usb.html

 It takes just a little effort to learn the Eclipse IDE, but it's well worth
 it, IMO. To open the Debug perspective, choose Window + Other + Debug. Then
 choose Run + Debug Configurations. Select Android Application and click
 the New launch configuration button. Further info on Eclipse debug
 perspective is OT for this mail list, get help from Eclipse support. Once
 you have it going, you can launch your Android app in an AVD or on a device,
 see what exceptions are thrown, set breakpoints, inspect your code
 variables, view the logcat output, etc. This can also be done from the
 command line Andorid SDK tools such as adb, etc., but many people find the
 Eclipse UI more productive and easier to use.

 On Sat, Dec 19, 2009 at 12:31 AM, Jae Chang jaehach...@gmail.com wrote:
  how do i run sample codes? (most important)
  and what do u mean by debug perspective, how do i run that?
  and how do i install USB driver, like usb driver patch thing in
  Android SDK, ADT?

  On Dec 18, 2:06 pm, Frank Weiss fewe...@gmail.com wrote:
   To run on a phone, install the USB driver. For development in Eclipse,
   just
   use the Debug perspective - it will automatically create the .apk,
  download
   to the phone, and run it.

   On Dec 18, 2009 11:24 AM, Jae Chang jaehach...@gmail.com wrote:

   I just followed the direction on google code page to set up java IDE,
   eclipse and android sdk and i tried all the steps to go hello
   world app. now i want to try to run other sample codes provided by
   google android team.
   i downloaded zip file fromhttp://android-developers.blogspot.com/?hl=en
   and i took out a folder out of it, but how do i run it in eclipse then
   execute in android sdk?
   and how do i repackage the file to apk to run it in a phone?

   i want to be able to try samples and how they run so that i can start
   it by using sample codes to write my own code (i have an electrical
   engineeering degree from college and i did c and c++ coding though it
   was very basic, but i can say i can learn what is explained with
   proper steps)

   tell me where i can find the steps to run or just tell me how to do
   it.

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


Re: [android-developers] Re: button Click event inside custom listview.... Help!

2009-12-21 Thread Patrick Plaatje
Hi Abhishek,

what i did in my solution was not setting the onClick listener in the
getView method, but rather attach an onItemClickListener to the listview:

lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? arg0, View arg1, int
arg2,
long arg3) {
Intent i = new Intent(act, ArticleDetail.class);
Log.d(Clicked, args= + arg0 + ,  + arg1 + ,  +
arg2 + , +arg3);
i.putExtra(articleId, messages.get((int)
arg3).getGuid());
act.startActivity(i);
}
});

where lv is a ListView object. The arg3 long is getting the position of the
view, which in my case corresponds to the position in my arraylist. So a
click on my row starts creates a new Intent and starts the activity.

This solution however is just for a ListView object as you attach an onclick
listener to the complete item of the listview. Is your objective similar of
do you need the actual buttonclick?

Regards,

Patrick


2009/12/21 Abhi abhishek.r.sha...@gmail.com

 Hi Patrick,

 Thanks for getting back.

 I don't think I understand your solution completely. Maybe I am too
 exhausted to think straight.

 Here is what I am trying to do, I have a custom listview with an icon,
 textview and button on each row. There are 6 items in the listview and
 each row button would bring up a different activity. I want to define
 button onClick event inside my getView method to listen to the button
 clicks on each row and take necessary action. As you can see, I am
 setting the row icons under getView based on position. I want to use
 the position information to now listen to respective button clicks.
 Clueless!

 Would you be able to help?


 class CustomAdapter extends ArrayAdapter
{
CustomAdapter()
{
super(kis.this, R.layout.row_kis, items);
}


public View getView(int position, View
 convertView, ViewGroup
 parent)
{
LayoutInflater inflater=getLayoutInflater();
View row=inflater.inflate(R.layout.row_kis,
 parent, false);
TextView label=(TextView)row.findViewById
 (R.id.label);
label.setText(items[position]);
ImageView icon=(ImageView)row.findViewById
 (R.id.icon);
Button row_button = (Button) findViewById
 (R.id.btlst1);


if (items[position].compareTo(Abhi) == 0) {


  icon.setImageResource
 (R.drawable.alan);   //set icon for row with name Abhi


}


.. and so on for other rows


   }
}


 Thanks,

 Abhishek

 On Dec 21, 4:31 pm, Patrick Plaatje pplaa...@gmail.com wrote:
  My Apologies,
 
  i didn;t see the complete message thread earlier (thanx Gmail!). I hope
 my
  post did help you though. If not, reply again and i'll see if i can help.
 
  Regards,
 
  Patrick
 
 
 
  -- Forwarded message --
  From: Patrick Plaatje pplaa...@gmail.com
  Date: 2009/12/21
  Subject: Re: [android-developers] Re: button Click event inside custom
 
  listview Help!
  To: android-developers@googlegroups.com
 
  Abhishek,
 
  it's kinda hard to resolve this without any code, but here's how i solved
  it:
 
  in the main activity, i defined the following:
 
  setOnItemClickListener(new OnItemClickListener() {
  public void onItemClick(AdapterView? arg0, View arg1,
 int
  arg2,
  long arg3) {
  Log.d(this.getClass().getSimpleName, arrayList.get((int) arg3).toString);
  }});
 
  so within the onItemClickListener, i make a reference to my ArrayList and
  show them in the log.
 
  Hopes it helps,
 
  Regards,
 
  Patrick
 
  2009/12/21 Abhi abhishek.r.sha...@gmail.com
 
  That didn't help. :(
 
   Can someone guide me to the right tutorial/sample code?
 
   Thanks,
 
   Abhishek
 
   On Dec 18, 11:03 pm, android09 pranav.jaja...@gmail.com wrote:
Hi Abhishek,
 
You can to through the below example for creatingcustomview. Follow
the below link.
 
   http://www.anddev.org/basic_drag_and_drop-t3095.html
 
I hope you will get the something from the above example.
 
Best Luck.
Thanks.
 
On Dec 18, 7:47 am, Abhi abhishek.r.sha...@gmail.com wrote:
 
 Hi guys,
 
 I have my owncustomadapter to create acustomlistviewwith
 checkbox, textview and button in each row. I want to implement
 onClick
 on Button and take different action based on which row button is
 pressed. How can I use onClickListener in this case? Define it
 inside
 getView? If so how?
 
 Thanks
 
 Abhishek- Hide quoted text -
 
- Show quoted text -
 
   --
   You received this message because you are subscribed to the Google
   Groups 

[android-developers] Re: android.intent.category.DESK_DOCK

2009-12-21 Thread Wes
Good post, Nat.  Thanks for the link to the other site.  I was trying
to do the same thing as you with my Droid (override Motorola's default
multimedia station thing) and your link answered my question.  I
appreciate it.

On Dec 11, 4:56 pm, Nat nathamm...@gmail.com wrote:
 Anyone know anything about android.intent.category.DESK_DOCK?

 I am trying to get my app to run when in the desk dock similar to what
 was posted here:

 http://www.mail-archive.com/android-developers@googlegroups.com/msg64...

 Didn't have any luck.

 Also wondering why a search at this site didn't return this same
 result.

 Thanks,
 Nat

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


[android-developers] Audio Video recording on Android.

2009-12-21 Thread Anu
Hi,
   I am trying to develop an app which streams live audio/video. I
have the mediarecorder to record both audio, video frames , and it
does so. But the thing is it records a chunk of audio and then records
a chunk of video frames and then records a chunk of audio frames to
the file. How do I determine where my audio frames start and where the
video frames start?. Also is there any way to figure out the Video
frame length ?. Iam really stuck at this point and any help will be
greatly appreciated. This is how I initialize the mediarecorder in my
app,

mMediaRecorder = new MediaRecorder();
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setOutputFormat
(MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
mMediaRecorder.setVideoFrameRate(8);
mMediaRecorder.setVideoEncoder
(MediaRecorder.VideoEncoder.MPEG_4_SP);

mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);


Regards,
Anu.

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


[android-developers] subclassed Drawable disables AlphaAnimation?

2009-12-21 Thread kostmo
I have been applying a simultaneous rotate and alpha animation to an
ImageView using AnimationSet.  It was working fine when I set a Bitmap
as the image with Image.setImageBitmap(my_bitmap).

I then extended the Drawable class with my own drawing routine.  In my
custom drawable I do some porter-duff compositing on the bitmap i was
using earlier.  I set the image with Image.setImageDrawable( new
MyCustomDrawable( my_bitmap ) ) Now my animation rotates but no longer
performs the alpha transition!  What's wrong?

One of the things I have tried is returning different values from
getOpacity() in my Drawable. None of PixelFormat.TRANSLUCENT,
PixelFormat.TRANSPARENT, PixelFormat.OPAQUE, or PixelFormat.UNKNOWN
work.

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


[android-developers] Define what activity will start the task on Recent Apps menu

2009-12-21 Thread André Oriani
The Recent menu apps( the one after a long home key preess) can do two
things:

1- If the task for the app is still running it will the resume the
activity on the top of the stack of the task
2 - Otherwise it launches the activity that has started the task, no
matter if it is not the the activity with category LAUNCHER .

Is there any clever way to force the recent apps menu  to always start
the category with category LAUNCHER ?  The excludeFromRecentApps tag
has the undesirable effect of remove application from the recent apps
menu. I don't wanna to be forced to check the LAUNCHED_FROM_HISTORY
tags and launch the correct activity, as it sound like a workaround
for me .

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: Will the droid with andoid 2.0 get updates that give us more home screens?

2009-12-21 Thread André Oriani
Have you heard of Moto CLIQ with Motoblur ? So it has 7 screens

On 8 nov, 17:18, Scott Diener kewlsco...@gmail.com wrote:
 I love mydroid.

 But it seems unfair that the best android device has the least amount
 of home screens.

 Three isnt nearly enough.

 The HTC eris has seven.

 The hero has 10

 What is up with this.

 Why are we getting punished.

 Please let me know if there are updates that will give us more.

 even iphone has 11

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


[android-developers] SDK and Linux 64 bits

2009-12-21 Thread Nanard
Hi,

I wonder if someday the SDK will run fine on Linux 64 bits.  I
understand it's not a priority for Google team, but 64bits desktop OS
are becoming common...

My case : Mandriva 2010 64 bits, Eclipse 64 bits, SDK 1.6 : OK to
create code  launch emulator.


But :
- adb never find my phone linked to USB cable (it was OK before on
Mandriva 32 bits)
- TTS also doesn't work well on the emulator  (it was OK in Mandriva
32 bits).

Do you think the problem is with Mandriva ?  or in Android SDK ?

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


Re: [android-developers] SDK and Linux 64 bits

2009-12-21 Thread Dan Sherman
Works fine on Ubuntu 9.04, and 9.10 x86_64...

Haven't tried Mandriva, but it should be possible...

- Dan

On Mon, Dec 21, 2009 at 6:17 PM, Nanard bsegon...@free.fr wrote:

 Hi,

 I wonder if someday the SDK will run fine on Linux 64 bits.  I
 understand it's not a priority for Google team, but 64bits desktop OS
 are becoming common...

 My case : Mandriva 2010 64 bits, Eclipse 64 bits, SDK 1.6 : OK to
 create code  launch emulator.


 But :
 - adb never find my phone linked to USB cable (it was OK before on
 Mandriva 32 bits)
 - TTS also doesn't work well on the emulator  (it was OK in Mandriva
 32 bits).

 Do you think the problem is with Mandriva ?  or in Android SDK ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: The GPS Shutdown Thing

2009-12-21 Thread Mark Wyszomierski
I was able to confirm this on an HTC Hero. If the refresh rate is a
value over ~35 seconds, the GPS icon will sometimes get stuck on the
notification bar. Setting a refresh rate of 1 second takes the
notification off the bar without fail. Until the next HTC Hero update,
anyway!

On Dec 20, 7:07 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Alex, even if you use register / remove in onResume() / onPause(),
 you're saying you still see the GPS icon get stuck on the notification
 bar, unless you set your interval rate to something less than 35
 seconds?:

   @Override
   protected void onPause() {
       super.onPause();
       locationManager.removeUpdates(this);
   }

   @Override
   protected void onResume() {
       super.onResume();
       locationManager.requestLocationUpdates(...);
   }

 I made a test app with the above structure, and sometimes the GPS icon
 will still get stuck on the notification bar. I'm using an interval of
 two minutes. I wonder if I have to set it to  35 seconds to get this
 to stop? What a pain.

 Thanks

 On Dec 8, 3:28 pm, Alex acni...@gmail.com wrote:



  I see that too. There's not much more we can do other than release it
  in onPause or onDestroy.

  On Dec 5, 8:42 pm, Mark Wyszomierski mar...@gmail.com wrote:

   Actually on the G1 running 1.5, theGPSicon doesn't remove itself
   from the notifications bar if the phone goes into sleep mode while you
   have a listener registered (even though I'm deregistering onPause()).
   Example:

    1) on app start, register listener forgps.
    2) onPause() to home screen, log shows listener deregistered, icon
   disappears.
    3) bring app to foreground again,gpslistener is registered, icon is
   showing.
    4) let phone fall asleep with your activity in the foreground
    5) onPause() is still called, deregistering listener, log shows
   deregister event.
    5) hit the menu key to wake the phone (but not completely awake yet)
    7)gpsicon is still in status bar.

   I'm not sure ifgpsis actually running in this state, or it's just
   stuck on the titlebar. I'm hoping it's just stuck on the titlebar when
   falling asleep...

   Thanks

   On Dec 5, 12:25 am, Alex acni...@gmail.com wrote:

This same code works fine on a G1 (1.5/1.6), Magic, Droid, Cliq,
Samsung Behold and Moment.  I was previously using a 10 minute update
interval.

I think it was the firmware update Sprint/HTC applied recently.  While
it fixed many of the gigantic bugs with theHero, it introduced this
one.

I confirmed it with this test code:

public class GPSBugActivity extends Activity implements
LocationListener
{
        private static final int MIN_TIME = 6; // 1 minute
        private static final int MIN_DISTANCE = 1000; // 1 kilometer

        private LocationManager locationManager = null;

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

                locationManager = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);
                
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
MIN_TIME, MIN_DISTANCE, this);
        }

        @Override
        protected void onDestroy()
        {
                super.onDestroy();

                locationManager.removeUpdates(this);
        }

        @Override
        public void onLocationChanged(Location arg0)
        {
        }

        @Override
        public void onProviderDisabled(String arg0)
        {
        }

        @Override
        public void onProviderEnabled(String arg0)
        {
        }

        @Override
        public void onStatusChanged(String arg0, int arg1, Bundle arg2)
        {
        }

}

The log had the fact that it was removing the listener...but it
doesn't seem to matter...

12-05 00:20:46.008: DEBUG/LocationManager(1941): removeUpdates:
listener = com.gpsbug.gpsbugactiv...@4348f94012-05 00:20:50.201: DEBUG/
LocationManagerService(70): CdmaPollingThread exiting

I'm still not sure if it's actually running theGPSor just flashing
the icon, but either way it looks bad to the end user.

-Alex

On Dec 5, 12:04 am, Mark Wyszomierski mar...@gmail.com wrote:

 Alex, have you tried a simple test of just registering, then
 deregistering the listeners in an otherwise empty project? On my
 G1/1.5, I don't get this behavior, theGPSicon goes away shortly
 after a deregister. If it's a quirk on that device, that is worrisome.
 In that case, many apps will burn out the user's battery?

 Mark

 On Dec 4, 11:57 pm, Alex acni...@gmail.com wrote:

  I can confirm that an update interval of greater than 35 seconds
  causes theGPSstatus icon to blink on an Sprint 

[android-developers] Re: Is it ever OK to use AbsoluteLayout?

2009-12-21 Thread Paul Turchenko
I would suggest creating your own layout for this purpose.

On Dec 21, 10:01 pm, k_day kevin.r@gmail.com wrote:
 I understand the problems with assigning a fixed position to UI
 components, but I would like to use AbsoluteLayout in a way such that
 the position of the components are chosen dynamically, calculated
 based on the screen size.

 Here is why I am thinking this may be easiest:

 I want to display a nXm grid of imageViews on the screen (n,m chosen
 by the user) with 0 padding betweeen the imageViews.  With
 absoluteLayout, I could easily choose the size of the imageViews and
 in a way that maximizes the amount of the screen that is used.

 The reason that using relativeLayout or LineraLayouts may not work for
 this is because when a user touches an image in this grid, I would
 like it to pulse (quickly scale larger than back to its normal
 size).  If I scale an imageView using realtive or linear layout, it
 would resize the adjacent imageViews (since the padding is 0), which I
 don't want.  I would prefer permitting temporary overlapping of the
 imageViews.

 This is currently the approach I have taken, except instead of
 changing the position of imageViews, I am just drawing bitmaps to the
 canvas at the locations I calculated.  I can't use the animation
 framework, however, on bitmaps that I draw to a canvas.

 Is this an acceptable use for AbsoluteLayout, or is there a better way
 to achieve what I want to do here?

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


[android-developers] Re: Droid - won't rotate image captured from camera? (Camera.Parameters)

2009-12-21 Thread Mark Wyszomierski
Alright thanks all, got this working. On 2.0+ devices, I use the
ExifInterface class to see if the image needs to be rotated. If so, I
can load the image at a downsampled size and do the rotation myself.
Like Streets Of Boston pointed out, I don't know of a good way to do
the rotation of the full high-res image.

Thanks

On Dec 21, 1:16 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Check by using the content-provider. Do a query on the image-id (can
 be obtained from the image-Uri) and request its value of the column
 'MediaStore.Images.ImageColumns.ORIENTATION'.

 About #2: Yep, doing that in the device using full-resolution will be
 hard to do. Not enough memory available for that. You could do it by
 using a file (RandomAccessFile) as a 'temporary', writing column by
 column to this file and reading it back in row by row. This will be
 very slow.

 On Dec 21, 11:59 am, Mark Wyszomierski mar...@gmail.com wrote:



  Hi Wu-Cheng,

  I'm not following - I'm using the native camera intent with the Droid.
  So if I take a picture while holding the camera in a portrait
  orientation, then it should write a rotation of 90 degrees into the
  exif header of the output jpeg (while not really rotating the image
  data)? If that's the case, I'm not sure how to proceed. Looks like I
  would have to do the following:

    1) Check the exif header to see if this rotation parameter exists
    2) If it does exist, rotate the image myself before display

  #1 could probably be done using the ExifInterface class, but that's
  only been added to the level 5 sdk, while I'm targeting sdk 3 and
  above.
  #2 could also be done after a lot of downsampling. I'm not sure if
  other applications understand exif headers though. So I'd want to
  rewrite the image data with an actual rotation. Doing this at full
  resolution would be difficult on the device.

  Thanks for your help.

  On Dec 21, 10:37 am, Wu-cheng Li (李務誠) wuchen...@google.com wrote:

   Droid respects setRotation. The problem is Droid does not rotate the 
   entire
   picture. Droid only sets orientation in the EXIF header. Applications need
   to check the orientation in the EXIF header and then rotate it accordingly
   before display.

  http://developer.android.com/reference/android/hardware/Camera.Parame...
   public void setRotation (int rotation)
   Sets the orientation of the device in degrees. For example, suppose the
   natural position of the device is landscape. If the user takes a picture 
   in
   landscape mode in 2048x1536 resolution, the rotation should be set to 0. 
   If
   the user rotates the phone 90 degrees clockwise, the rotation should be 
   set
   to 90. Applications can useOrientationEventListener to set this parameter.
   The camera driver may set orientation in the EXIF header without rotating
   the picture. Or the driver may rotate the picture and the EXIF thumbnail. 
   If
   the Jpeg picture is rotated, the orientation in the EXIF header will be
   missing or 1 (row #0 is top and column #0 is left side).

   The problem is not related to set(rotation, 90) or setRotation(90). They
   are the same except setRotation only exists from 2.0.

   On Sun, Dec 20, 2009 at 1:48 PM, Mark Wyszomierski mar...@gmail.com 
   wrote:
It looks like what I might have to do is switch my project to the 2.0
sdk (it's currently at 4). If I see that the OS level my app is
running on is less than 2.0, then I make this call:

 Camera.Parameters params = camera.getParameters();
 params.set(rotation, 0);
 camera.setParameters(params);

if it's 2.0 or above, I use this call (added in the 2.0 api):

 Camera.parameters.setRotation(int rotation);

is this probably the best way to go? I don't know if I could go the
other direction (stay at sdk level 4, and if I see the user is running
5, try to somehow invoke the 2.0 api which should be present),

Thanks

On Dec 19, 9:09 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Thanks, just posted there too. I hope there's a way to get around this
 innovation in camera.parameters..

 In the worst case, I guess I could check what platform the user is
 running on, and use the native camera intent?

 Thanks

 On Dec 19, 8:55 pm, Mark Murphy mmur...@commonsware.com wrote:

  Mark Wyszomierski wrote:
   I got all the parameters from a Droid for the camera - looks like
   rotation is not one of them... how do you get the camera to rotate
the
   output?:

   picture-size-
   values=1280x960,1600x1200,2048x1536,2592x1936,2592x1456;mot-postview-
   mode=on;zoom=0;antibanding=auto;zoom-
   supported=true;whitebalance=auto;jpeg-thumbnail-height=240;scene-
   mode=auto;jpeg-quality=95;smooth-zoom-supported=true;preview-format-
   values=yuv422i-yuyv,yuv420sp;focus-mode=auto;preview-
   format=yuv420sp;mot-test-command=;mot-zoom-step=0.5;preview-
   

[android-developers] Re: Using new sdk methods on devices running older sdks?

2009-12-21 Thread Mark Wyszomierski
Thanks Mark, all works well as directed.

On Dec 21, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote:
 Mark Wyszomierski wrote:
  Hi,

  I'm using the level 5 sdk to compile my app, but set my target to sdk
  level 3 in my manifest. All is fine.

  I may need to use some level 5 classes (ExifInterface) though. What's
  the right way to go about using them while not fouling things up for
  devices running older sdk versions? Do we simply restrict use of the
  newer API methods to completely separate class files? Something like
  this:

    // Test.java
    class Test
    {
        public boolean sdkDependentItem() {
            if (Build.VERSION.SDK.equals(5)) {
                return (new sdk5()).getItem();
            }
            else {
                return (new sdk3and4()).getItem();
            }
        }
     }

    // sdk5.java
    class sdk5 {
        public boolean getItem() {
            // can use sdk level 5 apis in here ok.
        }
    }

    // sdk3and4.java
    class sdk3and4 {
        public boolean getItem() {
            // can use sdk level 3 and 4 apis in here ok.
        }
    }

  so as long as the api methods are completely separated into files that
  the older devices won't invoke, we should be ok?

 I wouldn't do:

 if (Build.VERSION.SDK.equals(5)) {

 Instead, parse it to an integer and do a =5 comparison. After all, most
 DROIDs are now on API 6 (i.e., Android 2.0.1). And, once you drop older
 SDK support, you can use SDK_INT and skip the parse step.

 If you are going to make the request a lot, you might consider having
 your two implementations extend a common abstract class or implement a
 common interface. Then, you can make the determination of which one to
 use once and hold onto that object, calling it by the common interface
 as needed.

 Otherwise, the notion of if I don't load the class, there will be no
 harm in it referencing newer API capabilities is sound.

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

 _The Busy Coder's Guide to Android Development_ Version 2.8
 Available!

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


Re: [android-developers] Using new sdk methods on devices running older sdks?

2009-12-21 Thread Dianne Hackborn
In a lot of cases you can probably avoid checking the API version at all.
 For example as Andy McFadden describes in the backwards compatibility blog
post, it is natural to simply test for the particular class or other API
that you are wanting to use at the time you use it:

http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html

On Mon, Dec 21, 2009 at 9:47 AM, Mark Murphy mmur...@commonsware.comwrote:

 Mark Wyszomierski wrote:
  Hi,
 
  I'm using the level 5 sdk to compile my app, but set my target to sdk
  level 3 in my manifest. All is fine.
 
  I may need to use some level 5 classes (ExifInterface) though. What's
  the right way to go about using them while not fouling things up for
  devices running older sdk versions? Do we simply restrict use of the
  newer API methods to completely separate class files? Something like
  this:
 
// Test.java
class Test
{
public boolean sdkDependentItem() {
if (Build.VERSION.SDK.equals(5)) {
return (new sdk5()).getItem();
}
else {
return (new sdk3and4()).getItem();
}
}
 }
 
// sdk5.java
class sdk5 {
public boolean getItem() {
// can use sdk level 5 apis in here ok.
}
}
 
// sdk3and4.java
class sdk3and4 {
public boolean getItem() {
// can use sdk level 3 and 4 apis in here ok.
}
}
 
  so as long as the api methods are completely separated into files that
  the older devices won't invoke, we should be ok?

 I wouldn't do:

 if (Build.VERSION.SDK.equals(5)) {

 Instead, parse it to an integer and do a =5 comparison. After all, most
 DROIDs are now on API 6 (i.e., Android 2.0.1). And, once you drop older
 SDK support, you can use SDK_INT and skip the parse step.

 If you are going to make the request a lot, you might consider having
 your two implementations extend a common abstract class or implement a
 common interface. Then, you can make the determination of which one to
 use once and hold onto that object, calling it by the common interface
 as needed.

 Otherwise, the notion of if I don't load the class, there will be no
 harm in it referencing newer API capabilities is sound.

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

 _The Busy Coder's Guide to Android Development_ Version 2.8
 Available!

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Using new sdk methods on devices running older sdks?

2009-12-21 Thread Mark Wyszomierski
Thanks Dianne, that's a useful post. On the topic of backwards
compatibility, my manifest file looks like:

uses-sdk android:minSdkVersion=3 android:targetSdkVersion=5/

this produces a warning in eclipse:

Attribute minSdkVersion (3) is lower than the project target API
level (5)

this makes sense, it *is expected* though, right?

Thanks


On Dec 21, 6:54 pm, Dianne Hackborn hack...@android.com wrote:
 In a lot of cases you can probably avoid checking the API version at all.
  For example as Andy McFadden describes in the backwards compatibility blog
 post, it is natural to simply test for the particular class or other API
 that you are wanting to use at the time you use it:

 http://android-developers.blogspot.com/2009/04/backward-compatibility...

 On Mon, Dec 21, 2009 at 9:47 AM, Mark Murphy mmur...@commonsware.comwrote:



  Mark Wyszomierski wrote:
   Hi,

   I'm using the level 5 sdk to compile my app, but set my target to sdk
   level 3 in my manifest. All is fine.

   I may need to use some level 5 classes (ExifInterface) though. What's
   the right way to go about using them while not fouling things up for
   devices running older sdk versions? Do we simply restrict use of the
   newer API methods to completely separate class files? Something like
   this:

     // Test.java
     class Test
     {
         public boolean sdkDependentItem() {
             if (Build.VERSION.SDK.equals(5)) {
                 return (new sdk5()).getItem();
             }
             else {
                 return (new sdk3and4()).getItem();
             }
         }
      }

     // sdk5.java
     class sdk5 {
         public boolean getItem() {
             // can use sdk level 5 apis in here ok.
         }
     }

     // sdk3and4.java
     class sdk3and4 {
         public boolean getItem() {
             // can use sdk level 3 and 4 apis in here ok.
         }
     }

   so as long as the api methods are completely separated into files that
   the older devices won't invoke, we should be ok?

  I wouldn't do:

  if (Build.VERSION.SDK.equals(5)) {

  Instead, parse it to an integer and do a =5 comparison. After all, most
  DROIDs are now on API 6 (i.e., Android 2.0.1). And, once you drop older
  SDK support, you can use SDK_INT and skip the parse step.

  If you are going to make the request a lot, you might consider having
  your two implementations extend a common abstract class or implement a
  common interface. Then, you can make the determination of which one to
  use once and hold onto that object, calling it by the common interface
  as needed.

  Otherwise, the notion of if I don't load the class, there will be no
  harm in it referencing newer API capabilities is sound.

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

  _The Busy Coder's Guide to Android Development_ Version 2.8
  Available!

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] How to use android:required

2009-12-21 Thread Mark Wyszomierski
Hi,

In my manifest file, I have the following:

uses-permission android:name=android.permission.CAMERA /
uses-feature android:name=android.hardware.camera/

my app can use the camera if one exists, but is not necessary for the
app to function. My app also uses the auto-focus callback when taking
a picture, but is not required, thus it is not listed as another
hardware listing above.

If I read the docs correctly, after 1.6, we need to specify which
hardware features are necessary for our app to run, otherwise if we
leave that section blank, it's assumed that all features are required.
So I thought to only add the most basic on, hardware.camera.

Does this mean that when placed on the market, my app will not show up
for devices without a camera, as my manifest stands now?

In this post:

   
http://groups.google.com/group/android-developers/browse_thread/thread/cab6d23f354089e2/448dd7f7e4497e8?q=#0448dd7f7e4497e8

it's suggested that we can use android:required, but I don't see a
doc reference for it yet. Is this the proper way to use it?:

  uses-feature android:name=android.hardware.camera
android:required=false/

that seems to only be available in 2.0+. By using that tag, will it
cause problems for older devices on market? Will a device running 1.5
get confused as to what android:required is and implode?

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: Source Code

2009-12-21 Thread Brion Emde
I also looked high and low for Android sources, just for reference.

Finally, I saw that Dianne Hackborn posted this links to the Google
Source for the project:

http://android.git.kernel.org/

The Java classes are in the platform/frameworks tree.

On Dec 16, 8:37 pm, Michael J txaggiemich...@gmail.com wrote:
 Is there an easy way of getting the Android source code?

 More than anything else, I just want to be able to look at the source
 for some of the standard apps, such as the Android Market, Contacts,
 etc.

 I took a look at dev.android.com, but I don't see an easy way of
 getting the source I'm looking for.

 TIA

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


Re: [android-developers] How to use android:required

2009-12-21 Thread Dianne Hackborn
android:required appeared in 1.6; unfortunately it isn't in the docs.

But correct, if you don't specify this, it will be assumed you require the
camera.  If you don't want that, you need to use android:required=false.
 Older versions of the platform will ignore this.  (Actually the platform
pretty much ignores it anyway, this is mostly for Market.)

On Mon, Dec 21, 2009 at 4:08 PM, Mark Wyszomierski mar...@gmail.com wrote:

 Hi,

 In my manifest file, I have the following:

uses-permission android:name=android.permission.CAMERA /
uses-feature android:name=android.hardware.camera/

 my app can use the camera if one exists, but is not necessary for the
 app to function. My app also uses the auto-focus callback when taking
 a picture, but is not required, thus it is not listed as another
 hardware listing above.

 If I read the docs correctly, after 1.6, we need to specify which
 hardware features are necessary for our app to run, otherwise if we
 leave that section blank, it's assumed that all features are required.
 So I thought to only add the most basic on, hardware.camera.

 Does this mean that when placed on the market, my app will not show up
 for devices without a camera, as my manifest stands now?

 In this post:


 http://groups.google.com/group/android-developers/browse_thread/thread/cab6d23f354089e2/448dd7f7e4497e8?q=#0448dd7f7e4497e8

 it's suggested that we can use android:required, but I don't see a
 doc reference for it yet. Is this the proper way to use it?:

  uses-feature android:name=android.hardware.camera
 android:required=false/

 that seems to only be available in 2.0+. By using that tag, will it
 cause problems for older devices on market? Will a device running 1.5
 get confused as to what android:required is and implode?

 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

[android-developers] Fancy ListView help

2009-12-21 Thread Abhi
Hi,

I am using excerpts from this website -
http://www.androidguys.com/2008/07/14/fancy-listviews-part-one/
(under Dynamic) to build my own ListView with 6 list rows. I am doing
the exact same thing, but with a button added to each row. I want to
be able to listen to each button click and take action according to
the position of the button pressed.

I don't know how to use the onClick and Listener in the above case.
Any help would be appreciated. I have posted this question a number of
times but haven't been able to receive a satisfactory reply.

I see that the original post is from Mark Murphy who is an active
member of this group. If I hear from him, nothing like it!

Thanks,

Abhishek

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using new sdk methods on devices running older sdks?

2009-12-21 Thread Dianne Hackborn
Yeah I'm not sure where that warning comes from -- the aapt tool that builds
your project sure doesn't care -- but I imagine it is just to warn you that
you have set yourself up to use APIs that won't exist on some platforms you
run on.

On Mon, Dec 21, 2009 at 4:00 PM, Mark Wyszomierski mar...@gmail.com wrote:

 Thanks Dianne, that's a useful post. On the topic of backwards
 compatibility, my manifest file looks like:

uses-sdk android:minSdkVersion=3 android:targetSdkVersion=5/

 this produces a warning in eclipse:

Attribute minSdkVersion (3) is lower than the project target API
 level (5)

 this makes sense, it *is expected* though, right?

 Thanks


 On Dec 21, 6:54 pm, Dianne Hackborn hack...@android.com wrote:
  In a lot of cases you can probably avoid checking the API version at all.
   For example as Andy McFadden describes in the backwards compatibility
 blog
  post, it is natural to simply test for the particular class or other API
  that you are wanting to use at the time you use it:
 
  http://android-developers.blogspot.com/2009/04/backward-compatibility...
 
  On Mon, Dec 21, 2009 at 9:47 AM, Mark Murphy mmur...@commonsware.com
 wrote:
 
 
 
   Mark Wyszomierski wrote:
Hi,
 
I'm using the level 5 sdk to compile my app, but set my target to sdk
level 3 in my manifest. All is fine.
 
I may need to use some level 5 classes (ExifInterface) though. What's
the right way to go about using them while not fouling things up for
devices running older sdk versions? Do we simply restrict use of the
newer API methods to completely separate class files? Something like
this:
 
  // Test.java
  class Test
  {
  public boolean sdkDependentItem() {
  if (Build.VERSION.SDK.equals(5)) {
  return (new sdk5()).getItem();
  }
  else {
  return (new sdk3and4()).getItem();
  }
  }
   }
 
  // sdk5.java
  class sdk5 {
  public boolean getItem() {
  // can use sdk level 5 apis in here ok.
  }
  }
 
  // sdk3and4.java
  class sdk3and4 {
  public boolean getItem() {
  // can use sdk level 3 and 4 apis in here ok.
  }
  }
 
so as long as the api methods are completely separated into files
 that
the older devices won't invoke, we should be ok?
 
   I wouldn't do:
 
   if (Build.VERSION.SDK.equals(5)) {
 
   Instead, parse it to an integer and do a =5 comparison. After all,
 most
   DROIDs are now on API 6 (i.e., Android 2.0.1). And, once you drop older
   SDK support, you can use SDK_INT and skip the parse step.
 
   If you are going to make the request a lot, you might consider having
   your two implementations extend a common abstract class or implement a
   common interface. Then, you can make the determination of which one to
   use once and hold onto that object, calling it by the common interface
   as needed.
 
   Otherwise, the notion of if I don't load the class, there will be no
   harm in it referencing newer API capabilities is sound.
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://twitter.com/commonsguy
 
   _The Busy Coder's Guide to Android Development_ Version 2.8
   Available!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post 

[android-developers] Re: streaming issue with mediaplayer on android 2.0

2009-12-21 Thread cvance383
***UPDATE***

http://stream29l.grooveshark.com/collin.php

this mp3 will stream fine if you go to the url on android 1.5, but not
on 2.0. If you download the mp3, and put it on the phone it works on
2.0, just not when you stream it.


On Dec 20, 5:11 pm, cvance383 cvance...@yahoo.com wrote:
 I've tried that too. No one has any clue as why this might happen?

 On Dec 19, 4:52 pm, Mark Murphy mmur...@commonsware.com wrote:



  cvance383 wrote:
   any ideas?

  If the problem occurs only on the DROID, not on the 2.0.1 emulator, you
  might consider posting your question on a MOTODEV board:

 http://developer.motorola.com

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

  _The Busy Coder's Guide to Android Development_ Version 2.8
  Available!

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


[android-developers] Re: Is it ever OK to use AbsoluteLayout?

2009-12-21 Thread k_day
Yeah, I would like to do that.  What sort of View would I parent off
of though?  AbsoluteLayout is the only type of layout that I can find
that will allow me to assign coordinates to.

How would I write a layout to do this?

On Dec 21, 5:42 pm, Paul Turchenko paul.turche...@gmail.com wrote:
 I would suggest creating your own layout for this purpose.

 On Dec 21, 10:01 pm, k_day kevin.r@gmail.com wrote:

  I understand the problems with assigning a fixed position to UI
  components, but I would like to use AbsoluteLayout in a way such that
  the position of the components are chosen dynamically, calculated
  based on the screen size.

  Here is why I am thinking this may be easiest:

  I want to display a nXm grid of imageViews on the screen (n,m chosen
  by the user) with 0 padding betweeen the imageViews.  With
  absoluteLayout, I could easily choose the size of the imageViews and
  in a way that maximizes the amount of the screen that is used.

  The reason that using relativeLayout or LineraLayouts may not work for
  this is because when a user touches an image in this grid, I would
  like it to pulse (quickly scale larger than back to its normal
  size).  If I scale an imageView using realtive or linear layout, it
  would resize the adjacent imageViews (since the padding is 0), which I
  don't want.  I would prefer permitting temporary overlapping of the
  imageViews.

  This is currently the approach I have taken, except instead of
  changing the position of imageViews, I am just drawing bitmaps to the
  canvas at the locations I calculated.  I can't use the animation
  framework, however, on bitmaps that I draw to a canvas.

  Is this an acceptable use for AbsoluteLayout, or is there a better way
  to achieve what I want to do here?



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


[android-developers] Restarting an application programatically

2009-12-21 Thread jax
I need to restart my application in response to a particular event.

How do I do this?  I need to do a full restart, ie. kill the process
and start it again.

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: Bluetooth Developers Guide and Bluetooth Sample Code

2009-12-21 Thread chen ji
It is good. I just want to find such example. Thanks.

On 12月19日, 上午6时12分, Nick Pelly npe...@google.com wrote:
 Hi Bluetooth Developers,

 We have just published an Android Bluetooth Developers Guide, and a
 Sample Application. See links 
 below.http://developer.android.com/guide/topics/wireless/bluetooth.htmlhttp://developer.android.com/resources/samples/BluetoothChat/index.html

 I hope these become a useful resource,

 Happy Holidays,
 Nick Pelly
 Android Bluetooth Project Lead

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


[android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?

2009-12-21 Thread wusch
I am seeing it too.

Did you use the Max SDK setting on the AndroidManifest.xml?  I
noticed a blog posting that said the default behavior is when a Over
the Air update was pushed for 2.0.1 and you had a max sdk setting of
5, it would Uninstall the purchased application automatically!!

Supposedly they are fixing this going forward...

Jeff

On Dec 21, 4:17 pm, Greg Donald gdon...@gmail.com wrote:
 On Mon, Dec 21, 2009 at 3:11 PM, pawpaw17 georgefraz...@yahoo.com wrote:
  I released an upgrade to my app on Saturday night and since have
  noticed an unusual number of uninstalls. My app has been out for 8
  months, and this is very unusual. Has anyone else noticed this? I'm
  wondering if there is anything related to the market, or a new OS
  version hitting, or contracts with one of the phones coming up?

  Any thoughts would be very appreciated.

  Thanks!

  pawpaw17

 Yeah, stuff seems broken for many of us:

 http://groups.google.com/group/android-developers/browse_thread/threa...

 --
 Greg Donaldhttp://destiney.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] GLSurfaceView.Renderer design question

2009-12-21 Thread Robert Green
Maybe someone can explain this to me:

I've been trying to figure out how to get to the current EGLContext
from the GLSurfaceView.  I looked at the APIs and looked at the code
but it doesn't seem like there is any path to it.  I could have just
missed it - please correct me if I have, but it wasn't obvious.  Now,
I can totally understand the designer thinking that we should protect
people from the context because they can cause bad things to happen
but actually it would be nice to have access to swapbuffers so that we
can do some effects.  Fair enough, though.

The one thing I wanted was to see the current EGLConfig so that I
could find out what config attributes I'm getting on weirdly-behaving
devices like the Galaxy.  It seemed easy enough - it's passed in to
Renderer in the onSurfaceCreated method:

public void onSurfaceCreated(GL10 gl, EGLConfig config);

Great!  Except wait, you can't query an EGLConfig without an
EGLDisplay and that's locked up in the GLSurfaceView.  So why is it
passed in to the surface created method?  Isn't it useless?  Accord to
GLES spec, an instance of EGLConfig is only good if you have the
display/context instances that it was created from.

I didn't try querying it with the default context because it's
supposedly invalid but perhaps someone could shed some light on this?
I'd love if it were something dumb and obvious that I don't know
about.

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] coule you tell me in android2.0.1 the package of Calendar?

2009-12-21 Thread peng
my sdk2.0.1 when i use the following code:

 ComponentName componentName =new ComponentName
(com.android.calendar, com.android.calendar.LaunchActivity);
  if(componentName!=null) { Intent intent = new Intent
(android.content.Intent.ACTION_VIEW);
 intent.setFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);

intent.setComponent(componentName);
  startActivity (intent);}
   else
   Log.i(,98979);
}

in Logcat: 12-22 01:21:19.253: ERROR/AndroidRuntime(601):
 Caused by: android.content.ActivityNotFoundException:
 Unable to find explicit activity class
{com.android.calendar/com.android.calendar.LaunchActivity};
 have you declared this activity in your
AndroidManifest.xml?

  can you tell me the new calendar address or package? i
think this problem is that Calendar package is change.

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

2009-12-21 Thread Dan Sherman
-- Waiting the obligatory 15 minutes before Rob answers his own question...



Just kidding man :)
I've actually wondered the same thing a few times

- Dan

On Mon, Dec 21, 2009 at 10:42 PM, Robert Green rbgrn@gmail.com wrote:

 Maybe someone can explain this to me:

 I've been trying to figure out how to get to the current EGLContext
 from the GLSurfaceView.  I looked at the APIs and looked at the code
 but it doesn't seem like there is any path to it.  I could have just
 missed it - please correct me if I have, but it wasn't obvious.  Now,
 I can totally understand the designer thinking that we should protect
 people from the context because they can cause bad things to happen
 but actually it would be nice to have access to swapbuffers so that we
 can do some effects.  Fair enough, though.

 The one thing I wanted was to see the current EGLConfig so that I
 could find out what config attributes I'm getting on weirdly-behaving
 devices like the Galaxy.  It seemed easy enough - it's passed in to
 Renderer in the onSurfaceCreated method:

 public void onSurfaceCreated(GL10 gl, EGLConfig config);

 Great!  Except wait, you can't query an EGLConfig without an
 EGLDisplay and that's locked up in the GLSurfaceView.  So why is it
 passed in to the surface created method?  Isn't it useless?  Accord to
 GLES spec, an instance of EGLConfig is only good if you have the
 display/context instances that it was created from.

 I didn't try querying it with the default context because it's
 supposedly invalid but perhaps someone could shed some light on this?
 I'd love if it were something dumb and obvious that I don't know
 about.

 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

Re: [android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?

2009-12-21 Thread Justin Giles
This is happening on my free app though.  Big time.  I've lost 17% so far.

On Mon, Dec 21, 2009 at 9:29 PM, wusch jwu...@gmail.com wrote:

 I am seeing it too.

 Did you use the Max SDK setting on the AndroidManifest.xml?  I
 noticed a blog posting that said the default behavior is when a Over
 the Air update was pushed for 2.0.1 and you had a max sdk setting of
 5, it would Uninstall the purchased application automatically!!

 Supposedly they are fixing this going forward...

 Jeff

 On Dec 21, 4:17 pm, Greg Donald gdon...@gmail.com wrote:
  On Mon, Dec 21, 2009 at 3:11 PM, pawpaw17 georgefraz...@yahoo.com
 wrote:
   I released an upgrade to my app on Saturday night and since have
   noticed an unusual number of uninstalls. My app has been out for 8
   months, and this is very unusual. Has anyone else noticed this? I'm
   wondering if there is anything related to the market, or a new OS
   version hitting, or contracts with one of the phones coming up?
 
   Any thoughts would be very appreciated.
 
   Thanks!
 
   pawpaw17
 
  Yeah, stuff seems broken for many of us:
 
  http://groups.google.com/group/android-developers/browse_thread/threa...
 
  --
  Greg Donaldhttp://destiney.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.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

  1   2   >