yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Dblfstr:
Should be an update this weekend! Added twitter, Facebook, and hopefully added back Google Play services. Also.... a PAUSE BUTTON!

other bug fixes.
[Android Apps and Games] Dblfstr:
Finally released an update to Floppy Fish.

Added a Share to Twitter button.

Added a Rate me popup.

Moved a lot of audio sources our of the scene -

- (each obstacle had 3 audio sources: 2 for a hit sound, and one for a point scored sound)

- The hit sound is now attached to the Player, instead of 10 -12 audio sources in the scene at one time, there are 6.

- should reduce lag.

Changed how ads are loaded and presented, not noticeable to the user, but decreases memory usage, thus reducing lag.

Still working on power ups and Google Play integration.
[Android Apps and Games] michael1190:
Cool! :)
[Android Apps and Games] toannx:
Nice game :good:
[HTC Droid DNA] iissmart:
Has anyone had luck with encrypting a DNA running CM10.2.1 stable? It seems to reboot instantly after I start the encryption process for me. I've tried it ~10 times or so already.
[Java for Android App Development] arpitkh96:
I am trying to implement recents clear button using xposed framework.

I am getting nullpointer exception at com.android.systemui.recent.recentverticalscrollview.getchildcontentview

mRecentsClearButton = (ImageView) view.findViewById(res.getIdentifier("clear_all_button", "id", PACKAGE_NAME));

mRecentsClearButton.setClickable(true);
mRecentsClearButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ViewGroup mRecentsContainer = (ViewGroup) XposedHelpers.getObjectField(
param.thisObject, "mRecentsContainer");
// passing null parameter in this case is our action flag to remove all views

mRecentsContainer.removeAllViewsInLayout();
}
});
[Java for Android App Development] sak-venom1997:
please post the exact line that gives NPE !

make sure you get the field names right Xposed Modules can be a pain to debug !!!
[Java for Android App Development] arpitkh96:
Here is the full code.please dont read comments they are not related to code.i am trying to make this for ics 4.04.NPE comes when mRecentsClearButton is pressed.the 3 imageviews are already present in systemui.apk of the particular rom for which i am making this module.

The line mRecentsContainor.removeAllViewInLayout causes npe.

This code is inspired from gravitybox module(for jb) source code.this module had line

mRecentsContainor.removeViewInLayout(null);

Which also doesnt works.

package com.mycompany.myapp;
import android.content.res.*;
import android.view.*;
import android.widget.*;
import de.robv.android.xposed.*;
import de.robv.android.xposed.callbacks.XC_LoadPackage.*;

import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;

public class main implements IXposedHookLoadPackage {
public static final String CLASS_RECENT_PANEL_VIEW = "com.android.systemui.recent.RecentsPanelView";
private static ImageView mRecentsClearButton;
private static ImageView mgoogle;
private static ImageView mtasker;
//private static Field fieldAnimateScreenLights;

public static final String PACKAGE_NAME = "com.android.systemui";
public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
if (!lpparam.packageName.equals(PACKAGE_NAME))
return;

findAndHookMethod( CLASS_RECENT_PANEL_VIEW , lpparam.classLoader, "onFinishInflate", new XC_MethodHook() {
@Override
protected void afterHookedMethod(final MethodHookParam param) throws Throwable {
View view = (View) param.thisObject;
Resources res = view.getResources();

// GM2 already has this image view so remove it if exists

// create and inject new ImageView and set onClick listener to handle action
mRecentsClearButton = (ImageView) view.findViewById(res.getIdentifier("clear_all_button", "id", PACKAGE_NAME));

mRecentsClearButton.setClickable(true);
mRecentsClearButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ViewGroup mRecentsContainer = (ViewGroup) XposedHelpers.getObjectField(
param.thisObject, "mRecentsContainer");
// passing null parameter in this case is our action flag to remove all views

mRecentsContainer.removeAllViewsInLayout();
}
});

mgoogle= (ImageView) view.findViewById(res.getIdentifier("mgoogle", "id", PACKAGE_NAME));
mgoogle.setClickable(true);
mgoogle.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

}
});
mtasker= (ImageView) view.findViewById(res.getIdentifier("mtasker", "id", PACKAGE_NAME));
mtasker.setClickable(true);
mtasker.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

}
});
}
});
}
}

