[android-developers] If your wondering if users are out there...

2008-10-21 Thread Al Sutton

AndAppStore.com saw a 300% increase in total traffic yesterday (with a 
577% increase in traffic from G1s). Downloads of apks was up over 200% 
with 35% of all apk downloads being done by G1s (so if you're publishing 
an app, please don't assume everyone is going to download it to a PC 
first, you need to get you're MIME type right and an apk available).

60% of the hits were direct to site, 20% via Googles search page, and 
the remaining was mostly made up from links from androidguys.com, the 
T-Mobile forum, androidforums.com, and androidcommunity.com.

They're here...

Al.
http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-21 Thread MoggoDude

Hi Guys,
Just sending this update on the PathClassLoader problem. I
started a blog in the android-internals group,
http://groups.google.com/group/android-internals/browse_thread/thread/d53b610d51891147#,
looks like it is not possible
to dynamically load classes in devices installed with SDK 1.0, which I
believe will be installed on the HTC G1 coming out soon.
The remifications being, that any app which requires dynamic class
loading will not function properly on the HTC G1.

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



[android-developers] Re: webkit

2008-10-21 Thread Anton


Thanks.

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



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-21 Thread for android
Oh thanks Peli.Now I am able to see those files.Thanks very much.

However i wanted to know where is there a way to progrmatically scan the Dev
Tools.

Thanks
Guru

On Tue, Oct 21, 2008 at 6:38 PM, Peli <[EMAIL PROTECTED]> wrote:

>
> You have to click "Dev Tools" (or "Ze Dev Tools") / Media scanner.
> Once the sd card has been scanned, you should see your mp3 file in the
> media player.
>
> Peli
>
> On Oct 21, 2:28 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > Yes i see the file by the way you have specified.
> >
> > Let me explain once more.I download an mp3 and save it in the
> SDCard.After i
> > have saved it,should it not reflect in the mp3 files of the music icon
> that
> > is present on the phone.What should i do so that the file which I
> download
> > or save be visible in the Music or Pictures present in the phone.
> >
> > Thanks
> > Guru.
> >
> > On Tue, Oct 21, 2008 at 5:41 PM, Peli <[EMAIL PROTECTED]> wrote:
> >
> > > I also don't understand what you do to check that you don't see the
> > > file on the SD card.
> > > Do you mean a real SD card that you inserted physically into your
> > > computer?
> >
> > > Could you explain this in more detail?
> >
> > > Can you try the following in a DOS window:
> > > adb shell
> > > cd sdcard
> > > ls
> >
> > > Do you see your file then?
> >
> > > Peli
> >
> > > On Oct 21, 12:45 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > > > any help?
> >
> > > > On Mon, Oct 20, 2008 at 11:26 AM, for android <[EMAIL PROTECTED]>
> > > wrote:
> > > > > Thanks Mega for looking into this
> >
> > > > > I am seeing the sdcard from the emulator..When i start the emulator
> i
> > > have
> > > > > given the option in eclipse of the location of the sdcard.So after
> i
> > > > > download the file I want to view this file in the SDcard.I only see
> > > this the
> > > > > file in the DDMS mode,so the file has actually been downloaded.But
> I
> > > have
> > > > > not been able to figure out as to what stops me from seeing the
> file in
> > > the
> > > > > sdcard.
> >
> > > > > Thanks
> > > > > Guru
> >
> > > > > On Fri, Oct 17, 2008 at 12:28 PM, Megha Joshi <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > >> 2008/10/15 guru <[EMAIL PROTECTED]>
> >
> > > > >>> I needed to download a file and store it in my sdcard.I first
> save it
> > > > >>> by writing in the output stream(by using openFileOutput) in the
> > > > >>> application package.From here I copy it to my SDCard and its
> written
> > > > >>> on my SDCard.But when i see my SDCard in the file in the DDMS
> mode i
> > > > >>> am able to see that file,
> >
> > > > >> If you see the file on your sdcard in the ddms file explorer  it
> > > should be
> > > > >> there.
> >
> > > > >>> but in the SDCard i was not able to see that
> > > > >>> file.
> >
> > > > >> Its not clear how you are viewing the sdcard in this case.
> >
> > > > >>> Please could anyone tell how can this be acheived.
> >
> > > > >>> heres the code snippet i use.
> >
> > > > >>> String fileName = "myFileName";
> > > > >>> File bufferedFile = new File("/sdcard/"+fileName);
> >
> > > copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
> >
> > > > >>> private void copyFiletoSDCard(File fromFile, String fileName) {
> > > > >>>FileInputStream from = null;
> > > > >>>FileOutputStream to = null;
> > > > >>>try {
> > > > >>>from =
> > > context.openFileInput(fromFile.getName());
> > > > >>>to = new FileOutputStream(fileName);
> > > > >>>byte[] buffer = new byte[4096];
> > > > >>>int bytesRead;
> >
> > > > >>>while ((bytesRead = from.read(buffer)) !=
> -1)
> > > > >>>to.write(buffer, 0, bytesRead); //
> > > write
> > > > >>>} catch(IOException ioException){
> > > > >>>Log.i(getClass().getName(),"ioException
> Msg");
> >
> > > > >>>  Log.i(getClass().getName(),ioException.getMessage());
> > > > >>>ioException.printStackTrace();
> > > > >>>}finally {
> > > > >>>if (from != null)
> > > > >>>try {
> > > > >>>from.close();
> > > > >>>} catch (IOException e) {
> > > > >>>;
> > > > >>>}
> > > > >>>if (to != null)
> > > > >>>try {
> > > > >>>to.close();
> > > > >>>} catch (IOException e) {
> > > > >>>;
> > > > >>>}
> > > > >>>}
> >
> > > > >>>}
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups 

[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-21 Thread Xavier Ducrohet

To debug on devices you need to set the 'debuggable' attribute of the
application node to true (in AndroidManifest.xml).

Make sure to set it back to false before releasing your application.

Xav

On Tue, Oct 21, 2008 at 8:24 PM, nkijak <[EMAIL PROTECTED]> wrote:
>
> I can't seem to get the eclipse debugger to attach to the G1.  I can
> select "Debug" from the run menu and it will compile and launch the
> app on the phone but eclipse never enters the debug perspective (or
> even asks to). The phone sits with a "Waiting for Debugger" message
> dialog.
> When I enter the Android perspective I can see the device attached,
> see log entries, take screenshots but I cannot see process listings
> and "restarting adb" results in 11 failed attempts to connect.
> Is there some other configuration I need to adjust in eclipse, perhaps
> a port number?
>
> Thanks,
> Nick
> >
>

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



[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-21 Thread nkijak

That possibly did the trick.  I had to restart the phone.  Maybe for
the "Debug when USB" thing to take effect?

Thanks

On Oct 21, 11:33 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
> To debug on devices you need to set the 'debuggable' attribute of the
> application node to true (in AndroidManifest.xml).
>
> Make sure to set it back to false before releasing your application.
>
> Xav
>
> On Tue, Oct 21, 2008 at 8:24 PM, nkijak <[EMAIL PROTECTED]> wrote:
>
> > I can't seem to get the eclipse debugger to attach to the G1.  I can
> > select "Debug" from the run menu and it will compile and launch the
> > app on the phone but eclipse never enters the debug perspective (or
> > even asks to). The phone sits with a "Waiting for Debugger" message
> > dialog.
> > When I enter the Android perspective I can see the device attached,
> > see log entries, take screenshots but I cannot see process listings
> > and "restarting adb" results in 11 failed attempts to connect.
> > Is there some other configuration I need to adjust in eclipse, perhaps
> > a port number?
>
> > Thanks,
> > Nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Attaching the Eclipse debugger to actual device

2008-10-21 Thread nkijak

I can't seem to get the eclipse debugger to attach to the G1.  I can
select "Debug" from the run menu and it will compile and launch the
app on the phone but eclipse never enters the debug perspective (or
even asks to). The phone sits with a "Waiting for Debugger" message
dialog.
When I enter the Android perspective I can see the device attached,
see log entries, take screenshots but I cannot see process listings
and "restarting adb" results in 11 failed attempts to connect.
Is there some other configuration I need to adjust in eclipse, perhaps
a port number?

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



[android-developers] Spinner View

2008-10-21 Thread He Who Tries to Code

Hi Guys,

Spinner control used to allow left/right key presses to change the
content. It no longer works. Any idea if this was disabled by recent
SDK changes or is a spinner option. I could not find anything in the
spinner control documentation about it.

Thanks.

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



[android-developers] Re: Issues with GPS application on the actual G1 phone

2008-10-21 Thread nkijak

I wrote a little app to just display GPS information and this is what
I did:

LocationManager locationManager =
(LocationManager)getSystemService(LOCATION_SERVICE);
locationManager.requestLocationUpdates(locationManager.GPS_PROVIDER,
500l, 10l,this);

"this" being my Activity that implements LocationListner where this
bit of code lives in the onCreate method.  The permissions are

android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION

although I would think I'd just need ACCESS_FINE_LOCATION for GPS
coordinates.

Nick

On Oct 21, 4:18 pm, Greg <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> New to the groups and to android (about a month into it).  I developed
> an app on the emulator using the "gps" location provider and
> everything was working great via the gps emulator.
>
> I just got my G1 phone yesterday and was able to get the app installed
> successfully.   However, when I fired it up it was getting coordinates
> from all over the place that made no sense.  I was travelling about
> 300 mph just sitting in my backyard :)
>
> I put an activity out to list the available locationproviders from the
> location manager and got these two:
>
> provider 0 "network" with a class of
> android.location.DummyLocationProvider
> provider 1 "gps" with a class of
> android.location.DummyLocationProvider
>
> It looks clear to me that even on the actual phone, I'm only seeing
> fake providers.
>
> All of the samples I could find to this point talk about just using
> the "gps" provider by name, but that apparently isn't going to work on
> the real device.  I noticed when I used Google Maps, upon startup a
> satellite dish icon showed up in the status bar with a signal strength
> for the GPS.  When Maps was shut down that icon went away.  Apparently
> maps is using a different "real" provider that I can't see through the
> location manager.
>
> A bit long winded, but hopefully this is all clear.  I'm looking for
> any guidance on how a real application on a real device should
> properly locate the right  GPS provider for getting location
> information from.  Am I missing permissions that prevent me from
> seeing the real providers?
>
> Thanks for any assistance!
>
> Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADB via USB

2008-10-21 Thread Xavier Ducrohet

Hi,

the USB driver for windows is available at:
http://dl.google.com/android/android_usb_windows.zip

We'll be posting more information tomorrow, but it's pretty straight forward.
Download, unarchive and then point the new hardware wizard to the driver folder.

Developing on a device is very similar to using the emulator.
Once you have enabled USB debugging in your device, it'll just work,
as adb and DDMS will see your device.

Make sure you set the debuggable attribute (in the application node)
to true in the manifest so that you can debug your application.

Xav

On Tue, Oct 21, 2008 at 7:48 PM, marstein <[EMAIL PROTECTED]> wrote:
>
> I am running Vista, and when I enable the Application/Development/USB
> debugging setting, the 'found new hardware' dialog comes up and cannot
> find a driver. I assume this is the reason why 'adb devices' does not
> give any results. Sigh.
>
> What I would like to see is instructions how to get the G1 attached to
> a Vista development machine (which device drivers to install, commands
> to issue so that the docs section on adb works), and then how to make
> it all work in Eclipse. So I can Run a program on the device, not 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: webkit

2008-10-21 Thread Josh Roesslein
Read this --> http://source.android.com/known-issues

It's a known issue. Follow those steps listed there. Fixed the issue for me.

On Tue, Oct 21, 2008 at 4:25 PM, Anton <[EMAIL PROTECTED]> wrote:

>
> Glad the source has been released.
>
> I can't get repo to pull down webkit.  Everything else seems to to
> sync fine.
> Anyone else having this problem?
>
> Thanks
>
> >
>

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



[android-developers] Re: ADB via USB

2008-10-21 Thread marstein

I am running Vista, and when I enable the Application/Development/USB
debugging setting, the 'found new hardware' dialog comes up and cannot
find a driver. I assume this is the reason why 'adb devices' does not
give any results. Sigh.

What I would like to see is instructions how to get the G1 attached to
a Vista development machine (which device drivers to install, commands
to issue so that the docs section on adb works), and then how to make
it all work in Eclipse. So I can Run a program on the device, not 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sending data from one program to another

2008-10-21 Thread hackbod

Starting activities (and getting results from them), sending
broadcasts, binding to services, and publishing content providers are
the main ones.

You can make a SQLite database world readable/writeable, or use
android:sharedUserId to have the two apps run under the same uid (and
so able directly access every part of each other), but both of these
are less preferable than the standard mechanisms above.

On Oct 20, 9:46 pm, Eric Mill <[EMAIL PROTECTED]> wrote:
> This is a good question.  Is there a standard way for programs to send
> messages to each other?  Can they touch each others' SQLite databases,
> at least?
>
> -- Eric
>
> On Oct 19, 5:00 am, roshan <[EMAIL PROTECTED]> wrote:
>
> > I wanna know a possible way of sending data from one android
> > application to another. but not as sms s. UDP is quite i achieved. i
> > preffer TCP. But couldn't go ahead. please help me with 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Issues with GPS application on the actual G1 phone

2008-10-21 Thread Greg

Hi all,

New to the groups and to android (about a month into it).  I developed
an app on the emulator using the "gps" location provider and
everything was working great via the gps emulator.

I just got my G1 phone yesterday and was able to get the app installed
successfully.   However, when I fired it up it was getting coordinates
from all over the place that made no sense.  I was travelling about
300 mph just sitting in my backyard :)

I put an activity out to list the available locationproviders from the
location manager and got these two:

provider 0 "network" with a class of
android.location.DummyLocationProvider
provider 1 "gps" with a class of
android.location.DummyLocationProvider

It looks clear to me that even on the actual phone, I'm only seeing
fake providers.

All of the samples I could find to this point talk about just using
the "gps" provider by name, but that apparently isn't going to work on
the real device.  I noticed when I used Google Maps, upon startup a
satellite dish icon showed up in the status bar with a signal strength
for the GPS.  When Maps was shut down that icon went away.  Apparently
maps is using a different "real" provider that I can't see through the
location manager.

A bit long winded, but hopefully this is all clear.  I'm looking for
any guidance on how a real application on a real device should
properly locate the right  GPS provider for getting location
information from.  Am I missing permissions that prevent me from
seeing the real providers?

Thanks for any assistance!

Greg

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



[android-developers] Re: persistent socket connection

2008-10-21 Thread Miguel Paraz

On Oct 9, 3:25 am, j <[EMAIL PROTECTED]> wrote:
> Thanks for the reply but polling is not an option in my case because
> my server will be sending extremely time sensitive messages.  Even if
> it arrives 5 seconds late, it's useless.

I hope Android has a solution to compete against the BlackBerry, where
you just open a SocketConnection to a local port, and the push
messages are just automagically received.

Of course, the BlackBerry has the advantage of having the RIM server
backend infrastructure.
Perhaps Google and/or the mobile operator could operate something
similar?

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



[android-developers] Example: upload files to php from android

2008-10-21 Thread octagon

This is a way for android to POST a file upload to a php script. I had
a bit of trouble figuring out the ins and outs of the http client
situation, but this is what works for me (hope someone finds it
helpful):

Notes:

Expect/continue handshaking needed to be disabled to avoid getting 417
errors from lighttpd. Doesn't work without an sdcard yet, as there is
no Content-Length header associated with uploading an OutputStream as
opposed to a File object, and writing to files is only allowed on the
sdcard (as far as I know, please correct me if there is a way to do
this).

Dependencies:

apache-mime4j-0.5.jar
log4j-zeroconf.jar
httpmime-4.0-beta1.jar

upload.php:



Choose a file to upload: 



  


DemoActivity.java:

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.impl.client.DefaultHttpClient;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;

public class DemoActivity extends Activity {

  /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

/*
 * Make a simple view with a button and a bit of text. Click
the button to upload the file to the
 * server. The file will be saved to tmp/test.txt (relative to
your php script) and it should contain
 * the current time and date.
 */
final TextView tmp = (TextView) findViewById(R.id.textView1);
tmp.setText("Hi! Click the button!");

Button b = (Button) findViewById(R.id.button1);
b.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
File f = new File("/sdcard/test.txt");
try {
f.createNewFile();
Date d = new Date();
PrintWriter writer = new PrintWriter(f);
writer.println(d.toString());
writer.close();

HttpClient client = new 
DefaultHttpClient();
httpPostFileUpload(client, 
"/sdcard/test.txt", "http://
ubergibson.com/~micha/work/oculi/upload.php", "uploadedfile");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
}

/**
 * Upload a file using a POST request.
 *
 * @param client the HTTP client object
 * @param filePath local file location
 * @param uploadUri URI to POST to
 * @param inputNameAttr the name attribute of the file input
element in
 * the html form
 * @throws IOException
 * @throws ClientProtocolException
 */
public void httpPostFileUpload(
HttpClient client,
String filePath,
String uploadUri,
String inputNameAttr) throws ClientProtocolException,
IOException {

HttpUriRequest  request = new HttpPost(uploadUri);
MultipartEntity form= new MultipartEntity();

// disable expect-continue handshake (lighttpd doesn't support
it)
client.getParams().setBooleanParameter(
"http.protocol.expect-continue", false);

form.addPart(inputNameAttr, new FileBody(new File(filePath)));

((HttpEntityEnclosingRequestBase) request).setEntity(form);

try {
client.execute(request);
} catch (ClientProtocolException e) {
throw e;
} catch (IOException ee) {
throw ee;
}
}
}

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

[android-developers] Re: sending data from one program to another

2008-10-21 Thread Eric Mill

This is a good question.  Is there a standard way for programs to send
messages to each other?  Can they touch each others' SQLite databases,
at least?

-- Eric

On Oct 19, 5:00 am, roshan <[EMAIL PROTECTED]> wrote:
> I wanna know a possible way of sending data from one android
> application to another. but not as sms s. UDP is quite i achieved. i
> preffer TCP. But couldn't go ahead. please help me with 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Market - How to Submit?

2008-10-21 Thread Beau Gunderson

Any update on this? It seems crazy that there's no developer-facing
site setup for this yet...


Beau

On Oct 14, 1:20 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> There is very little publicly available beyond that blog post, and to
> date I've not seen anything on how to list apps in the Marketplace.
>
> This is why many alternatives (such ashttp://andappstore.com) have
> started to spring up.
>
> Al.
>
> Mike Greiner wrote:
> > Is there any information available on how we can submit applications
> > to the Android Market ahead of the T-Mobile G1 release?
>
> > I've searched this forum and the rest of the web and there's not much
> > information beyond Google's August 28 blog post.
>
> > Thanks,
> > Mike
>
> --
> Al Sutton
>
> W:www.alsutton.com
> B: alsutton.wordpress.com
> T: twitter.com/alsutton

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



[android-developers] Re: ADB via USB

2008-10-21 Thread tmzt


Hey, you can try lsusb or lsusb -v -v to see what android has attached
as, but it's not going to be storage.  It's probably network or serial
though.

--
tmzt on #htc-linux on irc.freenode.org

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



[android-developers] webkit

2008-10-21 Thread Anton

Glad the source has been released.

I can't get repo to pull down webkit.  Everything else seems to to
sync fine.
Anyone else having this problem?

Thanks

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



[android-developers] About WebView setOnClickListener

2008-10-21 Thread Dikers

I set a onclickListener on a webView, but when I click this webView,
It doesn't work . Who can tell me about it, Thanks!

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Ronnie

When will we see Android living it large and happy on the iPhone?
I dont care what Apple has to say about it, I have JailBreaked my
iPhone. bring it !! :)

On Oct 22, 2:35 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> http://source.android.com/
>
> For those that missed the announcements.
>
> Al.http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Looking for Developer Partner

2008-10-21 Thread Tad

I am looking for an experienced Developer to help me in developing an
exciting new application for Google Phone users. It encompasses a
widely used application currently limited to traditional laptop or
desktop computing environments that would have a huge market for
mobile, handheld users. With a large built in market, the challenge is
simply in the engineering of a Google phone-compatible version. I am
not a techie. Who can help?



Tad

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



[android-developers] souce code released

2008-10-21 Thread Ronnie

Now that the source code of Android has been released, who will be the
first to port it over to the iPhone?

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



[android-developers] Touch/mouse event processing in Android's browser

2008-10-21 Thread ...Max...

Is there any way to process the messages generated by the touch events
in Android's version of WebKit? On iPhone, this is done with
additional events (ontouchstart, ontouchend, ontouchmove). I
understand these are not available in Android. I have tried (on the
emulator) monitoring the onmousedown, onmouseup and onmousemove which
are implemented in base WebKit and the results were not encouraging:

- Clicking and releasing the mouse without moving it generates
onmousedown followed by onmouseup but ONLY when the mouse button is
released
- Clicking, holding for a short period of time, moving and then
releasing generates a sequence of onmousemove, onmousedown, onmouseup
(in that order) again, ONLY when the button is released
- Clicking, moving immediately and releasing does not generate any
events

This is clearly not enough for any kind of touch-based UI. Is there
some provision in the DOM, or a  tag for capturing the missing
events?

Thanks in advance,
...Max...

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



[android-developers] Camera.takePicture()

2008-10-21 Thread steve1

I'm probably missing something obvious, so I apologize if
this is a dumb question.

Once I've registered callbacks using Camera.takePicture(),
what does my application need to do to have those callbacks
called?

As near as I've been able to tell, the callback is executed
during a camera preview, or by the user actually taking a
picture using the native camera application.

But I don't want to start a preview or launch the native camera
application.  All I want is the raw image data from the camera
hardware.

Is there a way to do this?

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] PhoneCall Controls

2008-10-21 Thread [EMAIL PROTECTED]

Looking for an update as to whether the SDK will include any phone
call control soon. Hoping to write several app to handle phone calls
specifically based on phone number (white list,black list) Everything
is written except the ability to handle the incoming call in some way
other than the standard ringer kicking off. To me this seems like
basic functionality that should be in the SDK.

Secondly Please open up the Surface.setOrientation code to the public,
have written and automatic orientation code but because there is no
perms to FLINGER cannot get it to function.

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



[android-developers] quick question on camera preview format

2008-10-21 Thread Jason Proctor

it's declared to be YUV422SP. so this is planar with signed chrominence values?

tia


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



[android-developers] Re: Repo syntax error when getting the Android source code (Mac OSX)

2008-10-21 Thread j

Thanks!  Your assessment is correct.  I can download the source
finally.

On Oct 21, 4:45 pm, "Jeff Hamilton" <[EMAIL PROTECTED]> wrote:
> It looks like the repo download failed, as you have HTML there instead
> of the expected Python script. Try downloading repo again.
>
> -Jeff
>
> On Tue, Oct 21, 2008 at 3:25 PM, j <[EMAIL PROTECTED]> wrote:
>
> > $ repo init -u git://android.kernel.org/platform/manifest.git
> > /Users/systems/bin/repo: line 1: syntax error near unexpected token
> > `newline'
> > /Users/systems/bin/repo: line 1: ` > HTML 2.0//EN">'
>
> > $ repo sync
> > /Users/systems/bin/repo: line 1: syntax error near unexpected token
> > `newline'
> > /Users/systems/bin/repo: line 1: ` > HTML 2.0//EN">'
>
> > I have never used repo or git before today.  Anyone can help me?
> > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Padding Not Working in XML but does in Java

2008-10-21 Thread cyntacks

Hi,

This is a strange issue and I can't seem to figure out why it is
happening. I have a set of ImageButtons in my xml Layout (inside of a
Table/Row) which require padding. Here is a sample button:

[code]

[/code]

I attempt to add padding to all 4 edges, like so:

[code]

[/code]

But it doesn't work. BUT, if I add the padding to the button
dynamically in the source, it does work. Like so:

[code]
button.setPadding(5, 2, 5, 2);
[/code]

Any ideas what is going on here? This is killing me because the last
thing I want to do is have the padding configured in the source, then
it would have to be the same for each layout or I would have to add
overhead into the code...

As always, thanks for the help,

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



[android-developers] Re: Repo syntax error when getting the Android source code (Mac OSX)

2008-10-21 Thread Jeff Hamilton

It looks like the repo download failed, as you have HTML there instead
of the expected Python script. Try downloading repo again.

-Jeff

On Tue, Oct 21, 2008 at 3:25 PM, j <[EMAIL PROTECTED]> wrote:
>
> $ repo init -u git://android.kernel.org/platform/manifest.git
> /Users/systems/bin/repo: line 1: syntax error near unexpected token
> `newline'
> /Users/systems/bin/repo: line 1: ` HTML 2.0//EN">'
>
> $ repo sync
> /Users/systems/bin/repo: line 1: syntax error near unexpected token
> `newline'
> /Users/systems/bin/repo: line 1: ` HTML 2.0//EN">'
>
> I have never used repo or git before today.  Anyone can help me?
> Thanks!
>
> >
>

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



[android-developers] Repo syntax error when getting the Android source code (Mac OSX)

2008-10-21 Thread j

$ repo init -u git://android.kernel.org/platform/manifest.git
/Users/systems/bin/repo: line 1: syntax error near unexpected token
`newline'
/Users/systems/bin/repo: line 1: `'

$ repo sync
/Users/systems/bin/repo: line 1: syntax error near unexpected token
`newline'
/Users/systems/bin/repo: line 1: `'

I have never used repo or git before today.  Anyone can help me?
Thanks!

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



[android-developers] occasional VM crash doing /sdcard filesystem stuff

2008-10-21 Thread Jason Proctor

i haven't tracked this one down any further as it only happens once 
in a while, but it seems to be related to /sdcard filesystem stuff. i 
hope this trace helps, it's all i have!

10-21 21:24:29.200: WARN/dalvikvm(186): JNI WARNING: ref 0x40024da8 
should not be visible to native code
10-21 21:24:29.210: WARN/dalvikvm(186):  in 
Ldalvik/system/NativeStart;.run ()V (CallStaticVoidMethodV)
10-21 21:24:29.210: INFO/dalvikvm(186): "Binder Thread #2" prio=5 
tid=13 RUNNABLE
10-21 21:24:29.220: INFO/dalvikvm(186):   | group="main" sCount=0 
dsCount=0 s=0 obj=0x433605e8
10-21 21:24:29.220: INFO/dalvikvm(186):   | sysTid=191 nice=0 
sched=0/0 handle=972800
10-21 21:24:29.220: INFO/dalvikvm(186):   at 
dalvik.system.NativeStart.run(Native Method)
10-21 21:24:29.220: ERROR/dalvikvm(186): VM aborting
10-21 21:24:29.260: INFO/DEBUG(21): *** *** *** *** *** *** *** *** 
*** *** *** *** *** *** *** ***
10-21 21:24:29.280: INFO/DEBUG(21): Build fingerprint: 
'generic/generic/generic/:1.0/110632/110632:sdk/test-keys'
10-21 21:24:29.280: INFO/DEBUG(21): pid: 186, tid: 191  >>> 
com.particle.android <<<
10-21 21:24:29.280: INFO/DEBUG(21): signal 11 (SIGSEGV), fault addr deadd00d
10-21 21:24:29.280: INFO/DEBUG(21):  r0 0320  r1 000c  r2 
000c  r3 0026
10-21 21:24:29.290: INFO/DEBUG(21):  r4 deadd00d  r5 40024da8  r6 
ad067138  r7 ad067138
10-21 21:24:29.290: INFO/DEBUG(21):  r8 4454dcbc  r9 afe35a88  10 
a9d26e8d  fp 0001
10-21 21:24:29.290: INFO/DEBUG(21):  ip ad07e7d4  sp 4464dc50  lr 
afe1209d  pc ad038a32  cpsr 2030
10-21 21:24:29.390: INFO/DEBUG(21):  #00  pc ad038a32 
/system/lib/libdvm.so
10-21 21:24:29.410: INFO/DEBUG(21):  #01  pc ad02bc00 
/system/lib/libdvm.so
10-21 21:24:29.420: INFO/DEBUG(21):  #02  pc ad02ca88 
/system/lib/libdvm.so
10-21 21:24:29.430: INFO/DEBUG(21):  #03  pc ad030196 
/system/lib/libdvm.so
10-21 21:24:29.439: INFO/DEBUG(21):  #04  pc ad030476 
/system/lib/libdvm.so
10-21 21:24:29.450: INFO/DEBUG(21):  #05  pc ad326cec 
/system/lib/libandroid_runtime.so
10-21 21:24:29.459: INFO/DEBUG(21):  #06  pc ad3412a8 
/system/lib/libandroid_runtime.so
10-21 21:24:29.480: INFO/DEBUG(21):  #07  pc ac415e60 
/system/lib/libui.so
10-21 21:24:29.480: INFO/DEBUG(21):  #08  pc ac41b9e8 
/system/lib/libui.so
10-21 21:24:29.490: INFO/DEBUG(21):  #09  pc a9d29794 
/system/lib/libutils.so
10-21 21:24:29.509: INFO/DEBUG(21):  #10  pc a9d2cef2 
/system/lib/libutils.so
10-21 21:24:29.509: INFO/DEBUG(21):  #11  pc a9d2d2c4 
/system/lib/libutils.so
10-21 21:24:29.529: INFO/DEBUG(21):  #12  pc a9d31ab6 
/system/lib/libutils.so
10-21 21:24:29.529: INFO/DEBUG(21):  #13  pc a9d27118 
/system/lib/libutils.so
10-21 21:24:29.539: INFO/DEBUG(21):  #14  pc ad326afa 
/system/lib/libandroid_runtime.so
10-21 21:24:29.539: INFO/DEBUG(21):  #15  pc a9d26ef4 
/system/lib/libutils.so
10-21 21:24:29.559: INFO/DEBUG(21):  #16  pc afe0ea18 
/system/lib/libc.so
10-21 21:24:29.570: INFO/DEBUG(21):  #17  pc afe0e58c 
/system/lib/libc.so
10-21 21:24:29.590: INFO/DEBUG(21): stack:
10-21 21:24:29.600: INFO/DEBUG(21): 4464dc10  0005
10-21 21:24:29.600: INFO/DEBUG(21): 4464dc14  
10-21 21:24:29.600: INFO/DEBUG(21): 4464dc18  afe35c4c  /system/lib/libc.so
10-21 21:24:29.600: INFO/DEBUG(21): 4464dc1c  afe35ca0  /system/lib/libc.so
10-21 21:24:29.610: INFO/DEBUG(21): 4464dc20  
10-21 21:24:29.610: INFO/DEBUG(21): 4464dc24  afe1209d  /system/lib/libc.so
10-21 21:24:29.610: INFO/DEBUG(21): 4464dc28  0007a770  [heap]
10-21 21:24:29.620: INFO/DEBUG(21): 4464dc2c  afe11249  /system/lib/libc.so
10-21 21:24:29.641: INFO/DEBUG(21): 4464dc30  ad067138 
/system/lib/libdvm.so
10-21 21:24:29.641: INFO/DEBUG(21): 4464dc34  ad07e6f8 
/system/lib/libdvm.so
10-21 21:24:29.641: INFO/DEBUG(21): 4464dc38  40024da8
10-21 21:24:29.660: INFO/DEBUG(21): 4464dc3c  ad067138 
/system/lib/libdvm.so
10-21 21:24:29.660: INFO/DEBUG(21): 4464dc40  ad067138 
/system/lib/libdvm.so
10-21 21:24:29.660: INFO/DEBUG(21): 4464dc44  afe112ad  /system/lib/libc.so
10-21 21:24:29.660: INFO/DEBUG(21): 4464dc48  df002777
10-21 21:24:29.670: INFO/DEBUG(21): 4464dc4c  e3a070ad
10-21 21:24:29.670: INFO/DEBUG(21): #00 4464dc50  ad07e6f8 
/system/lib/libdvm.so
10-21 21:24:29.680: INFO/DEBUG(21): 4464dc54  ad02bc03 
/system/lib/libdvm.so
10-21 21:24:29.690: INFO/DEBUG(21): #01 4464dc58  ad067138 
/system/lib/libdvm.so
10-21 21:24:29.690: INFO/DEBUG(21): 4464dc5c  ad02ca8b 
/system/lib/libdvm.so



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

[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread hackbod

On Oct 21, 1:32 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
> So is Google going to provide examples of how third parties can write
> application directories with the same level of integration into the
> phone as Marketplace has?

The only special integration the Android Market has is that it can use
the direct call to install an app instead of going through the system
install UI, and all this does is allow it to do the permission
confirmation check before the user downloads an app instead of after.
The only reason why market can do this is because it is bundled as
part of the system image; if it wasn't, it wouldn't be able to do
that, and likewise if someone else has a carrier bundle their app with
a phone then they can do all of the same stuff.

Also the purpose here is not to give the Android Market a special
advantage, but to protect users: NO application installed as a third
party app can directly install other applications, because that would
effectively give it permission to everything in the world on the phone
(because it could just install another app with any permissions it
wants, with no confirmation by the user).  We thought this was a
little too dangerous to allow, especially for the small benefit it
provides.

(Btw, Market -is- using some public APIs, in particular a download
manager, that are not yet available in the SDK.  This is however
something you can write yourself, and it is also an API we plan to
make available to all apps in the future, we just didn't have time to
get it ready for 1.0.)

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread whitehexagon

Great news!!  Is it also available as a .zip someplace, I really don't
fancy to install all these other tools just to browse the source code.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Auto scrolling a textview

2008-10-21 Thread Al_R

I have a TextView (called tv) which is a child element of a ScrollView
(called sv). When I add text to tv, I want to be able to scroll down.
I've tried using sv.fullScroll(View.FOCUS_DOWN) and also
sv.scrollTo(value1, value2). This doesn't work, if I try
tv.scrollTo(value1, value2), it doesn't scroll at all and doesn't show
any response. I can't work out the proper way to do this, any help is
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Auto scrolling a textview

2008-10-21 Thread Al_R

I have a TextView (called tv) which is a child element of a ScrollView
(called sv). When I add text to tv, I want to be able to scroll down.
I've tried using sv.fullScroll(View.FOCUS_DOWN) and also
sv.scrollTo(value1, value2). This doesn't work, if I try
tv.scrollTo(value1, value2), it doesn't scroll at all and doesn't show
any response. I can't work out the proper way to do this, any help is
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Al Sutton

So is Google going to provide examples of how third parties can write 
application directories with the same level of integration into the 
phone as Marketplace has?

Al.

hackbod wrote:
> On Oct 21, 12:48 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
>   
>> If these non-public APIs are open, I don't see any reason why we can't use
>> them, as long as we peg our version of the application to the current G1
>> distribution. That's how we have to do it in the Java ME space and I guess
>> that's what Google is doing too.
>> 
>
> Please please please do not do that.  What happens when an update to
> the phone software is installed?  Your app breaks.  That sucks for
> everyone.
>
> >
>   


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



[android-developers] Found the problem with the getFromLocationName method

2008-10-21 Thread Rafael Fernandes

Hi all,
after the release of android's source code, I believe found the
problem with the method:
public List getFromLocationName(String locationName, int
maxResults,
 double lowerLeftLatitude, double lowerLeftLongitude,
 double upperRightLatitude, double upperRightLongitude) throws
IOException;

As I and some other fellas reported in other threads, this method
always return empty results and the reason is on the line 231, is
passing a object to the service, which fills the results but the
method returns a different object ...

I believe this is the issue, can anybody test this and let me know the
results?
I'm under windows here, so I can't even download the thing and fix
myself

try {
 228 ArrayList result = new ArrayList();
 229 String ex =
mService.getFromLocationName(locationName,
 230 lowerLeftLatitude, lowerLeftLongitude,
upperRightLatitude, upperRightLongitude,
 231 maxResults, mLanguage, mCountry, mVariant,
mAppName, new ArrayList());
 232 if (ex != null) {
 233 throw new IOException(ex);
 234 } else {
 235 return result;
 236 }
 237 }

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread David Given
Romain Guy wrote:
> That's what the SDK is for. If your app compiles against the SDK, you're good.

Yes, but I'm more interested in making sure that *other people's*
applications aren't doing anything they shouldn't be.

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)'
│ --- Conway's Game Of Life, in one line of APL



signature.asc
Description: OpenPGP digital signature


[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Romain Guy
That's what the SDK is for. If your app compiles against the SDK, you're good.

On Tue, Oct 21, 2008 at 1:13 PM, David Given <[EMAIL PROTECTED]> wrote:
> hackbod wrote:
> [...]
>> In other words, if you use private APIs, you can -only-
>> distribute the resulting app by having a carrier bundle it with a
>> phone.
>
> Just out of interest, do you have an offline API checker app that could,
> say, be run against applications before they get uploaded to the App
> Store? Or possibly that could be run as part of the upload process?
>
> It's conceivable it might be useful to have the *phones themselves*
> verify the app before installing them, too.
>
> (I'm thinking here of the ghastly mess Java ME is in where applications
> will either work, not work, randomly crash, or crash the phone,
> depending on which private APIs they're using. If there was a way of
> getting the phone to at least *warn me* if I was installing a dodgy app
> I'd be rather happy.)
>
> --
> ┌─── dg@cowlark.com ─ http://www.cowlark.com ─
> │
> │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)'
> │ --- Conway's Game Of Life, in one line of APL
>
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread David Given
hackbod wrote:
[...]
> In other words, if you use private APIs, you can -only-
> distribute the resulting app by having a carrier bundle it with a
> phone.

Just out of interest, do you have an offline API checker app that could,
say, be run against applications before they get uploaded to the App
Store? Or possibly that could be run as part of the upload process?

It's conceivable it might be useful to have the *phones themselves*
verify the app before installing them, too.

(I'm thinking here of the ghastly mess Java ME is in where applications
will either work, not work, randomly crash, or crash the phone,
depending on which private APIs they're using. If there was a way of
getting the phone to at least *warn me* if I was installing a dodgy app
I'd be rather happy.)

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)'
│ --- Conway's Game Of Life, in one line of APL



signature.asc
Description: OpenPGP digital signature


[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread hackbod

On Oct 21, 12:48 pm, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> If these non-public APIs are open, I don't see any reason why we can't use
> them, as long as we peg our version of the application to the current G1
> distribution. That's how we have to do it in the Java ME space and I guess
> that's what Google is doing too.

Please please please do not do that.  What happens when an update to
the phone software is installed?  Your app breaks.  That sucks for
everyone.

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



[android-developers] Re: Create Data Base

2008-10-21 Thread Anm

Walk through the Notepad example:
  http://code.google.com/android/intro/tutorial.html

Then study the NotesDbAdapter.java file for the specifics of how it
creates and interfaces with the database.


Anm

On Oct 21, 12:53 pm, andrex <[EMAIL PROTECTED]> wrote:
> Hi all, i was loking for an example of how to create a date base in
> sqlitedabase, but I was'n lucky. May someone help me whit that, maybe
> an example or a document. Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread hackbod

On Oct 21, 11:10 am, tauntz <[EMAIL PROTECTED]> wrote:
> Ok, understood, these methods are non-public and reserved for Google
> applications only ;)

NO.  They are private to the SYSTEM.  They are not for application
use.  This is because they are not stable and change across releases.
There may be some applications in the source tree using them, but
these applications are only shipped as part of the system image, so
that is okay.  In other words, if you use private APIs, you can -only-
distribute the resulting app by having a carrier bundle it with a
phone.

> Would it be imaginable that (some time in the future) all non-public
> APIs are in the com.google* domain and not in the same domain as all
> the public classes (android.*)?

We have been migrating private APIs to the com.android.internal
packages, but it will NEVER be the case that everything under
android.* is public.  Never, ever.  Just link to the SDK, which is
guaranteed to only contain the supported public APIs, and you are
good.

> Currently it's a little confusing if I look at the source of some
> Google app and see that it uses (for example) the method
> lookupProviderCategoryFromId(..) from the class
> android.provider.Contacts.ContactMethods. Now the public API has a
> class with the exact same name and package but without the method that
> Google uses so I always have to manually check if a method or constant
> exists in the public API documentation when looking through the source
> code (and after that I have to check if it also exists in the real SDK
> since the SDK and the API documentation are also not the same). It
> would be much easier if public and non-public stuff is in separate
> packages (like com.sun.* in instead of java.* (J2SE)).

Yes, a lot of the bundle apps shipped with the system are using
private APIs, and this needs to be cleaned up.  This is mostly an
artifact of the apps being developed in parallel with the platform for
the last 2-3 years, and not having time to do a final cleanup of them
to switch to the public APIs.  This is something that needs to be
done.

Again, if you are doing third party app development, you really need
to be developing against the SDK.  That is what it is there for.

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Peli

Great! Thanks! :-)

Here it is:
http://android.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/hardware/SensorManager.java;h=9b88fff0976f9087b0ce3c50b5a01123f7d284b8;hb=HEAD

Peli

On Oct 21, 9:45 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> http://android.kernel.org/?p=platform/frameworks/base.git;a=tree
>
>
>
> On Tue, Oct 21, 2008 at 12:42 PM, Peli <[EMAIL PROTECTED]> wrote:
>
> > Yes, I've seen there are the providers
> > com.android.providers.* and applications
> > com.android.*apps*
> > but where do I find the classes for
> > android.* ? (without "com." in front?)
>
> > Specifically, if someone could point me to
> > android.hardware.SensorManager.java, I'd be really greatful!
>
> > Peli
>
> > On Oct 21, 8:27 pm, Zach Hobbs <[EMAIL PROTECTED]> wrote:
> >> Everything in 
> >> here:http://git.source.android.com/?p=platform/packages/providers/MediaPro...
>
> >> This page can help you find what you're looking for 
> >> also:http://source.android.com/projects
>
> >> --
>
> >> Zach Hobbs
> >> HelloAndroid.com
> >> Android OS news, tutorials, downloads
>
> >> On Tuesday 21 October 2008 1:32:09 pm Peli wrote:
>
> >> > Hey, congratulations for going truly open source! I'm so excited!
>
> >> > Maybe I'm too hectic now so that I don't see it, but in which git
> >> > repository ( fromhttp://android.kernel.org/) can I find the Java
> >> > classes?
> >> > For example, where can I find android.hardware.SensorManager.java?
> >> > (so far I could only find the low-level C-files in platform/hardware/
> >> > libhardware.git)
>
> >> > Peli
>
> >> > On Oct 21, 7:14 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> >> > > It is the same source code. The SDK contains only the public APIs.
>
> >> > > On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
> >> > > > Good news! Congratulations Android team!
>
> >> > > > Just a note about the release:
> >> > > > This source code (looking at tag android-1.0 or head release-1.0) is
> >> > > > clearly not the one that the 1.0r1 SDK uses. There are countless
> >> > > > methods/classes in the source that are not present in the 1.0r1 SDK
> >> > > > release (for example:
> >> > > > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(.
> >> > > >.) etc..)
>
> >> > > > So that leads me to the following questions:
> >> > > > 1) what version of the code (1.0r1 or the one that was just released
> >> > > > or some other variant) is on the G1?
> >> > > > 2) when will we have access to the new SDK? (yes, I know I could
> >> > > > compile it myself from the source but I'm talking about compiled
> >> > > > binaries onhttp://code.google.com/android/download.html)
>
> >> > > > hackbod?
>
> >> > > > Tauno
>
> >> > > > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]>
> >> wrote:
> >> > > >> Congratulations to the Android Development team, Google Employees 
> >> > > >> and
> >> > > >> the entire OpenSource community. Today is a great day for developers
> >> > > >> who enjoy freedom and developing with freedom in mind.
>
> >> > > >> Viva 'la Android!
>
> >> > > >> Al Sutton wrote:
> >> > > >>>http://source.android.com/
>
> >> > > >>> For those that missed the announcements.
>
> >> > > >>> Al.
> >> > > >>>http://andappstore.com/
>
> >> > > --
> >> > > Romain Guywww.curious-creature.org
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Create Data Base

