How To reduce App Size in android studio - Android Studio

I am building a flashlight app for android. I want the size of the app to be small,so that it is fast and less task intensive.

LED
I tinks that is not possible because the led included has not a controller.
Hope Have Helpep,
FFY00

Related

[Android 2.1+] Total Screen Filter (updated on 19 October)

*** WATCH VIDEO DEMO !!! ***
This is the easiest and coolest way to apply a screen shade to your phone screen !
Applies a shade that acts as a dimmer to ensure your eyes don't hurt, beyond lowest brightness settings. Great for low light gaming, web browsing, and eBook reading. Saves battery life for AMOLED displays!
Control the filter level with a customizable bar that can be accessed from any application you're in.
Allow to set individual settings for each application in part.
Set custom picture, tiles and more.
Available on Market:
https://market.android.com/details?id=alex.munteanu.tsf
Log changes:
19/10/2012 - Version 1.4
Added the option to move the filter bar up or down from the center position.
Minor bug fixes.
20/04/2012 - Version 1.3
New option to allow the Screen Filter value reach 100%. Use this option carefully !
26/02/2012 - Version 1.2
Added Tasker/Locale plugin !
28/01/2012 - Version 1.1
NEW FEATURE : Softkeys backlight control !
Turn off softkeys when screen filter value reach a configurable preset value
2 methods for turning off softkeys, if doesn't work on your device try the other one, and if both doesn't work please contact me.
Wow. I love the concept.
I didn't have a chance to check out the whole video (youtube was acting up), but does this have the ability to automatically dim the screen to a specified level based on what application I have open? For example, could I set it to automatically dim my screen to the lowest setting when I have my bank app open?
That would probably make this worthwhile.
mfitz8530 said:
Wow. I love the concept.
I didn't have a chance to check out the whole video (youtube was acting up), but does this have the ability to automatically dim the screen to a specified level based on what application I have open? For example, could I set it to automatically dim my screen to the lowest setting when I have my bank app open?
That would probably make this worthwhile.
Click to expand...
Click to collapse
Yes, you can set the level independently for each application, the color, the choice to show/hide the bar.
awesome thank you for advertisment of this app
Version 1.1 is out :
NEW FEATURE : Softkeys backlight control !
Turn off softkeys when screen filter value reach a configurable preset value
2 methods for turning off softkeys, if doesn't work on your device try the other one, and if both doesn't work please contact me.
muntos said:
*** WATCH VIDEO DEMO !!! ***
This is the easiest and coolest way to apply a screen shade to your phone screen !
Applies a shade that acts as a dimmer to ensure your eyes don't hurt, beyond lowest brightness settings. Great for low light gaming, web browsing, and eBook reading. Saves battery life for AMOLED displays!
Control the filter level with a customizable bar that can be accessed from any application you're in.
Allow to set individual settings for each application in part.
Set custom picture, tiles and more.
Available on Market:
https://market.android.com/details?id=alex.munteanu.tsf
Log changes:
28/01/2012 - Version 1.1
NEW FEATURE : Softkeys backlight control !
Turn off softkeys when screen filter value reach a configurable preset value
2 methods for turning off softkeys, if doesn't work on your device try the other one, and if both doesn't work please contact me.
Click to expand...
Click to collapse
Purchased! Thanks..Just waiting for Goog to send it to my phone
Thank you also, if you like it please rate the application on the market.
Sent from my GT-I9100 using Tapatalk
youtube.com said:
Unfortunately, this video is not available in Germany because it may contain music for which GEMA has not granted the respective music rights.
Click to expand...
Click to collapse
could you upload the vid with another soundtrack?
The trial version is expired. Could you update it?
Trial of what... ? Total Screen Filter doesn't have a trial version , only Total Screen Control
Sorry, I did mean Control, posted in a wrong thread.
crimper said:
Sorry, I did mean Control, posted in a wrong thread.
Click to expand...
Click to collapse
I thought so...
There is a Trial of Total Screen on the Market, you can try that one also
muntos said:
I thought so...
There is a Trial of Total Screen on the Market, you can try that one also
Click to expand...
Click to collapse
I looked again and can't find it. There are only two other apps by you - Filter and Network Monitor. Unless it's not available for ICS devices.
crimper said:
I looked again and can't find it. There are only two other apps by you - Filter and Network Monitor. Unless it's not available for ICS devices.
Click to expand...
Click to collapse
The trial is published under a different account, just search in the market for "Total Screen Control" and you'll find also the trial version.
this is nice.,thanks ^_^ i will purchased this..
wow great idea, you are the best
Version 1.2 is out:
Added Tasker/Locale plugin !
thanks alot for posting, keep it up, you're doing great!
I just purchased the app. I like it, especially for the Tasker integration.
I was using the other 'Screen Filter' app for a while but it was
having full brightness flicker issues when I would have Tasker change
the filter % from one value to another. This was incredibly annoying.
I do have a MAJOR request though that I believe would help me truly
appreciate my purchase. The primary reason I use these filters is to
attempt to black out my AMOLED screen.....unfortunately, your Total
Screen Filter app maxes the filter at 94.12%. This is a huge problem
for me. Furthermore, your competitor (Screen Filter by haxor industry)
allows for dimming the screen even further then your app (they allow
for 2% filter....which is what you call 98% in your app....almost
pitch black).
I'm an optical engineer and work in extreme dark rooms alot. Sometimes NO VISIBLE LIGHT can be on in these rooms
while experiments are running...sometimes a very small amount is
acceptable.
So my DESPERATE plea for a feature request:
Allow for users to push the filter further beyond 94.12%....ideally a
full 100% black out. Because honestly, 94.12% is not enough at all for
my purposes. At least allow for a 98% filter so you can be equivalent
to your competitor's capabilities (which is a free app I might add).
I can understand your concerns with allowing this ability (people
unknowingly blacking out their screens). So maybe making it a
non-default ability would work perfectly. I use these filters with
Tasker and have it setup so I can easily remove the screen blackout
under particular conditions. Please help me out here. This ability
would really make me happy.
zhdenny said:
I just purchased the app. I like it, especially for the Tasker integration.
I was using the other 'Screen Filter' app for a while but it was
having full brightness flicker issues when I would have Tasker change
the filter % from one value to another. This was incredibly annoying.
I do have a MAJOR request though that I believe would help me truly
appreciate my purchase. The primary reason I use these filters is to
attempt to black out my AMOLED screen.....unfortunately, your Total
Screen Filter app maxes the filter at 94.12%. This is a huge problem
for me. Furthermore, your competitor (Screen Filter by haxor industry)
allows for dimming the screen even further then your app (they allow
for 2% filter....which is what you call 98% in your app....almost
pitch black).
I'm an optical engineer and work in extreme dark rooms alot. Sometimes NO VISIBLE LIGHT can be on in these rooms
while experiments are running...sometimes a very small amount is
acceptable.
So my DESPERATE plea for a feature request:
Allow for users to push the filter further beyond 94.12%....ideally a
full 100% black out. Because honestly, 94.12% is not enough at all for
my purposes. At least allow for a 98% filter so you can be equivalent
to your competitor's capabilities (which is a free app I might add).
I can understand your concerns with allowing this ability (people
unknowingly blacking out their screens). So maybe making it a
non-default ability would work perfectly. I use these filters with
Tasker and have it setup so I can easily remove the screen blackout
under particular conditions. Please help me out here. This ability
would really make me happy.
Click to expand...
Click to collapse
Hi, it will be implemented in the next version
Regards,
Alex

