[android-developers] Re: Check for new version of applications

2008-11-10 Thread friedger

Hi,

we have prepared a release version of the OI Updater. There is no need
to send intents, but developers only need to add a meta-data node to
the application manifest in order to be handled by the updater.

Early feedback welcome!

Description: http://www.openintents.org/en/node/136
Download: http://openintents.googlecode.com/files/UpdateChecker-1.0.0.apk

Cheers,
Friedger

On 6 Nov., 20:31, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
> Because we use a XMPP based application, we chosed Pubsub as a way to
> notify new versions to the user. The main advantage is that it uses a
> push model. The user is aware of a new version when he launches
> the app or in real time if he's online while a new version has just
> been released. No timer or service at all in the application code.
>
> On Nov 5, 11:57 pm, friedger <[EMAIL PROTECTED]> wrote:
>
> > Currently, relying on an external resource is the way to do updates,
> > this is how it is described in the documentation.
>
> > If someone is checking against Market, please let us know.
>
> > Friedger
>
> > On Nov 4, 8:49 pm, "Dan B." <[EMAIL PROTECTED]> wrote:
>
> > > isn't there some way tocheckthe version against the Market instead
> > > of having to host version information somewhere else? I know the app
> > > Locale somehow knows when anupdateis available, it seems reasonable
> > > to query the Market rather than relying on outside sources :\
>
> > > On Nov 1, 1:50 pm,friedger<[EMAIL PROTECTED]> wrote:
>
> > > > I'd say the package name is the global identifier.
>
> > > > Maybe you can just provide a VeeCheck url based on the package name
> > > > (as alternative to the app id). So I couldcheckthat url. If you
> > > > don't host an app for the package name or if it is not unique you
> > > > could return a HTTP 400.
>
> > > >Friedger
>
> > > > On 1 Nov., 17:37, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > > >Friedger,
>
> > > > > How are you identifying the apps?, I'd happily add an extra field or 
> > > > > two
> > > > > to the AndAppStore.com data that you can search for if it would be 
> > > > > useful.
>
> > > > > Al.
>
> > > > >friedgerwrote:
> > > > > > The idea is that the Updater will also be ablecheckall applications
> > > > > > it knows about by a single button clicked or scheduled task. So, 
> > > > > > once
> > > > > > the intent from one application is processed by theUpdateit is
> > > > > > possible to include this application to the periodicupdate.
>
> > > > > > A more general solution that includes all installed applications is
> > > > > > currently not possible as I can't determine the location of the
> > > > > >versioninfo file.
>
> > > > > > The apk mentioned above is provided for developers to test. In the
> > > > > > releaseversionthe interval between two checks will be at least 24
> > > > > > hours, so you can start the service as often as you like but 
> > > > > > thecheck
> > > > > > is only performed once every 24 hours. Furthermore, only the log cat
> > > > > > shows whether the installedversionis up-to-date or not. In both
> > > > > > cases the notification is show (this is to simplify the tests).
>
> > > > > > Would you like to have a different Notification text? Any ideas for
> > > > > > icons?
>
> > > > > >Friedger
>
> > > > > > On 1 Nov., 13:18, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > > > >> HiFriedger,
>
> > > > > >> I've updated AndAppStore.com to provide a versionCode in 
> > > > > >> theupdate.xml
> > > > > >> as you requested.
>
> > > > > >> At the moment anyone with applications listed will find that they 
> > > > > >> can
> > > > > >> specify the versionCode in the details about a releasedversion(not 
> > > > > >> the
> > > > > >> application details page, the release details page).
>
> > > > > >> I am working on code to pull the information from the manifest 
> > > > > >> included
> > > > > >> in the apk, but this is a little way off yet.
>
> > > > > >> Thanks for making this available.
>
> > > > > >> Al.
>
> > > > > >>friedgerwrote:
>
> > > > > >>> Hi,
>
> > > > > >>> we are preparing the OI Updater that checks a given info file for 
> > > > > >>> new
> > > > > >>> updates as described in the Android documentation.
>
> > > > > >>> You can find the current build (rev 1284) at
> > > > > >>>http://openintents.googlecode.com/files/UpdateChecker.apk
>
> > > > > >>> In order to initiate theupdatecheckyou just have to add the
> > > > > >>> following code:
>
> > > > > >>>            Intent service = new Intent();
> > > > > >>>            service.setAction(ACTION_CHECK_VERSION);
> > > > > >>>            String uri= "http://uri-to-update-file.txt";
>
> > > > > >>>            service.setData(Uri.parse(link));
> > > > > >>>            service.putExtra("package_name", 
> > > > > >>> context.getPackageName());
> > > > > >>>            service.putExtra("app_name",
> > > > > >>> context.getString(org.openintents.notepad.R.string.app_name));
>
> > > > > >>>            int currentVersion = -1;
> > > > > >>>                    Package

[android-developers] Re: List Views and Scroll Views

2008-11-10 Thread Christine

How does the scrollview know that it shouldn't scroll when you're
scrolling the listview? Wouldn't this be confusing to the user?
Wouldn't it be easier to have two lists, so that the list in the
middle pops up when you activate it's row in the super list?

On Nov 10, 1:28 pm, "for android" <[EMAIL PROTECTED]> wrote:
> I have a complex layout which has many table rows.Something like this:
>
> 
> 
> 
> 
> 
> 
> 
> 
>          
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Say now I want a scrollableView for this and I implement the view like this
> :
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>          
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> At this point what happens is that i see just 2 rows of the list coming up.
>
> Now the prob i am facing is that if I remove the scroll view the the whole
> list appears.
>
> I do know that in the reference documents,we are suggested not to use Scroll
> View with a List View.
>
> As per my requirement,i have a list in which we know that say only 5 rows
> are displayed.And then i need the user to be able to scroll the other items
> which are external to the list.
>
> How do I accomplish this? Or is it not possible task???
>
> 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] Thread instead of Service, is it safe ?

2008-11-10 Thread Derek

Hi,

I've an Activity A that starts a Thread T which download a file
through HTTP. It works fine. If I close my Activity (back button)
while downloading, it is destroyed (onDestroy called) but download
Thread still continue and download is completed fine.

For testing purposes I've moved my Thread T into a Service and my
Activity starts the Service now. It's a little bit complex to write
(for callbacks) but it works fine too.

What it the best approach ? From the documentation I think Service
seems better to make sure the download Thread will continue even if
the Activity is destroyed ?

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: List Views and Scroll Views

2008-11-10 Thread for android
Actually in the list there is a footer which goes to the next set of items
in the list.So the user will not have that confusion..


>>Wouldn't it be easier to have two lists, so that the list in the
>>middle pops up when you activate it's row in the super list?
Could you elaborate more on this...


On Mon, Nov 10, 2008 at 6:54 PM, Christine <[EMAIL PROTECTED]>wrote:

>
> How does the scrollview know that it shouldn't scroll when you're
> scrolling the listview? Wouldn't this be confusing to the user?
> Wouldn't it be easier to have two lists, so that the list in the
> middle pops up when you activate it's row in the super list?
>
> On Nov 10, 1:28 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > I have a complex layout which has many table rows.Something like this:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Say now I want a scrollableView for this and I implement the view like
> this
> > :
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > At this point what happens is that i see just 2 rows of the list coming
> up.
> >
> > Now the prob i am facing is that if I remove the scroll view the the
> whole
> > list appears.
> >
> > I do know that in the reference documents,we are suggested not to use
> Scroll
> > View with a List View.
> >
> > As per my requirement,i have a list in which we know that say only 5 rows
> > are displayed.And then i need the user to be able to scroll the other
> items
> > which are external to the list.
> >
> > How do I accomplish this? Or is it not possible task???
> >
> > 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] Cookie not enabled while using HttpPOST

2008-11-10 Thread AnuR

Hi,
I wanted to login to a website thru my application, For that i used

DefaultHttpClient client = new DefaultHttpClient();
HttpPost postmethod = new HttpPost("the url to submit the login data
and related parametrs");

//set header for the postmethos and executed the client,

but I am getting the response as "COOKIE NOT ENABLED IN YOUR BROWSER".
I could get all the cookies in
 List cookies = client.getCookieStore().getCookies();
But how can I post the cookie to the login url?

can I post the COOKIE obj as header , How is it done.?

 Please Help me with some sample 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] Virtual Table Problem

2008-11-10 Thread cyntacks

Hi All,

I Am experiencing a strange issue regarding the joining of a SQLite3
Virtual Table with a "regular" table. MY result allways pull back 0
records, but if i run the same sql on the 2 reular tables it pulls
back all records. After hours or debugging this I am starting to
believe I may not fully comprehend what this sql does on the backend.
This returns now rows:

SELECT v.name, o.year
FROM NAMES_VIRTUAL v
JOIN SOME_OTHER o ON o.test_id = v._id

Now, the STRANGE part of all this is using the "regular" table which
was used to create the virtual table works fine and BOTH the "test_id"
and "_id' values ARE in each table:

SELECT n.name, o.year
FROM NAMES n
JOIN SOME_OTHER o ON o.test_id = n._id

What am I missing, is it possible to join a Vitual and "regular"
table, sqlite3 doc claims it is, but..

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: MediaRecorder on G1

2008-11-10 Thread g1ster

Cool!!!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Executing ON Target

2008-11-10 Thread Greg

You need to do the following steps.  Google for details on each one,
you'll find plenty of info:

1. Right click the project and choose Android Tools->Export Unsigned
Application Package...
2. Choose a directory and save to create the .apk file
3. Use keytool to generate a self-signed certificate and keystore
4. Use jarsigner to sign the apk you just generated in #2 with the
certificate you created in #3

The apk file is now ready to be put on the G1.  You can do this
several ways but due to problems I have had with the phone connected
to my PC, the way I have done it is set the apk file up on IIS on my
machine with a page that links to the apk.  I then surf to that on my
internal network via the wifi connection on the G1 and download it.
It will automatically install.

If you do set it up for download via a website (your internal or any
other) you need to make sure you set the MIME type for .apk to
'application/vnd.android.package-archive' for the G1 to know that it
can install what it just downloaded.

There is also a way to push it out to the SD card over USB but I don't
have experience with locating and installing the apk once that is
done.

Hope this helps,

Greg

On Nov 9, 11:29 pm, sudheer <[EMAIL PROTECTED]> wrote:
> Hello All
> I have an application developed using emulator. I want to run this
> application on G1 now. how should I go about it?
> is there any thing that I need to change apart from the instructions I
> see in sdk reference documents?
> Please advise.
>
> Best Regards,
> Sudheer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Virtual Table Problem

2008-11-10 Thread cyntacks

GOT IT!!! This was driving me nuts for HOURS

Long story short, SQLite does not validate fields, that is, you can
stick an INTEGER into a VARCHAR. My code was inserting an INTEGER into
a VARCHAR "assuming" it would be cast into a VARCHAR but in actuality
no conversion takes place, it was just being treated as an INTEGER,
thus my join failed becuase SQLite was seeing the entry as in INTEGER!

Wow, that took WAY too long to figure out...



On Nov 10, 7:42 am, cyntacks <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I Am experiencing a strange issue regarding the joining of a SQLite3
> Virtual Table with a "regular" table. MY result allways pull back 0
> records, but if i run the same sql on the 2 reular tables it pulls
> back all records. After hours or debugging this I am starting to
> believe I may not fully comprehend what this sql does on the backend.
> This returns now rows:
>
> SELECT v.name, o.year
> FROM NAMES_VIRTUAL v
> JOIN SOME_OTHER o ON o.test_id = v._id
>
> Now, the STRANGE part of all this is using the "regular" table which
> was used to create the virtual table works fine and BOTH the "test_id"
> and "_id' values ARE in each table:
>
> SELECT n.name, o.year
> FROM NAMES n
> JOIN SOME_OTHER o ON o.test_id = n._id
>
> What am I missing, is it possible to join a Vitual and "regular"
> table, sqlite3 doc claims it is, but..
>
> 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: Virtual Table Problem

2008-11-10 Thread Mark Murphy

