yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Kamy:
Hey [MENTION=4714483]daxgirl[/MENTION]

Hope you are doing well, I am going to release the ROM I have been working on and this Rom Control app is going to be running on it. I have some problem uploading my source code on the github. When I try pulling it, it heads me to your source code and I am afraid to mess up. May I ask you please if you could give me some hints how to do that.

Thanks
[Android Apps and Games] Wuby986:
I can help you with terminal comands... You don't have to pull, but to push:

$ git remote add origin http://..... Your git on web (since you create the repo from web, it will fail and ask you to do

$ git pull origin master from you project because you probably have there the initial files of the project just created)

So in order:

Created the project on github website

$ git init (while in right folder, root of the project)

$ git add .

$ git commit

$ git remote add origin http://....(should fail so do pull first)

$ git pull origin master

$ git remote add origin http://...

Once you have uploaded the project you can push commits like this:

$ git commit -a

$ git push origin master

Edit: i forgot to tell you this is for linux actually [emoji16][emoji16]

I have no idea on how to do from windows, but i believe you can check the git help pages for this

Edit 2 you can do it from git shell for windows, not from standard cmd line
[Android Apps and Games] anisingh62:
from where i can download this app?
[Android Apps and Games] Wuby986:
I know it is long to read OP all, but to make it short, you have to compile it your own upon your needs from the source code provided.

You need to know a little (very little) of java but you need to be quite experienced with system app modding and android in general
[Android Apps and Games] Kamy:
Thanks. I read your edits and have downloaded that git shell. Would be back if I have a question again. Thanks.
[Android Apps and Games] Kamy:
OK I created a project as https://github.com/kmokhtar79/ROMControl

When I try to push I have problem as it redirect it to daxgirl's source and get following error:
[Android Apps and Games] Wuby986:
i believe you need to delete the .git folder inside the root of custom setting because it was created pointing to dax repo.
[Android Apps and Games] Kamy:
Do I need to delete .gradle and .idea too? This are what I have after deleting .git folder
[Android Apps and Games] Wuby986:
No those are part of the project.. Now should be fine
[Android Apps and Games] Kamy:
Eventually done. Sorry today I disturbed you many times, would you please check if anything is missing or not.

https://github.com/kmokhtar79/ROMControl

Thanks
[Android Apps and Games] Wuby986:
i believe is fine but i will download when i get home and try compile it
[Android Apps and Games] daxgirl:
I am sure it's fine and will compile!

Congrats, [MENTION=4819130]kmokhtar79[/MENTION]! And good luck with your new release!

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Kamy:
I could have never achived it without your and wuby986' s support.
[Android Apps and Games] aceqott:
¿I can decompile the apk created in apktool and modify xml smoothly?
[Android Apps and Games] Wuby986:
Of course you can but why decompile when you can edit in android studio!?!?!? Xml is exactly the same as in a decompiled apk
[Android Apps and Games] aceqott:
OK thanks.

Because even though I reversed Android studio I can not leave the apk exactly as I have in my ROM. Android testing in studio, I do not even remember what I played and it would be difficult to return to the same point last apk compiled.
[Android Apps and Games] Wuby986:
I really don't understand..!

You must release the code you are compiling the apk with, if you edit the apk via apktool then it won't be the same..

Anyone must be able to download the source, compile and have exactly the same apk you provide in the rom.

If is no more the same as last compiled, compile a new one, make sure works, and zip the code folder to save it..

Just a suggestion
[Android Apps and Games] aceqott:
Okay, I can create a new project in Studio only with the Android apk compiled?
[Android Apps and Games] Wuby986:
That's another good idea.. Make a new project to keep tidy for upload source and another one to mess with and experiment new things
[Android Apps and Games] Kamy:
There is a little icon called Run 'app' on the tools bar if you click on and plug your phone you can have the exact app as your project on your phone. This is what I do every time I try testing what I have done
[Android Apps and Games] Martillero:
Me too ?

If things doesnt go as expected, undo changes...or redownload the original file from git.
[Android Apps and Games] Er. Aditya:
just started with the app anna but when i try to create new fragement

i dont get the 6th gear fragment prefrence
[Android Apps and Games] Wuby986:
Did you downloaded the fragment template and put in the correct folder as stated in OP? Restart studio when done
[Android Apps and Games] Er. Aditya:
edit

