Activity A / B - Where To Declare Keys Of Bundles
Jan 27, 2012
I have a little doubt, I spend data from Activity A to B with a bundle in the intent.Where I should declare the keys? In Activity A or B? Only to avoid confusion, I'm talking about the string that defines the data that will be set in the Bundle.Ex: public static final String KEY = "MyKey";
I declare always in the Activity A, but I think that if I could let all the keys in a file would be better, like keys.java or something like that.Obviously, this is nothing that is generating errors, just a doubt about convention, a thing that I consider very important in software development.
View 5 Replies
Sep 10, 2010
In my thread I create an inner activity 'B' at one point in order to launch another activity for result. I need to declare this in my Android manifest file but can not work out what the name of it is as the standard ".B" does not work as it says that activity does not exist. How can I declare this activity?
View 1 Replies
View Related
Oct 28, 2010
I am trying to implement search in my application.
My application contain 4 activities and I want to add the search dialog only on 3 of them while only one of them (ProductsActivity) will be the default context.
unfortunately while I activate the search I keep getting the following error:
"Key android.app.default_searchable expected String but value was a java.lang.Integer. The default value was returned." code...
View 1 Replies
View Related
Aug 4, 2012
how do i declare URL variables
i tried this, but the "URL"s are marked as errors
Code:
URL url = new URL("URL.goes.here.com");
URL cannot be resolved to a type, is what eclipse tells me
View 2 Replies
View Related
Apr 12, 2010
anyone buy one of these bundles on ebay for like $20? i missed out on the Droid35 vzw deal in february and now i want a dock for my car. like one of these FOR MOTOROLA DROID A855 6 ACCESSORY BUNDLE CASE+CHARGER - eBay
View 8 Replies
View Related
May 22, 2010
I have been looking it up and I just cant seem to wrap myself around the onCreate and Bundles. I understand that the onCreate is called when the program starts but its how the Bundles get passed around and how they are pertinent. Can anyone try to put this into plain english because I cant seem to find it well described.
View 1 Replies
View Related
Mar 24, 2009
was wondering about the behavior of Bundles and serializable objects. If I put a serializable object into a bundle, what is serialized then, the reference to the object or the object itself? I always assumed that the object itself would be serialized to a byte stream when calling putExtra() and re-created from that representation when calling getSerializableExtra(), but I recently stumbled upon a piece of code that put an entire view into a Bundle in thread A, retrieved it from that bundle in thread B, performed a modification on it and this modification actually became visible. This can only happen if the reference to that view was stored, not the view itself, right? Otherwise, the modification had been applied to a copy of that view and would be meaningless.
View 3 Replies
View Related
May 27, 2010
Going from hero->evo means my mini usb cords are useless. I'm looking around but can't seem to find anyone selling a bundle of maybe 4-5 cords, they seem to all be selling individually along with car/wall chargers (which i won't need)
View 5 Replies
View Related
Mar 16, 2010
I have a preferences.xml that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<EditTextPreference android:name="Sample" android:enabled="true"
android:persistent="true" android:summary="Sample" android:defaultValue="3.0"
android:title="Sample" android:key="sample" /> </PreferenceScreen>
When I do sp.getString("sample", "3.0"), it works fine and returns a string, but it shouldn't be a string, it should be a float. Running sp.getFloat("sample", 3.0f) throws a ClassCastException because it is a string. What should I put in the XML so that the preference is stored as a float?
View 3 Replies
View Related
Aug 4, 2010
I have a doubt
For using Phone contact we have to set permission in manifest file
<uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.WRITE_CONTACTS" />
My doubt is where(in which file) it is written in Contact Application that you have to set these permissions. because i want to make a sample application and i want if anyone want to get data from my application, have to get some permission.
Please let me know that where we plan which permission has to get by other application to get data from a application.
View 3 Replies
View Related
Jan 31, 2012
How is declare global variable in android...some link send me...am searched various post..but am not clear about dis concept...send me valuable link..
View 3 Replies
View Related
Jun 7, 2010
Lets say that I have an app that lets you browse through a listing of cars found in a Sqlite database. When you click on a car in the listing, it'll open up a view with the description of the car and a photo of the car.My question is: should I keep the photo in the database as a binary data column in the row for this specific car, or should I have the photo somewhere in the resources directory? Which is better to do? Are there any limitations of Sqlite in terms of how big a binary data column can be?The database will be pretty much be read only and bundled with the app (so the user wouldn't be inserting any cars and their photos).
View 2 Replies
View Related
Jun 19, 2009
Is there any way to pass values(strings or bundles) to another application while calling it via intents, and also return some information (mostly string)?
View 3 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 23, 2010
How do I declare an Android UI element using XML?
View 1 Replies
View Related
Jun 29, 2010
A few days ago I was struggling to find a way to use custom intents for my alarms. Although I got clear answer that I have to customize the Intents based on some unique ID eg. setAction() still have some problems.This can happen more than once for a contact. And when the second message is generated, the notification is raised well (message is fine there) but the intent when the user actions the notification it uses old data, so previous message is passed and not the brand new message.So someway the intent is caching and reusing previous extras. How can I make it unique per contact and per action?
View 3 Replies
View Related
Jul 5, 2010
If I attach an object to a bundle and store the bundle in an intent and start another activity, does that activity work on a copy of the original object or does it use the same object but just passes along a pointer?
View 1 Replies
View Related
Aug 30, 2010
I recently started a new company, Android App Bundles | Save Money on Droid Apps and we'll be selling android apps in prepackaged bundles at ridiculously low prices - I'm shooting for 15 - 20 apps per bundle at 29.99 - 39.99. Because the bundles will be available randomly, people can sign up to get an email notification (and only an email notification, that's the only time we'll email you).I want it to be completely fair for developers so they are taking home 60% of gross revenue and an additional 10% goes to charity. I'm hoping to release a bundle very soon.If you have a moment, I'd love feedback on the site and ideas to improve it. I put it up quickly to get the ball rolling.
View 10 Replies
View Related
Jun 15, 2010
Is there a way or a program to remap the keys on the front? It would be great to be able to double press or hold down and have shortcuts to other programs.
View 1 Replies
View Related
Jun 9, 2010
My issue is the soft keys don't light up most of the time. Are there settings for these? Does anyone know if there if anyone else having this issue?
View 3 Replies
View Related
Nov 22, 2010
For some reason a row of keys on my keyboard will not work properly. I have to sort of hit the "top" of the key, or it wont pick up anything at all. It's frustrating because every other row of keys works. It does this in both screen modes. It is mostly affecting keys towards the very bottom of my screen if I hold the eris from the bottom.
View 5 Replies
View Related
Oct 21, 2010
I was wondering if anyone knows of an app that enables a clicking noise while using the keypad to type. I know the storm has it, but didn't know if tjere is an app out there so I can use it on my HTC.
View 1 Replies
View Related
Mar 5, 2010
My ContentValues object has string keys, and I would like to get a String[] result having all the keys in it?How do I iterate a ContentValues object?After getting two responses I came up with this, do you see problems with it?
View 1 Replies
View Related
Jun 8, 2010
When I turn the phone sideways to use the long keyboard my hand keeps touching the quick search button. Is there anyway to lock the bottom keys or make it so they are not as sensitive?
View 6 Replies
View Related
Jul 28, 2010
I have the issue where the the four soft keys always glow.(the home key extc always stay lit but can only tell in a dark room) so i was thinking about goin in and swapping my phone for a new one. but, with the new software (the 1.47) is the root the same? i have a mac and now a windows machine so the simple root app wont work for me.so should i just keep my phone and deal with the lights? or swap it and try to figure root out some how
View 5 Replies
View Related
Feb 15, 2012
I unlocked my Arc S bootloader. It turns out I removed its DRM keys. Is there a way to install it back?
View 3 Replies
View Related
Jun 4, 2010
Is there any way to make the keys click on the keyboard when you type ?
View 2 Replies
View Related
May 2, 2010
I have a couple quick questions about the Sense keyboard on my Incredible.
1. I'm coming from an iPod Touch keyboard and have been continuously hitting the period that is next to the space bar. Does anyone know if there is any way to remove certain keys from the keyboard? I really don't need a period and comma right next to the space bar on the alpha side. I know it's nit picky, but I like having a bigger space bar. 2. I've noticed when logging into websites that require a Username and Password that I am having to remove the keyboard when I go from the Username field to the Password field. On my iPod there was a "Next" feature that would automatically advance the cursor. Am I missing something on the Incredible? Didn't see anything available for switching data fields.
View 7 Replies
View Related
Jun 15, 2010
I was wondering if any of you had my issue. I have tried many different keyboards and all of them are the same thus I suspect its hardware flaw. It is completely frustrating to type on my evo! When I type really fast it won't detect my 4th stroke even though my evo registers that I hit it. So when I type in "stupid" accurately it comes out "stupd", missing the even though it acknowledges I hit it.
View 21 Replies
View Related
Jun 11, 2010
My company's web based time card system requires the use of the arrow keys to move from cell to cell. (I can't just tap on the desired cell, because they're frequently hidden until I can arrow over to them.)
Using an EVO with the standard browser, is there a way to simulate the arrow keys on the desktop? With a 3rd party browser?
View 3 Replies
View Related