cyntacks wrote:
> GOT IT!!! This was driving me nuts for HOURS
> 
> Long story short, SQLite does not validate fields, that is, you can
> stick an INTEGER into a VARCHAR. My code was inserting an INTEGER into
> a VARCHAR "assuming" it would be cast into a VARCHAR but in actuality
> no conversion takes place, it was just being treated as an INTEGER,
> thus my join failed becuase SQLite was seeing the entry as in INTEGER!

That's a SQLite-ism. Types expressed in table schemas are hints more so 
than mandates.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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



[android-developers] PC Crashing

2008-11-10 Thread dave.marsden

I've built a little test app in eclipse, but I now want to test it on
the G1 (works fine on the emulator) however whenever I try to run it
on the G1 from eclipse, or install it onto the G1 through ADB the PC
just reboots. I'm using XP btw.

Anybody able to help?

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



[android-developers] Re: Check for new version of applications

2008-11-10 Thread G

So version checking needs to be done through an outside resource...
Is there an intent we can use to launch the Android Market App
directly to the listing for our own app, for when an update is
available?

On Nov 10, 4:35 am, friedger <[EMAIL PROTECTED]> wrote:
> Hi,
>
> we have prepared a release version of the OI Updater. There is no need
> to send intents, but developers only need to add a meta-data node to
> the application manifest in order to be handled by the updater.
>
> Early feedback welcome!
>
> Description:http://www.openintents.org/en/node/136
> Download:http://openintents.googlecode.com/files/UpdateChecker-1.0.0.apk
>
> Cheers,
> Friedger
>
> On 6 Nov., 20:31, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > Because we use a XMPP based application, we chosed Pubsub as a way to
> > notify new versions to the user. The main advantage is that it uses a
> > push model. The user is aware of a new version when he launches
> > the app or in real time if he's online while a new version has just
> > been released. No timer or service at all in the application code.
>
> > On Nov 5, 11:57 pm, friedger <[EMAIL PROTECTED]> wrote:
>
> > > Currently, relying on an external resource is the way to do updates,
> > > this is how it is described in the documentation.
>
> > > If someone is checking againstMarket, please let us know.
>
> > > Friedger
>
> > > On Nov 4, 8:49 pm, "Dan B." <[EMAIL PROTECTED]> wrote:
>
> > > > isn't there some way tocheckthe version against theMarketinstead
> > > > of having to host version information somewhere else? I know the app
> > > > Locale somehow knows when anupdateis available, it seems reasonable
> > > > to query theMarketrather than relying on outside sources :\
>
> > > > On Nov 1, 1:50 pm,friedger<[EMAIL PROTECTED]> wrote:
>
> > > > > I'd say the package name is the global identifier.
>
> > > > > Maybe you can just provide a VeeCheck url based on the package name
> > > > > (as alternative to the app id). So I couldcheckthat url. If you
> > > > > don't host an app for the package name or if it is not unique you
> > > > > could return a HTTP 400.
>
> > > > >Friedger
>
> > > > > On 1 Nov., 17:37, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > > > >Friedger,
>
> > > > > > How are you identifying the apps?, I'd happily add an extra field 
> > > > > > or two
> > > > > > to the AndAppStore.com data that you can search for if it would be 
> > > > > > useful.
>
> > > > > > Al.
>
> > > > > >friedgerwrote:
> > > > > > > The idea is that the Updater will also be ablecheckall 
> > > > > > > applications
> > > > > > > it knows about by a single button clicked or scheduled task. So, 
> > > > > > > once
> > > > > > > theintentfrom one application is processed by theUpdateit is
> > > > > > > possible to include this application to the periodicupdate.
>
> > > > > > > A more general solution that includes all installed applications 
> > > > > > > is
> > > > > > > currently not possible as I can't determine the location of the
> > > > > > >versioninfo file.
>
> > > > > > > The apk mentioned above is provided for developers to test. In the
> > > > > > > releaseversionthe interval between two checks will be at least 24
> > > > > > > hours, so you can start the service as often as you like but 
> > > > > > > thecheck
> > > > > > > is only performed once every 24 hours. Furthermore, only the log 
> > > > > > > cat
> > > > > > > shows whether the installedversionis up-to-date or not. In both
> > > > > > > cases the notification is show (this is to simplify the tests).
>
> > > > > > > Would you like to have a different Notification text? Any ideas 
> > > > > > > for
> > > > > > > icons?
>
> > > > > > >Friedger
>
> > > > > > > On 1 Nov., 13:18, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > > > > >> HiFriedger,
>
> > > > > > >> I've updated AndAppStore.com to provide a versionCode in 
> > > > > > >> theupdate.xml
> > > > > > >> as you requested.
>
> > > > > > >> At the moment anyone with applications listed will find that 
> > > > > > >> they can
> > > > > > >> specify the versionCode in the details about a 
> > > > > > >> releasedversion(not the
> > > > > > >> application details page, the release details page).
>
> > > > > > >> I am working on code to pull the information from the manifest 
> > > > > > >> included
> > > > > > >> in the apk, but this is a little way off yet.
>
> > > > > > >> Thanks for making this available.
>
> > > > > > >> Al.
>
> > > > > > >>friedgerwrote:
>
> > > > > > >>> Hi,
>
> > > > > > >>> we are preparing the OI Updater that checks a given info file 
> > > > > > >>> for new
> > > > > > >>> updates as described in the Android documentation.
>
> > > > > > >>> You can find the current build (rev 1284) at
> > > > > > >>>http://openintents.googlecode.com/files/UpdateChecker.apk
>
> > > > > > >>> In order to initiate theupdatecheckyou just have to add the
> > > > > > >>> following code:
>
> > > > > > >>>            Intentservice = newIntent();
> > > > > > >>>            service.s

[android-developers] Android Icon Style .psd Kit

2008-11-10 Thread Yuri

Hi All,

I think it I would be excellent if Android developers team will
develop and upload Icon Style template for the applications in .psd
format.

Any ideas about that?

Thanks,
Yuri

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 while connecting to ms sql server 2005 database

2008-11-10 Thread Nataraaj

Hello guys,

  I tried to connect to mssqlserver from android application using
java.sql.*;.
When i tried to run it gives "java.util.MissingResourceException"
error.
Help me to run this program.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] XMPP with Smack and SDK 1.0 success anyone?

2008-11-10 Thread Peter Neubauer

Hi there,
it seems Smack GTalk conenctions are not working anymore due to
certificate problems. Has anyone been able to successfully get XMPP
running again on the SDK 1.0?

Thanks for any hints!

/peter

http://www.oredev.se - Be there or be gone.

GTalk:neubauer.peter
Skypepeter.neubauer
ICQ18762544
Phone   +46704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: no callback to onItemClick() on clicking my ListView

2008-11-10 Thread Sunit Katkar
If I am not mistaken, and I have not yet tried what you are trying to
accomplish, then you should attach a click listener for the button and not
the list. This is because, like in Java Swing or Windows MFC, the click
event occurs on the button. i.e. the event source is the button and not the
list.

On Sun, Nov 9, 2008 at 10:18 PM, Nickname <[EMAIL PROTECTED]> wrote:

>
> One of my ListView's has a Button view on every item's LinearLayout.
>
> I just found that clicking on any item of the ListView does not
> callback its onItemClick(), which is set thru
> ListView.setOnItemClickListener().
>
> If I remove the Button view from item layout, callback is ok then.
>
> Can anybody advise me how I get the callback on the ListView with
> Button?
>
> Thanks.
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Need help using hat to track down memory usage

2008-11-10 Thread miguelo

Hello, I've tried with other memory analyzers like JProfiler and
Eclipse Memory Analyzer without success :-(.

The error was the same, or similar in both cases :-(

Memory Analyzer log:

!ENTRY org.eclipse.mat.parser 4 0 2008-11-07 18:53:36.265
!MESSAGE Error opening heap dump
!SUBENTRY 1 org.eclipse.mat.parser 4 0 2008-11-07 18:53:36.265
!MESSAGE Not a HPROF heap dump
!STACK 0
java.io.IOException: Not a HPROF heap dump
at
org.eclipse.mat.hprof.AbstractParser.readVersion(AbstractParser.java:
122)
at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:56)
at
org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:
65)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:
183)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:
101)
at
org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:
87)
at
org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:
54)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.mat.ui 4 0 2008-11-07 18:53:36.265
!MESSAGE Error opening heap dump 'pid194.hprof'. Check log for
details.
!STACK 0
org.eclipse.mat.SnapshotException: Error opening heap dump
'pid194.hprof'. Check log for details.
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:
217)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:
101)
at
org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:
87)
at
org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:
54)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Please, someone can help us?

Miguel.

On Nov 7, 1:24 am, fadden <[EMAIL PROTECTED]> wrote:
> On Nov 5, 11:12 am, Disco Stu 010 <[EMAIL PROTECTED]> wrote:
>
> > java.io.IOException: Version string not recognized at byte 17
> >         at hat.parser.HprofReader.readVersionHeader(HprofReader.java:325)
> >         at hat.parser.HprofReader.read(HprofReader.java:169)
> >         at hat.parser.Reader.readFile(Reader.java:90)
> >         at hat.Main.main(Main.java:149)
>
> The output isn't compatible.  Unfortunately we were not able to
> include the modified "hat" tool in the 1.0 source release.

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



[android-developers] Html parser

2008-11-10 Thread popo37

Hi,

I would like to parse an HTML page to retrieve a specific element on
it.

Do you know any class/library I could use to achieve that ?

Note : I already know how to connect to the page and retrieve the
html.

Cheers.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] List Views and Scroll Views

2008-11-10 Thread for android
I have a complex layout which has many table rows.Something like this:










 













Say now I want a scrollableView for this and I implement the view like this
:










 












At this point what happens is that i see just 2 rows of the list coming up.

Now the prob i am facing is that if I remove the scroll view the the whole
list appears.

I do know that in the reference documents,we are suggested not to use Scroll
View with a List View.


As per my requirement,i have a list in which we know that say only 5 rows
are displayed.And then i need the user to be able to scroll the other items
which are external to the list.


How do I accomplish this? Or is it not possible task???

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] Downloading File

2008-11-10 Thread Faisal Abid

How would i Go about downloading a file and saving it to the sd card.
I tried doing URL connection and i get the data of the file by how
would i go about saving it now? Is there a better way then URL
connection?

Thanks, Faisal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Unsuccessful Install

2008-11-10 Thread BCatDC

Hi there,

I'm just getting started with android developing. I have a very
frustrating problem. I've worked with samples to do a number of
little .APKs a few different hello worlds. A slightly modded version
of lunar lander. Very basic stuff. They work great in the emulator,
and they seem to export just fine. But then things go south.

I've used my web server to download them over the air. I've transfered
them to the sd card and tried to install them with Apps Installer (by
modmyGphone) It doesn't seem to matter what I do. Every install fails
with the stupid check mark and the words "Unsuccessful Install."
Needless to say I'm very frustrated, I have no idea how to trouble
shoot this and move forward.

FYI I have Unknown Sources checked in my settings. And I've
successfully installed plenty of non market apps both over the air and
off the sd card.

Alright android geniuses thats where I'm at can you help me?

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



[android-developers] Re: MapActivity / MapView causes application to crash at startup

2008-11-10 Thread Frank Trollmann

Hi

You might want to look here:

http://zackola.com/blog/2008/10/26/android-mapview-permissions-and-prerequisites/#comment-227

this site subsumes (hopefully) all permissions and prerequisites
needed for the MapView.

- Frank

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] HTML parser

2008-11-10 Thread popo37

Hi,

I am trying to parse an HTML parse to retrieve a specific element on
the page ?

Could you please tell me which class/library should I use to achieve
that ?

Thank you.

Cheers.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Land Navigation Application development

2008-11-10 Thread Sam M

Grazi.

