[android-developers] Streaming videos in Emulator

2009-01-15 Thread And-Rider

Is it possible to stream videos in an android emulator?...

I tried streaming an mp3 file which worked perfectly...
but when i tried streaming an video file(tried 3gp,mp4) but both dint
work...
I am not sure if the format is supported in the emulator .. I get an
error "Sorry,this video cannot be played"

This is the sample code i am using..I downloaded it from Google API
Demos

package and.stream;


import android.app.Activity;
import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;

public class videostream extends Activity {

/**
 * TODO: Set the path variable to a streaming video URL or a local
media
 * file path.
 */
private String path = "";
private VideoView mVideoView;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
mVideoView = (VideoView) findViewById(R.id.surface_view);

if (path == "") {
// Tell the user to provide a media file URL/path.
Toast.makeText(
videostream.this,
"Please edit VideoViewDemo Activity, and set path"
+ " variable to your media file URL/path",
Toast.LENGTH_LONG).show();

} else {

/*
 * Alternatively,for streaming media you can use
 * mVideoView.setVideoURI(Uri.parse(URLstring));
 */
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();

}
}
}

In the place "path" i tried pasting some url's .. but it dint work

Can someone help me with some sample codes... or streaming links which
would work.. I am not sure if those formats i am using are supported
in the emulator..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 use email client of emulator of android sdk second release, for OI Notepad for transferring note

2009-01-15 Thread jalandar

This is not for images its not work with plain note also.
It display same toast of "no app can perform this action", is this
email client of emulator(sdk r2) or any else is the reason.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting the phone number.................

2009-01-15 Thread And-Rider

just have a look at this video

http://in.youtube.com/watch?v=I6ObTqIiYfE&feature=channel

On Jan 16, 11:06 am, Pratap  wrote:
> Is there a way to access the phone number programatically..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 disable Auto-Focus on Camera?

2009-01-15 Thread Wanted unique nickname

Thank you for the reply.

So if I run getParameters on the G1 it will show me the same
parameters as the emulator, some of which will not be supported?

On Jan 15, 5:17 pm, Dave Sparks  wrote:
> getParameters returns all the settings that are supported, and
> possible values for some.
>
> Be aware that many of these parameters are ignored on the G1 with the
> current firmware.
>
> On Jan 14, 10:33 pm, Wanted unique nickname 
> wrote:
>
> > Where do these Camera Parameters come from?  I see in the class index
> > for Camera.Parameters that I can access different parameters through
> > set(string, ...) but I have no idea what to place in the string
> > argument.  Do you know of a list of all possible camera parameters or
> > those which are supported by the G1?
>
> > In the android source code its a little hard to track down.  I was
> > stumped when I found native_getParameters or whatever its called.
>
> > -Marc
>
> > On Jan 14, 12:07 pm, blindfold  wrote:
>
> > > It is not officially supported on the G1, but you might try
> > > Camera.Parameters.set("autofocus", "false");
>
> > > Regards
>
> > > On Jan 14, 7:52 pm, Wanted unique nickname 
> > > wrote:
>
> > > > Hi,
> > > >     Does anyone know how to disable autofocus from the Camera class?
> > > > This feature is available in SnapPhoto.  I want to take two images at
> > > > different levels of focus.  So the first picture is captured with
> > > > AutoFocus disabled, and then on the second picture I enable autofocus
> > > > and hope that it finds a better focus point.
>
> > > > Please, any suggestions would help.
>
> > > > -Marc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Fwd: GMAPS is not being displayed in the emulator

2009-01-15 Thread sheik

Kindly look at this queryand help me regarding the issue..

thank you

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



[android-developers] catch HOME KeyDown Event

2009-01-15 Thread elvisw

Hi all,

How can I catch HOME KeyDown Event in Activity or Dialog??

I find that the event is not passed into onKeyDown(), but I really
need the function to make an AP's lock screen...  Set
WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY works??

Or how can I do this...


Thanks,
Elvis.


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



[android-developers] Re: android 1.5

2009-01-15 Thread Morris

Dear All:

I have solved this issue.
The root cause is that I continually read the android SDK image so I
always see the android 1.0.

Sorry to waste your time.

Regards,
Morris

On 1月14日, 下午1時15分, Morris  wrote:
> Dear All:
>
> I face a situation about building the new android.
> I don't know whether I successfully build the new code which I got via
> repo.
> I use repo to update my android from 1.4 to 1.5. After I get it using
> repo sync, I type make to build the new code.
> In the event I saw the blow message, but I don't know whether the
> build process is successful.
>
> *** 
> *
>
> mor...@morris-desktop:~/mydroid$ make
> build/core/product_config.mk:207: WARNING: adding test OTA key
> 
> TARGET_PRODUCT=generic
> TARGET_BUILD_VARIANT=eng
> TARGET_SIMULATOR=
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm
> HOST_ARCH=x86
> HOST_OS=linux
> HOST_BUILD_TYPE=release
> BUILD_ID=
> 
> build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
> build/core/base_rules.mk:117: *** recovery:
> MODULE.TARGET.EXECUTABLES.recovery already defined by bootable/
> recovery.  Stop.
>
> *** 
> ***
>
> Best Regards,
> Morris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Getting the phone number.................

2009-01-15 Thread Pratap

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



[android-developers] GPS via javascript in Webview

2009-01-15 Thread Fred Grott(shareme)

For those of us that are Webview hackers, it is possible to read GPS
via javascript:

http://www.youtube.com/watch?v=_uvdixgpm10

The modified PhoneGap code with my fixes to enable it gets posted this
weekend.

Is this not cool?

blog is here:

http://www.jroller.com/shareme


Funny, I do even have to state that I one upped Google engineers do
I? :) For the use webview to do a native application to succeed we
need the PhoneGap library fixed and thus I volunteered.




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



[android-developers] Raw audio from the microphone?

2009-01-15 Thread Ben Dodson

Hi,

I'm trying to build a training tool to help strengthen certain vocal
issues. I'm hoping to do some basic pitch/tone analysis. I've been
looking around, and it doesn't seem easy to get access to raw audio
data (wav file)? Is this the case?

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



[android-developers] Re: how to implement an application like netcounter?

2009-01-15 Thread brs

Don't know how netcounter does it, but have a look at "/proc/self/net/
devs" for the basic interface counters. Here is some hacky code which
makes use of these:
http://code.google.com/p/android-labs/source/browse/trunk/NetMeter/src/com/google/android/netmeter/StatsProcessor.java
- sorry, I am new to Java so there are probably cleaner and more
efficient ways of parsing this.

Bernhard

On Jan 13, 8:02 am, "trust_chen chen"  wrote:
> hi all:
>   i want to implement an application like netcounter,but I can not find
> the APIS:
>   how to get the infomation the net node such as ppp0/wifi/usb0?
>   how to know the current net node which network is using and the bytes
> of the downloa data?
>
> 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: Question on the BlogPost of ListView posted by Romanian Guy

2009-01-15 Thread for android
Thanks for the information Romain !

On Thu, Jan 15, 2009 at 10:56 PM, Romain Guy  wrote:

>
> Hi,
>
> There is a bug with dividers and solid colors in Android 1.0. This bug
> has been fixed in Cupcake. In the meantime, you should use a 9-patch.
>
> On Thu, Jan 15, 2009 at 12:50 AM, for android 
> wrote:
> > Hello,
> >
> > I understand the posting on the blog of android-developers
> >
> > I was just wondering when a list is getting displayed on solid back
> ground
> > and I give a divider color in it .Why do i not get it the way i desire ?
> >
> > For eg in the code below i need list with blue background and a divider
> of
> > white? But when i apply the divider color i dont get any ??Whats the
> reasin
> > for this??
> >
> >  > android:layout_width="fill_parent" android:divider="#FF"
> > android:layout_height="fill_parent" />
> >
> > I have attached the sample code for the example I tried...
> >
> > >
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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] SAXParser doesn't resolve Entitiy-References ( EntityResolver )

2009-01-15 Thread plusminus

Hi all,

I have a problem with the SAX-Parser and getting attributes which are
references...




in startElement(...) attributes correctly indicates the existence of 6
elements
I can get all attributes using i.e. final String startTime =
attributes.getValue("", "start_time");
except the last one ( factor="&rtm31_4;" )
Where:

 attributes.getValue("factor");
// or
attributes.getValue("", "factor");

