yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ROBERT CM:
Hi

For me this work fine but I have any questions.. :confused:

1. at show changelog

is possible change text color and background ( defaul text is black and background is white)?

I try change it in layout

change_header_item and change_list_item but no working

2. for work this dependencies in build.gradle

compile 'se.emilsjolander:stickylistheaders:+'

compile('com.afollestad.material-dialogs:core:0.8.5.6') {

transitive = true

}

is neccesary change it

apply plugin: 'com.android.application'

android {
[COLOR="Red"] compileSdkVersion 23[/COLOR]
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.wubydax.romcontrol"
minSdkVersion 21
[COLOR="red"]targetSdkVersion 23[/COLOR]
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
[COLOR="red"]compile 'com.android.support:support-v4:23.2.1'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:recyclerview-v7:23.2.1'[/COLOR]
compile 'com.github.shell-software:fab:1.1.1'
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
compile 'de.cketti.library.changelog:ckchangelog:1.2.2'
compile files('libs/RootTools.jar')

compile 'com.google.android.gms:play-services-appindexing:8.1.0'

compile 'se.emilsjolander:stickylistheaders:+'
compile('com.afollestad.material-dialogs:core:0.8.5.6') {
transitive = true
}
}

but to change this, I have un little bug in theme light

background is black in all categories and Switch themes is white background and text (see picture attach)

how solve this problem?

3. in ChangeLog.java, dialog_layout it is not specified in the Guide

this file should exist in layout/dialog_layout.xml with any codes

protected MaterialDialog getDialog(boolean full) {
MaterialDialog.Builder builder = new MaterialDialog.Builder(mContext);
builder.title(mContext.getResources().getString(full ? R.string.changelog_full_title : R.string.changelog_title));
builder.cancelable(false);
builder.positiveText(mContext.getResources().getString(R.string.changelog_ok_button));
builder.callback(new ChangelogButtonCallback());
builder.customView([COLOR="red"]R.layout.dialog_layout[/COLOR], false);

if (!full) {
// Show "More…" button if we're only displaying a partial change log.
builder.neutralText(R.string.changelog_show_full);
}

MaterialDialog dialog = builder.build();

ChangelogListAdapter adapter = new ChangelogListAdapter(mContext, getChangeLog(full));
((StickyListHeadersListView) dialog.getCustomView()).setAdapter(adapter);

return dialog;
}

I hope [MENTION=4830018]Martillero[/MENTION] [MENTION=5750672]Er. Aditya[/MENTION] and all can help me with all this.. :confused: :confused:

thanks
[Android Apps and Games] aceqott:
Every time I want to update Android Studio asks me delete "template preference fragment", can you do something to keep it?
[Android Apps and Games] daxgirl:
It's a custom template. Just move it outside the parent directory before update and then move back after update. I hope it's not too much work for you. I mean creating it was relatively easy compared to copy pasting..... ? seriously, dude...
[Android Apps and Games] aceqott:
Ok, I understand. That's what I do. :good:
[Android Apps and Games] Er. Aditya:
Completly understood anna ... thanks for your support
[Android Apps and Games] daxgirl:
I wish to clarify that the previous post is not directed towards you. We do realise people are new to studio and managing working skills takes time. So question here and there is not a big problem. Problem begins when we get overwhelmed with private messages. Forget the fact that we're living people with families and lives... (and MotoGP season going on ?). But no one is supposed to get support in pm. It's not productive, xda is not about private tutoring, others can't benefit from it.

There are tons of resources out there and we know for a fact some of our users do read and advance and have become very self sufficient in problem solving.

It's one thing to ask a question about adding or editing something in Java code, which is app related. We are always happy to help and make new classes and methods for you. But when you mess up with gradle and end up with non running tasks, it's all matter of operating studio and learning a little gradle. Mostly it's a matter of following guides provided by repo readme for adding maven dependency.