[MOD]Smart StatusBar Acess to Status Bar When Full Screen

Link: https://play.google.com/store/apps/details?id=com.kiumiu.ca.statusbar.free
Very useful for gamers who just want to turn brightness up, check notification and things like that.
Thanks for linking to the app, i definitely think this is something google should have built into android. I was looking for something like this a few weeks ago, too, and here it is.
However, i think it belongs in the Themes and Apps section, development is based around ROMs and Kernel modifications, though if a feature like this could be built into custom ROMs it would be priceless.
I agree. This should be a standard feature for Android, well, as for now this app does the job
Wow, really useful app I've come across in awhile. It was always a pain to switch back into the homescreen.
My only concern is that it takes up 12 MB of RAM. I think it could be more optimized? Well everything has a price.
I'm assuming this would constantly have to run in the background. Wouldn't that deplete battery life? ICS's battery life isn't amazing as is so I am not sure I want to make it worse...
FYI, there is a built-in option in MIUI to enable this feature
it uses too much ram 10mbs for this small app is a bit much.
Sent from my Nexus S using xda premium
6.7mb here. Doesn't use any extra battery. No complaints here.
Did not notice any decrease in performance of my phone, nothing noticeable anyway. Supercharge your phone to compensate if you want.
309041291a said:
I'm assuming this would constantly have to run in the background. Wouldn't that deplete battery life? ICS's battery life isn't amazing as is so I am not sure I want to make it worse...
Click to expand...
Click to collapse
I doubt this consumes extra battery life; if so, it's negligent. RAM used does not consume more power; only CPU cycles do.
Besides, if this app was programmed well. It would only be active if it notices that the foreground app was in fullscreen mode.
Very usfull for me,thanks to the creator
This is my app. It doesn't do polling from system to get full screen change. It is triggered when there is size change in window. So it doesn't do anything until it is called by system for adjusting its size.
This feature definitely does need to be implemented stock. It's a wonder that it hasn't already really.
Thanks!

