[Must See Guide] Make your app transparent as u like - Java for Android App Development

THIS IS GUIDE TO ADD DIFFERENT TRANSPARENCY LAVELS TO YOUR ANDROID APP...
JUST ADD THE FOLLOWING CODES TO YOUR APP AND U R DONE
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WindowManager.LayoutParams params = this.getWindow().getAttributes();
/**
* 0.8f sets the activity to 80% opaque;
* similarly if u decrease the float value then it will increase your transparency
*/
params.alpha = 0.8f;
}
AND IN YOUR MANIFEST FILE REPLACE "ANDROID THEME" WITH THESE LINES
android:theme="@android:style/Theme.Translucent.NoTitleBar"
OR SIMPLE CHOOSE TRANSLUCENT THEME FOR YOUR APP
I HAVE ATTACHED A " SAMPLE TRANSPARENCY " PROJECT ALONG WITH A SIMPLE COMPILED APK

Please add [GUIDE] to the title of the thread. I thought it was a question.

Please make it as a downloadable txt file...
Sent from my Xperia U using xda app-developers app

Now see the attachements for better understanding
Now i have attached a sample transparency project and a sample apk...

anurag.dev1512 said:
THIS IS GUIDE TO ADD DIFFERENT TRANSPARENCY LAVELS TO YOUR ANDROID APP...
JUST ADD THE FOLLOWING CODES TO YOUR APP AND U R DONE
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WindowManager.LayoutParams params = this.getWindow().getAttributes();
w.getDefaultDisplay().getSize(size);
/**
* 0.8f sets the activity to 80% opaque;
* similarly if u decrease the float value then it will increase your transparency
*/
params.alpha = 0.8f;
}
AND IN YOUR MANIFEST FILE REPLACE "ANDROID THEME" WITH THESE LINES
android:theme="@android:style/Theme.Translucent.NoTitleBar"
OR SIMPLE CHOOSE TRANSLUCENT THEME FOR YOUR APP
I HAVE ATTACHED A " SAMPLE TRANSPARENCY " PROJECT ALONG WITH A SIMPLE COMPILED APK
Click to expand...
Click to collapse
Tnx for the code. :good:

thanks for complement
a-ssassi-n said:
Tnx for the code. :good:
Click to expand...
Click to collapse
if u really liked my code then u will obviously like me transparent themed app...
https://play.google.com/store/apps/details?id=org.ultimate.tasker

anurag.dev1512 said:
if u really liked my code then u will obviously like me transparent themed app...
https://play.google.com/store/apps/details?id=org.ultimate.tasker
Click to expand...
Click to collapse
Already downloaded and used.
nice work.

anurag.dev1512 said:
if u really liked my code then u will obviously like me transparent themed app...
https://play.google.com/store/apps/details?id=org.ultimate.tasker
Click to expand...
Click to collapse
IDE says unknown variable w and size
Sent from my GT-S5570 using XDA Premium 4 mobile app

anurag.dev1512 said:
THIS IS GUIDE TO ADD DIFFERENT TRANSPARENCY LAVELS TO YOUR ANDROID APP...
JUST ADD THE FOLLOWING CODES TO YOUR APP AND U R DONE
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WindowManager.LayoutParams params = this.getWindow().getAttributes();
w.getDefaultDisplay().getSize(size);
/**
* 0.8f sets the activity to 80% opaque;
* similarly if u decrease the float value then it will increase your transparency
*/
params.alpha = 0.8f;
}
AND IN YOUR MANIFEST FILE REPLACE "ANDROID THEME" WITH THESE LINES
android:theme="@android:style/Theme.Translucent.NoTitleBar"
OR SIMPLE CHOOSE TRANSLUCENT THEME FOR YOUR APP
I HAVE ATTACHED A " SAMPLE TRANSPARENCY " PROJECT ALONG WITH A SIMPLE COMPILED APK
Click to expand...
Click to collapse
Hi Bro Can you please elaborate more on how to add these codes as I am not aware of this so can u please guide properly with steps to do.
Do i need any application on my laptop or mobile
pls reply
Thanks