2008-10-21 Thread andrex

Hi all, i was loking for an example of how to create a date base in
sqlitedabase, but I was'n lucky. May someone help me whit that, maybe
an example or a document. Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Heap dumps

2008-10-21 Thread kohlerm

hi,
I wonder whether heap dumps are supported.
http://android.kernel.org/?p=platform/dalvik.git;a=tree;f=vm/hprof;hb=HEAD
seems to indicate that there's hprof heap dump support.
Is this working?

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Romain Guy

Because these APIs are *not* considered public. They are very likely
to change/disappear in the future and this will break the binary and
source compatibility if you use these APIs. Consider these APIs
private.

On Tue, Oct 21, 2008 at 12:48 PM, Shane Isbell <[EMAIL PROTECTED]> wrote:
> If these non-public APIs are open, I don't see any reason why we can't use
> them, as long as we peg our version of the application to the current G1
> distribution. That's how we have to do it in the Java ME space and I guess
> that's what Google is doing too.
>
> Shane
>
> On Tue, Oct 21, 2008 at 12:27 PM, Shane Isbell <[EMAIL PROTECTED]>
> wrote:
>>
>>
>> On Tue, Oct 21, 2008 at 10:27 AM, hackbod <[EMAIL PROTECTED]> wrote:
>>>
>>> And further than that, people writing third party applications MUST
>>> develop them against the SDK, not against the open source release.
>>> Otherwise you can easily use non-public APIs, and thus break in a
>>> future release.
>>
>> Of course, now that it's open-source, MUST is more of a suggestion, as
>> there will be multiple distributions of Android deployed on devices.
>>
>> Shane
>
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Shane Isbell
If these non-public APIs are open, I don't see any reason why we can't use
them, as long as we peg our version of the application to the current G1
distribution. That's how we have to do it in the Java ME space and I guess
that's what Google is doing too.