always returns "" (empty string)
it seems like the Entity-Reference is not being resolved =(

If I set an EntityResolver:

myXMLReader.setEntityResolver(new EntityResolver(){
public InputSource resolveEntity(...) {
}
}

It NEVER gets called :(

The same code worked in Desktop-Java, all Entities were resolved via
the EntityResolver.

Any ideas? I've spent half a day on this issue alreade =(

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



[android-developers] Behavior of Handler.postDelayed()

2009-01-15 Thread brs

What happens to runnables scheduled with postDelayed when the phone
goes to sleep? Having pending handlers does not seem to prevent the
phone from sleeping, but what should happen once it wakes up again. Is
the sleep period like a lapse of lost time and the delay clock keeps
counting down as if the sleep never happened or are all handlers which
would have expired during the time the phone was asleep going to fire
immediately?

I am also seeing some strange stuff, when I use postDelayed to
periodically update a display and the screen lock is engaged (without
the phone going to sleep yet, as far as I can tell). Once the phone is
unlocked, the UI seems to go into some sort of fast-forward. Is this
due to the handlers firing more rapidly (only one is re-scheduled at a
time, so this would be rather strange) or some kind of queued update
events to the display which are executed once the screen is unlocked.
I guess one should generally never do any UI updates after onPause(),
but there is nothing preventing it...

Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 possible to put more than 2 video players in one activity?

2009-01-15 Thread Dave Sparks

We have never tested that scenario on the G1 or the emulator and I
would be surprised if it worked. The hardware video decoder can only
support one decode at a time, which means the second stream would fall
back to a software codec. I'm not saying it can't work, but if it
doesn't, we probably won't be jumping on this bug for awhile.

There is no such thing as an application "running in background" on
Android. Take a look at the Activity Lifecycle documentation on the
android.com developer's site. If your application does not have focus,
it is not "running" and you need to save your state because your
application may be killed at any time. If you need something to run in
the background, it must be a service, and a service is not an
application. CPU cycles equate directly to battery life, so services
should be lightweight processes.

I think you need to scale down your expectations a little, this is not
a desktop computer connected to the power grid.

On Jan 15, 6:08 pm, mongd  wrote:
> Hi, I'm trying to implement a simple media player that plays 2
> different videos at the same time. (I mean on the same activity.)
> Based on the media player in API demos, I added another surface view,
> copied the rest of the code for the media player and changed the names
> of variables accordingly.
> This code kept crashing when the second media player tried prepare()
> without throwing exception message. Is there anyone who know how to
> implement this kind of functionality on android? Or, does not Android
> allow this kind of implementation?
>
> Also, another question is, is it possible to run the same application
> twice at the same time?
> I mean... as far as I understood, I can make applications run in
> background by using 'service', so in this way, I guess it would be
> possible to run the same application when one of them is running in
> background. Am I right?
>
> I just started to look into Android, so I'm trying to figure out what
> Android can/can't do.
> Please help me~ =D
>
> Thank you so much in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] VerifyError importing JDBC PostgreSQL Driver

2009-01-15 Thread Neil

Hello everyone,

I am new to Android development, and somewhat new to Java, but have a
good amount of C++ knowledge. I am having trouble using imported .jar
files to use in my code. I am trying to use the PostgreSQL JDBC driver
with my application, and I cannot create a connection. As soon as I
run this line of code:

Connection conn = DriverManager.getConnection("jdbc:postgresql://
localhost/demo", "mfgadmin", "mfgadmin");

This is what the log looks like:

01-16 02:53:46.556: WARN/ActivityManager(47): Launch timeout has
expired, giving up wake lock!
01-16 02:53:46.942: WARN/ActivityManager(47): Activity idle timeout
for HistoryRecord{434ccdf8 {com.xtuple.android/
com.xtuple.android.xtuple}}
01-16 02:53:50.024: WARN/dalvikvm(240): VFY: unable to resolve static
field 23
01-16 02:53:50.024: WARN/dalvikvm(240): VFY:  rejecting opcode 0x62 at
0x0005
01-16 02:53:50.024: WARN/dalvikvm(240): VFY:  rejected Lorg/postgresql/
jdbc4/AbstractJdbc4Connection;.setClientInfo (Ljava/lang/String;Ljava/
lang/String;)V
01-16 02:53:50.024: WARN/dalvikvm(240): Verifier rejected class Lorg/
postgresql/jdbc4/AbstractJdbc4Connection;
01-16 02:53:51.994: DEBUG/dalvikvm(92): GC freed 1232 objects / 64072
bytes in 53ms

I have followed the documentation for version 8.3 found here:
http://jdbc.postgresql.org/documentation/docs.html using the driver
found here: http://jdbc.postgresql.org/download.html (JDBC4). I am
using eclipse 3.4 with android plug-in on Mac OS X. I also tried in
Ubuntu and recieved the same error. Thanks for any help you can give.


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



[android-developers] Re: What protocol does android use to sync contacts with gmail?

2009-01-15 Thread 杨锋


http://code.google.com/apis/contacts/

On Nov 29 2008, 4:04 am, Josh Guilfoyle  wrote:
> I would recommend usingSyncML, this is what it was designed for.
> That said, I don't know what protocol Google is using, but it's
> probably something they invented.
>
> On Nov 28, 9:57 am, crontabpy  wrote:
>
> > What's the implemented protocol?
>
> > If I'd like to sync an outside database table with a with a sqlite3
> > table, what protocol should I use? Is there any available class for
> > this?
>
> > thanks in advance

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



[android-developers] Is it possible to put more than 2 video players in one activity?

2009-01-15 Thread mongd

Hi, I'm trying to implement a simple media player that plays 2
different videos at the same time. (I mean on the same activity.)
Based on the media player in API demos, I added another surface view,
copied the rest of the code for the media player and changed the names
of variables accordingly.
This code kept crashing when the second media player tried prepare()
without throwing exception message. Is there anyone who know how to
implement this kind of functionality on android? Or, does not Android
allow this kind of implementation?

Also, another question is, is it possible to run the same application
twice at the same time?
I mean... as far as I understood, I can make applications run in
background by using 'service', so in this way, I guess it would be
possible to run the same application when one of them is running in
background. Am I right?

I just started to look into Android, so I'm trying to figure out what
Android can/can't do.
Please help me~ =D

Thank you so much in advance.

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



[android-developers] Re: what the ScanResult.capabilities actually is?

2009-01-15 Thread zcj0429

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



[android-developers] Debugging on the Dev 1

2009-01-15 Thread Faber Fedor
Has anyone been able to use their Dev 1 Phone on their Linux boxen?  I can't
get my CentOS 5 (udev version 95) or my Ubunto 8.04 (Heron, udev 117) under
VMware to see the device ('adb devices' lists nothing).
My Macbook can, unfortunately, see it, so I know the phone if functional.

The CentOS machine does see the Dev 1 as a SCSI device, however.  I've
played around with /etc/udev/50-android.rule on both Linux boxen to no
avail.

Any suggestions?

-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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: Capturing the PictureWasTaken event

2009-01-15 Thread Dave Sparks

The takePicture() function captures an image.The callback occurs when
the picture has been captured and encoded. You aren't seeing the
callback in your app because you haven't started preview mode. It
cannot be used to capture an image from another application.

Even this did work, it doesn't necessarily mean the the user has taken
a picture. It could be an application like a barcode scanner or OCR
that is capturing an image for analysis.

I think you want to look at MediaStore. It might broadcast an intent
when new media is added, or perhaps you can wake up periodically and
scan for new images that have been added since the last time you
scanned the database.

On Jan 15, 1:05 am, GiladH  wrote:
> Hey,
>
> I want to be able to capture the above system event in a _global_
> manner.
> That is - even if my app is currently not running, I want the system
> to start it, so it can handle
> a new-picture-just-taken event by the user.
>
> I tries to do by creating a BOOT_COMPLETED BroadcastReceiver that
> internall calls:
>Camera.open().takePicture( null, null, My_jpegImageCallback);
>
> The results:
>
> BroadcastReceiver successfully called at startup
> My_jpegImageCallback NOT called when user is taking a new picture.
>
> Pls advise.
> GiladH
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: application will crash when G1 changed to landscape display

2009-01-15 Thread Mark Murphy

cindy wrote:
> Mark, thank you for the reply. I will look into debug.
> 
> I guess it is caused by thread issue. my application has thread to
> update UI, at the same time phone itself is trying to update UI.
> 
> In Swing UI, we should call InvokeLater()to update already relized UI.
> What would be a "thread  safe" way to update android UI?

You have many options, including:

-- Use a Handler

-- Use View#post() or View#postDelayed()

-- Use Activity#runOnUiThread()

The latter options most closely resemble invokeLater().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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: application will crash when G1 changed to landscape display

2009-01-15 Thread cindy

Mark, thank you for the reply. I will look into debug.

I guess it is caused by thread issue. my application has thread to
update UI, at the same time phone itself is trying to update UI.

In Swing UI, we should call InvokeLater()to update already relized UI.
What would be a "thread  safe" way to update android UI?

Thanks!


On Jan 15, 5:08 pm, Mark Murphy  wrote:
> cindy wrote:
> > When my application used keybload, the display will change to
> > landscape. when I close the keyboard, and change the phone to regular
> > display. sometimes, my application will crash.
>
> What does the error log tell you? There should be a Java exception
> traceback in there corresponding with your crash. You can access the
> error log via adb logcat, DDMS, or the Eclipse equivalent.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 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: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread mobilek...@googlemail.com

I couldn't resolve the problem. I think it was to do with my
implementation of ContentProvider as the same data manipulation
operations worked fine in some situantions and they didnt in others...
Thank you for the help, anyway!

>
> And, at the risk of responding to my own message, here's a list of the
> various SQLite error codes:
>
> http://www.sqlite.org/c3ref/c_abort.html
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: software button for Camera and view control?

2009-01-15 Thread Dave Sparks

1. Yes, just call takePicture() from your onClickListener.

2. The preview will fill the surface you give it. Just make sure the
aspect ratio matches preview size. On the G1, this is currently hard-
coded to 480x320, so you want a 1.3 aspect ratio for your preview
surface.

On Jan 15, 1:05 am, Developer  wrote:
> I have two questions about android's hardware camera API.
>
> 1) Is there a way to create a button that control camera snapshot?
> i.e, when I push the button on the screen, the camera takes photo in
> the same way as when I push the hardware button.
>
> 2) Can I make  the preview-window showing how the photo will look like
> in a small area (not full-screen size), so that I can place the
> control button on the screen?
>
> 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: How to disable Auto-Focus on Camera?

2009-01-15 Thread Dave Sparks

getParameters returns all the settings that are supported, and
possible values for some.

Be aware that many of these parameters are ignored on the G1 with the
current firmware.

On Jan 14, 10:33 pm, Wanted unique nickname 
wrote:
> Where do these Camera Parameters come from?  I see in the class index
> for Camera.Parameters that I can access different parameters through
> set(string, ...) but I have no idea what to place in the string
> argument.  Do you know of a list of all possible camera parameters or
> those which are supported by the G1?
>
> In the android source code its a little hard to track down.  I was
> stumped when I found native_getParameters or whatever its called.
>
> -Marc
>
> On Jan 14, 12:07 pm, blindfold  wrote:
>
> > It is not officially supported on the G1, but you might try
> > Camera.Parameters.set("autofocus", "false");
>
> > Regards
>
> > On Jan 14, 7:52 pm, Wanted unique nickname 
> > wrote:
>
> > > Hi,
> > > Does anyone know how to disable autofocus from the Camera class?
> > > This feature is available in SnapPhoto.  I want to take two images at
> > > different levels of focus.  So the first picture is captured with
> > > AutoFocus disabled, and then on the second picture I enable autofocus
> > > and hope that it finds a better focus point.
>
> > > Please, any suggestions would help.
>
> > > -Marc
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: audio recording to split (small) files without dropping or overlapping samples

2009-01-15 Thread Dave Sparks

I am pretty sure that won't work. Why do you want to record a bunch of
small audio files without dropping samples?

On Jan 14, 7:52 pm, flatmax  wrote:
> Hi there,
>
> Has anyone managed to record audio to small files without dropping
> samples between ?
>
> perhaps it is possible to use two recorders which toggle between
> recording states ... when on is recording, the other is priming and
> waiting to record ...
>
> Something like :
>
> //declare two recorders
> MediaRecorder recorder1 = new MediaRecorder();
> MediaRecorder recorder2 = new MediaRecorder();
>
> /// continuously prime, start and stop the two streams so one is
> always capturing ...
>
> //prime and start recorder1 - this is the loop roll in
> recorder1.setAudioSource
> recorder1.setOutputFormat
> recorder1.setAudioEncoder
> recorder1.setOutputFile
> recorder1.prepare
> recorder1.start
>
> while (1){
>
> //prime and start recording from recorder2
> recorder2.setAudioSource
> recorder2.setOutputFormat
> recorder2.setAudioEncoder
> recorder2.setOutputFile
> recorder2.prepare
>
> //wait a certain ammount of time to allow capture
> sleep
>
> recorder2.start
>
> recorder1.stop
> recorder1.reset
>
> //prime recorder1
> recorder1.setAudioSource
> recorder1.setOutputFormat
> recorder1.setAudioEncoder
> recorder1.setOutputFile
> recorder1.prepare
>
> //wait a certain ammount of time to allow capture
> sleep
>
> /// switch recorders
> recorder1.start
>
> recorder2.stop
> recorder2.reset
>
> }
>
> recorder1.release();
> recorder2.release();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Make a video with Android

2009-01-15 Thread Dave Sparks

Video recording is not supported in SDK 1.0.

On Jan 14, 1:55 pm, ANDREA P  wrote:
> I want to make a program that recording a video in Android
>
> There is an example 
> herehttp://code.google.com/intl/it-IT/android/toolbox/apis/media.html
>
> The class used is MediaRecorder.
>
> but there are many errors when I use this code in eclipse.
>
> Help me please !!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: application will crash when G1 changed to landscape display

2009-01-15 Thread Mark Murphy

cindy wrote:
> When my application used keybload, the display will change to
> landscape. when I close the keyboard, and change the phone to regular
> display. sometimes, my application will crash.

What does the error log tell you? There should be a Java exception
traceback in there corresponding with your crash. You can access the
error log via adb logcat, DDMS, or the Eclipse equivalent.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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] application will crash when G1 changed to landscape display

2009-01-15 Thread cindy

When my application used keybload, the display will change to
landscape. when I close the keyboard, and change the phone to regular
display. sometimes, my application will crash.

I tried some application from Android market, I found the same
issue.

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



[android-developers] Re: Paint.setColor

2009-01-15 Thread Romain Guy

Use a ColorFilter on the Paint :)

On Thu, Jan 15, 2009 at 4:33 PM, Patrick  wrote:
>
> To draw a bitmap more transparent then normal, I do the following :
>
> Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG);
> paint.setAlpha(0x7F);
> canvas.drawBitmap(bitmap, matrix, paint);
>
> This works great. The bitmap is half opaque...
>
> However, I also want to draw a bitmap with a red tint. One would
> think :
>
> Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG);
> paint.setColor(0x);
> canvas.drawBitmap(bitmap, matrix, paint);
>
> would achieve that. But no. The bitmap is rendered normally. However,
> if I change it to :
>
> Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG);
> paint.setColor(0x7FFF);
> canvas.drawBitmap(bitmap, matrix, paint);
>
> The alpha component of the color is indeed taken into account, but not
> the color channels. The bitmap shows up as half-opaque, but not red.
> In fact, I tried a number of colors, and the alpha is the only thing
> taken into account no matter what I pass in.
>
> So how can I go about applying a color multiplier to a bitmap when I
> draw it ?
>
> >
>



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

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Dependency injection into Activity

2009-01-15 Thread Freepine
Ok, I guess you both are right and because I don't intend to start it by
myself right now, so I am not really qualified to speak here.I chopped in
just because I happened to agree with the original post that DI is helpful
to increase testability which I believe is well accepted in java world.

Maybe someday I can start for some initial code if I had time and enthusiasm
:)

-Freepine

On Thu, Jan 15, 2009 at 10:14 PM, Mark Murphy wrote:

>
> Freepine wrote:
> > I am not trying to convince you or someone else. I am just trying to
> > explain here why I think it's beneficial.
>
> It may be. The concerns voiced on this thread, though, cannot be
> addressed by words, only by code, as they seem to mostly pertain to
> performance considerations.
>
> > BTW, it's not an open attitude for an open source project if someone
> > gives a different opinion,  he'll be required to implement it by himself.
>
> Sure it is. The "by himself" may be temporary.
>
> All open source begins with an itch to scratch. Somebody starts
> scratching that itch, convinces others the itch is worth scratching, and
> growth continues from there.
>
> Sometimes, convincing others the itch is worth scratching comes first.
> That's not all that common of a pattern. Usually, convincing comes after
> at least some amount of code.
>
> It may be that the initial code can come in the form of an existing DI
> framework that can be trimmed down to work in Dalvik.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

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

2009-01-15 Thread Mark Murphy

CJ wrote:
> On Jan 15, 2:12 pm, CJ  wrote:
>> my application is a client running on the android. i need to know some
>> infomation about the installation or theremovalof my application.
>> to be more specific, the server needs to be informed upon the
>> applicationremoval.
>> is it possible?

AFAIK, your application is not informed when it is to be removed. After
all, if the user is trying to remove your application, the user probably
does not want your application to be running.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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



[android-developers] Paint.setColor

2009-01-15 Thread Patrick

To draw a bitmap more transparent then normal, I do the following :

Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG);
paint.setAlpha(0x7F);
canvas.drawBitmap(bitmap, matrix, paint);

This works great. The bitmap is half opaque...

However, I also want to draw a bitmap with a red tint. One would
think :

Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG);
paint.setColor(0x);
canvas.drawBitmap(bitmap, matrix, paint);

would achieve that. But no. The bitmap is rendered normally. However,
if I change it to :

Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG);
paint.setColor(0x7FFF);
canvas.drawBitmap(bitmap, matrix, paint);

The alpha component of the color is indeed taken into account, but not
the color channels. The bitmap shows up as half-opaque, but not red.
In fact, I tried a number of colors, and the alpha is the only thing
taken into account no matter what I pass in.

So how can I go about applying a color multiplier to a bitmap when I
draw it ?

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



[android-developers] Re: application removal notification

2009-01-15 Thread CJ

anybody can help?


On Jan 15, 2:12 pm, CJ  wrote:
> my application is a client running on the android. i need to know some
> infomation about the installation or theremovalof my application.
> to be more specific, the server needs to be informed upon the
> applicationremoval.
> is it possible?
> thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Roadmap of GPS support in Android

2009-01-15 Thread Tony

Right now, Android GPS library only supports standalone GPS, Does
anyone know when Android library will support MS-Based AGPS?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 have two different fonts within the same ListView item?

2009-01-15 Thread Mark Murphy

