I'm trying to put together an Android view that has several elements stacked on top of one another. Some of these elements need to have HTML formatting applied, and I plan to stack enough of them that they will run off the screen, requiring a ScrollView. As an example, I would expect the layout to look something like this:
<ScrollView>
...
Yes, I know. It sounds weird, but I can't think of any other way to explain it.
I start Activity MainActivity. It calls startActivity(B). B calls startActivity(C). In C, I have a button with an onClickListener that looks like this:
startActivity(new Intent(getApplicationContext(), MainActivity.class));
When I hit the button, I get to...
Well, the title/subject pretty much covers the issue. Using various examples and and the API on googlecode, it seems like my extended GLSurfaceView class ought to be a good place to work my onTouchEvent inputs but when I try to set variables involving getHeight() and getWidth() when I make the call to my "where did the user touch class"...
In theory, can I write a game for iOS in openGL ES and expect to easily port it to Android? How about from Android to iOS?
...
I have a database with 5 columns, 1 column which is a TEXT with the name of a drawable that is /res/drawable folder.
private void fillData() {
mCursor = db2.getAllAchievements();
startManagingCursor(mCursor);
String[] from = new String[]{achHelper.ROW_NAME, achHelper.ROW_DESCRIPTION, achHelper.ROW_POINTS, achHelper.RO...
Hi,
Can anyone give me the link for (free download) PDF Reader software for SAMSUNG 3310 mobile
...
Hello,
If found many tips about how to stream from classic url link, but nothing about ftp.
Is it the same way to proced ?
Thanks you.
AL.
...
I have a class A which is responsible for fetching data from web services in android and i have a class B which is responsible for creating and rendering List View in android
Now how can i populate data on List View once the data is fetched successfully.
well i have following options but which one is better .. (if someone has anyother t...
In my application I have an activity to add/remove/edit records inside a SortedMap. The activity is implemented as an extension of ListActivity. I have implemented custom ArrayAdapter for the collection items.
Every ListView item (which corresponds to an underlying record) consists of TextViews, EditTexts, and a Button to delete the rec...
Iam new with Android, and writting a small application for tracking call events. Every time i try to bind the listner, the os forces the app to close unexspectly. What did i miss? Here is my code:
package com.example.helloandroid;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.tele...
I want to add a view inside a FrameLayout programmatically and to place it in a specific point within the layout with a specific width and height. Does FrameLayout support this? If not, should I use an intermediate ViewGroup to achieve this?
int x; // Can be negative?
int y; // Can be negative?
int width;
int height;
View v = new View(c...
I am newbie. I'm sorry if i ask ridiculous question.
I want to have generic Adapter class implements ListAdapter . And I have to override some functions of it like getView .
getView function is i think the most important part and it is calling when it is rendering (like asp.net (I think)).
I have written some code in the simplest leve...
I know a tip to turn off 3G connection programmatically is to change its APN(to turn off) and restore(when we want to turn it on). The problem is system setting still display ON even when it can't connect. can anyone know how to turn off the setting then there is no valid APN.
Many thanks :)
...
setBackgroundColor() only takes ints. I don't really know what int equals to what color.
Is there a simple way to convert a string like "#2222FF" on runtime into an int?
...
When i have an ImageButton and a drawable and i want to do something like the Drawer or Twitter where when i press the button and the corner of the image is highlighted over the edge, in drawer its yellow, in twitter its white. Like the one below.
How do i set my drawable without using a lot of images?
...
Hi,
I'm creating a news app for android where news data transfered to clients using xml. The problem is how can i embed news content inside xml ? News content contains html tag. Here is part of my xml data
<title>xxx</title>
<date>xx</date>
<content>html here</content>
...
Hi, i want to develop an Android application that will take the content from internet (server) and present it in the application.
(ex. i take the todays weather forecast, put the numbers in SQLite database or .txt file , put the database/txt file on internet server so when i open the application, the app connects&downloads the database ...
I'm trying to autostart my nightclock app on charging using the following BroadcastReceiver implemented in the onPause() method:
BroadcastReceiver test = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
unregisterReceiver(this);
Intent i = new Intent(context, NightClock....
Why doesn't the following code align with the center?
What do I have to do to fix it?
<AbsoluteLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_gravity="center"
android:id="@+id/parent"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background=...
Hi
I am totally new to Android, and I am following this tutorial. My problem is that the Adroid Emulator does not show the Hello World text, it just displays "ANDROID" on the center of the screen and no buttons works. Is this a know problem, how do I get it fixed?
Thank you
...