I am building many apps for Android and wish to have a menu button in the apps that basically opens a list of my other apps in the Android Market.
Is there a way to create an intent and have the Android market pop up with a search (of my company) in the market so users can buy other apps?
ian
...
Hi,
in my listview I have items with different layouts, in fact they use one sub-layout few times. I cannot use getViewTypeCount() and getItemViewType(), because I don't know how many times the sublayout will be used. Is it possible to optimize somehow getView() method and use it's convertView parameter, or do I have to inflate view each...
I have an 2 adapters extending BaseAdapater. The first Adapter (let's call it imageAdapter) loads an image base on an ID, the second adapter (pageAdapter) builds grids of images from the first adapter. I set the second adapter to a gallery. The idea is that I can sort have pages in an album where there are multiple pictures on each album...
I am having a problem capturing an image and storing it from the native camera app. Here is a sample of some of my code.
_path = Environment.getExternalStorageDirectory() + "make_machine_example.jpg";
File file = new File( _path );
Uri outputFileUri = Uri.fromFile( file );
Intent intent = new Intent(android.provider.MediaStore.ACTION_...
I have an Android app which has a list view which is updated during the lifetime of the app.
I have a 'Quit' menu option which saves the list data in a thread and then finishes the app by calling finish();
How should I save the data if the app gets killed by the system? In particular, when should I save the data, in onStop, onDestro...
Hi,
I'm just starting with android development and have written an application to show details about the battery status.
Now I wanted to put the whole thing into an widget - and here's the question:
Do I really need a update service in the background to listen for ACTION_BATTERY_CHANGED intents? My first thought was to put just a
<ac...
My application uses a large number of MapView screens and I'm trying to figure out how to manage the API key between the debug environment and production. Apparently, there is no way to change the debug application key in Eclipse so I must use a debug map API key in that environment. Conversely, there is no way to export a package for be...
Hi!
I have a card game I created in android and it is possible to show the scores at any given time by clicking a menu option.
I would like that scores dialog to show a different background image when it's loaded depending on factors like who's leading, etc.
In my constructor, I have the following relevant code:
public ScoresDialog(Cont...
This is the second time this has happened to me now. I changed the starting activity of my app, and put out an update, and now the icon on people's phone will not open my app. The only way they can open it is through the downloads section of their Android Market app, or if they uninstall and reinstall the app, causing them to lose ALL th...
Hello all,
I am trying to write an app that requires different PDF files to be opened and displayed on the E-Reader side of the eDGe's dual screens while the app is running on the LCD side. I've been using Better Terminal Emulator to cruise around the eDGe's file system but can't seem to find the command that opens PDF files. Does any...
I have a ListView in Screen 1 where I have a few items . The User Clicks on an item in the Listview and Screen2 pops up . But What appears in Screen2 depends on what item was clicked in Screen 1
For Ex - User Clicks A in Screen 1 - Words starting from A come up in Screen 2
lv.setOnItemClickListener(new OnItemClickListener() {
publ...
I have an application written in Delphi and ported to C# that makes extensive use of delegates (which allows me to add new modules easily). I think it would make a great Android phone app, but Java does not do delegates natively. I've seen a couple of examples of Java codes that tries to do delegates using reflection, but that does not s...
I have problems with BluetoothChat I can't connect Droid . I always get this IOException
08-09 20:58:24.889: INFO/BluetoothChat(17378): MESSAGE_STATE_CHANGE: 3
08-09 20:58:51.053: DEBUG/BluetoothService(17378): BT_SEND_MESSAGE
08-09 20:58:51.108: ERROR/BluetoothService(17378): disconnected
08-09 20:58:51.108: ERROR/BluetoothService(173...
I am trying to set up the VPN Settings in the Android emulator. When I try to connect it is telling me it could not resolve the Server Name. I have the IP address of the VPN Server. The settings work on my desktop.
...
Hi there, i'm an IT Student and the language i'm learning is C#, it's quite similar to Java so I gave Android programming a shot. But I have a question:
Is there and event that's fired when the screen is (un)locked?
And if possible, can someone show me a code snippet showing an action done when the screen is (un)locked?
...
Getting sporadic mediaplayer errors similiar to,
08-09 14:32:56.956: ERROR/HTTPDataSource(59): HTTP request failed w/ http status 403
This is usually right after a seek call (however seeking works the majority of the time, it returns these errors maybe 1 out of every 5 times).
Sometimes it happens without seeking at all. I am gettin...
Hi there,
I guess this question has been asked before, but I can't seem to find a proper answer/solution.
Have a note-taking app, which allows to take pictures. For that I start an intent, that starts up the built-in camera-app. So far so good.
But when I show that image in my app, it's in a much smaller format :(
The funny/weird thi...
Hello,
How can I draw an dynamic view on top of mainscreen in android.
For example I display the main screen using setContentView(R.layout.main);
This draws many widgets and includes an image defined in main.xml this way :
<ImageView
android:id="@+id/myImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content...
I would like to add a favorites star like the one in the contacts list on android. Is there any way we can get that star or will I have to write my own? I can't seem to find any standard GUI Elements from android other than the options menu icons. Are there any more that I have not found?
Look at the one the right next to George Ande...
Hi, I'm kind of new to this whole thing so I need some help. I have an application that creates an ImageView OnCreate. I want to make this image clickable and have it open a browser to a specific link.
How would I do this? I'm having trouble specifically with the setOnClickListener because the parameters are not accepting an OnClickList...