Akash Dongre wrote:
> I am trying to have two fonts in a same ListView item, like shown in
> the following link in the first Image.
> 
> http://phandroid.com/2008/12/10/visa-launches-android-mobile-application/
> 
> I am using two TextView to have different fonts, but don't know how to
> get them together, in a ListView.

You have two options. Both involve creating your own layout file for
what a row should look like.

1. If the fonts are ones built into Android, then you can specify the
fonts in the layout file, and you can give your layout file to your
SimpleCursorAdapter.

2. If you are using TrueType fonts, or you are not using
SimpleCursorAdapter, you may need to override getView() in your adapter
and inflate/populate the rows yourself.

I have a series of blog posts on AndroidGuys describing the latter
technique:

http://androidguys.com/?s=fancy+listviews

and a blog post on how to use TrueType fonts:

http://androidguys.com/?p=656

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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: Query about Content Provider queries...

2009-01-15 Thread A T
You are right about that :)
Yeah, so, in other words, it doesn't sound like a problem I'm going to be
able to solve here and now, for the project I'm working on.

Ok, no worries. I'm sure I'll figure something out. Thanks again for your
help!



On Thu, Jan 15, 2009 at 4:18 PM, Mark Murphy wrote:

>
> > Ok, I did not realize that. I had made the assumption that they were all
> > DB-based.
>
> Some will be, but I'm under the impression that ContentProvider was
> specifically designed not to force it. For example, some people are using
> ContentProvider to serve static Web content to a WebView, which IMHO
> doesn't fit a database pattern terribly well.
>
> > Anyway, I guess I will have to figure out some other way, then. If anyone
> > has any suggestions, I welcome them :)
>
> I'm sorry if I sounded too harsh in my previous response.
>
> Given time and effort, you could:
>
> -- Design a way for ContentProviders to support OPTIONAL additional
> interfaces that provide some of the hooks you seek
>
> -- Modify the built-in ContentProviders to support those interfaces
>
> -- Submit both as patches to Android and hope they are approved
>
> However, the keys are "time", "effort", "OPTIONAL", and "approved", none
> of which might line up with your near-term objectives...
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 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: Inject key event for call camera app

2009-01-15 Thread Dave Sparks

The Cupcake SDK will include a way of specifying the image quality.

On Jan 12, 8:52 am, Dave Sparks  wrote:
> I'll have to look into it, but there should be an extra you can put in
> in the intent to specify image quality. If not, then we should add it.
>
> On Jan 10, 1:38 am, fala70  wrote:
>
> > No I don't want use "android.media.action.IMAGE_CAPTURE" intent,
> > because it return only a low image resolution. I want use an other
> > method. Use the camera default application and listen the new picture
> > added into the image provider. For that I looking for a solution to
> > run camera application from my activity.
> > Somebody know I do it ?
>
> > On 9 Gen, 19:39, Dave Sparks  wrote:
>
> > > You want to broadcast "android.media.action.IMAGE_CAPTURE" intent.
>
> > > On Jan 9, 9:55 am, fala70  wrote:
>
> > > > Hi guys,
>
> > > > Somebody know how can I call the camera capture application from my
> > > > application ? I tried to use inject key event without success using
> > > > KEY CAMERA BUTTON. If  the user push key camera button from any
> > > > applications, the camera capture application work. Is there a mode to
> > > > call camera capture application from my activiy ?
>
> > > > Thanks at all
> > > > Stefano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 really, really, need help with the android emulator sensors, HELP PLEASE!

2009-01-15 Thread Justin (Google Employee)

I think is all a bit moot because you won't get any interesting input
from the emulator sensor service. What would it take the sensor input
from? I could be wrong though, I've never tried to use it in the
emulator.

Cheers,
Justin
Android Team @ Google

On Jan 12, 7:47 pm, "Fred Grott(shareme)" 
wrote:
> HardwareTest permission not set right..
>
> should be uses-permission
> android.name=android.permission.HARDWARE_TEST
>
> On Jan 12, 9:30 pm, flashpro  wrote:
>
> > OK, here is my manifest file. Below that is the Logcat data:
>
> > 
> > http://schemas.android.com/apk/res/android";
> > package="com.android.bouncingball" android:versionCode="11"
> > android:versionName="1.3.3">
> > 
> >  > android:icon="@drawable/icon"
> > android:permission="android.permission.HARDWARE_TEST">
> > 
> > 
> > 
> >  > android:name="android.intent.category.LAUNCHER" />
> > 
> > 
> > 
> > 
> > 
> >  > android:name="android.intent.category.LAUNCHER" />
> > 
> > 
> > 
> > 
> > LOG
>
> > 01-12 19:29:13.245: DEBUG/AndroidRuntime(297): >>
> > AndroidRuntime START <<
> > 01-12 19:29:13.245: DEBUG/AndroidRuntime(297): CheckJNI is ON
> > 01-12 19:29:13.405: DEBUG/AndroidRuntime(297): --- registering native
> > functions ---
> > 01-12 19:29:13.405: INFO/jdwp(297): received file descriptor 19 from
> > ADB
> > 01-12 19:29:14.175: DEBUG/PackageParser(55): Scanning package: /data/
> > app/vmdl54456.tmp
> > 01-12 19:29:14.305: WARN/PackageManager(55): Attempt to re-install
> > com.android.bouncingball without first uninstalling.
> > 01-12 19:29:14.305: INFO/installd(28): unlink /data/dalvik-cache/
> > d...@a...@vmdl54456@classes.dex
> > 01-12 19:29:14.335: DEBUG/AndroidRuntime(297): Shutting down VM
> > 01-12 19:29:14.335: DEBUG/dalvikvm(297): DestroyJavaVM waiting for non-
> > daemon threads to exit
> > 01-12 19:29:14.345: INFO/dalvikvm(297): DestroyJavaVM shutting VM down
> > 01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread shutting
> > down
> > 01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread has shut
> > down
> > 01-12 19:29:14.355: DEBUG/jdwp(297): JDWP shutting down net...
> > 01-12 19:29:14.375: DEBUG/jdwp(297): +++ peer disconnected
> > 01-12 19:29:14.375: INFO/dalvikvm(297): Debugger has detached; object
> > registry had 1 entries
> > 01-12 19:29:14.395: DEBUG/dalvikvm(297): VM cleaning up
> > 01-12 19:29:14.415: DEBUG/dalvikvm(297): LinearAlloc 0x0 used 529468
> > of 4194304 (12%)
> > 01-12 19:29:14.645: DEBUG/dalvikvm(55): GC freed 4683 objects / 308520
> > bytes in 319ms
> > 01-12 19:29:14.765: DEBUG/AndroidRuntime(305): >>
> > AndroidRuntime START <<
> > 01-12 19:29:14.775: DEBUG/AndroidRuntime(305): CheckJNI is ON
> > 01-12 19:29:15.129: DEBUG/AndroidRuntime(305): --- registering native
> > functions ---
> > 01-12 19:29:15.145: INFO/jdwp(305): received file descriptor 19 from
> > ADB
> > 01-12 19:29:15.905: DEBUG/PackageParser(55): Scanning package: /data/
> > app/vmdl54457.tmp
> > 01-12 19:29:16.034: DEBUG/PackageManager(55): Removing package
> > com.android.bouncingball
> > 01-12 19:29:16.045: DEBUG/PackageManager(55):   Activities:
> > com.android.bouncingball.BouncingBall
> > com.android.bouncingball.FileExplorer
> > 01-12 19:29:16.045: DEBUG/PackageManager(55): Scanning package
> > com.android.bouncingball
> > 01-12 19:29:16.055: INFO/PackageManager(55): /data/app/vmdl54457.tmp
> > changed; unpacking
> > 01-12 19:29:16.065: DEBUG/installd(28): DexInv: --- BEGIN '/data/app/
> > vmdl54457.tmp' ---
> > 01-12 19:29:16.305: DEBUG/dalvikvm(313): DexOpt: load 39ms, verify
> > 96ms, opt 1ms
> > 01-12 19:29:16.335: DEBUG/installd(28): DexInv: --- END '/data/app/
> > vmdl54457.tmp' (success) ---
> > 01-12 19:29:16.335: DEBUG/PackageManager(55):   Activities:
> > com.android.bouncingball.BouncingBall
> > com.android.bouncingball.FileExplorer
> > 01-12 19:29:16.415: INFO/installd(28): move /data/dalvik-cache/
> > d...@a...@vmdl54457@classes.dex -> /data/dalvik-cache/
> > d...@a...@com.android.bouncingball@classes.dex
> > 01-12 19:29:16.435: DEBUG/PackageManager(55): New package installed
> > in /data/app/com.android.bouncingball.apk
> > 01-12 19:29:16.595: DEBUG/AndroidRuntime(305): Shutting down VM
> > 01-12 19:29:16.605: DEBUG/dalvikvm(305): DestroyJavaVM waiting for non-
> > daemon threads to exit
> > 01-12 19:29:16.605: DEBUG/ActivityManager(55): Uninstalling process
> > com.android.bouncingball
> > 01-12 19:29:16.635: INFO/dalvikvm(305): DestroyJavaVM shutting VM down
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): HeapWorker thread shutting
> > down
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): HeapWor

[android-developers] 2008 Top Google Android Skins

2009-01-15 Thread Tea Vui Huang

The results are in! Check out which is the most popular Google Android
phone skins of 2008 at

Tea Vui Huang's Android Page
http://teavuihuang.com/android

... and it's not the T-Mobile G1 :O

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

2009-01-15 Thread Andrew Stadler

Don-

Here is one way to do this:

In your activity declaration, add this interface:

   MyActivity extends Activity implements OnItemClickListener

Then implement as follows:
/**
 * Implements OnItemClickListener
 */
public void onItemClick(AdapterView parent, View view, int
position, long id) {
if (parent == myAutoCompleteTextView) {
   // handle item click
}
}

For additional tricks, see also  OnItemSelectedListener.

Hope this helps.
--Andy

On Thu, Jan 15, 2009 at 5:45 AM, Don Rules  wrote:
> I have written an application to show the contacts in the
> AutoCompleteTextView.
> while the user types the alphabets, it fetches the matching contacts to
> display.
>
> For this I have used a CursorAdapter
>
> Now I have to get the Contact name when the contact is clicked.
>
> How do i use setOnItemSelectedListener(AdapterView.OnItemSelectedListener l)
> for the AutoCompleteTextvView.
>
> Please help.
>
> Regards,
> Don.
> >
>

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

2009-01-15 Thread Michael

Puneet Bhatia wrote:
> I want to run Perl script on Android Emulator but when I tried to do
> that, I got error, "Perl : command not found".
> Can you please guide me how I can use Perl on emulator.

You would have to port perl yourself to the Android platform, it's
currently not supported.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 build Android.jar from the source code

2009-01-15 Thread Andrew Stadler

Although there is a long-term goal to move in that direction, not all
of the platform applications can be built in the SDK.  Sorry

Andy


On Wed, Jan 14, 2009 at 8:48 PM, Android  wrote:
>
> hi all ,
>
> Thanks for your help and valuable comments. here one quick question...
>
> I taken the MMS application which is availble in the source code.
> I created an android project for that source code in my eclipse.which
> uses the new SDK (android-sdk-windows-1.0_r2).
>
> MMS application uses some of the packages like
>
> com.google.android.mms.,
>  android.provider.Telephony.Mms;
>  android.provider.Telephony.Sms;
> android.provider.Telephony.Threads;
>
> which are not present in this version of SDK. So how am i can get
> those packages and i can bale to run my MMS application.
>
> one more question if i want to debug framework like i mean to say
> telephone manager , how can i able to achieve this task usiing
> eclipse.
>
> Regards,
> Raghu
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: static member data issue in arm-eabi-ld

2009-01-15 Thread Andrew Stadler

Sorry to keep repeating this, but native development is *not*
currently supported by the SDK.  This mailing list is for discussion
of application development using the SDK.  You may want to try
android-platform or android-discuss.

See  for more information.

Thanks,
Andy




On Thu, Jan 15, 2009 at 8:25 AM, simon  wrote:
>
> hi all,
>
> i'm trying to compile simple native application under Android platform
> and got problem with linker (looks like linker or linker scripts bug)
>
> my simple program:
>
> class C
> {
>static int m;
>
> public:
>static void f() { m = 0; }
> };
>
> int main(int, char**)
> {
>C::f();
>return 0;
> }
>
> compilation commands:
>
> arm-eabi-gcc -c -I/home/simon/workspace/mydroid/system/core/include -I/
> home/simon/workspace/mydroid/hardware/libhardware/include -I/home/
> simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/
> mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/
> workspace/mydroid/frameworks/base/include -I/home/simon/workspace/
> mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/
> mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/
> target/product/generic/obj/include -I/home/simon/workspace/mydroid/
> bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/
> libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include -
> I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/
> workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/
> mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/
> libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/
> libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm -
> I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/
> mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/
> libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -
> D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG -
> march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno-
> threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind-
> tables -fstack-protector-all -fmessage-length=0 main2.cpp
>
> arm-eabi-gcc -o mt -I/home/simon/workspace/mydroid/system/core/include
> -I/home/simon/workspace/mydroid/hardware/libhardware/include -I/home/
> simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/
> mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/
> workspace/mydroid/frameworks/base/include -I/home/simon/workspace/
> mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/
> mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/
> target/product/generic/obj/include -I/home/simon/workspace/mydroid/
> bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/
> libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include -
> I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/
> workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/
> mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/
> libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/
> libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm -
> I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/
> mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/
> libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -
> D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG -
> march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno-
> threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind-
> tables -fstack-protector-all -fmessage-length=0 -Bdynamic -Wl,-T,/home/
> simon/workspace/mydroid/build/core/armelf.x -Wl,-dynamic-linker,/
> system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-
> undefined -Wl,-rpath,/system/lib,-rpath,/data/lib -Wl,-rpath-link,/
> home/simon/workspace/mydroid/out/target/product/generic/obj/lib -L/
> home/simon/workspace/mydroid/out/target/product/generic/obj/lib -
> nostdlib /home/simon/workspace/mydroid/out/target/product/generic/obj/
> lib/crtend_android.o /home/simon/workspace/mydroid/out/target/product/
> generic/obj/lib/crtbegin_static.o -lc -lm -gdb main2.o
>
> linker output and error message:
>
> main2.o: In function `C::f()':
> main2.cpp:(.gnu.linkonce.t._ZN1C1fEv+0x64): undefined reference to
> `C::m'
> collect2: ld returned 1 exit status
>
> Maybe I use wrong ldscripts? Have somebody any suggestions?
> Thanks for advice.
>
> >
>

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

