Question to app programmers - EVO 4G Q&A, Help & Troubleshooting

What is the reason behind naming apk "com.WORDHERE.APPNAMEHERE" is there a certain pattern to follow for this? Thank You!

Thread moved to Q&A.

It defines the namespace for your app. Usually it is a reversed version of your domain name. For instance, my domain is webosnerd.com, so my packages are com.webosnerd.appname. I think it's a Java thing.
Sent from my PC36100 using Tapatalk

ald3n3 said:
What is the reason behind naming apk "com.WORDHERE.APPNAMEHERE" is there a certain pattern to follow for this? Thank You!
Click to expand...
Click to collapse
It all has to do with the way the file system is set up. If u look in the apk after its recompiled in the smali files Ull see a set of folders...first one will be com then the folder inside of that will be the com.here then the folder inside of that will be next like this com.here.next. meaning if u were looking in on ur computer it would look like this com/here/next. Its a way of calling files

thanks for the help guys! i'm gearing myself to make my first android app... or maybe i'll start with themes. Thanks!

ald3n3 said:
What is the reason behind naming apk "com.WORDHERE.APPNAMEHERE" is there a certain pattern to follow for this? Thank You!
Click to expand...
Click to collapse
Yes, it's a Java development pattern / best practice. Android apps are written using the Java language so most developers follow Java best practices when they develop for Android.
As to WHY it's a best practice: The .apk is just a .zip file that makes it easy to move the app around. The Android Market only has to keep track of one .apk file instead of the thousand of files that actually make up the application. Once the .apk file is on the device it is inflated back into a set of files/folders. When it does the unzipping, dots are replaced with /'s and we end up with something like:
/com/SuttCo/AppNumberOne/FolderA/file.jpg
/com/SuttCo/AppNumberOne/FolderB/file.jpg
/com/SuttCo/AppNumberOne/FolderC/file.jpg
/com/SuttCo/AppNumberTwo/FolderA/file.jpg
/com/SuttCo/AppNumberTwo/FolderB/file.jpg
As you can see... both SuttCo apps share the /com/SuttCo/ directory.
tl; dr; It's so things stay organized.

Related

At the last i made my custom ROM,now comes the questions?

Hello, atlast after 3days of download and work i have made a custom Rom that has my name on it with HTC Desire HD stuff and updates but now what i need to ask is :
1) how can i put my name Rom name in the Notification like RCMix or the others?
2) any easy way to make boot screens or animations or so found but that i can edit or anything?
3) any way to make a custem theme there is only the online thing and sadly i dont knw how to use it or its limited, i want like AuraxTSense is it possible?
4) if i have a update.zip file that has in it an .apk can i take it and add it to the app section and it will work normaly?
that is it for now thanks a lot for all the help i get and links....
To add your own version number, open the build.prop file and add it to the end of the 'Software version' line
To build themes from scratch, I believe that you'd have to rip apart the res-framework.apk.
EddyOS said:
To add your own version number, open the build.prop file and add it to the end of the 'Software version' line
Click to expand...
Click to collapse
this part i solved it in the kitchen but i mean when u drag the notification bar from top to bottom u will get RCMix or any other name i want to cutemiz it to my name
eden2812 said:
To build themes from scratch, I believe that you'd have to rip apart the res-framework.apk.
Click to expand...
Click to collapse
mmm ill give this a try and see what i can reach but are there tools to change or its just rip and have fun
If you change the .apk to .rar you can extract and see some jpegs and whatnot in their folders. This should be the one to edit.
Then again, these are the things I've picked up from the chatter between the more senior and tech-savvy.
You might want to look at this? http://forum.xda-developers.com/showthread.php?t=729867
eden2812 said:
If you change the .apk to .rar you can extract and see some jpegs and whatnot in their folders. This should be the one to edit.
Then again, these are the things I've picked up from the chatter between the more senior and tech-savvy.
You might want to look at this? http://forum.xda-developers.com/showthread.php?t=729867
Click to expand...
Click to collapse
there is no jpegs only .png and not what i want and what u gave me doesnt have anything to do with themes i have no idea why its themepro.... anyways ill look more into it but if there is something starigh to the point or video im thankfull im still searching

[Q] How to Mod

OK, I have been searching and searching. I can find a lot of places where they post mods but I was hoping there would be a walkthrough for first timers. I would like to start modding some of the apps on my phone. (AKA Widgets transparent or themed). is there a place I can find what files contain what images for HTC Sense? when I was playing with modding in windows mobile sense I found a lot of info but I can not seem to find too much here.
I believe these are the steps:
1. get apk
2. unzip and change images
3. repack apk
4. copy apk to /system/app
I am not sure how to repack a apk yet (any pointers would be great). I am not sure I am suppose to get the apk from the system folder or from the website? by copying it to the system folder is that enough? or do I have to install it?
Any little pointers would be great.
Thanks,
SoBBie
http://forum.xda-developers.com/showthread.php?t=916814
Everything you need to know is there. Read all of the guides. Any questions? Ask in that thread. They are very helpful.
Sent from my ADR6300 using XDA App
Thanks I will start there. and ask there.
SoBBie

