Android :: Displays On Emulator / Not On Phone?
Apr 2, 2010The following code will display location data on the screen in the emulator but not on an actual device. code...
View 14 RepliesThe following code will display location data on the screen in the emulator but not on an actual device. code...
View 14 RepliesI created a Galaxy Tab emulator using these instructions: http://innovator.samsungmobile.com/galaxyTab.do
When I install my 4x2 widget on the emulator it displays like it does on a phone (full width, half the height). However I went to try it out on an actual device in Best Buy and there it displayed as if there is room for a 5th row and column. First of all, why is there this discrepancy? Second, how would I create a 5x5 widget?
I tried in many ways to check Internet connection in my android emulator
CODE:.........
Even if i disable Internet connection in my system ,my code seems to display Connected state
so i guessed this may work
CODE:.......
But the above code also displays "Connection Present" even when i disconnect Internet cables. Please help to find a correct way to do this .I have ACCESS_NETWORK_STATE and INTERNET permission in my manifest file
I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat.
CODE:.............
Here is the dbhelper class
CODE:................
why can't stackoverflow just use tags like a normal syntax highlighter.
The time on my phone is 15 minutes behind
Anyone else have this problem or know what I can do to fix it? (Besides manually setting the time...)
In your contacts, under favorites is the Frequently Called list. Mine is displaying numbers I have never called. Anyone else?
View 21 Replies View RelatedCan anyone explain to me how the voice dialer chooses the possible phone numbers it displays as options? All of my contacts have at least two phone numbers (mobile and work), for some contacts the voice dialer only lists one number and for others, it will list all of them.I thought it might have something to do with the designated 'primary' number, but changing that has no effect.When I ask the app to call my wife, it only shows her mobile number even though there are two other numbers in her contact info.Even if I say to call her "at work" the work number won't show up, only the mobile number.
View 5 Replies View RelatedWhen I use the following code in Android 1.6 it displaying both phone numbers and contacts but when I use Android 2.2 it does not display phone numbers, it only displays names. String columns[] = new String[] { People.NAME, People.NUMBER, People._ID };
int tocols[] = new int[] {android.R.id.text1, android.R.id.text2};
Cursor c = managedQuery(People.CONTENT_URI, columns, null, null, null);
SimpleCursorAdapter sca = new SimpleCursorAdapter(this,
android.R.layout.simple_list_item_2, c, columns, tocols);
setListAdapter(sca);
I have a simple program where I set a spinner to a position. I then call a second module and when I return, I reset the spinner. The spinner display does not display the spinner value. When you tap the spinner, it IS pointing to the correct value, but it displays an incorrect value. In fact, it actually steps down.
I wrote the following simple program to demonstrate. This only happens when the form has a spinner within either a Linearlayout or TableLayout with at lease 1 other element.
CODE:................
I am trying to get AdMob ads to display in my android application and have been unable to do so. I have contacted their support and have not received any response in almost a week, so I figured I would now ask for help here.
First some code:
CODE:................
Yes, admob-publisher-id-here is my real publisher id in the actual manifest file.
In the logcat, i see the following:
CODE:..................
The AdListener is indicating that it is unable to retrieve the ad. I have an active data connection, plus I am in Test Mode, so it is supposed to always show an ad, according to the admob wiki. There are no errors in the logcat, nor is the application force closing at all.
I got a response from admob, but all they said was i was creating the aeveiw twice, which I am not
Youtube android app shows skippable ads, while doesn't happen on the iOS counterpart. How can this be explained? Ads are not shown by Apple request?
View 1 Replies View RelatedI run a site that offers .pkg files to my users for download to there device. The issue is instead of downloading the .pkg file it just displays the raw code of the .pkg file in the webview. How can I get this to force download to the root of the sd card? Here is what I have
package com.ps3brew.view;
import com.ps3brew.view.R;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class WebViewExample extends Activity {..........................
Using WebViewClient and/or the WebChromeClient you can get a listener for when the page has loaded, however this is sometimes called before the WebView has any content in it, before it has displayed anything. What would be a efficient method for determining when the WebView has displayed it's content? When I load a page in a WebView, I want to set the scroll to a specific position. It seems that the scroll position cannot be set until the page is loaded and it has an actual content height. So, I have tried two different approaches to determining when the page has finished loading, onPageFinished() from the WebViewClient and also onProgressChanged() from the WebChromeClient.
Both of these tell me when the page has finished loading. However, the problem is that sometimes it is called before the page has been displayed and therefore the page has no height and the scroll call does nothing. I am trying to find a solid way to determine when the page is ready to be scrolled, i.e. when it has its content height. I imagine I could setup a checking loop after it finished loading to keep looking for when the height is available but that seemed like quite the hack. Hoping there is a cleaner way.
When I'm scrolling up a thread in Handcent trying to get to the "show older messages" button, I come across every picture that has even been sent or received in that thread. This is.
a) not in chronological order and
b) produces lag when trying to get to that button.
Why does Handcent do this?
I have a listview that when you click on an item it will take you to a WebView that displays some static formatted text associated with that list entry.
I had it all working with a TextView but I wanted to be able to use HTML formatting for the text and figured the WebView was the way to go. Right now it is just supposed to display a generic link for testing purposes but when the viewContent intent starts it just goes to a black screen. I can go back and pick another entry and it also just shows the black screen.
I'm not sure what code you are going to want to see so here's the viewSection class file and the viewsection.xml layout.
viewSection.java:
CODE:..............
viewsection.xml:
CODE:..................
I have a layout with a TextView and a List, and in onCreate() I have the TextView request focus. On the G1 and emulator the screen comes up with the TextView having focus, and the on-screen keyboard will display when you tap on the TextView, but on the Galaxy apparently the on-screen keyboard is always displayed. Does anyone know why this would be so? And why would a phone without a keyboard act differently from a phone with a keyboard that's hidden--shouldn't they follow the same logic?
View 3 Replies View RelatedI made a very simple application to start playing around with Android development. It works fine on the emulator, but it gives me the following error when I try to install it on my HTC Hero (v1.5): The application Simple Dial (process com.foo.simpledial) has stopped unexpectedly. Please try again. (Force Close button) and on in the Eclipse console, I get the following message:
[2010-06-14 23:10:52 - Simple Dial] Uploading Simple Dial.apk onto device 'HT9BSHF00222'
[2010-06-14 23:10:53 - Simple Dial] Installing Simple Dial.apk...
[2010-06-14 23:10:56 - Simple Dial] Success!
[2010-06-14 23:10:56 - Simple Dial] Starting activity com.alanvaghti.simpledial.DialActivity on device
[2010-06-14 23:10:57 - Simple Dial] ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined
2010-06-14 23:10:57 - Simple Dial] ActivityManager: Can't dispatch DDM chunk 4d505251: no handler defined
[2010-06-14 23:10:57 - Simple Dial] ActivityManager: Starting: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} comp={com.alanvaghti.simpledial/com.alanvaghti.simpledial.DialActivity} }
I did put 'android:debuggable="true"' inside the application tag on the manifest.xml
There is a horizontal battery widget that displays the % inside it. It is usually blue. Anyone know which one this is and if its free?
View 12 Replies View RelatedI have a very large number of (corporate) folders in Outlook which I don't want/need to access on my Milestone, but I can't figure out how to stop them being displayed.
View 1 Replies View RelatedI'm creating a basic Mapview application which will display my current location on the google map. Initially i had many doubts while creating the application, but thanks to android developers archives that helped me to reach this point. I have followed almost all the threads on the android developers site but still unable to see my location on the google maps. It always shows a white screen on the emulator with google image at the bottom. Please help to make it work. From most of the threads I learn that we need to sign our application with the correct fingerprint. I did so but unsuccessful.
The following will explain the steps:
1. Using sdk version android-sdk-windows-1.0_r1
2. Created a new android application.
3. Signing the application:
a. C:Program FilesJavajdk1.6.0_13in>keytool.exe -list -alias androiddebugkey -keystore "D:Profilesfknq86Local SettingsApplication Data Androiddebug.keyst ore" -storepass android -keypass android
b. Certificate fingerprint (MD5): 75:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:33 where XX=some alpha numeric data
c. signing up for an Android Maps API key!
Using link http://code.google.com/android/maps-api-signup.html 4.
Code below: There are 2 applications
1. Find Me
2. ShowMyLoc.
FindMe has a button which directs it to ShowMyLoc (using Intent) to show the location on the google maps. For simplicity sake i'm pasting the code only for ShowMyLoc app.
CODE:.......................
I created a project from the ContactManager sample code and installed it on my DX. When I click the account spinner, in addition to the 2 accounts I have on the device, it displays 33 seemingly random characters followed by "@random.svcmot.com". Does anyone know what this account is?
View 2 Replies View RelatedI have a WebView that displays a Google Checkout payment button in an html form.
When I run it on the emulator it works, there is the payment button and I can press it and go to the google checkout webpage.
However, when I run it on an actual device running Android 2.2 it just shows the little blue box with a question mark.
what does this mean?
CODE:.....................
Can anyone recommend a good widget that displays the time and date, but not the weather? I've been using Beautiful Widgets, but the weather, in my opinion, isn't very accurate. I have Weatherbug Elite, and I'd like to have something like Beautiful Widgets to display the time.
View 7 Replies View RelatedSuppose my application xyz stores a few contacts(just like in the address book/ telephone book). Other contacts are by-default stored in my Android address book. Suppose I receive a call on the handset with my app xyz running in the background. All I need is to fetch the Caller's name from the application xyz and display this name as" Akash Calling..." instead of "+91... calling..." assuming that caller's details are present in the application say, his name and none of his details in the actual address book. Is this feasible.
View 2 Replies View RelatedOn some of the AVDs I've created, input text gets displayed as logograms, even in the emulated Browser application (see the screen shot at http://eduneer.com/screenshot_avd_text.png). Has anyone else experienced this or have a tip on fixing it?
OS: Vista Eclipse version: 3.5.2 JDK version: 1.6.0.14
I have an appwidget which displays time with some text. This text can have different fonts, which the user can choose from. Every minute the appwidget updates to display the correct time. But for some unknown reason sometimes when the widget is updated the text shows anything except the time, ranging from chines to random numbers.
View 1 Replies View RelatedI have a situation, i want to know that following, suppose I have opened 9 apps, i want to open the 10th one, The previous opened apps are in background, if there is less memory available, will some of the earlier opened app be closed without notification or the state will be saved , so that when i open the first app again it will resume rather then start all over again?
View 8 Replies View RelatedI have built a multi-touch application which is based on a Java EE backend and combined with BlazeDS to a Adobe Flex frontend. The application runs on a DIY-Multi-Touch which I built. Now I want to use another solution. The Adobe Flex frontend (with a multitouch library) and the BlazeDS adapter should be replaced by a solution which covers iPhone/iPad, Android and commercial Multi-Touch displays.The problem is the iPad/iPhone, there is no Flash Player runtime (not the jail-braked ones), but the application should be runnable also on those devices. So Adobe Flex and a Java frontend (no JVM on the iPhone/iPad) is not possible anymore. At first, starting the developing of the application it was not necessary, to run it on Apples mobile devices, but this changed So, what can I do, using HTML5? So I can use it for Android and iPhone/iPad. But I also want to make it possible to use it on a commercial multi-touch-display and normal display with a mouse (I only have gestures for one finger, the 2-finger gestures are not necessary). Are there any frameworks that allow this? Because I do not want to create several frontends (App for iPhone/iPad on Objective-C and a Adobe Flex for all other devices), it would be great if I can build a frontend for all devices.
View 2 Replies View RelatedI'm very new to Android (like 2 days), but I'm experienced with other layout toolkits. I'm trying to put an AdView below a TabHost, and it seems that I can either get the TabWidget or the AdView to display correctly, but never both.
First, here's an ASCII art version of what I'm trying to accomplish:
--------------------------------------------
| Tab 1 | Tab 2 |
--------------------------------------------
| MapView when tab 1 is selected |
| |
| |
| |
| |
| |
| |
--------------------------------------------
| AdView that stays no matter what tab |
--------------------------------------------
As you can see, I'm trying to get the AdView outside the TabWidget or FrameLayout. I want it to be below the whole tabhost contents.
Here's the layout I've got before adding the AdView...
Unfortunately, in that one, my MapView in the first tab puts the Zoom controls on top of the AdView. Is there some simple layout I'm missing? Cuz I can get the TabWidget to wrap_content for height, or the AdView to wrap_content for height, but only when they go above the "@android:id/tabcontent."
Anything below the tab content gets eaten by the MapView.
I have a ragged hierarchy of parents and children. In that there are some parents that have 5 children...and some parents have 0 children.
The expandableListView displays the "Expand/Collpase" icon even if there are no children.
Question-Is there a way to hide the icon for only those Parents(rows) that have no children? I still want to show the row of the Parents with no children. And allow a user to click on them. But the "Expand/Collapse" icon is confusing.