New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Crimton
Old
#1  
Crimton's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 800
Join Date: Apr 2010
Location: Nashville
Default how can you choose another keyboard

i can't even choose wii controller in tnt? i just got tnt lite 2.0 going and i just realized i can't even use wiimote because tnt won't let you change keyboards. this sucks bad, that would be great if someone figured out a way to bypass this little security measure they have to keep you from using other keyboards.
 
KinkyMunkey
Old
#2  
Junior Member
Thanks Meter 5
Posts: 22
Join Date: Apr 2009
Location: maryland
Yea, i paid $20 for a bluetooth keyboard i can't use because of that...

I am a developer though :) I already have the android source on my computers so perhaps i will have some time to look tomorrow at how exactly they do it in the code.

Usually that stuff is restricted but perhaps there is a way around as root. I know there is a command you can run to force apps to install to the SDcard on my droid under froyo, perhaps the same command can change this setting.

Has anybody tried loading up the stock froyo settings app?

--Robert
 
KinkyMunkey
Old
#3  
Junior Member
Thanks Meter 5
Posts: 22
Join Date: Apr 2009
Location: maryland
FYI: it's in android-source/packages/apps/Settings/src/com/android/settings/LanguageSettings.java

Code:
        Settings.Secure.putString(getContentResolver(),
            Settings.Secure.ENABLED_INPUT_METHODS, builder.toString());
        Settings.Secure.putString(getContentResolver(),
                Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS, disabledSysImes.toString());
        Settings.Secure.putString(getContentResolver(),
            Settings.Secure.DEFAULT_INPUT_METHOD,
            mLastInputMethodId != null ? mLastInputMethodId : "");
Read from

Code:
       mLastInputMethodId = Settings.Secure.getString(getContentResolver(),
            Settings.Secure.DEFAULT_INPUT_METHOD);
String enabledStr = Settings.Secure.getString(getContentResolver(),
                Settings.Secure.ENABLED_INPUT_METHODS);
final TextUtils.SimpleStringSplitter splitter = mStringColonSplitter;
            splitter.setString(enabledStr);
the Settings.secure permission is restricted from normal apps- but maybe we can gain that permission if we put the app in the /System/ folder?
 
Crimton
Old
#4  
Crimton's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 800
Join Date: Apr 2010
Location: Nashville
This would be a major accomplishment if you figure this out. For the life of me I don't know why they would have done this...makes no sense.

Sent from my ADR6300 using XDA App
Sent from my computer using Ubuntu 11.04
 
KinkyMunkey
Old
#5  
Junior Member
Thanks Meter 5
Posts: 22
Join Date: Apr 2009
Location: maryland
I did find a way into the accounts and settings (sync settings) - but I don't have checkboxes to enable syncing on contacts and calendars for some reason....

Perhaps i did the tntlite2.0 upgrade wrong - i did NOT do a factory reset because I didn't want to reinstall everything :)

I'll try to remember to post the sync settings launcher app tonight after i get home from work- all it does is fire the necessary intention to get into the app (com.android.providers.subscribedfeeds/com.android.settings.ManageAccountsSettings)

Hopefully they screwed up the settings app, which i can probably fix by making a new one, but if they hosed the settingsProvider that is supposed to store this stuff we might be screwed :(

I just figured out how to write a video streaming app (from android) for my work, so this should be easy by comparison :)


On a dissapointed note- my sound is still F-ed up after the 11/22 update (randomly stops working, plays static and floods the logs w/ errors) anybody else have this problem?
 
Crimton
Old
#6  
Crimton's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 800
Join Date: Apr 2010
Location: Nashville
Thanks for working on this, this is one of my biggest complaints with tnt.

Sent from my ADR6300 using XDA App
Sent from my computer using Ubuntu 11.04
 
KinkyMunkey
Old
#7  
Junior Member
Thanks Meter 5
Posts: 22
Join Date: Apr 2009
Location: maryland
If anybody could find a way to get around this:

PackageManager W Not granting permission android.permission.WRITE_SECURE_SETTINGS to package com.DroidMunkey.gTabletHacks (protectionLevel=3 flags=0xbe44)

I would have this finished.

Sticking it in /system/app doesn't work so i must be missing something - it's rejected in: android-source/frameworks/base/services/java/com/android/server/PackageManagerService.java if anybody else wants to take a look
 
KinkyMunkey
Old
(Last edited by KinkyMunkey; 26th November 2010 at 07:50 AM.) Reason: how-to
#8  
Junior Member
Thanks Meter 5
Posts: 22
Join Date: Apr 2009
Location: maryland
I figured it out, but they screwed something else up in the system and must have disabled it on purpose...

if i select a different keyboard the input box expands to take up the entire screen when i click on it!

So if you have an alt keyboard selected and you hit the search key, you can't see the history below, or the icons next to the box to do the voice search/location selection!!!

see attached image

Very annoying.. wasted an entire day to figure this out. I suppose it wasn't a total waste though I learned alot about the android core :)

Are there any other settings missing that people need? I might put together an app that will let you do this despite the annoying bug if people are still interested.

I already wrote an app like HomeCatcher, but it shows me the "recent apps" list, since you can't long-press the damn home-key anymore. Anybody interested in something like that?

BTW- since nobody spells out in plain english how to get the WRITE_SECURE_SETTINGS permission, here it is for those of you hitting this page via Googling my error :)

1) You need to request the permission in your app manifest
2) the app has to be in /system/app/
3) it has to be owned by root w/ the correct permissions (nobody tells you this part!)
4) when you reboot, the app will be automatically installed, and you will get the additional permissions (if it's already installed, you have to uninstall it before you reboot!)
5) you will NOT be able to uninstall the app after you do this (just delete it, but make SURE you manually 'clear cache' for the app in settings->applications->manage->yourapp before you delete it or all your extra settings data will be orphaned in memory!!)

Quote:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cat /sdcard/YourApp.apk > /system/app/YourApp.apk
chown 0.0 /system/app/YourApp.apk
chmod 0644 /system/app/YourApp.apk
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
reboot
Attached Thumbnails
Click image for larger version

Name:	HugeInputBox.jpg
Views:	67
Size:	20.5 KB
ID:	449905  
 
case-sensitive
Old
(Last edited by case-sensitive; 26th November 2010 at 04:23 PM.)
#9  
Senior Member
Thanks Meter 18
Posts: 226
Join Date: Nov 2010
Quote:
Originally Posted by KinkyMunkey View Post
I figured it out, but they screwed something else up in the system and must have disabled it on purpose...

if i select a different keyboard the input box expands to take up the entire screen when i click on it!

So if you have an alt keyboard selected and you hit the search key, you can't see the history below, or the icons next to the box to do the voice search/location selection!!!
Thanks! Mind if I ask you which alternate keyboard you are using? On my another device I also get this exact same huge textbox if I some alternate keyboard (e.g. the Better Keyboard), but not all (e.g. the Thumb Keyboard).

Also: which ROM are you using? Does it matter (with respect to your 5-steps procedure)?

Quote:
Are there any other settings missing that people need? I might put together an app that will let you do this despite the annoying bug if people are still interested.

I already wrote an app like HomeCatcher, but it shows me the "recent apps" list, since you can't long-press the damn home-key anymore. Anybody interested in something like that?
Absolutely! (I know that it's available via roebeet's TnT Lite 2.0.2 supplement, but I'd like to stick to 2.0.0's contact & calendar...)

Thanks!
 
shdwknt
Old
#10  
Member
Thanks Meter 7
Posts: 64
Join Date: Dec 2007
Save time just install zpad . Cleaner look runs faster and can use other keyboard inputs.. played super Mario bros 3 with wiimote this morning. I just need a stand now


XDA PORTAL POSTS

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more