Android :: Create Multiple Threadpools - ExecutorService?
Jun 4, 2010
I created multiple ExecutorService instances in my code, usually each UI page has one ExecutorService instance. Each ExecutorService instance will execute some http get request threads.
CODE:......
Is it OK to do that?
The problem I met is that sometimes the http get requests got response code -1 from HttpURLConnection getResponseCode() call. I don't know whether it is caused by multiple threadpool instances.
View 2 Replies
May 6, 2009
In my application, i want to create multiple tabs. For example, i have a button on clicking which should create one more tab,(just like Mozilla browser). I searched on Internet as well as Android Documentation. but did not get any clue...
View 3 Replies
View Related
Nov 7, 2010
How to create multiple View in one screen?
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 4, 2010
I have 1 activity, but would like to have multiple context menu's for different UI components.
For example, I have a ListView which will react to:
CODE:...................
How can I create another context menu for the onClick event for an ImageView I have?
View 2 Replies
View Related
Jul 12, 2010
I know I cannot create two MapViews in a MapActivity. And I cannot create two MapActivities in a process. Is there a work around that will enable me to display two mapviews side by side?
View 6 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
Oct 12, 2010
i want to create a bitmap / image which has many images like "Collage" which has more then one images in a single picture. I have stored all my images in a grid view but now i want to create a single image from all those images. And even i want to make few images click able so what can be the road map to do this ? any sort of help / example will be helpful. search for a for collage image image in google . one can see what it is exactly.
View 2 Replies
View Related
Oct 19, 2010
I'm trying to create a title bar that is the same throughout my application and have been creating layouts like this for each of my activities:
main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/title_bar_layout" android:id="@+id/title_bar_layout" />
<include layout="@layout/main_body" android:id="@+id/main_body" />
</LinearLayout>
main_body.xml:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_table" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:stretchColumns="1"
android:orientation="vertical">
</TableLayout> Code...
View 1 Replies
View Related
Feb 20, 2013
I want to make an application which allow user to add multiple recipient. Token for all recipient should be created and if i select any token and press back key,it should be deleted.
View 1 Replies
View Related
Jun 21, 2010
Is it possible to create and activate an apn programatically on android? Is it also possible to activate more than 1 apn at the same time?
View 1 Replies
View Related
Jun 30, 2010
The following code executes a function that retrieves a file via ftp and then displays it in an imageview. Since I'm using the main thread the UI locks up, somebody tells me I can use asynctask to make this work but I can't figure it out :<
Is anybody familiar with this that could offer me some guidance? code...
View 1 Replies
View Related
May 7, 2010
Any insights/pointers regarding creating a layout like this. I have wasted quite a bit of time on this. I want to create a vertical linearlayout which has multiple ExpandableListViews separated by TextViews.
CODE:.........................
I tried the following approaches but each of them has one shortcoming or the other:
1. Add TextView and ExpandableListViews to a linearlayout. The problem with this approach is that LinearLayout by default is unscrollable.
Adding the LinearLayout to a ScrollableView creates even more issues because ListViews handle their own scrolling behavior.
2. I tried using a single ExpandableListView to model the above layout but the problem is that setGroupIndicator applies to the entire ExpandableListView, not a specific group.
View 2 Replies
View Related
Feb 11, 2010
I was womdering how do i create different folders for things such as ringtones, notification tones.. etc.
View 3 Replies
View Related
Nov 22, 2011
i am creating an app for which i need to display multiple charts in single view.I am using achartengine library to create charts but i don't know how to merge and display 4 charts in single view.
View 1 Replies
View Related
Jul 19, 2012
I have about 150 apps installed, but only 30 of them are currently on the homescreen.
Is there a way to add the remaining 120 at once to the homescreens?
If I would have to do it manually (Samsung Galaxy Tab 10.1) it would take at least an hour to do (adding one shortcut is extremely slow, as my tab needs about 10 seconds to display the list of apps alone when creating a shortcut).I don't have to do it manually for each app.
View 3 Replies
View Related
May 26, 2013
I'm looking to clean up my home screens a little and would like to be able to create one on-screen folder or widget that can hold multiple other widgets for quick access and easy launch. Specifically, I have quite a few ColorNote files that I need quick access too, but don't necessarily want clogging up my home screen. I'm hoping there's something out there - either a folder organizer, launcher, or widget that can do this for me.
I currently use GoLauncher and FolderOrganizer on my SG Note.
View 2 Replies
View Related
Oct 10, 2012
im wondering is there such way to create a zip file with multiple zips in to flash at once? Purpose of it is to save time flashing 5 different zips through recovery every time we flash new roms?
View 2 Replies
View Related
Aug 16, 2010
Are there design guidelines to help decide if an application with multiple views should be designed with multiple activities or just one activity and control the back button itself.
I've tried both. My most complex applications using one activity per screen. However, now that I'm successfully written an app with just one activity and handling the back button myself, I don't see any compelling reason to use multiple activities. The one activity application is much simpler and more straightforward.
What advantages of multiple activities am I missing?
View 8 Replies
View Related
Feb 18, 2010
I'm working on an application using xml layouts.
I wish to know which is better:
1. Use few activities and change its contentview
2. Use an activity for each 'view' needed
If both works, in which case which option would be better?
View 1 Replies
View Related
Jul 1, 2010
I'm planning to develop and app that presents the users with several different screens (of different information).
Was wondering what would be the best way to implement this?
Is it better to have separate XML layouts and an activity to display and allow the user to interact with each screen of data?
OR would handling all of these in the same activity be more efficient (and dynamically load / unload each layout)?
View 2 Replies
View Related
Jul 17, 2009
How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.
View 8 Replies
View Related
Feb 2, 2009
I am trying to launch an activity from another activity .. Within the com.android.SingleLauncher..
I have activity launch code as ..
CODE:...........
I have set the android:multiprocess="true" in the AndroidManifest.xml of TargetSL I don't seem to see the multiple instances of TargetSL, which i am expecting ..
All i see is 2 process, where i was hoping to see an instance of TargetSL, for each launch that was invoked by the singleLauncher!
View 3 Replies
View Related
Feb 20, 2009
I want to know when will Android support Multiple PDP.
View 15 Replies
View Related
Feb 8, 2010
I have a very simple game that consists of only one activity, and I want to add a title screen.If the title screen is another activity, what changes do I need to make to my manifest file to make the title screen open first?The gameplay activity is called Leeder, and the title screen activity is called LeederTitleScreen.
View 1 Replies
View Related
Oct 3, 2009
How can I publish two versions of my app without changing the package name, so that users may upgrade to either version, one for Anroid 1.5 and one for Android 1.6 ? I want to offer new features requiring Android 1.6 as soon as possible, but not all users will have upgraded to Android 1.6.
View 2 Replies
View Related
Mar 28, 2010
I am picturing something like what I saw on G4 a year or so ago. Program that takes multiple pictures and creates a 3d map based on them in which you can walk around inside the map. I really wish I still had the bookmark for that page. Anyway, is that the same as what you are talking about here? Or am I mistaken? If it is the same, it is an amazing concept. I look forward to the site being up and running so I can poke around a bit. (Right now, it won't connect).
View 4 Replies
View Related
May 27, 2010
I am including a class in my app that another developer has made freely available. His class has a different package. Will this cause any issues on Android, the market, etc? Does every single class in the app need to be my own package?
View 2 Replies
View Related
Aug 1, 2010
Is there an app available, either from the Market or other sources, which would allow me to install 300 apks at a time instead of going through eachone? I have discovered Droid Explorer but I am not willing to root my phone.
View 2 Replies
View Related