[How-To][Code] AirView Samsung Galaxy S4 - Java for Android App Development

I didn't find a Thread with a guide for use the AirView in SGS4 so I did it.
In AndroidManifest.xml
Code:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
[B] <meta-data android:name="com.sec.android.airview.enable" android:value="true" />
<intent-filter>
<action android:name="com.sec.android.airview.HOVER" />
</intent-filter>[/B]
<activity
android:name="edu.uanl.secondapp.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
[B]<intent-filter>
<action android:name="com.sec.android.airview.HOVER" />
</intent-filter>[/B]
</activity>
</application>
You can use It this way:
Code:
View rootView = inflater.inflate(R.layout.fragment_main_dummy, container, false);
TextView dummyTextView = (TextView) rootView.findViewById(R.id.section_label);
dummyTextView.setText("Something Here");
[B] dummyTextView.setOnHoverListener(new View.OnHoverListener()[/B] {
[user=439709]@override[/user]
public boolean onHover(View view, MotionEvent motionEvent) {
switch(motionEvent.getAction()){
case 9: // Enter Hovered
case 10: // Leave Hovered
view.setBackgroundColor(Color.TRANSPARENT);
view.setScaleX((float)1.0);
view.setScaleY((float)1.0);
break;
case 7: // On Hover
view.setBackgroundColor(Color.RED);
view.setScaleX((float)2.0);
view.setScaleY((float)2.0);
break;
}
Log.wtf("Something", "I'm Being Hovered" + motionEvent.getAction());
return false;
}
});
dummyTextView.setHovered(true);
If this thread is repeated, or this is not the place to post it, my apologies I'm a semi-noob on this.
Hope this can help you.
Delete this thread if is innapropiate or something

A link to download Samsung Airview SDK and setting up samsungs cust. emulator will be handy
After all not all have an S4
Sent from my GT-S5302 using Tapatalk 2

Cool thread.
Thanks. :good:

Is that that fancy "I dont have to touch my screen" stuff? lol.
Cool how to. thanks!
http://developer.samsung.com/home.do
samsung developer site.

sak-venom1997 said:
A link to download Samsung Airview SDK and setting up samsungs cust. emulator will be handy
After all not all have an S4
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
sadly we don't have one sdk for this...
yet...
out of ideas said:
Is that that fancy "I dont have to touch my screen" stuff? lol.
Cool how to. thanks!
http://developer.samsung.com/home.do
samsung developer site.
Click to expand...
Click to collapse
that one itself.
Sent from my GT-I9505 using xda premium

furbyx92 said:
sadly we don't have one sdk for this...
yet...
that one itself.
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
No SDK yet what do these people want to do ?
No SDK for Ir Blaster to
Why the heck do they add so cool features when they dont' want developers to play with it
No apps using this feature will mean they're as good as one
they should learn from Google they never delay there SDK s

sak-venom1997 said:
No SDK yet what do these people want to do ?
No SDK for Ir Blaster to
Why the heck do they add so cool features when they dont' want developers to play with it
No apps using this feature will mean they're as good as one
they should learn from Google they never delay there SDK s
Click to expand...
Click to collapse
and this feature is the easy one.
Sent from my GT-I9505 using xda premium

furbyx92 said:
and this feature is the easy one.
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
You cant say the same for ir blaster
Sent from my GT-S5302 using Tapatalk 2

Yeah, I know... but I keep trying.

Thanks, nice example to kickstart a Samsung Smart App Challenge project.

Related

Zip to fix battery meter?