That's for your own app only. So you don't need anything expect the normal developer stuff (eclipse or androidstudio). Then just add above to your Activity and below to your manifest.

arpitkh96 said:
IDE says unknown variable w and size
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
hi bro... just see the attachments that i have attached along with with sample apk...
and line plzz make w.getDefaultDisplay().getSize(size); as a comment and u r done.....

EmptinessFiller said:
That's for your own app only. So you don't need anything expect the normal developer stuff (eclipse or androidstudio). Then just add above to your Activity and below to your manifest.
Click to expand...
Click to collapse
yeah bro theaming and modding of the app is done by the developer side and adjusting the transpareny of the app is one of the theming of your app and adds beauty..to your app..........

i am not able to get your question properly ...
you mean what kind of software u need to develop apps for android or what...
plzzz ask...

Related

apk reverse engineering

Hello and congratulations for the forum.
I'm trying to recognize malware starting from static code android in particular in permissions.
When I try to decompile apps like WhatsApp unfortunately many strings are obscured, particularly getSystemService method arguments.
How can I do to make them readable?
thanks for your attention
How do you decompile?
Sent from my GT-S5360 using xda app-developers app
I use dex2jar to get source java code
It's illegal to do so
I am a researcher
How antivirus are developed without knowing virus signature?
We call it "Ethical hacking". Eg: SQL injection technique to assess security vulnerabilities of web app.
Sent from my GT-S5360 using xda app-developers app
there is not a way to decrypt string value in the source code please? Yes, this is for ethical hacking, of course
I want to catch whatsapp notification to analyze the text of the message in real time, for insert a routine I want to catch this event and I want decompile code
Franceso thought you would that little thanks button for supporting your views
Sent from my GT-S5360 using xda app-developers app
sure,
you can help me please?
This should be your answer:
dsgwords.blogspot.com/2013/03/android-runtime-class-loading.html?m=1#!/2013/03/android-runtime-class-loading.html
Also try decrypting input.jar in andriod services framework path
Sent from my GT-S5360 using xda app-developers app
practically to get the file. dex should I do
/ dx - dex - output = output.jar input.jar
and then use dex2jar and decompiler?
this way I can see all encrypted strings of WhatsApp?
Many thanks
This is what I wanted to do:
decompile WhatsApp
find the code snippet to send notification
before sending the notification to send the contents of the message to my program
and then send the notification normally
Do you think it possible?
When decompilo WhatsApp many strings are encoded in copdice source, this is my problem.
This in an example:
String[] arrayOfString = new String[2];
char[] arrayOfChar1 = "3&j&>;, =?&-` 3+z=><f]\027\003\027\[email protected]\013\036\034".toCharArray();
many many thanks
Good question. I have not tried decompile procedure. I wil refer my friend.
I suggest one thing. You compile a java piece of string code. Also a string array. Decompile and see. Then make apk. Decompile and see. You get difference then we see if we can apply any charcode standards like ascii.
Sent from my GT-S5360 using xda app-developers app
Please try below post friend
Did you try this:
http://androidorigin.blogspot.in/2011/02/dex-format-to-jar-format.html
Open Source
http://code.google.com/p/dex2jar/
http://code.google.com/p/smali/
and an example
http://code.google.com/p/smali/source/browse/examples/HelloWorld/HelloWorld.smali
Also I found string encrypters being used in java programs to defeat decompile or disassemble. Need to find out if whatsapp use any such algorithm like SHA. I leave it to you just research some more.
When I get time I will try for myself and let you know. Have official work thanks buddy.
(Mods please let me know instructions on posting outside urls or the rules pertaining to it.)
PS: Remember to use same java compiler version that used to compile whatsapp. After you get jar, you can check which version created edit.
To know go to:
jar file > Open with Winzip or WinRar (Any archiver Winrar preferred. Do not double click it will execute) -> META-INF directory -> MANIFEST.MF
You should see something like this
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_08-b03 (Sun Microsystems Inc.)
Hope that helps.
Use dex2jar to convert the APK into a standard JAR file and then JD-GUI to view the source code. However if the application was compiled with proguard obfuscation then you will have a very hard time to understand the code.

