AC Unslide 1.02 - unlock when board slides out - HTC Vox

Hi everybody,
I've written an application that could be very useful for Us (Vox owners ).
here's the legend ...
Some time ago, I was looking for an application that would improve our smartphone with: unlock keys when hardware keyboard slides out... In net resources there was nothing like that available : ( so after many searches, I tried to write my own app,
so here it is... AC Unslide 1.02 with support for Polish and English OS Language,
if anybody could tell me how do we write "Unlock" in Czech, French, German, and Other lang I will support my app with them...
I am looking for this:
{
"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"
}
another thing: it's demo... it only unlocks keyboard one time per application run... after unlock: AC Unslide 1.02 close itself.
How AC Unslide looks:
You can dl it from this link:
http://chomikuj.pl/cichy3000/KosciStudenta/acunslide102i.CAB

yeap... first but not last

Look very good. Can't wait to try it but I'm not actually living in very stables Os's !!

Could somebody translate word from Unlock Screen ?
in English: Unlock
in Polish: Odblokuj
in French:...
in Czech:...
other lang... ?

Thanx, very nice app
French: déverouiller
German: entsperren

I remembered this
Here should be all translations next to each country code :
Code:
<characteristic type="Lang0409">
<parm name="Unlock" value="Unlock" datatype="string"/>
</characteristic>
<characteristic type="Lang0809">
<parm name="Unlock" value="Unlock" datatype="string"/>
</characteristic>
<characteristic type="Lang0407">
<parm name="Unlock" value="Entsperren" datatype="string"/>
</characteristic>
<characteristic type="Lang0405">
<parm name="Unlock" value="Odemknout" datatype="string"/>
</characteristic>
<characteristic type="Lang0413">
<parm name="Unlock" value="Ontgrendelen" datatype="string"/>
</characteristic>
<characteristic type="Lang0410">
<parm name="Unlock" value="Sblocca" datatype="string"/>
</characteristic>
<characteristic type="Lang0418">
<parm name="Unlock" value="Deblocare" datatype="string"/>
</characteristic>
<characteristic type="Lang0C0A">
<parm name="Unlock" value="Desbloquear" datatype="string"/>
</characteristic>
<characteristic type="Lang0415">
<parm name="Unlock" value="Odblokuj" datatype="string"/>
</characteristic>
<characteristic type="Lang040C">
<parm name="Unlock" value="Déverrouiller" datatype="string"/>
</characteristic>
<characteristic type="Lang040E">
<parm name="Unlock" value="Zár feloldása" datatype="string"/>
</characteristic>
<characteristic type="Lang041B">
<parm name="Unlock" value="Odomknúť" datatype="string"/>
</characteristic>
<characteristic type="Lang041F">
<parm name="Unlock" value="Kilidi Aç" datatype="string"/>
</characteristic>
<characteristic type="Lang0406">
<parm name="Unlock" value="Lås op" datatype="string"/>
</characteristic>
<characteristic type="Lang0419">
<parm name="Unlock" value="Разблокиров." datatype="string"/>
</characteristic>
<characteristic type="Lang0816">
<parm name="Unlock" value="Desbloquear" datatype="string"/>
</characteristic>
<characteristic type="Lang0416">
<parm name="Unlock" value="Desbloquear" datatype="string"/>
</characteristic>
<characteristic type="Lang0804">
<parm name="Unlock" value="解锁" datatype="string"/>
</characteristic>
<characteristic type="Lang0404">
<parm name="Unlock" value="解除鎖定" datatype="string"/>
</characteristic>
<characteristic type="Lang0414">
<parm name="Unlock" value="Lås opp" datatype="string"/>
</characteristic>
<characteristic type="Lang040B">
<parm name="Unlock" value="Poista lukitus" datatype="string"/>
</characteristic>
<characteristic type="Lang041D">
<parm name="Unlock" value="Lås upp" datatype="string"/>
</characteristic>
<characteristic type="Lang0408">
<parm name="Unlock" value="Ξεκλείδωμα" datatype="string"/>

so here it is:
acunslide104i.CAB
PL, Ger, Fr, Eng versions...
pls test it...

An unnexpected error in acunslide.exe
Must have a later version of Micrososft .NET compact framework...
Where can i find the update?

net3.5 was my platform... so U need to install it to use my prog...
http://rapidshare.com/files/74601710/NetCF_v3.5_all.rar
i haven't got any problems with cooked by dr Gonzo Rom...

installed that, wont work anyway

gonzo's rom has built in .net 3.5...

slovak, czech
traslation unlock to slovak an czech language
slovak - odomkni
czech - odemkni
i hope that is right

Hmm, tried to download it but only got:
"Sorry, this file is no longer available. It may have been deleted by the uploader, or has expired."
This app sounds very interesting Does it still close it self after first use or have this been fixed?
Br,
KLEMENTiN

Hmm looks nice...
will try it right away.

klementin said:
Hmm, tried to download it but only got:
"Sorry, this file is no longer available. It may have been deleted by the uploader, or has expired."
This app sounds very interesting Does it still close it self after first use or have this been fixed?
Br,
KLEMENTiN
Click to expand...
Click to collapse
Same Error for me
Roland

Could you post your source files, so that I can look into it? Please

Related

make WM6 voip working

First of all, I'm sorry for my poor english.
I have try a lot of time to make the WM6 voip working with my operator.
Now, it works fine for me so I will share my experience with you.
The tools :
WM6 PEE or Phil's ROM
For other Roms WM6voip
Download and install my patch to correct earing problems : View attachment registry_voip.cab
Configure Voip thanks to eluth's post here
To make your cab config you can also use View attachment cabpack.zip ( with mszip option
{
"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"
}
)
If your phone says "operator:Selected" you are OK
To make a voip call tape the phone number in international format like "00xxyyyyyy.." where xx is the country number and yyyyyy... the local phone number.
I'm working to redirect the sound to the internal speaker. I have seen that somebody makes it work on a pda.
It's my first post in this forum so tell me if something is wrong in my explanation.
Hope I can help you !
What does the patch "registry_voip.cab" do?
I have PEE Rom and have already set up VoIP with the built-in Voipiser tool - works nice, except the sound coming from the speaker. Also the main flaw is that my phonebook consists from numbers starting with "+", for example +74951234567. But for VoIP i have to manually dial the number without the "+", for example 74951234567. That means i can't use my phonebook and have to manually dial each number.
registry_voip.cab correct sound earing problems due to codec parameters used by lots voip operators.
If you store contact's phone number in international format like 003474951234567 then sip dialing is ok.
You can also search for local ipdialplan.xml.
Just wanted to know why when i am connected to wifi, i got VoipStunt: No Service and when connected to GPRS i got VoipStunt: Selected.
wifi issue
hizad said:
Just wanted to know why when i am connected to wifi, i got VoipStunt: No Service and when connected to GPRS i got VoipStunt: Selected.
Click to expand...
Click to collapse
See the firewall rules or the port redirections of your wifi access point. Have you try with more than one wifi connection ?
gandou63 said:
See the firewall rules or the port redirections of your wifi access point. Have you try with more than one wifi connection ?
Click to expand...
Click to collapse
May I know now you configure your VoIPStunt, do you use VoIPIser or manual editing of the xml files ?
gandou63 said:
See the firewall rules or the port redirections of your wifi access point. Have you try with more than one wifi connection ?
Click to expand...
Click to collapse
Thanks for advise. How can check on them?
Karhoe
Search previous threads under Solved Voip as for the settings go to www.voipstunt.com/en/sipp.html and configurations using setup.xml
xml file
karhoe said:
May I know now you configure your VoIPStunt, do you use VoIPIser or manual editing of the xml files ?
Click to expand...
Click to collapse
your xml file will be :
<wap-provisioningdoc>
<characteristic type="VoIP">
<parm name="SIPSettings"
value="<provision key='1232ab01' name='voipstunt'>
<provider name='voipstunt' />
<user account='user' password='pass***'
uri='sip:[email protected]'
allowedauth='digest'/>
<sipsrv addr='sip.voipstunt.com:5060' protocol='UDP' role='proxy'>
<session party='First' type='pc2pc' />
<session party='First' type='pc2ph' />
</sipsrv>
<sipsrv addr='sip.voipstunt.com:5060' protocol='UDP' role='registrar'/>
</provision>" />
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
xml file
karhoe said:
May I know now you configure your VoIPStunt, do you use VoIPIser or manual editing of the xml files ?
Click to expand...
Click to collapse
your xml file will be :
<wap-provisioningdoc>
<characteristic type="VoIP">
<parm name="SIPSettings"
value="<provision key='1232ab01' name='voipstunt'>
<provider name='voipstunt' />
<user account='user' password='pass***'
uri='sip:user@voipstunt.com'
allowedauth='digest'/>
<sipsrv addr='sip.voipstunt.com:5060' protocol='UDP' role='proxy'>
<session party='First' type='pc2pc' />
<session party='First' type='pc2ph' />
</sipsrv>
<sipsrv addr='sip.voipstunt.com:5060' protocol='UDP' role='registrar'/>
</provision>" />
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
thx for the info.
having 1 problem.
getting "operator:Selected"
but when I dail, I get 3 fast tut,tut,tut and then it disconnect.
i can see that iam connectet when i logon to my voip provider.
what have i done wrong?
I think the phone number format is wrong. try to manual dialing in international format. other way try short international format like +yyxxxxxxxx (+34123456789)
I'm working to redirect the sound to the internal speaker. I have seen that somebody makes it work on a pda
Click to expand...
Click to collapse
Any News??
i'm looking to this solution : here
Make your internal speaker work with AGEphone Mobile 2 Speakerphone Edition! For now we support only a limited range of phones, but support for more devices is in the pipe

[Q] how to make a select all check box

hi, i am trying to make a check all check box and i didnt know how to do that, i cant really explain it that well so i will just show you the code:
xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<CheckBox
android:id="@+id/cbAll"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="25"
android:text="Select All"
android:checked="true" />
<CheckBox
android:id="@+id/cb1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:checked="true" />
<CheckBox
android:id="@+id/cb2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:checked="true" />
<CheckBox
android:id="@+id/cb3"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:checked="true" />
<CheckBox
android:id="@+id/cb4"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:checked="true" />
<CheckBox
android:id="@+id/cb5"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:checked="true" />
java:
Code:
CheckBox cb1, cb2, cb3, cb4, cb5, cbAll;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
cb1 = (CheckBox) findViewById(R.id.cb1);
cb2 = (CheckBox) findViewById(R.id.cb2);
cb3 = (CheckBox) findViewById(R.id.cb3);
cb4 = (CheckBox) findViewById(R.id.cb4);
cb5 = (CheckBox) findViewById(R.id.cb5);
cbAll = (CheckBox) findViewById(R.id.cbAll);
cbAll.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
if (cbAll.setChecked(true)){
cb1.setChecked(true);
cb2.setChecked(true);
cb3.setChecked(true);
cb4.setChecked(true);
cb5.setChecked(true);
}else{
cb1.setChecked(false);
cb2.setChecked(false);
cb3.setChecked(false);
cb4.setChecked(false);
cb5.setChecked(false);
}
}
});
what i am asking is, is this part right, and if not can you tell me the right way to do it please:
Code:
cbAll.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
if (cbAll.setChecked(true)){
cb1.setChecked(true);
cb2.setChecked(true);
cb3.setChecked(true);
cb4.setChecked(true);
cb5.setChecked(true);
}else{
cb1.setChecked(false);
cb2.setChecked(false);
cb3.setChecked(false);
cb4.setChecked(false);
cb5.setChecked(false);
}
}
});
thank you.
Your problem is this line...
Code:
if (cbAll.setChecked(true)) {
...
You're setting the value of the cbAll checkbox, not getting it. You should use...
Code:
if (cbAll.isChecked()) {
...
Archer said:
Your problem is this line...
Code:
if (cbAll.setChecked(true)) {
...
You're setting the value of the cbAll checkbox, not getting it. You should use...
Code:
if (cbAll.isChecked()) {
...
Click to expand...
Click to collapse
Thank you!
I also have one more question, how can you have a button that when its clicked it brings me to another activity? Like if you click the button it goes to com.example.example.Example. How would I do that?
steineronie said:
Thank you!
I also have one more question, how can you have a button that when its clicked it brings me to another activity? Like if you click the button it goes to com.example.example.Example. How would I do that?
Click to expand...
Click to collapse
No worries mate. Have a look here...
http://www.dotnetexpertsforum.com/how-to-open-a-new-activity-from-button-click-in-android-t1322.html
I'm not being dismissive when I say this, like I often am with people on xda who ask how to do things that are heavily documented, but googling is a VERY useful tool for development work. I use it heavily on a daily basis. You just need to get good at searching with it and there's very little you can't find.
Eg. for your query I just googled for android button open new activity.
I'm happy to help, as I'm sure others on here are also happy to help, but sometimes Googling will get you a quicker answer.
Good luck mate
Edit: Forgot to mention, there's also a dedicated Android dev forum on here...
http://forum.xda-developers.com/forumdisplay.php?f=524
Archer said:
No worries mate. Have a look here...
http://www.dotnetexpertsforum.com/how-to-open-a-new-activity-from-button-click-in-android-t1322.html
I'm not being dismissive when I say this, like I often am with people on xda who ask how to do things that are heavily documented, but googling is a VERY useful tool for development work. I use it heavily on a daily basis. You just need to get good at searching with it and there's very little you can't find.
Eg. for your query I just googled for android button open new activity.
I'm happy to help, as I'm sure others on here are also happy to help, but sometimes Googling will get you a quicker answer
.
Good luck mate
Edit: Forgot to mention, there's also a dedicated Android dev forum on here...
http://forum.xda-developers.com/forumdisplay.php?f=524
Click to expand...
Click to collapse
Sorry for not looking on google, i will next time, and thank you again.
steineronie said:
Sorry for not looking on google, i will next time, and thank you again.
Click to expand...
Click to collapse
Don't worry about it mate - glad to help.

Setting up Eclipse to work with Google Play Game Services or Clear Sky 2

In this article I will describe how to set up Google Play Game Services has in eclipse
The article was written in the course of the game's development CLEAR SKY 2
Introduction
Many game developers want to use the service of Google Play Game Services in their games. I was no exception, but the knowledge and skills of how to quickly add support to your GPGS libgdx game was not. This article will describe how to connect the leaderboards and achievements. Initial data: Eclipse, set up the developer console to work with service game, android-project, the root project.
Setting
Will not tell you how to set up the developer console to work with GPGS, except to say that there we need the resources of the form:
games-ids.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Play game services IDs.
Save this file as res/values/games-ids.xml in your project.
-->
<resources>
<string name="app_id">310266082735</string>
<string name="achievement_take_10_levels">HgkIr62KmoQJEAIQBg</string>
<string name="achievement_take_30_levels">HgkIr62KmoQJEAIQBw</string>
<string name="achievement_take_50_levels">HgkIr62KmoQJEAIQCA</string>
<string name="achievement_take_70_levels">HgkIr62KmoQJEAIQCg</string>
<string name="achievement_take_100_levels">HgkIr62KmoQJEAIQCQ</string>
<string name="achievement_beginner_cutter">HgkIr62KmoQJEAIQDw</string>
<string name="achievement_advanced_cutter">HgkIr62KmoQJEAIQEA</string>
<string name="achievement_master_cutter">HgkIr62KmoQJEAIQEQ</string>
<string name="achievement_lucky">HgkIr62KmoQJEAIQEg</string>
<string name="achievement_cheerful">HgkIr62KmoQJEAIQEw</string>
<string name="achievement_exceptional_joyous">HgkIr62KmoQJEAIQFA</string>
<string name="achievement_thrust">HgkIr62KmoQJEAIQFQ</string>
<string name="achievement_very_persistent">HgkIr62KmoQJEAIQFg</string>
<string name="achievement_the_most_resistant">HgkIr62KmoQJEAIQFw</string>
<string name="achievement_1_000_000">HgkIr62KmoQJEAIQGA</string>
<string name="achievement_2_000_000">HgkIr62KmoQJEAIQGQ</string>
<string name="achievement_3_000_000">HgkIr62KmoQJEAIQGg</string>
<string name="achievement_unlucky">HgkIr62KmoQJEAIQGw</string>
<string name="achievement_loyal">HgkIr62KmoQJEAIQHA</string>
<string name="achievement_fan">HgkIr62KmoQJEAIQHQ</string>
<string name="achievement_leader_of_mars">HgkIr62KmoQJEAIQHg</string>
<string name="achievement_leader_of_neptune">HgkIr62KmoQJEAIQHw</string>
<string name="achievement_unhurried">HgkIr62KmoQJEAIQIA</string>
<string name="achievement_final_push">HgkIr62KmoQJEAIQIQ</string>
<string name="leaderboard_leaderboard">HgkIr62KmoQJEAIQAQ</string>
<string name="leaderboard_pack_1">HgkIr62KmoQJEAIQCw</string>
<string name="leaderboard_pack_2">HgkIr62KmoQJEAIQDA</string>
</resources>
where app_id - your application ID, line and form leaderboard_xxx achievement_xxx point to a specific table records and achievement, respectively. It should create a resource xml-file with the name games-ids.xml in android-project of his game and put back up resources.
{
"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"
}
To work GPGS need a project library google-play-services_lib. His path <android-sdk> \ extras \ google \ google_play_services \ libproject \ google-play-services_lib. By default, gaming services are not installed with the Android SDK, so this way there will be nothing. To fix this you need to install the Android SDK Manager two packages: Google Repository and Google Play services.
The project library google-play-services_lib be imported into Eclipse. Then set the properties of the imported project tick «Is library».
Now we need to link together your android-project and library google-play-services_lib. To do this, add the library to the section Required projects on the build path. (Properties -> Java Build Path -> Projects).
At this stage, it was possible to finish the setting, but the official documentation Google strongly recommends the use of a class-mate GameHelper. Its installation is similar to installing google-play-services_lib (import a project as a library, associate the project library with android-project). Download BaseGameUtils.
In AndroidManifest.xml add two permissions and meta-data:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Meta-data is added inside the tag application:
Code:
<meta-data
android:name="com.google.android.gms.games.APP_ID"
android:value="@string/app_id" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
The setting is completed.
Google Play Clear Sky 2
Second part
XDA:DevDB Information
Clear Sky 2, App for all devices (see above for details)
Contributors
itspheres
Version Information
Status: Stable
Current Stable Version: r.1.02
Stable Release Date: 2014-09-27
Created 2014-09-28
Last Updated 2014-09-28
Thank you!
Waiting for the next article)
where in the developer console to get resources from the file games-ids-xml?
Developer Console -> Gaming Services -> <application name> -> Achievements -> Get resources
The second part is ready http://forum.xda-developers.com/android/apps-games/google-play-game-services-libgdx-t2895672

[DEV] [SMALI] A Few Custom Views

Hey XDA,
I've been making a number of custom Views for my own use, and figured I'd share a few of them, in case anyone else finds them useful. These are all ready-made smali files, that can be dropped into any app you'd like to use them in, no IDs or anything needed. You're welcome to use them for personal use, but if you use any of them in any other release, please send me a PM with a link to the release, and be sure to give appropriate credit.
Anyway, what's included:
CPUFrequency
Extends TextView.
Shows current CPU frequency and unit (MHz or GHz, depending on the current value).
Updates once per second.
CPUTemperature
Extends TextView.
Shows current CPU temperature and unit.
Click to toggle between Fahrenheit and Celsius.
Updates once per second.
BatteryVoltage
Extends TextView.
Shows current battery voltage in mV.
Updates once per second.
BatteryTemperature
Extends TextView.
Shows current battery temperature and unit.
Click to toggle between Fahrenheit and Celsius.
Updates once per second.
CurrentNetwork
Extends TextView.
Shows SSID of currently connected WiFi network.
If WiFi is off or disconnected, shows carrier name.
If no WiFi or mobile network is connected, shows "Network Unavailable".
Updates whenever connection status changes.
This View requires two permissions: android.permission.ACCESS_WIFI_STATE and android.permission.ACCESS_NETWORK_STATE (These permissions already exist in framework-res andSystemUI).
SelfAnimatingImageView
Extends ImageView.
Automatically begins any XML frame animation or vector animation (set with android:src) when they come into focus, without any additional code required.
These Views only animate/update themselves while the screen is on and they are visible/in focus, so there shouldn't be any memory leaks or anything. The above descriptions pretty much explain them, but if you want to see them, you can download a sample app here:
sample.apk
md5: 9225d2ad828830de2bfd45f936fb3352
Click to expand...
Click to collapse
***Note: The sample apk asks for two permissions. These are for the CurrentNetwork View, as explained above. Also, it is for Lollipop only, due to the inclusion of an animated-vector example.
Usage
To use, simply copy the smali files into your decompiled apk (preserving the folder structure), and use them in any layout, like this:
Code:
<com.android.morningstar.NameOfCustomView android:layout_width="wrap_content" android:layout_height="wrap_content" etc... />
All standard TextView and ImageView attributes still work, though for the extended TextViews, android:text isn't needed.
Here's part of a layout where I'm using all the TextViews ('thumper' is the WiFi SSID):
{
"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"
}
Download
All of the Views are in a single zip file, and any that you don't use can be deleted.
Custom Views.zip
md5: 80c2cd01fd65a7733e538303a5ecab60
Click to expand...
Click to collapse
Morningstar said:
Hey XDA,
I've been making a number of custom Views for my own use, and figured I'd share a few of them, in case anyone else finds them useful. These are all ready-made smali files, that can be dropped into any app you'd like to use them in, no IDs or anything needed. You're welcome to use them for personal use, but if you use any of them in any other release, please send me a PM with a link to the release, and be sure to give appropriate credit.
Anyway, what's included:
CPUFrequency
Extends TextView.
Shows current CPU frequency and unit (MHz or GHz, depending on the current value).
Updates once per second.
CPUTemperature
Extends TextView.
Shows current CPU temperature and unit.
Click to toggle between Fahrenheit and Celsius.
Updates once per second.
BatteryVoltage
Extends TextView.
Shows current battery voltage in mV.
Updates once per second.
BatteryTemperature
Extends TextView.
Shows current battery temperature and unit.
Click to toggle between Fahrenheit and Celsius.
Updates once per second.
CurrentNetwork
Extends TextView.
Shows SSID of currently connected WiFi network.
If WiFi is off or disconnected, shows carrier name.
If no WiFi or mobile network is connected, shows "Network Unavailable".
Updates whenever connection status changes.
This View requires two permissions: android.permission.ACCESS_WIFI_STATE and android.permission.ACCESS_NETWORK_STATE (These permissions already exist in framework-res andSystemUI).
SelfAnimatingImageView
Extends ImageView.
Automatically begins any XML frame animation or vector animation (set with android:src) when they come into focus, without any additional code required.
These Views only animate/update themselves while the screen is on and they are visible/in focus, so there shouldn't be any memory leaks or anything. The above descriptions pretty much explain them, but if you want to see them, you can download a sample app here:
***Note: The sample apk asks for two permissions. These are for the CurrentNetwork View, as explained above. Also, it is for Lollipop only, due to the inclusion of an animated-vector example.
Usage
To use, simply copy the smali files into your decompiled apk (preserving the folder structure), and use them in any layout, like this:
All standard TextView and ImageView attributes still work, though for the extended TextViews, android:text isn't needed.
Download
All of the Views are in a single zip file, and any that you don't use can be deleted.
Click to expand...
Click to collapse
Any chance you could make them into xposed modules?
Tired Storeman said:
Any chance you could make them into xposed modules?
Click to expand...
Click to collapse
@Morningstar
I can't stop laughing at the picture above.
I don't see a usage example
evilvoice said:
@Morningstar
Can you make these for Windows 3.11?
[emoji6]
Click to expand...
Click to collapse
Sure! Let me dig out my old 486/DX and I'll get right on that.
[emoji57]
Great job man
Nice mate!
evilvoice said:
@Morningstar
I can't stop laughing at the picture above.
I don't see a usage example
Click to expand...
Click to collapse
Fixed. Stupid Tapatalk removes anything inside code tags every time you edit a post...Stupid Tapatalk...
Morningstar said:
Fixed. Stupid Tapatalk removes anything inside code tags every time you edit a post...Stupid Tapatalk...
Click to expand...
Click to collapse
LOL yea. I have issues with it from time to time...makes me so mad.
Anyways, I am trying to add Current Network. I created the folder structure (the attachment on xda has no folders, but figure it out with the first line in one of the smali files. I wanted to add this to the device information I already have, so I tried to show Current Network above Device Info with this in status_bar_expanded
Code:
<RelativeLayout android:gravity="center" android:layout_gravity="bottom|center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.morningstar.CurrentNetwork android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/network" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<com.potato.statusbar.deviceInfo.Information android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/device_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/network"/>
</LinearLayout>
</RelativeLayout>
But that causes a fc in SystemUI
This is what it was originally
Code:
<LinearLayout android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/device_info" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.potato.statusbar.deviceInfo.Information android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
Can you tell me what I did wrong/how to fix? Thanks!!!
Morningstar said:
Hey XDA,
I've been making a number of custom Views for my own use, and figured I'd share a few of them, in case anyone else finds them useful. These are all ready-made smali files, that can be dropped into any app you'd like to use them in, no IDs or anything needed. You're welcome to use them for personal use, but if you use any of them in any other release, please send me a PM with a link to the release, and be sure to give appropriate credit.
Anyway, what's included:
CPUFrequency
Extends TextView.
Shows current CPU frequency and unit (MHz or GHz, depending on the current value).
Updates once per second.
CPUTemperature
Extends TextView.
Shows current CPU temperature and unit.
Click to toggle between Fahrenheit and Celsius.
Updates once per second.
BatteryVoltage
Extends TextView.
Shows current battery voltage in mV.
Updates once per second.
BatteryTemperature
Extends TextView.
Shows current battery temperature and unit.
Click to toggle between Fahrenheit and Celsius.
Updates once per second.
CurrentNetwork
Extends TextView.
Shows SSID of currently connected WiFi network.
If WiFi is off or disconnected, shows carrier name.
If no WiFi or mobile network is connected, shows "Network Unavailable".
Updates whenever connection status changes.
This View requires two permissions: android.permission.ACCESS_WIFI_STATE and android.permission.ACCESS_NETWORK_STATE (These permissions already exist in framework-res andSystemUI).
SelfAnimatingImageView
Extends ImageView.
Automatically begins any XML frame animation or vector animation (set with android:src) when they come into focus, without any additional code required.
These Views only animate/update themselves while the screen is on and they are visible/in focus, so there shouldn't be any memory leaks or anything. The above descriptions pretty much explain them, but if you want to see them, you can download a sample app here:
***Note: The sample apk asks for two permissions. These are for the CurrentNetwork View, as explained above. Also, it is for Lollipop only, due to the inclusion of an animated-vector example.
Usage
To use, simply copy the smali files into your decompiled apk (preserving the folder structure), and use them in any layout, like this:
Code:
<com.android.morningstar.NameOfCustomView android:layout_width="wrap_content" android:layout_height="wrap_content" etc... />
All standard TextView and ImageView attributes still work, though for the extended TextViews, android:text isn't needed.
Here's part of a layout where I'm using all the TextViews ('thumper' is the WiFi SSID):
Download
All of the Views are in a single zip file, and any that you don't use can be deleted.
Click to expand...
Click to collapse
Nice work bro. [emoji12]
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
Awesome work!
evilvoice said:
LOL yea. I have issues with it from time to time...makes me so mad.
Anyways, I am trying to add Current Network. I created the folder structure (the attachment on xda has no folders, but figure it out with the first line in one of the smali files. I wanted to add this to the device information I already have, so I tried to show Current Network above Device Info with this in status_bar_expanded
Code:
<RelativeLayout android:gravity="center" android:layout_gravity="bottom|center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.morningstar.CurrentNetwork android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/network" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<com.potato.statusbar.deviceInfo.Information android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/device_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/network"/>
</LinearLayout>
</RelativeLayout>
But that causes a fc in SystemUI
This is what it was originally
Code:
<LinearLayout android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/device_info" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.potato.statusbar.deviceInfo.Information android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
Can you tell me what I did wrong/how to fix? Thanks!!!
Click to expand...
Click to collapse
Oops. I'll reupload when I get home and include the folders, so it's jot confusing for others. Thanks for pointing that out.
Your XML looks fine to me, can you pull a logcat of the FC? Also, check your SystemUI's manifest and make sure it has the two permissions mentioned in the OP. Both of the ones I tested it on already had those, but maybe not all do?
Nice job bro! But can you tell me how to do this?
I can't seem to load these modules? I can haz custom views?
Looks cool! Can we see some screenshots so we know just what we're getting into?
So, I went back and looked at my log and it had nothing to do with these, so I decompile the last working version and made the edits again. It works, but one issue. How can I get it above the device information like I wanted?
Edit: so I've decided to try and get these custom views to exist beside device info. For some reason, all the custom views print on the exact same line instead of on top of each other. I'll post code in a minute, but any ideas how to get it all on separate lines?
Code:
<RelativeLayout android:gravity="center" android:layout_gravity="bottom|center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.morningstar.CPUFrequency android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/cpufreq" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.morningstar.CPUTemperature android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/cputemp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/cpufreq" />
<com.android.morningstar.BatteryVoltage android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/battvolt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/cputemp" />
<com.android.morningstar.BatteryTemperature android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/batttemp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/battvolt" />
<com.android.morningstar.CurrentNetwork android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/network" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/batttemp" />
<com.potato.statusbar.deviceInfo.Information android:textSize="10.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/device_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/network" />
</LinearLayout>
</RelativeLayout>
@Morningstar you also need to add "Name of Custom View" to ids.xml. I had an error when not adding them to that xml file.
For someone who already did this mod to system ui can I get your apk
evilvoice said:
@Morningstar you also need to add "Name of Custom View" to ids.xml. I had an error when not adding them to that xml file.
Click to expand...
Click to collapse
It depends on how you're using it. The smali files don't reference any IDs, so they'd only be needed if you've added them to the View in your XML (for positioning in a RelativeLayout, for example). If you don't need to position the View relative to something else, no ids are necessary.
malbert16442 said:
For someone who already did this mod to system ui can I get your apk
Click to expand...
Click to collapse
What exactly do you need out of it?
Morningstar said:
It depends on how you're using it. The smali files don't reference any IDs, so they'd only be needed if you've added them to the View in your XML (for positioning in a RelativeLayout, for example). If you don't need to position the View relative to something else, no ids are necessary.
What exactly do you need out of it?
Click to expand...
Click to collapse
I just want to see the layout of system ui of someone who applied the views their
Sent from my SM-G900T using Tapatalk
?
Sent from my SM-G900T using Tapatalk

[Guide] How to disable AGC/Noise Cancellation for Redmi 5

Hello guys! This is my first tutorial here and I hope to bring more to help y'all in what I can do.Well, I tried many tutorials before, but nothing happened. So I tried changing and adding fluence values into build.prop. So I did it and then I followed the steps by Robse. I got a good result, but the Instagram camera wasn't affected and I had some issues with WhatsApp voice clip using my earphones. So I found the solution by chdloc and I replace the first step by Robse. I didn't add any values on build.prop anymore after that.
First of all you need:
*Redmi 5 (Rosy) rooted
*Es File Explorer (or any app to explore and edit internal files)
P.s.: Do a backup of these files before you edit, okay?
------- Disabled the noise cancellation -------
1 - Go to /system/etc and:
{
"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"
}
open audio_plataform_info.xml, find the line <device name="SND_DEVICE_IN_CAMCORDER_MIC" acdb_id="4"/> and change the value to 89. Save and exit.
------- Increase the bit rate -------
(This step is for a good audio quality in your videos.)
2 - Back to /system/etc folder again and:
open media_profiles.xml and find the line <AudioEncoderCap name = "aac" enabled = "true" then change the value 96000 to 128000 or 156000.
------- Increase the volume for recorded videos -------
(Your videos will get a low volume after the step 2. So the third step is to increase the volume when recording your videos.)
3 - Still in /system/etc folder:
open mixer_paths_mtp.xml and find these lines
<Path name="handset-mic">
<Path name="adc1" />
and below <ctl name="MI2S_TX Channels" value="Two" /> add these lines :
<ctl name="DEC1 Volume" value="96" />
<ctl name="DEC2 Volume" value="96" />
3.1 - Still into mixer_paths_mtp.xml find the line
<Path name = "handset-stereo-dmic-ef">
<Path name = "speaker-dmic-endfire" />
</ Path>
and above </ Path> add these lines:
<ctl name="DEC1 Volume" value="96" />
<ctl name="DEC2 Volume" value="96" />
-----------------------------------------------------------------------------
I hope to help y'all. If you have some issues, let me know.
Credits to:
chdloc (https://forum.xda-developers.com/showpost.php?p=68378869&postcount=1139) for showing which line could change the value and disabled noise cancellation.
Robse (http://4pda.ru/forum/index.php?showtopic=793497&st=360#entry57205432) for teaching how we could increase the volume and bit rate.
If you publish in another place, please credit me with chdloc and Robse, okay? I fixed the problem mixing their solution.
MrDavidVeiga said:
Hello guys! This is my first tutorial here and I hope to bring more to help y'all in what I can do.Well, I tried many tutorials before, but nothing happened. So I tried changing and adding fluence values into build.prop. So I did it and then I followed the steps by Robse. I got a good result, but the Instagram camera wasn't affected and I had some issues with WhatsApp voice clip using my earphones. So I found the solution by chdloc and I replace the first step by Robse. I didn't add any values on build.prop anymore after that.
First of all you need:
*Redmi 5 (Rosy) rooted
*Es File Explorer (or any app to explore and edit internal files)
P.s.: Do a backup of these files before you edit, okay?
------- Disabled the noise cancellation -------
1 - Go to /system/etc and:
open audio_plataform_info.xml, find the line <device name="SND_DEVICE_IN_CAMCORDER_MIC" acdb_id="4"/> and change the value to 89. Save and exit.
------- Increase the bit rate -------
(This step is for a good audio quality in your videos.)
2 - Back to /system/etc folder again and:
open media_profiles.xml and find the line <AudioEncoderCap name = "aac" enabled = "true" then change the value 96000 to 128000 or 156000.
------- Increase the volume for recorded videos -------
(Your videos will get a low volume after the step 2. So the third step is to increase the volume when recording your videos.)
3 - Still in /system/etc folder:
open mixer_paths_mtp.xml and find these lines
<Path name="handset-mic">
<Path name="adc1" />
and below <ctl name="MI2S_TX Channels" value="Two" /> add these lines :
<ctl name="DEC1 Volume" value="96" />
<ctl name="DEC2 Volume" value="96" />
3.1 - Still into mixer_paths_mtp.xml find the line
<Path name = "handset-stereo-dmic-ef">
<Path name = "speaker-dmic-endfire" />
</ Path>
and above </ Path> add these lines:
<ctl name="DEC1 Volume" value="96" />
<ctl name="DEC2 Volume" value="96" />
-----------------------------------------------------------------------------
I hope to help y'all. If you have some issues, let me know.
Credits to:
chdloc (https://forum.xda-developers.com/showpost.php?p=68378869&postcount=1139) for showing which line could change the value and disabled noise cancellation.
Robse (http://4pda.ru/forum/index.php?showtopic=793497&st=360#entry57205432) for teaching how we could increase the volume and bit rate.
If you publish in another place, please credit me with chdloc and Robse, okay? I fixed the problem mixing their solution.
Click to expand...
Click to collapse
As far as i know the procedure in redmi 5 and redmi 5 plus is the same regarding this matter. But i don't think the same method will work for miui10/oreo so i didn't try. Do you know if it works on oreo or not? This issue along with the touch problem is really, really getting frustrating.
Archeronn said:
As far as i know the procedure in redmi 5 and redmi 5 plus is the same regarding this matter. But i don't think the same method will work for miui10/oreo so i didn't try. Do you know if it works on oreo or not? This issue along with the touch problem is really, really getting frustrating.
Click to expand...
Click to collapse
I need to update this post. I made it when we only had Nougat.
I tried to use the flashable file and edit the build.prop, but I didn't get a huge result. I almost can't see the difference.
Kindly, how to do the same for Realme 6 pro?
Never came upon such disgusting quality of audio in recorded videos, as in my new Realme 6 pro. Not Pro at all! Can someone help me to remove noise cancellation during video-recording?! And a recorded sound volume too needs to be increased.

Categories

Resources