Do not be discouraged or offended. One person never makes the ballance tilt. It's not you. It's lots of accumulated things. But mostly pm.
[Android Apps and Games] The Sickness:
[MENTION=4714483]daxgirl[/MENTION] how do I install Android Studio?
[Android Apps and Games] daxgirl:
Chris I love you, but don't push it ?
[Android Apps and Games] The Sickness:
Heehee....I couldn't help myself
[Android Apps and Games] daxgirl:
Try ???
[Android Apps and Games] The Sickness:
Troy started a domino effect on kernels lol....oh well it keeps me busy
[Android Apps and Games] daxgirl:
I already said Troy is a trouble maker with style... now it's kernels... he is lucky we adore him ?
[Android Apps and Games] The Sickness:
That is true
[Android Apps and Games] daxgirl:
I'll go to sleep now. Mainly because I'm not in Texas and it's past 3am here. ??? night, spammer ?
[Android Apps and Games] The Sickness:
Nite my Lady[emoji109]
[Android Apps and Games] Martillero:
Honestly, i couldn't agree with you more. I completly understand your point of view and i apologize cause i think i 've collaborated on some misunderstandings and issues here.

Most of the time i read info, or examples from StackOverflow, and i forget most of that info is not here. I have spend hours there reading guides, implementations, or just people's ideas only to know how things work, even if those things are not exactly what i m looking for, it probably will be a usefull knowledge on future.

I know asking is the faster and easy way, but i prefer that strange and amazing feeling (the eureka moment) when after so much time and try after try you finally understand and get it by yourself.

Will stay tuned for your future changelog guide of course :good:

I always have said, and will keep saying it, both of you are giving so much to xda. 10 months ago, i wrote on this thread that in near future all devs would be using your rc app, time proved i wasn't wrong. Tnx guys!
[Android Apps and Games] daxgirl:
You're not at fault. Not even in slightest. You're the living breathing example why this thread was worth opening. Not the only one, but one of our absolute favourite examples. Keep bringing the goodies, you manage to dig the most surprising ones.

As for eureka moments... i am sure Wubybwill agree with me, we can both relate to what you're saying.

This project has been one of the first big ones we did. Today, looking back at it, I am so horrified and ashamed at how bad some of the code is (it's working, but it could be so much more elegant). Every day we study we concur new heights... and I am sure some of my apps that I make today will seem like they could use more work in a year from now. But that's just a whole new level of OT... ?
[Android Apps and Games] Er. Aditya:
Absolutely not anna .. i may be a starter with android studio but i am surely not a fool to take such things directly to me or wrong .. what you said are most clear thoughts ad very correct ... i agree to every word you have said here anna...you guys do great stuff here [MENTION=5493353]Wuby986[/MENTION] you [MENTION=1042140]tdunham[/MENTION] [MENTION=4921688]The Sickness[/MENTION] [MENTION=4819130]kmokhtar79[/MENTION] [MENTION=1097804]sawdoctor[/MENTION] [MENTION=4830018]Martillero[/MENTION].... i know where i started ground 0 and if it wasnt for you guys would have stayed there..you all are awesome..i so wana thankyou for everything
[Android Apps and Games] Kamy:
Sorry Anne if I posted irrelevant or off topic info here about adding features. Sometimes I feel like I don't love the mess up I am doing on Android as you or other real devs are doing or don't read enough as I require. I am just at the beginning of this thing and totally agree with you that searching and reading is the best solution for a noob like me as I found those result quit helpful.

I have said before that this thread is a treasure and I should be grateful for every line you and dear wuby have gathered in OP and for this much responsible you are and care you give. Otherwise this thread could have been abandoned. Again thank you for clarification and support. ✌
[Android Apps and Games] daxgirl:
Come on man.. you too? Stop it ???. People who it has been directed to, know it. I hope.

Thank you for your kind words. ?

P.S. Tapatalk doesn't let me give unlimited thanks.. ??? it removes that thanks if you have over 8.. damn you xda ??? you stole our loophole...
[Android Apps and Games] daxgirl:
Soooooo there have been lots of changes we all made to this app. It has grown and spread beyond what we ever imagined.

I was thinking about v2.0 for some time now. And I mean kind of a total remake... I mean TOTAL remake... android has grown alot since v1.0 and we have gotten more skilled. There are new support libs, new features... not to mention many many fixes and addons we have had over the time.

Big question is... how challenging will it be for you guys to transfer old files to new base. I mean transferring xml will not be a problem. But all the Java changes.. will be difficult for you to readd?

Would like to hear your thoughts.. [MENTION=1042140]tdunham[/MENTION], [MENTION=4830018]Martillero[/MENTION], [MENTION=3026895]DaOldMan[/MENTION], [MENTION=4819130]kmokhtar79[/MENTION], [MENTION=5750672]Er. Aditya[/MENTION], [MENTION=4921688]The Sickness[/MENTION].. anyone really who uses the app. Thoughts on update?
[Android Apps and Games] civato:
I woud like a option i could have it without the need for root. Some apps now detect root and refuses to work. So I need a root free phone and tablet. I do build in the mods in the system but for now i use custom settings app as it will work without root. I would prefer a app i can build from source.

just something that was on my mind. It seems to me that people go to quickly to root. I build my personal roms but with the extras i want. Nothing that really needs root as it is in systemui and the framework where the changes are made.
[Android Apps and Games] daxgirl:
That's not a problem. We can make it without root. But just so you know if the target api is 23, it will not write into system settings db unless installed in system. As long as we target lower api no problem.

Edit: btw, this app does not require root per say. Only for some reboot functions and running scripts. You can disable the su dialog and load view directly and you can use it to set up values in database with no root.
[Android Apps and Games] Kamy:
Thank you Anna. No challenging at all for me. I can make my changes again.
[Android Apps and Games] Martillero:
Waww great news, thanks Anna!

As [MENTION=4819130]kmokhtar79[/MENTION] said, if we did it once we can do it again.

Android is a giant, and moves always foward, we should try to keep up right ;)