Execute commands in AsyncTask

Hi everybody! I'm developing a Root app and I want to add an AsyncTask that runs a Root command in background, and, onPreExecute and onPostExecute runs a processdialog. Can anybody teach me how to do it?
Enviado desde mi Galaxy Mini Plus 4G usando Tapatalk 2
DannyGM16 said:
Hi everybody! I'm developing a Root app and I want to add an AsyncTask that runs a Root command in background, and, onPreExecute and onPostExecute runs a processdialog. Can anybody teach me how to do it?
Enviado desde mi Galaxy Mini Plus 4G usando Tapatalk 2
Click to expand...
Click to collapse
I have seen another similar post of yours.
Here is a relatively simple way of showing and hiding a progress. There are a number of ways of doing this as you have probably already seen, this is just another way. Your ProgressBar (xml) needs to exist in your layout.
Code:
new AsyncTask<Void, Void, Void>() {
[user=439709]@override[/user]
protected void onPreExecute() {
((View) view.findViewById(R.id.your_progressbar_in_layout)).setVisibility(View.VISIBLE);
}
[user=439709]@override[/user]
protected Void doInBackground(Void... params) {
// Whatever you are executing off the UI thread
return null;
}
[user=439709]@override[/user]
protected void onPostExecute(Void result) {
((View) view.findViewById(R.id.your_progressbar_in_layout)).setVisibility(View.GONE);
}
}.execute();

[Q] Fullscreen Lockscreen

Is there any chance sirs to make our lockscreen fullscreen? without using widget lockers? just pure mod on framework or smali? because i try many codes like putting an activity in manifest
<activity android:theme="@style/Theme.NoTitleBar.Fullscreen" android:name="com.android.internal.widget.LockPatt ernView" />
and also itry to put that theme in the xmls of keyguards. but nothing happened. I also try modifying framework.jar, and I saw a final static blahblah status bar height = 0x(something i dont remember) and i change it to 0x0 . but nothing happend also... Im not good at smali sirs. so anybody can help me? any informations will be appreciated
(I want only sirs the lockscreen the fullscreen. lockscreen only sirs)
tentenponce said:
Is there any chance sirs to make our lockscreen fullscreen? without using widget lockers? just pure mod on framework or smali? because i try many codes like putting an activity in manifest
<activity android:theme="@style/Theme.NoTitleBar.Fullscreen" android:name="com.android.internal.widget.LockPatt ernView" />
and also itry to put that theme in the xmls of keyguards. but nothing happened. I also try modifying framework.jar, and I saw a final static blahblah status bar height = 0x(something i dont remember) and i change it to 0x0 . but nothing happend also... Im not good at smali sirs. so anybody can help me? any informations will be appreciated
(I want only sirs the lockscreen the fullscreen. lockscreen only sirs)
Click to expand...
Click to collapse
It's not really possible for our Young, the only way is by using lockscreen apps
SubZero1238 said:
It's not really possible for our Young, the only way is by using lockscreen apps
Click to expand...
Click to collapse
Uhm.. ok sir. tnx for the info. I'll try my best to make it.
tentenponce said:
Is there any chance sirs to make our lockscreen fullscreen? without using widget lockers? just pure mod on framework or smali? because i try many codes like putting an activity in manifest
<activity android:theme="@style/Theme.NoTitleBar.Fullscreen" android:name="com.android.internal.widget.LockPatt ernView" />
and also itry to put that theme in the xmls of keyguards. but nothing happened. I also try modifying framework.jar, and I saw a final static blahblah status bar height = 0x(something i dont remember) and i change it to 0x0 . but nothing happend also... Im not good at smali sirs. so anybody can help me? any informations will be appreciated
(I want only sirs the lockscreen the fullscreen. lockscreen only sirs)
Click to expand...
Click to collapse
yep its possible
try out this
http://forum.xda-developers.com/showthread.php?t=2689230

