[android-developers] Can we determine APK Install date & time?

2009-09-15 Thread Shibbs

Hi all,


By any means, programmatically can I get the install date & time of
the already installed apps on the android device. The ApplicationInfo
doesn't provide this info.

While digging through the /data folder through the DDMS perspective, I
saw the installed apk's do contains the Date & time of when it was
installed, but the sad part is that this /data folder is not
accessible on the device programmatically.


Any help in this regard?


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



[android-developers] Getting Other App Reviews - Programmatically

2009-07-31 Thread Shibbs

Hi guys,


We have a new requirement at hand, after doing an initial search I
couldn't find any relative topic in this regard. Maybe someone in this
forum or a google guy can help, so here is what we are trying to
achieve:

Can we write an android app, which gather's the user's review ratings
for other installed app on his device?

Scenario:

User: Mike

Apps installed on Mike's android device & review given by him are:

App1  - review ***
App2  - review **
App3  - review *
App4  - no review
App5 - Our ReviewGatheringApp  (residing on Mike's android phone)

Can App5 (ReviewGatheringApp) gather the review ratings for other
installed app's(App1,App2,App3 & app4) ?


Is the review rating data being exposed by the google in SDK yet ?

Any help, in this regard would be great.


Thanks,
Shibbs



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



[android-developers] Re: Can we make paid apps - additional packs also chargeable?

2009-07-22 Thread Shibbs

Let me reply my own post

The two proposed solution for additonal paid packs downloads are:

* Bundle additional packs into separate Apk's: The additional
packs can be bundled in separate paid apk's (like AppPack1,
AppPack2... AppPackN) and downloaded. Once downloaded, the original
App game apk can interact with the newly installed additional AppPackN
apk & get the packs.

* Release Different version's: The other proposed solution is to
relase the App  in versions of different apks. Ex: App_lite version,
App_Medium or App_Full version with different number of packs in each
or even better we can do App_v1.0, App_v2.0, App_v3.0, ..
App_vn.o  so on. If a new version is available we can prompt the user
also about the same.

what say?

Thanks,
Shibbs


On Jul 20, 2:57 pm, Shibbs  wrote:
> Hi All,
>
> We are developing an android "paid"game, which would also come with
> additional "paid" packs/levels.
>
> Does android market has any support that once the "paid app" is
> downloaded, it's additional pack's/level can also be charged through
> the market, if the user intends to download the additional packs.
>
> Any clue on how we can implement this?
>
> Thanks,Shibbs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Can we make paid apps - additional packs also chargeable?

2009-07-20 Thread Shibbs

Hi All,


We are developing an android "paid"game, which would also come with
additional "paid" packs/levels.

Does android market has any support that once the "paid app" is
downloaded, it's additional pack's/level can also be charged through
the market, if the user intends to download the additional packs.

Any clue on how we can implement this?


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



[android-developers] Re: Build Contact "Stand Alone" apk - from Android Contact Source Code?

2009-07-15 Thread Shibbs

Mark wrote:
> Your work will probably still be valued in improving the built-in
> Android Contacts application, if you wish to pursue that course.

Cool, that sounds encouraging.

One final query, if I pursue the above mentioned course & improve the
build-in contacts app, then would I be able to build (make) the
improved contacts source code & get a Contacts.apk. If yes, then can I
distribute it as normal android app, which would run on any android
device?

Or would it be tightly coupled with the below android firmware & could
be distributed only along with the system.img


Ideally, this is what I am trying to do - Extend the existing contacts
app add additional feature make an improved Contacts.apk & release it
in the android market.

what say, possible?


Thanks for all your time.


- Shibbs

On Jul 15, 9:15 pm, Mark Murphy  wrote:
> Shibbs wrote:
> > Ah sad ending to our over enthu project:
>
> > For the past few days, I have been searching like mad, like many other
> > developers from past who were trying to achieve something similar.
> > But, it was not very clear that we won't be able to do, with all
> > respect to your below comment I am stopping further development in
> > this regard.
>
> Your work will probably still be valued in improving the built-in
> Android Contacts application, if you wish to pursue that course.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Build Contact "Stand Alone" apk - from Android Contact Source Code?

2009-07-15 Thread Shibbs