Mtasker and mgoogle's onclick listener are empty because they are wip
[Java for Android App Development] arpitkh96:
Log.sorry cant provide better one
[Java for Android App Development] sak-venom1997:
[MENTION=4500270]arpitkh96[/MENTION]

removeAllViews()

try calling above method on mRecent.....

this should work!
[Java for Android App Development] arpitkh96:
Same error.

Problem is something else
[Java for Android App Development] sak-venom1997:
try checking for mRecen.... != null
[Java for Android App Development] arpitkh96:
Do you mean

if(mRecentContainor!=null){mRecentsContainor.removeallView()}
[Java for Android App Development] sak-venom1997:
yes just to ensure the feild isnt null though i think its not !
[Java for Android App Development] arpitkh96:
Didn't work
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] zero|fade:
I have been looking for a solution to this problem for weeks and have found nothing that will fix it.

I am currently on CM11-M3, and have had the problem since 10.2. No matter what ringtone I select it will not play during an incoming call.

I have been testing with wheresmycellphone.com. Ehen a call comes in the phone will vibrate once and very rarely the ringtone will play for a fraction of a second, but most of the time there is no sound. I have noticed that the mute icon (speaker with a line through it) flashes in the notification area briefly the second the phone starts ringing.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] audit13:
Does it be behave the same way on other custom and stock ROMs?

Are you clean flashing?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] zero|fade:
I dirty flashed 10.2 from 10.1, I did a clean install when I switched to CM11, every flash since has been with a cache/dalvik wipe. I have not yet tried a rom beyond CM.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] audit13:
You should try another ROM, even if it is based on CM11 to see what happens.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] zero|fade:
I will when I get a moment. I need to be accessible for work right now so I can't risk any excessive off time just yet.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] zero|fade:
Well, I finally got off my ass to try fixing this again. I was going to try installing SlimKat, and as prep I wiped cache, dalvik and then factory reset. I rebooted to try receiving a call before I started work on flashing the rom and the phone now rings fine. I have no idea what changed, I had tried a factory reset on M2 and it didn't fix the issue. This is the first factory reset I applied to M3 though.
[Android Software Development] teorouge:
Thanks for the advice, I tried on my 4.4.2 HTC One and unfortunately it doesn't work: I do all the things you listed, reboot the phone, but as I launch Google Now it's like I just installed it because I get the tutorial and the file I edited goes back to the unedited version. I even checked the file after the save and before the reboot and it's edited: as soon as I reboot, it goes back to stock. Can you think about something I may have missed or did wrong?
[Android Software Development] memnoc:
Yes, you didn't give the permission to the bin properly, please check the screenshot folder at the beginning of the op and use Es file manager, and it will work

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] jonata:
hi mate,

possible to have a zip file to flash ?

tks bro
[Android Software Development] memnoc:
Sorry there's no way since the bin we are editing includes all your account info

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] jonata:
ok, tks a lot ...

;)

---------- Post added at 01:57 PM ---------- Previous post was at 01:08 PM ----------

do all in the guide, but it works only if I put english langiage in Google serach setting ...

where I'm in wrong ?
[Android Software Development] memnoc:
What Language are you trying to enable?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] jonata:
italian ...

:)
[Android Software Development] memnoc:
Then you have to follow the guide carefully, especially if you're on a nexus 5, see the screenshot folder to see how set permission and try es file manager if your explorer doesn't work

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] jonata:
solved now ...

problems was the right permission in folder it-IT

changed also the string en-CA in it-IT with decimal editor

now works like a charme

ths bro

