Related
This was the reason why I created this App:
Why should, Advanced setting added to my settings app??? Why cant I put them all in a separate app just like another settings app???
Click to expand...
Click to collapse
And here I go with all new app called SETTINGS PLUS. All ROM developers can put their Advanced settings right over here...
So, how can I do that???
ChangeLog:
Version 2:
* Fixed some issues
* Now you can add 'Long press Back to Kill" like options right in this APP.
Version 1:
* Advanced settings from Settings.apk can be put in this small App.
Click to expand...
Click to collapse
Implementation:-
Here are the steps to be implemented...
Step 1: Download attached Settings_Plus.apk below
Step 2: Now Decompile Settings_Plus.apk.. Below are the commands:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 3: If you want icon before any option, add icon image to /res/drawable-hdpi folder. (Better to have good icon size, for reference you can use icon.png size attributes)
Step 4: To add new preference to Settings_Plus, open /res/xml/preferences_header1.xml in NOTEPAD++
You should see something like this:
Explanation of Each Tag and purpose:
Step 5: This is it. Now, compile your apk and SIGN IT. If you don’t sign it, you can’t install it. After signing, install Settings_Plus on your phone. Now, your Settings_Plus app should display your list item as well...
Click to expand...
Click to collapse
Where to find Package & Class Names???
For package Name:
Download and install APKSKY latest version from here : http://forum.xda-developers.com/showthread.php?t=1115021
You should put APKSPY in AAPT.EXE (used to decompile APK/Jar files) folder. And then drag and drop your APK. It will show you package name.
For Class / Activity Name:
From Above process, you can compile Settings_Plus.apk You can see AndroidManifest.xml file right in the first folder. Open it with NOTEPAD++
Above pic gives more information than words...
And Ofcourse, Compile and SIGN APK.
Click to expand...
Click to collapse
How to hide an app from Launcher ???
From AndroidMainfest.XML file, change below line
<category android:name="android.intent.category.LAUNCHER" />
Click to expand...
Click to collapse
as
<category android:name="android.intent.category.DEFAULT" />
Click to expand...
Click to collapse
And Ofcourse, Compile and SIGN APK.
Click to expand...
Click to collapse
Screenshots Attached
TroubleShooting : Hmmm, Whats WRONG???
Lets find it out here...
Go to application mainfest of the file that you want to put in Settings_Plus app. If you see something like this:
<intent-filter />
Click to expand...
Click to collapse
This means your app can not be launched. May be because it doesnt have any intent. I mean check this for the Mainactivity...
NOW change add intents as shown below:
<intent-filter >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter >
Click to expand...
Click to collapse
Now your app is visible... It took full overnight to find this out... If you don't do this, you will be getting PERMISSION DENIAL error.
Other possible exception is CLASS NOT FOUND. this means, the app you put in Settings_Plus doesn't have any associated app installed in your phone.
Click to expand...
Click to collapse
===>>> If you wanna try, then install All packages from "EXAMPLE PACKAGE" attached. Just install all of them as Normal Packages.
Screenshots Attached
Where's the download link ?
Download link is up
Some useful intent codes:
SystemUI Preferences for Tabbed View:
<header android:icon="@drawable/systemuipreferences" android:title="SystemUI Preferences">
<intent android:targetPackage="com.serajr.systemui.preferences" android:targetClass="com.serajr.systemui.preferences.SystemUIPreferencesActivity" />
</header>
On Screen Buttons:
<header android:icon="@drawable/osb" android:title="Navigation Buttons">
<intent android:targetPackage="cn.kyle.gn.NavBar" android:action="android.intent.action.MAIN" android:targetClass="cn.kyle.gn.NavBar.GnNavBarActivity" />
</header>
CPU Nofills:
<header android:icon="@drawable/overclock" android:title="CPU Overclock">
<intent android:targetPackage="it.sineo.android.noFrillsCPUClassic" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPUClassic.activity.MainActivity" />
</header>
QuickPanel Settings:
<header android:title="Quick Settings">
<intent android:targetPackage="com.lidroid.quickpanel" android:action="android.intent.action.MAIN" android:targetClass="com.lidroid.quickpanel.MainActivity" />
</header>
Long Press Back to kill:
<CheckBoxPreference android:title="@string/kill_app_longpress_back" android:key="kill_app_longpress_back" android:summary="@string/kill_app_longpress_back_summary" />
Click to expand...
Click to collapse
- Hit Thanks if I help you
nice ...like :cyclops:
Nice idea...ill try it soon.
Great Idea!
How to hide an app from Launcher..
Find in Manifest:
Code:
<category android:name="android.intent.category.LAUNCHER" /
Change to
Code:
<category android:name="android.intent.category.DEFAULT" /
Thanks for input
jader13254 said:
Great Idea!
How to hide an app from Launcher..
Find in Manifest:
Code:
<category android:name="android.intent.category.LAUNCHER" /
Change to
Code:
<category android:name="android.intent.category.DEFAULT" /
Click to expand...
Click to collapse
Thanks for the input... I will update first post... And, we can get class names from Manifest file. I will update that aswell...
srihari210 said:
Thanks for the input... I will update first post... And, we can get class names from Manifest file. I will update that aswell...
Click to expand...
Click to collapse
Thanks, after a little change your app works fine (sorry for pm).
Perfect work!
Looks awesome!
Gonna try it soon...!
Juz be the smart Geek
Added Example Package - Check it out
All,
I have added example package for your reference.. check it out... its working perfectly..
Cheers,
Srihari G.
Hi friend is a good idea...
Setting plus include in settins ... is a best idea...
Advanced settings menu ... OC, RAM manager
Sesme said:
Hi friend is a good idea...
Setting plus include in settins ... is a best idea...
Advanced settings menu ... OC, RAM manager
Click to expand...
Click to collapse
Yes, Anything... Everything (Any APP) you can put in Settings_Plus menu...
You know, if you want to put some shortcuts from settings, then, you can..
For example, directly open Connectivity option (MSC or MTC).. here you can code... This code should exist in SETTINGS.apk.. You just need to put the correct one and put in here.. thats it, so easy..
srihari210 said:
Yes, Anything... Everything (Any APP) you can put in Settings_Plus menu...
You know, if you want to put some shortcuts from settings, then, you can..
For example, directly open Connectivity option (MSC or MTC).. here you can code... This code should exist in SETTINGS.apk.. You just need to put the correct one and put in here.. thats it, so easy..
Click to expand...
Click to collapse
There is a little spelling mistake
Attached a SS, btw, you can make a cwm package if you want, for the included apps or the app will fc when they arent available
jader13254 said:
There is a little spelling mistake
Attached a SS, btw, you can make a cwm package if you want, for the included apps or the app will fc when they arent available
Click to expand...
Click to collapse
Haahaaa... I know, I will make spelling mistakes...
And, They can install EXAMPLE Package, if they want to try... Example Package works just fine... They just need to install as normal package...
May Be i should mention that in first post
srihari210 said:
Haahaaa... I know, I will make spelling mistakes...
And, They can install EXAMPLE Package, if they want to try... Example Package works just fine... They just need to install as normal package...
May Be i should mention that in first post
Click to expand...
Click to collapse
Ohh, sorry I just checked yesterday and it wasn't upload there! Nice!
Hi, all ! Great work
How to add Colored text ?
.....................................
android:textColor not working
.....................................
Thank you for good and usefully application
MicQo said:
Hi, all ! Great work
How to add Colored text ?
.....................................
android:textColor not working
.....................................
Thank you for good and usefully application
Click to expand...
Click to collapse
Hmm, I dont think, you can put colors to this text. I mean, its same like SETTINGS APP.
These are PREFERENCE Headers and NOT NORMAL LIST... Anyway, I havent tried coloring text, till now..
srihari210 said:
Hmm, I dont think, you can put colors to this text. I mean, its same like SETTINGS APP.
These are PREFERENCE Headers and NOT NORMAL LIST... Anyway, I havent tried coloring text, till now..
Click to expand...
Click to collapse
Thank you, helped me.
@srihari210
would you plz share the source codes?
tnx
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Q&A Thread
This thread is a place where you can talk about everything of this ROM: Q&A, bugs, problems, fixes... I created this thread late, but is never too late from this moment please make development thread cleaner.
Development thread: [ROM] ParanoidAndroid 3.99 RC2
Common Questions
Q: I'm on Gingerbread, how can I install this ROM?
A: First update to official Jelly Bean, then install as every custom ROM.
Q: How can I update this ROM?
A: Just download updated build and flash it. No need to wipe anything.
Q: I have GT-I9070P. Three questions for you:
Why my Mobile Network (called "RIL") is not working?
How can I make "I9070P" visible into device infos?
If I make a nandroid backup of stock ROM before install this, later when I try to restore it I get an error. Why and how I can solve this?
A: Simple
I9070 and I9070P are almost identical, except for NFC and RIL. You have to change tee folder under /system/lib of flashable zip to make RIL working.
I made a flashable zip containing tee folder for I9070P and a modded build.prop that shows I9070P instead of I9070. Just flash it.
Almost all custom ROMS are for I9070, when you make nandroid backup of stock ROM, recovery mode recognizes that the backup is of an I9070P. When you install these CM-based ROMS, your device is recognized as I9070. Just flash my flashable zip to make restore working.
You can find flashable zip here. Remember that if you install latest build or update to it, flash latest device-specific zip too!
Q: I'm here again with my GT-I9070P. I want to restore my stock ROM but I'm on CM10.1/10.2/11 ROM. Can I use your flashable zip to enable restore from these ROMS too?
A: Yes, you can. Just flash it, reboot recovery and restore your backup.
Q: On GT-I9070P, if I make a backup of your ROM to try another ROM, how can I restore if my device is recognized as I9070?
A: Just read the answer on top of this question.
Q: I have GT-I9070P. Why NFC doesn't work on CM-based ROMS?
A: NFC doesn't work because there are built on GT-I9070 source code that doesn't have NFC.
Q: If I change some libraries, can I make NFC working on GT-I9070P with these ROMS?
A: Impossible. NFC driver is a part of kernel.
Q: How can I add new tiles into Quick Settings panel?
A: Go to Settings>Toolbars>Quick Settings panel>Tiles and layouts>Add to add new tiles.
Q: Why there is no Torch app included into this ROM?
A: Torch app is not a part of ParanoidAndroid ROM. If I add it into builds is not Open Source because I'm using a prebuilt component from another ROM.
Q: I downloaded a Torch app from Play Store, but Torch tile into Quick Settings panel is not working. Why?
A: Tile is not working because is linked to CyanogenMod's Torch app. You can make it working using this flashable zip that installs CM Torch.
Q: I use BlackBerry Messaging app, why when I receive a notification its sound isn't played or device reboots?
A: BBM app doesn't fully work with CM-based ROMS.
Click to expand...
Click to collapse
Already have halo and pie?
yudroid said:
Already have halo and pie?
Click to expand...
Click to collapse
Look on the screen shots.
Yes , PIE and HALO are in this rom and both of than are working.
Sent from my GT-I9070P using xda app-developers app
Problem
Screenshot not work in the last release
Which one tee folder and build prop for I9070P file should i download ?
That 20130113 or 20130117 ?
Sent from my GT-I9070P using xda app-developers app
Can i use this tee and build prop file for another ROMs like ChuckyBeam ?
Sent from my GT-I9070P using xda app-developers app
tietto12719 said:
Problem
Screenshot not work in the last release
Click to expand...
Click to collapse
What error do you have?
MikiGry said:
Which one tee folder and build prop for I9070P file should i download ?
That 20130113 or 20130117 ?
Click to expand...
Click to collapse
If you install 20130113 build install 20130113 device-specific, the same for 20130117. If you update the ROM, for example from 20130113 to 20130117 install device-specific zip of the same day too
MikiGry said:
Can i use this tee and build prop file for another ROMs like ChuckyBeam ?
Click to expand...
Click to collapse
Only if you want to make restore of another ROM working on recovery, but you can't change another ROM's build.prop and boot it. If you want flashable tee only just download it from my Dev-Host account. It's available under "Misc" category.
Inviato dal mio GT-I9070
I tried to dual boot this rom with the dual boot method made by BOOTMGR, but whenever i tried to flash the rom, it gve me status 7 error. I'm sure that my download file is not corrupted and it can be flash normally, but it cant be flash for dual booting, it gave status 7 error. Anyone knows why?
[email protected] said:
I tried to dual boot this rom with the dual boot method made by BOOTMGR, but whenever i tried to flash the rom, it gve me status 7 error. I'm sure that my download file is not corrupted and it can be flash normally, but it cant be flash for dual booting, it gave status 7 error. Anyone knows why?
Click to expand...
Click to collapse
http://bit.ly/1ah5Nd4
That other partition does not have build.prop - and it is needed to read phone model in updater script.
shut_down said:
http://bit.ly/1ah5Nd4
That other partition does not have build.prop - and it is needed to read phone model in updater script.
Click to expand...
Click to collapse
Automatic search on Google haha :silly:
By the way, in my Paranoid I removed getprop lines to enable installation from 4.4 ROMS too
Why so a huge battery drain.
Battery was at 100percent i unplugged cable and let it alone after two haurs it was at 80percent.
I did nothing with the phone in these two hours.
Just 5 apps installed. Anf removed some other apps.
But its very smooth. Thanks anyway.
guyshelpmeplease said:
Why so a huge battery drain.
Battery was at 100percent i unplugged cable and let it alone after two haurs it was at 80percent.
I did nothing with the phone in these two hours.
Just 5 apps installed. Anf removed some other apps.
But its very smooth. Thanks anyway.
Click to expand...
Click to collapse
I'm not on Paranoid (testing first Mokee Open Source build), are you using 17/01 build? If yes, what about taking screenshots?
Tesla-MADAL93 said:
I'm not on Paranoid (testing first Mokee Open Source build), are you using 17/01 build? If yes, what about taking screenshots?
Click to expand...
Click to collapse
Yes 17/01 build.
guyshelpmeplease said:
Yes 17/01 build.
View attachment 2526402View attachment 2526405
Click to expand...
Click to collapse
So screenshots are working, what about governor/io scheduler? I'll diagnose this huge battery drain
Inviato dal mio GT-I9070
guyshelpmeplease said:
Yes 17/01 build.
View attachment 2526402View attachment 2526405
Click to expand...
Click to collapse
sorry for the question but how to make the settings like the tablet one ?
Tesla-MADAL93 said:
So screenshots are working, what about governor/io scheduler? I'll diagnose this huge battery drain
Inviato dal mio GT-I9070
Click to expand...
Click to collapse
I didnt change anything in governer/io scgeduler.
Just the standard ones.
guyshelpmeplease said:
I didnt change anything in governer/io scgeduler.
Just the standard ones.
Click to expand...
Click to collapse
If you can, test battery backup changing governor and scheduler to pegasusq and sio
Inviato dal mio GT-I9070
shadytarek_97 said:
sorry for the question but how to make the settings like the tablet one ?
Click to expand...
Click to collapse
Go into Settings, swype down status bar to reveal quick settings, press Hybrid tile then set dpi 240 and layout 720
Inviato dal mio GT-I9070
Tesla-MADAL93 said:
If you can, test battery backup changing governor and scheduler to pegasusq and sio
Inviato dal mio GT-I9070
Click to expand...
Click to collapse
Ok i will try
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Icon Helper
# THIS IS OUT_OF_DATE AND NOT SO GOOD , BETTER VERSION:
here is blaze's thread
# Are you themer / designer on Playstore ?
Your icon pack has alot of user and they love your work, unfortunately they're using differents apps, with custom version and their app can't get themed right now and they need contact you for update. But they need type name of apps, find your email and send a request, then you need collect activities for these apps, goto market, save image and make better icons, me too. So i decide write this tool to help us collect them faster and more easy for users :victory:
*My skill is not so good, but atleast it works ...
# Feature ?
♥ Doesn't waste your internal storage ( 300 KB )
♥ Doesn't waste your app drawer space ( no shortcut )
♥ No special permission
♥ Easy to request to your dev - just with few click ( i'm lazy , too )
♥ Automatically find only unthemed apps on user devices - not all of their apps !
tung91 said:
Icon Helper
# Are you themer / designer on Playstore ?
Your icon pack has alot of user and they love your work, unfortunately they're using differents apps, with custom version and their app can't get themed right now and they need contact you for update. But they need type name of apps, find your email and send a request, then you need collect activities for these apps, goto market, save image and make better icons, me too. So i decide write this tool to help us collect them faster and more easy for users :victory:
*My skill is not so good, but atleast it works ...
# Feature ?
♥ Doesn't waste your internal storage ( 300 KB )
♥ Doesn't waste your app drawer space ( no shortcut )
♥ No special permission
♥ Easy to request to your dev - just with few click ( i'm lazy , too )
♥ Automatically find only unthemed apps on user devices - not all of their apps !
# How to use
I've uploaded my app to Playstore , you just need open it from your icon app with code below, then it will do the rest !
* Add "Request" button to your icon pack and inside button click event, add these lines of code : http://pastebin.com/DwMLFtAh
* Remember to import missing package ( Eclipse will tell you ), add throws Throwable, IOException to click event !!!
* Remember to copy appfilter.xml to assets folder !!!
* Remember to change email and your icon pack name !!!
# Example - want to see how it works ?
* Install both these 2 apk :
- "Icon Helper" - or from Playstore if it's updated to 2.0.1
- "Rounded+" Icon Pack
* And try apply "Rounded+" on your devices, see what missing ?
* Go back, press Request icons, and all your unthemed app here, just select and send request !
Click to expand...
Click to collapse
Sir, its fr 4.0+.. Is der any way it can be ported to 2.0+? i really need it.. as i myself still use an old phn. so does many of the customers of my icon packs..
Blaze said:
Sir, its fr 4.0+.. Is der any way it can be ported to 2.0+? i really need it.. as i myself still use an old phn. so does many of the customers of my icon packs..
Click to expand...
Click to collapse
will add support for 2.x android next update :good:
Guide
Please provide a guide for this as i am very confused
Techsavage said:
Please provide a guide for this as i am very confused
Click to expand...
Click to collapse
the code is written above. assign dat to a button.
What should I do? it says that these methods are undefined
on line 6: AssetManager am = this.getAssets();
and 39: Toast failed = Toast.makeText(getApplicationContext(),
Cuetzpalomit said:
What should I do? it says that these methods are undefined
on line 6: AssetManager am = this.getAssets();
and 39: Toast failed = Toast.makeText(getApplicationContext(),
Click to expand...
Click to collapse
Can u provide a ss of the errors???
@tung91, will u mind if i write down a tutorial on how to integrate it inside the icon pack app so that it doesnt needs another app? i guess ur source file is open sourced. i got it and integrated it inside the app itself... so, Vanessaem told me to write a guide on that as many people havnt been able to figure out on how to merge ur source file wid der app...
Cuetzpalomit said:
What should I do? it says that these methods are undefined
on line 6: AssetManager am = this.getAssets();
and 39: Toast failed = Toast.makeText(getApplicationContext(),
Click to expand...
Click to collapse
Screenshot is better ...
Blaze said:
Can u provide a ss of the errors???
@tung91, will u mind if i write down a tutorial on how to integrate it inside the icon pack app so that it doesnt needs another app? i guess ur source file is open sourced. i got it and integrated it inside the app itself... so, Vanessaem told me to write a guide on that as many people havnt been able to figure out on how to merge ur source file wid der app...
Click to expand...
Click to collapse
Np, you can do it
Thanks for your help !
tung91 said:
Screenshot is better ...
Np, you can do it
Thanks for your help !
Click to expand...
Click to collapse
Thanks fr the permission....
tung91 said:
Screenshot is better ...
Np, you can do it
Thanks for your help !
Click to expand...
Click to collapse
Blaze said:
Can u provide a ss of the errors???
@tung91, will u mind if i write down a tutorial on how to integrate it inside the icon pack app so that it doesnt needs another app? i guess ur source file is open sourced. i got it and integrated it inside the app itself... so, Vanessaem told me to write a guide on that as many people havnt been able to figure out on how to merge ur source file wid der app...
Click to expand...
Click to collapse
here are some ss .
image1
image2
First I'd like to say thank you for making this app! :good: Especially that it excludes already styled apps is great :victory:
Second:
I get ArrayIndexOutOfBoundsException at this point (Line 19 in pastebin) which FC's the app:
Code:
String tmp = myparser.getAttributeValue(null,"component").split("/")[1];
when reading this from my appfilter.xml (this styles the app drawer in Nova Launcher):
Code:
<item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="ic_allapps" />
Probably because there is no forward slash as split.
However it it easy to fix with a try-catch-block and the app continues:
Code:
if(name.equals("item"))
{
try //Try Catch Block to prevent FC when reading something like this: <item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="ic_allapps" />
{
String tmp=myparser.getAttributeValue(null,"component").split("/")[1];
String t_activity= tmp.substring(0, tmp.length()-1);
list_activities.add(t_activity);
Log.v("Icon Request", "Added Activity: "+tmp);
}
catch(ArrayIndexOutOfBoundsException e)
{
Log.e("Icon Request Error!", "Error Adding Activity: \""+e+"\"");
}
}
Have fun! :fingers-crossed:
Greets Alex
Alex_R3CONN3R said:
First I'd like to say thank you for making this app! :good: Especially that it excludes already styled apps is great :victory:
Second:
I get ArrayIndexOutOfBoundsException at this point (Line 19 in pastebin) which FC's the app:
Code:
String tmp = myparser.getAttributeValue(null,"component").split("/")[1];
when reading this from my appfilter.xml (this styles the app drawer in Nova Launcher):
Code:
<item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="ic_allapps" />
Probably because there is no forward slash as split.
However it it easy to fix with a try-catch-block and the app continues:
Code:
if(name.equals("item"))
{
try //Try Catch Block to prevent FC when reading something like this: <item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="ic_allapps" />
{
String tmp=myparser.getAttributeValue(null,"component").split("/")[1];
String t_activity= tmp.substring(0, tmp.length()-1);
list_activities.add(t_activity);
Log.v("Icon Request", "Added Activity: "+tmp);
}
catch(ArrayIndexOutOfBoundsException e)
{
Log.e("Icon Request Error!", "Error Adding Activity: \""+e+"\"");
}
}
Have fun! :fingers-crossed:
Greets Alex
Click to expand...
Click to collapse
Thanks for your tip, will add it to code and make update to help others users :good:
Crashes
I've tried to assign it to a button in 2 different scenarios but both times they crashed the app
Full source code
Alex_R3CONN3R said:
First I'd like to say thank you for making this app! :good: Especially that it excludes already styled apps is great :victory:
Second:
I get ArrayIndexOutOfBoundsException at this point (Line 19 in pastebin) which FC's the app:
Code:
String tmp = myparser.getAttributeValue(null,"component").split("/")[1];
when reading this from my appfilter.xml (this styles the app drawer in Nova Launcher):
Code:
<item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="ic_allapps" />
Probably because there is no forward slash as split.
However it it easy to fix with a try-catch-block and the app continues:
Code:
if(name.equals("item"))
{
try //Try Catch Block to prevent FC when reading something like this: <item component=":LAUNCHER_ACTION_APP_DRAWER" drawable="ic_allapps" />
{
String tmp=myparser.getAttributeValue(null,"component").split("/")[1];
String t_activity= tmp.substring(0, tmp.length()-1);
list_activities.add(t_activity);
Log.v("Icon Request", "Added Activity: "+tmp);
}
catch(ArrayIndexOutOfBoundsException e)
{
Log.e("Icon Request Error!", "Error Adding Activity: \""+e+"\"");
}
}
Have fun! :fingers-crossed:
Greets Alex
Click to expand...
Click to collapse
Could you provide the full source code? As i really want this to work but it keeps on force closing
Techsavage said:
Could you provide the full source code? As i really want this to work but it keeps on force closing
Click to expand...
Click to collapse
I'm sorry I don't have the source code from the app itself but I can show you my full implementation.
http://pastebin.com/yNgKnJ2N
You can call
Code:
actRequest();
in your button onClickListener or where ever you want.
Also note that this is in a fragment. If you run it in your Main Activity you have to change the contexts and maybe some other stuff.
So what do you get when using this code?
A progressbardialog while the appfilter.xml is parsed (Like this but in your app style. Preferably Holo ^^
If the Icon helper app is not installed a two button dialog pops up and asks the user if he wants to go to the playstore and install it.
And all that in a thread to keep the UI responsive.
Greets Alex
Alex_R3CONN3R said:
I'm sorry I don't have the source code from the app itself but I can show you my full implementation.
http://pastebin.com/yNgKnJ2N
You can call
Code:
actRequest();
in your button onClickListener or where ever you want.
Also note that this is in a fragment. If you run it in your Main Activity you have to change the contexts and maybe some other stuff.
So what do you get when using this code?
A progressbardialog while the appfilter.xml is parsed (Like this but in your app style. Preferably Holo ^^
If the Icon helper app is not installed a two button dialog pops up and asks the user if he wants to go to the playstore and install it.
And all that in a thread to keep the UI responsive.
Greets Alex
Click to expand...
Click to collapse
I can't get it to work where should I add that code?
In your onClickListener for example.
Google it.
Gesendet von meinem Galaxy Nexus mit Tapatalk
DL link down
xD xD
Đã Thank's và tín dụng :good::good: Ngày mai down sau. Giờ đi ngủ đã :highfive:
2.1 Uploaded
- Support Android 2.2+
- Added template to see how it works, you can edit it to make your own icon pack, too
I'm trying to create a Xposed Module which will replace some internal strings, but I can't find any way to do it.
The strings I want to replace are "com.android.internal.R.string.am" and "com.android.internal.R.string.pm".
Can somebody give me any advice?
Code:
XResources.setSystemWideReplacement("android", "string", "am", "AM");
Above code doesn't have any effect
Code:
XResources.setSystemWideReplacement(com.android.internal.R.string.am, "AM");
Above code doesn't even compile
Code:
Resources.getSystem().getIdentifier("am", "string", "android")
Above code always returns 0 (zero).
Did you try "com.android.internal" (quotes included – as a string)?
GermainZ said:
Did you try "com.android.internal" (quotes included – as a string)?
Click to expand...
Click to collapse
Yes, I did
Code:
XResources.setSystemWideReplacement("com.android.internal", "string", "am", "AM");
Code:
NotFoundException: com.android.internal:string/am
"android" works for me. I'm not sure how/where you're using that code, though. Could you please paste all of it?
GermainZ said:
"android" works for me. I'm not sure how/where you're using that code, though. Could you please paste all of it?
Click to expand...
Click to collapse
Code:
public class AmPmFixer implements IXposedHookZygoteInit{
@Override
public void initZygote(IXposedHookZygoteInit.StartupParam startupParam) throws Throwable {
XResources.setSystemWideReplacement("com.android.internal", "string", "am", "AM");
XResources.setSystemWideReplacement("com.android.internal", "string", "pm", "PM");
}
}
change com.android.internal to android
pyler said:
change com.android.internal to android
Click to expand...
Click to collapse
Anyway...
Code:
NotFoundException: android:string/am
to the point How to findAndHookMethod this method:
Code:
public static ujiCoba(String[] string) {
}
i've tried with code bellow, but didnt work
Code:
findAndHookMethod(findClass, classLoader, String.class, hook);
You're not passing the method's name to findAndHookMethod. Also, the argument's class should be String[].class.
GermainZ said:
You're not passing the method's name to findAndHookMethod. Also, the argument's class should be String[].class.
Click to expand...
Click to collapse
i'm typo.
its work
hi @GermainZ. last qustion..
Code:
private static void getDetail(Context context, long l1, Info info, int i, long l2) {
Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), Uri.parser(Prefs.PARSER), new String[] {"status","sent","date"}, "group_id=", l1, null, null);
}
method like that make me confuse. i want change sent to received, how can i do this?
riskey95 said:
hi @GermainZ. last qustion..
Code:
private static void getDetail(Context context, long l1, Info info, int i, long l2) {
Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), Uri.parser(Prefs.PARSER), new String[] {"status","sent","date"}, "group_id=", l1, null, null);
}
method like that make me confuse. i want change sent to received, how can i do this?
Click to expand...
Click to collapse
You can replace the method and replicate these two lines, doing whatever modifications you want.
See:
XC_MethodReplacement to replace the method,
findClass to get the SqliteWrapper class,
callStaticMethod to call SqliteWrapper.query.
The rest should be covered in the development tutorial/wiki.
GermainZ said:
You can replace the method and replicate these two lines, doing whatever modifications you want.
See:
XC_MethodReplacement to replace the method,
findClass to get the SqliteWrapper class,
callStaticMethod to call SqliteWrapper.query.
The rest should be covered in the development tutorial/wiki.
Click to expand...
Click to collapse
that method very long and i dont have full of source code. so i can't replace method.
riskey95 said:
that method very long and i dont have full of source code. so i can't replace method.
Click to expand...
Click to collapse
Next best thing I can think of:
in beforeHookedMethod for getDetail, hook SqliteWrapper.query.
In that hook, check if the third argument is equal to the string array you want. If so, change it.
In afterHookedMethod for getDetail, unhook SqliteWrapper.query.