Ah sad ending to our over enthu project:

For the past few days, I have been searching like mad, like many other
developers from past who were trying to achieve something similar.
But, it was not very clear that we won't be able to do, with all
respect to your below comment I am stopping further development in
this regard.

Thanks once again!

- Shibbs

On Jul 15, 8:37 pm, Mark Murphy  wrote:
> Shibbs wrote:
> > As suggested, If i remove all the internal api calls (mentioned in my
> > previous mail), I may have to compromise / even break some of the
> > functionality of Contacts app.
>
> Correct.
>
> > I am trying to add more features to the existing contacts app, without
> > loosing any of existing contacts functionality. Is it possible?
>
> Not without changes to the firmware to make the missing classes become
> part of the SDK.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 0.9 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Build Contact "Stand Alone" apk - from Android Contact Source Code?

2009-07-15 Thread Shibbs

Hi Mark,

Thanks for the response.

Mark wrote:
>If you are trying to make a separate installable application, remove all
>>functionality from the code that relies upon classes not in the SDK.

Yes that's exactly what I am trying to do.

As suggested, If i remove all the internal api calls (mentioned in my
previous mail), I may have to compromise / even break some of the
functionality of Contacts app.

I am trying to add more features to the existing contacts app, without
loosing any of existing contacts functionality. Is it possible?
Well this is what my intended direction, where I am heading, without
knowing if that is possible.



Thanks,
Shibbs

On Jul 15, 8:14 pm, Mark Murphy  wrote:
> Shibbs wrote:
> > I am trying to create a separate Contacts "stand alone" App using the
> > existing android contacts source code, once that done I intend to add
> > some more features ( code ) to contacts source & make a contacts.apk
> > out of it.
>
> > Is it possible?
>
> Not without a lot of work.
>
>
>
> > The problem I faced was, when I pulled the contacts app source code,
> > there were many internal api calls & Private api references. I tried
> > to resolve them by including those internal api source code & class
> > files(available from the android source code) in my project, but there
> > are still many errors & internal api calls, which I am not sure how to
> > resolve them like:
>
> > import android.os.ServiceManager
> > android.provider.Gmail
> > android.provider.Im
> > android.provider.Telephony
> > acquireProvider(Uri)
> > deleteRow()
> > lookupProviderNameFromId(int)
> > ISyncAdapter
> > IContentProvider
> > etc
>
> > Is there a way to solve these internal API issue?
>
> Do not try to build that code as a separate project. The built-in
> applications, in general, are designed to be built as part of the
> firmware, not simply to the SDK.
>
> > Can somebody lead me to a correct direction?
>
> You have not indicated what the "direction" is.
>
> If you are trying to assist with the Android open source project, and
> make patches to Contacts, do not pull it into a separate application.
> Rather, follow the instructions athttp://source.android.comto build
> firmware and make your changes that way.
>
> If you are trying to make a separate installable application, remove all
> functionality from the code that relies upon classes not in the SDK.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 0.9 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Build Contact "Stand Alone" apk - from Android Contact Source Code?

2009-07-15 Thread Shibbs

Hi all,

I have downloaded the full Android source code & pulled out the
contact source into a different folder.

I am trying to create a separate Contacts "stand alone" App using the
existing android contacts source code, once that done I intend to add
some more features ( code ) to contacts source & make a contacts.apk
out of it.

Is it possible?

The problem I faced was, when I pulled the contacts app source code,
there were many internal api calls & Private api references. I tried
to resolve them by including those internal api source code & class
files(available from the android source code) in my project, but there
are still many errors & internal api calls, which I am not sure how to
resolve them like:

import android.os.ServiceManager
android.provider.Gmail
android.provider.Im
android.provider.Telephony
acquireProvider(Uri)
deleteRow()
lookupProviderNameFromId(int)
ISyncAdapter
IContentProvider
etc

Is there a way to solve these internal API issue?

Was there anyone who has successfully extended any of the existing
apps (Contacts, Alaram, calendar...) of android with the help of its
source code, is this approach possible?

I tried to include the "framework_immediates classes.jar" in the
project, but due to duplicate class files present in the project & SDK
it throws the ususal -
UNEXPECTED TOP-LEVEL EXCEPTION: class file already added com/android/
internal/telephony/callerInfosync...