If you guys are up to, and find some time to do it who can say no to that. Besides, i think we are all here on xda cause we also like challenges. Challenges keep this hobby interesting :cool:
[Android Apps and Games] dedichthui:
Can you give me Rom Control.apk ?My computer was damaged. It is being repaired. (I used apktool on tablet) Thank you.
[Android Apps and Games] Kamy:
Please read:

If you do not access to PC at all and you need rom control for you personal use only, meaning that you are not going to share it in public either in XDA or out of it, I can compile it for you. But I am not sure how you are going to modify it as you are going to have different preference and java code to CONTROL your rom as the rom is meant to?
[Android Apps and Games] dedichthui:
Perhaps you misunderstood my meaning. The PC can not be temporary(I'm fixing it). I can use apktool for mobile to do so. Anyway, thanks for the reply.
[Android Apps and Games] tdunham:
Yes, lets keep moving forward. As someone just already mentioned, this app has certainly grown up and matured beyond its humble beginnings and it is time to make it whole again with 'what if I could have knew then what I know now?'
[Android Apps and Games] Er. Aditya:
Will have a great time to start working on it again... as it was fun when u guys started .... ne stuff to learn we are ready anna :D
[Android Apps and Games] asc1977:
I am happy if you update and i will use update too. I builded my rom and added a lot of stuff now in your app. Go on. Waiting for update Anna. I am ready to start upgrading my CrissCross RomControl apk

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] aceqott:
If now looks spectacular, I do not imagine I will be v2.0 with all corrections and new features that have been exposing. Go ahead, we hope to sit in front of PC to work again in this fantastic project. :silly: No problem none pass all the work done in my Rom Control. It can be done again. ;)
[Android Apps and Games] civato:
I am putting in the system so no problem there.

Any hint to disable the root need.
[Android Apps and Games] daxgirl:
Let me get to pc and I will put up a guide. It's really easy.
[Android Apps and Games] civato:
I've been looking in mainactivity but I better wait for you. :good:
[Android Apps and Games] civato:
Compiled and working, root pop-up is gone and I can use the app.

Now I'm gonna remove the reboot drawer to get a clean look.