[APP][JB] Boost My Xperia™ - Tiny yet Powerfull tool

Hello fellas !!
I was searching around and found this really useful tool, developed by gagan.u20
Here's the link to original thread
About the app as said by HIM :
What is Boost My Xperia™?
Boost My Xperia™ is a tiny yet powerful app that boosts your device's performance. Initially, I made this app for my ROM users only and after launching my new updates of rom (also the app is updated to v2.0), I thought to share this app with all of you here on XDA.
Basically its is a kinda of task manager, but actually it does more than a task manager.
This new app comes with a beautiful UI and a handy widget. There are three profiles to boost your device i.e. Gaming, Multitasking and default. Choose between any of these and you are done.
* Gaming mode is suitable for game lovers. It boosts your device and make a more free RAM available to play heavy games. If you like to play HD games in your device then first enable Gaming mode from this app and then start playing your games without lags.
* Multitasking mode manages memory and give an optimum amount of free RAM. This mode is suitable for those who love to try and have installed several apps in their device. This mode lets you to switch between several apps in a quick and more responsive way.
* Default mode reverts back the changes that are made by this app (in case if you want to remove this app).
Also there is a Quick Boost feature available in app which kills some useless background apps and make some more free RAM.
You can boost your device from the home screen by using a beautiful "Boost" widget that comes with this app or you can boost you device from app drawer by launching this app and clicking Quick Boost button.
Caution: Boosting your device may cause some apps to force close unexpectedly. You may see some FCs of apps in Gaming mode (which is normal). So enable Gaming Mode only when you want to play games.
Note: Unlike other task managers that always reside in memory, this app doesn't leave any active service to eat your RAM ( as I already told that this is more than an ordinary task manager). So don't get confuse that this app will take some extra memory, instead, it will boosts some extra free memory.
* This app is compatible with/without a supercharged ROM but if your ROM is supercharged then you will get Super Boost.
Requirement : Rooted Phone
Download : Here
Do Thank HIM..
Screenshots : Coming Soon !!
V3.0 is coming and it includes:
Free version :
1. Ads
2. Switiching profiles (Gaming/Multitasking/Default)
3. Quick Boost
4. Widget.
5. No auto apply on boot, so you have manually do it.
Pro version will have following features (just for $0.99):
1. Ad free app
2. Switiching profiles (Gaming/Multitasking/Default)
3. Quick Boost
4. Widget.
5. Auto apply on boot, so you don't have to select profile each time when you boot your device.
6. Battery saver (start automatically when you choose any profile).
7. Improve SD speed (start automatically when you choose any profile).
8. Lag reducer and enhance smoothness module (start automatically when you choose any profile).
9. Stay in notification bar (optional for those who want to keep it in memory).
Best regards to Gagan.U20
**reservd for future updates**
I very early know of this and have already install in my sony xperia z for some time already
I think it is more useful for devices with less RAM. Xperia Z already has much RAM available anytime for apps and games. Just my opinion. BTW thanks for pointing it.