On Nov 10, 10:45 am, "Jerry Elizondo" <[EMAIL PROTECTED]>
wrote:
> Hello Sam:
>
> Post your request in the beginners' forum. A couple of weeks ago someone at
> that forum was asking for ideas for a project.
>
> Cheers,
>
> Jerry
>
> On Mon, Nov 10, 2008 at 9:36 AM, Sam M <[EMAIL PROTECTED]> wrote:
>
> > I'm sure the paying customers do.  It's just a suggestion, and I
> > didn't know where else online to propose it.  If no one can help,
> > we'll get along with the pencils, paper, protractors, compasses, and
> > pace counts we've been using for decades!  I didn't know what the best
> > place would be to suggest a new idea, and the developers forum seemed
> > like a logical place.  If someone has some free time (which I'm sure
> > many developers probably don't), then it would be useful to us.
> > Obviously this is your business, and don't skip out on paying
> > customers if you don't want to help us.
>
> > On Nov 10, 5:45 am, Christine <[EMAIL PROTECTED]> wrote:
> > > Your project competes with projects from paying customers. Guess which
> > > projects go first.
>
> > > On Nov 10, 4:53 am, Sam M <[EMAIL PROTECTED]> wrote:
>
> > > > Sure they could.  In fact, the Army already uses such navigation
> > > > systems in active duty.  I, however, am a mere officer cadet with a
> > > > sweet new G1 that I'm trying to use to make my life easier.  Most of
> > > > our equipment is outdated, second hand, or borrowed.  We're definitely
> > > > not getting advanced GPS navigation systems from USACC.  So if I can
> > > > find a way to use my G1 in STX lanes and LandNav, then that would be
> > > > great!
>
> > > > On Nov 9, 8:24 pm, Eric Mill <[EMAIL PROTECTED]> wrote:
>
> > > > > If you think many in the army would find it useful, I bet you could
> > > > > find someone or some office who could hire someone to do it.
>
> > > > > -- Eric
>
> > > > > On Nov 8, 1:15 pm, Sam M <[EMAIL PROTECTED]> wrote:
>
> > > > > > I'm a US Army Officer Cadet, not a developer.  However, I've seen
> > > > > > things like the Radar application and know that you can do amazing
> > > > > > things with GPS functionality.
>
> > > > > > Part of our training in the Army requires us to do land navigation,
> > > > > > where we use 8 digit grid coordinates (e.g. EG12345678) to navigate
> > > > > > between two points using a distance (e.g. 1650 meters) and
> > direction
> > > > > > in degrees (e.g. 273*).
>
> > > > > > It would be incredibly useful is someone could develop an
> > application
> > > > > > in which I could enter a distance and direction (e.g 1650 meters at
> > > > > > 273*) that would give me the range remaining and notify me when I'm
> > > > > > drifting off azimuth (ideally establishing a tolerance that
> > notifies
> > > > > > me when my azimuth variation would result in my being more than 15
> > > > > > meters from my target destination).  Perhaps the application could
> > > > > > even generate and store the map location that's specified by the
> > > > > > distance and direction and automatically recalculate a new distance
> > > > > > and direction in the event that I become lost or disoriented or
> > need
> > > > > > to navigate to a new waypoint.
>
> > > > > > Please let me know if you could develop such an application!  I
> > know
> > > > > > that thousands of cadets and soldiers would find this application
> > > > > > incredibly useful!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Developer discount program

2008-11-10 Thread Mark Murphy

John Gruenenfelder wrote:
> Will there be any sort of hardware discount program available to
> developers?  

That would be a question for hardware manufacturers or mobile carriers, 
as they're the ones selling hardware

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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



[android-developers] Brazillian developer

2008-11-10 Thread amaral

I would like to join the community of developers.
I am fascinated with OS Android.
I can contribute a lot with the exchange of experience.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Enabling GPS

2008-11-10 Thread Waterflea

Does anyone know how to turn on and off the GPS radio (in the G1)?
I've looked everywhere. The 'Toggle Settings' app in the Market can do
it but I don't know how.

Any ideas?
Keith

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Enabling GPS

2008-11-10 Thread Mark Murphy

Waterflea wrote:
> Does anyone know how to turn on and off the GPS radio (in the G1)?
> I've looked everywhere. The 'Toggle Settings' app in the Market can do
> it but I don't know how.

Settings > Security & Location > Enable GPS Satellites

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.4 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: Land Navigation Application development

2008-11-10 Thread Sam M

I'm sure the paying customers do.  It's just a suggestion, and I
didn't know where else online to propose it.  If no one can help,
we'll get along with the pencils, paper, protractors, compasses, and
pace counts we've been using for decades!  I didn't know what the best
place would be to suggest a new idea, and the developers forum seemed
like a logical place.  If someone has some free time (which I'm sure
many developers probably don't), then it would be useful to us.
Obviously this is your business, and don't skip out on paying
customers if you don't want to help us.

On Nov 10, 5:45 am, Christine <[EMAIL PROTECTED]> wrote:
> Your project competes with projects from paying customers. Guess which
> projects go first.
>
> On Nov 10, 4:53 am, Sam M <[EMAIL PROTECTED]> wrote:
>
> > Sure they could.  In fact, the Army already uses such navigation
> > systems in active duty.  I, however, am a mere officer cadet with a
> > sweet new G1 that I'm trying to use to make my life easier.  Most of
> > our equipment is outdated, second hand, or borrowed.  We're definitely
> > not getting advanced GPS navigation systems from USACC.  So if I can
> > find a way to use my G1 in STX lanes and LandNav, then that would be
> > great!
>
> > On Nov 9, 8:24 pm, Eric Mill <[EMAIL PROTECTED]> wrote:
>
> > > If you think many in the army would find it useful, I bet you could
> > > find someone or some office who could hire someone to do it.
>
> > > -- Eric
>
> > > On Nov 8, 1:15 pm, Sam M <[EMAIL PROTECTED]> wrote:
>
> > > > I'm a US Army Officer Cadet, not a developer.  However, I've seen
> > > > things like the Radar application and know that you can do amazing
> > > > things with GPS functionality.
>
> > > > Part of our training in the Army requires us to do land navigation,
> > > > where we use 8 digit grid coordinates (e.g. EG12345678) to navigate
> > > > between two points using a distance (e.g. 1650 meters) and direction
> > > > in degrees (e.g. 273*).
>
> > > > It would be incredibly useful is someone could develop an application
> > > > in which I could enter a distance and direction (e.g 1650 meters at
> > > > 273*) that would give me the range remaining and notify me when I'm
> > > > drifting off azimuth (ideally establishing a tolerance that notifies
> > > > me when my azimuth variation would result in my being more than 15
> > > > meters from my target destination).  Perhaps the application could
> > > > even generate and store the map location that's specified by the
> > > > distance and direction and automatically recalculate a new distance
> > > > and direction in the event that I become lost or disoriented or need
> > > > to navigate to a new waypoint.
>
> > > > Please let me know if you could develop such an application!  I know
> > > > that thousands of cadets and soldiers would find this application
> > > > incredibly useful!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] RingBack Indications

2008-11-10 Thread Anil.

Hi,

   When is the traffic channel allocated and audio started in the
scenario of MO call?

How can we handle RingBack Indication from the Network during
Alterting according to specfication 3GPP 24.008? Do we have such a
support in Android SDK to inform applications?

If yes, please provide relavant documentation as well.

Thanks and Regards,
Anil.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: best way for a service to send a notice to an activity?

2008-11-10 Thread friedger

Have a look at the Api Demo and check the RemoteService example,
especially RemoteServiceCallback.
I would say that 1.) is the appropriate solution: Activity A binds to
S (and registeres the call back). Then A gets updates when available
through callback.

Friedger

On 9 Nov., 05:11, Don Park <[EMAIL PROTECTED]> wrote:
> Activity A is able to bind to service S and use the AIDL to make calls
> from A to S.
>
> Whats the best way for S to send a notice to A?
>
> It seems there are three possible approaches:
> 1. AIDL for an activity (im not sure if thats possible), then S will
> bind to A (when A is active).
> 2. send an android.os.Message from S to A
> 3. send an Intent from S to A
>
> Any or all of these options might be invalid, I though I would ask
> here before exploring each one.
>
> if it helps to think in specific terms about this application: the
> service gets GPS updates and records them. If the Activity is running
> (its a MapActivity), the map should recenter when the service receives
> a new update.
>
> Don
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting user's phone number

2008-11-10 Thread ole!

Fixed for Problem!!

I called T-Mobile customer support and got Ariel (Albuquerque office)
She did an OTA (Over-the-air) to my phone that downloaded my cell
number onto the SIM card.
Then she had me power cycle.
It Worked!!

Olaf



On Nov 10, 9:01 am, "ole!" <[EMAIL PROTECTED]> wrote:
> No such luck for me...
> I think I'll try to call T-Mobile and see what they say.
>
> I'l let you all know if I find something.
>
> Olaf
>
> On Nov 8, 4:24 pm, Mark Robinton <[EMAIL PROTECTED]> wrote:
>
> > My number was coming up blank as well but a full power cycle of the
> > phone solved it.
>
> > Mark
>
> > On Nov 8, 12:01 pm, "ole!" <[EMAIL PROTECTED]> wrote:
>
> > > I also have the same problem although my number is blank.
> > > When I look at my phone number in the phone status settings, it is
> > > also blank.
>
> > > Does the Sum card have the phone number? and is Android failing to
> > > read it properly?
>
> > > Anyone know what is going on?
>
> > > On Oct 23, 3:28 pm, Danny <[EMAIL PROTECTED]> wrote:
>
> > > > I am trying to get the user'sphonenumber to use as UID and it seems
> > > > to work in the emulator but not in the actual device, is it a bug or
> > > > am I doing something wrong? My piece of code is here...
>
> > > >                                 TelephonyManager mTelephonyMgr = 
> > > > (TelephonyManager)
> > > > getSystemService(Context.TELEPHONY_SERVICE);
> > > >                                 String phoneNum = 
> > > > mTelephonyMgr.getLine1Number();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Where do you report email app bugs?...

2008-11-10 Thread JLT

I'm getting the email application to crash whenever I attempt to
configure it with a secure IMAP on specific port number. Where do I
report this bug? 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] Re: Getting user's phone number

2008-11-10 Thread ole!

No such luck for me...
I think I'll try to call T-Mobile and see what they say.

I'l let you all know if I find something.

Olaf


On Nov 8, 4:24 pm, Mark Robinton <[EMAIL PROTECTED]> wrote:
> My number was coming up blank as well but a full power cycle of the
> phone solved it.
>
> Mark
>
> On Nov 8, 12:01 pm, "ole!" <[EMAIL PROTECTED]> wrote:
>
> > I also have the same problem although my number is blank.
> > When I look at my phone number in the phone status settings, it is
> > also blank.
>
> > Does the Sum card have the phone number? and is Android failing to
> > read it properly?
>
> > Anyone know what is going on?
>
> > On Oct 23, 3:28 pm, Danny <[EMAIL PROTECTED]> wrote:
>
> > > I am trying to get the user'sphonenumber to use as UID and it seems
> > > to work in the emulator but not in the actual device, is it a bug or
> > > am I doing something wrong? My piece of code is here...
>
> > >                                 TelephonyManager mTelephonyMgr = 
> > > (TelephonyManager)
> > > getSystemService(Context.TELEPHONY_SERVICE);
> > >                                 String phoneNum = 
> > > mTelephonyMgr.getLine1Number();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] GPRS in my Android doesn't work .....

2008-11-10 Thread Wang Xiaoguang
I have successfully created a GPRS connection to my ISP,

# busybox ifconfig ppp0
ppp0  Link encap:Point-to-Point Protocol
  inet addr:10.8.232.45  P-t-P:10.8.232.45  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  RX packets:11 errors:1 dropped:0 overruns:0 frame:0
  TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3
  RX bytes:510 (510.0 B)  TX bytes:1386 (1.3 KiB)

# busybox route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
default 10.8.232.45 0.0.0.0 UG0  00 ppp0


But I can not connect to remote hosts, eg:
busybox wget http://202.108.22.5/ &
(Never succeed)

When I am trying to make a TCP connection, both the "RX packets" and "TX
packets" of ppp0 increases.


I have tried these commands in my Linux on PC and they worked correctly.

How can I get GPRS worked in my Android ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] how to generate user defined events and handle them.

2008-11-10 Thread Prabhakar

Hi All,
I would like to know, how do i  generate user defined events and how
to handle them?


