Re: [android-beginners] Integrating the timer with my game

2010-07-02 Thread Justin Anderson
U... ok. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Jun 30, 2010 at 5:14 PM, Emmen Farooq

Re: [android-beginners] Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Justin Anderson
Does this question have anything at all to do with Android? -- There are only 10 types of people in the world... Those who know binary and those who don't. --

Re: [android-beginners] Context Menu pops-up twice

2010-07-02 Thread Justin Anderson
What version of Android are you developing for? Where are you setting the context menu listener? Do you by chance do that more than once? -- There are only 10 types of people in the world... Those who know binary and those who

[android-beginners] 95% of Chinese android developer earns not a penn

2010-07-02 Thread Robert Lin
It takes only 3 month for an android game, and 3 to 4 weeks for an android application, so many projects are done by students in China. Most people think their products are cool but nobody pay for them. Chinese people never pay for software. Americans are willing to pay for an app but Chinese not.

[android-beginners] XMPP

2010-07-02 Thread Tsolmon Narantsogt
Hello everyone I am trying to build a small *XMPP* client in *android*. Any ideas on what library i can use? -- Regards Tsolmon -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow

Re: [android-beginners] 95% of Chinese android developer earns not a penn

2010-07-02 Thread Pankaj Sharma
what can i say.. ??? On Fri, Jul 2, 2010 at 12:20 PM, Robert Lin robertli...@gmail.com wrote: and 3 to 4 weeks for an android application, so many projects are done by students in China. Most people think their products are cool but nobody pay for them. Chinese people never pay for software.

[android-beginners] Re: R class breaks on downgrade?