[APPS] List of amazing apps

Amazing Apps for the Xperia Z​
A list of must-try applications​
Hi guys, I've been trying out a lot of apps lately and I was surprised by the number of apps that go unnoticed when you're browsing the Play Store.
These may not be the most recent apps, but they're just apps that I think everyone should experience at least once.
None of these apps are specifically made for the Z, but they work well with it.
Anyway, I've put together a list of apps and a short description for them. Screenshots used are of my own phone.
I hope you like the suggestions, do give these apps a try.
Apps in this list may require -ROOT-.
This list contains -PAID- applications. (Please try the free versions of such app before purchasing)
Some apps run on the -XPOSED- framework.
All links to apps are to Play Store or XDA Thread.​
App Settings:
|-ROOT-|-XPOSED-|
Download from XDAThread​
Ever change the phone's dpi and find out that some apps just don't look right? (Hint: Phone dialer on Xperia Z)
Well, now that's no longer a problem because you can keep different dpi for different apps. The App Settings Xposed module lets you set per app dpi & font size.​
Camera FV-5:
|-PAID-|
Download from Play Store​
When it comes to taking pictures, some people just want a camera that adjusts it's settings automatically. But if you're one of those peoples who likes DSLRs where you can adjust various parameters to get the "perfect shot", this is the app for you!
Camera FV-5 can also produce photos in PNG format, thus preserving high quality of pictures. Multiple focus modes, Shutter speed adjustment, Exposure adjustment, and the list goes on. Hands down the best professional camera app ever!​
Delayed Lock:
|-ROOT-|-PAID-|
Download from Play Store​
The main drawback of having a lockscreen pattern is that you have to enter it each time you want to unlock the device, even if it is only a few seconds after screen off. If you set a lock delay in settings, say 2 minutes after screen off, your phone will unlock right away. No slide lockscreen. The solution for this is to use Delayed Lock. Aside from the mentioned feature, it also has other useful plugins for WiFi based unlock, location based unlock, etc.​
DroidCam:
Download from Play Store​
Webcams suck because most of them have really bad picture quality. Wouldn't it be awesome if your phone's camera could work as a webcam?
Well, here's your solution. DroidCam can connect to your phone in multiple ways and stream video from your phone's camera to your PC.
You need to install software on your PC too. It is compatible with Windows and Linux.​
GMDGesture Control:
|-ROOT-|-PAID-|
Download from Play Store​
Having a 5 inch screen, I thought it would be awesome to be able to perform multitouch gestures to navigate between activities and control various device features.
GMD gesture Control proved to be exactly what I was looking for.
With a great levels of customization and an extensive feature set, this app is probably the best gesture control app you'll ever come across.
(Tip: In advanced settings, set Override touch events parser to: ICS_DEFAULT)​
Greenify:
|-ROOT-|-XPOSED-|
Download from Play Store​
The worst part of having a ton of apps is that they drain battery even when you aren't using them.
Well, with Greenify, you pretty much ensure that applications that you don't need running in the background will be hibernated when you aren't using them!
It's very simple to use & very low on resources.​
History Eraser:
Download from Play Store​
If you're like me, then you hate having any sort of history on your device. History Eraser erases history from apps like the browser, play store, call logs, etc. at the touch of a button.
It also has a handy 1x1 widget for this.​
Icon Themer:
|-ROOT-|-XPOSED-|
Download from XDA Thread​
This Xposed module can change system icons. The beauty of it is that it can be used for all launchers.
Everytime a resource is requested, it responds with the corresponding resource that the theme redirects to.​
Lockscreen Policy:
Download from Play Store​
One feature I hate in 4.2.x is that the camera is accessible over the lockscreen. I have also noticed a number of people who do not like the idea of having widgets on the lockscreen. Lockscreen Policy allows you to disable lockscreen widgets and/or camera.​
MoDaCo Toolkit:
|-ROOT-|-XPOSED-|
Download from XDA Thread​
This handy set of tweaks runs on the Xposed framework.
Good for ROM customization. ​
SD Maid:
|-ROOT-|
Download from Play Store​
SD Maid can clear up unnecessary data from your phone. No more do you need to worry about apps leaving behind traces of data after uninstall.
It also has useful features like Corpsefinder, which finds traces of uninstalled apps and Duplicates, which finds duplicate copies of files which can help you save space.​
Sidebar Pro:
|-PAID-|
Download from Play Store​
An amazing app that puts a sidebar on the phone which can hold app shortcuts and/or a list of open apps.
It is an overlay on the screen and doesn't interfere with functioning of other applications.
A must have for multitaskers!​
SoftkeyZ:
|-ROOT-|-PAID-|
Download from Play Store​
Easily change your Navbar's softkeys with this app.
Occasionally causes problems, but if you're an experienced user, you will have no problems fixing it.​
Startup Manager:
|-ROOT-|
Download from Play Store​
A great app to manage startup of applications. Many apps launch on boot that considerably slow down the phone. Not only that, but they also end up draining battery if they are not killed.
Startup manager lets you decide what apps will launch on boot. It can also control startup of system applications.​
Trickster Mod:
|-ROOT-|
Download from Play Store​
Trickster MOD is a nice, easy-to-use tweaker. It may not have a ton of options, but it does have the most useful ones and the ones that really matter.
It also has these "tools" that help you change your device's hostname, trigger the media scanner and connect through ADB over WiFi.​
Wakelock Detector:
Download from Play Store​
I was huge fan of Better Battery Stats, but of late, I've been having problems with it. I was searching for a good replacement, which is when I came across this app.
A humble app that shows you a list of wakelocks. Does the job well and does not consume additional resources.​
XBackground:
|-ROOT-|-XPOSED-|
Download from XDA Thread​
An Xposed module that can change the background for the Xposed Installer app as well as the background of the notification bar.
Needs a reboot to take effect.​
Xposed Installer:
|-ROOT-|
Download from XDA Thread​
The Xposed Installer installs the Xopsed framework and helps to manage Xposed modules.
This framework is compatible accross most ROMs. An absolute must for people who love customizing their phones.​
Xposed Tweakbox:
|-ROOT-|-XPOSED-|
Download from XDA Thread​
Another Xposed module for small tweaks and customizations.
The CRT animation is particularly interesting. ​
XThemeEngine:
|-ROOT-|-XPOSED-|
Download from XDA Thread​
Ever wanted to use CM themes on a non-CM ROM? More specifically, have you ever wanted T-Mobile Theme Engine themes on a ROM that doesn't have the T-Mobile Theme Engine built in?
Well, this is the answer. XThemeEngine does exactly that. The drawback though is that it's limited in it's scope and not everything works perfectly (The project is still in beta). Also, themes need to be ported and cannot be directly used as is.​
Zooper Widget:
Download from Play Store​
Don't you love an app that lets you create your own widgets? Zooper Widget allows you to create highly customizable widgets.
It's quite light on resources too.​
I hope this post was informative.
Took me quite a while to put this together, and it's not really what I usually do, but I thought I'd put in the effort anyway. ​
​
Thanks for the list, can I suggest six axis tool I find it really handy for gaming if you have a spare ps3 remote
Sent from the beast!
MattJaO3D said:
Thanks for the list, can I suggest six axis tool I find it really handy for gaming if you have a spare ps3 remote
Sent from the beast!
Click to expand...
Click to collapse
I don't own a PS3 (PCGamer ), so I have never used the app. I will however add it to the list later.
I wonder if it will work with my Xbox 360 Wired Controller for Windows. Some games do support the Xbox controller without having to modify anything.
I'll test it out tomorrow when I get back home.
Wowww amazing apps jajaja, para ésto hay un subforo no?
Sent from my C6603 using xda premium
Thanks for the list
domaco xposed app only works for deodexed roms/AOSP based?
im currently on stock,locked but no changes has been seen.. or should i reboot?
I bit the bullet and bought camera fv I'm a sucker for pics and I'm well glad I did not only does it give a million options but you can set the hardware control's ie volume control to take pics
Sent from the beast!
So i installed the Exposed Installer and now my battery is messed up. My z was on discharging 19% left and when i connected to pc....immediately raised upto 45%, 10 mins later the phone died. Any ideas?
Aresmar said:
Thanks for the list
Click to expand...
Click to collapse
You're welcome.
leongzxc said:
domaco xposed app only works for deodexed roms/AOSP based?
im currently on stock,locked but no changes has been seen.. or should i reboot?
Click to expand...
Click to collapse
Nope, I'm on an odexed stock ROM. Some tweaks may not work, some might. All of them need a reboot to take effect & also ensure that you enabled the module in Xposed.
MattJaO3D said:
I bit the bullet and bought camera fv I'm a sucker for pics and I'm well glad I did not only does it give a million options but you can set the hardware control's ie volume control to take pics
Sent from the beast!
Click to expand...
Click to collapse
Yes. I'm just back from a vacation to a beautiful hill station. I was grateful for that amazing app!
handsup1 said:
So i installed the Exposed Installer and now my battery is messed up. My z was on discharging 19% left and when i connected to pc....immediately raised upto 45%, 10 mins later the phone died. Any ideas?
Click to expand...
Click to collapse
This is most likely not related to Xposed framework.
Try and do a full charge to 100% and see if it's just a random problem.