Thanks and Regards,

K.Prabhakar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Executing ON Target

2008-11-10 Thread Sunit Katkar
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
You can debug your app on the real G1 phone without creating a signed jar,
etc. Follow instructions at the given link.

- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials.



On Sun, Nov 9, 2008 at 9:29 PM, sudheer <[EMAIL PROTECTED]> wrote:

>
> Hello All
> I have an application developed using emulator. I want to run this
> application on G1 now. how should I go about it?
> is there any thing that I need to change apart from the instructions I
> see in sdk reference documents?
> Please advise.
>
> Best Regards,
> Sudheer
>
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: no callback to onItemClick() on clicking my ListView

2008-11-10 Thread Romain Guy

If you put a focusable View inside a list item, then the list item
will not be clickable. You would have to set a click listener on the
button for instance.

On Sun, Nov 9, 2008 at 10:18 PM, Nickname <[EMAIL PROTECTED]> wrote:
>
> One of my ListView's has a Button view on every item's LinearLayout.
>
> I just found that clicking on any item of the ListView does not
> callback its onItemClick(), which is set thru
> ListView.setOnItemClickListener().
>
> If I remove the Button view from item layout, callback is ok then.
>
> Can anybody advise me how I get the callback on the ListView with
> Button?
>
> Thanks.
> >
>



-- 
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: Executing ON Target

2008-11-10 Thread Jon Webb

You can install the signed app directly over the USB using adb. See
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware.
This also allows you to execute in debug mode, etc.
-- Jon Webb

On Nov 10, 12:31 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> http://code.google.com/android/intro/develop-and-debug.html#developin...
> You can debug your app on the real G1 phone without creating a signed jar,
> etc. Follow instructions at the given link.
>
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials.
>
> On Sun, Nov 9, 2008 at 9:29 PM, sudheer <[EMAIL PROTECTED]> wrote:
>
> > Hello All
> > I have an application developed using emulator. I want to run this
> > application on G1 now. how should I go about it?
> > is there any thing that I need to change apart from the instructions I
> > see in sdk reference documents?
> > Please advise.
>
> > Best Regards,
> > Sudheer
>
> --
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Developer discount program

2008-11-10 Thread John Gruenenfelder

Will there be any sort of hardware discount program available to
developers?  When I started Palm development back in 2000 I was able
to get a small to moderate discount on a Palm Vx.  I would certainly
like to see something like that for Android.

I haven't seen any mention of it in the Android pages/docs I've read
so far and since the software/hardware companies are separate in this
case (unlike Palm in 2000), I'm unsure of where I should direct my
question.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Multicast Support

2008-11-10 Thread Andrea

Hi all,
news on multicast support?
tnks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 Icon Style .psd Kit

2008-11-10 Thread Yuri

Hi All,

I think it I would be excellent if Android developers team will
develop and upload Icon Style template for the applications in .psd
format.

Any ideas about that?

Thanks,
Yuri


Here is an example for iPhone:
iPhone Icon Style .psd Kit
http://www.keepthewebweird.com/iphone-icon-psd-template/

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

2008-11-10 Thread Anil.

Hi,

 I would like to download the Latest RILD, Reference Vendor RIL
implementations and Phone application source code from Android Home
page.

Can you please provide me the detailed steps or direct link and
provide the overview of the code structure?

Thanks and regards,
Anil.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: PC Crashing

2008-11-10 Thread Wang Xiaoguang
It seems your PC's problem, eg: hardware error, OS broken, etc.
Maybe the best way it is to try in another computer, or reinstall your
Windows.

On Mon, Nov 10, 2008 at 10:55 PM, dave.marsden <
[EMAIL PROTECTED]> wrote:

>
> I've built a little test app in eclipse, but I now want to test it on
> the G1 (works fine on the emulator) however whenever I try to run it
> on the G1 from eclipse, or install it onto the G1 through ADB the PC
> just reboots. I'm using XP btw.
>
> Anybody able to help?
>
> Dave.
> >
>

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



[android-developers] how to generate user defined events and thier handlers?

2008-11-10 Thread Prabhakar

Hi All,
I would like to know, how do i  generate user defined events and how
do i handle them?


Thanks and Regards,

K.Prabhakar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Implementing Google Finance Search

2008-11-10 Thread Rohit_P

Hi,

Is it possible to use the 'Google Finance Search' in our Android App?
I am basically looking for a way to put in a 'Company Name' and it
should return the 'Stock Quote' suggestions similar to the search
field in the Google Finance web page.

I started looking at the Android Search examples code, but I am not
finding a way to implement it.

Any suggestions will be highly appreciated.

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] Pay app support?

2008-11-10 Thread Robert Green

I heard that google is going to support charging for apps starting in
Q1 2009.  Is this correct and does anyone have details on how the
royalty/revenue model is going to work?  I'd like to get some numbers
together so that I can plan out a bigger app than I've done in the
past.

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] Globabl Orientation Change

2008-11-10 Thread Alex

Hi All,

Basically what I am trying to do is make a service that would detect
changes in physical orientation and change the software's orientation
accordingly.

I can't seem to be able to figure out how to change "global"
orientation, if you will.

Basically I'm looking for the same effect as opening the keyboard has.

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); <-
that seems to only work for the specific activity- which is not the
point.

http://www.anddev.org/rotate_screen_from_code_change_screen_orientation-t2687.html
<-that link seems to talk about what I need but it uses IWindowManager
which seems to not exist in SDK 1.0.

Thank you in advance.
Alex

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Unsuccessful Install

2008-11-10 Thread mitush

Have you done 
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
?

On Nov 9, 10:57 pm, BCatDC <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm just getting started with android developing. I have a very
> frustrating problem. I've worked with samples to do a number of
> little .APKs a few different hello worlds. A slightly modded version
> of lunar lander. Very basic stuff. They work great in the emulator,
> and they seem to export just fine. But then things go south.
>
> I've used my web server to download them over the air. I've transfered
> them to the sd card and tried to install them with Apps Installer (by
> modmyGphone) It doesn't seem to matter what I do. Every install fails
> with the stupid check mark and the words "Unsuccessful Install."
> Needless to say I'm very frustrated, I have no idea how to trouble
> shoot this and move forward.
>
> FYI I have Unknown Sources checked in my settings. And I've
> successfully installed plenty of non market apps both over the air and
> off the sd card.
>
> Alright android geniuses thats where I'm at can you help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Nullpointer ......Stack overflow, expanding

2008-11-10 Thread for android
Any help??

On Wed, Nov 5, 2008 at 2:03 PM, for android <[EMAIL PROTECTED]> wrote:

> So how exactly do I decide that the hierarchy is very deep or not? is it
> something quantifiable?
>
>
> Thanks
>
>
>
> On Wed, Nov 5, 2008 at 1:35 PM, hackbod <[EMAIL PROTECTED]> wrote:
>
>>
>> On Nov 4, 8:06 pm, "for android" <[EMAIL PROTECTED]> wrote:
>> > Also i would like to know what you mean by "the view heirarchy is too
>> > big"..I have assumed that the view heirarchy can any be as complex as it
>> can
>> > get.Is it a fair assumption.
>>
>> No, calls go down the view hierarchy, so a very deep hierarchy can
>> overflow the stack.  You also want to keep your hierarchy as simple as
>> possible just for plain performance reasons.
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Land Navigation Application development

2008-11-10 Thread Jerry Elizondo
Hello Sam:

Post your request in the beginners' forum. A couple of weeks ago someone at
that forum was asking for ideas for a project.

Cheers,

Jerry


On Mon, Nov 10, 2008 at 9:36 AM, Sam M <[EMAIL PROTECTED]> wrote:

>
> I'm sure the paying customers do.  It's just a suggestion, and I
> didn't know where else online to propose it.  If no one can help,
> we'll get along with the pencils, paper, protractors, compasses, and
> pace counts we've been using for decades!  I didn't know what the best
> place would be to suggest a new idea, and the developers forum seemed
> like a logical place.  If someone has some free time (which I'm sure
> many developers probably don't), then it would be useful to us.
> Obviously this is your business, and don't skip out on paying
> customers if you don't want to help us.
>
> On Nov 10, 5:45 am, Christine <[EMAIL PROTECTED]> wrote:
> > Your project competes with projects from paying customers. Guess which
> > projects go first.
> >
> > On Nov 10, 4:53 am, Sam M <[EMAIL PROTECTED]> wrote:
> >
> > > Sure they could.  In fact, the Army already uses such navigation
> > > systems in active duty.  I, however, am a mere officer cadet with a
> > > sweet new G1 that I'm trying to use to make my life easier.  Most of
> > > our equipment is outdated, second hand, or borrowed.  We're definitely
> > > not getting advanced GPS navigation systems from USACC.  So if I can
> > > find a way to use my G1 in STX lanes and LandNav, then that would be
> > > great!
> >
> > > On Nov 9, 8:24 pm, Eric Mill <[EMAIL PROTECTED]> wrote:
> >
> > > > If you think many in the army would find it useful, I bet you could
> > > > find someone or some office who could hire someone to do it.
> >
> > > > -- Eric
> >
> > > > On Nov 8, 1:15 pm, Sam M <[EMAIL PROTECTED]> wrote:
> >
> > > > > I'm a US Army Officer Cadet, not a developer.  However, I've seen
> > > > > things like the Radar application and know that you can do amazing
> > > > > things with GPS functionality.
> >
> > > > > Part of our training in the Army requires us to do land navigation,
> > > > > where we use 8 digit grid coordinates (e.g. EG12345678) to navigate
> > > > > between two points using a distance (e.g. 1650 meters) and
> direction
> > > > > in degrees (e.g. 273*).
> >
> > > > > It would be incredibly useful is someone could develop an
> application
> > > > > in which I could enter a distance and direction (e.g 1650 meters at
> > > > > 273*) that would give me the range remaining and notify me when I'm
> > > > > drifting off azimuth (ideally establishing a tolerance that
> notifies
> > > > > me when my azimuth variation would result in my being more than 15
> > > > > meters from my target destination).  Perhaps the application could
> > > > > even generate and store the map location that's specified by the
> > > > > distance and direction and automatically recalculate a new distance
> > > > > and direction in the event that I become lost or disoriented or
> need
> > > > > to navigate to a new waypoint.
> >
> > > > > Please let me know if you could develop such an application!  I
> know
> > > > > that thousands of cadets and soldiers would find this application
> > > > > incredibly useful!
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Pre settings for each application

2008-11-10 Thread Michael

Look in the SDK documentation on http://code.google.com/android ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] adding OGC-compliant WMS map services to MapView

2008-11-10 Thread diatom

Hello,

Is there a way to add a WMS map service to the MapView object?

If so, can you provide direction or sample code on how to do this?

Thanks,
Clint

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 while connecting to ms sql server 2005 database

2008-11-10 Thread Michael

Maybe you could provide some sample code so we can figure out what
you're doing?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 OGC-compliant WMS map services to MapView

2008-11-10 Thread Ludwig
I have implemented a simple WMS client for Android, it is not difficult:
projections aside, you can simply specify the required coordinates as input
to the WMS service and then overlay the image: all the work is done on the
WMS server.I have some more info (not complete, too lazy) here:
http://androidgps.blogspot.com/2008/09/simple-wms-client-for-android.html as
well as some of the newer entries.

HTH

Ludwig

2008/11/9 diatom <[EMAIL PROTECTED]>

>
> Hello,
>
> Is there a way to add a WMS map service to the MapView object?
>
> If so, can you provide direction or sample code on how to do this?
>
> Thanks,
> Clint
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] how to add other languages to g1

2008-11-10 Thread tupac

hi i have problem with the phone it dose not read arabic  or other
languages

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Pre settings for each application

2008-11-10 Thread yasmin afrose
Hi,

Thanks for your reply.

Please can you tell some example \ url...

It will help me to get the concept about SharedPreferences & I'm
able achieve the task...

Thanks Again!!!
Yasmin

On Mon, Nov 10, 2008 at 4:37 PM, Christine <[EMAIL PROTECTED]>wrote:

>
> use SharedPreferences.
>
> On Nov 10, 11:11 am, AndroidKid <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've done one application. it will play a "Airtel" song if the mobile
> > receives SMS.
> >
> > I would like to allow the user to assign any song as per their needs.
> >
> > So, I want to make this as pre-setting. Based on the selection, the
> > song will be played if the SMS reaches the mobile.
> >
> > Now I've done the application as, once SMS received it will navigate
> > to Music Droid application, then the song will be played based on
> > selection. but if the song selection done previously based on pre
> > setting. It much more better.
> >
> > Any kind of idea will be appreciated.
> >
> > I'm waiting here for your response!!! I've tried lot but I can't
> > achieve the task... so please.. help me...
> >
> > Thanks for your time!!!
> >
> > Thanks Again!!!
> > Yasmin.
> >
>


-- 
Everything is Possible For U only

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Cookie not enabled while using HttpPOST

2008-11-10 Thread Michael


Looking at my own code that does exactly this, I notice that I run
client.getCookieStore().getCookies() *before* I make the login request
(via HTTP POST).  Perhaps you need to initialize the cookie store
first?

Otherwise, I'm doing pretty much as you're doing:

DefaultHttpClient client = new DefaultHttpClient();
List cookies = client.getCookieStore().getCookies();

HttpPost request = new HttpPost(new URI(myUrl));
// add stuff to the request, whatever's needed

HttpResponse response = client.execute(request);
// test the response here

if (cookies.isEmpty()) {
   // didn't get cookies
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] placing the image on listbox on right side

2008-11-10 Thread venkat

Hi All

I am new to the Andoid.how to place the image on right
side of the list box, possibility is tere or not
Thanks in advance

thanks
venkat

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



[android-developers] Re: Unsuccessful Install

2008-11-10 Thread atrus123

I'm guessing you need to sign your application.

This is the best description I've found on how to do this:

http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html


On Nov 9, 11:57 pm, BCatDC <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm just getting started with android developing. I have a very
> frustrating problem. I've worked with samples to do a number of
> little .APKs a few different hello worlds. A slightly modded version
> of lunar lander. Very basic stuff. They work great in the emulator,
> and they seem to export just fine. But then things go south.
>
> I've used my web server to download them over the air. I've transfered
> them to the sd card and tried to install them with Apps Installer (by
> modmyGphone) It doesn't seem to matter what I do. Every install fails
> with the stupid check mark and the words "Unsuccessful Install."
> Needless to say I'm very frustrated, I have no idea how to trouble
> shoot this and move forward.
>
> FYI I have Unknown Sources checked in my settings. And I've
> successfully installed plenty of non market apps both over the air and
> off the sd card.
>
> Alright android geniuses thats where I'm at can you help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Cookie not enabled while using HttpPOST

2008-11-10 Thread Christine

I think you have to set the default cookie policy. HttpClient does all
cookie handling automatically - depending on the policy of course.
There's helpful examples on the website of the Apache httpClient
project.

On Nov 10, 6:37 pm, Michael <[EMAIL PROTECTED]> wrote:
> Looking at my own code that does exactly this, I notice that I run
> client.getCookieStore().getCookies() *before* I make the login request
> (via HTTP POST).  Perhaps you need to initialize the cookie store
> first?
>
> Otherwise, I'm doing pretty much as you're doing:
>
> DefaultHttpClient client = new DefaultHttpClient();
> List cookies = client.getCookieStore().getCookies();
>
> HttpPost request = new HttpPost(new URI(myUrl));
> // add stuff to the request, whatever's needed
>
> HttpResponse response = client.execute(request);
> // test the response here
>
> if (cookies.isEmpty()) {
>    // didn't get cookies
>
> }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Unsuccessful Install

2008-11-10 Thread atrus123

BTW -- it is possible to install something on your G1 without signing
using Eclipse or the adb shell application.  You can find adb from the
command line under tools.  Try ./adb install myapp.apk.

On Nov 10, 12:27 pm, atrus123 <[EMAIL PROTECTED]> wrote:
> I'm guessing you need to sign your application.
>
> This is the best description I've found on how to do this:
>
> http://www.anddev.org/signing_your_apk-application_for_release_keytoo...
>
> On Nov 9, 11:57 pm, BCatDC <[EMAIL PROTECTED]> wrote:
>
> > Hi there,
>
> > I'm just getting started with android developing. I have a very
> > frustrating problem. I've worked with samples to do a number of
> > little .APKs a few different hello worlds. A slightly modded version
> > of lunar lander. Very basic stuff. They work great in the emulator,
> > and they seem to export just fine. But then things go south.
>
> > I've used my web server to download them over the air. I've transfered
> > them to the sd card and tried to install them with Apps Installer (by
> > modmyGphone) It doesn't seem to matter what I do. Every install fails
> > with the stupid check mark and the words "Unsuccessful Install."
> > Needless to say I'm very frustrated, I have no idea how to trouble
> > shoot this and move forward.
>
> > FYI I have Unknown Sources checked in my settings. And I've
> > successfully installed plenty of non market apps both over the air and
> > off the sd card.
>
> > Alright android geniuses thats where I'm at can you help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Notifications

2008-11-10 Thread Christine

I use a notification to relaunch or go back to the app from an icon in
the status bar. Works fine. What I can't find is how to get the info
in the Notification back. There's a PendingIntent that contains an
Intent, I'd like to get that Intent back in order to decide what the
app is supposed to do. Right now I have a workaround, I'd like to know
how to do this properly.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Unsuccessful Install

2008-11-10 Thread BCatDC

Hey there. So I've been futzing around all day with eclipse getting
things set up, trying different samples, doing a bunch of different
hello world tutorials... and every .apk that I output (no matter how
good they look in emulator) (no matter whether I download them off
wifi, 3g or USB) gets me an "Unsuccessful Install" on my G1.

Other people apks work FINE. I'm pulling my hair out and I'm not sure
what I'm doing wrong. I'm a toll novice. But I think I've followed
every step.

I'm a little mystified by the notes about jdk 5 and 6 but some
tutorials don't even mention them, and I'm working with a mac, so it
doesn't look like those are available for me anyway.

My only other thought is that I haven't been signing the apks. Do I
have to that just to check them out on the G-1. Help me. All I want is
hello world on my G-1 and I'm loosing it.

;)

-Ben

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



[android-developers] Re: PC Crashing

2008-11-10 Thread dave.marsden

I'd rather not have to reinstall XP, I've quite abit installed on this
PC.

Is there anyother way of installing the package onto the G1. ADB
detects the device, so it looks likes it is communicating okay.

Wang Xiaoguang wrote:
> It seems your PC's problem, eg: hardware error, OS broken, etc.
> Maybe the best way it is to try in another computer, or reinstall your
> Windows.
>
> On Mon, Nov 10, 2008 at 10:55 PM, dave.marsden <
> [EMAIL PROTECTED]> wrote:
>
> >
> > I've built a little test app in eclipse, but I now want to test it on
> > the G1 (works fine on the emulator) however whenever I try to run it
> > on the G1 from eclipse, or install it onto the G1 through ADB the PC
> > just reboots. I'm using XP btw.
> >
> > Anybody able to help?
> >
> > Dave.
> > >
> >
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notifications

2008-11-10 Thread Mark Murphy

Christine wrote:
> I use a notification to relaunch or go back to the app from an icon in
> the status bar. Works fine. What I can't find is how to get the info
> in the Notification back. There's a PendingIntent that contains an
> Intent, I'd like to get that Intent back in order to decide what the
> app is supposed to do. Right now I have a workaround, I'd like to know
> how to do this properly.

Is it returned by Activity#getIntent()?

Note that I haven't tried that with a Notification-launched activity.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.4 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] whoever wrote the email app for the G1.....

2008-11-10 Thread henchman

I hope they were a student volunteer.
Because if they were paid, Google should get their money back.

It's the absolutly worst attempt at an email application I've ever
seen. And.  I go back to the ZX Spectrum days.

You can'lt even do basic things like select multiple emails for
deletion, or even empty the trashcan. Which makes it completely
useless.

If google wants this platfoem to succeed, I suggest they make sure the
basic necesities are topnotch.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 init

2008-11-10 Thread Kathryn

I'm having the same problem, and I believe it's an issue with port
9418 as I can't telnet into 199.6.1.176 (one of the specified IP's
resulting fron the init command) on this port, but can on port 80.

Can anyone provide any help with attempting git on a port other than
the default of 9418?

Thanks in advance :)

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



[android-developers] Pre settings for each application

2008-11-10 Thread AndroidKid

Hi,

I've done one application. it will play a "Airtel" song if the mobile
receives SMS.

I would like to allow the user to assign any song as per their needs.

So, I want to make this as pre-setting. Based on the selection, the
song will be played if the SMS reaches the mobile.

Now I've done the application as, once SMS received it will navigate
to Music Droid application, then the song will be played based on
selection. but if the song selection done previously based on pre
setting. It much more better.

Any kind of idea will be appreciated.

I'm waiting here for your response!!! I've tried lot but I can't
achieve the task... so please.. help me...

Thanks for your time!!!


Thanks Again!!!
Yasmin.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Pre settings for each application

2008-11-10 Thread Christine

use SharedPreferences.

On Nov 10, 11:11 am, AndroidKid <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've done one application. it will play a "Airtel" song if the mobile
> receives SMS.
>
> I would like to allow the user to assign any song as per their needs.
>
> So, I want to make this as pre-setting. Based on the selection, the
> song will be played if the SMS reaches the mobile.
>
> Now I've done the application as, once SMS received it will navigate
> to Music Droid application, then the song will be played based on
> selection. but if the song selection done previously based on pre
> setting. It much more better.
>
> Any kind of idea will be appreciated.
>
> I'm waiting here for your response!!! I've tried lot but I can't
> achieve the task... so please.. help me...
>
> Thanks for your time!!!
>
> Thanks Again!!!
> Yasmin.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Orientation Sensor yaw values. Is your G1 compass bad?

2008-11-10 Thread mitush

Besides figure eights, this forum thread

http://forums.t-mobile.com/tmbl/board/message?board.id=Android3&thread.id=7341&view=by_date_ascending&page=10

suggests turning G1 screen down and tapping the phone on the back.

This heimlich maneuver worked for me today, my compass is working
again, not sure for how long.

On Nov 8, 12:39 pm, hackbod <[EMAIL PROTECTED]> wrote:
> The compass auto-calibrates itself as it is used, but coming near a
> magnet can uncalibrate it so it won't give good data until getting
> calibrated again.  To help it along, you can hold the phone and move
> it around in figure eights.
>
> That is not a joke. :)
>
> On Nov 6, 11:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I noticed the same thing on mine... It seems like it was accurate at
> > one point, but recently it's not working so well.  Let me know what
> > you find out.
>
> > On Nov 4, 2:06 pm,mitush<[EMAIL PROTECTED]> wrote:
>
> > > I have connected G1 to my PC and Compass (Orienteer) and my app
> > > started to get good and consistent readings from the sensor again.
> > > After I disconnected, Orienteer sort of works (has 360 range), but the
> > > north is off by 0-50 degrees depending on orientation and  a little
> > > jumpy.
>
> > > Might be a battery power issue then. My battery is 97% (immediately
> > > after PC disconnect). Will check Orienteer again later.
>
> > > On Nov 4, 2:29 pm,mitush<[EMAIL PROTECTED]> wrote:
>
> > > > In the process of writing an app for my G1 I think I got stuck with
> > > > similar problem. Running Orienteer application (from the Market)
> > > > confirms that; turning my G1 by 360 degrees while holding it flat, the
> > > > reading on the Orienteercompassgoes between 0 and 90 degrees only.
> > > > The same thing happens when usingcompassview with the maps/street
> > > > view, here I could only get about 90 degrees view angle as well (in
> > > > other words I cannot see other side of the street and other direction
> > > > of the street).
>
> > > > The funny thing is that, in my G1 app I was listening and logging
> > > > SensorManager.SENSOR_ORIENTATION_RAW values and earlier today the
> > > > returned values had the range of 360 degrees, and I have the log file
> > > > to prove it was not a dream :) When I run the same app now, it shows
> > > > limited range values only, consistent with Orienteer . As if something
> > > > got broken between now and few hours ago. I also recall that when I
> > > > triedcompass/map/streetview few days ago, I was able to rotate my
> > > > view without any constraints.
>
> > > > There is not much metal around, I tried changing my location as well.
> > > > For a second, I though it could be the car, which my wife parked
> > > > outside the house an hour ago, but Orienteer shows the same problem
> > > > even 120 ft away in the backyard. I did not drop G1 or did anything of
> > > > that sort.
>
> > > > On Nov 4, 4:01 am, bryan <[EMAIL PROTECTED]> wrote:
>
> > > > > I've been trying to figure out the cause of acompassrelated error
> > > > > for a while. After debugging and standing out in the rain slowly
> > > > > spinning in circles for a while, I finally found out that my device is
> > > > > reporting back yaw values inconsistently.
>
> > > > > For example, the range of offset from magnetic north is +/- 46
> > > > > degrees. The average offset is just under 20 degrees. Depending on how
> > > > > I orient my G1, the error can go to 46 degrees off of magnetic north.
> > > > > Has anyone here experienced similar results when reading yaw from the
> > > > > sensor? I've gotten a number of reports from others complaining about
> > > > > inaccuracy withcompasstype results and am wondering if this is a per
> > > > > phone error or if all of the G1s have poor yaw/orientation sensors.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: repo init

