Android :: Properties For Application Specific Attributes?
Oct 20, 2010
I want to center the application title/label in my android app but I can't find a lot of documentation on how to set that property. I have found a couple of posts saying that I can create a custom title bar and change the theme in my manifest but I just can help think there is a simpler way to just center the title.
View 2 Replies
Aug 28, 2009
Where is the right place to specify general user-defined properties, like a host address or a service mail address ? The properties should be accessible from my activities.
I would like to specify such attributes within the AndroidManifest.xml, but there seems to be no elements available for user-defined properties. So the only way may be to put such properties into a resource file as strings or to hide them into the source code...
View 2 Replies
View Related
Apr 20, 2009
Google applications do it, and apparently it used to be part of the public API (via android.os.SystemProperties.) How are we supposed to enable/disable sync on the phone? Disabling/enabling roaming is easy, but I'm beating my head against the wall trying to find a non-hack method for disabling auto-sync (much less the granularity that would actually be nice.) Is this intentional by the framework team? Is it a whoopsie that is planned to be changed later?
View 14 Replies
View Related
Oct 11, 2010
I'm looking for a notepad app that, well, looks like an actual notepad. I'm currently using AK Notepad cu z I like how the notes are written on note looking paper, but when you open up the application, all the titles of your notes are just displayed in a black screen. I'm kinda looking for an app, like let's say I put: "stuff to buy," I want the title to also be written on notepad paper, and then when I click on it, the info of my notes will also be written on notepad paper.
View 4 Replies
View Related
Jun 9, 2010
Applications can have any number of launchable activities. I know how to get the list of these activities via PackageManager.
Is there a way to determine which activities can be launched via startActivity?
For example, the Documents To Go app has different activities that will start Word, Excel, Powerpoint, PDF, etc... I am able to launch all o these just fine.
However, it also contains some activities that I am not able to launch with startActivity... If I attempt to do this I get a SecurityException.
I want to be able to determine which activities I can safely launch and which I cannot so I only present the user with a list of activities that I can safely launch from within my application...
View 1 Replies
View Related
Jun 24, 2010
I currently use Timeriffic, which has been great at managing settings for different times of the day. What I am looking for, however, is an application similar to that where I can define the sound behavior for one specific application.
What I am trying to do is make it so all notifications are at 10% volume during the night, but Id like to make notifications from Google Talk louder, like at 50%. I haven't been able to find anything that would allow a rule like that, but thought Id ask since you guys seem to know everything!
View 2 Replies
View Related
Jul 21, 2009
Use case goes like this:
1) Dev puts game for sale on Android market hoping to make lots of $$ $.
2) Dev makes $50 in a month, cries a little, realizes his game is languishing in the ratings so makes it free.
3) Game does really well and gets > 50,000 downloads.
4) Dev still wants to make some $$$ off his game, so adds a "donate" feature to app which points users to another app dev has created in the marketplace where they can donate by buying the app.
5) Dev wants to reward those who have donated by providing new features only to them.
How do I go about determining if any given user has purchased either my original app, or my "donate" app so that I can unlock functionality? I'd like to determine this even if the user no longer has the app installed on their phone. Then android market app seems to know this which is how it knows not to charge the user again for the same app they've already paid for.
View 6 Replies
View Related
Jul 27, 2010
I want to launch a specif application.
I know how to do Intents but I want to avoid the selection menu if there are multiple apps that can handle the intent, i want to go directly to a particular app. Hope this makes sense.
View 1 Replies
View Related
Apr 2, 2009
I want to send a message to only specific application in other device but i dont want SMS client to pick that. How is it possible?
View 2 Replies
View Related
Apr 15, 2010
Can anyone explain how to send SMS text messages on a specific application port (including Java and XML code)? If it's impossible then plz show at least how to send & receive SMS data message successfully (Java & XML) on android emulator (and not G1 or others).
View 2 Replies
View Related
Feb 21, 2012
I wanted to implement the application specific VPN client in android, that is vpn connection once established should be only available to our application and rest of the apps in android device should make use of normal internet connection.
To elaborate my need more, i have an application already which connects to corporate email, files and other data from internet normally but for some security reason we need it to be go through tunnel within our application and access everything within via tunnel basically want we are looking here is security while accessing company corporate network.
Since we are new to something like this we don't have a hint on how to start what protocols to use etc (we are assuming ipsec l2tp for now).
And between we are just looking to send and receive data over tunnel, there is nothing more or need to control computer on the network all we need is to route data through corporate firewall and should support multiple vpn servers such as cisco, microsoft etc. How complex or how feasible to implement it.
View 1 Replies
View Related
Apr 2, 2014
I wanted to restrict an application from accessing network, so that application does not upload or download. Basically to stop rouge application from suspicious network activity.
I understand Android provides a way to limit/restrict network access for Mobile network, from Settings --> Data Usage screen. But I'm looking for a way to completely restrict network access (both mobile and WiFi networks) to any particular application.
I'm using Moto G, Android Kitkat
View 2 Replies
View Related
Jul 8, 2009
I've seen a few other threads on this subject, but none that addresses my need which is to not only find the app in the market via the market uri, but display it as if the user had navigated to it. The closest anyone has gotten to this answer is to show how to bring up the Android Market app and browse for the app you want which shows the single result in a list that the user must still select to get to the screen I want to display.
Here's my existing code that does exactly that:
private static final String MY_MARKET_APP = "com.some.silly.name";
Intent marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://search?q=pname:" + MY_MARKET_APP));
startActivity(marketLaunch);
I don't want to have to force the user to select this single item from the list - just bypass that and bring up the next screen.
View 11 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
Dec 7, 2009
In my application, I don't want the activity to restart when user changes his mobile's orientation or when he opens his physical keyboard.So, I have to assign the following XML attribute to all my activities in the manifest file.Is it possible to assign the same XML attribute value to all activities ? Or should I copy the attribute in all the <activity> tags of the manifest?
View 3 Replies
View Related
Nov 5, 2009
I met a problem in setting xml attribute at run time.
For example I define a xml layout like this:
CODE:.......................
I want to set android:drawableLeft="@drawable/icon" at runtime.But thers has no setter method for this attribute.
View 2 Replies
View Related
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
Sep 26, 2010
I use custom xml attributes for preferences. The preferences are inflated from xml.I managed to create and read custom xml attributes for EditTextPreference, ListPreference and CheckBoxPreference by creating custom classes which inherit from the respective preference class.My problem is that I can't do this for the PreferenceScreen class, as it is a final class. So my question is: Is there any way I can read the custom attributes of a PreferenceScreen?
View 1 Replies
View Related
Feb 5, 2010
can i affect the look of the dropshadow that the scroll view shows when there's "more" available via scrolling? i'm not seeing anything in the scrollview docs.
View 4 Replies
View Related
Aug 29, 2009
Can u tel me what are the attributes we want to specify in the <scrollview> xml file.... bcoz i want to display scrollbar n my layout...i tried scrollview but it shows an error like force to close....
View 2 Replies
View Related
Nov 26, 2009
Is it possible to define an attribute value of a height attribute, for example, relative to its parent's height. For instance, I want the linear_layout's height to be 2/3 of its FrameLayout parent. I have a FrameLayout with two linear_layouts. The first linear_layout fills the entire FrameLayout and the second linear_layout overlaps the first but only 2 / 3 of its height.
View 3 Replies
View Related
Jan 22, 2010
I have downloaded a media file. (say mp3 file). I need to get the attributes of the file, like ARTIST, TITLE etc.
View 4 Replies
View Related
Sep 12, 2010
I am desperately trying to set TextView attributes of cells within a table programmatically but can't get this to work! Whenever I set layout properties, the field will simply not appear (but not give any error or exception). I boilded this down to this simple example:
CODE:.......
This will show three fields, but when you uncomment the five commented line, then NOTHING will appear. Why is that so? Why does setting layout parameters cause my TextView's to not appear? I'm stuck! What am I missing?
Here's the manifest, if some kind soul quickly wants to try this out:
CODE:.....................
View 2 Replies
View Related
Nov 26, 2009
I have a simple horizontal linear_layout with bunch of image views in it. the trick is that the views have different widths, relative to the size of their parent (the linear layout). I set the layout's weightSum to a 100 and the layout_weight to let's say 10 of one view and 15 of the other, on so on. And it did not work. I also tired using float values setting the weightSum to 1.0 and the layout_weight of the image views to 0.2 and 0.3 and so on. But it didn't work either. I did search this group for any references to the weightSum but found nothing. Any ideas how to handle it?
View 5 Replies
View Related
Feb 10, 2009
I want to create an application that can change one's voice during a call in real time is there a way to do that in android? can you point me to the right package?
View 2 Replies
View Related
Aug 27, 2009
I was wondering if anyone could give me hints on this one (i am re-posting an older version of a question i once had): i created a new attrs.xml that adds some functionality to the soft keyboard sample code.. code...
View 2 Replies
View Related
Apr 17, 2009
I'm introducing multiple custom widgets for my application, extending View. These widgets (LineGraph and DotMatrix) include various attributes that can be set via the layout-xml. How can I have multiple widgets using attributes with the same name. For instance, 2 attributes both having color as an attribute that can be set via the layout XML?
main.xml snippet:
CODE:......
When I want to add the info for my LineGraph in attrs.xml, Eclipse starts to whine: "ERROR Attribute "color" has already been defined" XML:
CODE:.......
Is it not possible to have a DotMatix resource with a color attribute, and a LineGraph resource with a color attribute?
View 3 Replies
View Related
Oct 12, 2009
Steps necessary to add a couple simple attributes to the stock Android Contacts application. Also, in the event the vendor has shipped their own Contacts application, will the same solution apply equally well to those handsets shipped with custom apps? I'm not looking for anyone to supply code; just a design pattern and any caveats I need to be aware of. I am writing an application that requires a couple new properties on the contact.
View 2 Replies
View Related
Jul 8, 2010
Having custom attribute (in attrs.xml) in library project leads to compilation fail of the project dependent of that library.Code...
How to avoid this except for no having custom attributes in library?
View 7 Replies
View Related
Aug 6, 2010
I have defined custom views in the various layout .xml files. However, all the layouts are using the Linear Layout - put the content would vary.
I would like to create my own widget tag something like <com.mypackage.MyLinearLayout />, I would like to pass the layout as a param to the <com.mypackage.MyLinearLayout layout="@layout/simple.xml" />
How to define new attributes to the custom widgets ? Simply defining a getter/setter method would work or is there any other references.
View 2 Replies
View Related