Thanks for the quick help and info.
[Android Apps and Games] JonathanRAZ:
Question: if i am using aide mobile how can the template fragment be added if possible yes or no or it is just impossible
[Android Apps and Games] daxgirl:
You will have to create it manually. I mean the fragment. I have no experience with mobile IDE and not planning on checking it out in the nearest future. So either see if you can add templates or just see what the custom fragment looks like and make one yourself. It's a really simple class.
[Android Apps and Games] JonathanRAZ:
Thank you yes i tought of that ill ill try on mobile and ill take a look to see the process thank you
[Android Apps and Games] daxgirl:
Aide is a cool idea and a nice app. And THAT'S IT. But as ide for android it's horrific. There is no better word for it. It's so terrible I don't know where to begin. IMHO, coding should not be done on mobile. Not unless the mobile is big, has attached keyboard and implements full android studio or eclipse. Of course no mobile phone today would have enough ram to dedicate to full android studio, with 4gb it's not fun even on pc.

In short, bad.
[Android Apps and Games] Er. Aditya:
was trying to add backup restore this is the error i am getting

05-20 17:51:00.659 20671-20671/com.nammeless.control E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.nammeless.control, PID: 20671
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
at com.nammeless.control.MainViewActivity$CheckSu.onPostExecute(MainViewActivity.java:390)
at com.nammeless.control.MainViewActivity$CheckSu.onPostExecute(MainViewActivity.java:349)
at android.os.AsyncTask.finish(AsyncTask.java:651)
at android.os.AsyncTask.access$500(AsyncTask.java:180)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)
[Android Apps and Games] thereassaad:
Uninstall xposed then re try it mate , its seemed caused by Xposed ..
[Android Apps and Games] Martillero:
Seems that you are having an issue with the AsyncTask, probably with the doInBackground method.

Check the part on MainViewActivity where code says:

public class CheckSu extends AsyncTask<Void, Void, Boolean> {

A couple lines down comes the boolean for doInBackground method. I think there could be the issue. Can you post that part of your code, i will compare it to mine.

I cant quiet remeber, but i think i did some minor changes there to make it work.

Edit.....

Found my post with those changes i was talking about. Check point n°2

http://xdaforums.com/showpost.php?p=64271358&postcount=503
[Android Apps and Games] Er. Aditya:
I dont have words to thanku brother

Now how do i confirm its working

edit : something strange is going when i try to backup nothing backup and when i try to restore app fc with this error

FATAL EXCEPTION: main

Process: com.nammeless.control, PID: 4850
java.lang.NullPointerException: Attempt to get length of null array
at com.nammeless.control.RestorePreferences.restoreSettings(RestorePreferences.java:86)
at com.nammeless.control.RestorePreferences$1.onClick(RestorePreferences.java:39)
at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:157)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)
[Android Apps and Games] asc1977:
Hi there

Anyone know how or should i can switch a bools entry in systemui with a switch in rom control

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] Martillero:
There must be an isse on the backup method, or maybe something missing from the guide.

Reading your log, the fc is because rc is trying to restore the keys from a non existent file. (Cause the real problem is the file is not created on sd). So the log doesnt give us the real issue.

The main problem is the creation of the backup file, solved that and the restore part will be fixed as well.

Like every other mod, must be done on systemUI, it's not related to rc.
[Android Apps and Games] asc1977:
can someone tell me where is the bug please. i become crazy. only first reboot work for notification. all other keys dont work

case "ColorPickerPreference":
ColorPickerPreference cpp = (ColorPickerPreference) pf.findPreference(key);
cpp.setColor(sharedPreferences.getInt(key, Color.WHITE));
if (key.equals("notification_background_color")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("statusbar_wifi_color")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("statusbar_signal_color")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("statusbar_data_color")) {
appRebootRequired("com.android.systemui");
} else if (key.equals("statusbar_icon_color")) {
appRebootRequired("com.android.systemui");
}
break;

and like that but same