Shane

On Tue, Oct 21, 2008 at 12:27 PM, Shane Isbell <[EMAIL PROTECTED]>wrote:

>
>
> On Tue, Oct 21, 2008 at 10:27 AM, hackbod <[EMAIL PROTECTED]> wrote:
>
>>
>> And further than that, people writing third party applications MUST
>> develop them against the SDK, not against the open source release.
>> Otherwise you can easily use non-public APIs, and thus break in a
>> future release.
>
> Of course, now that it's open-source, MUST is more of a suggestion, as
> there will be multiple distributions of Android deployed on devices.
>
> Shane
>
>

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Romain Guy

http://android.kernel.org/?p=platform/frameworks/base.git;a=tree

On Tue, Oct 21, 2008 at 12:42 PM, Peli <[EMAIL PROTECTED]> wrote:
>
> Yes, I've seen there are the providers
> com.android.providers.* and applications
> com.android.*apps*
> but where do I find the classes for
> android.* ? (without "com." in front?)
>
> Specifically, if someone could point me to
> android.hardware.SensorManager.java, I'd be really greatful!
>
> Peli
>
>
> On Oct 21, 8:27 pm, Zach Hobbs <[EMAIL PROTECTED]> wrote:
>> Everything in 
>> here:http://git.source.android.com/?p=platform/packages/providers/MediaPro...
>>
>> This page can help you find what you're looking for 
>> also:http://source.android.com/projects
>>
>> --
>>
>> Zach Hobbs
>> HelloAndroid.com
>> Android OS news, tutorials, downloads
>>
>> On Tuesday 21 October 2008 1:32:09 pm Peli wrote:
>>
>> > Hey, congratulations for going truly open source! I'm so excited!
>>
>> > Maybe I'm too hectic now so that I don't see it, but in which git
>> > repository ( fromhttp://android.kernel.org/) can I find the Java
>> > classes?
>> > For example, where can I find android.hardware.SensorManager.java?
>> > (so far I could only find the low-level C-files in platform/hardware/
>> > libhardware.git)
>>
>> > Peli
>>
>> > On Oct 21, 7:14 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>> > > It is the same source code. The SDK contains only the public APIs.
>>
>> > > On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
>> > > > Good news! Congratulations Android team!
>>
>> > > > Just a note about the release:
>> > > > This source code (looking at tag android-1.0 or head release-1.0) is
>> > > > clearly not the one that the 1.0r1 SDK uses. There are countless
>> > > > methods/classes in the source that are not present in the 1.0r1 SDK
>> > > > release (for example:
>> > > > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(.
>> > > >.) etc..)
>>
>> > > > So that leads me to the following questions:
>> > > > 1) what version of the code (1.0r1 or the one that was just released
>> > > > or some other variant) is on the G1?
>> > > > 2) when will we have access to the new SDK? (yes, I know I could
>> > > > compile it myself from the source but I'm talking about compiled
>> > > > binaries onhttp://code.google.com/android/download.html)
>>
>> > > > hackbod?
>>
>> > > > Tauno
>>
>> > > > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]>
>> wrote:
>> > > >> Congratulations to the Android Development team, Google Employees and
>> > > >> the entire OpenSource community. Today is a great day for developers
>> > > >> who enjoy freedom and developing with freedom in mind.
>>
>> > > >> Viva 'la Android!
>>
>> > > >> Al Sutton wrote:
>> > > >>>http://source.android.com/
>>
>> > > >>> For those that missed the announcements.
>>
>> > > >>> Al.
>> > > >>>http://andappstore.com/
>>
>> > > --
>> > > Romain Guywww.curious-creature.org
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Peli

