android

Spinner item with buttons in android

Hello. I need spinner with complicated item. Item consists from text and button. But when I add button to spinner item, I can't catch onItemSelected event. Items just not select. When I remove button from item all is Ok. So. I try to listen onClick event on textView and make spinner.setSelection(position). All is ok. My listener onItem...

how can we on or off GPS and 3G by clicking on button without going on setting screen in android?

how can we on or off GPS and 3G by clicking on button without going on setting screen in android? ...

Android ORMLite, use pre-populated database and use it

Hello, I have a pre-populated database, I hadd .csv and make a database in sqllite manager and imported all values into this database. Now I put this database into android's assets folder and want to use this via ORMLite in my android application. Please, need your help and will be thankful to you. ...

Dynamic graph rendering in Android

I need to draw a graph in Android which continuously gets data from the server. Based on one data item the graph needs to be displayed in various colors. The graph should keep moving from right to left like a ECG graph. Its something like continuous moving graph. Will I be able to achieve this using Android 2D graphics library? Do I ne...

Autoplay youtube videos in android

I am trying to autoplay youtube videos on android, the same thing as in http://stackoverflow.com/questions/3405242/how-can-i-autoplay-a-video-using-the-new-embed-code-style-for-youtube The following HTML works in google chrome browser, but not in the browser in android emulator. <iframe title="YouTube video player" class="youtube-play...

AndroidManifest does not generate launcher icon

My AndroidManifest.xml file does not create a launcher icon as it should. The XML is as: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jbrooksuk.iTunesTweet" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/ittico...

Add a navigation button to map

Hi, after much time and effort I have managed to create a map with a set location and add a push pin(marker) to the map showing exact location. Now I want to add a navigation button, I have five buttons at the top of the screen that allow zoom in and out street view and satillite view. The final button is for navigation, I plan to...

Writing in text view of different tabs in android

I have to manage different text views in tabs for chatting in android.In my code if a list item is clicked new tab will be generated having one text view one EditText box and a button.With the construction of the tab a new class having will be initialized which will check whether there is any new message or not after every 30 seconds.If ...

Android custom dialog shows android title bar

I have made an xml file like this: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="bottom" android:layout_gravity="bottom"...

Help sending info from Android phone to an computer IP with Android Emulator

So i am making a android app, and i want it to be so if i call lets say 911 it sends my GPS coordinents to a certain IP, i know everything but how i make it so if i call 911 it sends the info and how i can make it send the info to the IP via 3g, can anyone help? ...

Tips for developing an RDP application for Android?

I'm completely new at Android development but have some years of experience with Java. What I would like to do, is to develop an application for Android phones that enables the user to remotely monitor (or maybe control if time allows) their Windows environment. This is for a school project, and I can spare about 120 hours for the projec...

reason for getting null feed content in facebook feed post

I'm working upon Facebook application to post feed from device, I have shared option in my title bar of my application, sometimes the Facebook feed post appears in the screen have getting blank content without the title, and description, again when I click same feed to share the feed content is available now. What is the reason for getti...

Relative Precision of Android's GPS

I know that the absolute precision of position detection for gps hardware isn't that accurate. But assume that I have two androids and they are syncing each other at one place. In which precision (horizontal area) can I predict the other android position if the devices don't walk away too much (e.g. 1km) ? Would this as bad as several...

Android placement of custom XML files

I have a large XML file which is arranged like so: <item><title>...</title><link>...</link></item> How can I use parse(new InputSource()); to point to this XML file if it's stored within my project directory and where do I put the XML file? ...

Using of Toast with thread in android

progressDialog = ProgressDialog.show(GetResponse.this, "", "Loading..."); new Thread() { public void run() { try { // inside i have written code for making connection to the server using SSL connection. }catch (Exception e) { progressDialog.dismiss(); ...

findViewById in a subclassed SurfaceView throwing RuntimeException

This code works fine if I move the findViewById call in to the Activity. Any hints as to why it doesn't work from inside the LearningView class? I've tried moving the TextView inside the com.example.LearningView tag but no joy. I'd prefer to get the TextView from within the SurfaceView subclass as I feel it's more logical to treat the TV...

How do I play synthesized sounds on Android?

Hi, I wrote an iPhone app some time ago that creates sound programatically. It uses an AudioQueue to generate sound. With the AudioQueue, I can register for a callback whenever the system needs sound, and respond by filling a buffer with raw audio data. The buffers are small, so the sound can respond to user inputs with reasonably low l...

How does one implement drag and drop for Android marker?

Hi? I am working on a MapView app in Android. I have three markers that I want to be able to use the Google Map API getlocation-function on, later on. In order to try it out I would like to move the marker with a drag and drop-function, and then check the location. Anyone who has gotten a drag and drop to work on an android marker, or ...

Problem setting focus with Android

I have an app where the user is entering some data via an EditText control. This is done by alternating between 2 pages each of which obtains one piece of data. When I start, I create the first page and make it active by calling the setContentView for the activity. I also set the focus into the EditText control on this page. When I do...

Merge two Hash Maps Android

Hi guys, I want to merge Two HashMaps. I could use map1.putAll(map2); but I don't want to overwrite the key's as yes they will have conflicting keys. So the keys in each map will be like this word1 word1 word2 word2 word3 word3 and when I merge them I would like: word1 word2 word3 word4 word5 word6 It c...