I have been trying to achieve this for the past 2 days, with not much
success.
Can somebody lead me to a correct direction?

Any help in this regard would be really great!


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



[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Shibbs

Thanks guys! - but as long as there is no other permission, I am left
with not much choice but to take that risk.
Anyone from google,
Would read browser history permission be available in future release?
Its kinda important for my app

On Jun 24, 8:08 pm, Mark Murphy  wrote:
> Shibbs wrote:
> > Do we go by the age old google saying that: "If its not documented
> > then probably not use it as it would be removed in future SDK version"
>
> Pretty much. That's particularly true for com.android.permission.*
> values (or, for that matter, most things in the com.android.* namespaces).
>
> Things that are public are (usually) android.* (minus the leading com.)
> and are described in the SDK documentation.
>
> Anything else can easily be broken in future releases.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Shibbs

Frankly speaking I don't know nor I have any evidence - Got this
permission over the net, tried it in my app and it works.
Do we go by the age old google saying that: "If its not documented
then probably not use it as it would be removed in future SDK version"

On Jun 24, 6:58 pm, Mark Murphy  wrote:
> Shibbs wrote:
> > After a little googling I found the permission:
>
> >  > android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
>
> > from:http://github.com/android/platform_packages_apps_browser/blob/0cb2af7...
>
> > Just wondering why this permission is hidden or sort of hidden as its
> > not available in drop down permission bar of Manifest.xml (using
> >eclipse)
>
> Do you have any evidence to suggest it is part of the SDK?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Shibbs

Hi all,

I am getting Security Exception - Permission denial when I am trying
to access the Browser.BOOKMARK_URI in my code.
Cursor cur = m_Context.getContentResolver().query
(Browser.BOOKMARKS_URI, null, null,null, null);

However it gives me this error only on device whereas on emulator it
works great. I tried to find if there is any permission for the
bookmark uri, but got none.

After a little googling I found the permission:



from: 
http://github.com/android/platform_packages_apps_browser/blob/0cb2af7646d0a41c0543a086021df3042bfc814a/AndroidManifest.xml


Just wondering why this permission is hidden or sort of hidden as its
not available in drop down permission bar of Manifest.xml (using
eclipse)


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



[android-developers] Re: ContentObserver & "_id" - SMS, Contact & Media

2009-06-23 Thread Shibbs

Thanks peli - My bad, should have calculated that the limit is
practically unreachable - (but always had a feeling what if.
sometimes too logical thinking is bad :) )
Anyways, in that case the above solution is full proof & good to go. I
have already implemented & it works smooth for Contacts, SMS & Media.

Hope it helps someone!

Thanks,
Shibbs

On Jun 23, 5:18 pm, Peli  wrote:
> Don't worry about reaching the limit 9223372036854775807.
>
> Even if you insert 1000 new entries per second into your database, it
> will take you 290 million years until you reach that limit
> ( 9223372036854775807 / 1000 / 60 / 60 / 24 / 365 = 292 471 209 )
>
> (dinosaurs died out 65 million years ago; the G1 would be a fossil by
> that 
> time:http://news.softpedia.com/news/The-Oldest-Fossil-Russian-Doll-290-Mil...
> )
>
> Peliwww.openintents.orgwww.openintents.biz/obscura.html
>
> On Jun 23, 9:45 am, Shibbs  wrote:
>
> > Hi All,
>
> > From the past two days I have been closely reading through the
> > ContentObserver discussion on the various scenarios like:
> > 1.) SMS sent
> > 2.) Contacts updated
> > 3.) Media added.
> > 4.) etc...
>
> > We all are aware that the onChange() of the ContentObserver() doesn't
> > notify us to what has been changed for obvious reasons.
>
> > We thought of coming up with a logic, though it is not fully proof,
> > just wanted to discuss the solution with you guys:
>
> > The scenarios we deal with here are:
> > 1.) Last SMS Sent
> > 2.) New Contacts added.
>
> > We had a close look at the db structure of the Contacts, SMS & Media.
> > They all have this primary column name - "_id" which is
> > autoincremental. Currently the limit of this stands at a whoofing:
> > 9223372036854775807. (2^63)
>
> > each time a new contact has been added to contacts.db or new SMS sent
> > (record added to ( SMS db)) it is bound to have the greatest "_id"
> > value if the above limit (9223372036854775807)  has not been reached
> > yet.
>
> > Then in onChange()
> > 1.) Filter out if the event is a new contact changed or SMS sent
> > { simple logic posted in previous some post)
> > 2.) If yes, then query and get the last record based on the ascending
> > order of "_id" value (default order) you can get the desired last SMS
> > sent or New contact added.
>
> > Note: This logic is not full proof, cause over a period of time if the
> > "_id" crosses 9223372036854775807, then this logic would fail or I
> > guess so.
>
> > Not sure what Android would do internally once the id crosses
> > 9223372036854775807?
> > Will it start from -9223372036854775808.
>
> > Any better solution?
>
> > Thanks,
> > Shibbs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ContentObserver & "_id" - SMS, Contact & Media