Does anyone know where I can find the zip to flash that mods the battery meter to work in 1 point increments instead of 5. I found it before but can't find it now.
Thanks.
Sent from my SPH-D700 using XDA App
ssconceptz said:
Does anyone know where I can find the zip to flash that mods the battery meter to work in 1 point increments instead of 5. I found it before but can't find it now.
Thanks.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
instead of 5? it should be 1%... thats how it is stock
I'm sorry but the stock battery meeter is garbage, not even close and that's after I calibrated the battery. I have a battery widget that shows correct readings.
Sent from my SPH-D700 using XDA App
steviee7 said:
instead of 5? it should be 1%... thats how it is stock
Click to expand...
Click to collapse
not even close...
Code:
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="19" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="34" />
<item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="64" />
<item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="79" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
That's stock from the framework-res.apk.. 15-20% increments incase you didn't wanna figure it out...
edit: nvm these arent for ec05
Thanks for the info. Yea I know the zip exists just gotta locate it again.
Sent from my SPH-D700 using XDA App
just get theimpaler747 app that allows you change the battery meter
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
just get theimpaler747 app that allows you change the battery meter
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
he said it needs fixing for EC05
edit: link http://forum.xda-developers.com/showpost.php?p=12430109&postcount=183
chris41g said:
not even close...
Code:
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="19" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="34" />
<item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="64" />
<item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="79" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
That's stock from the framework-res.apk.. 15-20% increments incase you didn't wanna figure it out...
Click to expand...
Click to collapse
This is my only problem with stock.
Typed by Z using the Gingerbread keyboard.

Continuous input gone?

It was working when I first got my phone but it magically disappeared. The option to turn it on is gone & now replaced with T9 trace.Anybody know why & how I can get it back?
This happened to me also after flashing a new Rom. Somehow it fixed itself after I agreed to the terms of use. Does it say this trial is expired?
Sent from my SGH-T999 using Tapatalk 2
Swype beta it's so much better http://beta.swype.com/android/create/
Sent from my SGH-T999 using xda premium
Swype beta it's so much better http://beta.swype.com/android/create/<br />
<br />
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
That's what I use now. I can't figure out why the stock keyboard changed all of the sudden. Even the Google voice typing quit working on it

Translucent/Transparent app

Hey! I am currently doing an app that will be half transparent so you can see what's behind it and interact with the apps behind my window. I searched the web and found some cool stuff but nothing that made me able to interact with apps behind, only half transparent!
Please help!
Sent from my GT-N7105 using xda premium
addemod said:
Hey! I am currently doing an app that will be half transparent so you can see what's behind it and interact with the apps behind my window. I searched the web and found some cool stuff but nothing that made me able to interact with apps behind, only half transparent!
Please help!
Sent from my GT-N7105 using xda premium
Click to expand...
Click to collapse
If you want to interact with the background, you'll need to go with a floating app here. Otherwise, there was a guide somewhere in the forum..
Hope this helps you.
addemod said:
Hey! I am currently doing an app that will be half transparent so you can see what's behind it and interact with the apps behind my window. I searched the web and found some cool stuff but nothing that made me able to interact with apps behind, only half transparent!
Please help!
Click to expand...
Click to collapse
To make your app transparent, modify your java as these:
Code:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WindowManager.LayoutParams params = this.getWindow().getAttributes();
/**
* 0.2 means 20% opaque. Here 1 is 100% opaque.
*/
params.alpha = 0.2f;
}
To make a button or any image transparent in your app you can add android:alpha="0.1" to your mainfest of the layout xml file
SimplicityApks said:
If you want to interact with the background, you'll need to go with a floating app here. Otherwise, there was a guide somewhere in the forum..
Click to expand...
Click to collapse
Do you mean this one? http://forum.xda-developers.com/showthread.php?t=2443882
nikwen said:
Do you mean this one? http://forum.xda-developers.com/showthread.php?t=2443882
Click to expand...
Click to collapse
Exactly, should be the same lib, isn't it? And yeah, fixed the link, I somehow deleted the last digit... Sorry
SimplicityApks said:
Exactly, should be the same lib, isn't it? And yeah, fixed the link, I somehow deleted the last digit... Sorry
Click to expand...
Click to collapse
No, it's not.
The tutorial I posted uses no library at all.
Differences:
More difficult
No default window frame
More customization options
nikwen said:
No, it's not.
The tutorial I posted uses no library at all.
Differences:
More difficult
No default window frame
More customization options
Click to expand...
Click to collapse
You're right, then that one is a lot easier..! :good:
Thanks guys! I used standout window and managed to make a Window but the problem is, you should be able to click behind the 50% transparent window.. anyway, thanks!
Sent from my GT-N7105 using xda premium