my bad

sorry , got it now

thanks again sir :)
[Android Apps and Games] Wuby986:
No that is the zip of the app, you need to dl 2 different files one is that one, the other is this one

https://github.com/daxgirl/Preference-fragment-template-for-custom-settings-app

Delete that folder and replace with the one in this.. Download as zip
[Android Apps and Games] aceqott:
Good people, do you know something now that would be included in the project, a "about" the ROM?
[Android Apps and Games] daxgirl:
Yep! Under construction. If you know how to make it, you can create a regular blank fragment for it. If not, it will be available in sources within a day or two.
[Android Apps and Games] Martillero:
It is explained in anna and wuby comments on java files. Just follow the steps reading carefully, and you will learn how to make others too. I dont have any java background but daxgirl and wuby have make this project so noob friendly that a chimp could compile it succesfully ?

Its better to learn those things cause im sure will be handy on future.

Regards!
[Android Apps and Games] aceqott:
Forgive but do not understand what you mean. Rom have the complete and safe control and more advanced than you. It is not about adding a new piece or to follow any steps outlined in the 4 post (which I already know them also better than you), this is, an option that would add daxgirl in the project with a section on "about of "the ROM. Before judging you have to read well what is asked and what has been discussed above.

I can perfectament create a new paragraph with all options to meet the "my ROM" but is not that what you're talking ...
[Android Apps and Games] daxgirl:
If there is a misunderstanding it should be taken in private messaging. The poster above you imo just misunderstood your question. He meant you no disrespect. Your response is uncalled for I think.

I understand what you mean.

It's just xda. No one here gives anyone a medal for knowing more than others. And if they do... it's really isn't worth anything in our real lives. It's just a forum. No need to take everything that personally.

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Martillero:
i dont know what you are talking about mate, but you have a pretty bad attitude, sorry for trying to help, wont try again.

i thought you were talking about this:

Anyway, sorry again, and peace bro :good:
[Android Apps and Games] daxgirl:
Oh look at the beauty you made!!! Wooowwwwww! This is really nice! I LOVE the colors!!! Beautiful design!!!

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Wuby986:
I agree [emoji6][emoji6][emoji6] very nice indeed [emoji106][emoji106]
[Android Apps and Games] aceqott:
Because if it is just a forum, please focus on what the post and not to quote me with an answer of what I'm doing wrong or not, if my question is correct or not is really about.

If it is not, it is just not answer and point ...

Possibly much less know that everyone who speak around here, but I try to learn from the masters and try to ask the most important. I know it's not important, because nobody here is to get a trophy, but sometimes I feel out of place ...

I'm sorry if I offended anyone with my questions or my questions they are misplaced.

A highlight that Wuby986 daxgirl and do a great job and I totally admire, nothing against anybody, nor did I take it personally, I learn every day a little more thanks to you ...

Sorry again for my ways.

We will continue the thread, please, I do not want it dirty or anything ...

I feel like I should not express myself, but I'm Spanish and shot many times translator, and sure you have noticed lol

---------- Post added at 08:12 PM ---------- Previous post was at 08:09 PM ----------

Wuooo beautiful, you could teach a snapshot of how the structure of preference in that paragraph is due !!
[Android Apps and Games] Martillero:
Thanks to you two for making this project, for real guys :good:.

Im sure all devs are really glad with this rom control (im not one, just an enthusiast modding fan but im really happy too!), i presume that in time all devs will use your code, cause is beautifully written and

the possibilities are endless, you give us all the tools and guides to undestand it clearly.

For all of that, thanks for taking so much time for us.

------------------------------------------------------------------------

aceqott, when i said about the comments on java files i didnt mean the guides on first posts. I actually mean the comments from anna and wuby on java files (like in this case MainViewActivity.java)

There you will find the following:

/*String array of item names is located in strings.xml under name nav_drawer_items

* If you wish to add more items you need to:

* 1. Add item to nav_drawer_items array

* 2. Add a valid material design icon/image to dir drawable

* 3. Add that image ID to the integer array below (int[] mIcons

* 4. The POSITION of your new item in the string array MUST CORRESPOND to the position of your image in the integer array mIcons

* 5. Create new PreferenceFragment or your own fragment or a method that you would like to invoke when a user clicks on your new item

* 6. Continue down this file to a method onNavigationDrawerItemSelected(int position) - next method

* 7. Add an action based on position. Remember that positions in array are beginning at 0. So if your item is number 6 in array, it will have a position of 5... etc

* 8. You need to add same items to the int array in NavigationDrawerFragment, which has the same method*/

So you need to modify the array in strings file, add a new image into drawables, modify mainviewactivity adding the new line, adding in the same file switch/case for position, and create the new fragment.

(I dont know if i miss something, i probably did :p)

That way you can add as many "items" you need on nav drawer. Im not discovering nothing here, like i said all of this is thanks to those great, kind and superhelpful devs [MENTION=4714483]daxgirl[/MENTION] and [MENTION=5493353]Wuby986[/MENTION]
[Android Apps and Games] Borfas:
it is possible to change the status bar icons galaxy s6 edge g925f in AOSP style?
[Android Apps and Games] daxgirl:
Post in wrong thread

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Borfas:
thank for your wrong answer.
[Android Apps and Games] Wuby986:
Did you read the OP? Did you understood this is not a ready to use app?

you need to compile it, and in order to make it actually do any change to another app like systemUI in your case, you need to modify the systemUI to react to the change..

If you are able to do that then yeah this app can help you apply the change in your modded systemUI
[Android Apps and Games] Goldie:
He tends to not read much to be honest
[Android Apps and Games] daxgirl:
Welcome aboard! :)

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Borfas:
only answer bizarre questions, normal questions you do not know.

it would be better to answer when asked.
[Android Apps and Games] Kamy:
[MENTION=1167171]rompnit[/MENTION], thanks for the guide, one question; is android:src="?moar_logo" /> what should be like?
[Android Apps and Games] daxgirl:
That is an attribute reference. Based on a selected theme it will use a different image for that image view.

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Kamy:
Is that should be my_logo because rompnit adds my_logo in attribute?

Edit: made it working it should be ?my_logo
[Android Apps and Games] Vivek_Neel:
Yes it should be

android:src=?attr/my_logo

:)
[Android Apps and Games] rompnit:
Yeah sorry.. In ours it's all 'moar'.. I changed them to 'my' for the sake of the guide but obviously missed that one. I will correct it after work ;)
[Android Apps and Games] Kamy:
Oops I just saw your reply. Thanks for heads up. :good:

---------- Post added at 10:57 PM ---------- Previous post was at 10:55 PM ----------

You are amazing, I do't think it's needed. That was fun trying to fix it actually. Thanks thanks thanks :highfive:
[Android Apps and Games] daxgirl:
Hello guys!

As you probably noticed I have been less active over the past 2 weeks. That had to do with being busy with home, family and work (normal life ;) ).

It makes me so happy that being an amazing developers that you all are, you have taken the project and turned it exactly into what it was supposed to be: a code and source to build, improve upon and share.

Hopefully towards the beginning of next week I will have more time on my hands to keep working on our android projects, this one included.

Simply amazed by what all of you have achieved!

Cheers!

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] Kamy:
You gave us far way enough. By the way I hope you don't mind using another avatar of yours in my ROM Control.
[Android Apps and Games] daxgirl:
Anything Star Trek goes ;)
[Android Apps and Games] tdunham:
I downloaded every single episode of all the star trek genres. Lots of dvd's. Watched them all from beginning to end. Dax is awesome in Deep Space Nine. Not bad on the eyes either. :D

Only ST series I had trouble watching completely through was the one with Scott Bakula.
[Android Apps and Games] daxgirl:
Yeah, my spouse would agree with you about Scott Bacula and STE in general.

My favourite is DS9, then Voyager.

;)

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] and2:
My absolute favorite is STTNG & DS9 and yes, Dax looks good.

Gesendet von meinem SM-N9005 mit Tapatalk
[Android Apps and Games] aceqott:
Thanks for the "About".

This was what I was expecting. :victory:
[Android Apps and Games] civato:
I would like to say thanks to everyone involved with this project

I'm a noob on apk development and this just gave me the tickle to start learning about this stuff.

