[Q] SeekBar preference - Java for Android App Development

Hi.
I'm trying to use a seekbar preference in my app but I don't know how to start. I've heard android doesn't support a seekBarPreference. So how can I do it ? I've also heard about libraries such as aniqroid but I don't know how to use theme.
Thanks in advance.

torpedo mohammadi said:
Hi.
I'm trying to use a seekbar preference in my app but I don't know how to start. I've heard android doesn't support a seekBarPreference. So how can I do it ? I've also heard about libraries such as aniqroid but I don't know how to use theme.
Thanks in advance.
Click to expand...
Click to collapse
Try copying the files from Frameworks of sdk below and put them into your project :
Android/frameworks/base/core/java/android/preference/SeekBarPreference.java
Android/frameworks/base/core/res/res/layout/preference_widget_seekbar.xml

Related

[Request] How to remove recent apps from status bar

Hi devs,
I want to remove recent apps from the status bar.
The SystemUI.apk is from Hintay's HTX Mod 0.59.1|Android 2.3.3
I browsed all the forum and tried all these methods but didn't work on 2.3.3.
The methods I tried as below:
http://forum.xda-developers.com/showthread.php?t=1018818
http://forum.xda-developers.com/showthread.php?t=1225558
http://forum.xda-developers.com/showpost.php?p=15417961&postcount=107
I upload the SystemUI.apk and hope devs would be kind to teach me or help me to remove recent apps from the status bar.
Great thanks to you all !
Much appreciated !
There are two ways, one easy and one hard. In the hard one you kind of remove all the functionality of the recent apps section. In the easy one you just adjust the height to 0, so It's not visible. I only know the easy one do you know how to decompile apps? If not take a look in my guide ;-)
Then you can probably just do as the guides says or something. I haven't seen through them yet ;-) else go to res/ layout/ status bar expanded and find the line which includes recent apps or something similar. Change layout_height to 0.0dp ;-)
Edit: took a look at the guides. They are a bit more work, but you should use one of them instead, as they remove the whole thing so it will probably improve performance a bit more
Sent from my Hero using XDA
Thank you Habarug!
The purpose i want to remove the recent apps is just as you said it will improve performance when pulling down the notification bar.
So only adjusting the height to 0 may not improve the performance and reduce the laggy. Just my guess.
I've tried these guides but don't work..
But when you tried the guides, did you decompile the systemui or did you just open it with 7zip or smthing? You cannot change any xmls or smalis or stuff like that unless you decompile it
yes, i use apktool to decompile the SystemUI.apk and Notepad++Portable to edit.
who can answer...
another and easiest way is just replace system.ui from SalsaSense 4.0
http://jieehd.qap.la/options/HtcSalsaStatusBar.zip
Thank you! Good idea!
but my purpose is to learn the methods, just be curious and interested in these things
It seems that just editing the status_bar.xml as I explained above might help a bit on the performance I have no idea about the smali edits, I cannot change smalis without guide
caiyc9064 said:
Thank you! Good idea!
but my purpose is to learn the methods, just be curious and interested in these things
Click to expand...
Click to collapse
by the way,i tryed your rom and i can tell is very slow,i suggest you to try Rose v5
Habarug said:
It seems that just editing the status_bar.xml as I explained above might help a bit on the performance I have no idea about the smali edits, I cannot change smalis without guide
Click to expand...
Click to collapse
alright, i will have a try
slobo2712 said:
by the way,i tryed your rom and i can tell is very slow,i suggest you to try Rose v5
Click to expand...
Click to collapse
right, it's slow. but when i delete some apks such as htc hub, htc likes etc. and then add some scripts (06loopy_smoothness_tweak, 13KickAssKernel, 15cleanup_init_ram, 17speedy_modified, 30memtweak) from [ROM][2.3.5] Zero Hero Sense 3.5 RC 2.5 [Mar. 2, 2012] and also enable swap.
after that you will find this rom is really fast!
caiyc9064 said:
right, it's slow. but when i delete some apks such as htc hub, htc likes etc. and then add some scripts (06loopy_smoothness_tweak, 13KickAssKernel, 15cleanup_init_ram, 17speedy_modified, 30memtweak) from [ROM][2.3.5] Zero Hero Sense 3.5 RC 2.5 [Mar. 2, 2012] and also enable swap.
after that you will find this rom is really fast!
Click to expand...
Click to collapse
can u give a link to all the stuff u mentioned in your post?
tnx in advance
you mean the list of apks i remove or the scripts i add ?
caiyc9064 said:
you mean the list of apks i remove or the scripts i add ?
Click to expand...
Click to collapse
well if u can, please
List of apk's removed and scripts
scripts added:
06loopy_smoothness_tweak
13KickAssKernel
15cleanup_init_ram
17speedy_modified
30memtweak
50swapon
apks removed:
com.htc.FriendStreamWidget.apk
com.htc.MusicWidget.apk
com.htc.TrendsWidget.apk
com.htc.TwitterWidget.apk
CSPeopleSyncService.apk
DCSStock.apk
Flickr.apk
FriendStream.apk
GenieWidget.apk
GoogleBackupTransport.apk
GoogleFeedback.apk
GoogleQuickSearchBox.apk
HtcDirect.apk
HtcDirectDownloadsProvider.apk
HtcFeedback.apk
HtcGreader.apk
HtcHubSyncProvider.apk
HtcLog.apk
HtcProfileWidget.apk
HtcRecommends.apk
HtcRecommendsWidget.apk
HtcTipWidget.apk
LiveWallpapersPicker.apk
maps6.0.0-ownhere-signed.apk
MarketUpdater.apk
MyHTC.apk
MyReportAgent.apk
OnlineAssetDetails.apk
QuickLookup.apk
SpareParts.apk
Stk.apk
Stock.apk
Street.apk
Transfer-icong-8.20.0.26-S21.apk
VoiceDialer.apk
VoiceSearch.apk
YouTube.apk
maybe you could try to create and upload a flashable zip of your version of the ROM ... I'm sure many people who pay attention to your work
At least me
lolo7291 said:
maybe you could try to create and upload a flashable zip of your version of the ROM ... I'm sure many people who pay attention to your work
At least me
Click to expand...
Click to collapse
And me
lolo7291 said:
maybe you could try to create and upload a flashable zip of your version of the ROM ... I'm sure many people who pay attention to your work
At least me
Click to expand...
Click to collapse
pirlouit2 said:
And me
Click to expand...
Click to collapse
i'd love to share the rom.
but i'm in China, i can't upload it to the mediafire cause the GFW of our government.
can you suggest other web disks so i can have a try?
caiyc9064 said:
i'd love to share the rom.
but i'm in China, i can't upload it to the mediafire cause the GFW of our government.
can you suggest other web disks so i can have a try?
Click to expand...
Click to collapse
dropbox maybe? or e-mail it to somebody