2008-11-10 Thread hackbod

Hi, this discussion would be better done in android-platform.  This
group is for using the SDK.

On Nov 10, 8:37 am, Kathryn <[EMAIL PROTECTED]> wrote:
> I'm having the same problem, and I believe it's an issue with port
> 9418 as I can't telnet into 199.6.1.176 (one of the specified IP's
> resulting fron the init command) on this port, but can on port 80.
>
> Can anyone provide any help with attempting git on a port other than
> the default of 9418?
>
> Thanks in advance :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] "stroke" in a shape layout

2008-11-10 Thread Christine

Is there a special trick to the "stroke" attribute of a shape in an
xml file? It doesn't want to show. Stroke does refer to the width of
the line surrounding the box, doesn't it?

Also, while it's easy to have a button on the left of the screen and a
textview to the right that fills up the remaining space, I can't seem
to find a way to have a button to the right of the screen and have a
TextView fill up the space on the left. I've tried both TableView and
RelativeView with all kinds of attributes. Does anyone know how to do
that?
Thanks in advance.


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



[android-developers] Excessive JNI global references

2008-11-10 Thread ashAndroid

Hi Guys
   I am trying to build build a file download service which makes
makes http connection and
inStream = httpConnection.getInputStream();
outStream = new FileOutputStream(tempFile);
byte buf[] = new byte[58*1024];
do
{

numread = inStream.read(buf, 0, 58*1024);
if (numread == -1)
break;
outStream.write(buf, 0, numread);
}
while (true);

but sometimes it crashes giving error :Excessive JNI global
references: ( Pl. see logs below )

let me know if you have some ideas

--Ash


D/dalvikvm(   53): GC freed 1217 objects / 50416 bytes in 174ms
D/dalvikvm(  440): GREF has increased to 2001
W/dalvikvm(  440): Last 10 entries in JNI global reference table:
W/dalvikvm(  440):  1991: 0x4352afa0 cls=Ljava/lang/ref/WeakReference;
(28 bytes)
W/dalvikvm(  440):  1992: 0x4352b018 cls=Ljava/lang/ref/WeakReference;
(28 bytes)
W/dalvikvm(  440):  1993: 0x4352b8e0 cls=Landroid/database/
ContentObserver$Transport; (28 bytes)
W/dalvikvm(  440):  1994: 0x4352b900 cls=Landroid/database/
CursorToBulkCursorAdaptor; (44 bytes)
W/dalvikvm(  440):  1995: 0x4352b900 cls=Landroid/database/
CursorToBulkCursorAdaptor; (44 bytes)
W/dalvikvm(  440):  1996: 0x4352bb78 cls=Ljava/lang/ref/WeakReference;
(28 bytes)
W/dalvikvm(  440):  1997: 0x4352bbf0 cls=Ljava/lang/ref/WeakReference;
(28 bytes)
W/dalvikvm(  440):  1998: 0x4352c658 cls=Landroid/database/
ContentObserver$Transport; (28 bytes)
W/dalvikvm(  440):  1999: 0x4352c678 cls=Landroid/database/
CursorToBulkCursorAdaptor; (44 bytes)
W/dalvikvm(  440):  2000: 0x4352c678 cls=Landroid/database/
CursorToBulkCursorAdaptor; (44 bytes)
W/dalvikvm(  440): JNI global reference table summary (2001 entries):
W/dalvikvm(  440):53 of Ljava/lang/Class; 164B (42 unique)
W/dalvikvm(  440): 1 of Ljava/lang/String; 28B
W/dalvikvm(  440):   941 of Ljava/lang/ref/WeakReference; 28B (941
unique)
W/dalvikvm(  440):10 of Ljava/lang/ref/WeakReference; 36B (10
unique)
W/dalvikvm(  440): 1 of Ldalvik/system/VMRuntime; 12B
W/dalvikvm(  440): 1 of Landroid/app/ActivityThread
$ProviderRecord; 28B
W/dalvikvm(  440): 1 of Landroid/app/ActivityThread
$ApplicationThread; 28B
W/dalvikvm(  440): 1 of Landroid/content/ContentProvider
$Transport; 28B
W/dalvikvm(  440):   470 of Landroid/database/ContentObserver
$Transport; 28B (470 unique)
W/dalvikvm(  440): 2 of Landroid/database/ContentObserver
$Transport; 36B (2 unique)
W/dalvikvm(  440):   497 of Landroid/database/
CursorToBulkCursorAdaptor; 44B (451 unique)
W/dalvikvm(  440):23 of Landroid/database/
CursorToBulkCursorAdaptor; 52B (21 unique)
W/dalvikvm(  440): Memory held directly by native code is 67888 bytes
E/dalvikvm(  440): Excessive JNI global references (2001)
E/dalvikvm(  440): VM aborting
I/DEBUG   (   21): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Thread instead of Service, is it safe ?

2008-11-10 Thread hackbod

Correct, use a Service, your process can be killed any time after
Activity.onPause() returns if there isn't another Activity, Service,
etc active in it.

On Nov 10, 1:26 am, Derek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've an Activity A that starts a Thread T which download a file
> through HTTP. It works fine. If I close my Activity (back button)
> while downloading, it is destroyed (onDestroy called) but download
> Thread still continue and download is completed fine.
>
> For testing purposes I've moved my Thread T into a Service and my
> Activity starts the Service now. It's a little bit complex to write
> (for callbacks) but it works fine too.
>
> What it the best approach ? From the documentation I think Service
> seems better to make sure the download Thread will continue even if
> the Activity is destroyed ?
>
> 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: List Views and Scroll Views

2008-11-10 Thread Sunit Katkar
Have you set the attributes for your ScrollView as 'fill_parent' or
'wrap_content' ?

On Mon, Nov 10, 2008 at 4:28 AM, for android <[EMAIL PROTECTED]> wrote:

> I have a complex layout which has many table rows.Something like this:
>
>
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
> Say now I want a scrollableView for this and I implement the view like this
> :
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> At this point what happens is that i see just 2 rows of the list coming up.
>
> Now the prob i am facing is that if I remove the scroll view the the whole
> list appears.
>
> I do know that in the reference documents,we are suggested not to use
> Scroll View with a List View.
>
>
> As per my requirement,i have a list in which we know that say only 5 rows
> are displayed.And then i need the user to be able to scroll the other items
> which are external to the list.
>
>
> How do I accomplish this? Or is it not possible task???
>
> Thanks
>
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Html parser

2008-11-10 Thread Mark Murphy

popo37 wrote:
> I would like to parse an HTML page to retrieve a specific element on
> it.
> 
> Do you know any class/library I could use to achieve that ?

Here is a list of a dozen or so open source ones:

http://java-source.net/open-source/html-parsers

They may require fixes to work on Android.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.4 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] GMail App Suggestion

2008-11-10 Thread Wael

Hey guys,

I have a small suggestion for the GMail App on Android:

Whenever I'm reading an email that can be scrolled through
horizontally and I reach the far right side of the email, I find
myself having to scroll back to the far left in order to use one of
the 6 buttons available for functionality (Reply, Reply to all,
Forward, Archive, Labels, Delete).

A better implementation would be to make these 6 buttons fixed on the
bottom of the email so that no matter which side I am at the end I can
use them without having to scroll back to the left. This is possible
since there is nothing to the right of these 6 buttons, it's just a
waste of space. So making them move with the screen when scrolling
left and right is doable.

Hope this finds its way in an update!

Wael

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 how to handle dial in and dial out events...

2008-11-10 Thread Bruno Z. Pereira


Hi,

Does anyone has an example already done on how can a dial in / dial out 
event be handled ??
Like catch the number dialed or the incoming number ?

Thanks

 ..