Which Smali Generate Tab in framework.jar

Hello Devs I am Developing Rom Called Zero Which smali generate the tabs in framework.jar and Which Public .xml are follow in framework.jar help pls
Great... >_< Waiting For the rom to be release >_<
Thanax But i need the answer
shadman0 said:
Hello Devs I am Developing Rom Called Zero Which smali generate the tabs in framework.jar and Which Public .xml are follow in framework.jar help pls
Click to expand...
Click to collapse
Normaly This Smalis Of Framework.jar Generates/Implements Tabs In Android Apps (As Like Our Tabbed Settings)-
android/view/GestureDetector
(Implements The Swipe/Gesture View)
android/view/View
(Implements The View Style Of Tabs)
android/widget/TabHost
(Generate The Tabs)
There Are Also Many Child Implements In Framework.jar,To Generate Tabs,So For Detailed Information You Have To Learn Android Developing....Go To Developers.android.com To Learn..
TECHNO_THUNDER said:
Normaly This Smalis Of Framework.jar Generates/Implements Tabs In Android Apps (As Like Our Tabbed Settings)-
android/view/GestureDetector
(Implements The Swipe/Gesture View)
android/view/View
(Implements The View Style Of Tabs)
android/widget/TabHost
(Generate The Tabs)
There Are Also Many Child Implements In Framework.jar,To Generate Tabs,So For Detailed Information You Have To Learn Android Developing....Go To Developers.android.com To Learn..
Click to expand...
Click to collapse
Which smali in framework.jar that control tabs
shadman0 said:
Hello Devs I am Developing Rom Called Zero Which smali generate the tabs in framework.jar and Which Public .xml are follow in framework.jar help pls
Click to expand...
Click to collapse
explain
TECHNO_THUNDER said:
Normaly This Smalis Of Framework.jar Generates/Implements Tabs In Android Apps (As Like Our Tabbed Settings)-
android/view/GestureDetector
(Implements The Swipe/Gesture View)
android/view/View
(Implements The View Style Of Tabs)
android/widget/TabHost
(Generate The Tabs)
There Are Also Many Child Implements In Framework.jar,To Generate Tabs,So For Detailed Information You Have To Learn Android Developing....Go To Developers.android.com To Learn..
Click to expand...
Click to collapse
Which smali need to modify for themeing tab in framework.jar
Never looked in framework.jar but in framework-res.apk it is tab_indicator.xml and the one below it .I dont remember tab..cml
san122 said:
Never looked in framework.jar but in framework-res.apk it is tab_indicator.xml and the one below it .I dont remember tab..cml
Click to expand...
Click to collapse
Hey bro i need smali
shadman0 said:
Which smali need to modify for themeing tab in framework.jar
Click to expand...
Click to collapse
Can You Please Explain,What Do You Want To Do With This?
TECHNO_THUNDER said:
Can You Please Explain,What Do You Want To Do With This?
Click to expand...
Click to collapse
Hey bro framework.jar is source of framework-res.apk which have to modify
shadman0 said:
Hey bro framework.jar is source of framework-res.apk which have to modify
Click to expand...
Click to collapse
What will you do with your tab ?
Sent from my GT-S5360 using xda app-developers app
Here u can see some tabs these are cannot theme by decopile so these only can be modify by framework-res.apk here the tabs resource and framework.jar source of tab which smali is the source of tab
shadman0 said:
Here u can see some tabs these are cannot theme by decopile so these only can be modify by framework-res.apk here the tabs resource and framework.jar source of tab which smali is the source of tab
Click to expand...
Click to collapse
If You Are Asking About Job Manager Tabs,The Background and Tab Selected/Unselected are *.9.png Images.
And For The Text View Bug Of The Tabs,Just Resize(Small) The Icons That You Are Using In The Tab..
TECHNO_THUNDER said:
If You Are Asking About Job Manager Tabs,The Background and Tab Selected/Unselected are *.9.png Images.
And For The Text View Bug Of The Tabs,Just Resize(Small) The Icons That You Are Using In The Tab..
Click to expand...
Click to collapse
Hey our rom will be Text tab but in Settings Jobmanger Contacts and phone will be icon
shadman0 said:
Hey our rom will be Text tab but in Settings Jobmanger Contacts and phone will be icon
Click to expand...
Click to collapse
Ok,So You Mean That You Wanna Remove The Texts From The Tabs??
TECHNO_THUNDER said:
If You Are Asking About Job Manager Tabs,The Background and Tab Selected/Unselected are *.9.png Images.
And For The Text View Bug Of The Tabs,Just Resize(Small) The Icons That You Are Using In The Tab..
Click to expand...
Click to collapse
Yes