2009-06-23 Thread Shibbs

Hi All,

>From the past two days I have been closely reading through the
ContentObserver discussion on the various scenarios like:
1.) SMS sent
2.) Contacts updated
3.) Media added.
4.) etc...

We all are aware that the onChange() of the ContentObserver() doesn't
notify us to what has been changed for obvious reasons.

We thought of coming up with a logic, though it is not fully proof,
just wanted to discuss the solution with you guys:

The scenarios we deal with here are:
1.) Last SMS Sent
2.) New Contacts added.

We had a close look at the db structure of the Contacts, SMS & Media.
They all have this primary column name - "_id" which is
autoincremental. Currently the limit of this stands at a whoofing:
9223372036854775807. (2^63)

each time a new contact has been added to contacts.db or new SMS sent
(record added to ( SMS db)) it is bound to have the greatest "_id"
value if the above limit (9223372036854775807)  has not been reached
yet.

Then in onChange()
1.) Filter out if the event is a new contact changed or SMS sent
{ simple logic posted in previous some post)
2.) If yes, then query and get the last record based on the ascending
order of "_id" value (default order) you can get the desired last SMS
sent or New contact added.

Note: This logic is not full proof, cause over a period of time if the
"_id" crosses 9223372036854775807, then this logic would fail or I
guess so.

Not sure what Android would do internally once the id crosses
9223372036854775807?
Will it start from -9223372036854775808.

Any better solution?


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



[android-developers] Upnp Support?

2009-02-19 Thread Shibbs

guys,


We have a new task at hand, we want to connect & stream our media
content present on our G1 phone to the upnp players available in the
vicinity.

Does Android has upnp support yet?

I saw, Windows mobile, nokia (J2me) , BB devices, doing it not pretty
sure is it launched on android too?


Your help is much appreciated, If the task is possible on android then
please do give us a direction which way to head on to


Thanks,
Shibbs








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



