I have android:screenOrientation="portrait" set for my activity. Creating an AVD with resolution 800x480 and running my activity, the GLSurfaceView is created with dimensions 800x480 (ie. not rotated and width > height).
I would expect it to be created with dimensions 480x800 and be rotated 90 degrees.
Is this a bug in the emulator or ...
I'm looking into creating a widget that supports animation, ideally via the android.view.animation framework, otherwise by setting properties on the remote views in code triggered from a background service.
Does anyone have any experience with either of these approaches, and is what I'm trying doable, or am I heading up a blind alley?
...
I've read on Reto Meier's blog that he doesn't recommend the use of modal "Loading..." dialogs in Android applications. Is this a general consensus among developers?
If I have a login screen what should I display when the user tries to sign in? Until now, I have used a "Signing in..." indeterminate progress dialog. Should I use the app...
Before I added my ListView, along with changing my TableLayout height to "wrap_content" as opposed to "fill_parent", my ScrollView displayed properly. Here is my XML: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableLayout android...
Hi all,
I've been trying to get this to work for a few days without success. Basically, I'm writing a small test app to make the phone report it's position as somewhere else using addTestProvider and setTestProviderLocation etc. Basically it looks fine and appears to report its location as having changed, however Google Maps etc. see...
whats the deal with
CharSequence contentTitle = R.string.value;
Error cannot convert from int to CharSequence. Is there a way around this or am i missing something?
i tried
String s = R.string.value + "";
CharSequence contentTitle = s;
it returns integers values.
Any help?
...
Hello,
it's possible to hook process in Android?
for example we can hook process in windows:
"trap events that will occur, either in your own process or in other processes. By "hooking", you tell Windows about a function, filter function also called hook procedure, that will be called everytime an event you're interested in occurs"
Pl...
I am a beginner android developer and I had followed the instructions in the Quick Start and SDK Setup. After following all the steps I attempted to run the Hello World sample application and when I run the project, I get the standard "emulator.exe has encountered a problem and needs to close." box. I tried running the avd that I creat...
Respected All.
I know how to use map in application. But i have to use map in particular table row at run time. I have used mapview in my another activity. can i use that map view (by id)
to show map in that row.
Thank You
...
Can we use ACTION_TIME_TICK broadcast every second?
like TIME_TICK
please help
...
I need to create an animation - Flip a view and show another one.
The width of currently shown view is decreased slowly to zero and after that the width of the view-to-be-shown must be increased from zero.
During this time, the height goes from the currently-shown-height to slightly-decreased-height and back again.
How can I achieve t...
Hi,
I'm venturing into startActivityForResult for the first time and I'm running into a problem.
Activity A (ActivityMyList) launches Activity B (ActivityQuickList) waiting for a result:
Intent intentLaunchQuickList = new Intent(ActivityMyList.this, ActivityQuickList.class);
startActivityForResult(intentLaunchQuickList, REQUEST_QUICKL...
Hey everyone. I'm not big into UI programming so this may be an easy thing I overlooked. I am trying have a screen that shows 8 TextView in a 2 column x 4 row table. And, of course, I want the TextViews, that might have different lengths, to be centered. I tried this in a table layout, for obvious reasons but I feel like this is not the ...
I need to make an android App that when the user navigates to my webpage with the browser and clicks on a specific link my App activity gets launched.
I try to achieve this using Intent filters but without success. I followed some samples like Notepad and PhotoStream but nothing works for me.
...
In some code we're trying out, coming from various tutorials, we end up missing R.id, which should be generated in R.java, obviously. We can add it in (by analogy with other "first" Android projects we've done), but as this file is auto-generated, anything we do like that just gets overwritten ultimately.
public static final class id
{
...
As the title says, every time I put a TextView before an EditText element in a LinearLayout, the EditText does not show. When I don't, it does.
I've narrowed the problem down to the TextView's layout_width attribute. If I give it "wrap_content", it works, but doesn't "block" down, and it appears on the same line as the EditText.
<?xml...
Hello, i was wondering what state the actual tabs are after the onCreate state, the onCreate state runs when the tab is launched for the first time, when i select another tab and return back to the previously launched tab, in what state is it in ?
...
Hi all
I'm wondering how to suppress the label on the tabs
I want only an icon
intent = new Intent().setClass(this, Test.class);
spec = tabHost.newTabSpec("test").setIndicator("test",
res.getDrawable(R.drawable.ic_tab_test))
.setContent(intent);
tabHost.addTab(spec);
I have an xml fi...
Hi,
After a successful web view is loaded, now after some processing on the HTML page, I would like to return the control to the main screen. Is this possible in Android?
The control after the webview is launched, is in the browser, so after I make some ajax calls and then get a positive server side message. I would like the control go...
I am trying to download an Android APK file that is output by a php page. I have the following and it works on firefox but not on the phone.
Firefox downloads with an apk extension but has a little firefox icon next to it.
The phone downloads the file with a .html extension, why is this?
UPDATE: Full source
function display($tpl = ...