;)
[Android Software Development] memnoc:
No need for hex editor, but if you'd like to share what program you used I'll put an advise in op... Glad it's working

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] jonata:
used free soft called HxD editor ...

:)
[Android Software Development] memnoc:
I found out you can do it from the phone easily, I'll post the how to later...

PS. I'm curious, is offline dictation working for you guys?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] Gu$houn*:
Hey, thanks A LOT, working great on N4 with czech language /cs-CZ/. :good:

On Nova Prime 2.3 can't access it from homescreen, is it correct according to this quote? On GEL everything works flawlessly.

P.

//EDIT: I have search bar enabled on Nova.
[Android Software Development] bob8x:
ehm nope, offline or online dictation is setted to english outside google now, despite the fact the tooltip shows "italiano"....

[I'm wandering if there are only italians in this thread...]
[Android Software Development] Dilesh Perera:
hi Bro

nice hack.

im little confused what should i use as prefix for my country . im from Sri Lanka ( and i dont even get Gnow in search too )

:) any suggestions how i do this?
[Android Software Development] gpvecchi:
As I posted in the deleted thread, will this work with offline commands? Elsewhere there's an easier procedure...
[Android Software Development] memnoc:
Post a link for that procedure, but if it's that one that involves hex editing I already tried it with no success.. Sorry for the deleted thread, according to moderation rules seems I can't post the same thread more than once even in different places

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] H3ISENB3RG:
how i have to change it if i want it in german?

ger-GER ?
[Android Software Development] memnoc:
Yes it's ok, unfortunately something in Nova launcher blocks the speech recognition from the widget

It doesn't work for me either

Is your language supported in the language list under the 'voice/language' menu?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] WaveMaster1406:
Nice done dude! Works on my Nexus 4. Thx
[Android Software Development] mycontradiction:
oh thanks :D Works great on my Motorola Moto G CM11.
[Android Software Development] playahate:
my version of google search is 3.2.16 and /data is empty... tried to search setupsettings.bin manually, no luck...

i strooooongly need this feature in russian language to use with AutoVoice
[Android Software Development] memnoc:
Yeah, I know, I'm afraid thou to say that in OP because sometimes didn't work for me, so I immagine what the hell of a mess could create!

Update to 3.2.17

Nice mate, thanks for reporting

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] coldbeermt:
Jajajajaja!!!

:cyclops::cyclops::cyclops::cyclops::cyclops::cyclops::cyclops:;);););) :fingers-crossed:

Don't worry, I understand this is just a probability ;)

In any case, I still think you must change "files" by "file" in your OP (talking about editing just one bin file). :angel:
[Android Software Development] playahate:
Ok, got my mistake.

Making all the things with root explorer.

BUT:

took the apk from data/app, copied to the system/priv-app, remane to velvet.apk (made the original .bak), changed the startupsettings.bin, gave all the permissions, reboot - the file is still the original with no changes... hard to follow all the instruction, since my language is russian ;)
[Android Software Development] Leandro.DR:
Thanks dude! Works fine to me. One question, what is the name of the widget that appears on the images of the tutorial?

Screenshot: https://dl.dropboxusercontent.com/u/69925638/Screenshot_2014-02-15-21-18-03.png
[Android Software Development] memnoc:
Es file manager is recommended exactly for this reason

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] furb3t:
Ok...at the end I have enabled "OK Google" on my Nexus "maguro" with CM11; the secret is ES file explorer as memnoc has written.

Thanks memnoc for your useful post :)
[Android Software Development] Alfonso87:
[MENTION=3709686]memnoc[/MENTION] Thx man, works fine here :)

I just have an issue with the sensibility of the recognition. I must talk directly into the microphone to let him hear "Ok Google" :S after that it works fine. Any idea on how fix this?
[Android Software Development] memnoc:
What device and os? Sounds like an hardware fault but it would be remarkably odd

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] Alfonso87:
N5, on everyrom :p

But i should say that when i wake up the phone it listen my word properly, without any need for me to shout. Maybe it's the noise i have around me, dunno, but i can survive with this lil issue i think :D