Side info it works fine on Windows10 Pro 64bit (Android studio)
[Android Apps and Games] daxgirl:
We are both honored by seeing you here. Please don't hesitate to ask anything you need. Not only regarding this project. It's our pleasure to walk among giants like you, sir.
[Android Apps and Games] tp2215:
I just wanted to say thanks as well! Started working on a new version of my room a few days ago and managed to successfully get the app all setup and integrated. It looks beautiful by default now and I am loving it. Just in the process now of modding away! Thanks a lot!
[Android Apps and Games] aceqott:
Good Morning

I got an error when trying to synchronize:

Messages Gradle Sync

Error:Could not determine artifacts for com.github.shell-software:fab:1.1.1: No cached version available for offline mode

Event Log

10:29:56 Gradle sync started
10:33:24 Gradle sync failed: Could not HEAD 'https://jcenter.bintray.com/com/github/shell-software/fab/1.1.1/fab-1.1.1.aar'. Received status code 500 from server: Internal Server Error
Consult IDE log for more details (Help | Show Log)
10:33:44 Gradle sync started
10:33:45 Gradle sync failed: Could not determine artifacts for com.github.shell-software:fab:1.1.1: No cached version available for offline mode
Consult IDE log for more details (Help | Show Log)
10:34:42 Gradle sync started
10:34:42 Gradle sync failed: Could not determine artifacts for com.github.shell-software:fab:1.1.1: No cached version available for offline mode
Consult IDE log for more details (Help | Show Log)
10:36:55 Gradle sync started
10:36:56 Gradle sync failed: Could not determine artifacts for com.github.shell-software:fab:1.1.1: No cached version available for offline mode
Consult IDE log for more details (Help | Show Log)

You know that is?
[Android Apps and Games] aceqott:
Need urgent help, not even let me compile the application.

Edited: It was to have marked the box on "Work Offline" in Gradle

I do not know why this happened.

For everything else, it works fine in my ROM.

Excuse
[Android Apps and Games] aceqott:
Good again, sorry to be heavy, but I'm finalizing changes in my ROM.

Can you modify the application so that when we were to run the application displays the sidebar?
[Android Apps and Games] daxgirl:
can you clarify what you need? I don't understand what you mean by displaying the sidebar.

in general the app is given as is. if I have the time I will make modifications for personal requests. as a rule, this is not our purpose. the code is provided for further development by rom devs.
[Android Apps and Games] Wuby986:
if i get it correctly he wants the app show the navbar every time you open the app, so he just needs to delete the part were the we save the shared prefs for it
[Android Apps and Games] daxgirl:
if that's the case than definitely :)
[Android Apps and Games] daxgirl:
Just FYI for the future:

1. logs you provided are utterly useless. problems with android studio are highly pc and software configuration specific. it's pointless to post logs of android studio or gradle problems

2. as stated in OP, we cannot solve problems related to android studio operation. the code as provided on git hub is working and compiles perfectly. any problems related to the initial compilation are user problems. should be solved locally. any problems related to java editing we can have a look at the code the thanks log cat.
[Android Apps and Games] aceqott:
Exactly, that was.

Sorry for not better explain what he meant.

What particular part would be eliminated?

Yes friend :)
[Android Apps and Games] daxgirl:
I will make the edits and post a guide to fix.

But you know it's Google guidelines that navigation drawer only opens first time to let user know it exists, right? opening it every time can be very annoying to the user. don't you think? I can help you fix it, but you should know your users will not like it.

take f.e. Gmail app... it has navigation drawer but it only opens first time. this is how Google asks for it to work in documentation.
[Android Apps and Games] aceqott:
OK thanks.

I did not think it would issue the android studio and my PC in particular, otherwise I would not have published anything.

Later, hopefully, it was solved on my own. There was only disable "Work Offline" in the Settings.

Github is working perfectly as you said.

Thank you.
[Android Apps and Games] daxgirl:
yeah that's a bugger with offline gradle. .. you can't connect to any maven libs... wuby had a problem like that for awhile, it's really annoying!!!
[Android Apps and Games] aceqott:
Yes, I understand.

My users asked me to work this function this way. I think it can become annoying, we will see how it works with this feature.