[Rom-Dev] romname-res.apk what is the use of it?

As I have seen in many custom roms! In the framework folder like in hyperion has hyperion-res.apk.... What are the uses of keeping this file and How to use them... I am developing a rom thats why I am asking these questions... Like in a Lockscreen mod or a Statusbar mod its provided with the hyperion-res.apk but why... How does a rom simply usethat ap? Pls. someone pls. Guide me through this stuff so that I can improve my rom!
My main question is where are these resource apk's defined? Like isit namedin the framework-res.apk or twframework-res.apk? Pls. This Answer shouldbe withtechnosavie, Ganesh A, yash989, CarlDeanCatabay or someone else who knows this stuff And if like someone made a status bar mod for hyperion it contains hyperion-res.apk if I rename it to "rom-res.apk" Will it work? Pls. Provide me an answer!
One Simple Ansah
Its Lidroid-Res.apk
Used by lidroid toggles and some
Hmmm
74M3NUMB3RS said:
One Simple Ansah
Its Lidroid-Res.apk
Used by lidroid toggles and some
Hmmm
Click to expand...
Click to collapse
But like described in Ganes A's mod thread ICS Lockscreen there
death_sinker said:
But like described in Ganes A's mod thread ICS Lockscreen there
Click to expand...
Click to collapse
I dont get you :sly:
I thought u have much knowledge than me :sly:
Doesnt matter if u r 1 year older than me dude
Hmmm
74M3NUMB3RS said:
I dont get you :sly:
I thought u have much knowledge than me :sly:
Doesnt matter if u r 1 year older than me dude
Hmmm
Click to expand...
Click to collapse
I make these kinda thread to gain more knowledge People Rename lidroid-res.apk to creed-res.apk/rom-res.apk I know that too! I was getting confused nothing much >.<
y u no read guides instead of making threads start from basics u will know every this
Sent Via Muffins
Want To Ask Question? Ask Here
Thanks,
TechnoSavie
rom-res file is the toggle file.Whenever you change the the rom-res,you just replace the toggles file with a new one.
"A fool flatters himself but a wise flatters the fool" - Doctor VC
They are used to store res files like icons drawables etc for the rom's toolbox were you customize the rom...
They basically have the lockscreen and quick toggle data.. resources nd layouts
depends on what it is declared,
i can make a lozer.apk and it is a interface pack for the whole android system,
depends on how it is declared in the xmls
deathnotice01 said:
depends on what it is declared,
i can make a lozer.apk and it is a interface pack for the whole android system,
depends on how it is declared in the xmls
Click to expand...
Click to collapse
How do we declare apk's in xml's?? I mean which xml?
Sent from my SGY with muffins.!
Mostly android manifest and style xml

SpectrumWorx SDK - sound effects for Android