2010-07-02 Thread madcabbage
Do you have three folders for r-*dpi (or *dpi-r, can't remember), * being l, m and h? I had this problem and it's because the lower versions of android don't support the *dpi classes. Copying and renaming to just 'r' worked. On Jul 1, 10:41 am, lucas verdonk lverd...@gmail.com wrote: I had the

[android-beginners] Add ListView to RelativeLayout

2010-07-02 Thread Kritzli
Hi there, I'm having trouble to add a listview to a relativelayout. Ok, not adding itself is the problem. I'm not able to fill it with my data. I receive my data from a query to a webservice where i get a list of books as response. In my listview i want to display just the title of these books.

[android-beginners] Unable to start service

2010-07-02 Thread Bret Foreman
I'm try to start a service like this: try { Intent myIntent = new Intent(); myIntent.setClass(cb.getContext(), SensorService.class);

[android-beginners] SQLiteOpenHelper.getWritableDatabase ambiguous documentation

2010-07-02 Thread Bret Foreman
I'm looking at this page: http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Note that in the section about getWritableDatabase there is the phrase: Create and/or open a database But getWritableDatabase is not calling the SQLiteOpenHelper.onCreate method which

Re: [android-beginners] back button when in ListActivity causes runtime exception

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 11:50 AM, Bret Foreman bret.fore...@gmail.com wrote: When my ListActivity is active and I press the back button (in the Droid simulator), my application stops with a runtime exception. The stack trace looks like this: ActivityThread.performDestroyActivity(IBinder,

Re: [android-beginners] Unable to start service

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 12:01 PM, Bret Foreman bret.fore...@gmail.com wrote: I'm try to start a service like this:                                                try {                                                        Intent myIntent = new Intent();                                      

Re: [android-beginners] SQLiteOpenHelper.getWritableDatabase ambiguous documentation

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 12:09 PM, Bret Foreman bret.fore...@gmail.com wrote: I'm looking at this page: http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Note that in the section about getWritableDatabase there is the phrase: Create and/or open a database

[android-beginners] Re: back button when in ListActivity causes runtime exception

2010-07-02 Thread Bret Foreman
Here's the full trace from the debugger. com.shipmate.MainActivity [Android Application using Studio for Android] DalvikVM[localhost:8610] Thread [3 main] (Suspended (exception RuntimeException)) ActivityThread.performDestroyActivity(IBinder,

[android-beginners] Re: Unable to start service

2010-07-02 Thread Bret Foreman
Intent.setClass needs a Context for the first argument. Replacing cb.getContext with this causes a compiler error. Do you mean I should call getApplicationContext? Here's the full trace: com.shipmate.MainActivity [Android Application using Studio for Android] DalvikVM[localhost:8610]

Re: [android-beginners] Re: Unable to start service

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 1:02 PM, Bret Foreman bret.fore...@gmail.com wrote: Intent.setClass needs a Context for the first argument. Replacing cb.getContext with this causes a compiler error. Do you mean I should call getApplicationContext? No, I mean you should use the proper value of this.

Re: [android-beginners] Re: back button when in ListActivity causes runtime exception

2010-07-02 Thread Mark Murphy
Please see my answer for your other question for some thoughts on how to get a real stack trace. On Fri, Jul 2, 2010 at 12:55 PM, Bret Foreman bret.fore...@gmail.com wrote: Here's the full trace from the debugger. com.shipmate.MainActivity [Android Application using Studio for Android]      

[android-beginners] Re: SQLiteOpenHelper.getWritableDatabase ambiguous documentation

2010-07-02 Thread Bret Foreman
I'm in the DDMS file manager now and can't see anything related to SQLite. Do you know the exact path and filename for the datafle? Note that I discovered that onCreate wasn't being called because I got an exception from insertOrThrow that said no such database. So I'm not really sure if the db

Re: [android-beginners] Re: SQLiteOpenHelper.getWritableDatabase ambiguous documentation

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 1:19 PM, Bret Foreman bret.fore...@gmail.com wrote: I'm in the DDMS file manager now and can't see anything related to SQLite. Do you know the exact path and filename for the datafle? Sorta. /data/data/your.package.name/databases/your.database.name where

[android-beginners] Re: Unable to start service

2010-07-02 Thread Bret Foreman
I fixed the context as you suggested, using MainActivity.this to make sure I have the right scope. The run behavior is unchanged. Here's what appears in logcat. It looks like some sort of timeout when trying to start the service. W/InputManagerService( 52): Got RemoteException sending

[android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Mark
Very helpful response Justin. Its a tool that is part of the SDK. RTFM. On Jul 1, 11:21 pm, Justin Anderson janderson@gmail.com wrote: Does this question have anything at all to do with Android? -- There are only 10 types

[android-beginners] Re: Context Menu pops-up twice

2010-07-02 Thread Bender
Thanks for your reply :) I'm developing for google api 1.5 and I'm setting the context menu once in the onCreate() method by my activity with: registerForContextMenu(getExpandableListView()); I can't see any other place where I'm registring any context menu. -- You received this message

[android-beginners] Re: Application still consumes battery even tough it is closed

2010-07-02 Thread Indicator Veritatis
But what about when the user presses the home key? According to the docs, onPause() is called WHENEVER the application goes invisible, not just on the Back key, not just when another application is launched. So no, it is not just on the Back key. On Jun 26, 9:13 am, mahesh askmah...@gmail.com

Re: [android-beginners] Re: Application still consumes battery even tough it is closed

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 2:32 PM, Indicator Veritatis mej1...@yahoo.com wrote: But what about when the user presses the home key? According to the docs, onPause() is called WHENEVER the application goes invisible, not just on the Back key, not just when another application is launched. So no, it

Re: [android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Justin Anderson
Wow... good luck getting help now. Not sure how often you frequent this google group but RTFM is something that is not used very often here. In fact, the only time I recall seeing this was when I used it once myself... and got privately reprimanded by another user who didn't appreciate me using

Re: [android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Mikey
Cubase (the world renowned music creation software, that retails for $$$), and one of it's *Windows only* DLLs are tools that form part of the Android SDK? Wow! I sure did miss the point of writing phone apps, and I think from the help Justin has given me in the past has shown that he has made

Re: [android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Mikey
Mind you, much better when you read the F as FINE :o) On 2 Jul 2010, at 19:38, Justin Anderson wrote: Wow... good luck getting help now. Not sure how often you frequent this google group but RTFM is something that is not used very often here. In fact, the only time I recall seeing this

Re: [android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Xavier Ducrohet
We do provide some plug-ins for some sound authoring applications in order to create Jet compatible sound file that are then read on device by the Jet engine. Some of it is only supported by MacOS and Windows so if you have a linux SDK you will not see it, but you might see the sample called

[android-beginners] closing multiple activities

2010-07-02 Thread Tollas
I have 3 activities, activityA, activityB activityC. I want to add a menu button NEW SEARCH that will destroy/finish all 3 and start a new activityA. I do not want to finish the activities as they process as I want the user to be able to navigate between the 3 unless the NEW SEARCH menu option is

Re: [android-beginners] Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Xavier Ducrohet
Just FYI, the doc about using the JetPlayer on the device is: http://developer.android.com/guide/topics/media/index.html#jet About the JetCreator tool: http://developer.android.com/guide/topics/media/jet/jetcreator_manual.html It's not because you're not aware of something that it doesn't

Re: [android-beginners] closing multiple activities

2010-07-02 Thread Justin Anderson
Are all three activities developed by you or are B C third-party activities? In which Activity should this button reside? Are B C launched from A or are they launched separately on their own by the user? -- There are only 10

Re: [android-beginners] Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Justin Anderson
* It's not because you're not aware of something that it doesn't exist.* Agreed. Never did I assume that it didn't... I did some searching for EASDLL.dll and couldn't find anything. The post seemed completely off-topic which is why I honestly asked whether this had to do with Android... In all

[android-beginners] Clicking in an AppWidget

2010-07-02 Thread Jake Colman
I know how to write code that would launch an activity when a button is pressed on my appwidget. I would prefer, however, to not dedicate real-estate for a button. Is there a way to launch an activity simply by clicking anywhere in the appwidget? If so, is that a violation of Android

[android-beginners] Re: closing multiple activities

2010-07-02 Thread Tollas
All activities are developed by me. The NEW SEARCH button will be in all 3 activities. B is launched from A. C is launched from B by the user (based on button clicks). On Jul 2, 2:13 pm, Justin Anderson janderson@gmail.com wrote: Are all three activities developed by you or are B C

[android-beginners] Re: Clicking in an AppWidget

2010-07-02 Thread Tollas
You can set any view to be focusable and add an OnClickListener. ScrollView view = (ScrollView)findViewById(R.id.my_scroll_view); view.setFocusable(true); view.setOnClickListener(new OnClickListener(){ public void onClick(View v) {

Re: [android-beginners] Clicking in an AppWidget

2010-07-02 Thread Kostya Vasilyev
Jake, You can set an on-click PendingIntent on some other View (such as a Layout). Whether or not it's a good idea - I guess it depends on how pretty you can make it look :) -- Kostya 02.07.2010 23:19, Jake Colman пишет: Is there a way to launch an activity simply by clicking anywhere in

Re: [android-beginners] Re: closing multiple activities

2010-07-02 Thread Kostya Vasilyev
Tollas, First of all, there is Activity.finish(), which closes the activity. But if the way you want your app to interact with the user doesn't fit the way Activities are managed by Android, perhaps you can consider switching views inside an Activity? You can call setContent at any time to

[android-beginners] Re: Application still consumes battery even tough it is closed

2010-07-02 Thread david2
This is a great discussion. This is probably the most important aspect of Android. It is critical for all developers to properly understand activity lifecycle. From the apps I've seen, most do not. Google should also do a better job of clarifying and documenting this lifecycle with additional

Re: [android-beginners] Clicking in an AppWidget

2010-07-02 Thread Mark Murphy
On Fri, Jul 2, 2010 at 3:19 PM, Jake Colman col...@ppllc.com wrote: I know how to write code that would launch an activity when a button is pressed on my appwidget.  I would prefer, however, to not dedicate real-estate for a button.  Is there a way to launch an activity simply by clicking

[android-beginners] Re: back button when in ListActivity causes runtime exception

2010-07-02 Thread RichardC
For the moment get rid of any try catch handlers (comment them all out). They are swallowing the exceptions and thefore we do not seeing a full stack trace. /Richard On Jul 2, 6:09 pm, Mark Murphy mmur...@commonsware.com wrote: Please see my answer for your other question for some thoughts on

Re: [android-beginners] Re: closing multiple activities

2010-07-02 Thread Justin Anderson
I would probably recommend not trying to change views within an activity. While in theory it could be done it is not really the recommended way and there have been multiple posts with people trying to do this and running into multiple problems. Most of them eventually end up switching to using

[android-beginners] screen resolution 800x480

2010-07-02 Thread Victor Hugo
Hi people, how i do to change the screen resolution of my xml layout i need developer a application with the resolution 800x480 for samsung galaxy someone give a help?? hugs -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try

[android-beginners] Please read: Eclipse 3.6 compatibility issue

2010-07-02 Thread Xavier Ducrohet
Hello everyone, There is a bug in the Eclipse 3.6 plug-ins that provides XML model/editors to our custom editors. This prevent using some custom Android editors such as the string editors. The Eclipse bug database already contain this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108 We

[android-beginners] How change android Home default application (launcher.apk)

2010-07-02 Thread Arun
Hi All, for some specific requirement I am required to change Android Default Home application with my customized Home application Can any one help me out like whr it registers launcher.apk for default home application or how to change that Regards, Arun -- You received this message because