Extract Defualy contact icon

You know the little android guy waving that you get for contacts that you haven't assigned a picture to. How can you extract that?
waxlrose said:
You know the little android guy waving that you get for contacts that you haven't assigned a picture to. How can you extract that?
Click to expand...
Click to collapse
Dont remember what apk its in. Its either in /system/app/systemui.apk, /system/framework/com.htc.resources.apk, or /system/framework/framework-res.apk. Use a zip manager like 7zip to open the apk and look for the pic file. When you find it, just copy and paste it to your desktop.
EDIT: Actually i think its in /system/app/phone.apk
Thread moved to Q&A, please post in appropriate forum in future.

Can't store external resources or create APK ready!

Hello! First of all sorry for my english.
So I've just learned how to create my Zooper Widget APK Template. So when i modify and export template everything looks good except that i can't store external resources or create apk zip ready file, its not possible to check that options even if i can save template. If i save template and open it again there aint any fonts or bitmaps, its only simple widget with standard font. I did put 1 number in my eclipse strings.xml file so that everyone can reserve template. Ive also tried to set it on 0 but that only gave me a message that author is not allowed to save template. Anyone have idea what I'm missing here ?
Thanks in advance!
Anyone?
BUMP!
Never mind , I've figured out.
how?
brokencarr00t said:
Never mind , I've figured out.
Click to expand...
Click to collapse
What did u do? I'm having the same problem. I modified an onyx widget but can't save the template or create apk.
brokencarr00t said:
Never mind , I've figured out.
Click to expand...
Click to collapse
I know it's an old thread, but how did you fix it?

Devdb archives?

Hello, since the removal of devdb, were there any efforts made to archive devdb content before it was deleted? Its such a shame that alot of hidden gems became lost media such as zit flasher got erased.
Milkman725 said:
Hello, since the removal of devdb, were there any efforts made to archive devdb content before it was deleted?
Click to expand...
Click to collapse
Technically nothing was deleted, the DevDB files just were not migrated to the new servers.
Its such a shame that alot of hidden gems became lost media such as zit flasher got erased.
Click to expand...
Click to collapse
They are to be available again according to this post.
Any updates to this may be posted in Post #1 or Post #2
Finally had some time to set this up!
DevDB downloads are available here: https://devdb.xda-developers.com/
https://devdb.xda-developers.com/
Tip:
Search for a filename or a unique part of the file name.
After you find one file copy the link and paste it somewhere like a search bar.
you will get a link like this.
https://devdb.xda-developers.com/3/1/8/0/otterx-u-boot_v2.01.zip
Remove the file name and this is the link to the folder with all files from that project.
https://devdb.xda-developers.com/3/1/8/0/
Or you can navigate to folders 3/1/8/0 for example.
I posted more here
DevDB Backup Server Tips
sd_shadow said:
https://devdb.xda-developers.com/
Tip:
Search for a filename or a unique part of the file name.
After you find one file copy the link and paste it somewhere like a search bar.
you will get a link like this.
https://devdb.xda-developers.com/3/1/8/0/otterx-u-boot_v2.01.zip
Remove the file name and this is the link to the folder with all files from that project.
https://devdb.xda-developers.com/3/1/8/0/
Or you can navigate to folders 3/1/8/0 for example.
Click to expand...
Click to collapse
Server seems to be a bit unstable at the moment.
When using the search function after tapping 2 or 3 characters the website freezes (tested on Firefox Beta and Chrome stable,both mobile). See attached screenshots.
Nevertheless nice to have it and I'm sure that are just some starting difficulties.
Wolfcity said:
Server seems to be a bit unstable at the moment.
When using the search function after tapping 2 or 3 characters the website freezes (tested on Firefox Beta and Chrome stable). See attached screenshots.
Click to expand...
Click to collapse
same here, if you wait a bit it usually allows you to continue typing, or try pasting text.
Actually it is just not really meant for scale. The search is slow and likely involves a lot of Javascript so it's freezing the browser.
There are just a lot of files that are only important for a handful of people that I can tell, I wanted to keep them accessible. If anyone wants to mirror them, please let me know and I will rsync them to your server. It's about 2.7TB
bitpushr said:
Actually it is just not really meant for scale. The search is slow and likely involves a lot of Javascript so it's freezing the browser.
There are just a lot of files that are only important for a handful of people that I can tell, I wanted to keep them accessible. If anyone wants to mirror them, please let me know and I will rsync them to your server. It's about 2.7TB
Click to expand...
Click to collapse
It works just have to be patient.

Categories

Resources