<b>NetworkWorld: </b>"Is the Android truly open source? Yes. And no. And sort of. When it comes to the cutthroat world of mobile telephony, it's not quite that simple."
Hi I've made a small game for iPhone that I also want to run on Android but I'm having problems setting up Cocos2D-X for Android.
I've downloaded and installed Android SDK and NDK (under my "/Users/username/Android").
Installed all necessary packages under SDK and created an Emulator.
Copied Cocos2D-x under "/Users/username/cocos2dx".
Installed…
I am trying to inflate an ImageView that scales a Drawable that I can display in a GalleryView. My code to inflate the view seems to work fine, except that the attributes of the ImageView are not applied. Specifically, the inflated ImageView does not have the width/height that I set for it via the android:layout params in XML.
Can someone show…
This is my activity class i want to add one textview to TableRow but i cannot show the textview in TableLayout.
Activity
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup.LayoutParams;
import android.widget.TableLayout;
import…
Hello, new to Android. I get the following message in the debugger perspective:
The source attachment does not contain the source for the file ListView.class
You can change the source attachment by clicking the change attached Source Below
Needless to say the app errors. I've tried to change the source attachment to the…
Hi,
Im having a strange feeling, but let me first introduce myself as a software developer.
I started to program when I was still a kid, I had about 10 or 11 years. I really enjoy my work and never get bored from it. It's amazing how somebody could be paid for what he really likes to do and would be doing it anyway even…
Hi everyone,
I'm wondering why the Motorola Milestone with 2.1-update1 behaves differently from the Emulator or e.g. the Nexus One. I am trying to exit my app with:
@Override
protected void onPause() {
if(mayDestroyActivity) this.finish();
super.onPause();
}
This works well on either Emulator or Nexus One.…
I'm getting a very weird error.
I have 2 activities. On both I'm getting the SharedPreferences using MODE_PRIVATE (if it matters) by sp = getPreferences(MODE_PRIVATE); on each activity's onCreate()
I'm calling sp.getBoolean(IntroActivity.SHOW_INTRO, true)
On the IntroActivity this works fine. But when I'm trying in…
I have been using some nice tutorials on drawing graphics on my android. I wanted to also add in the cool gesture demo found here:
http://developer.android.com/resources/articles/gestures.html
That takes these lines of code:
GestureOverlayView gestures = (GestureOverlayView) findViewById(R.id.gestures);…
EDIT: Related question here:
Multi theme support in android app
I'm attempting to get a user-chosen theme and feel like I'm frustratingly close. Defining the theme in AndroidManifest.xml works as it should, but (as best I can tell) can't change based on app preferences:
<application
…
Hi
I am getting this message on emulator when I run my android project:
The application MediaPlayerDemo_Video.java (process com.android.MediaPlayerDemo_Video) has stopped unexpectedly. Please try again
I am trying to run the MediaPlayerDemo_Video.java given in ApiDemos in the Samples…
I'm trying to use Environment.(...) in my Xamarin app. It complains that
"Environment is an ambiguous reference between System.Environment and
Android.OS.Environment"
I can fix it by using the fully qualified name System.Environment.(...) but not…
I'd like to use a custom dialog built over an AlterDialog to obtain login info from the user.
In this manner I first use the layoutinflater to get the layout and then put it in the AlertDialog.Builder.setView() method.
LayoutInflater inflater = (LayoutInflater)…
I created an Android project using Eclipse (under Windows FWIW) and let Eclipse create the keypair during the Export Android Application process. I successfully used Eclipse to make a signed release build that is now on the Market.
Now I want to now use…
I was wondering if its possible to set multiple styles for different pieces of text inside a TextView. For instance, I am setting the text as follows:
descbox.setText(line1 + "\n" + line2 + "\n" + word1 + "\t" + word2 + "\t" + word3);
Now, is it…
I guess many people already read this article:
Using your own SQLite database in Android applications: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/#comment-12368
However it's keep bringing…
[Android]
Hi, everyone.
Is it possible to receive SMS message on appWidget?
I saw android sample soucrce(API Demos).
In API Demos, ExampleAppWidgetProvider class extends AppWidgetProvider, not Activity.
So, I guess it is impossible to regist…
I have moved most of my Android code into a separate Java package. I want to run some JUnit4 tests however I can't seem to get a MockContext working.
I have extended MockContext() but have not done anything with it yet as I don't know what…
Hi everyone,
Recently myself and a small group of friends became interested in developing a game for a mobile platform. Originally we considered the iPhone but none of us use macs, so we decided Android would be a more realistic platform to…
I'm trying to add ScoreNinja, the global high score system, to my Android game, and it works fine when I load it on my phone, but when I release it into the wild, I got crash reports saying:
java.lang.RuntimeException: Can't create handler…
Hey Guys, this one is a quick Question:
What is the best (or THE) way to change my SQL Express 2008 (with advance...) installation to a 2008 Developer edition?
I need to keep the databases, along with the logins and so on.
I need to…
I am trying to learn Android development, so I downloaded Eclipse Galileo and the Android SDK. However, whenever I start Eclipse, I get the error message "Failed to parse the output of adb version." In the Console/DDMS pane, the debug…
In my first post on packages I described what a package is and how it can be used. I also started explaining some of the considerations that should be taken into account when determining how to arrange your packages. The first is when…
Hey guys,
My company purchased Visual Studio Pro 2008 last year, which had a 'free' copy of SQL Server Developer, which I have been using for development.
We are wanting to upgrade the copy of developer edition to enterprise (As we…
What interview questions should people expect as a junior C and C++ developer? Code questions or more of theory? Solutions in pseudo-code or in C code?
Maybe I'm misinterpreting the word "junior", but I have no idea what would…