|  _.-'|'-._   |
| .__.|||  |
| |_.-'|'-._|  |
| '--'|||  |
| '--'|_.-'`'-._|  |
| '--'  `  |
 '' Bruno Zouein Pereira - Solution Developer
  Tel.: 3254-6048 / 8954-3964
  MSN.: [EMAIL PROTECTED]
  Mensagem urgente: [EMAIL PROTECTED]



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Land Navigation Application development

2008-11-10 Thread Christine

Your project competes with projects from paying customers. Guess which
projects go first.

On Nov 10, 4:53 am, Sam M <[EMAIL PROTECTED]> wrote:
> Sure they could.  In fact, the Army already uses such navigation
> systems in active duty.  I, however, am a mere officer cadet with a
> sweet new G1 that I'm trying to use to make my life easier.  Most of
> our equipment is outdated, second hand, or borrowed.  We're definitely
> not getting advanced GPS navigation systems from USACC.  So if I can
> find a way to use my G1 in STX lanes and LandNav, then that would be
> great!
>
> On Nov 9, 8:24 pm, Eric Mill <[EMAIL PROTECTED]> wrote:
>
> > If you think many in the army would find it useful, I bet you could
> > find someone or some office who could hire someone to do it.
>
> > -- Eric
>
> > On Nov 8, 1:15 pm, Sam M <[EMAIL PROTECTED]> wrote:
>
> > > I'm a US Army Officer Cadet, not a developer.  However, I've seen
> > > things like the Radar application and know that you can do amazing
> > > things with GPS functionality.
>
> > > Part of our training in the Army requires us to do land navigation,
> > > where we use 8 digit grid coordinates (e.g. EG12345678) to navigate
> > > between two points using a distance (e.g. 1650 meters) and direction
> > > in degrees (e.g. 273*).
>
> > > It would be incredibly useful is someone could develop an application
> > > in which I could enter a distance and direction (e.g 1650 meters at
> > > 273*) that would give me the range remaining and notify me when I'm
> > > drifting off azimuth (ideally establishing a tolerance that notifies
> > > me when my azimuth variation would result in my being more than 15
> > > meters from my target destination).  Perhaps the application could
> > > even generate and store the map location that's specified by the
> > > distance and direction and automatically recalculate a new distance
> > > and direction in the event that I become lost or disoriented or need
> > > to navigate to a new waypoint.
>
> > > Please let me know if you could develop such an application!  I know
> > > that thousands of cadets and soldiers would find this application
> > > incredibly useful!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Excessive JNI global references

2008-11-10 Thread fadden

On Nov 10, 9:55 am, ashAndroid <[EMAIL PROTECTED]> wrote:
> but sometimes it crashes giving error :Excessive JNI global
> references: ( Pl. see logs below )

Ordinarily, objects are discarded when nothing else in the virtual
heap holds a reference to them.  This is a problem for native code,
which can be holding an object reference that isn't visible to the
garbage collector.  JNI allows native code to convert a reference into
a "global" reference, which the garbage collector can see.

To help find memory leaks, a limit is placed on the total number of
global references available to the VM.  (This should only be enabled
on the emulator.)  It looks like some native code is allocating lots
of certain kinds of objects:

> W/dalvikvm(  440): JNI global reference table summary (2001 entries):
> W/dalvikvm(  440):    53 of Ljava/lang/Class; 164B (42 unique)
> W/dalvikvm(  440):     1 of Ljava/lang/String; 28B
> W/dalvikvm(  440):   941 of Ljava/lang/ref/WeakReference; 28B (941unique)
> W/dalvikvm(  440):    10 of Ljava/lang/ref/WeakReference; 36B (10 unique)
> W/dalvikvm(  440):     1 of Ldalvik/system/VMRuntime; 12B
> W/dalvikvm(  440):     1 of Landroid/app/ActivityThread$ProviderRecord; 28B
> W/dalvikvm(  440):     1 of Landroid/app/ActivityThread$ApplicationThread; 28B
> W/dalvikvm(  440):     1 of Landroid/content/ContentProvider$Transport; 28B
> W/dalvikvm(  440):   470 of Landroid/database/ContentObserver$Transport; 28B 
> (470 unique)
> W/dalvikvm(  440):     2 of Landroid/database/ContentObserver$Transport; 36B 
> (2 unique)
> W/dalvikvm(  440):   497 of Landroid/database/CursorToBulkCursorAdaptor; 44B 
> (451 unique)
> W/dalvikvm(  440):    23 of Landroid/database/CursorToBulkCursorAdaptor; 52B 
> (21 unique)
> W/dalvikvm(  440): Memory held directly by native code is 67888 bytes
> E/dalvikvm(  440): Excessive JNI global references (2001)

It may be that some bit of code is failing to close a Cursor.  I don't
see how the code you posted would cause the creation of
ContentObserver objects.

> E/dalvikvm(  440): VM aborting
> I/DEBUG   (   21): *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
> *** ***

The next part of the log includes the native stack trace, showing
where the last gref allocation occurred.  This can sometimes help
determine which bit of code was overdoing it.

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



[android-developers] Need help with Activity stack (How to start a new Activity from an Overlay)

2008-11-10 Thread chris

Hi all

I'm stuck on a tought problem that's been kepeing me busy for a couple
of days :

I have a MapActivity wich is using an Overlay.
The overlay is  instanciated like this in the MapActivity

   mPickDriverOverlay=new
PickDriverOverlay(this,rideRequests,myMapView);
myMapView.getOverlays().add(mPickDriverOverlay);

On this Overlay , i'm listening for onKeydown and when the center of
the dpad is pushed , i'm trying to start a new Activity:

Intent intent=new
Intent(activity,AskDriverForARideActivity.class);
activity.startActivity(intent);

My problem is that this activity is launched but not displayed : i can
see that in the logs :

11-10 16:09:27.564: VERBOSE/PickDriverOverlay(1096): Adding a new
Overlay with 1 rides founds
11-10 16:09:34.174: WARN/KeyCharacterMap(1096): No keyboard for id 0
11-10 16:09:34.189: WARN/KeyCharacterMap(1096): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin
11-10 16:09:34.193: VERBOSE/PickDriverOverlay(1096): KEY Down :23
11-10 16:09:34.284: INFO/ActivityManager(53): Starting activity:
Intent { comp={com.piggyBack/
com.piggyBack.activities.AskDriverForARideActivity} (has extras) }
11-10 16:09:34.354: VERBOSE/RideActivity(1096): onPause
11-10 16:09:34.484: VERBOSE/AskDriverForARideActivity(1096): onCreate
11-10 16:09:34.874: VERBOSE/AskDriverForARideActivity(1096): onResume

so , i can see the first activity beeing paused and the new one
started , but nothing is displayed on the screen.

if i'm pushing again the key , i have this log :

11-10 16:11:39.084: VERBOSE/PickDriverOverlay(1096): KEY Down :23
11-10 16:11:39.173: INFO/ActivityManager(53): Starting activity:
Intent { comp={com.piggyBack/
com.piggyBack.activities.AskDriverForARideActivity} (has extras) }
11-10 16:11:39.203: VERBOSE/AskDriverForARideActivity(1096): onPause
11-10 16:11:39.244: VERBOSE/AskDriverForARideActivity(1096): onCreate
11-10 16:11:39.524: VERBOSE/AskDriverForARideActivity(1096): onResume

but this time , the view is displayed

when i'm trying to close the application , i can see that the view was
hiden behind the map view.

I've been trying a lot of things like setting the Flags
FLAG_ACTIVITY_NEW_TASK,
FLAG_ACTIVITY_BROUGHT_TO_FRONT
trying to call the makeActive() method in the new Activity,...

Does anyone see what's wrong with or how to solve this and how tu put
an Activity on the top of the stack (from the doc , a new Activity
should start on the top?

Thanks

Chris




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



[android-developers] Re: MapActivity / MapView causes application to crash at startup

2008-11-10 Thread Billsen

You need to generate a key for apikey for your emulator since Google
has started to enforce the rule to put real key in xml file.

On Nov 9, 10:44 pm, bw <[EMAIL PROTECTED]> wrote:
> Also had to add
>
> 
>
> above my application tag.
>
> (Source:http://groups.google.com/group/android-developers/browse_thread/threa...)
>
> Is there some place where this is all documented?
> I think this info should be in the javadocs for the MapView class!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 an external Jar error

2008-11-10 Thread [EMAIL PROTECTED]

Hey Guna,

The jar i added was my own.
I'm not sure what you mean by take care of the classes?
Can you explain?

Regards,

Josh

On Nov 8, 4:54 am, guna <[EMAIL PROTECTED]> wrote:
> Josh,
>
> What jar you added? Take care of the classes in the external jar? Is
> it a third party external jar or your own?
>
> Thanks,
> Guna
>
> On Nov 8, 4:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hey guys,
>
> > alittle more info,
>
> > I do not have the jar loaded twice or have multiples of the same
> > classes.
> > I am using the HelloAndroid sample to try to load a jar so the only
> > classes I have is the HelloAndroid and the R class.
> > Even after i unload the jar and re-load it, I still get the error.
>
> > Thanks,
>
> > Josh
>
> > On Nov 7, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hey guys,
>
> > > I'm adding an external jar to my project through eclipse.
> > > However, I am encountering an error:
>
> > > java.lang.IllegalArgumentException: already added: Lcom/package/class;
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
> > > 123)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.dex.file.DexFile.add(DexFile.java:143)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main.processClass(Main.java:299)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main.access$100(Main.java:56)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
> > > 245)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
> > > 130)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
> > > 108)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main.processOne(Main.java:245)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.dx.command.dexer.Main.run(Main.java:139)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > 39)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> > > 25)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > java.lang.reflect.Method.invoke(Method.java:585)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
> > > 624)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > > 166)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > > 197)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
> > > 246)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > > 249)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
> > > 302)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
> > > 334)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
> > > 137)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
> > > 235)
> > > [2008-11-07 14:34:59 - HelloAndroid]    at
> > > org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> > > [2008-1

[android-developers] Market: Application not in search result, but exists

2008-11-10 Thread friedger

Hi,

I am missing OI Notepad, if I search for "pub:OpenIntents". If I go
directly to the market details page of the applications (using app id)
the page shows all information.

Also, a search for "Notepad" does not bring up the application.

The application is listed as published in our market account.

Any ideas, what goes wrong here? We have renamed the application some
time ago, does this cause any trouble?

Cheers,
Friedger

Openintents.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: Handle tap on MyLocationOverlay current GPS position

2008-11-10 Thread Guillaume Perrot

Create a MyLocationOverlay subclass, and override dispatchTap().

On Nov 8, 1:33 pm, Stu <[EMAIL PROTECTED]> wrote:
> Hi there.
>
> I'm having trouble handling a tap on my current location in a
> MyLocationOverlay. There seem to be functions specifically for this,
> but I can't seem to handle it correctly.
>
> My class look like this:
>
> public class MyApp extends MapActivity implements LocationListener {
>
> and when I try to override the dispatchTap() method I get told that it
> must override a superclass. I'm assuming it's something to do with the
> fact that my class has no link with MyLocationOverlay. I tried adding
> it to the list of implements, but MyLocationOverlay is appanrently not
> an interface, or something.
>
> Can anyone tell me how I should go about handling a click on the
> current location using a MyLocationOverlay, or not using one if it has
> to be done a different way?
>
> Thanks and regards,
> Stuart.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Unsuccessful Install

2008-11-10 Thread BCatDC

Mitush suggests that I enable usb debugging.

That gets me a lot closer. Now I can see the apps work on the phone.
(HURRAY for baby steps) In fact they even remain installed, when I
disconnect the phone from the development environment. Which is pretty
great, however the exported .apks still won't install over the air or
from the sd card.

I'm slowly working my way through tutorials for signing the apk. I'm
interested in how to use the adb shell app. But it seems redundant to
the debug option, and I know that eventual users won't be installing
that way... so I may set that aside for learning on another day.

I still have a hard time believing (based on what I've read) that
signing the .apk is the step that I'm missing. More when I figure out
how to do that...

In the meantime... I'm still looking for suggestions about what else I
might be doing wrong.

On Nov 10, 12:34 pm, atrus123 <[EMAIL PROTECTED]> wrote:
> BTW -- it is possible to install something on your G1 without signing
> using Eclipse or the adb shell application.  You can find adb from the
> command line under tools.  Try ./adb install myapp.apk.
>
> On Nov 10, 12:27 pm, atrus123 <[EMAIL PROTECTED]> wrote:
>
> > I'm guessing you need to sign your application.
>
> > This is the best description I've found on how to do this:
>
> >http://www.anddev.org/signing_your_apk-application_for_release_keytoo...
>
> > On Nov 9, 11:57 pm, BCatDC <[EMAIL PROTECTED]> wrote:
>
> > > Hi there,
>
> > > I'm just getting started with android developing. I have a very
> > > frustrating problem. I've worked with samples to do a number of
> > > little .APKs a few different hello worlds. A slightly modded version
> > > of lunar lander. Very basic stuff. They work great in the emulator,
> > > and they seem to export just fine. But then things go south.
>
> > > I've used my web server to download them over the air. I've transfered
> > > them to the sd card and tried to install them with Apps Installer (by
> > > modmyGphone) It doesn't seem to matter what I do. Every install fails
> > > with the stupid check mark and the words "Unsuccessful Install."
> > > Needless to say I'm very frustrated, I have no idea how to trouble
> > > shoot this and move forward.
>
> > > FYI I have Unknown Sources checked in my settings. And I've
> > > successfully installed plenty of non market apps both over the air and
> > > off the sd card.
>
> > > Alright android geniuses thats where I'm at can you help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Capture Call Audio

2008-11-10 Thread Dave

It may be technically feasible to make it work, but it would be up to
the hardware mfgr to support it. This functionality is not under the
control of the application processor.

On Nov 8, 9:39 am, Eric Mill <[EMAIL PROTECTED]> wrote:
> So, is there a way to get the audio after the call?  Surely there must
> be some way to use the G1 to record one's phone calls.
>
> -- Eric
>
> On Nov 7, 2:34 pm, Dave <[EMAIL PROTECTED]> wrote:
>
> > Downlink audio is not routed to the application processor on the G1,
> > so there is no way to capture in-call audio.
>
> > On Nov 6, 7:31 pm, Sreeji <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Any one tried capturing Audio after accepting the call, is there a way
> > > to use the PhoneApp class to do this?
>
> > > -Sreeji
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Unsuccessful Install

2008-11-10 Thread Mark Murphy

BCatDC wrote:
> however the exported .apks still won't install over the air or
> from the sd card.

If they're unsigned, I think that is to be expected. I'm fairly certain 
that anything downloaded (Market, Web site, alternative markets) needs 
to be signed. I'm less certain about installing off an SD card.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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



[android-developers] Re: Trouble with SoundPool

2008-11-10 Thread Dave

SoundPool is undocumented because it is not ready as a public API and
is subject to change. There are serious problems with it including the
likelihood that your application will deadlock if you attempt to use
it. When it is ready, we will publish the API documentation.

On Nov 9, 5:04 pm, g1bb <[EMAIL PROTECTED]> wrote:
> This worked great. Thank you very much. The lack of documentation on
> SoundPool is disturbting.
>
> On Nov 9, 2:10 pm, Robert Green <[EMAIL PROTECTED]> wrote:
>
> > Yeah there's something you need to know about SoundPool:  Init well
> > before playing - that is, you need to know way ahead of time what
> > sounds you will be using because it doesn't work well to play
> > immediately after initializing.  I think they attempt to initialize
> > asynchronously or something because I had problems when I tried to
> > load and play back to back like you're trying there.
>
> > When I use SoundPool, I load everything upon creation of the instance
> > of the game then trigger the plays whenever I need them.  Here's my
> > current code for SoundPoolSoundManager:
>
> > public class SoundPoolSoundManager implements SoundManager {
> > private static final String TAG = "SoundPoolSoundManager";
>
> > public static final int SOUND_1 = 1;
>
> > private boolean enabled = true;
> > private Context context;
> > private SoundPool soundPool;
> > private HashMap soundPoolMap;
>
> > public SoundPoolSoundManager(Context context) {
> > this.context = context;
> > }
>
> > public void reInit() {
> > init();
> > }
>
> > public void init() {
> > if (enabled) {
> > Log.d(TAG, "Initializing new SoundPool");
> > //re-init sound pool to work around bugs
> > release();
> > soundPool = new SoundPool(SOUNDPOOL_STREAMS,
> > AudioManager.STREAM_MUSIC, 100);
> > soundPoolMap = new HashMap();
> > soundPoolMap.put(SOUND_1, soundPool.load(context, 
> > R.raw.sound1,
> > 1));
> > Log.d(TAG, "SoundPool initialized");
> > }
> > }
>
> > public void release() {
> > if (soundPool != null) {
> > Log.d(TAG, "Closing SoundPool");
> > soundPool.release();
> > soundPool = null;
> > Log.d(TAG, "SoundPool closed");
> > return;
> > }
> > }
>
> > public void playSound(int sound) {
> > if (soundPool != null) {
> > Log.d(TAG, "Playing Sound " + sound);
> > AudioManager mgr = (AudioManager)
> > context.getSystemService(Context.AUDIO_SERVICE);
> > int streamVolume = 
> > mgr.getStreamVolume(AudioManager.STREAM_MUSIC);
> > Integer soundId = soundPoolMap.get(sound);
> > if (soundId != null) {
> > soundPool.play(soundPoolMap.get(sound), 
> > streamVolume,
> > streamVolume, 1, 0, 1f);
> > }
> > }
> > }
>
> > public void setEnabled(boolean enabled) {
> > this.enabled = enabled;
> > }
>
> > }
>
> > On Nov 9, 4:28 am, g1bb <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > I posted this on the AndDev forums as well, and I'm somewhat of a
> > > novice to Java.
>
> > > I've tried the following code after seeing the snippet 
> > > athttp://www.anddev.org/using_soundpool_instead_of_mediaplayer-t3115.html,
> > > and I can't seem to get this to work. Here's what I have:
>
> > > public class OneShotAlarm extends BroadcastReceiver
> > > {
> > >  private SoundPool soundPool;
> > >   private HashMap soundPoolMap;
>
> > > @Override
> > > public void onReceive(Context context, Intent intent)
> > > {
> > >   soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100);
> > >  soundPoolMap = new HashMap();
> > >  soundPoolMap.put(1, soundPool.load(context, R.raw.sound1,
> > > 1));
>
> > > AudioManager mgr = (AudioManager)
> > > context.getSystemService(Context.AUDIO_SERVICE);
> > > int streamVolume =
> > > mgr.getStreamVolume(AudioManager.STREAM_MUSIC);
> > > soundPool.play(soundPoolMap.get(1), streamVolume,
> > > streamVolume, 1, 0, 1f);
> > > }
>
> > > }
>
> > > You'll notice I replaced instaces of 'getContext()' with 'Context', as
> > > 'getContext()' doesn't seem to be available from where I have this
> > > code.
>
> > > Here is my LogCat that's being returned, and no sound is being played:
> > > 11-08 19:25:23.679: DEBUG/dalvikvm(1822): Trying to load lib /system/
> > > lib/libsoundpool.so 0x0
> > > 11-08 19:25:23.759: DEBUG/dalvikvm(1822): Added shared lib /sy

[android-developers] requestLocationUpdates

2008-11-10 Thread dave.marsden


I'm using the following statement to request updates on my G1s
position :

lm.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
3,
30,
locationListener);

Which I reckon shuold give me an update every 30sec when the device
has moved more than 30 metres.

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



[android-developers] Re: Notifications

2008-11-10 Thread Christine



On Nov 10, 6:54 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> Is it returned by Activity#getIntent()?

nope. Or not that I could find it.
I'm ok for now but I like to do things the proper way :-)


>
> Note that I haven't tried that with a Notification-launched activity.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.4 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: requestLocationUpdates

2008-11-10 Thread Christine

The documentation says that you can specify these parameters but you
have no guarantee that you will get updates as you specify them.

On Nov 10, 9:09 pm, "dave.marsden" <[EMAIL PROTECTED]
services.co.uk> wrote:
> I'm using the following statement to request updates on my G1s
> position :
>
> lm.requestLocationUpdates(
>             LocationManager.GPS_PROVIDER,
>             3,
>             30,
>             locationListener);
>
> Which I reckon shuold give me an update every 30sec when the device
> has moved more than 30 metres.
>
> However the device seems to get updates much more frequently. Anybody
> any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity menu icons

2008-11-10 Thread Peli

Great! Thanks a lot! This finally solves the problem I had a long time
ago ( 
http://groups.google.com/group/android-developers/browse_frm/thread/5ca8bc78fdaa9e69
) :-)

Peli


On Nov 3, 5:36 am, "Jason Parekh" <[EMAIL PROTECTED]> wrote:
> doh, you're correct, there isn't a way for clients to iterate through the
> items in the menu. :(
>
> at this point, I suggest switching to hard-coding the menu items.  if you
> really want to populate the menu via intents, you may have to copy the
> (fixed) addIntentOptions code into a helper class:
>
>     public int addIntentOptions(int group, int id, int categoryOrder,
> ComponentName caller,
>             Intent[] specifics, Intent intent, int flags, MenuItem[]
> outSpecificItems) {
>         PackageManager pm = mContext.getPackageManager();
>         final List lri =
>                 pm.queryIntentActivityOptions(caller, specifics, intent, 0);
>         final int N = lri != null ? lri.size() : 0;
>
>         if ((flags & FLAG_APPEND_TO_GROUP) == 0) {
>             removeGroup(group);
>         }
>
>         for (int i=0; i             final ResolveInfo ri = lri.get(i);
>             Intent rintent = new Intent(
>                 ri.specificIndex < 0 ? intent :
> specifics[ri.specificIndex]);
>             rintent.setComponent(new ComponentName(
>                     ri.activityInfo.applicationInfo.packageName,
>                     ri.activityInfo.name));
>             final MenuItem item = add(group, id, categoryOrder,
> ri.loadLabel(pm))
>                     .setIcon(ri.loadIcon(pm))
>                     .setIntent(rintent);
>             if (outSpecificItems != null && ri.specificIndex >= 0) {
>                 outSpecificItems[ri.specificIndex] = item;
>             }
>         }
>
>         return N;
>     }
>
> On Sun, Nov 2, 2008 at 11:30 AM, David Given <[EMAIL PROTECTED]> wrote:
> > Jason Parekh wrote:
> > [...]
> > > As an interim solution, you could, in your onCreateOptionsMenu, go
> > > through each menu item and do:
>
> > > Intent intent = item.getIntent();
> > > if (intent != null) item.setIcon(packageManager.getActivityIcon(intent));
>
> > Thanks, that ought to do it --- but I can't seem to find any way of
> > iterating through a Menu and looking at each MenuItem! The only way I
> > can see of getting a MenuItem out of a Menu is to call Menu.findItem();
> > but that needs an id, and they're all likely to be 0. What am I missing?
>
> > --
> > ┌─── 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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Pay app support?

2008-11-10 Thread Eric

It was announced that a 30% cut of the Market price will be paid to
the carrier(s), and the remaining 70% will be paid to the developer.

You can also sell apps through venues other than the Market, and avoid
the 30% cut, but it seems likely that most phone owners will only look
for apps in the Market.

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



[android-developers] Re: networking tcp/xmpp

2008-11-10 Thread Peter Neubauer

Hi there,
it seems that the Smack 3.0.4 library on SDK 1.0 is currently broken
due to problems with the certificate to the talk.google.com servers. I
have tried to get some more info on it but without success :(

/peter

http://www.oredev.se - Be there or be gone.

GTalk:neubauer.peter
Skypepeter.neubauer
ICQ18762544
Phone   +46704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Wed, Oct 29, 2008 at 1:06 AM, Justin (Google Employee)
<[EMAIL PROTECTED]> wrote:
>
> If you are writing network code in Java, then yes, it will work fine
> on the device. If you are trying to push native code to the device and
> run it, this won't work.
>
> As far as using XMPP, I know some developers have used the Smack
> library to use XMPP.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Oct 24, 1:22 pm, cslinux <[EMAIL PROTECTED]> wrote:
>> -First of all i'm asking if the android api uses a 
>> differentnetworkingpackages than JAVA's packages on the device layer ? i.e 
>> anynetworkingcode 'll be easily deployed on an android device, exactly
>> same as the emulator ?
>>
>> -I'm asking how to write mini chat application between adnroid
>> mobilephones, can i usexmppor it's not supported currently based 
>> onhttp://www.anddev.org/socket_programming-t325-s15.html
>>
>> Thanks in advance and kind regards.
> >
>

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



[android-developers] Re: networking tcp/xmpp

2008-11-10 Thread Peter Neubauer

The Smack problems have been covered here:
http://groups.google.com/group/android-developers/browse_thread/thread/2324e9a3a7687698

/peter

http://www.oredev.se - Be there or be gone.

GTalk:neubauer.peter
Skypepeter.neubauer
ICQ18762544
Phone   +46704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Wed, Oct 29, 2008 at 1:06 AM, Justin (Google Employee)
<[EMAIL PROTECTED]> wrote:
>
> If you are writing network code in Java, then yes, it will work fine
> on the device. If you are trying to push native code to the device and
> run it, this won't work.
>
> As far as using XMPP, I know some developers have used the Smack
> library to use XMPP.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Oct 24, 1:22 pm, cslinux <[EMAIL PROTECTED]> wrote:
>> -First of all i'm asking if the android api uses a 
>> differentnetworkingpackages than JAVA's packages on the device layer ? i.e 
>> anynetworkingcode 'll be easily deployed on an android device, exactly
>> same as the emulator ?
>>
>> -I'm asking how to write mini chat application between adnroid
>> mobilephones, can i usexmppor it's not supported currently based 
>> onhttp://www.anddev.org/socket_programming-t325-s15.html
>>
>> Thanks in advance and kind regards.
> >
>

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



[android-developers] Re: Notifications

2008-11-10 Thread Christine

guess I was wrong. I tried with other Activities, then I do get the
intent. Guess I was tired :-|

On Nov 10, 9:19 pm, Christine <[EMAIL PROTECTED]> wrote:
> On Nov 10, 6:54 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is it returned by Activity#getIntent()?
>
> nope. Or not that I could find it.
> I'm ok for now but I like to do things the proper way :-)
>
>
>
> > Note that I haven't tried that with a Notification-launched activity.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.4 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: Notifications

2008-11-10 Thread Christine

On Nov 10, 6:54 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:

> Is it returned by Activity#getIntent()?

It turns out it is, but not always. If the Activity the intent is
going to is already in memory, it gets to the front and nothing really
happens. OnCreate doesn't get called so no chance to get the Intent.
After closing the activity, you do catch the notification when
clicking the icon.


>
> Note that I haven't tried that with a Notification-launched activity.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.4 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: Saving a file to a system directory?

2008-11-10 Thread Eric

I haven't tried it, but I'd guess that you can't do that due to the
security model.  Your app is running as a user that doesn't have write
access to most of the system directories.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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   >