Android :: Disable All Items In A Specific Layout Programmaticaly?
Sep 29, 2010
I have A game to which I recently added a global high score functionality which made a lot of people upset so I want to add the option of disabling it.
What I did was this: in my settings activity view, I added the following code...
What I want to do is to disable the entire "High score specific settings" layout when the user unchecks the enable high score tracking check box.
I tried disabling it by setting the setEnabled to false, but that didnt work at all...
Should I be using a viewgroup or something?
Is there a refresh method I should run to apply the change?
View 2 Replies
Mar 12, 2014
I have had androids for over two years now and am getting more and more concerned every time I download an app and seeing that it wants to READ my SMS message and Contacts.
Is there a way I can disable reading of SMS messages or any one of the other permissions by specific apps, or all apps?
Are we living in a world where any "joe schmo" can upload an app the to the app store and wait for those inadvertent downloads and collect all your personal information, and that's after all the time we spend protecting our identity and personal details?
View 2 Replies
View Related
Oct 5, 2010
I met a problem , i have a expandableListView has 5 groups, if i wanna add some items to the second group , and update the expandableListView at run time, could someone teach me how to do that?
View 1 Replies
View Related
Oct 27, 2010
I want to disable few items in List View and i am using Simple Adapter to do that. I am not getting how to disable the items.
View 3 Replies
View Related
May 11, 2009
Let's say I have a list of included layouts and I want to access the widgets in the included layouts...how do I do that? code...
View 3 Replies
View Related
Apr 18, 2010
I have a list view which is populated via records from the database. Now i have to make some records visible but unavailable for selection. how can i achieve that? here's my code
public class SomeClass extends ListActivity {
private static List<String> products;
private DataHelper dh;
public void onCreate(Bundle savedInstanceState) {
dh = new DataHelper(this);.....
View 1 Replies
View Related
Jul 30, 2010
I have a custom View that I'd like to specify the layout of in an XML file rather than through code, is there anyway I can take an Android XML layout file and use it to flush out my custom View's content? I know it can be done in an Activity via the setContentView method, but there doesn't seem to be a similar method for Views.
View 1 Replies
View Related
Aug 13, 2010
I want to dynamically add some views to a LinearLayout that is already defined in XML.
I'm able to add views to the screen but they are not being placed 'inside' the right LinearLayout.
How can I get a reference to this specific Layout from code, similar to getting a View by using findViewById()?
View 2 Replies
View Related
Oct 30, 2010
how to disable Facebook from being listed in the list of to "Share" items. As Facebook allows only Urls to be posted I have used the Facebook SDK when I need to share a link, picture and message. So I am currently displaying an Alert Dialog with Facebook listed and the second option as Others where I would like to enlist the other items like Gmail/ Y!Mail and twitter etc to share data. I dont want Facebook to appear in this list. So please can anyone let me know how to show all applications except Facebook in the list or any other work around.
View 5 Replies
View Related
Aug 4, 2009
Is it true that if you have a ViewGroup, say a RadioGroup, you can't align items outside the group to ones inside the group (using toRightOf, alignTop, etc.) That is, does toRightOf, toLeftOf and the rest only work with views at the same hierarchy level? I was trying to label some vertical radio buttons today and find I can only align to the RadioGroup and not the buttons inside the group.
If I remove the RadioGroup, then I can align things OK. There are lots of workarounds, of course, so I'm not stuck. Just thought I'd ask and document. And, BTW, where is the hot sh*t resource editor for Android so I can bang out screens quickly like the iphone guys, using a visual interface designer that knows all these silly interactions? The tools I've seen so far have been toys.
View 2 Replies
View Related
Sep 14, 2010
I have a layout which contains a TextView.
The content of the TextView might change on runtime. (discussed on a different issue here: http://stackoverflow.com/questions/3683727/layout-with-dynamic-position )
I can position the layout by drag&drop. If the size of the layout doesn't change, the position stays, but as soon as the size of the layout changes (because more text inside the TextView) the position is reseted.
I use the layout(left, top, right, bottom) to position the layout.
Now I don't know where I should add my layout() call to make sure it stays at the right position...
Here is my class
CODE:............
View 1 Replies
View Related
Mar 24, 2013
I am using Micromax A110. It has JB which is almost vanilla JB - as comes from google (with some bloatwares added, thats it).
I was quiet used to lockscreen layout where swipe left unlocks the screen and swipe up launches google now. My device manufacturer rolled out an update and now it has swipe up to unlock and no google now shortcut.
I believe this is driven by some XML in layout..I am not expert but have decompiled the framework-res.apk but coudnt locate the place where I should change to get my favourite lockscreen layout back...
View 4 Replies
View Related
Nov 16, 2010
How to use a layout as empty view for a listview when the adapter has zero elements?
setEmptyView is not working with this code :
CODE:..............
Layouts used :
CODE:...........
main.xml
CODE:...............
View 3 Replies
View Related
Jun 4, 2014
if there was a way to disable updates for specific apps on an android?
I own a Samsung Galaxy S3 and I always have the apps that came with the phone wanting to be updated. I don't use them since I consider many of them to be a waste of space on my phone and would rather get rid of them, but would at least like to stop the updating for them.
View 5 Replies
View Related
Jan 28, 2014
Is there a way (an app, framework module, flashable zip, whatever) to disable toast notifications? Ideally, this should work for a specific app but if that's not possible disabling them in total would be fine, too.
"Why would you do that", you may ask. Well, the thing is, I use the app "Best Wifi" to switch my wifi automatically at home since I'm using a repeater there. But as soon as I'm in an area without wifi connection, it tries to connect to a wifi and keeps on sending toast notifications with "no APN found blabla" every 15 seconds. Thats especially disturbing when I use my phone as a navigation device in the car. So, it would be great if I could block those toast notifications from popping up.
Currently, I'm using a rooted Nexus 5 with Beanstalk ROM on 4.4.2.
View 2 Replies
View Related
Mar 28, 2013
I use my phone to with two calendar accounts, one google-account for private and one outlook exchange account for company. I want both to sync so that I can watch the calendar (that works). I want my private account to notify me of calendar events (that works). But I do NOT want my company account to notify me of calendar events, because there are so many meetings, that its like SPAM (and I am already reminded by my laptop at work).
So: Can I turn off the notifications for a specific account?
To clarify:
- no I do not want to change the notifications on the appointments, because I do want to be reminded at work
- no I do not want to disable the synchronisation for the company account, because I do want to be able to look at my calendar.
It is easily possible to disable the mail notification for the company account only, but it seems not to be possible for calendar notifications?
View 2 Replies
View Related
Jan 2, 2014
I am a newbie to Android world. Recently I bought a Freedompop (which gives you 500MB free data every month) and I wanna use it with my Nexus 7 as a GPS/infotainment system on my car. However, I want to disable App/system auto-update under Freedompop WiFi on my car (Freedompop actually works like a tethering point), but still enable it at home (so I can still get some updates and I won't forget to turn it off when I get on my car). Is there any app will do that? Or any tricks?
View 2 Replies
View Related
Jul 24, 2013
It used to be the market would separate apps that were approved for auto update from those that had disabled auto update set. One could then simply hit the Update All (for the group) button and it would update ONLY the apps that were auto update enabled. Over the past few months Play Store has changed their behavior in that it no longer separates the apps and will only enable auto updates for everything or nothing.
How can I hide or otherwise prevent these few apps that I do not want to update from being in the play store update list? As it is now, I have to selectively update each individual app from the list, skipping the few apps I do not want updated.
Currently on a Samsung GS3, rooted, stock.
View 5 Replies
View Related
Aug 29, 2010
how to programmaticaly lock screen android?
View 1 Replies
View Related
Jul 26, 2010
I have been looking for a method to change the default SMS application's preference programmatically.
I found that those preferences are stored as "shared preferences", probably in data/data/com.android.sms/something.xml, but I am not able to get to that directory since I haven't rooted my phone.
Do you have any clue?
View 2 Replies
View Related
Feb 2, 2010
I'm pretty new to Android dev and still working out a lot of things.I've got a main menu showing using the following code, but can't work out how to disable selected items in the menu. Can anybody help me with some sample code?
View 2 Replies
View Related
Jul 4, 2010
I want to use SMPP for sms sending rather then standard mechanism. Can I programmatically replace mechanism of SMS sending to my own?
View 1 Replies
View Related
Dec 17, 2009
Can any one tell me how to programmaticaly divert a call on particular number by
sending the USSD command.eg, to divert a call on the number-123456789 we dial
*122*123456789#. it divert the call on to the 123456789.
View 2 Replies
View Related
Jan 10, 2013
I have recently become somewhat irritated by Words With Friends' notifications, due to the fact they have a rather ugly layout IMO. I would much rather they just displayed like every other notification. Any way to achieve this? (I don't mind modifying the APK or whatever if necessary)
View 1 Replies
View Related
Aug 19, 2010
I understand how to force a specific orientation per activity in the android manifest. I would like to know if it is possible to allow the keyboard to change orientation even though the activity(the layout really) must remain unchanged.
View 1 Replies
View Related
Dec 30, 2009
how can i forcefully send data packets over gprs n/w eventhough wifi is on?how to create socket for gprs n/w in android and to know gprs ip?
View 1 Replies
View Related
Jul 21, 2010
Had no problem getting my phone to play nice with our exchange server at work and emails are coming/going fine.
However, there are some configuration items I have a big issue with as it relates to the 'look' of the email (coming from a BlackBerry).
1. Is there any way to have a single folder show my received items and sent items combined? My BB had this and it was very useful.
2. How can I edit the way my folders are displayed at the top horizontal bar? The sidescrolling folder display is awkward, it puts my inbox first (good) but then all subsequent folders are listed alphabetically; it pays no attention to their order on my desktop and also shows sub-folders of other files. Any way to change this?
3. Is there a way to change the way emails show as unread? The difference b/n read and unread is only a shade of grey, and difficult to see outside.
View 1 Replies
View Related
May 31, 2010
Just picked up my incredible, and I have two questions....
1. how do i change the email notification to a specific sound? As of rite now, when i receive an email nothing happens (no sound or vibrate).
2. How do I select a specific ring for mms. I know how to select sms, but I cant figure out how to change the mms.
View 3 Replies
View Related
Aug 14, 2010
While developing for Android, I am unable to open more than one main.xml file in an Eclipse editor at a time.Each time I open one, it simply replaces the editor (tab) of the first main.xml with the new one, instead of opening a new tab - even if the contents of the existing tab were unsaved.Even stranger, I can open multiple main.xml files from different projects with no problems.This only happens when they're within the same project.
View 2 Replies
View Related
May 4, 2010
I am new in android, i am having few problem in layout alignment. I have divide the screen into three layout,as header, body and footer. I am giving the height dynamically for the three layout in java file, so i need to give 12% of height to header and footer layout, and the remaining 75% i need to assign height to body layout. For that i have made the calculation as follow
first i am getting the height and width for the screen. With the help of the screen height i am getting the 12.5% height for header and footer layout
WindowManager w = getWindowManager(); Display d = w.getDefaultDisplay(); int totalwidth_screen = d.getWidth(); int totalheight_screen = d.getHeight();..................
View 3 Replies
View Related