Thank you for the help :)
[Android Software Development] memnoc:
Would be appropriate to try in a quiet environment just to see, my N5 activates itself even when I'm few meters far from it so it could be hardware related or maybe if you use some kinda bumper that partially block the mic

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] jaweinre:
This.

Removing the system version of google search solved the crashes.

Then i edited the bin file using "hex editor", it's on google play. Check for hex values on page 9.
[Android Software Development] Prowler:
Works like a charm with spanish!

Enviado desde mi GT-N7100 mediante Tapatalk
[Android Software Development] hardrockk:
Last version kk Launcher (3.0) work very well with "Ok Google"

http://xdaforums.com/showthread.php?t=2536422
[Android Software Development] memnoc:
Good news mate, I'm trying it right now

Edit: are you able to say 'ok google ' in your home activating the widget bar? Because I'm not, same as Nova

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] patriotaus:
I just wanted to share this story of my stupidity because I have spent way too long on something so simple.

When i first changed the language, I changed it to en-Au (what its known as usually) but it needs to be en-AU and thus didn't work. When I rebooted. 'google now' works out something is wrong and resets and goes back to chinese until you open up search and re accept the intro to google now. I then thought I might have got the language code wrong and then found the list of language codes a few posts in and it says that it is en-AUEnglish... sigh so i put that it in and used that for a while. Just realised now that a space was missed in that document and it tricked me.

Everything is working perfectly now. Thank you very much for the guide.
[Android Software Development] smatak:
Hello I cant make it to work. I have czech language, SGS3 4.4.2 and nova.
[Android Software Development] Tex99:
Hi memnoc, thank you for the guide ;) On Nexus 5 with aosp rom, the first method is ok. Only two things are different from you:

after reboot the permissions return to rw (I enabled r/w instead of r/o for changing them), it's normal ?

in your settings (photo) of gnow I read a new voice with " pronuncia ok google per avviare la ricerca vocale dalla schermata home e dall'app di ricerca", on my settings there is only "pronuncia ok google per avviare la ricerca vocale dall'app di ricerca", don t know why, also with gel launcher and nova (very sad that with nova I can't activate the command from homescreen, I hope they'll update launcher for this feature :D)

Thank you for attention and eventual answers
[Android Software Development] memnoc:
First issue, use es, also, set permission as shown in the screens, and when you change en-CA to it-IT change all of the entry in the file (are 3) not just the one I mentioned, I'll update op later or tomorrow, it seems this way the hack sticks better

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] Tex99:
Ok done. I follow the instructions (version of gnow in data/app and priv-app is the same), es file(supersu permissions), set r/w, set all permissions of file as your screen, and change the three lines with it-IT, reboot.

The permissions of file return to rw (and not rwx rwx rwx) and the speech command don t work with italian as language. Also in the file there aren't the three "it-IT". It s strange, I don t understand where is the problemi :(. at this point I ll try the second method

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Hi mate..

Nice guide, really easy to follow, however, I did followed everything but the StartupSettings.bin returned to the default one (no edited)

I have no idea on how to work it out :(

EDIT

==============

Just noticed that every time I modify the bin file and after rebooting the device, Google Now "resets" itself as if was just installed.
[Android Software Development] memnoc:
Then the problem is in the file

Open gnow and do a research

Make sure you find the 3 en-CA in the file and change them to it-IT. First or second method are the same

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
Make sure you have just one gnow apk.. Check out data/app and system/app or system/priv-app.. Delete all except the one in data/app..reboot and try again

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] Tex99:
Yes now it works ;) I changed the three "en-CA" with "it-IT" and after reboot the file is correct, only permissions return to rw (and not rwx rwx rwx, I don t know why), by the way the speech command works

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
I'm looking for the app but can't find it.

It's supposed to be called "velvet.apk" right???
[Android Software Development] memnoc:
Or GoogleNow.apk

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Dammit, can't find the app...