Hi devs,
Cool sound effect library for Android at LittleEndian.com - SpectrumWorx SDK.
Check it out.
DanijelX said:
Hi devs,
Cool sound effect library for Android at LittleEndian.com - SpectrumWorx SDK.
Check it out.
Click to expand...
Click to collapse
Hmmm .... Cool ! .. Thanks for sharing ... :good:
niranjan94 said:
Hmmm .... Cool ! .. Thanks for sharing ... :good:
Click to expand...
Click to collapse
No problem, thanks.
Please feel free to try the demo version, there is a working Eclipse project available in the zip package.
Also, use our GUI tool to first create your sound effects, then transfer the sounds easily to your app.
:good:
DanijelX said:
No problem, thanks.
Please feel free to try the demo version, there is a working Eclipse project available in the zip package.
Also, use our GUI tool to first create your sound effects, then transfer the sounds easily to your app.
:good:
Click to expand...
Click to collapse
Demo version is based on the NativeActivity. I need to integrate with the Activity. When i run with the activity then there is a method setAppContext(JAVAVM:: jvm, jobject :: Activity) shows an exception VM aborting. How to resolve this issue.
Hi,
We can confirm there is a bug in current version. We will provide a fix for this in the next version 2.5, which we plan to release in April 2015. We hope you can wait?
Regards.

Change App Icon Systemwide

Hi Peeps,
I want to change a specific icon of an app, and I want the changes to take effect on homescreen and app drawer. Ive searched for solution but what I found is just to use an app (which just create a shortcut on homescreen) and/or a launcher.
I want it to have on default TW.
Btw, I am rooted on Nougat.
Cheers!
as far as I know you can use themes / icons or you would have to decompile the apk and change the icons in the mipmap folders
32dave said:
as far as I know you can use themes / icons or you would have to decompile the apk and change the icons in the mipmap folders
Click to expand...
Click to collapse
Thanks! Seems I have to learn on how to decompile/recompile apk for me to able to do this.
geraldalcos said:
Thanks! Seems I have to learn on how to decompile/recompile apk for me to able to do this.
Click to expand...
Click to collapse
try this I find it the easiest https://forum.xda-developers.com/showthread.php?t=1633333
32dave said:
try this I find it the easiest https://forum.xda-developers.com/showthread.php?t=1633333
Click to expand...
Click to collapse
Will start on that. Cheers!

[Theme Creating] How to edit third party apps using EMUI themes?

I found EMUI themes on the internet which changed the design of various third party apps like f.e. WhatsApp. So I know, I could just take the theme, and edit the com.whatsapp file in it, but there are not all design elements of the app included. So my question: How can I find out the name of every design element and file name to change the design of every part of each app?
This is huge process i think
I'd just need the name of the elements for this xml file and the rest of the file structure where the media files for icons are (with their name). How could other people do it then? Isn't there a way to easily find that out? ?
I guess you have to decompile the apps in question and look at their source code for the correct names for elements. Probably a bit time consuming process yes. But that's probably how they all do it.
Thanks, I decompiled WhatsApp.apk and am now trying to understand how this whole thing works... I still don't understand everything especially because of the theme.xml file which obviously only exists in the theme, but not in the decompiled WhatsApp.apk. But I'm going to try to find out everything by try and error
Maybe this will help you:
http://developer.huawei.com/consumer/en/resources/index.php?title=How_to_Create_Themes
Lyshalia said:
Maybe this will help you:
http://developer.huawei.com/consumer/en/resources/index.php?title=How_to_Create_Themes
Click to expand...
Click to collapse
Hmm there isn't explained how editing of any app works, only some app icons, wallpaper and lockscreen.
Lyshalia said:
Maybe this will help you:
http://developer.huawei.com/consumer/en/resources/index.php?title=How_to_Create_Themes
Click to expand...
Click to collapse
Themeing tool is available ? Do you have any links?
venugopalu007 said:
Themeing tool is available ? Do you have any links?
Click to expand...
Click to collapse
There is a link on the site, you will find it. Just scroll down a bit.
Lyshalia said:
There is a link on the site, you will find it. Just scroll down a bit.
Click to expand...
Click to collapse
In which section , i didn't find the link
venugopalu007 said:
In which section , i didn't find the link
Click to expand...
Click to collapse
1. THEME TEMPLATE & TOOL
1.1 Download the required files
Lyshalia said:
Maybe this will help you:
http://developer.huawei.com/consumer/en/resources/index.php?title=How_to_Create_Themes
Click to expand...
Click to collapse
Lets see , thanks for the link.
Does anyone know how to edit the chat bubbles in Whatsapp using the EMUI themes? I already tried to enter another color inside the theme.xml:
<color name="bubble_color_outgoing">#ffd29bd7</color>
And I also tried to edit those files (see attachment) inside /res/drawable-hdpi-v4/, /res/drawable-xhdpi-v4/ and /res/drawable-xxhdpi-v4/.
Nothing changed. Is the EMUI theming engine unable to edit those chat bubbles or is there another file that I missed?

Categories

Resources