[android-developers] reduce height of a button

2009-01-15 Thread info.sktechnol...@gmail.com

What is the preferred way to reduce the height of a button and
maintain the label in the center?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Seeking Developers

2009-01-15 Thread Fred Grott(shareme)

Ben it seems that everyone is somewhat ahead of you in that they are
already completing apps

And please with more than 1 billion programmers world wide its not the
idea its the execution




On Jan 15, 9:46 am, lincolnsand  wrote:
> Hello,
>
> I would like to thank you for taking the time to read my posting.
> First let's clear up a couple of things. This is not a big corporate
> job offer. On the other hand it is an amazing opportunity to work on
> some awesome very viable applications. Applications that I believe can
> win the next Android contest and make money on the market. These
> applications are only ideas. We need people that want to take these
> ideas from scratch and first win some money on our way to taking these
> applications to market. Once these application get to market there
> will be a great opportunity for profit.
>
> You ask how I can be so sure of these ideas. First of all I have been
> self employed for my entire working career, using my phone for as much
> as 5000 minutes  ( 80 hours ) a month. I have real understanding of
> what I would like to be able to do on my phone. Looking at the android
> contest winners, there were some interesting and cool applications. I
> my opinion though, they were lacking viability. If you had just a
> regular cell phone plan for thirty dollars a month, would you switch
> to a plan were you need pay an additional thirty dollars a month and
> additional fees to track your carbon foot print or track your friends
> that you have no time for because your too busy working because your
> phone can't do what you need it to, or to busy taking care of a
> family. But if you can save a mother or entrepreneur's time and keep
> them organized, then the idea becomes more viable. Instead of a cool
> gadget, now you have something they cannot live without. Just like
> their cell phone.
>
> WHAT DO I WANT
>
> I am an individual looking for some other motivated individuals or
> groups looking to win the next android contest. I would like to
> discuss the ideas with you. If you think they will work like I do then
> let's talk. If you see what I see then maybe we can create a situation
> where we all prosper. It takes a lot of work to make things happen. I
> would like to put together a team to make these ideas a reality.
> In attempt to protect the information for all those involved. I would
> like each person to sign a NDA. I will attach a copy. Sign the copy
> and send it to me and we can get started!
> Please feel free to contact me 330.465.5184
>
> Thanks
>
> Ben Stahl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Scaling objects within an AbsoluteLayout

2009-01-15 Thread Romain Guy

They're not, you can use getScrollX/Y instead.

On Thu, Jan 15, 2009 at 1:46 PM, Pachu  wrote:
>
> Also I have tried creating my own ScrollView class but, there are
> several member variables that I see being used in the source code on
> GIT namely mScrollX and mScrollY, but as far as I know these have been
> removed from View going from 0.9 to 1.0, and they are critical to the
> functionality of ScrollView as far as I can tell by looking at the
> source.
>
> http://code.google.com/android/migrating/0.9-1.0/changes/android.view.View.html
>
>
>
> On Jan 15, 3:13 pm, Pachu  wrote:
>> Ah, I see, so the only possibility is to rewrite the ScrollView class?
>> I was hoping there would be a quick solution, because the
>> AbsoluteLayout
>> still seems to render the data that is past the ScrollView area,
>> because
>> if I manually scroll using the scrollTo and overriding the keyListener
>> I can still see all of the content just fine.
>>
>> Thanks,
>> Pachu
>>
>> On Jan 15, 2:59 pm, Romain Guy  wrote:
>>
>> > No because the ScrollView is responsible for the layout of
>> > AbsoluteLayout. That means the width of AbsoluteLayout is decided by
>> > ScrollView.
>>
>> > On Thu, Jan 15, 2009 at 11:54 AM,Pachu wrote:
>>
>> > > Right, but shouldn't the AbsoluteLayout still return its own full
>> > > width?
>>
>> > > On Jan 15, 2:39 pm, Romain Guy  wrote:
>> > >> This is because ScrollView does not support horizontal scrolling.
>>
>> > >> On Thu, Jan 15, 2009 at 11:36 AM,Pachu wrote:
>>
>> > >> > Okay, I got a working version of scaling the view but there is one
>> > >> > major problem.
>> > >> > Let me start by describing the situation.
>>
>> > >> > The top level view is a ScrollView.
>> > >> > This ScrollView contains an AbsoluteLayout.
>> > >> > The AbsoluteLayout contains text/image widgets that go beyond the
>> > >> > bounds of the display.
>>
>> > >> > Now interestingly when I get the width/height of the layout, the full
>> > >> > height is returned properly,
>> > >> > however the width returned is the same as the display width. When I
>> > >> > get the ScrollView's width/height I get the screen size values which
>> > >> > is expected.
>>
>> > >> > Is there any particular reason why the AbsoluteLayout will only return
>> > >> > the screen width but returns the proper height?
>>
>> > >> > This is the only reason my horizontal scrolling/scrollbars and scaling
>> > >> > behave erratically.
>>
>> > >> > Thanks,
>> > >> >Pachu.
>>
>> > >> --
>> > >> Romain Guy
>> > >> Android framework engineer
>> > >> romain...@android.com
>>
>> > >> Note: please don't send private questions to me, as I don't have time
>> > >> to provide private support.  All such questions should be posted on
>> > >> public forums, where I and others can see and answer them
>>
>> > --
>> > Romain Guy
>> > Android framework engineer
>> > romain...@android.com
>>
>> > Note: please don't send private questions to me, as I don't have time
>> > to provide private support.  All such questions should be posted on
>> > public forums, where I and others can see and answer them
> >
>



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

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Scaling objects within an AbsoluteLayout

2009-01-15 Thread Pachu

Also I have tried creating my own ScrollView class but, there are
several member variables that I see being used in the source code on
GIT namely mScrollX and mScrollY, but as far as I know these have been
removed from View going from 0.9 to 1.0, and they are critical to the
functionality of ScrollView as far as I can tell by looking at the
source.

http://code.google.com/android/migrating/0.9-1.0/changes/android.view.View.html



On Jan 15, 3:13 pm, Pachu  wrote:
> Ah, I see, so the only possibility is to rewrite the ScrollView class?
> I was hoping there would be a quick solution, because the
> AbsoluteLayout
> still seems to render the data that is past the ScrollView area,
> because
> if I manually scroll using the scrollTo and overriding the keyListener
> I can still see all of the content just fine.
>
> Thanks,
> Pachu
>
> On Jan 15, 2:59 pm, Romain Guy  wrote:
>
> > No because the ScrollView is responsible for the layout of
> > AbsoluteLayout. That means the width of AbsoluteLayout is decided by
> > ScrollView.
>
> > On Thu, Jan 15, 2009 at 11:54 AM,Pachu wrote:
>
> > > Right, but shouldn't the AbsoluteLayout still return its own full
> > > width?
>
> > > On Jan 15, 2:39 pm, Romain Guy  wrote:
> > >> This is because ScrollView does not support horizontal scrolling.
>
> > >> On Thu, Jan 15, 2009 at 11:36 AM,Pachu wrote:
>
> > >> > Okay, I got a working version of scaling the view but there is one
> > >> > major problem.
> > >> > Let me start by describing the situation.
>
> > >> > The top level view is a ScrollView.
> > >> > This ScrollView contains an AbsoluteLayout.
> > >> > The AbsoluteLayout contains text/image widgets that go beyond the
> > >> > bounds of the display.
>
> > >> > Now interestingly when I get the width/height of the layout, the full
> > >> > height is returned properly,
> > >> > however the width returned is the same as the display width. When I
> > >> > get the ScrollView's width/height I get the screen size values which
> > >> > is expected.
>
> > >> > Is there any particular reason why the AbsoluteLayout will only return
> > >> > the screen width but returns the proper height?
>
> > >> > This is the only reason my horizontal scrolling/scrollbars and scaling
> > >> > behave erratically.
>
> > >> > Thanks,
> > >> >Pachu.
>
> > >> --
> > >> Romain Guy
> > >> Android framework engineer
> > >> romain...@android.com
>
> > >> Note: please don't send private questions to me, as I don't have time
> > >> to provide private support.  All such questions should be posted on
> > >> public forums, where I and others can see and answer them
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  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: emulator

2009-01-15 Thread Fred Grott(shareme)

Carlos, welcome to Android programming

On Jan 15, 9:16 am, Diemison Carlos  wrote:
> Hello everybody,
> I am a brazilian student of Computer Engineering and
> I am learning about Android.
>
> Now I need a emulator for to text my programs,
> but I don't know where i can find.
>
> Can you help me?
>
> --
> Carlos Mello
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Query about Content Provider queries...

2009-01-15 Thread Mark Murphy

> Ok, I did not realize that. I had made the assumption that they were all
> DB-based.

Some will be, but I'm under the impression that ContentProvider was
specifically designed not to force it. For example, some people are using
ContentProvider to serve static Web content to a WebView, which IMHO
doesn't fit a database pattern terribly well.

> Anyway, I guess I will have to figure out some other way, then. If anyone
> has any suggestions, I welcome them :)

I'm sorry if I sounded too harsh in my previous response.

Given time and effort, you could:

-- Design a way for ContentProviders to support OPTIONAL additional
interfaces that provide some of the hooks you seek

-- Modify the built-in ContentProviders to support those interfaces

-- Submit both as patches to Android and hope they are approved

However, the keys are "time", "effort", "OPTIONAL", and "approved", none
of which might line up with your near-term objectives...

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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: JPF : Java plugin framework on Android

2009-01-15 Thread Mark Murphy

> Nobody really ?

JPF probably uses dynamic JAR loading, which I don't think is possible in
Android, since JARs are packaged in unmodifiable APKs and are not shared
between applications.

> Can not imagine that anyone had never imagine to implement a plugin
> based app in Android !?!

There are multiple "plugin-based applications" in Android. Check out
OpenIntents.org, for example.

By using Intent, ContentProvider, AIDL, and the like, you can create
applications that can interoperate with other Android applications in a
plug-in fashion. There are issues with this (versioning, getting plugins
installed, identifying available plugins), but the basic plumbing is
already there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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: Query about Content Provider queries...

2009-01-15 Thread A T
Ok, I did not realize that. I had made the assumption that they were all
DB-based.

My real goal here was to just figure out the best (i.e. quickest) way to do
some operations that are not possible with the given content provider
methods, but at the same time avoid localizing them and then re-uploading
the to their native data stores. The reason I don't want to localize them is
that I am trying to provide a replacement service for an existing service on
the phone, so it must operate on the native content provider, otherwise it
is not nearly as useful. It needs to be fast, which it currently isn't if a
lot of data is present, which is common with this particular content. I need
to access and update the content relatively often (at least as often as the
app is started), so faster is better. If it was a rare occurrence, it
wouldn't be a terrible problem if it was a little slow.

Anyway, I guess I will have to figure out some other way, then. If anyone
has any suggestions, I welcome them :)

Thank you, Mark, for your explanation.
AT
On Thu, Jan 15, 2009 at 3:57 PM, Mark Murphy wrote:

>
> > In terms of existing providers,
> > if I need to do, say, a DISTINCT query, I would have to either load the
> > table into my own provider/SQLite DB and do it there by executing an
> > arbitrary SQLite query, or use a content provider query and operate on
> the
> > cursor manually.
>
> Generally speaking, the former is impossible, since you won't have access
> to the database (e.g., security), if there even is a database, which is
> far from a given.
>
> > Both approaches are not as efficient as allowing us to
> > directly do the distinct query to the provider itself.
>
> Content providers do not need to use SQLite as a data store. They could
> use flat files, Web services, third-party object databases, SD card
> directory trees, random number generators, etc.
>
> There is a subset of content providers that will use SQLite as a data
> store. What Ms. Hackborn is suggesting is that those content providers
> could offer distinct, etc. via their own exported Uri pattern. What you
> seem to be proposing is to force developers to implement all the SQL
> options for data stores that aren't SQL, which may not be a popular
> answer.
>
> > I just have a hard
> > time understanding why there aren't overloaded query methods that allow
> > for
> > certain arguments, as there are with the SQLite packages (e.g. having a
> > boolean for DISTINCT).
>
> Again, content providers do not need to use SQLite as a data store.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 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: JPF : Java plugin framework on Android

2009-01-15 Thread myDroid

Nobody really ?
Can not imagine that anyone had never imagine to implement a plugin
based app in Android !?!
I will have to find by myself.
Regards,


