Android :: Create Support Application To Activity?
Feb 22, 2009
In case there is anybody out there who would like to create a support- application to an activity that is already used by everybody on the Internet, the moment has come! I'm particularly interested in developers with deep knowledge of Linux services and/or the Android GUI. Note: this is not yet another password vault or similar, this is about *eventually getting rid* of passwords!
View 2 Replies
Apr 27, 2010
When a TabWidget is using intents to designate the target Activity for each tab, is there any special handling of those Activities on the Activity Stack outside of the default operation? For Instance, if my app has tabs A, B, and C, and I click them in this order--A, B, A, C, A, B--how will the Activity stack change? My understanding of the default operation, if startActivity() is called each time on the intent, would have the Stack keep loading up new instances of the activities: A, AB, ABA, ABAC, ABACA, ABACAB It's hard to believe that's how it works though... Seems like it would be a waste of resources and could be endless. Can anyone tell me how this will actually work?
View 2 Replies
View Related
Nov 18, 2010
How can i create an application which support Korean as well as English language?
View 1 Replies
View Related
Dec 24, 2012
I am working on developing an app and I am not sure when should I use a new activity and when should I update the existing view.
For example, lets say I have a view that shows a multiple choice question.Now, when the user selects his choices and clicks on say "Evaluate", I want to show the same question view but along with the right answers and explanations for each option. So does that mean, I should send an Intent upon a click on Evaluate or I should just update the view (i am not sure how)?
If I send an intent and show a new screen, how can the user go back to the next question without displaying the answers? If I don't create an new activity, how can I update the existing view that is already displayed?
View 4 Replies
View Related
Nov 9, 2009
I'm working on a litte HTTP server application for the Android. Now I like to secure the communication by using SSL. But I got stuck by creating a suitable keystore file. Searching the archives I came to the conclusion that it will be best to use a BKS type keystore since all other keystore types (like JKS) are not supported on the android.
Unfortunately I can't figure out a way to setup the keystore file. I tried OpenSSL - wrong keystore format. I tried the keytool from JDK - right keystore format but it doesn't support BKS keystores. I tried the Keytool IUI - I could create a BKS type keystore but it alwais ends up in an InvalidKeyException "Illegal key size". No matter if I try to create a new certificate or import it from a JKS keystore. (I tried to create the RSA ver.3 certificate with a key size of 2048 and 1024 bits.) How do you create BKS keystores?
For completeness here's the code I trying to use for loading the keystore:..............................
View 2 Replies
View Related
Nov 2, 2010
I have a layout with lots of different imagebuttons on it. Application is developed in full-touch, so there should be no response to keyboard or keypad on all activities except one, where user can input his name.
Is there a way to achieve that?
I've checked on debug, keypress and keypad press result in onKeyDown event. I've set it to return 'false' for all keys. But, for some reason, android keeps selecting my imagebuttons when keypad is pressed. And pressing Enter key result in View.onClick event.
How to totally disable all keyboard input for activity? I use Motorola Milestone for tests - a slider with a keyboard.
View 1 Replies
View Related
Oct 16, 2009
I have the following case. I have two string xml files under the dir of res/values and res/values- small. The strings in the two files are used to describe the different activity attribute. But i found that when i run my apk on QVGA emulator, the system always get the string value from res/values.
Here is my example:
CODE:.................
When i run my apk on QVGA emulator, i found that the system always get the values from res/values/config.xml. Thus i want to know if Android support to use resource to describe the activity attribute.
View 2 Replies
View Related
Mar 17, 2010
Here's my use case: The app starts at a login screen. You enter your credentials and hit the "Login" button. Then a progress dialog appears and you wait for some stuff to download. Once the stuff has downloaded, you are taken to a new activity. Exactly which activity you are taken to depends on the server response.
Here's my problem: If you go HOME during this login/download process, at some point in the near future your download will complete and will invoke startActivity(). So then the new activity will be pushed to the foreground, rudely interrupting the user. I can't start the activity before I start the download, because, as I mentioned earlier, the activity I start depends on the result of the download.
I would obviously not like to interrupt the user like this. One way to solve this is to refrain from calling startActivity() until the user returns to the app. I can do this by keeping track of the LoginActivity's onStop() and onRestart(). But I'm wondering, is there any way to create the activity while it is in the background? That way the user returns to the app and he is ready to go. otherwise he would have to wait for the new activity to be created (which could take some time because the new activity also has to download and display some data). Update: Guess what? I LIED! I could have sworn that starting this activity was causing it to come to the foreground, but I went back to test it again and the problem has magically disappeared. I tested in both 1.6 and 2.0.1 and both OSes were smart enough not to bring a backgrounded task to the front.
View 2 Replies
View Related
Nov 9, 2009
Once upon a time (Android 1.5 and earlier), when you would create a new project using the "android create project" command, it worked well -- you had an app that could immediately be compiled and installed.
Now, though, when you run that command, a number of places need fixing up, where ACTIVITY_NAME shows up instead of the activity name specified...depending on the API level you target.
For example:
CODE:............
leaves ACTIVITY_NAME in:
CODE:..........
If I change the target to 1, 3, or 4, it works as expected. If I have the target as 2 or 5, it gives me the ACTIVITY_NAME.
So, I'm curious to know if:
a. This is a bug, or
b. I'm missing something (despite this example coming straight from the docs), or
c. I've lost my marbles
View 2 Replies
View Related
Sep 11, 2010
I've gone through a few guides and tutorials, and they're quite clear on how to start an activity (with intent). However, how do I create a new activity in Eclipse? I can probably do this by hand by then I have to modify the R file which is auto-generated. I can create a new XML layout.
View 3 Replies
View Related
Nov 2, 2010
I'm trying to create a ExpandableListView in one activity. I've looked in apis demos, and I've created ExpandableListView. The problem is, that I need to have this ExpandableListView in activity that is already created, and not in a new one.
I've used this code:
CODE:..............
View 3 Replies
View Related
Sep 16, 2010
Can i create an activity with 2 status bar?
Can i put the status bar at the bottom of Activity?
View 1 Replies
View Related
May 18, 2010
Is it necessary to use TabActivity for displaying Tabs. I want to display tabs from Activity.
View 7 Replies
View Related
Jul 26, 2010
On the applications screen, (the one which you drag up from the bottom of the home screen), is there any way to create folders there and re-organise the position of apps? I know that you can create folders on the home screens, but this isn't what I want to do. I would love to be able to create a folder that I can dump all of the programs I will never use but which Sony will not allow me to delete, (you know the ones - moxier etc!!)
View 6 Replies
View Related
Feb 5, 2009
Is there a way to send an intent to the Maps application to load a KML file(URL) and display the contents, or use the internal KML parser. The internal Maps Application's intent/components are out of bounds for normal users. Intent { action=android.intent.action.SEARCH comp= {com.google.android.apps.maps/com.google.android.maps.MapsActivity} (has extras) } Is the only option is to write a KML parser and override the MapActivity to draw the POI's
View 3 Replies
View Related
Apr 15, 2009
I want to ask to google engineers that whether future sdk releases will provide any CC++ support for application developement? If no.. then Can you tell me the disadvantage of these languages?
As per my knowledge and experience, runtime environment is not needed to execute CC++ application. So why cant we directly run any application which is written in CC++? Is there any way to bypass DVM to execute a code?? Core android librarys are CC++ only...
View 3 Replies
View Related
Jul 28, 2010
I want to launch an Activity with a webView as its content from current Activity. This new activity needs to be transparent and webview should be in the center. I looked around the web but only solutions I found were using style xmls. I want to do it using pure code i.e. no xml declarations. if anybody has come across this then please shed some light.
View 1 Replies
View Related
May 5, 2010
I have been trying to create a ListView Activity with an ImageView in every row. I've used this tutorial: http://developer.android.com/resources/samples/ApiDemos/src/com/examp... The issue is that there are always some dividers missing whenever I run the example. The dividers are disappearing/appearing and flickering as i scroll the list (tested in emulator and HTC Tattoo). Strange is that the same example downloaded from the market (API Demos app) behaves correctly. Here is a screenshot of how it looks: http://yfrog.com/4cnokp.
View 5 Replies
View Related
Feb 18, 2010
Long story short, I have a LaunchActivity which is always called by LAUNCHER (i.e. the home screen). It then starts LoginActivity and then closes itself.This is the flow:
User launches app
LaunchActivity starts, starts
LoginActivity and then calls
finish() on itself (At this point
LoginActivity is the only Activity
on the stack)
User press "Home" button, stopping
LoginActivity
User launches the app again When the app is launched for the 2nd time, two things can happen:
LaunchActivity starts, finishes
itself and then STARTS LoginActivity
LaunchActivity starts, finishes
itself and then CREATES
LoginActivity, so there are now two
LoginActivitys on the stack.
(2) seems to happen when I restart Eclipse and the simulator (yeah I know, black magic). Some extra info: I'm not using any start flags and my manifest doesn't have any launchModes defined.
View 2 Replies
View Related
Feb 19, 2010
I want to create multiple instances of an activity in the same process. Should I use FLAG_ACTIVITY_NEW_TASK flag like the code below?
CODE:...............
This code is executed in class A to create another instance of activity A.
This question, will this code create another task? As I understand is a process can only have one task. Does it mean the two activities will exist in different tasks? That's what I want. I want the two activities to be in the same process.
View 1 Replies
View Related
Sep 23, 2010
How to create a class which not extended Activity & how can i use it class?
View 1 Replies
View Related
Feb 1, 2010
I want to create transparent create on another activity.
How can I achieve this?
View 3 Replies
View Related
Mar 3, 2010
I'm writing a game for Android. My GUI has the following basic screens (i.e. the information and interactions required on each of these would take up the whole display):
Main menu (let you start a new game, enter settings, see high scores, see about screen)
Game screen i.e. where the actual game is played.
Settings screen.
High scores screen.
About screen (i.e. credits and a back button)
Game over screen (arrived at when the game ends)
Pause screen (pauses game and can access settings)
The following are some example transitions the user might make between these screens:
1->2->7->2->6 (starts new game, pauses game, returns to game, finishes game)
1->5->1->4->1 (views about screen, goes back to main, views score screen, goes back to main)
I'm really confused about when to have just one activity that switches layouts and when to create new activity classes. For example, when my game loads, I have a "main" activity that loads the main menu layout. When you click the settings button, I launch a "settings" activity (which uses android's standard settings GUI). For the moment, when you start a game, I switch the layout of "main" to the game screen layout (which just contains one big surface view). I'm not really sure what the best way to integrate the game over screen, high score screen, about screen etc.
Creating a new activity for each seems really heavy weight to me. There's quite a lot of boiler plate code involved for each activity. Plus, communication between activities seems like a pain as you have to use bundles. Using just one activity means I can just share object fields directly. It seems that using layouts for the above would be more compact. Can anyone give me some recommendations?
View 1 Replies
View Related
Mar 23, 2009
I want to have multiple listviews in my activity. Every listview will have a different adapter and every item in the listview must be clickable (other actions for every listview).
So my problem now is that I can't create multiple clickable listviews. I have one listview like this <ListView android:id="@android:id/ list".. and the other listview looks like this <ListView android:id="@+id/ flightList"
The first listview looks like this in my activity hotelList = (ListView)findViewById(android.R.id.list);
the second: listView = (ListView) findViewById(R.id.flightList);
I can click on the first list and it does what it has to do, but i cant do anything with the second list.. probably because it hasn't the android:id/list declaration. does someone knows how I can solve this problem or other suggestions how I can get multiple lists in 1 activity.
View 25 Replies
View Related
Jul 1, 2010
I was wondering is it possible to create multiple instances of a single Activity in Android?
I currently start my own inCall screen for a Voip Test by using the following code...
This allows me to start the Activity fine. However when I call it for a second it just returns to the Activity already created rather than creating a new Activity and placing it on the stack.
I would like to be able to create the activity multiple times so that I have two or 3 Activities on the stack and the user can switch between them, using Home, Back buttons etc... Is this possible and if so what am I doing wrong?
View 1 Replies
View Related
Aug 31, 2010
How can I create a custom activity that can be chosen by the user via the share option when viewing the photo gallery? I have options like "Share with Facebook, Twitter, FlickR" etc. But I want to add my own option in there.
i.e. Go to "Photos", then click the "Share" button. You will be presented with a bunch of share providers. What do I need to do to get my activity in there?
View 2 Replies
View Related
Oct 7, 2009
I would like to have icon created on home screen through an activity . All the icons of my activities are on main menu, once i click it my activity will be launched instead i need an icon on home screen which when clicked activity should be launched.
View 4 Replies
View Related
Feb 11, 2010
now i dont know which event to implement to handle checkboxes in list when i click on checkbox it expands the list.... how to distinguish list click with checkbox placed in expandable list? or kindly refer me to tutorial same as expandablelist view with checkboxes.
View 1 Replies
View Related
Mar 19, 2009
I have a 2D app. When the user presses a button, I need to quickly open a translucent 3D animation and overlay that on top of the 2D app. This is similar to the "Translucent GLSurfaceView" demo in APIDemo.
However, with APIDemo on G1, it takes about 100~200ms for the new Activity to come up. For me, this is too long. Is there any way to make it faster (to about 30~60ms).
My idea is to create a transparent Window object that contains a SurfaceView and hide it. When user presses button, the Window is shown.
View 2 Replies
View Related
Jul 15, 2010
I have a ListView that uses Linkify to create a link to another activity in my app. the url looks something like content://com.myapp/activitiy/view?param=blah
This works fine every time.
However, in another view, I'm trying to call some code like this:
CODE:.............
But for some reason this doesn't seem to work. It doesn't trigger my activity (and in fact it blows up if i dont include the setAction() call. How am I supposed to create the Intent such that it acts the same way that Linkify does...?
Now i realize i can setup the extras and then handle it in the activity, but that just seems like duplicated effort.
View 1 Replies
View Related