I'm pretty sure the app is the "google search" on but I only see the: com.google.android.googlequicksearchbox-1.apk

I can't find anything related to Google Now on the HTC One in the system/app or system/priv-app folders :(
[Android Software Development] memnoc:
Then it's fine mate, it means something is wrong somewhere else.. Make sure to follow the op exactly, we have other One's succesfully hacked with method one and two

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Could it be possible that fails because of the language I'm using with Google Now??

I have the language to Spanish Chile but I'm using the Spanish from Spain for the Command: es-ES

Should I use es-CL???
[Android Software Development] memnoc:
Possibly, try

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Well... Dammit

I've uninstalled and reinstalled the Google Search and now the file is all in chinese xD

Will keep trying :P

By the way, I've run Google Now before editing the file...
[Android Software Development] memnoc:
When is in chinese decode in ASCII through the es menu after making a research in gnow

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Got it!!!

I was using another File Explorer (Solid Explorer).

I don't know if that has something to do with it but now I'm able to use the command Ok Google... Now, I need to figure it out how to keep it always listening so I don't have to launch Google Now in order to be able to use the command :)
[Android Software Development] memnoc:
Yeah it's mentioned in OP as 'strongly recommended', I think I'll put mandatory instead

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
I recommend you to include some instructions regarding the permissions and other steps (I know there is a link but it might not be quite clear for some folks)...

At first I though I had to select everything in the permissions section until I saw the screenshot :)

Everything is working flawlessly... Now, the only thing I need to discover is how to enable the Ok Google command from desktop, as the only way to use it on my device is with google now open
[Android Software Development] memnoc:
Are you on GEL?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Nope, I'm using HTC Sense launcher... :)
[Android Software Development] memnoc:
Ok let me ask a friend of mine that has a One S with working widget, I'll let you know if something can be done

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :No-Frost::
Thanks mate :D
[Android Software Development] Micoolef:
Just want to confirm, this only allows Google Now functionality with alternative languages. It won't enable hotword detection on custom launchers, right?

Tapatalked from my Nexus 4
[Android Software Development] memnoc:
Some launchers yes, and it allows hotword detection inside gnow

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] cl3ric:
Any other third part launcher with working hotword detection?

i can't install GEL launcher on optimus g.
[Android Software Development] lukes91:
using Sense 5, widget works fine but hotword is not recognized in home screen... but the simple workaround is to use tasker and autovoice... i'm about to write down a guide about how to do that...
[Android Software Development] memnoc:
Would be a nice add to the op

However, auto voice is reported as a heavy battery drain app

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] lukes91:
WIP :D
[Android Software Development] lukes91:
here it is http://xdaforums.com/showthread.php?t=2657759

i hope you will find it useful :)
[Android Software Development] memnoc:
It is mate, nice tutorial, would you like a past and copy in my op or just a link, both giving you the credits obviously

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] lukes91:
well, if you put a link it's better in my opinion as the OP is very long :) thank for linking and giving crdits :o
[Android Software Development] memnoc:
Thanks to you for putting together the guide, I'll add the link tonight

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] hhamzah49:
Isnt working for me, tried both methods, cant seem the find en-ca (using hex editor)

And also cant see any micro_hotword.data
[Android Software Development] lukes91:
it's en-CA, with capital letters :)
[Android Software Development] Micoolef:
I think default is en-CA. And you need to run the program before you edit the file. Maybe this is why hotword data isn't showing up.

A good way I noticed to test this hack is to open Google Now and see if it will accept your voice command OK, Google. When I do it it shows the language at the bottom when awaiting voice input "English (Canada)".

Tapatalked from my Nexus 4
[Android Software Development] 1droidmod:
Very good.. Thanks

XT912 RaZR SpYdEr CDMA

hit ThAnKs if I was helpful!!!
[Android Software Development] kryzeK:
Please, don't work with latest Google Now Launcher on Google Play Store

Enviado de meu Nexus 4 usando Tapatalk