Theming Help

can someone tells me guide to edits framework of galaxy y? (I means to add theme, etc) Thanks
GalKill said:
can someone tells me guide to edits framework of galaxy y? (I means to add theme, etc) Thanks
Click to expand...
Click to collapse
Sorry this question is too general
First you need to decide what exactly it is you want to do
Next type into google what it is you want to do and add xda on the end (you can add galaxy y on the end too if you want to search galaxy y threads) - eg how to add brightness slider xda galaxy y
marcussmith2626 said:
Sorry this question is too general
First you need to decide what exactly it is you want to do
Next type into google what it is you want to do and add xda on the end (you can add galaxy y on the end too if you want to search galaxy y threads) - eg how to add brightness slider xda galaxy y
Click to expand...
Click to collapse
Sorry sir :'( But how to change height name banner and change the icons?
GalKill said:
Sorry sir :'( But how to change height name banner and change the icons?
Click to expand...
Click to collapse
hight will be in xml file and png will be in res folder
cant tell you which xml or what the name of the png is you will have to decompile the apk you want to mod and look through it
marcussmith2626 said:
hight will be in xml file and png will be in res folder
cant tell you which xml or what the name of the png is you will have to decompile the apk you want to mod and look through it
Click to expand...
Click to collapse
Sir,Please help me also?
marcussmith2626 said:
hight will be in xml file and png will be in res folder
cant tell you which xml or what the name of the png is you will have to decompile the apk you want to mod and look through it
Click to expand...
Click to collapse
Can u give me the specific directory of the folder,please?
GalKill said:
Can u give me the specific directory of the folder,please?
Click to expand...
Click to collapse
I cant because I dont have the apk nor can I really help you - you will just have to look through the xml untill you come across the line for thing you wish to change the height of
Same for the png - look through the res folder untill you see the png you wish to change
marcussmith2626 said:
I cant because I dont have the apk nor can I really help you - you will just have to look through the xml untill you come across the line for thing you wish to change the height of
Same for the png - look through the res folder untill you see the png you wish to change
Click to expand...
Click to collapse
But it's appear on all apps; I think the problem is on the framework-res.apk. It's miniROM touchwiz nature UX
GalKill said:
But it's appear on all apps; I think the problem is on the framework-res.apk. It's miniROM touchwiz nature UX
Click to expand...
Click to collapse
then look in the framework - probably in styles.xml
you can try <item name="listPreferredItemHeight">64.0dip</item>
I presume thats the gap between items in a list/the height of each item
marcussmith2626 said:
then look in the framework - probably in styles.xml
you can try <item name="listPreferredItemHeight">64.0dip</item>
I presume thats the gap between items in a list
Click to expand...
Click to collapse
How about to make it into stock-like ? (No icon, just a banner with the app name )
GalKill said:
How about to make it into stock-like ? (No icon, just a banner with the app name )
Click to expand...
Click to collapse
most likely will require smali change as the smali will probably refer to a public value for the png or it could be a case of it just being refered as a drawable value in a drawable/layout xml - again you will have to look
without knowledge or understanding of what you are looking at it will be very hard for you to do - sorry

Categories

Resources