Yes, I've seen there are the providers
com.android.providers.* and applications
com.android.*apps*
but where do I find the classes for
android.* ? (without "com." in front?)

Specifically, if someone could point me to
android.hardware.SensorManager.java, I'd be really greatful!

Peli


On Oct 21, 8:27 pm, Zach Hobbs <[EMAIL PROTECTED]> wrote:
> Everything in 
> here:http://git.source.android.com/?p=platform/packages/providers/MediaPro...
>
> This page can help you find what you're looking for 
> also:http://source.android.com/projects
>
> --
>
> Zach Hobbs
> HelloAndroid.com
> Android OS news, tutorials, downloads
>
> On Tuesday 21 October 2008 1:32:09 pm Peli wrote:
>
> > Hey, congratulations for going truly open source! I'm so excited!
>
> > Maybe I'm too hectic now so that I don't see it, but in which git
> > repository ( fromhttp://android.kernel.org/) can I find the Java
> > classes?
> > For example, where can I find android.hardware.SensorManager.java?
> > (so far I could only find the low-level C-files in platform/hardware/
> > libhardware.git)
>
> > Peli
>
> > On Oct 21, 7:14 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> > > It is the same source code. The SDK contains only the public APIs.
>
> > > On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
> > > > Good news! Congratulations Android team!
>
> > > > Just a note about the release:
> > > > This source code (looking at tag android-1.0 or head release-1.0) is
> > > > clearly not the one that the 1.0r1 SDK uses. There are countless
> > > > methods/classes in the source that are not present in the 1.0r1 SDK
> > > > release (for example:
> > > > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(.
> > > >.) etc..)
>
> > > > So that leads me to the following questions:
> > > > 1) what version of the code (1.0r1 or the one that was just released
> > > > or some other variant) is on the G1?
> > > > 2) when will we have access to the new SDK? (yes, I know I could
> > > > compile it myself from the source but I'm talking about compiled
> > > > binaries onhttp://code.google.com/android/download.html)
>
> > > > hackbod?
>
> > > > Tauno
>
> > > > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]>
> wrote:
> > > >> Congratulations to the Android Development team, Google Employees and
> > > >> the entire OpenSource community. Today is a great day for developers
> > > >> who enjoy freedom and developing with freedom in mind.
>
> > > >> Viva 'la Android!
>
> > > >> Al Sutton wrote:
> > > >>>http://source.android.com/
>
> > > >>> For those that missed the announcements.
>
> > > >>> Al.
> > > >>>http://andappstore.com/
>
> > > --
> > > Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: API for route calcualtions

2008-10-21 Thread friedger

I would be interested as well.
Friedger

On 26 Sep., 15:18, forester404 <[EMAIL PROTECTED]> wrote:
> Hello.
> The maps application on Android can calculate shortest (or best)
> routes between 2 points on the map
> , as used in the 'Directions' function.
> Is there a way to get programmatic access to such functionality, that
> is,
> an API that allows one in his own application to enter 2 locations and
> have Android system calculate
> a path between them ?
> Thank a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Shane Isbell
On Tue, Oct 21, 2008 at 10:27 AM, hackbod <[EMAIL PROTECTED]> wrote:

>
> And further than that, people writing third party applications MUST
> develop them against the SDK, not against the open source release.
> Otherwise you can easily use non-public APIs, and thus break in a
> future release.

Of course, now that it's open-source, MUST is more of a suggestion, as there
will be multiple distributions of Android deployed on devices.

Shane

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread AlfredBaudisch

Amazing news, this is what I was waiting since Android's Release :)
Thanks again for the nice work Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: What is google's official position on JNI ?

2008-10-21 Thread StephC



On 1 oct, 17:23, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> First of all,JNIis not used in our apps. Only in the framework.
> Then, we are working on a native SDK that will provide official and
> correct support forJNI. Just be patient :)

This is very good news for games developers!

We're working on Augmented Reality games with real time image analysis
not doable inside a VM.

We'll be glad to port it on the Android platform.

How long will we have to wait for this native SDK?

>
> On Wed, Oct 1, 2008 at 2:53 AM, MrSnowflake <[EMAIL PROTECTED]> wrote:
>
> > I believeJNIis not supported for developers, because 1: It would
> > require developers to build libs for every different android platform
> > out and 2: While Google (probably) usesJNI, they can just change the
> >JNIinterface and fix their code, but say if youJNIable program
> > works on SDK 1.0r1 and then suddenly, when r2 gets released (and
> > Google changed theJNI) your program wouldn't work anymore. This is
> > something google really wants to avoid.
>
> > On 1 okt, 11:42, Tauno T <[EMAIL PROTECTED]> wrote:
> >> Oh, sorry, I misunderstood you there :)
>
> >> On Oct 1, 12:37 pm, Volker Gropp <[EMAIL PROTECTED]> wrote:
>
> >> > Hi,
>
> >> > you may call it unfair of course. But please keep in mind, they did
> >> > not tell us that they use it in their apps. But they use it in their
> >> > API to delegate calls to native libs.
>
> >> > Regards
> >> > Volker
>
> >> > On Oct 1, 11:18 am, Tauno T <[EMAIL PROTECTED]> wrote:
>
> >> > > Isn't it a little .. how do I say it.. unfair to tell us thatJNIis
> >> > > not supported at all and then use it in their own apps to make them
> >> > > better and give them more features than are available to the rest of
> >> > > the developers?
>
> >> > > On Oct 1, 11:49 am, Volker Gropp <[EMAIL PROTECTED]> wrote:
>
> >> > > > Hi Ranjeet,
>
> >> > > > although I'm not the Android Dev Team i can tell you what ive been
> >> > > > told last weeks about this topic:JNIis currently not supported in
> >> > > > SDK 1.0. The reason is not quite clear, some say cause it may not 
> >> > > > work
> >> > > > at all, or may break in the (near) future. Plus your app wont be
> >> > > > portable and needs special versions for every hw platform. Actually i
> >> > > > bet Android Dev Team will just tell you: "native libs andJNIis not
> >> > > > supported!".
>
> >> > > > On the other handJNIis working and Android uses it internally a lot
> >> > > > [google talks]. But you may have problems to link against the 
> >> > > > stripped
> >> > > > down libc they are using, or may run into other problems you cannot
> >> > > > resolve. Plus please keep in mind there is no real solution to deploy
> >> > > > your app on real phones, because /system/lib is read only. You might
> >> > > > add your .so into the apk as a raw resource and extract it into your
> >> > > > app writable directory under /data. Loading the .so works for me 
> >> > > > using
> >> > > > System.load(). But this way the .so is stored on your phone in 2
> >> > > > locations, using a lot unnecessary space.
>
> >> > > > Currently for a real world app on real phones i would'nt useJNIand
> >> > > > native libs at all due to those problems. Either wait forJNIsupport
> >> > > > in future SDK versions or port your library to Java.
>
> >> > > > Regards
> >> > > > Volker
>
> >> > > > On Oct 1, 4:02 am, Ranjeet <[EMAIL PROTECTED]> wrote:
>
> >> > > > > Dear Android Dev Team,
>
> >> > > > > My apologies if I am asking a question that's already been 
> >> > > > > answered.
> >> > > > > Unfortunately I haven't been able to find any documentation within
> >> > > > > Android's reference that officially states Google's position on 
> >> > > > > usage
> >> > > > > ofJNI/SharedObjects (written in C++ and compiled via a cross
> >> > > > > compiler) from within Java ui code.  To clarify what I am trying to
> >> > > > > accomplish, we are building an application with the user interface
> >> > > > > completely written using the java/android classes/controls and it
> >> > > > > would use the shared library thats written in C++. There is just so
> >> > > > > much effort gone in to making that library that it would be a LOT 
> >> > > > > of
> >> > > > > effort on our side rewriting it in Java. The library connects to 
> >> > > > > our
> >> > > > > backend web server to fetch XML files over HTTP, stores some of the
> >> > > > > information from it on disk in files, and exposes the features via
> >> > > > > methods.
>
> >> > > > > Is this currently "officially supported" in Android(I have seen 
> >> > > > > hello
> >> > > > > world C++ apps that run on the emulator with some security/chmod
> >> > > > > tweaks).
> >> > > > > Any information is sincerely appreciated.
>
> >> > > > > Thanks,
> >> > > > > -Ranjeet
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.

[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Zach Hobbs

Everything in here:
http://git.source.android.com/?p=platform/packages/providers/MediaProvider.git;a=tree

This page can help you find what you're looking for also:
http://source.android.com/projects

-- 

Zach Hobbs 
HelloAndroid.com 
Android OS news, tutorials, downloads



On Tuesday 21 October 2008 1:32:09 pm Peli wrote:
> Hey, congratulations for going truly open source! I'm so excited!
>
> Maybe I'm too hectic now so that I don't see it, but in which git
> repository ( from http://android.kernel.org/ ) can I find the Java
> classes?
> For example, where can I find android.hardware.SensorManager.java?
> (so far I could only find the low-level C-files in platform/hardware/
> libhardware.git)
>
> Peli
>
> On Oct 21, 7:14 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> > It is the same source code. The SDK contains only the public APIs.
> >
> > On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
> > > Good news! Congratulations Android team!
> > >
> > > Just a note about the release:
> > > This source code (looking at tag android-1.0 or head release-1.0) is
> > > clearly not the one that the 1.0r1 SDK uses. There are countless
> > > methods/classes in the source that are not present in the 1.0r1 SDK
> > > release (for example:
> > > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(.
> > >.) etc..)
> > >
> > > So that leads me to the following questions:
> > > 1) what version of the code (1.0r1 or the one that was just released
> > > or some other variant) is on the G1?
> > > 2) when will we have access to the new SDK? (yes, I know I could
> > > compile it myself from the source but I'm talking about compiled
> > > binaries onhttp://code.google.com/android/download.html)
> > >
> > > hackbod?
> > >
> > > Tauno
> > >
> > > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> 
wrote:
> > >> Congratulations to the Android Development team, Google Employees and
> > >> the entire OpenSource community. Today is a great day for developers
> > >> who enjoy freedom and developing with freedom in mind.
> > >>
> > >> Viva 'la Android!
> > >>
> > >> Al Sutton wrote:
> > >>>http://source.android.com/
> > >>>
> > >>> For those that missed the announcements.
> > >>>
> > >>> Al.
> > >>>http://andappstore.com/
> >
> > --
> > Romain Guywww.curious-creature.org
>
> 


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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Romain Guy

If you compile against the android.jar distributed with the SDK and
point your IDE to this jar file for code completion, then you won't
have any trouble. The non-public APIs are identified with the @hide
annotation in the code.

On Tue, Oct 21, 2008 at 11:10 AM, tauntz <[EMAIL PROTECTED]> wrote:
>
> Ok, understood, these methods are non-public and reserved for Google
> applications only ;)
>
> Would it be imaginable that (some time in the future) all non-public
> APIs are in the com.google* domain and not in the same domain as all
> the public classes (android.*)?
> Currently it's a little confusing if I look at the source of some
> Google app and see that it uses (for example) the method
> lookupProviderCategoryFromId(..) from the class
> android.provider.Contacts.ContactMethods. Now the public API has a
> class with the exact same name and package but without the method that
> Google uses so I always have to manually check if a method or constant
> exists in the public API documentation when looking through the source
> code (and after that I have to check if it also exists in the real SDK
> since the SDK and the API documentation are also not the same). It
> would be much easier if public and non-public stuff is in separate
> packages (like com.sun.* in instead of java.* (J2SE)).
> Just my 2 cents..
>
>
> And congrats again to the team! :)
> Tauno
>
>
>
> On Tue, Oct 21, 2008 at 8:27 PM, hackbod <[EMAIL PROTECTED]> wrote:
>>
>> And further than that, people writing third party applications MUST
>> develop them against the SDK, not against the open source release.
>> Otherwise you can easily use non-public APIs, and thus break in a
>> future release.
>>
>> On Oct 21, 10:14 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>>> It is the same source code. The SDK contains only the public APIs.
>>>
>>>
>>>
>>> On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
>>>
>>> > Good news! Congratulations Android team!
>>>
>>> > Just a note about the release:
>>> > This source code (looking at tag android-1.0 or head release-1.0) is
>>> > clearly not the one that the 1.0r1 SDK uses. There are countless
>>> > methods/classes in the source that are not present in the 1.0r1 SDK
>>> > release (for example:
>>> > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..)
>>> > etc..)
>>>
>>> > So that leads me to the following questions:
>>> > 1) what version of the code (1.0r1 or the one that was just released
>>> > or some other variant) is on the G1?
>>> > 2) when will we have access to the new SDK? (yes, I know I could
>>> > compile it myself from the source but I'm talking about compiled
>>> > binaries onhttp://code.google.com/android/download.html)
>>>
>>> > hackbod?
>>>
>>> > Tauno
>>>
>>> > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote:
>>>
>>> >> Congratulations to the Android Development team, Google Employees and
>>> >> the entire OpenSource community. Today is a great day for developers who
>>> >> enjoy freedom and developing with freedom in mind.
>>>
>>> >> Viva 'la Android!
>>>
>>> >> Al Sutton wrote:
>>> >>>http://source.android.com/
>>>
>>> >>> For those that missed the announcements.
>>>
>>> >>> Al.
>>> >>>http://andappstore.com/
>>>
>>> --
>>> Romain Guywww.curious-creature.org
>> >
>>
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread tauntz

Ok, understood, these methods are non-public and reserved for Google
applications only ;)

