Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old December 12th, 2009, 09:54 AM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: Nov 2009
Location: Philly
Posts: 156
 
Device(s): Moto Droid
Carrier: Not Provided

Thanks: 0
Thanked 17 Times in 2 Posts
Default Apk files?

Does anyone know if there is a way I can unzip applications from my phone just to view the code so I can adapt it for personal use and repackage it?

I can't seem to find where apk files are located on my droid. Any advice would be great.

__________________
DARK SE 24K THEME
DARK BASE + ColorSwap Themes
Checkout Koush's RM for up to date themes for CyanogenMod for Droid
Thank me if you wanna
krazykrivda is offline  
Reply With Quote
sponsored links
Old December 14th, 2009, 08:08 AM   #2 (permalink)
Member
 
eclipsed4utoo's Avatar
 
Join Date: Nov 2009
Location: Florence, SC
Posts: 435
 
Device(s): Motorola Droid
Carrier: Not Provided

Thanks: 9
Thanked 27 Times in 11 Posts
Default

For the most part, any application that you download from the Market is protected so that you can't remove it from the device.

And let me get this straight, you want to take an application that somebody else wrote, be able to open it and look at the code, change the code, then use that? Ever heard of software piracy? If the developer wants you to see the code, they will upload it to the internet for downloading.
__________________
If you like MotoTorch LED, you could Donate With Paypal toward its continued development.

You can also buy the Donation version of MotoTorch LED from the Android Market.

Use Barcode Scanner or Shop Savvy to scan my avatar.
eclipsed4utoo is offline  
Reply With Quote
Old December 14th, 2009, 08:49 AM   #3 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,221
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Carrier: Not Provided

Thanks: 31
Thanked 132 Times in 100 Posts
Default

eclipsed4utoo,
go easy on the lad.

krazykrivda,
a couple of points for you:
-- Using a program such as ASTRO you can copy apps (the apk files) to your sdcard, which you could then copy to your pc.
-- The apk files are binaries compiled from source; they do not contain their source code. On other words, the point above is kinda moot.
-- Even if you could access the source code, that would not necessarily make you a pirate; in fact, looking at other people's code is quite educational. BUT, before you USE any code you find, I would strongly suggest you check out the licenses of those apps to ensure you don't violate your rights.

If you want to look at Android code, I would recommend looking into The Andoid Developer's Guide, in particular the Tutorials and Sample Code; or search sites like SourceForge for Android-based open source projects.
__________________
Don't forget to hit the "Thanks" button when someone helps you!!!
How To Ask Questions The Smart Way
-- 010\001\111 --
KlaymenDK is offline  
Reply With Quote
Old December 15th, 2009, 06:51 AM   #4 (permalink)
Member
Thread Author (OP)
 
Join Date: Nov 2009
Location: Philly
Posts: 156
 
Device(s): Moto Droid
Carrier: Not Provided

Thanks: 0
Thanked 17 Times in 2 Posts
Default

Quote:
Originally Posted by eclipsed4utoo View Post
For the most part, any application that you download from the Market is protected so that you can't remove it from the device.

And let me get this straight, you want to take an application that somebody else wrote, be able to open it and look at the code, change the code, then use that? Ever heard of software piracy? If the developer wants you to see the code, they will upload it to the internet for downloading.
I somewhat understand piracy, actually. If I could alter certain programs (that I obtain by legal means) for my PERSONAL use I'm pretty sure that doesn't break any laws or ethical codes. Now, on the other hand if i took my changes and redistributed as my own work, I can see where you are coming from.

Also, if I 'copied' code on how to call a particular function, I'm pretty sure that is within boundaries as well. Something like "toggling bluetooth on/off" I'd feel is pretty standard.

Was not trying to light any fires with this post.

In truth, what I wished to accomplish was be able to have certain programs, when launched, also toggle a few settings such as GPS on/off etc. If I could access source code, and through the necessary line or two in, I'd be golden. I've looked into 'profilers' and Locale isn't cutting it for me, neither where many alternatives. The closes i got was 'Toggle Settings" although having it constantly wait to intercept intent in the background eats up some unnecessary battery, and still doesn't necessarily accomplish what I wish.

Thank you for your input though.
krazykrivda is offline  
Reply With Quote
Old December 16th, 2009, 02:39 AM   #5 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,221
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Carrier: Not Provided

Thanks: 31
Thanked 132 Times in 100 Posts
Default

Quote:
Originally Posted by krazykrivda View Post
what I wished to accomplish was be able to have certain programs, when launched, also toggle a few settings such as GPS on/off etc.
Hmm, I have an app for exactly that on my Palm (called Blue Fang). I wonder if Android has 'hooks' to let a background service know which apps are being launched? If so, you could implement your idea as a 3rd-party app, in the process making the idea more generic and more easily applied to any additional apps you'd like to use it with.
KlaymenDK is offline  
Last edited by KlaymenDK; December 16th, 2009 at 02:41 AM.
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:01 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.