So I'm trying to rick-roll my comp. sci. teacher, but I can't get the video to work. Sound is working perfectly. This is my code so far (code, then XML). Can someone steer me in the right direction?
public class RickRoll extends Activity {
MediaPlayer rickroll;
@Override
public void onCreate(Bundle savedInstanceState) {
...
I use the google code from devloper.android.com
I use that application but in the emulator it shows only the crossed lines not the map
so is there any settings in emulator for displaying maps
HelloItemizedOverlay.java
package com.HelloGoogleMaps;
import java.util.ArrayList;
imp...
Hello,
In my application the user selects an image. When the ACTION_GET_CONTENT intent is launched it displays the dialog to select one of the available image viewers installed on the device. However I need the built in Gallery app to be chosen because upon selecting an image it launches the screen to crop the image (same thing that com...
I have this this code for Android which is stuck at the synchronized statement. Even if i remove the process1.wait() i catch the exception.any help is appreciated?
private class LongOperation extends AsyncTask<String, Void, String>
{
@Override
protected String doInBackground(String... params)
{
try
...
I have a text field and when I use the IME (the default one for Nexus One) it doesn't display the auto-suggest line on top of the soft keyboard.
Ironically there are posts here on how to prevent the auto-suggest, but in my case it's the revert, it doesn't show up and it's not clear why.
Here's my layout tag. I'm in API 8.
<EditText
...
I want my activity to appear in the list of activities (gallery. live wallpapers, etc) that you see when you try to choose a wallpaper from the home screen.
Im assuming this is done with intents but cant seem to find one that works. The closest one I can find is:
<action android:name="android.intent.action.ACTION_SET_WALLPAPER>
but t...
As my very first android application, I would like to intercept an SMS
before the default sms application, in order to parse the body of the text and eventually
forward it to the sms application. Is this possible?
Thanks in advance.
S.
...
Is it possible to catch the event that Soft Keyboard was shown or hidden for EditText?
...
I have implemented "Sliding Drawer" in my application using the below XML layout:
(I got this example from androidpeople.com)
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/an...
My application is launched on car docking event, i want to wake up phone (done by system) and unlock screen when i plug my device.
Is it posssible ?
...
Hey guys,
I've got the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<WebView xmlns:android="http://sc...
Hi, I have created four tabs with listview in each. I have been attempting to make the list views clickable, I have used the listview tutorial from Here to create the list view using string.xml and R.array:
The problem is when I use my intent and onItemClickListener I get multiple marker errors, if I play around with the commas bracket...
Hello there,
Can anyone please recommend a training session/course for Android graphics API/OpenGL ES?
Thank you!
...
how can one check the Radio Signal is low or not in android?
...
Hi.problem with mediaplayer.i pause the mediaplayer in one activity and go another activity and i have to play more videos so i have taken 2 mediaplayers.here the first video is played but the second video is not giving "outofmemory".vdec open failed.can any one solve this one.
...
public class SMSWidget extends AppWidgetProvider {
private static final String queryString = "@inpion";
private static final String SMS_RECEIVED = "android.provider.Telephony.SMS_RECEIVED";
@Override
public void onReceive(Context context, Intent intent) {
//get SMS Message
if(intent.getAction().equals(SMS_RECEIVED)){ ...
Hello
In my android application i would like to get Time since when the app is opened.
Initially what i tried was getting the time when the app is loaded from the server and then taking the difference with the current time from the device.But by doing that if the user changes the time then i willnot be getting the actual time.
Its not p...
Hi!
I need to apply different layouts for portrait and landscape orientations of my activity. Besides, I need to show alert if orientation is portrait.
I have specified android:configChanges="orientation|keyboardHidden" in AndroidManifest. I also override onConfigurationChanged method like this:
@Override
public void onConfigurationCh...
Hi all,
I am trying to learn opengl stuff on Android. In the gl.gltranslatef(x,y,z) call, I am shifting my texture by some units in the +ve x direction. But I am unable to find the number of pixels does 1 unit of x belong to?
Here is what I am doing:
I call gl.glviewport(0,0,width,height); // This will set my rectangle with 0,0 as lowe...
Hello Everyone.
I have a TextView that has text Dynamically Added to it. My problem is that when I use gravity for the centering the text, it doesn't move because the width is set to "wrap_content".
What should I do to resolve this issue?
...