Would it be imaginable that (some time in the future) all non-public
APIs are in the com.google* domain and not in the same domain as all
the public classes (android.*)?
Currently it's a little confusing if I look at the source of some
Google app and see that it uses (for example) the method
lookupProviderCategoryFromId(..) from the class
android.provider.Contacts.ContactMethods. Now the public API has a
class with the exact same name and package but without the method that
Google uses so I always have to manually check if a method or constant
exists in the public API documentation when looking through the source
code (and after that I have to check if it also exists in the real SDK
since the SDK and the API documentation are also not the same). It
would be much easier if public and non-public stuff is in separate
packages (like com.sun.* in instead of java.* (J2SE)).
Just my 2 cents..


And congrats again to the team! :)
Tauno



On Tue, Oct 21, 2008 at 8:27 PM, hackbod <[EMAIL PROTECTED]> wrote:
>
> And further than that, people writing third party applications MUST
> develop them against the SDK, not against the open source release.
> Otherwise you can easily use non-public APIs, and thus break in a
> future release.
>
> On Oct 21, 10:14 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>> It is the same source code. The SDK contains only the public APIs.
>>
>>
>>
>> On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
>>
>> > Good news! Congratulations Android team!
>>
>> > Just a note about the release:
>> > This source code (looking at tag android-1.0 or head release-1.0) is
>> > clearly not the one that the 1.0r1 SDK uses. There are countless
>> > methods/classes in the source that are not present in the 1.0r1 SDK
>> > release (for example:
>> > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..)
>> > etc..)
>>
>> > So that leads me to the following questions:
>> > 1) what version of the code (1.0r1 or the one that was just released
>> > or some other variant) is on the G1?
>> > 2) when will we have access to the new SDK? (yes, I know I could
>> > compile it myself from the source but I'm talking about compiled
>> > binaries onhttp://code.google.com/android/download.html)
>>
>> > hackbod?
>>
>> > Tauno
>>
>> > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote:
>>
>> >> Congratulations to the Android Development team, Google Employees and
>> >> the entire OpenSource community. Today is a great day for developers who
>> >> enjoy freedom and developing with freedom in mind.
>>
>> >> Viva 'la Android!
>>
>> >> Al Sutton wrote:
>> >>>http://source.android.com/
>>
>> >>> For those that missed the announcements.
>>
>> >>> Al.
>> >>>http://andappstore.com/
>>
>> --
>> Romain Guywww.curious-creature.org
> >
>

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Josh Roesslein
This news just made today a good day for me. :)

On Tue, Oct 21, 2008 at 10:36 AM, Timbobsteve <[EMAIL PROTECTED]>wrote:

>
> Congratulations to the Android Development team, Google Employees and
> the entire OpenSource community. Today is a great day for developers who
> enjoy freedom and developing with freedom in mind.
>
> Viva 'la Android!
>
> Al Sutton wrote:
> > http://source.android.com/
> >
> > For those that missed the announcements.
> >
> > Al.
> > http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread hackbod

And further than that, people writing third party applications MUST
develop them against the SDK, not against the open source release.
Otherwise you can easily use non-public APIs, and thus break in a
future release.

On Oct 21, 10:14 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> It is the same source code. The SDK contains only the public APIs.
>
>
>
> On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
>
> > Good news! Congratulations Android team!
>
> > Just a note about the release:
> > This source code (looking at tag android-1.0 or head release-1.0) is
> > clearly not the one that the 1.0r1 SDK uses. There are countless
> > methods/classes in the source that are not present in the 1.0r1 SDK
> > release (for example:
> > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..)
> > etc..)
>
> > So that leads me to the following questions:
> > 1) what version of the code (1.0r1 or the one that was just released
> > or some other variant) is on the G1?
> > 2) when will we have access to the new SDK? (yes, I know I could
> > compile it myself from the source but I'm talking about compiled
> > binaries onhttp://code.google.com/android/download.html)
>
> > hackbod?
>
> > Tauno
>
> > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote:
>
> >> Congratulations to the Android Development team, Google Employees and
> >> the entire OpenSource community. Today is a great day for developers who
> >> enjoy freedom and developing with freedom in mind.
>
> >> Viva 'la Android!
>
> >> Al Sutton wrote:
> >>>http://source.android.com/
>
> >>> For those that missed the announcements.
>
> >>> Al.
> >>>http://andappstore.com/
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Peli

Hey, congratulations for going truly open source! I'm so excited!

Maybe I'm too hectic now so that I don't see it, but in which git
repository ( from http://android.kernel.org/ ) can I find the Java
classes?
For example, where can I find android.hardware.SensorManager.java?
(so far I could only find the low-level C-files in platform/hardware/
libhardware.git)

Peli

On Oct 21, 7:14 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> It is the same source code. The SDK contains only the public APIs.
>
>
>
> On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
>
> > Good news! Congratulations Android team!
>
> > Just a note about the release:
> > This source code (looking at tag android-1.0 or head release-1.0) is
> > clearly not the one that the 1.0r1 SDK uses. There are countless
> > methods/classes in the source that are not present in the 1.0r1 SDK
> > release (for example:
> > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..)
> > etc..)
>
> > So that leads me to the following questions:
> > 1) what version of the code (1.0r1 or the one that was just released
> > or some other variant) is on the G1?
> > 2) when will we have access to the new SDK? (yes, I know I could
> > compile it myself from the source but I'm talking about compiled
> > binaries onhttp://code.google.com/android/download.html)
>
> > hackbod?
>
> > Tauno
>
> > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote:
>
> >> Congratulations to the Android Development team, Google Employees and
> >> the entire OpenSource community. Today is a great day for developers who
> >> enjoy freedom and developing with freedom in mind.
>
> >> Viva 'la Android!
>
> >> Al Sutton wrote:
> >>>http://source.android.com/
>
> >>> For those that missed the announcements.
>
> >>> Al.
> >>>http://andappstore.com/
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Romain Guy

It is the same source code. The SDK contains only the public APIs.

On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote:
>
> Good news! Congratulations Android team!
>
> Just a note about the release:
> This source code (looking at tag android-1.0 or head release-1.0) is
> clearly not the one that the 1.0r1 SDK uses. There are countless
> methods/classes in the source that are not present in the 1.0r1 SDK
> release (for example:
> android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..)
> etc..)
>
> So that leads me to the following questions:
> 1) what version of the code (1.0r1 or the one that was just released
> or some other variant) is on the G1?
> 2) when will we have access to the new SDK? (yes, I know I could
> compile it myself from the source but I'm talking about compiled
> binaries on http://code.google.com/android/download.html)
>
> hackbod?
>
>
> Tauno
>
> On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote:
>>
>> Congratulations to the Android Development team, Google Employees and
>> the entire OpenSource community. Today is a great day for developers who
>> enjoy freedom and developing with freedom in mind.
>>
>> Viva 'la Android!
>>
>> Al Sutton wrote:
>>> http://source.android.com/
>>>
>>> For those that missed the announcements.
>>>
>>> Al.
>>> http://andappstore.com/
>>>
>>> >
>>>
>>
>> >
>>
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread tauntz

Good news! Congratulations Android team!

Just a note about the release:
This source code (looking at tag android-1.0 or head release-1.0) is
clearly not the one that the 1.0r1 SDK uses. There are countless
methods/classes in the source that are not present in the 1.0r1 SDK
release (for example:
android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..)
etc..)