[app] Moto X's Kitkat Dailer

So apparently the moto x dialer app works on the droids running KitKat. So here you go. Just push dialer.apk and dialer.odex to system/priv-app. The the odex is probably not needed but Im using it w/o issues.
One issue is this will not replace the stock droid dialer so you end up with two phone apps. Use the blue one. I'm currently working on a mod to the contacts.apk to fix this.
Just a heads up. This is already posted at least 1 other place.
Sent from my XT1080 using Tapatalk
Yeah I tried this from the other thread its cool but doesn't dial and any calls that come in go to stock dialer I just uninstalled it. If this ever gets working 100% great but not till then.
It works fine if you use the flashable zip. Incoming calls will come through the old dialer but all history, outgoing etc work fine.
Sent from my XT1080 using Tapatalk
I wonder if Verizon didn't want us to have this dialer because they have that caller id they charge you to use if so that is B.S. I hope someone figures out how to get this working 100%
The Verizon moto x has the dialer.. I don't understand why we wouldn't get it.. Unless it was the reason people were have issues with moto x
Sent from my XT1080 using XDA Premium 4 mobile app
arcanexvi said:
Just a heads up. This is already posted at least 1 other place.
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
oh i havnt seen that thread, anyone got the link
TheWhiteChallenger said:
oh i havnt seen that thread, anyone got the link
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2578078
Sent from my XT1080 using Tapatalk
cold21blooded said:
The Verizon moto x has the dialer.. I don't understand why we wouldn't get it.. Unless it was the reason people were have issues with moto x
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No they didn't the only phone with it is Nexus I believe. They have a thread explaining how to install it as well.
My girlfriend has a verizon moto x and it has it
Sent from my XT1080 using XDA Premium 4 mobile app
cold21blooded said:
My girlfriend has a verizon moto x and it has it
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I assure you it does not.
Sent from my XT1080 using Tapatalk
arcanexvi said:
I assure you it does not.
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
I assure you that it does.
Jump to 3:20 here - http://youtu.be/qr3sUmf_DJc
.
TechSavvy2 said:
I assure you that it does.
Jump to 3:20 here - http://youtu.be/qr3sUmf_DJc
.
Click to expand...
Click to collapse
I own all 3 devices. The Moto X has an updated dialer (as it has a few other things that didn't make it into the Droid lineup's 4.4 build), however the X's dialer lacks the ability to search by nearby places. One of the most sought after features of the new Nexus dialer. The X's dialer is basically a look-alike that they didn't really add any new functionality to. Here is what it should look like with the proper Nexus dialer. Note that it says "nearby places" in the search bar.
Sent from my XT1080 using Tapatalk
arcanexvi said:
I own all 3 devices. The Moto X has an updated dialer (as it has a few other things that didn't make it into the Droid lineup's 4.4 build), however the X's dialer lacks the ability to search by nearby places. One of the most sought after features of the new Nexus dialer. The X's dialer is basically a look-alike that they didn't really add any new functionality to. Here is what it should look like with the proper Nexus dialer. Note that it says "nearby places" in the search bar.
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
Oh wow well that's a B. I didn't realize the moto x dialer is basically just skined. I thought it was legit nexus dialer. Well I'll be renaming the thread now for the sake of accuracy.
Have they had any success on the x with an actual aosp dialer?
Sent from my XT1080 using XDA Premium 4 mobile app
TheWhiteChallenger said:
Oh wow well that's a B. I didn't realize the moto x dialer is basically just skined. I thought it was legit nexus dialer. Well I'll be renaming the thread now for the sake of accuracy.
Have they had any success on the x with an actual aosp dialer?
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It can be installed with a flashable zip.
Sent from my XT1080 using Tapatalk
My bad buddy she got the phone last week.. I didn't realized it was skinned.. I don't know how that made me stupid but if you can figure out a way to fix my stupid let me know
Sent from my XT1080 using XDA Premium 4 mobile app
arcanexvi said:
It can be installed with a flashable zip.
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
Dose it actually generate an icon in the apps tray or do you have to use nova launcher or an activity launcher app?
Sent from my XT1080 using XDA Premium 4 mobile app
TheWhiteChallenger said:
Dose it actually generate an icon in the apps tray or do you have to use nova launcher or an activity launcher app?
Sent from my XT1080 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Launcher or activity app. I used https://play.google.com/store/apps/details?id=de.szalkowski.activitylauncher so I could keep using the stock launcher.
Sent from my XT1080 using Tapatalk
tried searching around a little, where can I find the actual flashable zip for the dialer?
arcanexvi said:
Launcher or activity app.
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
Poop
So if I understand correctly the contacts.apk is the app that generates/directs the phone/dialer app icon.
So the question becomes can the contacts app be modified to generate the Google dialer shortcut?
This is the the contacts.apk manifest, would I be correct in thinking this is when the change needs to be made?
</activity>
<activity android:theme="@style/DialtactsTheme" android:label="@string/launcherDialer" android:icon="@mipmap/ic_launcher_phone" android:name=".activities.DialtactsActivity" android:enabled="@*android:bool/config_duplicate_port_omadm_wappush" android:taskAffinity="android.task.contacts.phone" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:screenOrientation="nosensor" android:windowSoftInputMode="stateAlwaysHidden|adjustNothing" android:uiOptions="splitActionBarWhenNarrow">
<intent-filter>
<action android:name="android.intent.action.DIAL" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="vnd.android.cursor.item/phone" />
<data android:mimeType="vnd.android.cursor.item/person" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.DIAL" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="voicemail" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.DIAL" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.DIAL" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tel" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="vnd.android.cursor.dir/calls" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.CALL_BUTTON" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter>
<action android:name="com.android.phone.action.TOUCH_DIALER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.TAB" />
</intent-filter>
<intent-filter android:label="@string/recentCallsIconLabel">
<action android:name="com.android.phone.action.RECENT_CALLS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.TAB" />
</intent-filter>
</activity>
Sent from my XT1080 using XDA Premium 4 mobile app