On 12 jan, 18:23, myDroid  wrote:
> Hello,
>
> I was wondering if it is possible to include this framework (JPF 
> :http://jpf.sourceforge.net/about.html) in an Android application to
> make a plugin oriented app.
> Has anyone tried ? Has anyone succeed ?
> If not does anyone has got any idea to make easily a plugin oriented
> software in android ?
> Regards,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Query about Content Provider queries...

2009-01-15 Thread Mark Murphy

> In terms of existing providers,
> if I need to do, say, a DISTINCT query, I would have to either load the
> table into my own provider/SQLite DB and do it there by executing an
> arbitrary SQLite query, or use a content provider query and operate on the
> cursor manually.

Generally speaking, the former is impossible, since you won't have access
to the database (e.g., security), if there even is a database, which is
far from a given.

> Both approaches are not as efficient as allowing us to
> directly do the distinct query to the provider itself.

Content providers do not need to use SQLite as a data store. They could
use flat files, Web services, third-party object databases, SD card
directory trees, random number generators, etc.

There is a subset of content providers that will use SQLite as a data
store. What Ms. Hackborn is suggesting is that those content providers
could offer distinct, etc. via their own exported Uri pattern. What you
seem to be proposing is to force developers to implement all the SQL
options for data stores that aren't SQL, which may not be a popular
answer.

> I just have a hard
> time understanding why there aren't overloaded query methods that allow
> for
> certain arguments, as there are with the SQLite packages (e.g. having a
> boolean for DISTINCT).

Again, content providers do not need to use SQLite as a data store.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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] Two different views with CursorAdapter

2009-01-15 Thread chouman82

I am not sure if you can do this, but essentially what I am trying to
do is to use a CursorAdapter with a list that has two different
views.  To be more specific, I am trying to have a different view for
an item in the list that's selected than the rest of the items in the
list that's not selected.  Is this possible?

If so how? some code snippet would help greatly.  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: Scaling objects within an AbsoluteLayout

2009-01-15 Thread Pachu

Ah, I see, so the only possibility is to rewrite the ScrollView class?
I was hoping there would be a quick solution, because the
AbsoluteLayout
still seems to render the data that is past the ScrollView area,
because
if I manually scroll using the scrollTo and overriding the keyListener
I can still see all of the content just fine.

Thanks,
Pachu

On Jan 15, 2:59 pm, Romain Guy  wrote:
> No because the ScrollView is responsible for the layout of
> AbsoluteLayout. That means the width of AbsoluteLayout is decided by
> ScrollView.
>
>
>
> On Thu, Jan 15, 2009 at 11:54 AM,Pachu wrote:
>
> > Right, but shouldn't the AbsoluteLayout still return its own full
> > width?
>
> > On Jan 15, 2:39 pm, Romain Guy  wrote:
> >> This is because ScrollView does not support horizontal scrolling.
>
> >> On Thu, Jan 15, 2009 at 11:36 AM,Pachu wrote:
>
> >> > Okay, I got a working version of scaling the view but there is one
> >> > major problem.
> >> > Let me start by describing the situation.
>
> >> > The top level view is a ScrollView.
> >> > This ScrollView contains an AbsoluteLayout.
> >> > The AbsoluteLayout contains text/image widgets that go beyond the
> >> > bounds of the display.
>
> >> > Now interestingly when I get the width/height of the layout, the full
> >> > height is returned properly,
> >> > however the width returned is the same as the display width. When I
> >> > get the ScrollView's width/height I get the screen size values which
> >> > is expected.
>
> >> > Is there any particular reason why the AbsoluteLayout will only return
> >> > the screen width but returns the proper height?
>
> >> > This is the only reason my horizontal scrolling/scrollbars and scaling
> >> > behave erratically.
>
> >> > Thanks,
> >> >Pachu.
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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: Query about Content Provider queries...

2009-01-15 Thread A T
Thanks for your response. I really don't mean to push the issue, I'm just
afraid that you misunderstood my question. In terms of existing providers,
if I need to do, say, a DISTINCT query, I would have to either load the
table into my own provider/SQLite DB and do it there by executing an
arbitrary SQLite query, or use a content provider query and operate on the
cursor manually. Both approaches are not as efficient as allowing us to
directly do the distinct query to the provider itself. I just have a hard
time understanding why there aren't overloaded query methods that allow for
certain arguments, as there are with the SQLite packages (e.g. having a
boolean for DISTINCT).

UNLESS you're saying that we can actually extend the functionality for
existing providers and implement the query ourselves? If that's the case,
that would be great, but I don't see how to do that from looking at the API
spec...

Thanks again,
AT

On Thu, Jan 15, 2009 at 1:00 PM, Dianne Hackborn wrote:

> No, that would expose the implementation behind the content provider more
> than we want.  For your own content provider you can fairly easily define
> your own URI schemes that allow arbitrary joins or such across tables or
> other things, but we don't plan on this becoming a general facility that all
> content providers must allow.
>
>
> On Thu, Jan 15, 2009 at 7:07 AM, A T  wrote:
>
>> I have one quick question and one maybe not-as-quick question:
>>
>> 1. Will we be able to employ more robust SQL(ite) queries on content
>> providers with future releases? For instance: joins, distinct, count,
>> max, etc?
>>
>> 2. Why isn't this possible now? I understand the concept of DB table
>> abstraction and the reasoning behind it, but why not still provide
>> some roundabout way of doing these operations (without storing the
>> content in a local SQLite table, of course)?
>>
>>
>>
>> Thanks AT
>>
>>
>>
>
>
> --
> 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.  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: Saving/Loading dynamic Bitmaps

2009-01-15 Thread Patrick

That was the first thing I tried, but it failed to be able to load it
back. I posted about that, but got no reply :)

http://groups.google.com/group/android-developers/browse_thread/thread/4026b41eff9126a8/8017db2289f82456#8017db2289f82456

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

2009-01-15 Thread Romain Guy

No because the ScrollView is responsible for the layout of
AbsoluteLayout. That means the width of AbsoluteLayout is decided by
ScrollView.

On Thu, Jan 15, 2009 at 11:54 AM, Pachu  wrote:
>
> Right, but shouldn't the AbsoluteLayout still return its own full
> width?
>
> On Jan 15, 2:39 pm, Romain Guy  wrote:
>> This is because ScrollView does not support horizontal scrolling.
>>
>>
>>
>> On Thu, Jan 15, 2009 at 11:36 AM,Pachu wrote:
>>
>> > Okay, I got a working version of scaling the view but there is one
>> > major problem.
>> > Let me start by describing the situation.
>>
>> > The top level view is a ScrollView.
>> > This ScrollView contains an AbsoluteLayout.
>> > The AbsoluteLayout contains text/image widgets that go beyond the
>> > bounds of the display.
>>
>> > Now interestingly when I get the width/height of the layout, the full
>> > height is returned properly,
>> > however the width returned is the same as the display width. When I
>> > get the ScrollView's width/height I get the screen size values which
>> > is expected.
>>
>> > Is there any particular reason why the AbsoluteLayout will only return
>> > the screen width but returns the proper height?
>>
>> > This is the only reason my horizontal scrolling/scrollbars and scaling
>> > behave erratically.
>>
>> > Thanks,
>> >Pachu.
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
> >
>



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

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Scaling objects within an AbsoluteLayout

2009-01-15 Thread Pachu

Right, but shouldn't the AbsoluteLayout still return its own full
width?

On Jan 15, 2:39 pm, Romain Guy  wrote:
> This is because ScrollView does not support horizontal scrolling.
>
>
>
> On Thu, Jan 15, 2009 at 11:36 AM,Pachu wrote:
>
> > Okay, I got a working version of scaling the view but there is one
> > major problem.
> > Let me start by describing the situation.
>
> > The top level view is a ScrollView.
> > This ScrollView contains an AbsoluteLayout.
> > The AbsoluteLayout contains text/image widgets that go beyond the
> > bounds of the display.
>
> > Now interestingly when I get the width/height of the layout, the full
> > height is returned properly,
> > however the width returned is the same as the display width. When I
> > get the ScrollView's width/height I get the screen size values which
> > is expected.
>
> > Is there any particular reason why the AbsoluteLayout will only return
> > the screen width but returns the proper height?
>
> > This is the only reason my horizontal scrolling/scrollbars and scaling
> > behave erratically.
>
> > Thanks,
> >Pachu.
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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: static member data issue in arm-eabi-ld

2009-01-15 Thread Michael MacDonald

This is a problem with your c++ program, not with android.

m is declared but not defined.

You need to add

int c::m;

to your source file.

simon wrote:
> hi all,
>
> i'm trying to compile simple native application under Android platform
> and got problem with linker (looks like linker or linker scripts bug)
>
> my simple program:
>
> class C
> {
> static int m;
>
> public:
> static void f() { m = 0; }
> };
>
> int main(int, char**)
> {
> C::f();
> return 0;
> }
>
> compilation commands:
>
> arm-eabi-gcc -c -I/home/simon/workspace/mydroid/system/core/include -I/
> home/simon/workspace/mydroid/hardware/libhardware/include -I/home/
> simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/
> mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/
> workspace/mydroid/frameworks/base/include -I/home/simon/workspace/
> mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/
> mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/
> target/product/generic/obj/include -I/home/simon/workspace/mydroid/
> bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/
> libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include -
> I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/
> workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/
> mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/
> libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/
> libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm -
> I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/
> mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/
> libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -
> D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG -
> march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno-
> threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind-
> tables -fstack-protector-all -fmessage-length=0 main2.cpp
>
> arm-eabi-gcc -o mt -I/home/simon/workspace/mydroid/system/core/include
> -I/home/simon/workspace/mydroid/hardware/libhardware/include -I/home/
> simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/
> mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/
> workspace/mydroid/frameworks/base/include -I/home/simon/workspace/
> mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/
> mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/
> target/product/generic/obj/include -I/home/simon/workspace/mydroid/
> bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/
> libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include -
> I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/
> workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/
> mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/
> libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/
> libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm -
> I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/
> mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/
> libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -
> D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG -
> march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno-
> threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind-
> tables -fstack-protector-all -fmessage-length=0 -Bdynamic -Wl,-T,/home/
> simon/workspace/mydroid/build/core/armelf.x -Wl,-dynamic-linker,/
> system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-
> undefined -Wl,-rpath,/system/lib,-rpath,/data/lib -Wl,-rpath-link,/
> home/simon/workspace/mydroid/out/target/product/generic/obj/lib -L/
> home/simon/workspace/mydroid/out/target/product/generic/obj/lib -
> nostdlib /home/simon/workspace/mydroid/out/target/product/generic/obj/
> lib/crtend_android.o /home/simon/workspace/mydroid/out/target/product/
> generic/obj/lib/crtbegin_static.o -lc -lm -gdb main2.o
>
> linker output and error message:
>
> main2.o: In function `C::f()':
> main2.cpp:(.gnu.linkonce.t._ZN1C1fEv+0x64): undefined reference to
> `C::m'
> collect2: ld returned 1 exit status
>
> Maybe I use wrong ldscripts? Have somebody any suggestions?
> Thanks for advice.
>
> >   


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

2009-01-15 Thread Romain Guy

This is because ScrollView does not support horizontal scrolling.

On Thu, Jan 15, 2009 at 11:36 AM, Pachu  wrote:
>
> Okay, I got a working version of scaling the view but there is one
> major problem.
> Let me start by describing the situation.
>
> The top level view is a ScrollView.
> This ScrollView contains an AbsoluteLayout.
> The AbsoluteLayout contains text/image widgets that go beyond the
> bounds of the display.
>
> Now interestingly when I get the width/height of the layout, the full
> height is returned properly,
> however the width returned is the same as the display width. When I
> get the ScrollView's width/height I get the screen size values which
> is expected.
>
> Is there any particular reason why the AbsoluteLayout will only return
> the screen width but returns the proper height?
>
> This is the only reason my horizontal scrolling/scrollbars and scaling
> behave erratically.
>
> Thanks,
> Pachu.
> >
>



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

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Scaling objects within an AbsoluteLayout

2009-01-15 Thread Pachu

Okay, I got a working version of scaling the view but there is one
major problem.
Let me start by describing the situation.

The top level view is a ScrollView.
This ScrollView contains an AbsoluteLayout.
The AbsoluteLayout contains text/image widgets that go beyond the
bounds of the display.

Now interestingly when I get the width/height of the layout, the full
height is returned properly,
however the width returned is the same as the display width. When I
get the ScrollView's width/height I get the screen size values which
is expected.

Is there any particular reason why the AbsoluteLayout will only return
the screen width but returns the proper height?

This is the only reason my horizontal scrolling/scrollbars and scaling
behave erratically.

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



[android-developers] application removal notification

2009-01-15 Thread CJ

my application is a client running on the android. i need to know some
infomation about the installation or the removal of my application.
to be more specific, the server needs to be informed upon the
application removal.
is it possible?
thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: emulator

2009-01-15 Thread rktb

http://code.google.com/android/

On Jan 15, 8:16 pm, Diemison Carlos  wrote:
> Hello everybody,
> I am a brazilian student of Computer Engineering and
> I am learning about Android.
>
> Now I need a emulator for to text my programs,
> but I don't know where i can find.
>
> Can you help me?
>
> --
> Carlos Mello
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 have two different fonts within the same ListView item?

2009-01-15 Thread Akash Dongre

Hi,

I am trying to have two fonts in a same ListView item, like shown in
the following link in the first Image.

http://phandroid.com/2008/12/10/visa-launches-android-mobile-application/

I am using two TextView to have different fonts, but don't know how to
get them together, in a ListView.

Best Regards,

Akash Dongre

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



[android-developers] "my downloads" in Android Market

2009-01-15 Thread daim

"My downloads" is a pain  ... with all the apps you ever installed,
even if you uninstalled them afterwards. And: there is no difference
between installed apps that can be updated and uninstalled apps. I get
crazy with 5 sorts of torch apps, I had installed. I decided to keep
only one and when I browse the market to see, which updates are
available, I don't remember, which one is still installed an which
are  uninstalled. Both say "free", when there is an update for the
installed one.