Setting Screen Dim Amount When Inactive?

I would like to use my fire tablet as an alarm panel. Found a few apps that display full screen web pages, that works good. In the development options I turned on "stay awake" so the panel could always be on. After like 30 seconds of no using the screen just barley dims. I would like to dim the screen as much as possible after no use. Anyway to override this amount? I found several apps that can set the dim amount, but just by a schedule, not by inactivity. Or even a web browser app that can control the dimming when not in use?
Thanks a bunch!
Coods said:
I would like to use my fire tablet as an alarm panel. Found a few apps that display full screen web pages, that works good. In the development options I turned on "stay awake" so the panel could always be on. After like 30 seconds of no using the screen just barley dims. I would like to dim the screen as much as possible after no use. Anyway to override this amount? I found several apps that can set the dim amount, but just by a schedule, not by inactivity. Or even a web browser app that can control the dimming when not in use?
Thanks a bunch!
Click to expand...
Click to collapse
Unfortunately, not possible on this device. Minimum brightness level set in kernel (possibly a panel/controller limitation) with no known workarounds (via Xposed). To date this is the only device I own that exhibits this behavior.
Thanks for that info Davey. Maybe I'll see if I can create my own app with a webview that will dim when not touched for a period of time. Since it seems an app can control the dim level. Thanks again.
Coods said:
Thanks for that info Davey. Maybe I'll see if I can create my own app with a webview that will dim when not touched for a period of time. Since it seems an app can control the dim level. Thanks again.
Click to expand...
Click to collapse
Ah - so you are not experiencing any dimming vs dissatisfied with the minimum level. Couple thoughts:
- might be able to use an automation tool like Macrodroid or Edge (w/Xposed) to dim the screen on a particular action like last user action or time of day; Tasker (a fan favorite) can do this as well but is overkill for your needs IMO
- blue light filters can emulate deeper dimming levels but you won't realize the associated battery saving as backlight level remains untouched; the again you device is likely plugged in when used as an alarm clock
Unfortunately Macrodroid and Tasker can not listen for inactivity/idle events. Sounds like an Android limitation: http://macrodroid.freeforums.org/inactivity-period-as-trigger-t86.html
Not sure what Edge (w/Xposed) is, not finding that?
Thanks Davey!
Coods said:
Unfortunately Macrodroid and Tasker can not listen for inactivity/idle events. Sounds like an Android limitation: http://macrodroid.freeforums.org/inactivity-period-as-trigger-t86.html
Not sure what Edge (w/Xposed) is, not finding that?
Thanks Davey!
Click to expand...
Click to collapse
Edge is a module for Xposed Framework. You might also consider a different trigger sequence than inactivity/idle, eg: touch, activity atart or time of day. Might need to get a little creative with the thinking

Categories

Resources