Help with the getExtra method

10 replies [Last post]
millermax
User offline. Last seen 1 year 37 weeks ago. Offline
Joined: 11/19/2009

im using the below code :

Location loc = (Location)intent.getExtra("location");
Double lat = loc.getLatitude()*1E6;
Double lng = loc.getLongitude()*1E6;

but than i got the warning that the method "getExtra" is deprected ... can someone know how to convert this code to the new code ?
Thanks !

aedanadrien
User offline. Last seen 5 days 7 hours ago. Offline
Joined: 05/11/2012
You might be able to use

You might be able to use Parcelable but if what data is. Otherwise, you can use an DataOutputStream of some sort and manage the process yourself. There are many ways to 'serialize' or persist data; the most appropriate depends on what the data is. Rochester MN lawyer

Sophie295
User offline. Last seen 14 weeks 1 day ago. Offline
Joined: 02/07/2012
PDF Password Recovery for Mac

PDF Password Recovery for Mac is a small, easy-to-use yet professional tool to recover PDF password and restrictions. With PDF Password Remover for mac, you can remove pdf copying and printing restrictions, and open password from encrypted PDF files effortlessly and directly. PDF Password Recovery gives Mac Users a solution to unlock protected PDF files without requiring the password, which provides a way to help users to remove PDF document password and protections quickly when losing PDF passwords protection. Mac PDF Password Recovery works fast and supports batch decrypting up to 50 simultaneously.

This PDF Password Recovery for Mac can also remove owner password which is used to protect PDF files from editing, copying and printing and remove user password which is used to protect PDF files from opening. For owner password, Mac PDF Password Recovery can remove it directly without requiring the password, but if the PDF files are encrypted by user password, you need the authorized password to remove PDF DRM Mac OS X.

PDF Password Cracker for Mac is the best Mac PDF Password Removal in the market now. This smart mac pdf password cracking software embodies its professional functions in many ways such as Remove copying and printing restrictions from encrypted PDF files directly, Remove open password from encrypted PDF files (with authorized password), Support batch decrypting 50 PDF files at one time, Decrypt a 500-page encrypted PDF file within 1 minute, Support drag-and-drop operation, etc.

Batch decryption and drag-and-drop operation offered by PDF Password Cracker for Mac will save Mac users lots of precious time by quickly recovering PDF documents when losing copying and printing PDF passwords.

PDF Password Remover for Mac is a small yet powerful PDF password removing application which can be used to crack password protected Adobe Reader PDF by removing the "owner password" used for protecting PDF files from editing, copying, printing, selecting text and graphics (and copying them into the Clipboard), or adding/changing annotations and form fields in seconds. Afterwards, the decrypted PDF can be read in any PDF Reader(e.g. Adobe Acrobat Reader of all versions) without any restrictions.

Secondly, PDF Password Remover for Mac allows you to unlock PDF "user password" with the premise of knowing the open password to make the decrypted PDF document unprotected from the moment. Supported by batch-decryption, Drag and Drop, various PDF formats and languages, Mac users can open kinds of encrypted PDF file rapidly in full quality within only three steps, thus greatly improving our work efficiency.

tande71
User offline. Last seen 15 weeks 5 days ago. Offline
Joined: 01/26/2012
stamina inmotion

I needed help with the getExtra method and found it here. Thanks!

Webmaster of stamina inmotion

1xuntong
User offline. Last seen 20 weeks 5 hours ago. Offline
Joined: 12/25/2011
miu miu

The wind bun fog head inclined survivors in bags miu miu , don't a dew rose. Show the charm of the peoples, girth nana curl.

The thin green smoke smoke yarn small ao, broken beautiful cui yarn dew lily skirt, hair fleeciness as fog also don't prada new bags

passionlab
User offline. Last seen 37 weeks 6 days ago. Offline
Joined: 05/25/2011
can you please provied any

can you please provied any code example for using the "getParcelableExtra" method ?
i cant find example for this..
Thanks !
Buy Halloween Costumes

marioromano
User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 04/27/2011
Andoid developers can use

Andoid developers can use Intent.getExtras() method instead of using intent.getExtra(). This method will return map of all the extra datas. Mario Romano

jibkiller
User offline. Last seen 39 weeks 11 hours ago. Offline
Joined: 12/08/2010
spent some time browsing

spent some time browsing forums about hacking android,.. and now I know, that it won't run on mips Media Safes

hobbs
User offline. Last seen 26 weeks 2 days ago. Offline
Joined: 11/12/2007
Try using:

getParcelableExtra(String)
http://code.google.com/android/reference/android/content/Intent.html#getParcelableExtra(java.lang.String)

Good luck!

millermax
User offline. Last seen 1 year 37 weeks ago. Offline
Joined: 11/19/2009
example?

can you please provied any code example for using the "getParcelableExtra" method ?
i cant find example for this..
Thanks !

dnmtnk
User offline. Last seen 2 years 25 weeks ago. Offline
Joined: 11/20/2009
code

I think you just have to put something like this:

Location loc = (Location) intent.getParcelableExtra("location"
Double lat = loc.getLatitude()*1E6;
Double lng = loc.getLongitude()*1E6;

As location inherited from Parcelable, it must be ok. Another way to do it is putting latitude and longitude as two different extras as integers.