case "ColorPickerPreference":
ColorPickerPreference cpp = (ColorPickerPreference) pf.findPreference(key);
cpp.setColor(sharedPreferences.getInt(key, Color.WHITE));
if (key.equals("notification_background_color")) {
appRebootRequired("com.android.systemui");
}
if (key.equals("statusbar_wifi_color")) {
appRebootRequired("com.android.systemui");
}
if (key.equals("statusbar_signal_color")) {
appRebootRequired("com.android.systemui");
}
if (key.equals("statusbar_data_color")) {
appRebootRequired("com.android.systemui");
}
if (key.equals("statusbar_icon_color")) {
appRebootRequired("com.android.systemui");
}
break;
[Android Apps and Games] daxgirl:
Remove the line setting the color to white.
[Android Apps and Games] JonathanRAZ:
[MENTION=4714483]daxgirl[/MENTION] where can i change this green color? Have search but could not find it
[Android Apps and Games] daxgirl:
Search better ?
[Android Apps and Games] JonathanRAZ:
Hahaha was looking on wrong place found it
[Android Apps and Games] asc1977:
Worked. Thanks

Gesendet von meinem SM-G925F mit Tapatalk
[Android Apps and Games] JonathanRAZ:
Delete
[Android Apps and Games] daxgirl:
Did you add your fragment in onNavigationItemSelected method so the fragment manager knows to replace the first one with your knew one?
[Android Apps and Games] daxgirl:
This part of code seems correct. Recheck your steps with adding fragment. Something somewhere is screwed up.
[Android Apps and Games] daxgirl:
Cool. Next time SOLVE YOUR PROBLEMS BEFORE POSTING! This is a second post with question which you solved on your own with a little effort. If you waited and tried a little more, could have save time for you and me.
[Android Apps and Games] JonathanRAZ:
Thanks wont post anymore
[Android Apps and Games] daxgirl:
That's fine with me. I don't get paid based on number of replies to this thread.

Although the idea is not that you don't post. But that you try to follow instructions and solve the problem before you run to post.

Both problems you posted were solved by you with minimal effort. And none had to do with actual problem.

So if you choose not to post, it's splendid. But if you do, please consider that in the end you are more than capable to solve your problems on your own. Especially when they have to do with detailed instructions.

Cheers.
[Android Apps and Games] Wuby986:
i'd like to clarify that we would really prefer to see your attempts posted and to eventually correct your code error's if any, then to provide ready to use solution..

please show some will to learn, not only requesting ready to use code! (not pointing to anyone.. just a general suggestion!!)

make some search online on what you would like to archieve, make your attempts ( keeping a backup!! my experience teaching here on reverting changes loooool ), this will lead you to a better knowledge of this code and on java in general.

you might also want to start a different small "dummy project" just to try new things and if you really understood what you wanted to do.. this is how i tend to do it..

i think i know very well the feeling when you look at some java class and you think " what the hell is this 'alien' language!?!? " but don't let it stop you.. i believe it's commont to any selfteached developer.. no background is a pain of course.. but see it this way.. you're building your background to use in the near future..

so have a pause, couple of days ( or hour as your "stubborness" might decide lool ) and get back to it.. everything will be easier, at least is for me usually.

in the end if you still don't get, - right before you are about to strip all your hair from the head looool - just post what's wrong and we hopefully will be able to help you

cheers and happy coding
[Android Apps and Games] Er. Aditya:
thankyou sir and after 3 days of attempt i have finally fixed and got backup/restore working...i know 3 days is quite a long time but i feeeeeeeeeel damn good :D i have learnt alot within this time working on android studio :D i will try more n more

i just tested and this is so awesome :D now i understand you guys are doing an extra ordinary work

thankyou once again [MENTION=5493353]Wuby986[/MENTION] [MENTION=4714483]daxgirl[/MENTION] [MENTION=4830018]Martillero[/MENTION] nothing would have been possible without u guys
[Android Apps and Games] Er. Aditya:
anna i tested backup feature and restore too and all worked well but then i started to work on colors and style that feature dsnt seem to work after a clean flash of rom , double checked my edits