[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-02-11 Thread Shibbs

Hi guys,


Just want to give another angle to it... which was successfully run &
tested.

Yesterday while streaming video cam images { through socket - getting
bitmaps at a good refresh rate} we where getting this nasty Out of
memory error and as one the posting suggested to recycle the bitmaps
which are not drawn. But, our problem was that we are drawing the same
bitmap again & again in the draw() method so how can we recycle the
bitmap. Moreover, even if we use the same bitmap again & again the
memory steeply increases eventually throwing out of Memory.

So, here's the deal


*   Make Bitmap Buffer array:  In my case I made an array of 10.
*   Take a circular say 'display pointer' which would run through the
buffered array:
*   Take another circular 'freeing pointer' which would run at a fixed
distance back of the 'display pointer'
*   Job of the display pointer would be to setBitmap, displayBitmap &
draw It.
*   Whereas the freeing pointer which would be back of it exactly at a
fixed distance (ex: 5) behind  it would be recycling all the bitmaps
which are not used
*   Thus, at any given point of time we would always have ample free
memory space and the bitmaps used at any given point of time would be
absolute difference between { display counter pointer - freeing
pointer counter }  - making an endless 'rat race'.

Though we are using 5-10 bitmaps in place of one, but believe me it
doesn't give you that nasty Out of memory error

Now this approach we have applied & not got the OOM error yet, but the
initial crude test can be done by our test manager when she arrives
today ��

let me know, if anybody needs the full code of it or a snippet of
it


Thanks,
Catalytic Android team


On Feb 5, 12:14 am, Romain Guy  wrote:
> Use less memory.
>
>
>
> On Wed, Feb 4, 2009 at 11:11 AM, Rohit  wrote:
>
> > So whats a good solution?
>
> > Rohit
>
> > On Feb 4, 11:07 am, Romain Guy  wrote:
> >> Scaling the image down happens at drawing time. You are just using
> >> images that are too large to begin with.
>
> >> On Wed, Feb 4, 2009 at 11:05 AM, Rohit  wrote:
>
> >> > I noticed that the OutOfMemoryError occurs a lot when you try to load
> >> > an image that is larger than the view. Android needs to scale the
> >> > image down to fit the view and that is when it seems to crash out as a
> >> > result of the OutOfMemoryError.
>
> >> > Rohit
>
> >> > On Jan 26, 3:09 pm, blindfold  wrote:
> >> >> > Check first, and think a bit.
>
> >> >> I stand by what I said.
>
> >> >> Regards
>
> >> >> On Jan 25, 8:30 pm, ad  wrote:
>
> >> >> > Check first, and think a bit.
>
> >> >> > On Jan 25, 2:49 pm, blindfold  wrote:
>
> >> >> > > How can this possibly help you? You are trying to allocate 61 MB
> >> >> > > (3200*4800*4 bytes), which lies well above the 16 MB heap limit. I
> >> >> > > tried once to allocate, say, 12 MB at program startup to keep 
> >> >> > > Android
> >> >> > > from all the time bumping into the heap limit and possibly crashing 
> >> >> > > as
> >> >> > > a result in case its memory management is not 100% reliable, but
> >> >> > > trying to allocate 61 MB should not offer any benefit?
>
> >> >> > > Regards
>
> >> >> > > On Jan 25, 2:23 pm, ad  wrote:
>
> >> >> > > > YES YES YES!!!
> >> >> > > > I've found solution for that bug.
> >> >> > > > It's tricky but it works.
> >> >> > > > Place that on the begining of your code.
>
> >> >> > > > try{
> >> >> > > >BitmaptmpBitmap 
> >> >> > > > =Bitmap.createBitmap
> >> >> > > > (3200, 4800,
> >> >> > > > Config.ARGB_);
> >> >> > > > }catch(Throwable e){
> >> >> > > > e.printStackTrace();
> >> >> > > > System.out.println("CATCHED ");
>
> >> >> > > > }
>
> >> >> > > > I was fighting with that about 4 days.
> >> >> > > > Hope anyone is happy now, that was hell.
>
> >> >> > > > Regards,
> >> >> > > > avram.
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~--

[android-developers] Re: How to query for my current location?

2008-11-20 Thread Shibbs

Use Geocoder, the newly class introduced in 1.0 SDK.
Its helps in reverse geocodeing( i.e getting address from lat/lon)

http://code.google.com/android/reference/android/location/Geocoder.html

Thanks,
Shibbs

On Oct 17, 2:12 pm, Matthias <[EMAIL PROTECTED]> wrote:
> Well, in other words, this whole location manager thing is pretty
> broken in Android 1.0?
>
> From what I've read and experienced myself so far, it's pretty much
> like this:
>
> 1) LocationManager cannot be subclassed anymore, instead you use the
> debug bridge to send location fixes. Unfortunately, this thing is
> broken in two ways: Firstly, it only works on systems with a US locale
> (?? sounds odd, but I can definitely tell it does not work for me...),
> and secondly, the proclaimed "geo" command from the tools/ folder
> isn't even there...!
>
> 2) In order for LocationManager.getLastKnownLocation() to actually
> work, one has to register a listener, although this may not even what
> the programmer needs -- I surely don't want it, I want to poll for
> updates only on well-defined occasions. In fact, I believe this whole
> location listener thing is a bad idea, because it will result in each
> and every location-aware Android app running its own
> ListenForLocationUpdatesService, in order to always have access to the
> latest known location... yuck.
>
> Is that correct so far? If so, I have to say I am pretty much
> disappointed with the progress Android makes.

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