Thanks friend.
[Android Apps and Games] daxgirl:
understood. alright then. let's kick that preference out. I will get to pc soon and make a fix for you.
[Android Apps and Games] malbert16442:
[MENTION=4714483]daxgirl[/MENTION] nice guide but I have trouble comprehending this part " You have to specify the same default value here. If in smaly it was 0x1,. then in the app it must be android:defaultValue = "true". YOU MUST SPECIFY DEFAULT!'

im able to debug app and run it
[Android Apps and Games] daxgirl:
if in small you set default int for this key as 0x1 then in the app you have to set android:defaultValue="true"
[Android Apps and Games] daxgirl:
Alright then...

Open NavigationDrawerFragment.java in android studio.

Find method public void onDrawerOpened(View drawerView)

We will make the changes as follows:

Before:

@Override
public void onDrawerOpened(View drawerView) {
super.onDrawerOpened(drawerView);
if (!isAdded()) return;
if (!mUserLearnedDrawer) {
mUserLearnedDrawer = true;
SharedPreferences sp = PreferenceManager
.getDefaultSharedPreferences(getActivity());
sp.edit().putBoolean(PREF_USER_LEARNED_DRAWER, true).apply();
}
getActivity().invalidateOptionsMenu(); // calls onPrepareOptionsMenu()
}
};

// If the user hasn't 'learned' about the drawer, open it to introduce them to the drawer,
// per the navigation drawer design guidelines.
if (!mUserLearnedDrawer && !mFromSavedInstanceState) {
mDrawerLayout.openDrawer(mFragmentContainerView);
}

// Defer code dependent on restoration of previous instance state.
mDrawerLayout.post(new Runnable() {
@Override
public void run() {
mActionBarDrawerToggle.syncState();
}
});

mDrawerLayout.setDrawerListener(mActionBarDrawerToggle);
}

and After (you need to delete all the sections in bold red:

@Override
public void onDrawerOpened(View drawerView) {
super.onDrawerOpened(drawerView);
if (!isAdded()) return;
[COLOR="Red"][B] if (!mUserLearnedDrawer) {
mUserLearnedDrawer = true;
SharedPreferences sp = PreferenceManager
.getDefaultSharedPreferences(getActivity());
sp.edit().putBoolean(PREF_USER_LEARNED_DRAWER, true).apply();
}[/B][/COLOR]
getActivity().invalidateOptionsMenu(); // calls onPrepareOptionsMenu()
}
};

// If the user hasn't 'learned' about the drawer, open it to introduce them to the drawer,
// per the navigation drawer design guidelines.
if ([COLOR="Red"][B]!mUserLearnedDrawer &&[/B][/COLOR] !mFromSavedInstanceState) {
mDrawerLayout.openDrawer(mFragmentContainerView);
}

// Defer code dependent on restoration of previous instance state.
mDrawerLayout.post(new Runnable() {
@Override
public void run() {
mActionBarDrawerToggle.syncState();
}
});

mDrawerLayout.setDrawerListener(mActionBarDrawerToggle);
}

Now the drawer will open every time the activity is launched.

Good luck!
[Android Apps and Games] aceqott:
Thank you very much, works like beta testers they said :good:
[Android Apps and Games] bluflight:
Hi my friend [MENTION=4714483]daxgirl[/MENTION] :) thanks like always for sharing your and wuby works! your explanations are really complete and exhaustive, really good job! master [MENTION=4715535]wuby[/MENTION] introduced me to the world of android studio some time ago, so i try do test something :)

I'm very newbie here i now, but i try to do always my best :)
[Android Apps and Games] est_yasser:
Hi there,

Do you know that I'm a big fan of you?

your guides are all complete, and all are the best guides among XDA

never read a guide without getting the full knowledge provided and succeed applying it in real life... Thank you so much

I'm stuck on something and I hope you can help me

I'm trying to turn off a preference when the layout changes (From LTR to RTL)

I mean, when a user changes the device language (f.e) and the layout changes to RTL, I need the app to set a specific preference to "false" and apply it

Edit: It would be better if there's a way to force LTR for SystemUI < cuz the preference I need to be off in RTL is related to sysui

Sincerely,
[Android Apps and Games] daxgirl:
Do you mean you need rtl support for the app?

and thank you for your kind words :)