Hi,
I have the following inside my manifest file:
<service android:name=".Rotate"
android:enabled="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.SEARCH_LONG_PRESS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</se...
Hey there,
I have a question about SocketChannels in Android. This is my code:
SocketChannel socketChannel = SocketChannel.open();
socketChannel.connect(new InetSocketAddress("127.0.0.1", 90));
This code works in Java but not in Android. I always get an IOException My first problem was the first line. I had to add permissions to open...
Why the last section is not displayed at all? AFAIK It should. It starts with :
<LinearLayout
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="70dip"
android:minWidth="70dp"
android:layout_weight="1">
Thanks in advance.
Full XML layout:
<?xml version="1.0" encoding="utf-8"?>
<V...
Hi,
I defined the following background.xml in order to set a different background for all children in an ExpandableListView:
<!-- state: when child is not pressed -->
<item
android:state_window_focused="true"
android:state_enabled="true"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable...
Hi,
I started to learn android and I'm making a simple game. In this game I need two scroll lists with the same width, so I set layout_weight parameter to "1" in both views. But when I run program scroll views have different size. Second problem is that i need EditText widget to be low, so I did the same thing with TableRows, but in the ...
I'm developing a video player application for which the user has an option to seek to a particular location, but the problem is there is no setOnSeekCompleteListener for VideoView,
So I am not sure if the seek operation that was requested has completed or not, and whether to start playback if it is complete.
Is there a way to implement...
I've just started Android development with Eclipse, so I've been going through all the "Hello" tutorials on the Android Developers site. I have come unstuck, however, on the List View tutorial. I have tried many times to correct the problems, but I am inexperienced and whatever I do doesn't seem to work. I have copied and pasted the code...
I'm looking for a way to escape the "@" symbol at the start of a string, in Android strings.xml resource. I'm continuously getting compilation errors and the layout builder in Eclipse refuses to work :(. Does anyone know how?
...
Hi, im making an application on android that requires to capture the user´s voice and recognize it. I tryed to record the audio using this code: http://xhampa.pastebin.com/Yr2hie6q on android 2.1. I realized that the sound wasnt recorded in a good quality at all (like slow motion). Unfortunally, I dont have an android to test it out, so ...
Hello.
I'm developing an Android application and I need to use a render engine to show some objects that I made with Blend.
I'm wondering if there is a C++ game engine or render engine to show my models.
Is there anyone?
Thanks.
...
I can't seem to find any documentation saying this is possible, but Google turned up a few apps that claim to be able to accomplish it.
I'd like to, ideally, be able to play an audio track and have it sent as the caller's voice.
...
The design of me now is extending right up. I decided to create a new design with using wrap_content. So It(ImageButton) should has a background image, And on a transparent image on left and a Image on right... How can ı Do??
...
I was reading the Android SQLite NotePad tutorial that referenced creating a DB Adapter class to create and access a DB table. When dealing with a multi-table SQLite Database, is it best practice to create a different Adapter Class for each table or create a single DB Adapter class for the entire Android Application?
My application use...
I have a service class in my Android app which uses a timer. The timer is set to run at a delay of 1min (60000ms). I want the user to be able to dynamically change this delay. Normally, in java I could just use timer.setDelay(); but Android does not have this function.
Service class so far:
public class LocalService extends Service
{
...
I am trying to implement pinch zoom and it is working but when i zoom out and then zoom in again the resolution of the image(bitmap) decreases.
I am aware that this is just normal behavior of my code and i want to know how to do this with right way .
here is the relevant code :
Matrix matrix = new Matrix() ;
float scale = newDist / old...
I'm writing a bitmap editor and I'm trying to write an autosave feature. When onPause is called, I write the application state to an autosave file. As this takes between 0.1s and 1.5s, I've been advised this IO operation be performed in a background thread.
In the onCreate method of my activity, I check to see if the autosave file exis...
Hi,
I'm working on a platform=app for games and I want the user to be able to choose games like some kind of an add on, then it will download some file (a game) which my app knows how to read and work with.
Basically, what I want is to build a market without apk files.
Or to generate a new kind of apk files.
I hope you can understand...
i want help i wanted to know to upload a file to my server and download it later if i wish to ...!!!
...
Hierarchy Viewer tool is missing from my android-sdk-windows\tools directory.
Link to tool:
http://developer.android.com/guide/developing/tools/hierarchy-viewer.html
Should it be there is first place?
P.S. SDK Tools rev. 7, Platforms 7 & 8 packages are installed.
...
Is there any way to change this in the android SDK?
It looks like some of the .bat files in the \tools\ folder sets some environment variables but cant tell exactly what they are doing.
I set my windows system profile settings in the registry to point to d:\users and everything else is pointing there but the android sdk keeps wanting to...