So that leads me to the following questions:
1) what version of the code (1.0r1 or the one that was just released
or some other variant) is on the G1?
2) when will we have access to the new SDK? (yes, I know I could
compile it myself from the source but I'm talking about compiled
binaries on http://code.google.com/android/download.html)

hackbod?


Tauno

On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote:
>
> Congratulations to the Android Development team, Google Employees and
> the entire OpenSource community. Today is a great day for developers who
> enjoy freedom and developing with freedom in mind.
>
> Viva 'la Android!
>
> Al Sutton wrote:
>> http://source.android.com/
>>
>> For those that missed the announcements.
>>
>> Al.
>> http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sharedUserId - What does it mean wrt to Java classes?

2008-10-21 Thread hackbod

Not really.

On Oct 21, 2:05 am, Anders Rundgren <[EMAIL PROTECTED]> wrote:
> Does sharedUserId imply that you do not need to duplicate custom class
> libraries between "cooperating" applications?
>
> Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android Dev Camp (Dallas)

2008-10-21 Thread [EMAIL PROTECTED]


Everyone is invited, we've got our agenda posted here :

http://www.biggu.com/2008/10/20/ready-for-androiddevcamp/

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



[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread Timbobsteve

Congratulations to the Android Development team, Google Employees and 
the entire OpenSource community. Today is a great day for developers who 
enjoy freedom and developing with freedom in mind.

Viva 'la Android!

Al Sutton wrote:
> http://source.android.com/
>
> For those that missed the announcements.
>
> Al.
> http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: setting the locale

2008-10-21 Thread tauntz

java.util.Locale.setDefault(Locale locale);
But I have no idea to what extent this setting works..


Another approach is to start the activity that allows to select the
locale but I don't think there is such an Activity in the emulator.
http://code.google.com/android/reference/android/provider/Settings.html -
"ACTION_LOCALE_SETTINGS - Activity Action: Show settings to allow
configuration of locale."

Anyone more familiar with this?

Tauno

On Tue, Oct 21, 2008 at 6:06 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Is there a way to do this? I'd like to test some of my i18n code.
> >
>

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



[android-developers] Android Source Code Now Available

2008-10-21 Thread Al Sutton

http://source.android.com/

For those that missed the announcements.

Al.
http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] setting the locale

2008-10-21 Thread [EMAIL PROTECTED]

Is there a way to do this? I'd like to test some of my i18n code.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Theme example

2008-10-21 Thread Christine

Shailesh,
thanks!

On Oct 21, 3:36 pm, "shailesh prakash" <[EMAIL PROTECTED]> wrote:
> Hey Christine,
>
>  Did u 
> tryhttp://code.google.com/android/reference/available-resources.html#sty
> you can set your theme in a xml file res/values/, but you can play
> inside an activity.
> 
>         @Override
>         public void setTheme(int resid) {
>                 // local animation
>                 super.setTheme(resid);
>         }
>
> On Tue, Oct 21, 2008 at 5:23 PM, Christine <[EMAIL PROTECTED]> wrote:
>
> > Where do I find example themes, or how can I make minor changes to,
> > like, the Dialog theme? I've searched but couldn't find
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Error coming while creating a login page

2008-10-21 Thread dilu

Hi'
I am trying to create a login page with user name and password.
In source file i have created two java file one is homescreen.java
file and another one is loginscreen.java file.
In homescreen.java file error is coming like this  "The method
onActivityResult(int, int, Intent) in the type Activity is not
applicable for the arguments (int, int, String, Bundle)."
part of the code is :-
  protected void onActivityResult(int requestCode, int resultCode,
String data, Bundle extras) {
super.onActivityResult(requestCode, resultCode, data, extras);

if (requestCode == ACTIVITY_LOGIN) {
// If the request was cancelled, then we are cancelled as
well.
if (resultCode == RESULT_CANCELED) {
finish();

and in the login_screen.xml file I am getting error like this
No resource identifier found for attribute 'layout_toRight' in package
'android'
No resource identifier found for attribute 'layout_toLeft' in package
'android.

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



[android-developers] Useful stats for web log analysis

2008-10-21 Thread Al Sutton

A few quick pointers for those looking to run web stats programs on 
their apk downloads;

The IP subnets for the T-Mobile proxies serving the majority of G1 
accesses are 208.54.90.0/24 and 208.54.94.0/24.

The user agent for a real G1 is; Mozilla/5.0 (Linux; U; Android 1.0; 
en-us; dream) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 
Mobile Safari/523.12.2

The emulator user agent is; "Mozilla/5.0 (Linux; U; Android 1.0; en-us; 
generic) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile 
Safari/523.12.2"

(Notice the difference between the "dream" and "generic" in the user 
agents).

Hope this is useful.

Al.
http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: What is callback function to catch text entered into search box

2008-10-21 Thread Billsen

Thanks a lot.

On Oct 20, 4:28 pm, "Andrew Stadler" <[EMAIL PROTECTED]> wrote:
> Billsen -
>
> When the user enters the search UI and types enter or clicks the
> search button, the ACTION_SEARCH intent will be sent.  At least one
> activity within your application must be configured (using an
> intent-filter) to receive and handle this Intent.
>
> For more information, please see:
> 
> 
>
> Hope this helps.
> --Andy
>
> On Mon, Oct 20, 2008 at 1:20 PM, Billsen <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > I tried to find a callback function that could catch text entered in
> > search box, but could not find it. In my application, I started local
> > search and entered text in search box. What I want to do is to catch
> > text entered in my app.
>
> > Anybody can help?
>
> > Thanks,
> > Billsen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Error coming while creating a login page

2008-10-21 Thread Peli

You should not use the '+' in:
android:layout_toRight="@+id/btnSign"

Replace it by:
android:layout_toRight="@id/btnSign"

Peli

On Oct 21, 3:24 pm, "dileep singh" <[EMAIL PROTECTED]> wrote:
> HI PELI,
> THIS IS MINE login_screen.xml file
>
> 
>
> 
> xmlns:android=*"http://schemas.android.com/apk/res/android";
> *
>
> android:layout_width=*"fill_parent"* android:layout_height=*"wrap_content"
> *
>
> android:padding=*"5dp"*>
>
>  *
>
> android:src=*"@drawable/atrexis"* android:layout_width=*"wrap_content"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_alignParentTop=*"true"
> *
>
> android:layout_centerHorizontal=*"true"* android:padding=*"10dp"* />
>
>  *
>
> android:layout_width=*"wrap_content"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_below=*"@id/imgAtrexis"* android:text=*"Username:"* />
>
>  *
>
> android:layout_width=*"fill_parent"
> *
>
> android:layout_height=*"wrap_content"* android:singleLine=*"true"
> *
>
> android:layout_below=*"@id/lblUsername"
> *
>
> android:layout_marginBottom=*"5dp"* />
>
>  *
>
> android:layout_width=*"wrap_content"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_below=*"@id/txtUsername"* android:text=*"Password:"* />
>
>  *
>
> android:layout_width=*"fill_parent"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_below=*"@id/lblPassword"* android:password=*"true"
> *
>
> android:singleLine=*"true"* android:layout_marginBottom=*"10dp"* />
>
>  *
>
> android:layout_width=*"wrap_content"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_centerHorizontal=*"true"
> *
>
> android:layout_below=*"@id/txtPassword"* android:text=*"Remember Me"* />
>
>  *
>
> android:layout_height=*"wrap_content"* android:layout_below=*"@id/cbRem"
> *
>
> android:padding=*"10dp"* android:layout_centerInParent=*"true"
> *
>
> android:text=*"Sign In"* />
>
>  *
>
> android:layout_height=*"10dp"* android:layout_below=*"@id/btnSign"* />
>
>  *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_toLeft=*"@id/btnSign"
> *
>
> android:layout_alignBottom=*"@id/spacer1"* android:padding=*"10dp"
> *
>
> android:text=*"Quit"* />
>
>  *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_toRight=*"@+id/btnSign"
> *
>
> android:layout_alignTop=*"@id/spacer1"* android:padding=*"10dp"
> *
>
> android:text=*"Clear"* />
>
>  *
>
> android:layout_width=*"fill_parent"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_below=*"@+id/btnSign"
> *
>
> android:text=*"Enter username and password"* />
>
>  *
>
> android:layout_width=*"wrap_content"
> *
>
> android:layout_height=*"wrap_content"
> *
>
> android:layout_alignParentBottom=*"true"
> *
>
> android:layout_alignParentRight=*"true"* android:textStyle=*"bold"
> *
>
> android:textColor=*"#FF"* android:text=*"Powered By Atrexis" */>
>
> 
>
> On Tue, Oct 21, 2008 at 6:50 PM, shailesh prakash <[EMAIL PROTECTED]>wrote:
>
>
>
> > Hi dilu,
> >  As I can say with above details, you are using SDK 1.0 and the code
> > you are writing is of style m5. If so see documentation and changes
> > for 1.0
> > Regards
> > Shailesh
>
> > On Tue, Oct 21, 2008 at 6:30 PM, dilu <[EMAIL PROTECTED]> wrote:
>
> > > Hi'
> > > I am trying to create a login page with user name and password.
> > > In source file i have created two java file one is homescreen.java
> > > file and another one is loginscreen.java file.
> > > In homescreen.java file error is coming like this  "The method
> > > onActivityResult(int, int, Intent) in the type Activity is not
> > > applicable for the arguments (int, int, String, Bundle)."
> > > part of the code is :-
> > >      protected void onActivityResult(int requestCode, int resultCode,
> > > String data, Bundle extras) {
> > >                super.onActivityResult(requestCode, resultCode, data,
> > extras);
>
> > >                if (requestCode == ACTIVITY_LOGIN) {
> > >            // If the request was cancelled, then we are cancelled as
> > > well.
> > >            if (resultCode == RESULT_CANCELED) {
> > >                finish();
>
> > > and in the login_screen.xml file I am getting error like this
> > > No resource identifier found for attribute 'layout_toRight' in package
> > > 'android'
> > > No resource identifier found for attribute 'layout_toLeft' in package
> > > 'android.
>
> > > please help me out.
> > > thanks.
> > > dilu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-21 Thread ukchucktown

One small amendment to my previous post. As the others pointed out the
parser sets localname and not qname.

On Oct 21, 8:20 am, ukchucktown <[EMAIL PROTECTED]> wrote:
> Did anyone create an issue in the issue tracker? I think this needs to
> be fixed. Unless I missed something, the latest version of the Android
> SAX parser supports namespaces. In the absence of a namespace prefix,
> a compliant parser should return the same value for qname and
> localname. The Android parser does not. It returns the correct value
> for qname and null or empty string for localname. This bug will break
> popular third-party libraries like jdom which would otherwise work
> fine on Android.
>
> Grant
>
> On Oct 2, 3:46 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > Glad you got it worked out.
>
> > Now back to the originally scheduled issue here ;).
>
> > I DO think the 1.0 parser is better, more strict, but theqName
> > localName thing should still work (localName now having content 
> > whenqNamedid on previous versions actually seems like an IMPROVEMENT, but
> > still they both should have content when configured as such), and the
> > features should be settable - I think.  I wish an Android dev would
> > chime in here too though?
>
> > On Oct 2, 3:36 pm, Chris Cicc <[EMAIL PROTECTED]> wrote:
>
> > > Hey Charlie and Brad,
> > > Good news! I now have the ampersand being parsed correctly. However
> > > the change needed wasn't what we expected. Every time I changed the
> > > raw text in the database from the '&' character to the escaped '&'
> > > or '&' it didn't work, it would still break at that first
> > > ampersand.
>
> > > After doing some more research, I came across 
> > > this:http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX3.html
>
> > > In that document, it says:
>
> > > "Note: To be strictly accurate, the character handler should scan the
> > > buffer for ampersand characters (&);and left-angle bracket characters
> > > (<) and replace them with the strings & or <, as appropriate.
> > > You'll find out more about that kind of processing when we discuss
> > > entity references in Displaying Special Characters and CDATA. "
>
> > > I was working on implementing that, when I read further about CDATA
> > > sections. I decided to try this, by implementing the
> > > XmlDocument.CreateCDataSection method instead of the
> > > XmlDocument.CreateTextNode method I'm currently using in my .Net web
> > > service. Without having to modify my SAXParser code at all it worked
> > > with the new CDATA section!
>
> > > So what did I learn:
> > > 1. The SAXParser does indeed break like this by design.
> > > 2. Android beta's apparently did not implement a properly spec'ed
> > > SAXParser.
> > > 3. The SAXParser may be lightweight, but it comes at the cost of
> > > parsing robustness. For instance, the built in .Net parser does not
> > > have this issue. It simply reads the node, then everything after the
> > > node until it reaches an end node. It's smart enough to detect full
> > > nodes on their own, without simply assuming anything after '<' is a
> > > new node like SAX does.
>
> > > Going forward, I'm going to keep using CDATA sections, and look to
> > > replace the parser if needed in the future.
>
> > > As a developer, I'm really disappointed a Google rep didn't chime in
> > > on this conversation. I'm used to having everything posted at
> > > forums.asp.net read by Microsoft devs. But I appreciate all the help
> > > of fellow community members like yourselves!
>
> > > -chris
>
> > > On Oct 2, 7:24 am, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > > > It's just &, or &
>
> > > >http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_re...
>
> > > > The & and the ; delimit the entity.
>
> > > > But Chris, your XML in your source example there can't have an
> > > > ampersand there like that.  You need to be using the escape/encoding.
> > > > If everything in the chain supports UTF-8 you can use &, if not,
> > > > use the numerical entity version, &.
>
> > > > Again, this is a different topic than the differences in the parsing,
> > > > but every XML processor I have ever seen will blow up on a non-escaped
> > > > ampersand.
>
> > > > "Characters (or code points in Unicode terminology) outside the simple
> > > > ASCII range 32-127 (  to ) must either be encoded as multi-
> > > > byte UTF-8 sequences or using numerical entities. In environments that
> > > > do not natively support UTF-8 it is often easier to use numerical
> > > > entities"
>
> > > > For example, the XML I am using is coming from Google Base - it is
> > > > UTF-8, but you STILL have to use the encoding to escape the special
> > > > chars:
>
> > > > 
> > > >  > > >         
> > > > xmlns:gm='http://base.google.com/ns-metadata/1.0'xmlns:g='http://
> > > > base.google.com/ns/1.0'
> > > >         xmlns:batch='http://schemas.google.com/gdata/batch'>
> > > >         http://www.google.com/base/feeds/snippets
> > > >         
> > > >         2008-0

[android-developers] Re: Theme example

2008-10-21 Thread shailesh prakash

Hey Christine,

 Did u try 
http://code.google.com/android/reference/available-resources.html#stylesandthemes.
you can set your theme in a xml file res/values/, but you can play
inside an activity.

@Override
public void setTheme(int resid) {
// local animation
super.setTheme(resid);
}

On Tue, Oct 21, 2008 at 5:23 PM, Christine <[EMAIL PROTECTED]> wrote:
>
>
> Where do I find example themes, or how can I make minor changes to,
> like, the Dialog theme? I've searched but couldn't find
>
>
> >
>

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



[android-developers] Re: Program Announcements

2008-10-21 Thread Al Sutton

I'd recommend announcing over on discuss, that way this list can be for 
technical issues and discuss can be for announcements and general 
discussion.

My reasoning behind this is twofold;

1) Non-technical users may be interested in the app, but are unlikely to 
be subscribed to -developers.
2) Most people are here for development/publishing tips and probably 
would see app announcements as spam.

Al.


P.S. You could also list your new app at http://andappstore.com/ and get 
it fed out via Twitter and our RSS feed ;).


Ewan Grantham wrote:
> I've noticed a couple folks mentioning their new programs on the list, 
> which I haven't done in my own case because I didn't think that was 
> "ok" under the charter for this group. Should those announcements be 
> here, or on discuss, or somewhere else? Not trying to criticize, just 
> that if there's an appropriate place to do so, I'd like to toot my own 
> horn as well :-)
>
>
> >


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Re: Error coming while creating a login page

2008-10-21 Thread shailesh prakash

Hi dilu,
  As I can say with above details, you are using SDK 1.0 and the code
you are writing is of style m5. If so see documentation and changes
for 1.0
Regards
Shailesh



On Tue, Oct 21, 2008 at 6:30 PM, dilu <[EMAIL PROTECTED]> wrote:
>
> Hi'
> I am trying to create a login page with user name and password.
> In source file i have created two java file one is homescreen.java
> file and another one is loginscreen.java file.
> In homescreen.java file error is coming like this  "The method
> onActivityResult(int, int, Intent) in the type Activity is not
> applicable for the arguments (int, int, String, Bundle)."
> part of the code is :-
>  protected void onActivityResult(int requestCode, int resultCode,
> String data, Bundle extras) {
>super.onActivityResult(requestCode, resultCode, data, extras);
>
>if (requestCode == ACTIVITY_LOGIN) {
>// If the request was cancelled, then we are cancelled as
> well.
>if (resultCode == RESULT_CANCELED) {
>finish();
>
> and in the login_screen.xml file I am getting error like this
> No resource identifier found for attribute 'layout_toRight' in package
> 'android'
> No resource identifier found for attribute 'layout_toLeft' in package
> 'android.
>
> please help me out.
> thanks.
> dilu
> >
>

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



[android-developers] Re: Error coming while creating a login page

2008-10-21 Thread dileep singh
HI PELI,
THIS IS MINE login_screen.xml file



http://schemas.android.com/apk/res/android";
*

android:layout_width=*"fill_parent"* android:layout_height=*"wrap_content"
*

android:padding=*"5dp"*>



























On Tue, Oct 21, 2008 at 6:50 PM, shailesh prakash <[EMAIL PROTECTED]>wrote:

>
> Hi dilu,
>  As I can say with above details, you are using SDK 1.0 and the code
> you are writing is of style m5. If so see documentation and changes
> for 1.0
> Regards
> Shailesh
>
>
>
> On Tue, Oct 21, 2008 at 6:30 PM, dilu <[EMAIL PROTECTED]> wrote:
> >
> > Hi'
> > I am trying to create a login page with user name and password.
> > In source file i have created two java file one is homescreen.java
> > file and another one is loginscreen.java file.
> > In homescreen.java file error is coming like this  "The method
> > onActivityResult(int, int, Intent) in the type Activity is not
> > applicable for the arguments (int, int, String, Bundle)."
> > part of the code is :-
> >  protected void onActivityResult(int requestCode, int resultCode,
> > String data, Bundle extras) {
> >super.onActivityResult(requestCode, resultCode, data,
> extras);
> >
> >if (requestCode == ACTIVITY_LOGIN) {
> >// If the request was cancelled, then we are cancelled as
> > well.
> >if (resultCode == RESULT_CANCELED) {
> >finish();
> >
> > and in the login_screen.xml file I am getting error like this
> > No resource identifier found for attribute 'layout_toRight' in package
> > 'android'
> > No resource identifier found for attribute 'layout_toLeft' in package
> > 'android.
> >
> > please help me out.
> > thanks.
> > dilu
> > >
> >
>
> >
>

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



[android-developers] Program Announcements

2008-10-21 Thread Ewan Grantham
I've noticed a couple folks mentioning their new programs on the list, which
I haven't done in my own case because I didn't think that was "ok" under the
charter for this group. Should those announcements be here, or on discuss,
or somewhere else? Not trying to criticize, just that if there's an
appropriate place to do so, I'd like to toot my own horn as well :-)

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



[android-developers] Re: Error coming while creating a login page

2008-10-21 Thread Peli

It seems you are using out-dated code that no longer works in SDK 1.0.

Look for onActivityResult() on this page:
http://code.google.com/android/reference/android/app/Activity.html

For the second question, post your login_screen.xml, if the problem
remains after you have upgraded properly to SDK.

Peli

On Oct 21, 3:00 pm, dilu <[EMAIL PROTECTED]> wrote:
> Hi'
> I am trying to create a login page with user name and password.
> In source file i have created two java file one is homescreen.java
> file and another one is loginscreen.java file.
> In homescreen.java file error is coming like this  "The method
> onActivityResult(int, int, Intent) in the type Activity is not
> applicable for the arguments (int, int, String, Bundle)."
> part of the code is :-
>       protected void onActivityResult(int requestCode, int resultCode,
> String data, Bundle extras) {
>                 super.onActivityResult(requestCode, resultCode, data, extras);
>
>                 if (requestCode == ACTIVITY_LOGIN) {
>             // If the request was cancelled, then we are cancelled as
> well.
>             if (resultCode == RESULT_CANCELED) {
>                 finish();
>
> and in the login_screen.xml file I am getting error like this
> No resource identifier found for attribute 'layout_toRight' in package
> 'android'
> No resource identifier found for attribute 'layout_toLeft' in package
> 'android.
>
> please help me out.
> thanks.
> dilu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-21 Thread Peli

You have to click "Dev Tools" (or "Ze Dev Tools") / Media scanner.
Once the sd card has been scanned, you should see your mp3 file in the
media player.

Peli

On Oct 21, 2:28 pm, "for android" <[EMAIL PROTECTED]> wrote:
> Yes i see the file by the way you have specified.
>
> Let me explain once more.I download an mp3 and save it in the SDCard.After i
> have saved it,should it not reflect in the mp3 files of the music icon that
> is present on the phone.What should i do so that the file which I download
> or save be visible in the Music or Pictures present in the phone.
>
> Thanks
> Guru.
>
> On Tue, Oct 21, 2008 at 5:41 PM, Peli <[EMAIL PROTECTED]> wrote:
>
> > I also don't understand what you do to check that you don't see the
> > file on the SD card.
> > Do you mean a real SD card that you inserted physically into your
> > computer?
>
> > Could you explain this in more detail?
>
> > Can you try the following in a DOS window:
> > adb shell
> > cd sdcard
> > ls
>
> > Do you see your file then?
>
> > Peli
>
> > On Oct 21, 12:45 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > > any help?
>
> > > On Mon, Oct 20, 2008 at 11:26 AM, for android <[EMAIL PROTECTED]>
> > wrote:
> > > > Thanks Mega for looking into this
>
> > > > I am seeing the sdcard from the emulator..When i start the emulator i
> > have
> > > > given the option in eclipse of the location of the sdcard.So after i
> > > > download the file I want to view this file in the SDcard.I only see
> > this the
> > > > file in the DDMS mode,so the file has actually been downloaded.But I
> > have
> > > > not been able to figure out as to what stops me from seeing the file in
> > the
> > > > sdcard.
>
> > > > Thanks
> > > > Guru
>
> > > > On Fri, Oct 17, 2008 at 12:28 PM, Megha Joshi <[EMAIL PROTECTED]>
> > wrote:
>
> > > >> 2008/10/15 guru <[EMAIL PROTECTED]>
>
> > > >>> I needed to download a file and store it in my sdcard.I first save it
> > > >>> by writing in the output stream(by using openFileOutput) in the
> > > >>> application package.From here I copy it to my SDCard and its written
> > > >>> on my SDCard.But when i see my SDCard in the file in the DDMS mode i
> > > >>> am able to see that file,
>
> > > >> If you see the file on your sdcard in the ddms file explorer  it
> > should be
> > > >> there.
>
> > > >>> but in the SDCard i was not able to see that
> > > >>> file.
>
> > > >> Its not clear how you are viewing the sdcard in this case.
>
> > > >>> Please could anyone tell how can this be acheived.
>
> > > >>> heres the code snippet i use.
>
> > > >>> String fileName = "myFileName";
> > > >>> File bufferedFile = new File("/sdcard/"+fileName);
>
> > copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
>
> > > >>> private void copyFiletoSDCard(File fromFile, String fileName) {
> > > >>>                FileInputStream from = null;
> > > >>>                FileOutputStream to = null;
> > > >>>                try {
> > > >>>                        from =
> > context.openFileInput(fromFile.getName());
> > > >>>                        to = new FileOutputStream(fileName);
> > > >>>                        byte[] buffer = new byte[4096];
> > > >>>                        int bytesRead;
>
> > > >>>                        while ((bytesRead = from.read(buffer)) != -1)
> > > >>>                                to.write(buffer, 0, bytesRead); //
> > write
> > > >>>                } catch(IOException ioException){
> > > >>>                        Log.i(getClass().getName(),"ioException Msg");
>
> > > >>>  Log.i(getClass().getName(),ioException.getMessage());
> > > >>>                        ioException.printStackTrace();
> > > >>>                }finally {
> > > >>>                        if (from != null)
> > > >>>                                try {
> > > >>>                                        from.close();
> > > >>>                                } catch (IOException e) {
> > > >>>                                        ;
> > > >>>                                }
> > > >>>                        if (to != null)
> > > >>>                                try {
> > > >>>                                        to.close();
> > > >>>                                } catch (IOException e) {
> > > >>>                                        ;
> > > >>>                                }
> > > >>>                }
>
> > > >>>        }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Video and Audio format supported in Android SDK 1.0

2008-10-21 Thread Guillaume Perrot

audio : MP3 M4A AMR
video: MP4 3GP
there is already tons of topics about that.

> > > Hi all,
>
> > > What video and audio format are supported in Android SDK 1.0 and T-
> > > mobile G1 devices?
> > > Could anyone give me a brief conclusion?
>
> > > And does Android platform support codec extension? That means
> > > developer can import some new codes into the system to support new
> > > media formats?
>
> > > Best regards,
> > > Nan YE
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-21 Thread for android
Yes i see the file by the way you have specified.

Let me explain once more.I download an mp3 and save it in the SDCard.After i
have saved it,should it not reflect in the mp3 files of the music icon that
is present on the phone.What should i do so that the file which I download
or save be visible in the Music or Pictures present in the phone.

Thanks
Guru.




On Tue, Oct 21, 2008 at 5:41 PM, Peli <[EMAIL PROTECTED]> wrote:

>
> I also don't understand what you do to check that you don't see the
> file on the SD card.
> Do you mean a real SD card that you inserted physically into your
> computer?
>
> Could you explain this in more detail?
>
> Can you try the following in a DOS window:
> adb shell
> cd sdcard
> ls
>
> Do you see your file then?
>
> Peli
>
> On Oct 21, 12:45 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > any help?
> >
> > On Mon, Oct 20, 2008 at 11:26 AM, for android <[EMAIL PROTECTED]>
> wrote:
> > > Thanks Mega for looking into this
> >
> > > I am seeing the sdcard from the emulator..When i start the emulator i
> have
> > > given the option in eclipse of the location of the sdcard.So after i
> > > download the file I want to view this file in the SDcard.I only see
> this the
> > > file in the DDMS mode,so the file has actually been downloaded.But I
> have
> > > not been able to figure out as to what stops me from seeing the file in
> the
> > > sdcard.
> >
> > > Thanks
> > > Guru
> >
> > > On Fri, Oct 17, 2008 at 12:28 PM, Megha Joshi <[EMAIL PROTECTED]>
> wrote:
> >
> > >> 2008/10/15 guru <[EMAIL PROTECTED]>
> >
> > >>> I needed to download a file and store it in my sdcard.I first save it
> > >>> by writing in the output stream(by using openFileOutput) in the
> > >>> application package.From here I copy it to my SDCard and its written
> > >>> on my SDCard.But when i see my SDCard in the file in the DDMS mode i
> > >>> am able to see that file,
> >
> > >> If you see the file on your sdcard in the ddms file explorer  it
> should be
> > >> there.
> >
> > >>> but in the SDCard i was not able to see that
> > >>> file.
> >
> > >> Its not clear how you are viewing the sdcard in this case.
> >
> > >>> Please could anyone tell how can this be acheived.
> >
> > >>> heres the code snippet i use.
> >
> > >>> String fileName = "myFileName";
> > >>> File bufferedFile = new File("/sdcard/"+fileName);
> > >>>
> copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
> >
> > >>> private void copyFiletoSDCard(File fromFile, String fileName) {
> > >>>FileInputStream from = null;
> > >>>FileOutputStream to = null;
> > >>>try {
> > >>>from =
> context.openFileInput(fromFile.getName());
> > >>>to = new FileOutputStream(fileName);
> > >>>byte[] buffer = new byte[4096];
> > >>>int bytesRead;
> >
> > >>>while ((bytesRead = from.read(buffer)) != -1)
> > >>>to.write(buffer, 0, bytesRead); //
> write
> > >>>} catch(IOException ioException){
> > >>>Log.i(getClass().getName(),"ioException Msg");
> >
> > >>>  Log.i(getClass().getName(),ioException.getMessage());
> > >>>ioException.printStackTrace();
> > >>>}finally {
> > >>>if (from != null)
> > >>>try {
> > >>>from.close();
> > >>>} catch (IOException e) {
> > >>>;
> > >>>}
> > >>>if (to != null)
> > >>>try {
> > >>>to.close();
> > >>>} catch (IOException e) {
> > >>>;
> > >>>}
> > >>>}
> >
> > >>>}
> >
>

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



[android-developers] Class cast exception

2008-10-21 Thread for android
I need to create a layout in whch has table and inside that a
single row which has a list .I tried the following code and got a class cast
exception.CAn any one help?


10-21 17:40:42.426: ERROR/AndroidRuntime(5757):
java.lang.ClassCastException: android.widget.TableLayout$LayoutParams
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.widget.FrameLayout.onLayout(FrameLayout.java:249)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.view.View.layout(View.java:5637)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:999)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.widget.LinearLayout.onLayout(LinearLayout.java:920)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.view.View.layout(View.java:5637)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.widget.FrameLayout.onLayout(FrameLayout.java:294)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.view.View.layout(View.java:5637)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.view.ViewRoot.performTraversals(ViewRoot.java:771)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.os.Handler.dispatchMessage(Handler.java:88)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.os.Looper.loop(Looper.java:123)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
android.app.ActivityThread.main(ActivityThread.java:3742)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
java.lang.reflect.Method.invokeNative(Native Method)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
java.lang.reflect.Method.invoke(Method.java:515)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
10-21 17:40:42.426: ERROR/AndroidRuntime(5757): at
dalvik.system.NativeStart.main(Native Method)


   * main.xml*


 http://schemas.android.com/apk/res/android";
  android:orientation="vertical">
   http://schemas.android.com/apk/res/android";
   android:orientation="horizontal">

 http://schemas.android.com/apk/res/android";
 android:orientation="vertical">

 
  
  


* Activity Class*
setContentView(R.layout.main);
tableLayout = (TableLayout) findViewById(R.id.tableLayout);
TableLayout.LayoutParams params = new
TableLayout.LayoutParams();
params.setMargins(25, 20, 20, 25);

tableLayout.setLayoutParams(params);
setListAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_1, listofRingers));

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



[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-21 Thread ukchucktown

Did anyone create an issue in the issue tracker? I think this needs to
be fixed. Unless I missed something, the latest version of the Android
SAX parser supports namespaces. In the absence of a namespace prefix,
a compliant parser should return the same value for qname and
localname. The Android parser does not. It returns the correct value
for qname and null or empty string for localname. This bug will break
popular third-party libraries like jdom which would otherwise work
fine on Android.

Grant

On Oct 2, 3:46 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> Glad you got it worked out.
>
> Now back to the originally scheduled issue here ;).
>
> I DO think the 1.0 parser is better, more strict, but theqName
> localName thing should still work (localName now having content whenqNamedid 
> on previous versions actually seems like an IMPROVEMENT, but
> still they both should have content when configured as such), and the
> features should be settable - I think.  I wish an Android dev would
> chime in here too though?
>
> On Oct 2, 3:36 pm, Chris Cicc <[EMAIL PROTECTED]> wrote:
>
> > Hey Charlie and Brad,
> > Good news! I now have the ampersand being parsed correctly. However
> > the change needed wasn't what we expected. Every time I changed the
> > raw text in the database from the '&' character to the escaped '&'
> > or '&' it didn't work, it would still break at that first
> > ampersand.
>
> > After doing some more research, I came across 
> > this:http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX3.html
>
> > In that document, it says:
>
> > "Note: To be strictly accurate, the character handler should scan the
> > buffer for ampersand characters (&);and left-angle bracket characters
> > (<) and replace them with the strings & or <, as appropriate.
> > You'll find out more about that kind of processing when we discuss
> > entity references in Displaying Special Characters and CDATA. "
>
> > I was working on implementing that, when I read further about CDATA
> > sections. I decided to try this, by implementing the
> > XmlDocument.CreateCDataSection method instead of the
> > XmlDocument.CreateTextNode method I'm currently using in my .Net web
> > service. Without having to modify my SAXParser code at all it worked
> > with the new CDATA section!
>
> > So what did I learn:
> > 1. The SAXParser does indeed break like this by design.
> > 2. Android beta's apparently did not implement a properly spec'ed
> > SAXParser.
> > 3. The SAXParser may be lightweight, but it comes at the cost of
> > parsing robustness. For instance, the built in .Net parser does not
> > have this issue. It simply reads the node, then everything after the
> > node until it reaches an end node. It's smart enough to detect full
> > nodes on their own, without simply assuming anything after '<' is a
> > new node like SAX does.
>
> > Going forward, I'm going to keep using CDATA sections, and look to
> > replace the parser if needed in the future.
>
> > As a developer, I'm really disappointed a Google rep didn't chime in
> > on this conversation. I'm used to having everything posted at
> > forums.asp.net read by Microsoft devs. But I appreciate all the help
> > of fellow community members like yourselves!
>
> > -chris
>
> > On Oct 2, 7:24 am, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > > It's just &, or &
>
> > >http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_re...
>
> > > The & and the ; delimit the entity.
>
> > > But Chris, your XML in your source example there can't have an
> > > ampersand there like that.  You need to be using the escape/encoding.
> > > If everything in the chain supports UTF-8 you can use &, if not,
> > > use the numerical entity version, &.
>
> > > Again, this is a different topic than the differences in the parsing,
> > > but every XML processor I have ever seen will blow up on a non-escaped
> > > ampersand.
>
> > > "Characters (or code points in Unicode terminology) outside the simple
> > > ASCII range 32-127 (  to ) must either be encoded as multi-
> > > byte UTF-8 sequences or using numerical entities. In environments that
> > > do not natively support UTF-8 it is often easier to use numerical
> > > entities"
>
> > > For example, the XML I am using is coming from Google Base - it is
> > > UTF-8, but you STILL have to use the encoding to escape the special
> > > chars:
>
> > > 
> > >  > >         xmlns:gm='http://base.google.com/ns-metadata/1.0'xmlns:g='http://
> > > base.google.com/ns/1.0'
> > >         xmlns:batch='http://schemas.google.com/gdata/batch'>
> > >         http://www.google.com/base/feeds/snippets
> > >         
> > >         2008-09-29T18:18:13.843Z
> > >         Items matching query: ([review
> > >                 type:restaurant][location:Atlanta, GA]) [item type == 
> > > "reviews"]
> > >         
> > >          > > href='http://base.google.com'/
>
> > >          > > rel='http://schemas.google.com/g/2005#feed'type='application/
> > > atom+xml'
> > >                 hre

[android-developers] Re: Problem Starting new ActivityForResult

2008-10-21 Thread Peli

You can find the database only in the internal memory.

>From a shell window type:
adb shell
cd /data/data/com.yoursite.yourapplication/databases
sqlite3 mydatabase.db
.dump

Peli

On Oct 21, 1:01 pm, fahadlala <[EMAIL PROTECTED]> wrote:
> This problem has been resolved by recreating the Activities and Intent
> Filters in the AndroidManifest.xml.
>
> @ StevePotell :
>
> I am having trouble finding the database created by my application so
> that i may access it through SQLite Maestro. I have searched into the
> SDK directory(+subdirs) and also the Projects Directory (+subdirs) and
> ofcourse inthe workspace for eclipse. But database named "AndroidDB"
> is nowhere to be found. Any help would be appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-21 Thread Peli

I also don't understand what you do to check that you don't see the
file on the SD card.
Do you mean a real SD card that you inserted physically into your
computer?

Could you explain this in more detail?

Can you try the following in a DOS window:
adb shell
cd sdcard
ls

Do you see your file then?

Peli

On Oct 21, 12:45 pm, "for android" <[EMAIL PROTECTED]> wrote:
> any help?
>
> On Mon, Oct 20, 2008 at 11:26 AM, for android <[EMAIL PROTECTED]> wrote:
> > Thanks Mega for looking into this
>
> > I am seeing the sdcard from the emulator..When i start the emulator i have
> > given the option in eclipse of the location of the sdcard.So after i
> > download the file I want to view this file in the SDcard.I only see this the
> > file in the DDMS mode,so the file has actually been downloaded.But I have
> > not been able to figure out as to what stops me from seeing the file in the
> > sdcard.
>
> > Thanks
> > Guru
>
> > On Fri, Oct 17, 2008 at 12:28 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
>
> >> 2008/10/15 guru <[EMAIL PROTECTED]>
>
> >>> I needed to download a file and store it in my sdcard.I first save it
> >>> by writing in the output stream(by using openFileOutput) in the
> >>> application package.From here I copy it to my SDCard and its written
> >>> on my SDCard.But when i see my SDCard in the file in the DDMS mode i
> >>> am able to see that file,
>
> >> If you see the file on your sdcard in the ddms file explorer  it should be
> >> there.
>
> >>> but in the SDCard i was not able to see that
> >>> file.
>
> >> Its not clear how you are viewing the sdcard in this case.
>
> >>> Please could anyone tell how can this be acheived.
>
> >>> heres the code snippet i use.
>
> >>> String fileName = "myFileName";
> >>> File bufferedFile = new File("/sdcard/"+fileName);
> >>> copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
>
> >>> private void copyFiletoSDCard(File fromFile, String fileName) {
> >>>                FileInputStream from = null;
> >>>                FileOutputStream to = null;
> >>>                try {
> >>>                        from = context.openFileInput(fromFile.getName());
> >>>                        to = new FileOutputStream(fileName);
> >>>                        byte[] buffer = new byte[4096];
> >>>                        int bytesRead;
>
> >>>                        while ((bytesRead = from.read(buffer)) != -1)
> >>>                                to.write(buffer, 0, bytesRead); // write
> >>>                } catch(IOException ioException){
> >>>                        Log.i(getClass().getName(),"ioException Msg");
>
> >>>  Log.i(getClass().getName(),ioException.getMessage());
> >>>                        ioException.printStackTrace();
> >>>                }finally {
> >>>                        if (from != null)
> >>>                                try {
> >>>                                        from.close();
> >>>                                } catch (IOException e) {
> >>>                                        ;
> >>>                                }
> >>>                        if (to != null)
> >>>                                try {
> >>>                                        to.close();
> >>>                                } catch (IOException e) {
> >>>                                        ;
> >>>                                }
> >>>                }
>
> >>>        }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Theme example

2008-10-21 Thread Christine


Where do I find example themes, or how can I make minor changes to,
like, the Dialog theme? I've searched but couldn't find


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



[android-developers] Re: Inflating Buttons / Custom Views

2008-10-21 Thread Mark Murphy

JavaAndroid wrote:
> Can anyone shed some light on Inflating
> Buttons and Custom Views. 

*click*

Not sure if this flashlight will make it through the email, though...

;-)

 > What is the exacet meaning of Inflating
> Buttons and Custom Views?

Using LayoutInflater to turn layout XML into a tree of View, as opposed 
to solely using layout XML in activities via setContentView().

 > Can you provide some links or Tutorials for
> trying out them in Activity Screen..

IMHO, LayoutInflater will most commonly be used in selection widgets, 
like ListView, when you want the rows to be something relatively 
complex. I have a series of "Fancy ListView" blog posts out in the 
Building 'Droids column on AndroidGuys:

http://androidguys.com/?cat=7

Some of that is for the older M5 SDK. The one that is more up-to-date is:

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

Unfortunately, the formatting of these older posts got whacked when 
AndroidGuys switched hosts and themes, so they're a little tough to read.

Otherwise, search for LayoutInflater in your favorite search engine, and 
you should find some examples.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Change from screen to screen doesn't work.

2008-10-21 Thread Ludwig
The code you sent seems fine to me. I have the suspicion that maybe what is
wrong is in the xml layout file for your second screen. (Maybe put a
breakpoint into the second onCreate(). If you can reach it the intent
negotiation is right. It might blow up when you are trying to load the
screen layout).
HTH

Ludwig

2008/10/21 sush <[EMAIL PROTECTED]>

>
> Hello Ludwig,
>
> Basically what I meant was that, I have a class Screen1.java and it
> has a button in it clicking to which should switch to another screen
> which also has one nore button.Clicking on the other button in the
> second screen should end the activity(child activity).This was the
> simplest code that I wanted to implement to work with changing
> screens, but when I run this application in the ddms logcat I can find
> only creash report and a pop up saying the application has stopped
> unexpectedly in the emulator.
>
> Please let me know if I am doing some thing wrong.
>
> I am pasting below the code snippet for Screen1.java:
>
> public void onCreate(Bundle icicle)
>   {
>  super.onCreate(icicle);
>  setContentView(R.layout.screen1);
>  Button b = (Button) findViewById(R.id.btnClick);
>  b.setOnClickListener(new View.OnClickListener() {
> public void onClick(View arg0) {
> Intent i = new Intent(Screen1.this, Screen2.class);
> startActivity(i);
> }
>  });
>   }
>
> (In the screen1.xml there is a button component along with a TestView
> to display a text)
>
> Code snippet for Screen2.java;
> public void onCreate(Bundle icicle)
>   {
>  super.onCreate(icicle);
>  setContentView(R.layout.screen2);
>  Button b = (Button) findViewById(R.id.btnClick2);
>  b.setOnClickListener(new View.OnClickListener() {
> public void onClick(View arg0) {
> setResult(RESULT_OK);
> finish();
> }
>  });
>   }
>
> (In the screen2.xml there is a button component along with a TestView
> to display a text)
>
> And the androidmanifest.xml;
>
> 
> http://schemas.android.com/apk/res/android";
>  package="ScreenChangeProj.pac"
>  android:versionCode="1"
>  android:versionName="1.0.0">
>
>   android:label="@string/app_name">
>
> 
> android:name="android.intent.category.LAUNCHER" />
>
>
>
>  
>  
> 
>
> Regards,
> Susama
>
>
> On Oct 20, 5:57 pm, Ludwig <[EMAIL PROTECTED]> wrote:
> > I do not think that you have given enough information for anyone to
> really
> > help you.
> > Navigating via intents is the primary (only?) way of moving from screen
> to
> > screen in Android, so you can safely assume that this works.
> > Looking at the log output in DDMS and the stack-trace in the debugger
> (plus
> > the information in the exception that is likely being thrown somewhere)
> > might give you an idea what you have done wrong.
> >
> > A good start might be just looking at the examples in the
> samples/ApiDemos
> > directory of the SDK installation and have a look how it is done there.
> >
> > Ludwig
> >
> > 2008/10/20 sush <[EMAIL PROTECTED]>
> >
> >
> >
> > > Hello,
> >
> > > I am trying to execute an Android application which will create a new
> > > activity (that will open a new UI screen) on a button click.
> > > I have stated the new activity as an intent in the main class and
> > > added it in the androidmanifest file as another activity.
> > > But when I execute this application I get an error in the emulator
> > > saying the application has stopped unxpectedly.
> >
> > > Please help in this if there are some other way to navigate from one
> > > screen to another.
> >
> > > 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem Starting new ActivityForResult

2008-10-21 Thread fahadlala

This problem has been resolved by recreating the Activities and Intent
Filters in the AndroidManifest.xml.

@ StevePotell :

I am having trouble finding the database created by my application so
that i may access it through SQLite Maestro. I have searched into the
SDK directory(+subdirs) and also the Projects Directory (+subdirs) and
ofcourse inthe workspace for eclipse. But database named "AndroidDB"
is nowhere to be found. Any help would be appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-21 Thread for android
any help?

On Mon, Oct 20, 2008 at 11:26 AM, for android <[EMAIL PROTECTED]> wrote:

> Thanks Mega for looking into this
>
> I am seeing the sdcard from the emulator..When i start the emulator i have
> given the option in eclipse of the location of the sdcard.So after i
> download the file I want to view this file in the SDcard.I only see this the
> file in the DDMS mode,so the file has actually been downloaded.But I have
> not been able to figure out as to what stops me from seeing the file in the
> sdcard.
>
> Thanks
> Guru
>
>
> On Fri, Oct 17, 2008 at 12:28 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> 2008/10/15 guru <[EMAIL PROTECTED]>
>>
>>>
>>> I needed to download a file and store it in my sdcard.I first save it
>>> by writing in the output stream(by using openFileOutput) in the
>>> application package.From here I copy it to my SDCard and its written
>>> on my SDCard.But when i see my SDCard in the file in the DDMS mode i
>>> am able to see that file,
>>
>>
>> If you see the file on your sdcard in the ddms file explorer  it should be
>> there.
>>
>>
>>> but in the SDCard i was not able to see that
>>> file.
>>
>>
>> Its not clear how you are viewing the sdcard in this case.
>>
>>
>>
>>> Please could anyone tell how can this be acheived.
>>>
>>>
>>> heres the code snippet i use.
>>>
>>> String fileName = "myFileName";
>>> File bufferedFile = new File("/sdcard/"+fileName);
>>> copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
>>>
>>> private void copyFiletoSDCard(File fromFile, String fileName) {
>>>FileInputStream from = null;
>>>FileOutputStream to = null;
>>>try {
>>>from = context.openFileInput(fromFile.getName());
>>>to = new FileOutputStream(fileName);
>>>byte[] buffer = new byte[4096];
>>>int bytesRead;
>>>
>>>while ((bytesRead = from.read(buffer)) != -1)
>>>to.write(buffer, 0, bytesRead); // write
>>>} catch(IOException ioException){
>>>Log.i(getClass().getName(),"ioException Msg");
>>>
>>>  Log.i(getClass().getName(),ioException.getMessage());
>>>ioException.printStackTrace();
>>>}finally {
>>>if (from != null)
>>>try {
>>>from.close();
>>>} catch (IOException e) {
>>>;
>>>}
>>>if (to != null)
>>>try {
>>>to.close();
>>>} catch (IOException e) {
>>>;
>>>}
>>>}
>>>
>>>}
>>>
>>>
>>
>> >>
>>
>

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



[android-developers] Exception while Inserting a new contact

2008-10-21 Thread Abraham

HI All,

I would like insert contacts using my application. I'm able to create
a contact if name is mentioned. When I attempt to insert the number
this user i get execptions.

Could some one pls let me know where I'm going wrong.


Code snippet:
 public int insertContactAsMyFave(Contacts contact)
{
//DISCLAIMER:-THIS CODE HAS NOT YET BEEN TESTED
ContentValues content = new ContentValues();
content.put(People.NAME, contact.getContactName());
//content.put(People.NUMBER, contact.getContactPhoneNumber());
content.put(People.CUSTOM_RINGTONE,
contact.getContactRingTone());
content.put(People.STARRED,true);

Uri mContacts = People.CONTENT_URI;
Uri newContactUri =
contactsCtx.getContentResolver().insert(mContacts, content);

mContacts = Phones.CONTENT_URI;
content.clear();

   //I GET EXCEPTION WHEN I EXECUTE THE FOLOWING LINES
OF CODE
content.put(Phones.PERSON_ID,
ContentUris.parseId(newContactUri));
content.put(Phones.NUMBER, contact.getContactPhoneNumber());
// insert the new phone number in the database
contactsCtx.getContentResolver().insert(Phones.CONTENT_URI,
content);
return (int)ContentUris.parseId(newContactUri);
}

Execption received:
10-21 15:51:46.729: ERROR/DatabaseUtils(93): Error inserting
isprimary=1 number_key= number= person=12 into
table  phones
10-21 15:51:46.729: ERROR/DatabaseUtils(93):
android.database.sqlite.SQLiteConstraintException: error code 19
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:
69)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.DatabaseUtils
$InsertHelper.insertInternal(DatabaseUtils.java:761)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.DatabaseUtils$InsertHelper.insert(DatabaseUtils.java:
882)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
com.android.providers.contacts.ContactsProvider.insertAndFixupPrimary(ContactsProvider.java:
1869)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
com.android.providers.contacts.ContactsProvider.insertInternal(ContactsProvider.java:
1575)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.content.SyncableContentProvider.insert(SyncableContentProvider.java:
312)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
139)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
124)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.os.Binder.execTransact(Binder.java:276)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
dalvik.system.NativeStart.run(Native Method)
10-21 15:51:46.768: ERROR/JavaBinder(93): *** Uncaught remote
exception!  (Exceptions are not yet supported across processes.)
10-21 15:51:46.768: ERROR/JavaBinder(93): java.lang.RuntimeException:
error while inserting into phones, isprimary=1 number_key=
number= person=12
10-21 15:51:46.768: ERROR/JavaBinder(93): at
com.android.providers.contacts.ContactsProvider.insertAndFixupPrimary(ContactsProvider.java:
1872)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
com.android.providers.contacts.ContactsProvider.insertInternal(ContactsProvider.java:
1575)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.content.SyncableContentProvider.insert(SyncableContentProvider.java:
312)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
139)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
124)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.os.Binder.execTransact(Binder.java:276)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
dalvik.system.NativeStart.run(Native Method)

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



[android-developers] Re: Adding self to menus on other applications

2008-10-21 Thread Shade

Hello!

If you mean Android Howto document:

Adding yourself to menus on other applications

You can also advertise your Activity's services so that other
Activities can add your activity to their own option menu. For
example, suppose you implement a new image handling tool that shrinks
an image to a smaller size and you would like to offer this as a menu
option to any other Activity that handles pictures. To do this, you
would exposes your capabilities inside an intent filter in your
manifest. If another application that handles photos asks Android for
any Activities that can perform actions on pictures, Android will
perform intent resolution, find your Activity, and add it to the other
Activity's options menu.
The offering application

The application offering the service must include an 
element in the manifest, inside the  tag of the offering
Activity. The intent filter includes all the details describing what
it can do, such as a  element that describes the MIME type of
data that it can handle, a custom  value that describes what
your handling application can do (this is so that when it receives the
Intent on opening it knows what it is expected to do), and most
important, include a  filter with the value
android.intent.category.ALTERNATIVE and/or
android.intent.category.SELECTED_ALTERNATIVE (SELECTED_ALTERNATIVE is
used to handle only the currently selected element on the screen,
rather than the whole Activity intent.

Here's an example of a snip of a manifest that advertises picture
shrinking technology for both selected items and the whole screen.
 
  

 






I've tried it.
After adding that intent-filter (with fixed typos) Pictures
application still does not offer to shrink pictures.








Adding this to my manifest does not affect browser's menu too.

Maybe i am making something wrong but i don't know what. And i was
unable to find really working examples of such actions.

With respect,
Michael
PrinterShare team

PS SDK version 1.0_r1


On 21 окт, 13:10, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm sorry i d'ont have example
>
> But you can find tutorial on code.google.com/android
>
> good luck.
>
> On 17 oct, 16:59, Shade <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello!
> > It is possible to add my activity to build-in browser's menu?
> > Working example wanted.
>
> > Thank you.
>
> > With respect,
> > Michael
> > PrinterShare team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: jchat4android 1.2 released!

2008-10-21 Thread Al Sutton

Any chance you could make an apk available for direct-to-device installs?

Al.

Semeria Stefano wrote:
>
> Dear Android developers, 
>
> We are proud to announce the release of jChat4Android 1.2 working with 
> ANDROID 
> SDK 1.0 
>
> jChat4Android is a chat application for the Android platform based on 
> Jade 
> agent framework. 
>
> It shows how Jade can effectively be used in a  peer-to-peer context on 
> mobile devices. 
>
> In our opinion JADE, thanks to the expressiveness of its communication 
> model 
> based on FIPA specifications (http://www.fipa.org ), brings strong added 
>
> value to ANDROID SDK platform in the development of innovative 
> applications 
> based on social models and peer-to-peer paradigm. 
>
> jChat relies on Jade4AndroidAddOn 1.1, a JADE add-on that enables Jade 
> capabilities on the Android platform and provides a good example of how 
> Android developers can use JADE agents in their own applications. 
>
> For any information regarding Jade and Jade4Android, please refer to Jade 
> project official site at 
>
> *http://jade.tilab.com* . 
>
> These are the main features of jChat: 
>
> ·   *Contacts management*  (contacts are read from the phone contacts 
> database) 
>
> ·   *Persistence*  (you can see the status of all contacts 
> connected to 
> your own JADE platform) 
>
> ·   *Real time localization* (you can see the position of the 
> contacts 
> on the map and the distance from your current position. Localization uses 
> the Android mocked GPS provider for tracking contacts position. You 
> are able 
> to import new custom tracks if you wish.) 
>
> ·   *Multiple chat sessions handling*  ( you can open multiple chat 
> sessions with different contacts and switch between them) 
>
> ·   *Support for chat with many contacts in a single session* 
>
> ·   *Mocked SMS sending and phone call to contacts* 
>
> jChat4Android 1.2 is released as open source software according to the 
> LGPL 
> 2.1. 
>
> Main Features of the new released:
>
> 1. Support for Android 1.0 SDK
>
> 2. New ddms-like tool for sending mocked location updates to 
> different emulators at the same time loading from kml.
>
> You can find out source code, binaries and documentation at the 
> jChat4android project site here 
> : http://code.google.com/p/jchat4android/  
> 
>
> * * 
>
> *Have fun with jchat4android* 
>
> Stefano Semeria 
>
> Marco Ughetti 
>
> Danilo Gotta 
>
>  
>
>
> >


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] If your hosting your own .apk

2008-10-21 Thread Al Sutton

There are a number of reports of people having problems downloading apks 
directly from websites, so I'm putting together a list of tips for 
hosting your own app at;

http://andappstore.com/AndroidPhoneApplications/publishing.jsp

If anyone has anything they think should be added please let me know.

Al.
http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Adding self to menus on other applications

2008-10-21 Thread [EMAIL PROTECTED]

I'm sorry i d'ont have example

But you can find tutorial on code.google.com/android

good luck.

On 17 oct, 16:59, Shade <[EMAIL PROTECTED]> wrote:
> Hello!
> It is possible to add my activity to build-in browser's menu?
> Working example wanted.
>
> Thank you.
>
> With respect,
> Michael
> PrinterShare team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] sharedUserId - What does it mean wrt to Java classes?

2008-10-21 Thread Anders Rundgren

Does sharedUserId imply that you do not need to duplicate custom class
libraries between "cooperating" applications?

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



  1   2   >