Volume boost mod

Looking for flashable volume boost for CM11. I haven't found one that works and editing mixer paths XML has proven to be worthless.
Thanks.
Sent from my LG-D800 using XDA Premium 4 mobile app
holeshot77 said:
Looking for flashable volume boost for CM11. I haven't found one that works and editing mixer paths XML has proven to be worthless.
Thanks.
Sent from my LG-D800 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Volume boost of what? Headphones? Speaker?
Editing mixer_paths.xml is the only way to do it. If you already tried something along those lines, you did it wrong.
Sent from my LG-D802 using XDA Premium 4 mobile app
I´ve edited the mixer paths with a root explorer, and after reboot the device the audio is improved. Maybe you need to try with different values in:
<path name="speaker">
<ctl name="RX7 Digital Volume" value="70"
and
<path name="headphones">
<ctl name="RX1 Digital Volume" value="58" />
<ctl name="RX2 Digital Volume" value="58" />
Thanks everyone. I'll give it another go.
Sent from my LG-D800 using XDA Premium 4 mobile app
I'm on Ota 4.4 running jasmine rom and nc2 kernal on Verizon note 3 and I've gone to 100 and still no difference I used root browser pretty bummed cause I like to listen to music while I work but I can barely hear it over the compressors and such any help would be great

Categories

Resources