It would be nice to be able to sort the apps not only after their name
but after their status "installed", "to be updated" and "uninstalled".


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



[android-developers] static member data issue in arm-eabi-ld

2009-01-15 Thread simon

hi all,

i'm trying to compile simple native application under Android platform
and got problem with linker (looks like linker or linker scripts bug)

my simple program:

class C
{
static int m;

public:
static void f() { m = 0; }
};

int main(int, char**)
{
C::f();
return 0;
}

compilation commands:

arm-eabi-gcc -c -I/home/simon/workspace/mydroid/system/core/include -I/
home/simon/workspace/mydroid/hardware/libhardware/include -I/home/
simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/
mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/
workspace/mydroid/frameworks/base/include -I/home/simon/workspace/
mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/
mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/
target/product/generic/obj/include -I/home/simon/workspace/mydroid/
bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/
libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include -
I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/
workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/
mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/
libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/
libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm -
I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/
mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/
libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -
D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG -
march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno-
threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind-
tables -fstack-protector-all -fmessage-length=0 main2.cpp

arm-eabi-gcc -o mt -I/home/simon/workspace/mydroid/system/core/include
-I/home/simon/workspace/mydroid/hardware/libhardware/include -I/home/
simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/
mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/
workspace/mydroid/frameworks/base/include -I/home/simon/workspace/
mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/
mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/
target/product/generic/obj/include -I/home/simon/workspace/mydroid/
bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/
libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include -
I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/
workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/
mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/
libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/
libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm -
I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/
mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/
libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -
D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG -
march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno-
threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind-
tables -fstack-protector-all -fmessage-length=0 -Bdynamic -Wl,-T,/home/
simon/workspace/mydroid/build/core/armelf.x -Wl,-dynamic-linker,/
system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-
undefined -Wl,-rpath,/system/lib,-rpath,/data/lib -Wl,-rpath-link,/
home/simon/workspace/mydroid/out/target/product/generic/obj/lib -L/
home/simon/workspace/mydroid/out/target/product/generic/obj/lib -
nostdlib /home/simon/workspace/mydroid/out/target/product/generic/obj/
lib/crtend_android.o /home/simon/workspace/mydroid/out/target/product/
generic/obj/lib/crtbegin_static.o -lc -lm -gdb main2.o

linker output and error message:

main2.o: In function `C::f()':
main2.cpp:(.gnu.linkonce.t._ZN1C1fEv+0x64): undefined reference to
`C::m'
collect2: ld returned 1 exit status

Maybe I use wrong ldscripts? Have somebody any suggestions?
Thanks for advice.

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

2009-01-15 Thread lgonc...@gmail.com

I have the same problem.
Did you find anything to solve this??

On Dec 23 2008, 1:48 pm, "J.C. Wren"  wrote:
> Any ideas here?
>
> Thanks,
> --jc
>
> On Dec 19, 11:17 pm, "J.C. Wren"  wrote:
>
> > I've provided aonTrackballEventin a ItemizedOverlay
> > that I've sub-classed.  I do not seem to be getting any events through
> > this method.
>
> > I've over-ridden onTap(), draw(), createItem() and size(), and those
> > all work correctly.
>
> > Is there some reason I wouldn't be seeing trackball events?
>
> > The actual goal here is that I have a MapActivity with a number of
> > icons on the screen.  I'd like to use the trackball to move the focus
> > to icons on the screen (without scrolling to icons that are on the map
> > but off-screen), and click to bring up additional information.
>
> > Thanks,
> > --jc

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



[android-developers] Trigger functionality from outside Android

2009-01-15 Thread SGAdrian

Hi,

is there a way to trigger functionality from an application living
outside Android?

If I for example want to setup a voicecall from an application running
on windows is that possible?

This has always been possible with AT-commands(ATD, ATH etc.) on other
platforms. One other nice feature would be to control the UI from an
external testapplication, could that be possible?

BR,
SGAdrian

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



[android-developers] emulator

2009-01-15 Thread Diemison Carlos
Hello everybody,
I am a brazilian student of Computer Engineering and
I am learning about Android.

Now I need a emulator for to text my programs,
but I don't know where i can find.

Can you help me?


-- 
Carlos Mello

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



[android-developers] AutoCompleteTextView: Need help.

2009-01-15 Thread Don Rules
I have written an application to show the contacts in the
AutoCompleteTextView.
while the user types the alphabets, it fetches the matching contacts to
display.

For this I have used a CursorAdapter

Now I have to get the Contact name when the contact is clicked.

How do i use 
setOnItemSelectedListener
(AdapterView.OnItemSelectedListenerl)
for the AutoCompleteTextvView.

Please help.

Regards,
Don.

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



[android-developers] transparency issue..

2009-01-15 Thread basu

hi,
i am new to android & facing some issues in transparency.
My intention is to
1)in my test activity i have a text "hello world"
2)my test activity intern call Preview of camera code.
when this is happened, i am not able to see the below "hello world"
how can i make that visible?
i also want to create a new text(or might be a bitmap also) and
displayed on the top view. so when my program runs it should show two
different texts in two different layers(not sure if the terminology is
proper).I am trying this experiment in SDK not in actual h/w.
here is my code.
Any help will be great.
Thanks.
==
public class test extends Activity {
/** Called when the activity is first created. */
private Preview mPreview;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView text = (TextView)findViewById(R.id.TextView01);//
textview01 contains "hello world"
text.setTextColor(Color.WHITE);
getWindow().setFlags(WindowManager.LayoutParams.ALPHA_CHANGED,
WindowManager.LayoutParams.ALPHA_CHANGED);

// Create our Preview view and set it as the content of our
activity.
mPreview = new Preview(this);
setContentView(mPreview);
}
}
---
--
class Preview extends SurfaceView implements SurfaceHolder.Callback {
SurfaceHolder mHolder;
Camera mCamera;

Preview(Context context) {
super(context);

// Install a SurfaceHolder.Callback so we get notified when
the
// underlying surface is created and destroyed.
mHolder = getHolder();
mHolder.addCallback(this);
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

}

public void surfaceCreated(SurfaceHolder holder) {
// The Surface has been created, acquire the camera and tell
it where
// to draw.


mCamera = Camera.open();


mCamera.setPreviewDisplay(holder);
}

public void surfaceDestroyed(SurfaceHolder holder) {
// Surface will be destroyed when we return, so stop the
preview.
// Because the CameraDevice object is not a shared resource,
it's very
// important to release it when the activity is paused.

mCamera.stopPreview();
mCamera = null;
}

public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h) {
// Now that the size is known, set up the camera parameters
and begin
// the preview.

Camera.Parameters parameters = mCamera.getParameters();
parameters.setPreviewSize(w, h);
mCamera.setParameters(parameters);
mCamera.startPreview();

}


}

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



[android-developers] Re: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread jmagic

Perhaps this will help you:

http://www.sqlite.org/c3ref/c_abort.html

#define SQLITE_CONSTRAINT  19   /* Abort due to constraint violation
*/


On Jan 15, 11:43 am, "mobilek...@googlemail.com"
 wrote:
> Hi,
>
> Has anyone come across this one:
> android.database.sqlite.SQLiteConstraintException: error code 19. It
> gets thrown on 'insert', 'update' and 'delete' statements.
>
> What is it supposed to mean? At the moment the documentation lacks a
> signle word about SQL Exceptions and the error codes they throw.
>
> 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: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread Ronald Krijgsheld
hi,

you can check the documentation of sqlite itself.
as i understand it, it is a thrown when a constraint in the database is
violated. e.g. a
foreign key constraint or delete constraint.

a google let me to the following issue:

http://code.google.com/p/android/issues/detail?id=1221

- ronald


On Thu, Jan 15, 2009 at 10:43 AM, mobilek...@googlemail.com <
mobilek...@googlemail.com> wrote:

>
> Hi,
>
> Has anyone come across this one:
> android.database.sqlite.SQLiteConstraintException: error code 19. It
> gets thrown on 'insert', 'update' and 'delete' statements.
>
> What is it supposed to mean? At the moment the documentation lacks a
> signle word about SQL Exceptions and the error codes they throw.
>
> 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: Strange and interesting problem (For Really ANDROID Lovers)

2009-01-15 Thread Ronald Krijgsheld
Hi,

MyMsg is a global string. so it is overwritten.

instead declare the string inside the for like:
final string MyMsg = str[Myi] ;

- ronald

On Thu, Jan 15, 2009 at 9:47 AM,  wrote:

>
> Hi developers...
>
>
>First of all thanks for the greate replies. Now i
> have a very strange problem. Now i can access all the sms those have
> "hello" in their body. I want to send the content of each sms to
> another program. But the problem is i can able to send only the the
> content of last sms.I mean all the sms send the same thing the content
> of last sms. I have tried a lot to solve the problem. But i cant send
> the each content of each sms . I give u the coding.
>
> 
>
> import android.app.Activity;
> import android.app.ListActivity;
> import android.content.ContentUris;
> import android.content.Intent;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.Contacts.People;
> import android.provider.Telephony.Carriers;
> import android.widget.LinearLayout;
>
> import android.telephony.gsm.SmsMessage;
> import android.view.View;
> import android.widget.ArrayAdapter;
> import android.widget.Button;
> import android.widget.ListAdapter;
> import android.widget.ListView;
> import android.widget.SimpleCursorAdapter;
> import android.widget.TextView;
>
> public class tele extends Activity {
>
>TextView ms1;
>TextView ms2;
>  String MyMsg = "";
> // Button ms1;
>  /** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle icicle) {
>super.onCreate(icicle);
>setContentView(R.layout.main);
>
>   // ms1=(Button)findViewById(R.id.ms1);
>LinearLayout layout = (LinearLayout) findViewById(R.id.ms1);
>LinearLayout.LayoutParams p = new
>LinearLayout.LayoutParams(
>LinearLayout.LayoutParams.FILL_PARENT,
>LinearLayout.LayoutParams.WRAP_CONTENT
>);
>
>Uri uri = Uri.parse("content://sms/inbox");
>Cursor c= getContentResolver().query(uri, null, "body like
> '%hello%'",null,null);
>
>   // Cursor c = getContentResolver().query(Carriers.CONTENT_URI,
> null, null, null, null);
>startManagingCursor(c);
>
>if(c.getCount() !=0)
>{
>String[] str = new String[c.getCount()];
>int i = 0;
>if(c.moveToFirst())
>{
>do
>{
>
>str[i] = (c.getString
> (c.getColumnIndexOrThrow("body"))).toString();
>
>i++;
>
>}while(c.moveToNext());
>   }
>
>
>int j;
>   int Myi;
>   for (Myi=0; Myi < str.length; Myi++)
>   {
>
>   if ( str[Myi].indexOf("hello") >= 0 )
>   {
>   MyMsg = str[Myi] ;
>   Button buttonView = new Button(this);
>   buttonView.setText(  str[Myi]);
>   layout.addView(buttonView,p);
>
>
>   buttonView.setOnClickListener(
>   new
> LinearLayout.OnClickListener() {
>public void onClick(View
> arg0) {
>Intent myIntent =
> new Intent();
>
>  myIntent.setClassName
> ("com.android.tele", "com.android.tele.Hello2");
>//myIntent.putExtra
> ("com.android.HelloBye.heby", "Hello Joe!"); // key/value pair, where
> key needs current package prefix.
>
>  myIntent.putExtra("nikvar", MyMsg);
>
>  //myIntent.putExtra("niva",
> "Martin");// key/value pair, where key needs current package prefix.
>
>  startActivity(myIntent);
>
>}
>}
>   );
>
>
>   }
>   }
>
>
>
>
> }
>  /*  LinearLayout ms1=(LinearLayout)findViewById(R.id.ms1);
>ms1.setOnClickListener(new LinearLayout.OnClickListener() {
>public void onClick(View arg0) {
>Intent myIntent = new Intent();
>myIntent.setClassName("com.android.tele",
> "com.android.tele.Hello2");
>//myIntent.putExtra("com.android.HelloBye.heby",
> "Hello
> Joe!"); // key/value pair, where key needs current package prefix.
>myIntent.putExtra("nikvar", "Ricky");
> 

[android-developers] The link for the developer phone doesnt work, new phone to emerge?

2009-01-15 Thread mobila...@gmail.com

Hello.

I noticed that the link for purchasing the developer G1 doesnt seem to
work. It simply reloads the page. Is it just an error or are they
releasing some new phone?

Have anyone else experienced this?

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



[android-developers] Re: Android Dev Phone 1

2009-01-15 Thread Jinwoo Min
There is a solution without SIM card.
Check this site first.

http://www.android-unleashed.com/2008/11/howto-install-non-market-apk-apps-on.html

then, if adb is enabled, go to the folder that is installed adb, type like
below.

adb shell "echo app.setupwizard.disable=1 > /data/local.prop"
adb shell reboot

I hope this helps.
Jinwoo

p.s. In fact, I have no G1 Dev phone. I got this information from
http://www.kandroid.org/board/board.php?board=HTCDream&command=body&no=32.


On Thu, Jan 15, 2009 at 9:07 AM, somatt  wrote:

>
> I wasn't aware verizon had sim cards.
> -Matt
>
> On Jan 14, 8:03 am, Kenneth Loafman  wrote:
> > If I understand previous posts, a Verizon SIM card won't work in the G1
> or
> > Developer phones.  Is that correct?  If so, not all SIM cards work.
> >
> > On Tue, 13 Jan 2009 07:18:46 -0800 (PST), blake <
> blake.me..@gmail.com>
> > wrote:
> >
> > >A phone needs a SIM card in order to work.  You'll have to buy one,
> > >from a carrier.
> >
> > >"Unlocked" means that you can buy any SIM that you want, AT&T, T-
> > >Mobile, etc., and it will work in the phone.  A locked phone will only
> > >work with the with a SIM from the company that sold you the phone.
> >
> > >The phone is not a brick.  There are instructions around, for getting
> > >it running, with just the USB cable.  After you follow them, you will
> > >be able to use Apps, Wireless, GPS, etc., just not the phone.
> >
> > >-blake
> >
> > >On Jan 12, 7:27 am, indiegamer  wrote:
> > >> I am new to programming for Android and Mobile. Got the Android Dev
> > >> Phone 1 and says it it will come Sim and Hardware unlocked.
> >
> > >> Now I get the phone and instruction #2 says insert your Battery and
> > >> Sim Card.
> >
> > >> Well I thought I didn't need a Sim Card? Says it was unlocked?
> >
> > >> So I put in battery and no Sim Card. So I start the phone and it says,
> > >> "No Sim Card. No Sim Card In Phone." I hit the Menu button and nothing
> > >> happens. Open up the keyboard and nothing happens.
> >
> > >> I know I am a newbie, but am I missing something? Do I need a sim
> card/
> > >> cell phone plan subscription?
> >
> > >> Right now I have an artist who is working on a background for a
> > >> application. I want to "test" to see how it would look on the phone.
> >
> > >> But how do I do this? I does not come with instruction book, is there
> > >> a place online that explains this a bit?
>
> >
>

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



[android-developers] Re: Can Intents contains Rich Java Objects?

2009-01-15 Thread Dianne Hackborn
But please read what I wrote, do NOT put this in to Intents or usually any
Bundle object.  This is primarily for communication with services.

On Thu, Jan 15, 2009 at 6:49 AM, Inderjeet Singh  wrote:

>
> Thanks, this is perfect for our use-case!
>
> Just to confirm: if you put an IBinder object in a bundle and it is
> shared across processes, any changes to the object state through proxy
> will be communicated back to the process owning the object. Is that
> correct?
>
> I dont know of another operating environment that is able to allow
> mutually untrusting apps to share live objects with each other. Yes, I
> know about Unix/Windows shared memory constructs but I was thinking
> more like Java, Javascript, etc. I am pleasantly surprised.
>
> Thanks
> Inder
>
>
>
> On Tue, Jan 13, 2009 at 7:25 PM, Dianne Hackborn 
> wrote:
> > No, this is wrong.
> >
> > - If you are putting normal objects (primitives, Parcelable,
> Serializable)
> > into the Bundle, they will be copied and re-instantiated as the Intent
> > travels into the system process and back to your app.
> >
> > - If you put IBinder objects in, a reference to the object will be
> > transfered, and you will receive back either the original object (if in
> the
> > same process) or a proxy object (if in another process).
> >
> > And please: DO NOT PUT IBINDER OBJECTS IN TO INTENTS.  In most places
> > hopefully the framework prevents this.  If you do, your app will break
> > occasionally, when its process gets killed and the activity using the
> object
> > is re-instantiated.
> >
>
> >
>


-- 
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.  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: Query about Content Provider queries...

2009-01-15 Thread Dianne Hackborn
No, that would expose the implementation behind the content provider more
than we want.  For your own content provider you can fairly easily define
your own URI schemes that allow arbitrary joins or such across tables or
other things, but we don't plan on this becoming a general facility that all
content providers must allow.

On Thu, Jan 15, 2009 at 7:07 AM, A T  wrote:

> I have one quick question and one maybe not-as-quick question:
>
> 1. Will we be able to employ more robust SQL(ite) queries on content
> providers with future releases? For instance: joins, distinct, count,
> max, etc?
>
> 2. Why isn't this possible now? I understand the concept of DB table
> abstraction and the reasoning behind it, but why not still provide
> some roundabout way of doing these operations (without storing the
> content in a local SQLite table, of course)?
>
>
>
> Thanks AT
>
> >
>


-- 
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.  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: Android Bug/Architectural Issue: How do I handle multiple versions of my own Content Provider?

2009-01-15 Thread Dianne Hackborn
Generally I would recommend against hacky solutions that redefine the
semantics of very well-defined calls.  It would be much better to just
define a standard structure of the content provider where this information
can be found be regular queries.

Along those same lines, looking for your own special text in the authority
to identify content providers you are going to work with is also kind-of
screwy.  Typically how we do this is attach meta-data to the component that
whoever is interested in identifying specifically tagged components looks
for.  Look at the way input method service components are discovered in
Cupcake as an example.

Also, have you thought about security at all?  What kind of information is
stored on the content provider?  Who can access it?

On Thu, Jan 15, 2009 at 8:36 AM, Peli  wrote:

>
> Hm...
>
> I assume, getType() is also called by the system whenever it wants to
> resolve an intent that contains the data (so that it can look up the
> Manifest file for the appropriate intent filter that contains that
> MIME type).
>
> So I guess if the argument of getType(..) is not a content URI that
> you use in intents, then probably your "trick" is safe after all :-)
>
> I don't know whether some Android folks know of other caveats that one
> may like to take into consideration?
>
> Peli
>
> On Jan 15, 3:55 pm, Peli  wrote:
> > Nice solution.
> >
> > However, one point of critique:
> >
> > >  I can then pass around
> > > Synchronisation information (validity, compatibility, version, status,
> > > etc) using any of the ContentProvider class methods (I used getType
> > > ()).
> >
> > Probably you should not mis-use getType(), even if all
> > ContentProviders act in your own name space. The reason is that other
> > applications (maybe a universal backup application?) may peek all
> > content providers and call getType() if they are interested in what
> > kind of content your content providers provide.
> >
> > Probably it is safer to use query() on different URI paths, as this
> > can return whatever you define it to return - within your name space.
> >
> > Peliwww.openintents.org
> >
> > On Jan 15, 2:05 pm, whitemice  wrote:
> >
> > > Solution
> > > The simplest solution (not using intents) is to instruct each user of
> > > my component to define a new content provider:
> >
> > > content://myComponentNamespace.theirApplicaitonNamespace
> >
> > > Android lets me search through all available content providers, which
> > > can be string matched to my own component namespace.
> >
> > > context.getPackageManager().queryContentProviders(null, 0, 0);
> >
> > > If I find more than one valid Content Provider I can then pass around
> > > Synchronisation information (validity, compatibility, version, status,
> > > etc) using any of the ContentProvider class methods (I used getType
> > > ()).
> >
> > > The only problem with this approach is that the application developer
> > > who imports my component (as a JAR) will have to define their own
> > > custom Content Provider.  This is done by extending the
> > > MyComponentContentProvider class (from my JAR) and defining a
> > > CONTENT_URI variable.
> >
> > > package test;
> > > import com.whitemice.MyComponentContentProvider;
> > > public class TheirContentProvider extends MyComponentContentProvider {
> > > public static final Uri CONTENT_URI =
> > > Uri.parse( "content://
> > > myComponentNamespace.theirApplicaitonNamespace");
> >
> > > }
> >
> > > As well as adding the custom provider to the Android manifest.
> >
> > >  > > android:name="test.TheirContentProvider"
> >
> > >
> android:authorities="test.service.TestContentProvider.TestAndroidContentProvider"
> > > />
> >
> > > Without the custom Content Provider configuration, Android will behave
> > > strangely and sometimes call a different .APK file if it has a class
> > > in it with the same name.
> >
> > > As this is a work time project, I will have to check if I can release
> > > the synchronisation code as a working example.  If I do it will appear
> > > on my blog here:http://tinyurl.com/9hwdva
> >
> > > Regards
> > > Mark
> >
> > > P.S. Thanks again everyone for your suggestions.
> >
>


-- 
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.  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: comining/merging two images

2009-01-15 Thread Romain Guy

Hi,

You can create a new Bitmap with the same size as your source images
(300x300.) Then create a Canvas to draw on this Bitmap. Finally, all
you have to do is first draw your image filled with color onto the
Canvas, then draw your image with the hole. You can get fancier with
the use of the PorterDuff Xfermodes but it should not be needed in
this case.

On Wed, Jan 14, 2009 at 11:55 PM, The Spirit  wrote:
>
> HI.
> I have two images.
> The first one is 300x300 with a round transparent "hole" in the middle
> (it is a png image).
> Underneath, i want another image, which is the same size but
> completely filled with color.
> Can i now combine this two images to one so that i get one image,
> which is the first image, only filled with color in the round "hole"
> in the middle with the color of the second image?
> Thanks
>
> >
>



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

Note: please don't send private questions to me, as I don't have time
to provide private support.  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: Question on the BlogPost of ListView posted by Romanian Guy

2009-01-15 Thread Romain Guy

Hi,

There is a bug with dividers and solid colors in Android 1.0. This bug
has been fixed in Cupcake. In the meantime, you should use a 9-patch.

On Thu, Jan 15, 2009 at 12:50 AM, for android  wrote:
> Hello,
>
> I understand the posting on the blog of android-developers
>
> I was just wondering when a list is getting displayed on solid back ground
> and I give a divider color in it .Why do i not get it the way i desire ?
>
> For eg in the code below i need list with blue background and a divider of
> white? But when i apply the divider color i dont get any ??Whats the reasin
> for this??
>
>  android:layout_width="fill_parent" android:divider="#FF"
> android:layout_height="fill_parent" />
>
> I have attached the sample code for the example I tried...
>
> >
>



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

Note: please don't send private questions to me, as I don't have time
to provide private support.  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 get storage path for photos, videos, tones, graphics, music and recording from the android handse

2009-01-15 Thread alan

have a look at 
http://code.google.com/android/reference/android/os/Environment.html
and 
http://code.google.com/android/reference/android/content/Context.html#getFilesDir()

On Jan 15, 11:11 am, sudha  wrote:
> Hello,
>
> i wanted Storage Path for  photos, videos, tones, graphics, music and
> recording from the android  handset. In j2me  I have used following
> perameters J2me to access path values:-
>
>         System.getProperty("fileconn.dir.photos");
>         System.getProperty("fileconn.dir.photos.name");
>         System.getProperty("fileconn.dir.memorycard.photos");
>         System.getProperty("fileconn.dir.memorycard.photos.name");
>
>         System.getProperty("fileconn.dir.videos");
>         System.getProperty("fileconn.dir.videos.name");
>         System.getProperty("fileconn.dir.memorycard.videos");
>         System.getProperty("fileconn.dir.memorycard.videos.name");
>
>         System.getProperty("fileconn.dir.tones");
>         System.getProperty("fileconn.dir.tones.name");
>         System.getProperty("fileconn.dir.memorycard.tones");
>         System.getProperty("fileconn.dir.memorycard.tones.name");
>
>         System.getProperty("fileconn.dir.graphics");
>         System.getProperty("fileconn.dir.graphics.name");
>         System.getProperty("fileconn.dir.memorycard.graphics");
>         System.getProperty("fileconn.dir.memorycard.graphics.name");
>
>         System.getProperty("fileconn.dir.music");
>         System.getProperty("fileconn.dir.music.name");
>         System.getProperty("fileconn.dir.memorycard.music");
>         System.getProperty("fileconn.dir.memorycard.music.name");
>
>         System.getProperty("fileconn.dir.recordings");
>         System.getProperty("fileconn.dir.recordings.name");
>         System.getProperty("fileconn.dir.memorycard.recordings");
>         System.getProperty("fileconn.dir.memorycard.recordings.name");
>
> Can anyone tell me how can i access these values from the handset for
> android.
> its very urgent
> Thanks
> Sudha Gupta
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Shell access in Dev Phone

2009-01-15 Thread David Turner
you can use "adb shell" to get a shell prompt on the phone. Beware that this
runs a version of "ash" so you'll be missing a *lot*of shell features.
Moreover, the system doesn't come by default with typical shell programs
like find, cp, etc... and no Perl / Python / etc...
(the terminal app also allows you to get a terminal program directly from
the phone, but it's not exactly a rosy experience :-))

you can probably find a busybox build for Android on the Internet that could
give you a much better environment though.

On Thu, Jan 15, 2009 at 5:01 PM, howa  wrote:

>
> Is this possible in the Dev Phone?
>
> It will be much usable since many guy like me only know how to write
> scripts, not Java Program.
>
> :)
>
>
>
> >
>

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

2009-01-15 Thread Sundog

I'm pretty sure the short answer is no.

On Jan 15, 9:01 am, howa  wrote:
> Is this possible in the Dev Phone?
>
> It will be much usable since many guy like me only know how to write
> scripts, not Java Program.
>
> :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Bug/Architectural Issue: How do I handle multiple versions of my own Content Provider?

2009-01-15 Thread Peli

Hm...

I assume, getType() is also called by the system whenever it wants to
resolve an intent that contains the data (so that it can look up the
Manifest file for the appropriate intent filter that contains that
MIME type).

So I guess if the argument of getType(..) is not a content URI that
you use in intents, then probably your "trick" is safe after all :-)

I don't know whether some Android folks know of other caveats that one
may like to take into consideration?

Peli

On Jan 15, 3:55 pm, Peli  wrote:
> Nice solution.
>
> However, one point of critique:
>
> >  I can then pass around
> > Synchronisation information (validity, compatibility, version, status,
> > etc) using any of the ContentProvider class methods (I used getType
> > ()).
>
> Probably you should not mis-use getType(), even if all
> ContentProviders act in your own name space. The reason is that other
> applications (maybe a universal backup application?) may peek all
> content providers and call getType() if they are interested in what
> kind of content your content providers provide.
>
> Probably it is safer to use query() on different URI paths, as this
> can return whatever you define it to return - within your name space.
>
> Peliwww.openintents.org
>
> On Jan 15, 2:05 pm, whitemice  wrote:
>
> > Solution
> > The simplest solution (not using intents) is to instruct each user of
> > my component to define a new content provider:
>
> > content://myComponentNamespace.theirApplicaitonNamespace
>
> > Android lets me search through all available content providers, which
> > can be string matched to my own component namespace.
>
> > context.getPackageManager().queryContentProviders(null, 0, 0);
>
> > If I find more than one valid Content Provider I can then pass around
> > Synchronisation information (validity, compatibility, version, status,
> > etc) using any of the ContentProvider class methods (I used getType
> > ()).
>
> > The only problem with this approach is that the application developer
> > who imports my component (as a JAR) will have to define their own
> > custom Content Provider.  This is done by extending the
> > MyComponentContentProvider class (from my JAR) and defining a
> > CONTENT_URI variable.
>
> > package test;
> > import com.whitemice.MyComponentContentProvider;
> > public class TheirContentProvider extends MyComponentContentProvider {
> > public static final Uri CONTENT_URI =
> > Uri.parse( "content://
> > myComponentNamespace.theirApplicaitonNamespace");
>
> > }
>
> > As well as adding the custom provider to the Android manifest.
>
> >  >         android:name="test.TheirContentProvider"
>
> > android:authorities="test.service.TestContentProvider.TestAndroidContentProvider"
> >         />
>
> > Without the custom Content Provider configuration, Android will behave
> > strangely and sometimes call a different .APK file if it has a class
> > in it with the same name.
>
> > As this is a work time project, I will have to check if I can release
> > the synchronisation code as a working example.  If I do it will appear
> > on my blog here:http://tinyurl.com/9hwdva
>
> > Regards
> > Mark
>
> > P.S. Thanks again everyone for your suggestions.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: DNS Caching

2009-01-15 Thread Greg White
On Thu, Jan 15, 2009 at 11:08 AM, David Turner  wrote:

> It simply is not possible to disable the cache from Java.
> The fixes/enhancements you mention are already planned for a future
> release, but didn't happen yet for various reasons.
>
>
Thanks.

Any timeframe on this?

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



[android-developers] Re: Display multiple videos at the same time in Android r1.

2009-01-15 Thread David Turner
I suspect that this has nothing to do with the emulator per se.
you do not describe exactly what you're doing nor what the crash really is,
so offering you a helpful answer is a bit tough.

On Thu, Jan 15, 2009 at 1:08 PM, sush  wrote:

>
> Hi,
>
> I am trying to play two videos simultaneously in the Android Emulator
> of version r1. But its crashing all the time.
> Can anyone please tell me if this version of emulator supports playing
> multiple videos.
>
> Thanks in advance.
>
> Regards,
> Susama
> >
>

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

2009-01-15 Thread David Turner
It simply is not possible to disable the cache from Java.
The fixes/enhancements you mention are already planned for a future release,
but didn't happen yet for various reasons.

sorry about that.

On Thu, Jan 15, 2009 at 12:43 PM, Greg White wrote:

> All,
>
> I've recently been bit by some DNS caching issues and am wondering if there
> is some way around them.  The source seems to say 'no', but perhaps I'm
> missing something.
>
> I'm trying to resolve hostnames using a couple of different methods:
>
> new InetSocketAddress(host, port) // The 'normal ' way
>
> and
>
> InetAddress[] addresses = InetAddress.getAllByName(host); // And this
> way to bypass the cache in InetAddress
>
> I start the emulator with -dns-server pointing at my host which is running
> dnsmasq set to return records with a TTL of 1 second.  This allows me to
> tweak the returned DNS values to simulate a DNS change.
>
> In each case, I'm doing this to (try) to disable the cache.  I'm doing both
> the generally accepted method (Security) and what PriviAction seems to be
> actually doing (System).
>
> System.setProperty("networkaddress.cache.ttl", "0");
> Security.setProperty("networkaddress.cache.ttl", "0");
>
> No luck, there is still DNS caching in place.
>
> Some poking around bionic reveals that there is a DNS cache in there, an
> MRU cache with 128 entries and a 10 minute timeout.  Sure enough, this
> matches what I am seeing exactly.
>
> There does not seem to be any way to flush this cache.
>
> I can disable it by setting an environment variable, BIONIC_DNSCACHE, to
> zero at process startup - if I can find a way to do that from Java.  That
> would be useful.
>
> While I am all for DNS caches, this 10 minute caching would seem to be
> inappropriate for a roaming device.  The problem I am trying to work around
> is that when I switch from my work network to the carrier network and vice
> versa, the DNS cache is not flushed.  We have an internal server set to
> resolve differently when you are inside the work network than when you are
> external (common enough) and this switch takes 10 full minutes to take
> effect after I switch networks.
>
> Is there some way to dump this cache short of a process restart?
>
> Neither of these caches honors TTL.  Bad caches.
>
> And there are two of them, one in Java, one in C, one on top of the other,
> which is very strange.  One would seem to be entirely sufficient.
>
> Furthermore, would it not be better to centralize these caches and flush
> them on a network change?  It would seem that it would be more efficient,
> faster and better to have all applications hitting one DNS cache, which
> could then be flushed after the DNS server changed.  It would be easy to
> configure dnsmasq to do just this - and all of the processes' DNS caches
> could be eliminated and fixed - and, presumably, this central cache could
> honor TTL.  It further appears that this could be accomplished with minimal
> code changes by setting the correct propery in Java, the right environment
> variable in C, pointing everyone at the local dnsmasq instance, and then
> configuring that on network change.
>
> Any help which anyone can offer would be greatly appreciated.
>
>
>
>
>
> >
>

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



[android-developers] Re: Is Android going to use the LGPL'ed Qt 4.5?

2009-01-15 Thread FranckLefevre



Oh ! Thanks David ! Thanks !

Let's keep Android clean, young ...unpolluted. ;-)

Franck




On Jan 15, 10:29 am, David Turner  wrote:
> short answer: no
>
> On Wed, Jan 14, 2009 at 9:05 PM, Alexander Orlov
> wrote:
>
>
>
>
>
> > Today Nokia have announced that it will relicense the Qt Framework
> > under LGPL  > added-to-qt>
> > Is Android going to embed Qt in its libraries layer now
> > ?- 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] Shell access in Dev Phone

2009-01-15 Thread howa

Is this possible in the Dev Phone?

It will be much usable since many guy like me only know how to write
scripts, not Java Program.

:)



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

2009-01-15 Thread madcoder

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



[android-developers] Seeking Developers

2009-01-15 Thread lincolnsand

Hello,

I would like to thank you for taking the time to read my posting.
First let's clear up a couple of things. This is not a big corporate
job offer. On the other hand it is an amazing opportunity to work on
some awesome very viable applications. Applications that I believe can
win the next Android contest and make money on the market. These
applications are only ideas. We need people that want to take these
ideas from scratch and first win some money on our way to taking these
applications to market. Once these application get to market there
will be a great opportunity for profit.

You ask how I can be so sure of these ideas. First of all I have been
self employed for my entire working career, using my phone for as much
as 5000 minutes  ( 80 hours ) a month. I have real understanding of
what I would like to be able to do on my phone. Looking at the android
contest winners, there were some interesting and cool applications. I
my opinion though, they were lacking viability. If you had just a
regular cell phone plan for thirty dollars a month, would you switch
to a plan were you need pay an additional thirty dollars a month and
additional fees to track your carbon foot print or track your friends
that you have no time for because your too busy working because your
phone can't do what you need it to, or to busy taking care of a
family. But if you can save a mother or entrepreneur's time and keep
them organized, then the idea becomes more viable. Instead of a cool
gadget, now you have something they cannot live without. Just like
their cell phone.

WHAT DO I WANT

I am an individual looking for some other motivated individuals or
groups looking to win the next android contest. I would like to
discuss the ideas with you. If you think they will work like I do then
let's talk. If you see what I see then maybe we can create a situation
where we all prosper. It takes a lot of work to make things happen. I
would like to put together a team to make these ideas a reality.
In attempt to protect the information for all those involved. I would
like each person to sign a NDA. I will attach a copy. Sign the copy
and send it to me and we can get started!
Please feel free to contact me 330.465.5184


Thanks

Ben Stahl


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



[android-developers] Query about Content Provider queries...

2009-01-15 Thread A T
I have one quick question and one maybe not-as-quick question:

1. Will we be able to employ more robust SQL(ite) queries on content
providers with future releases? For instance: joins, distinct, count,
max, etc?

2. Why isn't this possible now? I understand the concept of DB table
abstraction and the reasoning behind it, but why not still provide
some roundabout way of doing these operations (without storing the
content in a local SQLite table, of course)?



Thanks AT

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-15 Thread jarkman

Apparently I'm an idiot.

The problem is not with the ringtone, but with our activity, which
(when the screen is off) gets an onPause immediately after starting
up.

I guess the system is pausing the activity because the user can' see
it, and it doesn't want to waste effort running it. Does that mean we
need to move our playback works to a Service ?

Thanks,

Richard

On Jan 15, 6:34 am, Dave Sparks  wrote:
> I'd have to look at the code, but it doesn't surprise me. The phone
> app/lock screen is a tricky bit of code and I don't think it was
> intended for the ringtone to play while the screen is off.
>
> Is there a reason you chose the Ringtone class to play your sound?
> There are other options e.g. Notification Manager, MediaPlayer.
>
> On Jan 14, 4:16 pm, jarkman  wrote:
>
> > We have an app which uses Ringtone.play() to play tones.
>
> > We've found that when the screen is off, calls of Ringtone.play() in
> > our Activity do not make any noise (although the activity is
> > definitely running).
>
> > However, calls of Ringtone.play() from our BroadcastReceiver always
> > make a noise, even when the screen is off.
>
> > What's going on here ? Is this a deliberate platform behaviour ?
>
> > Thanks,
>
> > Richard
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Bug/Architectural Issue: How do I handle multiple versions of my own Content Provider?

2009-01-15 Thread Peli

Nice solution.

However, one point of critique:
>  I can then pass around
> Synchronisation information (validity, compatibility, version, status,
> etc) using any of the ContentProvider class methods (I used getType
> ()).

Probably you should not mis-use getType(), even if all
ContentProviders act in your own name space. The reason is that other
applications (maybe a universal backup application?) may peek all
content providers and call getType() if they are interested in what
kind of content your content providers provide.

Probably it is safer to use query() on different URI paths, as this
can return whatever you define it to return - within your name space.

Peli
www.openintents.org

On Jan 15, 2:05 pm, whitemice  wrote:
> Solution
> The simplest solution (not using intents) is to instruct each user of
> my component to define a new content provider:
>
> content://myComponentNamespace.theirApplicaitonNamespace
>
> Android lets me search through all available content providers, which
> can be string matched to my own component namespace.
>
> context.getPackageManager().queryContentProviders(null, 0, 0);
>
> If I find more than one valid Content Provider I can then pass around
> Synchronisation information (validity, compatibility, version, status,
> etc) using any of the ContentProvider class methods (I used getType
> ()).
>
> The only problem with this approach is that the application developer
> who imports my component (as a JAR) will have to define their own
> custom Content Provider.  This is done by extending the
> MyComponentContentProvider class (from my JAR) and defining a
> CONTENT_URI variable.
>
> package test;
> import com.whitemice.MyComponentContentProvider;
> public class TheirContentProvider extends MyComponentContentProvider {
> public static final Uri CONTENT_URI =
> Uri.parse( "content://
> myComponentNamespace.theirApplicaitonNamespace");
>
> }
>
> As well as adding the custom provider to the Android manifest.
>
>          android:name="test.TheirContentProvider"
>
> android:authorities="test.service.TestContentProvider.TestAndroidContentProvider"
>         />
>
> Without the custom Content Provider configuration, Android will behave
> strangely and sometimes call a different .APK file if it has a class
> in it with the same name.
>
> As this is a work time project, I will have to check if I can release
> the synchronisation code as a working example.  If I do it will appear
> on my blog here:http://tinyurl.com/9hwdva
>
> Regards
> Mark
>
> P.S. Thanks again everyone for your suggestions.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Aligning title of a dialog to be in center

2009-01-15 Thread Inderjeet Singh

Hi,

I have a custom dialog box extending android.app.Dialog. I would like
make sure that its title is aligned to center. Can someone help me
figure out how to get that done?

Thanks
Inder

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



[android-developers] Re: Can Intents contains Rich Java Objects?

2009-01-15 Thread Inderjeet Singh

Thanks, this is perfect for our use-case!

Just to confirm: if you put an IBinder object in a bundle and it is
shared across processes, any changes to the object state through proxy
will be communicated back to the process owning the object. Is that
correct?

I dont know of another operating environment that is able to allow
mutually untrusting apps to share live objects with each other. Yes, I
know about Unix/Windows shared memory constructs but I was thinking
more like Java, Javascript, etc. I am pleasantly surprised.

Thanks
Inder



On Tue, Jan 13, 2009 at 7:25 PM, Dianne Hackborn  wrote:
> No, this is wrong.
>
> - If you are putting normal objects (primitives, Parcelable, Serializable)
> into the Bundle, they will be copied and re-instantiated as the Intent
> travels into the system process and back to your app.
>
> - If you put IBinder objects in, a reference to the object will be
> transfered, and you will receive back either the original object (if in the
> same process) or a proxy object (if in another process).
>
> And please: DO NOT PUT IBINDER OBJECTS IN TO INTENTS.  In most places
> hopefully the framework prevents this.  If you do, your app will break
> occasionally, when its process gets killed and the activity using the object
> is re-instantiated.
>

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