[android-beginners] Re: Stopping background music playback
I am not aware of an android.os.shutUpEverybodyElseButMe() or equivalent. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. P.S.: I hope I'm not revealing too much about myself when I say that I would really enjoy having such a function. In general. On Aug 12, 4:07 am, Hiro hero200@gmail.com wrote: I am developing a multimedia application that can play audio or video file. When other application is playing music in the background and I start my application to play multimedia file, both music and multimedia file are played simultaneously. Is there a standard android API that stops other app playing music? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: RuntimeException -
I don't see an error in your call stack, did it not mention one? the problem could be anything, but when I read a call stack that says, SDK can't start running an app perhaps your SDK was corrupted. I suggest reinstalling it. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 9:01 am, phil.pellouch...@gmail.com wrote: Hi All, Everything was going great, then all of a sudden this morning, I am getting this -- ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord) line: 2194 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord) line: 2284 ActivityThread.access$1800(ActivityThread, ActivityThread$ActivityRecord) line: 112 ActivityThread$H.handleMessage(Message) line: 1692 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 3948 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 782 ZygoteInit.main(String[]) line: 540 NativeStart.main(String[]) line: not available [native method] I have not changed anything, and yesterday everything was working fine. I set a breakpoint at the first line in my main and it never hits it. Any ideas? -phil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ksoap2
I heartily recommend ksoap2-android : http://code.google.com/p/ksoap2-android/ Caveat: I've not actually used it. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 5:48 am, AndyAndroid43 leebooks.academic...@talktalk.net wrote: I want to download org.ksoap2 for Android in order to design a soap envelope to access a published web service. Can anyone tell me the best / latest version of ksoap2 for Android and where to go to download it ? I'm using the Android plug-in with Eclipse Ganymede. I get rather confused with all the versions of ksoap2 that seem to be available and don't know which is the one to use. Is there a .zip version ? Thanks in advance for your help Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to display icon in status pane.
http://developer.android.com/reference/android/app/NotificationManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 4:11 am, Ramesh Anandhan anandhan.ram...@gmail.com wrote: Hi, I am trying to display an icon in status pane. How I can do this? Regards, Ramesh A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Operating Systems supported by Android Apps
Also FWIW, Ubuntu plans to be able to run Android apps in their upcoming Karmic Koala release this fall. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 9:33 am, midtoad stewart.midwin...@gmail.com wrote: Maybe I'm missing something, but... your Android apps run on the Android operating system. While there are some experimental releases of 'live Android' CDs that allow you to boot up a regular PC into the Android OS, up to now the only commercially available devices that run Android are cellphones. Soon however there will be Android-powered 'smartbooks', i.e. devices that are somewhere between netbooks (small, internet-focused notebooks) and cellphones. On Aug 11, 9:01 am, Maxood maqs...@salsoft.net wrote: What operating systems are supported by Android Operating Systems? On what platforms we can deploy Android apps --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Simulate a tap
dispatchTouchEvent() http://developer.android.com/reference/android/view/View.html#dispatchTouchEvent(android.view.MotionEvent) Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 8, 8:43 am, Liviu Ungureanu smartli...@gmail.com wrote: Is posible to simulate a tap over an edittext?thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android projects only in Java ?
With the NDK, you still need to use Java to access the Android API. But you can access the API with scripting languages using android- scripting:: http://code.google.com/p/android-scripting/ Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 7, 6:20 pm, WaltFromBavaria walter.sperm...@gmx.net wrote: Hi there, I have a possibly stupid question: I started with Android SDK and Eclipse and created a 'hello world' application. My question is: Is it possible to create an Android project in C++ ? I noticed there is an Android NDK that enables you to code in C in a cumbersome manner. The Android API is only in Java, right ? Regards, Walter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Payment for service
No, it's not. Have you considered PayPal? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 7, 8:36 am, jbrohan jbro...@gmail.com wrote: Hello Could someone please point me to a discussion of payment for service in the Android environment. The application is medical, where the user sends a picture to the service (a real human nurse) and gets an opinion in return. The nurse needs to get some money out of the deal. The whole thing is a bit casual so people can sign up send a pic and make a payment and that's it. Or it could go on for months as the patient gets better. The amount per transaction is about $20.00. There are various models available. For example a person could buy a 5-pack or they could have free service for some reason or other. Or they could receive an email telling them that the opinion is available and they need to fork over the $$$. I suppose we could just make and email an invoice. Anyone have experience of the payment rate for these invoices? Obviously I'm looking for the simplest most universal payment method. Is this available in Google Market? Thanks John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Why XML to define layouts/components?
If your question is why even use XML to layout UI? the answer is because some people like it better; they find it easier and cleaner; other's prefer to do it in Java. As Teal said, you don't have to use XML if you don't like. I at first found the XML layout method foreign, and the plethora of approaches daunting. I would have benefitted from a tutorial that first focused on only Java and then broadened to XML, but I survived and now find XML UI layout to be useful, sometimes. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 6, 4:25 pm, Teal teal.b...@gmail.com wrote: You can construct the UI programatically without using XML. Follow the Hello World tutorial (http://developer.android.com/guide/tutorials/ hello-world.html), and note how the UI is constructed in Construct the UI section, and notice how it is alternatively implemented using XML in the Upgrade the UI to an XML Layout section. On Aug 6, 12:29 pm, Casper Bang casper.b...@gmail.com wrote: My original first post doesn't seem to get approved, so let me try again. :) I'm wondering whether other Android newbies than me find the empathy on XML layout troublesome? I realize we should strive to separate view from logic and that XML is hip and trendy, but is it really necessary for these relatively simple Android applications? XML layouts involves more files and what feels like a lot of magic (type unsafe) properties, and makes samples harder to follow/ type. It also can't be especially efficient to use findViewById (whether BFS or DFS based) constantly? It sort of reminds me of the differences between JSF and Wicket, where the former was designed by people sitting in an ivory tower while the latter was designed for and by people at the ground, comfortable with Java. Which also leads me to wonder how come Android uses the old type- unsafe int enum pattern and also, why fluent-interfaces/method- chaining isn't used in greater extend? /Casper PS: You might want to fix the URL's to the group charter and FAQ as they currently go into 404. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ADC2
I recommend you look at the rules here: http://code.google.com/android/adc/ And wait for Google to announce when contestants can submit their entries, hopefully soon. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 7, 12:54 am, jaaaelpumuki jaaaelpum...@gmail.com wrote: Hi guys! I'm not sure about how to participe in the contest. So the only thing i need it's to publich my app in the market? or do i have to do a special thing? is there a web site to upload adc2 apps? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hello WebView demo is broken (solution here)
Excellent. You should post this fix back to the Android codebase. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 6, 8:23 am, midtoad stewart.midwin...@gmail.com wrote: The Hello WebView demo and documentation on the Android developer site (http://developer.android.com/guide/tutorials/views/hello- webview.html) is broken. Here are the required fixes to get it to work properly: main.xml: change wrap_parent to fill_parent, like so: ?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=fill_parent android:orientation=vertical WebView android:id=@+id/webview android:layout_width=fill_parent android:layout_height=fill_parent / /LinearLayout == in HelloWebView.java, you need to add a few imports that aren't mentioned in the docs: import android.view.KeyEvent; import android.webkit.WebView; import android.webkit.WebViewClient; In the OnCreate method, change the following code: - from this: webview.setWebViewClient(new WebViewClientDemo()); - to this: webview.setWebViewClient(new HelloWebViewClient()); If you prefer, here's the complete HelloWebView.java code: package org.example.hellowebview; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.webkit.WebView; import android.webkit.WebViewClient; public class HelloWebView extends Activity { /** Called when the activity is first created. */ WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webview = (WebView) findViewById(R.id.webview); webview.setWebViewClient(new HelloWebViewClient()); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl(http://www.google.com;); } private class HelloWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } } public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) webview.canGoBack()) { webview.goBack(); return true; } return super.onKeyDown(keyCode, event); } } = Hope this helps! [thanks to Mark Murphy's webkit source code fromhttp://commonsware.com/Android/ for some examples that helped me pin down the errors in Google's docs]. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ListView Item lost focus event
ListView subclasses AdapterView, which has setOnItemSelectedListenter: http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener) Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 6, 5:03 am, Martin Obreshkov manig...@gmail.com wrote: Hi when i select item in listview and then scroll it the selected item in no more highlighted. Can e register listener for this event ( when the item come unselected ). -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: A complete newbie
You go, Dvisionj! tinyang is right about the two things you need to learn: Java language and then Android platform. You don't need to learn Linux to do Android programming. You also don't have to study every Java subject there is (such as Swing or Servlets), just get comfortable with the language basics before moving on to Android. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 4, 9:31 am, tinyang tiny...@earthlink.net wrote: Here are a few good places to learn Java: http://www.javapassion.com/ http://freshbrain.org/group/learn-java-programming-learning-path Good luck! -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Dvisionj Sent: Tuesday, August 04, 2009 5:25 AM To: Android Beginners Subject: [android-beginners] A complete newbie Hi all OK, some are going to roll their eyes at the naivety at this post...gotta start somewhere! I wish to get into developing apps for Android, but I'm not sure where to start. I have basic unix/linux skills and I'm wondering what I should study next. I've no experience of Java so I'm guessing that should be it. If so, what are the best book/resources on the subject? Or should I start with C ? I'm not underestimating the huge task ahead, I realise there's a massive learning curve, but dammit, I'm capable and up for it! Thanks for reading. No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 8/3/2009 5:56 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Change an app
You are right, activity takes more resources than view. But the difference between them is not significant enough for it to be your primary concern. If you only have two screens, then rather than focusing on optimizing memory and CPU, I suggest you make the code as simple as possible. So instead of two views in one activity, your code will be cleaner if your two screens are separated into two activities. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 1, 3:04 am, Michael Leung michaelchi...@gmail.com wrote: Thanks for that. Previously, I got some misunderstand. I think Activity will use more resources , so that is more prefer to switch view rather than Activity. On Sat, Aug 1, 2009 at 12:34 AM, Balwinder Kaur (T-Mobile) balwinder.k...@t-mobile.com wrote: It should be just fine to create a separate Activity for each screen and use Intents to invoke each Activity. From the official documentation http://developer.android.com/guide/topics/fundamentals.html : An activity presents a visual user interface for one focused endeavor the user can undertake. For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions. A text messaging application might have one activity that shows a list of contacts to send messages to, a second activity to write the message to the chosen contact, and other activities to review old messages or change settings. Though they work together to form a cohesive user interface, each activity is independent of the others. Each one is implemented as a subclass of the Activity base class. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 30, 9:03 pm, Michael Leung michaelchi...@gmail.com wrote: I am a new to Android as well, but as far as I know, changing the view is lighter than an activity. On Fri, Jul 31, 2009 at 12:41 PM, tinyang tiny...@earthlink.net wrote: Well, I was hoping to make the only existing activity one of many activities the user could choose from the main menu screen eventually. That is why I was thinking to add a main menu screen from which I could use buttond to add sccess to the other activity choices for the app. I'm open to suggestions though. -- *From:* android-beginners@googlegroups.com [mailto: android-beginn...@googlegroups.com] *On Behalf Of *Michael Leung *Sent:* Thursday, July 30, 2009 9:29 PM *To:* android-beginners@googlegroups.com *Subject:* [android-beginners] Re: Change an app should you change the view? instead of changing to another activity On Fri, Jul 31, 2009 at 11:51 AM, tinyang tiny...@earthlink.net wrote: I have an app I wrote for Android. It has only one activity (one java file) which is the only screen. I would like to add a main menu screen which has a button that can take the user to the already existing activity. What is the best way to do that? Thanks. -- J P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Accessing images using content provider
The MediaStore content provider might be what your looking for. There are a number of tutorials that use it, for example this one: http://androidsamples.blogspot.com/2009/06/how-to-display-thumbnails-of-images.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 2, 1:06 pm, graphiko pickup.da...@gmail.com wrote: How do I find the images stored on a phone and open them in my own application? I've used a content provider for another task before, but don't understand how to use the content provider provided for accessing stored images. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Writing specific apps for clients
1. Yes. 2. You can consume web services with Android, which has built-in webkit, JSON, XML, etc., and for which you can get third-party libraries for protocols like SOAP. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 2, 3:09 pm, Roman roman.baumgaert...@t-mobile.com wrote: Android is a very powerful platform which supports several radio interfaces. For your communication to a backend server Wifi as well as 3G are pretty fast. Regarding the communication to the server in the backend you might have to resolve NAT traversal problems but otherwise than this I don't see any limitations (besides that you are running on an embedded device). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 1, 3:03 am, Grubber gra...@onemansweightloss.co.uk wrote: Hi all, I am new to android development and mobile development in general. I am interested in writing an application for a private client (not for public release). In brief the application will be used by feild staff and will communicate with a webservice back at base. My questions are as follows... 1. Is Android a suitable platform for this kind of work. 2. Can you consume web services from Android this way? Thanks in advance Graham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Adding objects to a canvas
The onDraw() function is the phone's way of asking you so how do you want me to draw this canvas, from scratch? If you say draw a circle there!, you get one circle. If you want it to draw two circles, your CustomDrawableView needs to tell it to draw two different circles every time onDraw() is called, for example with two different drawables. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 3, 6:30 am, Graham gxt...@gmail.com wrote: Hi, I am new to the android developing world and have what I think is a very simple question. I have created a circle on a canvas and drawn it successfully. I now wish to add another circle to this already existing canvas in a different position. I have defined my x and y as arguments I pass to custom drawable view but when I try and get another circle drawn it just replaces the one that was already present. How do I keep the first circle and add on a second? (My code below does not show trying to add another circle, it is simply what works with creating a single colour circle). Thanks G package com.image; import android.app.Activity; import android.os.Bundle; public class image extends Activity { /** Called when the activity is first created. */ private CustomDrawableView mCustomDrawableView; //private CustomDrawableView mCustomDrawableView2; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //last argument 1 = green, all others = red mCustomDrawableView = new CustomDrawableView(this, 150, 40, green); setContentView(mCustomDrawableView); } } package com.image; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.OvalShape; import android.view.View; public class CustomDrawableView extends View { private ShapeDrawable mDrawable; public CustomDrawableView(Context context, int x, int y, String Colour) { super(context); //int x = 80; //int y = 90; int width = 50; int height = 50; mDrawable = new ShapeDrawable(new OvalShape()); if (Colour == green){ mDrawable.getPaint().setColor(0xff74AC23);//green } else if (Colour == red) { mDrawable.getPaint().setColor(0x);//red } mDrawable.setBounds(x, y, x + width, y + height); } protected void onDraw(Canvas canvas) { mDrawable.draw(canvas); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Porting A Game from Java2d...
I recommend you look at the Canvas class, and port your calls to Java2D to use Canvas on Android. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 3, 9:29 am, ExO_PoLiTiX sumbody_told...@hotmail.com wrote: Hi, I am completely new to programming on mobile devices. I have a basic game which I created using eclipse and java, mainly using Java2D to create the game. Does anyone know how I would go about porting this to be able to be used with android? Should it be reasonably simple? I tried copy and pasting the majority of it but it said I couldnt use java2d with the android plug in. Any help is much appreciated, ExO --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: text colour
Do you want to change the color of the TextView items in the list view? In that case use: http://developer.android.com/reference/android/widget/TextView.html#attr_android:textColor To change the divider color use http://developer.android.com/reference/android/widget/ListView.html#attr_android:divider There are programmatic alternatives to these if you want to change colors at runtime. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 3, 8:10 am, W QX wong@gmail.com wrote: How do I change the text colour of list view and the space between each item? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: listview activity not stopping
From the log, you appear to have a null pointer exception, although that could be a red herring. What happens when you step through it? Do you get the same problem for all list items? Looking at your code, you might want to consider simplifying it with a switch statement, like: switch (position) { case SHOULDER: startActivityForClass (GymExercise.this,ShoulderViewController.class); break; case BICEPS: startActivityForClass (GymExercise.this,BicepsViewController.class); etc. Why do you call lv.bringToFront() for position 0? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 27, 3:16 am, ranjit ranjit.pate...@gmail.com wrote: i have face this error,i cant found the solution please help.Application is based on listview Activity.when u click on one listview item then it ll go to another listview.second activity start but ther is some error please help yr...this error .. --- --- -- 07-27 15:38:48.117: WARN/dalvikvm(741): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-27 15:38:48.127: ERROR/AndroidRuntime(741): Uncaught handler: thread main exiting due to uncaught exception 07-27 15:38:48.147: ERROR/AndroidRuntime(741): java.lang.RuntimeException: Unable to stop activity {com.vigyaapan.Exercise/com.vigyaapan.Exercise.GymExercise}: java.lang.NullPointerException 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.ActivityThread.performStopActivityInner (ActivityThread.java:2905) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.ActivityThread.handleStopActivity(ActivityThread.java: 2948) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.ActivityThread.access$2100(ActivityThread.java:112) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1708) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.os.Handler.dispatchMessage(Handler.java:99) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.os.Looper.loop(Looper.java:123) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at java.lang.reflect.Method.invokeNative(Native Method) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at java.lang.reflect.Method.invoke(Method.java:521) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at dalvik.system.NativeStart.main(Native Method) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): Caused by: java.lang.NullPointerException 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.Activity.performStop(Activity.java:3575) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): at android.app.ActivityThread.performStopActivityInner (ActivityThread.java:2902) 07-27 15:38:48.147: ERROR/AndroidRuntime(741): ... 11 more --- - here is my program --- package com.vigyaapan.Exercise; import android.app.ListActivity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.util.AndroidRuntimeException; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class GymExercise extends ListActivity { DBExercise dbExercise = new DBExercise(this); Cursor cursor; String aryListMainMenu[]; int intGetSelectedItem = 0; protected ListView lv; public void onCreate(Bundle savedInstanceState) { try { super.onCreate(savedInstanceState); dbExercise.openDataBase(); dbExercise.getTricepDipImage(); aryListMainMenu = dbExercise.displayMainMenu(); startManagingCursor(cursor); if(dbExercise != null) dbExercise.close(); setContentView(R.layout.main); lv = (ListView)this.findViewById(android.R.id.list); setupListView(); } catch(NullPointerException e) { e.printStackTrace(); } } private void setupListView() { try
[android-beginners] Re: Time and resources needed to develop app?
You might get a better result if you described your app, then we might describe various approaches and their relative merits. Unless of course your idea is secret, in which case describe an app that may be similar to it in scope and content. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 26, 4:23 am, GBC gcro...@gmail.com wrote: I am currently putting together a business plan for an app. Whilst I am into technology I am not a programmer, so I don't know much about how hard it is for coders to develop for Android. For those of you who have developed apps already, I was hoping you might be able to shed some light on it for me. Ideally if you could reply about the following it would by very useful: (a) the type of application (b) the length of time it took to go from from initial idea, through development and testing, to completed app (c) the number of coders working on it Thanks for any help you can offer and keep up the good work on Android! P.S. Any programmers based in Sydney Australia feel free to get in touch! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to convert XML into java code ?
Can you include the crash log? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 26, 3:44 am, RainBow drvir...@gmail.com wrote: Hi, I am trying to use the LinearLayout class directly in my code , rather than using XML. If I use the XML code, it works fine. However, if I supply my own code in OnCreate() of ListActivity-derived class, it crashes. Here is the XML code and corresponding Java code that I wanna write. Could someone tell me whats wrong with my code? // XML Code : This works just fine LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:drawSelectorOnTop=false/ /LinearLayout // Corresponding Java Code : this crashes at setContentView() call: LinearLayout ll = new LinearLayout(this); ll.setOrientation(LinearLayout.VERTICAL); ListView myTextView = new ListView(this); int lHeight = LinearLayout.LayoutParams.FILL_PARENT; int lWidth = LinearLayout.LayoutParams.WRAP_CONTENT; ll.addView(myTextView, new LinearLayout.LayoutParams(lHeight, lWidth)); setContentView(ll); //-- this line crashes Thanks, ~Viren --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: hi.
First you need to install Java. You can download the Java SE Development Kit here: http://java.sun.com/javase/downloads/index.jsp On Jul 23, 12:15 pm, nguyen thang thangk4...@gmail.com wrote: i run command here for list Virtual device. but error. C:\Andriod\android-sdk-windows-1.5_r2\toolsandroid list targets 'java' is not recognized as an internal or external command, operable program or batch file. why ? don't run android list targets? please help me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Mulittouch in android?
Looking at the ADC2 Terms and Conditions, I didn't see any rules against using internal APIs. To the contrary, it encouraged Effective Use of the Android Platform--Does the application take advantage of Android's unique and compelling features, such as built-in location- based services, accelerometer, and always-on networking? That being said, Google has consistently slapped the virtual wrists of people asking about internal APIs on this list, so I wouldn't recommend it. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 22, 11:36 pm, Android developer4andr...@gmail.com wrote: hi dave. 10x so.. were I to use it for an app that i intend to put for ADC2, would that'll be a no no? cheers On Jul 22, 8:40 pm, Dave Bordoley bordo...@gmail.com wrote: Short answer is that the device driver supports it but the functionality is not exposed in the Java API. The hero most likely uses a hack see:http://groups.google.com/group/android-platform/browse_thread/thread/... for the gruesome details. Dave On Wed, Jul 22, 2009 at 7:41 AM, Androiddeveloper4andr...@gmail.com wrote: Hi, Is the multitouch now enabled in android? - I've seen a hero with multitouch and zoom gesture..is it enabled in the new devices? 10x --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: hi
adb push http://developer.android.com/guide/developing/tools/adb.html#move Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 22, 4:02 am, prasad NSRS prasad.9...@gmail.com wrote: Hi i want to know the information regarding the deployment of the user application(i.e my own application) on to the nokia internet tablet(N810) and on which i loaded with the Android OS (on N810) please guide me...i hope anyone will help me in this regard...reply me as early as possible... -- Regards, prasadNSRS +91 9393858787 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Is it possible to override Android's green and red buttons?
It depends on what you mean by 'override'. You can't change the way Android initiates and receive calls, but you can use those buttons in your own app, with Activity.onKeyDown: http://developer.android.com/reference/android/app/Activity.html#onKeyDown(int,%20android.view.KeyEvent) The KeyEvent code is KEYCODE_CALL for the green button, and KEYCODE_ENDCALL for the red. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 20, 1:03 pm, Romain Guy romain...@google.com wrote: No you cannot. On Jul 20, 2009 12:52 PM, szantaii szant...@gmail.com wrote: Hi, My question is that is it possible to override the physical green and red buttons on Android which by default are used to accept and end calls. For example, in my own activity those buttons won't serve as accept call, deny call or end call but they can function for something other. Is this possible on Android today? I'm currently using Android SDK 1.5 r1. Thanks in advance. -- szantaii --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hello MapView tutorial
Unable to resolve superclass of HelloMapView could mean anything, but did you make sure to subclass HelloMapView from Activity? Is Eclipse properly set up with the SDK? This may not be relevant, but the HelloMapView tutorial uses the deprecated MapView.GetZoomControls() API. To fix it: Step #7 – No longer needed Step #8 – The “ZoomControls mZoom;” variable is no longer needed Step #9 – Replace three lines of code with mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); Step #10 – No longer needed Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 21, 1:39 am, Neilz neilhorn...@googlemail.com wrote: Here's my Logcat output... there is an error, but it doesn't mean very much to me! 07-21 08:39:03.489: WARN/dalvikvm(728): Class resolved by unexpected DEX: Lcom/test/android/stuff/HelloMapView;(0x43597748):0x192368 ref [Lcom/google/android/maps/MapActivity;] Lcom/google/android/maps/ MapActivity;(0x43597748):0x1883f0 07-21 08:39:03.500: WARN/dalvikvm(728): Unable to resolve superclass of Lcom/test/android/stuff/HelloMapView; (41) 07-21 08:39:03.510: WARN/dalvikvm(728): Link of class 'Lcom/test/ android/stuff/HelloMapView;' failed 07-21 08:39:03.520: DEBUG/AndroidRuntime(728): Shutting down VM 07-21 08:39:03.540: WARN/dalvikvm(728): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-21 08:39:03.549: ERROR/AndroidRuntime(728): Uncaught handler: thread main exiting due to uncaught exception 07-21 08:39:03.589: ERROR/AndroidRuntime(728): java.lang.IllegalAccessError: cross-loader access from pre-verified class 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.DexFile.defineClass(Native Method) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.DexFile.loadClass(DexFile.java:193) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2186) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.os.Handler.dispatchMessage(Handler.java:99) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.os.Looper.loop(Looper.java:123) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.reflect.Method.invokeNative(Native Method) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.reflect.Method.invoke(Method.java:521) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.NativeStart.main(Native Method) Any ideas? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hello MapView tutorial
Hi Iñaki, in your case it appears you are not connected to the internet, although there could be any number of related reasons the app is not able to resolve the hostname. That kind of error Unknown host is a standard internet error you could get on any platform/ language. Except Perl. Perl would probably say something like $IP! h//. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 21, 12:28 pm, iñaki inaki.s...@gmail.com wrote: Hi Yusuf and in my case, what is problem with the log 07-21 07:44:50.383: INFO/InetAddress(719): Unknown hostwww.google.com, throwing UnknownHostException 2009/7/21 Yusuf T. Mobile yusuf.s...@t-mobile.com Unable to resolve superclass of HelloMapView could mean anything, but did you make sure to subclass HelloMapView from Activity? Is Eclipse properly set up with the SDK? This may not be relevant, but the HelloMapView tutorial uses the deprecated MapView.GetZoomControls() API. To fix it: Step #7 – No longer needed Step #8 – The “ZoomControls mZoom;” variable is no longer needed Step #9 – Replace three lines of code with mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); Step #10 – No longer needed Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 21, 1:39 am, Neilz neilhorn...@googlemail.com wrote: Here's my Logcat output... there is an error, but it doesn't mean very much to me! 07-21 08:39:03.489: WARN/dalvikvm(728): Class resolved by unexpected DEX: Lcom/test/android/stuff/HelloMapView;(0x43597748):0x192368 ref [Lcom/google/android/maps/MapActivity;] Lcom/google/android/maps/ MapActivity;(0x43597748):0x1883f0 07-21 08:39:03.500: WARN/dalvikvm(728): Unable to resolve superclass of Lcom/test/android/stuff/HelloMapView; (41) 07-21 08:39:03.510: WARN/dalvikvm(728): Link of class 'Lcom/test/ android/stuff/HelloMapView;' failed 07-21 08:39:03.520: DEBUG/AndroidRuntime(728): Shutting down VM 07-21 08:39:03.540: WARN/dalvikvm(728): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-21 08:39:03.549: ERROR/AndroidRuntime(728): Uncaught handler: thread main exiting due to uncaught exception 07-21 08:39:03.589: ERROR/AndroidRuntime(728): java.lang.IllegalAccessError: cross-loader access from pre-verified class 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.DexFile.defineClass(Native Method) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.DexFile.loadClass(DexFile.java:193) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2186) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.os.Handler.dispatchMessage(Handler.java:99) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.os.Looper.loop(Looper.java:123) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.reflect.Method.invokeNative(Native Method) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at java.lang.reflect.Method.invoke(Method.java:521) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 07-21 08:39:03.589: ERROR/AndroidRuntime(728): at dalvik.system.NativeStart.main(Native Method) Any ideas? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups
[android-beginners] Re: Question
Oh, that id. So I believe you are referring to the function onListItemClick: protected void onListItemClick(ListView l, View v, int position, long id) Android calls this function when the user clicks on a list item, and sets the id value. Under the hood, when the user clicks on a spot in the ListActivity UI, Android takes the y value of the touch point, calculates which row position that corresponds to, and looks up which item id that position corresponds to, and calls onListItemClick(). ListActivity is handy like that. Does that answer your question? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 19, 5:02 pm, Jose Ayerdis joseayer...@gmail.com wrote: no how does android know that id is the id of the datarow??? where it is assign. 2009/7/19 Yusuf T. Mobile yusuf.s...@t-mobile.com If I understand your question, you are asking how does Android know you want to launch the NoteEdit activity, right? In the code, you see the line Intent i = new Intent(this, NoteEdit.class); and then a few lines below, startActivityForResult(i, ACTIVITY_EDIT); So variable i knows you intend to do something with the NoteEdit class, and startActivity() uses that information. Does that answer your question? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 18, 1:46 am, Jose Ayerdis joseayer...@gmail.com wrote: I was reading the NotepadV2 app the following code... super.onListItemClick(l, v, position, id); Cursor c = mNotesCursor; c.moveToPosition(position); Intent i = new Intent(this, NoteEdit.class); i.putExtra(NotesDbAdapter.KEY_ROWID, id); i.putExtra(NotesDbAdapter.KEY_TITLE, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_TITLE))); i.putExtra(NotesDbAdapter.KEY_BODY, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_BODY))); startActivityForResult(i, ACTIVITY_EDIT); And wonder how does the method set the correct id, i mean i never told it who was the id, how does it know can somebody explainme??? -- Atte [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com -- Atte [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Question
If I understand your question, you are asking how does Android know you want to launch the NoteEdit activity, right? In the code, you see the line Intent i = new Intent(this, NoteEdit.class); and then a few lines below, startActivityForResult(i, ACTIVITY_EDIT); So variable i knows you intend to do something with the NoteEdit class, and startActivity() uses that information. Does that answer your question? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 18, 1:46 am, Jose Ayerdis joseayer...@gmail.com wrote: I was reading the NotepadV2 app the following code... super.onListItemClick(l, v, position, id); Cursor c = mNotesCursor; c.moveToPosition(position); Intent i = new Intent(this, NoteEdit.class); i.putExtra(NotesDbAdapter.KEY_ROWID, id); i.putExtra(NotesDbAdapter.KEY_TITLE, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_TITLE))); i.putExtra(NotesDbAdapter.KEY_BODY, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_BODY))); startActivityForResult(i, ACTIVITY_EDIT); And wonder how does the method set the correct id, i mean i never told it who was the id, how does it know can somebody explainme??? -- Atte [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hello Tutorials - Gallery Example
Jack's version works for me without adding the c. to obtainStyledAttributes. But if I move the ImageAdapter class out of the HelloGallery class, then I need to add c.. Perhaps that's what you did? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 17, 10:34 am, Neilz neilhorn...@googlemail.com wrote: Aha... problem solved. Your code snippet needs to be changed from: TypedArray a = obtainStyledAttributes To... TypedArray a = c.obtainStyledAttributes ...where c is the reference to the Context. Thanks! On Jul 17, 4:05 pm, Jack Ha jack...@t-mobile.com wrote: What's the error message? obtainStyledAttributes() is defined in android.content.Context You might consider cleaning the project and rebuild. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 16, 2:21 pm, Neilz neilhorn...@googlemail.com wrote: Hi Jack, thanks for your response. It still doesn't compile... what is the method obtainStyledAttributes ()? This doesn't resolve. On Jul 16, 4:15 pm, Jack Ha jack...@t-mobile.com wrote: Create a file called attrs.xml and place the following in it: ?xml version=1.0 encoding=utf-8? resources declare-styleable name=default_gallery attr name=android:galleryItemBackground / /declare-styleable /resources Then replace the code in ImageAdapter with the following: TypedArray a = obtainStyledAttributes (R.styleable.default_gallery); mGalleryItemBackground = a.getResourceId( R.styleable.default_gallery_android_galleryItemBackground, 0); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 16, 6:30 am, Neilz neilhorn...@googlemail.com wrote: Hi all. I tried thisexample(http://developer.android.com/guide/ tutorials/views/hello-gallery.html) and found the compilation problems which having done some searching I see that many other people have found the same thing. No one seems to have found a solution to this. It would be great if someone involved could update thisexample, or provide clear instructions on how to get it working - as it would be a nice feature to try out. The problem stems from the 'styleable' attribute of the following line: public ImageAdapter(Context c) { mContext = c; TypedArray a = obtainStyledAttributes (android.R.styleable.Theme); mGalleryItemBackground = a.getResourceId( android.R.styleable.Theme_galleryItemBackground, 0); a.recycle(); } Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Creating an avd?
Sure, depending on what floats your boat, here is a useful set of video tutorials: http://eclipsetutorial.sourceforge.net/totalbeginner.html and here is the screenshot flava: https://eclipse-tutorial.dev.java.net/eclipse-tutorial/part1.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 15, 9:25 am, stephen rigg stevie...@gmail.com wrote: Thank yu sooo much for yur assistance. Everything went smoothly. One last request cn yu snd me a link of a website, that can show me how to use eclipse bcuz the android developer website is a little complicated for a beginner On Jul 14, 2009 7:54 PM, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: Did you send this via twitter? I'm not perceptive enough to grasp what is happening in your description, but I recently wrote up an extended set of steps, including with regards to the AVD. I hope it helps. How to install the Android SDK in two dozen or so easy steps (based onhttp://developer.android.com/sdk/1.5_r1/index.html) To write Android programs, you will need to download and install three programs: Java, Eclipse and the Android SDK. 1. Java: this is the computer language you will be using to write programs on Android. Go tohttp://java.sun.com/javase/downloads/index.jsp. Click on the Download button next to the Java SE Development Kit. On the next page, select your platform (probably Windows), click on the I agree to the blah blah blah checkbox (after carefully reading the agreement of course), and click on continue. Download the file download link on the next page. Once it's downloaded, double-click on the file to install it. One point on installing files: if this is your computer, you can probably install anywhere, and most programs on Windows get put in the C:\Program Files directory. However, if this is for example a school computer, you may not be able to put the program there, in which case you can put it somewhere else, like the My Documents folder. Now you have to tell your PC where Java is, because for some reason the Java installer doesn't. On WindowsXP, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add a semicolon and the full path to the SDK subdirectory tools directory to the path. It will be something like: ;C:\Program Files\java\jdk6\bin 2. Eclipse: this is the program you will use to program in Java on Android. Go tohttp://www.eclipse.org/downloads, click on Eclipse IDE for Java Developers. It will take to the next page where you click on the green arrow to download. Unlike most modern software products, Eclipse has not have a fancy installation procedure. To install it, simply extract the zip file into some director on your computer. This will create a directory named eclipse. The executable program file is located in this directory and is called eclipse.exe. On Windows systems, it is a good idea to create a shortcut to this executable on your desktop. To do this, right-click on the eclipse.exe file and select Send To → Desktop. Eclipse stores all its files in a directory called its workspace. When Eclipse is run for the first time, it will ask you where you want the workspace to be placed. After this, you should see the Welcome to Eclipse 3.0 page. When you see this, you are ready to proceed to the next step. 3. Android Software Development Kit (SDK) Go tohttp://developer.android.com/sdk/1.5_r1/index.html. Select the the version for your computer. Your platform is probably Windows. When that file is downloaded, unzip it somewhere, such as C:\Program Files. It will then be in C:\Program Files\android-sdk-something, the something being the version number, like windows-1.5_r1. You have to tell your computer where you put it, because for some reason it can't figure that out itself. On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double- click on Path (under System Variables). Add a semicolon and the full path to the SDK subdirectory tools directory to the path. It will be something like: C:\Program Files\android-sdk-something\tools Then tell Eclipse where to find it: a. Start Eclipse, then select Help Software Updates b. In the dialog that appears, click the Available Software tab. c. Click Add Site... d Enter the Location:http://dl-ssl.google.com/android/eclipse/ If you have trouble aqcuiring the plugin, try using http in the Location URL, instead of https (https is preferred for security reasons). Click OK. e. Back in the Available Software view, you should see the plugin listed by the URL, with Developer Tools nested within
[android-beginners] Re: Jad Parameter Equilent in Android
There is no direct equivalent, such as in the Android manifest, afaik. But you may benefit from looking into http://netmite.com/android/index.html , which claims it lets you convert existing j2mes into apk upload to Android Market. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 16, 2:46 am, chinna Durai chinnadur...@gmail.com wrote: Hi, In J2ME there is a possibility to include a parameter in JAD file and then read it back using getAppProperty() method. Is there an equilent way to do in Android? I am converting an application from J2ME to Android where i need to do this. -- Thanks and Regards Chinnadurai M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hello Views Tutorial
You could put several activities in one project and specify the main activity in the manifeset file, but making a new project for each is easier. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 15, 1:52 am, Neilz neilhorn...@googlemail.com wrote: Hi all, stage 2 of my initiation and I'm on the HelloViews tutorials. http://developer.android.com/guide/tutorials/views/index.html Do I have to create each of these with an entirely new Eclipse project? Or is there a clean way to put another Activity class into an existing project (like the HelloAndroid) and set up multiple run targets...would that work? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: running android applications without using eclipse
You can use any IDE, or the command line, although Eclipse is the recommended way to develop an Android application according to http://developer.android.com/guide/developing/other-ide.html , which then goes on to tell you how how to not use Eclipse. See also http://developer.android.com/guide/developing/tools/index.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 13, 12:17 pm, shweta shweta.shind...@gmail.com wrote: Do we hav any way of running android applications without using eclipse..thru commad line or somthing Plz giv the procedure if yes... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Creating an avd?
Did you send this via twitter? I'm not perceptive enough to grasp what is happening in your description, but I recently wrote up an extended set of steps, including with regards to the AVD. I hope it helps. How to install the Android SDK in two dozen or so easy steps (based on http://developer.android.com/sdk/1.5_r1/index.html) To write Android programs, you will need to download and install three programs: Java, Eclipse and the Android SDK. 1. Java: this is the computer language you will be using to write programs on Android. Go to http://java.sun.com/javase/downloads/index.jsp . Click on the Download button next to the Java SE Development Kit. On the next page, select your platform (probably Windows), click on the I agree to the blah blah blah checkbox (after carefully reading the agreement of course), and click on continue. Download the file download link on the next page. Once it's downloaded, double-click on the file to install it. One point on installing files: if this is your computer, you can probably install anywhere, and most programs on Windows get put in the C:\Program Files directory. However, if this is for example a school computer, you may not be able to put the program there, in which case you can put it somewhere else, like the My Documents folder. Now you have to tell your PC where Java is, because for some reason the Java installer doesn't. On WindowsXP, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add a semicolon and the full path to the SDK subdirectory tools directory to the path. It will be something like: ;C:\Program Files\java\jdk6\bin 2. Eclipse: this is the program you will use to program in Java on Android. Go to http://www.eclipse.org/downloads , click on Eclipse IDE for Java Developers. It will take to the next page where you click on the green arrow to download. Unlike most modern software products, Eclipse has not have a fancy installation procedure. To install it, simply extract the zip file into some director on your computer. This will create a directory named eclipse. The executable program file is located in this directory and is called eclipse.exe. On Windows systems, it is a good idea to create a shortcut to this executable on your desktop. To do this, right-click on the eclipse.exe file and select Send To → Desktop. Eclipse stores all its files in a directory called its workspace. When Eclipse is run for the first time, it will ask you where you want the workspace to be placed. After this, you should see the Welcome to Eclipse 3.0 page. When you see this, you are ready to proceed to the next step. 3. Android Software Development Kit (SDK) Go to http://developer.android.com/sdk/1.5_r1/index.html . Select the the version for your computer. Your platform is probably Windows. When that file is downloaded, unzip it somewhere, such as C:\Program Files. It will then be in C:\Program Files\android-sdk-something, the something being the version number, like windows-1.5_r1. You have to tell your computer where you put it, because for some reason it can't figure that out itself. On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double- click on Path (under System Variables). Add a semicolon and the full path to the SDK subdirectory tools directory to the path. It will be something like: C:\Program Files\android-sdk-something\tools Then tell Eclipse where to find it: a. Start Eclipse, then select Help Software Updates b. In the dialog that appears, click the Available Software tab. c. Click Add Site... d Enter the Location: http://dl-ssl.google.com/android/eclipse/ If you have trouble aqcuiring the plugin, try using http in the Location URL, instead of https (https is preferred for security reasons). Click OK. e. Back in the Available Software view, you should see the plugin listed by the URL, with Developer Tools nested within it. Select the checkbox next to Developer Tools and click Install... f. On the subsequent Install window, Android DDMS and Android Development Tools should both be checked. Click Next. g. Read and accept the license agreement, then click Finish. h. Restart Eclipse. Now modify your Eclipse preferences to point to the Android SDK directory: i. Select Window Preferences... to open the Preferences panel. j. Select Android from the left panel. k. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory. l. Click Apply, then OK. Finally, tell it about the Android Device Manager, which helps simulate a real device on your computer when testing your work: m. Select Window Android AVD Manager n: Enter a name such as “my_avd” in the Name field o: Select “Android 1.1 – 1.1” as the Target p: Enter the full path of the sdcard image provided in exercise 1
[android-beginners] Re: Fastboot procedure
Hello Dinesh, welcome to Android and good luck with your project and your search for information. I recommend you ask your question at http://groups.google.com/group/android-porting in order to reach a group with experience closer to your specific needs. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 12, 7:31 am, Dinesh dinesh.s...@gmail.com wrote: Hi , I'm new to Android.This is regarding Fastboot implementation on Android. I'm developing Fastboot for my target, through usb.I would like to explain my understanding regarding fastboot,pls correct me If I'm wrong ? What I understand about fastboot is that it's the communication between server and client via usb connectivity. Here Server is the software which would be running on host PC(I'm using Windows PC) and client on the target. Also I understand that for host side as server I need to installhttp://dl.google.com/android/android_usb_windows.zip. For client side I need to integrate my usb gadget driver on linux kernel I have few doubt's regarding the client side. 1. what class driver should I to integrate for USB gadget ( is it Mass storage class ?).And as what type of device is usb cleint getting recognized as(like pendrive or debugging device etc, this I'm not clear). 2. Does it require adb interface integrated with the driver? 3. Already I have usb driver for my target.What extra I need to do to make the fastboot come up. It would be great if anybody can help me in this regard. Thanks in advance. Dinesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Trouble with comparisons
This is an infamous Java pitfall. Use String.equals() instead. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 11, 5:52 am, jackoc...@googlemail.com jackoc...@googlemail.com wrote: I am writing a simple check of values held by two string variables, these two variables are created by returning a string from a method that checks a remote database on the internet, and the other is a string value taken from strings.xml stringa = text.getText().toString().toUpperCase(); temp = FetchDBInfo(stringa); //returns a string, on no dbinfo returns 'Empty' String empty = getString(R.string.empty); // R.string.empty is the string 'Empty' if (temp == empty) { temp = No information available for + stringa; } else { // Do other stuff } Even by outputting the values of temp and empty which are identical, (created the return to be the same), in the DDMS and are both string variables or eclipse would highlight an error about comparing different variable types, the program all ways goes to the else part!! I have wasted two hours on this, what am I missing!! With thanks Jacko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: finding open-source community-contributed Android projects
Grope here: http://code.google.com/search/#q=android And click on the Project Hosting tab. Due to the open nature of open source, it won't be a comprehensive list of all Android projects. But tricorder is there! Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. I'm having a really hard time finding open-source community-contributed Android projects athttp://code.google.com/ After some groping, I got here:http://code.google.com/p/apps-for-android/ For example if I google Android tricorder I get here:http://code.google.com/p/tricorder/ but I can't seem to be able to browse other community-contributed android projects, or see a list of all such projects. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Make an Emergency Call
I have good news for you: http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL calls a number. I also have bad news for you. The documentation at that link states, Note: this Intent cannot be used to call emergency numbers. Applications can dial emergency numbers using ACTION_DIAL, however. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 9, 12:22 pm, Ankit Shah ankit9...@gmail.com wrote: From my Android application I would like to make an Emergency Call 911. Any information on this would be greatly appreciated. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Install Android on my pocket pc
The short answer is: yes, if you have access to the device bootloader as well as device drivers that Android can use. The other short answer (at no additional cost!) is: there is a wonderful forum for precisely these questions: http://groups.google.com/group/android-porting Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 8, 11:39 am, tiger2wander tiger2wan...@gmail.com wrote: Hi, I'm new to android too, I have some experience with compile android's kernel for my pocketpc: O2 XDA IIs (blueangel). On Jun 29, 11:33 pm, xda lioneljl...@gmail.com wrote: Hi, I'm new toAndroid have heard its open source, but am not very clear on a few things. -Is it possible to download the sources compile it for an Intel Xscale processor as used by most pocket pc devices? == Of course, you can re-compile the android's source code for almost device -If the above is true, is it possible to flash the device toAndroid to make it the default OS? == AKA, flash the device such as blueangel, himalaya... is not possible at least now as I known. Usually I have using HaRET to take device boot into linux and use SD card (of course, you can put your linux to ram) for more information about HaRET go here:http://www.handhelds.org/moin/moin.cgi/HaRET I'd be interested in customizing the OS for HTC devices like theBlueangel(XDA IIs) Universal (XDA exec). Thanks, /xda --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: interacting with phone
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(tel: + phoneNumber + ; + dtmfSequence)); Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 9, 2:16 am, Edward edward.michael...@gmail.com wrote: Hi, I want to do the following; dial a number (or a contact), wait for the conference call automated speech to run for a few seconds (5+/-), then have the application or script punch in the conference code and the # key to access the conference call. Any one able to assist in example code and\or point me in the right direction? Ed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: android open database
Ah, the inspiration and heartbreak of tutorials for a moving target. The vagaries of coding on the bleeding edge of technology like a leaf upon on the wind of our collective mind. Where was I? Oh right, that API was removed, I think in 1.5. Now we have openOrCreateDatabase: http://developer.android.com/reference/android/content/Context.html#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory) Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 8, 9:14 pm, xventure sothavi...@gmail.com wrote: Hi, import java.io.FileNotFoundException; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class DBHelper { class Tuple extends Object { public String name; public String mobile; public String address; public String email; public String notes; public long rowId; } private SQLiteDatabase db; public DBHelper(Context ctx) { try { db = ctx.openDatabase(AddressBook, null); } catch (FileNotFoundException e) { try { db =ctx.createDatabase(AddressBook, 1, 0,null); db.execSQL(DATABASE_CREATE); } catch (FileNotFoundException e1) { db = null; } } } private static final String DATABASE_CREATE = create table addressbook (_id integer primary key autoincrement, + name text not null, + mobile text not null, + address text not null, + email text not null, + notes text null +);; public void close() { db.close(); } } i got this tutorial somewhere from the net, but at the line: db = ctx.openDatabase(AddressBook, null); i got an error: the method openDatabase(String, null) is undefined for the type Context Please help, Thanks, Xve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to contact device with ADB from Windows NT
The system requirements for the Android SDK on Windows are Windows XP (32-bit) or Vista (32- or 64-bit). But to quote Henry Ford, Obstacles are those frightful things you see when you take your eyes off your goal. So to set ADBHOST or any environment variable on Windows NT, follow the instructions in this link: http://support.microsoft.com/kb/100843 Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 10, 3:34 am, Chenny chenny...@gmail.com wrote: Hi All, I know we can easy contact devide with ADB from Linux PC. such as: $ export ADBHOST=xx.xx.xx.xx $ adb kill-server (you must make sure adb path is set) $ adb shell But how to do it from Windows NT? How to set ADBHOST from windows? Thanks very much! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] FreshBrain
Hello dear Android Beginners. There is a wonderful Android tutorial over at FreshBrain at https://freshbrain.org/group/building-applications-g1-mobile-phone-learning-path . Disclaimer: T-Mobile played a role in making it available, thus its wonderfulness. FreshBrain describes itself as The Technology Exploration Platform for Teens. This sounds much more impressive than scholastic computing website, which is why I'm in engineering and not marketing. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can we use gcc for compilation in emulator
There are any number of reasons that might not be working; it sounds like your .so is not in the path. The other issue is that Android does not use the usual glibc, but instead a replacement called 'bionic'. If you are writing a native application, I would recommend looking into the upcoming 'native development kit' for that. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 1, 10:19 pm, ani anish198519851...@gmail.com wrote: Which all compilers are supported in emulator?Actualy i have created native library in .c file and created .so file using gcc and when i am trying to load this .so file in my java file i am getting unable to load .so not found library problem(i have placed .so file in system/ lib using push command) Can i not use gcc compiler or do i need to use some other compiler i tried with arm-eabi-gcc also which is provided in prebuilt directory under toolchain path. Kindly give an example or tell me how to go about it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Idea ?
Android does not support Push in the SDK. Internally, it has a push feature called 'tickle', but that is not supported for third party development. Without knowing more about your app, I'm not sure a local webserver will address your problem. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 30, 5:49 am, Adem KARAKOLLU karako...@gmail.com wrote: How can i response from the server without request. I can send httpRequest but i want to server will be able to send any response whenever it want. (Server will be able to push to handset) Must i install web server to my android ? Any idea? -- ADEM KARAKOLLU --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: start
Hello Pablo, you've come to the right place to ask this question. Android uses the Java programming language. If you have not learned Java yet, you may start here: http://java.sun.com/docs/books/tutorial/ If you are familiar with Java, you can learn about Android here: http://developer.android.com/guide/index.html Buona fortuna. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 27, 9:46 pm, Pablo Vagliati jvagl...@gmail.com wrote: hi, I will begin to break into Android. As you recommend I start? -- Ing. Pablo Vagliati 0054 03858 15 44 9012 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Launch the listview in a new seprate screen
Start a ListActivity: http://developer.android.com/reference/android/app/ListActivity.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 24, 4:51 am, rohit rohitmandi...@gmail.com wrote: Hello Experts, I have fetched the contacts from the phone and displayed it on the ListView. But now would like to launch the ListView at new screen on a button click. Please help me.. Regards, Rohit Mandiwal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Is learning Java directly on the Android possible or a good idea?
Sun's online Java tutorial is also good. As you can imagine, opinions vary. The benefit of learning on the device is that if you find it more interesting than learning on a PC, learning is easier. The drawback is that the last two steps of the code/compile/run cycle take a little longer. I recommend you learn the common basics (control flow, classes, etc.) of Java on a PC, but just before you go into PC- specific APIs (like UI), then move to the device. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 21, 1:17 am, Pyrofyr frankbfernan...@gmail.com wrote: I'll start by explaining my situation, I'm interested in learning to develop for mobile phones. My initial interest was the iPhone, however I do not own a Mac, and due to my dislike for them I decided to hold off pursuing that course of action. Currently I have my eyes set on two platforms, the BlackBerry and Android, however both use Java which I am not familiar with. I have some knowledge of C/C++(Had just started on classes where I left off) but no knowledge of Java at all. I've got the Android SDK working fine, and have started doing the hello world exercise and whatnot, but my problem now is,when working with Android, how much changes from traditional Java? Am I better off learning the exercises in plain old Java and then moving over to working in Android and learning the differences, or CAN I (I would rather) learn Java while also learning Android. I saw that there were a few books, but I'm not sure that they are suited for beginning Java in Android. Hoping someone can point me in the right direction. I've grabbed a few books on Java, and I'm reading through them (not skimming!) in all of my spare time. I'm first reading Java for Dummies. I read that it's recommended to read Head up Java as a starting place. Since my programming knowledge is still very limited, would this be the best place to start? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Choosing the Right Book
Whatever book you get, make sure that it covers 1.5 (Cupcake), as the APIs changed enough that it matters. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 15, 4:32 am, Mahou mahou...@hotmail.com wrote: Alright thanks Golem, I will be sure to check out the book. I just didnt know which one to get, all but these two had reallt poor reviews. On Jun 15, 6:30 am, golem haemmerl...@gmail.com wrote: Hi Mahou, I have the Hello, Android book and I'm very happy with it. It got me up and running quickly and I still use it every now and again to refresh on some concepts that I don't use often. Good for beginners! I can't say anything about the other book though. On Jun 15, 5:54 am, Mahou mahou...@hotmail.com wrote: Hi, I have enough for one book and wanted to know your opion on which on to get. The choices are: Hello Android http://www.amazon.com/Hello-Android-Introducing-Development-Platform/... or Unlocking Android http://www.amazon.com/Unlocking-Android-Frank-Ableson/dp/1933988673/r... Any tips? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: 2D game Development
In fact Canvas is probably your best bet for a 2D game. It has all the functions (such as drawing shapes, sprite and layers) that you should need. OpenGL is more versatile and faster, but is much more work for the developer, so I would recommend starting with Canvas. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 12, 6:40 am, chinna Durai chinnadur...@gmail.com wrote: Hi, I am trying to develop a 2D game in Android. I could see that it is possible to use SurfaceView and also View class. Which one would be better to have a good animation and multilevel puzzle game? Thanks in advance. -- Thanks and Regards Chinnadurai M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Game Development with Multiple Levels
It depends on how much common logic the different levels share. For example, if on the first level the player is fighting green sprites on low platforms, but blue sprites on green platforms, then just a set of level-describing files will suffice. If there is a small amount of level-specific knowledge (i.e, the blue sprites sing and dance), then the file can reference a class or function in your monolithic code. On the other hand, if each level is totally different (i.e., level 1 is a FPS and level 2 is an RTS), then you can describe each level in code rather than in XML files. Incidentally, XML has its advantages and disadvantages, as discussed (among other things) here: http://code.google.com/events/io/sessions/CodingLifeBatteryLife.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 10, 2:32 pm, Justin B. Burris justinbbur...@gmail.com wrote: Hello all! I'm currently working on a game which will consist of multiple different levels. Forgive me if this seems rudimentary! I'll use the original Sonic the Hedgehog as an example. In sonic, you have various screens, each with different level designs for the player to traverse. These levels consist of tiles which are arranged to aid, or hinder the player in his attempt. The question I have is how do you go about creating these levels in code? And what is the best way to do so? I've currently come up with 1 : Have each level to be a class, and load up the proper level depending on player progress. 2 : Store the level information in a file or in XML, and load it up depending on player progress. Both of these solutions do not seem to be ideal, and it seems there could be a better way to develop this sort of system. What are your thoughts on a situation such as this? If this would be better suited in Android Developers, I can move the topic there, but it seems to be a more basic aspect for the platform. Thank you for any insight you may offer! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: 2d Game Development
You will mostly use the Canvas class: http://developer.android.com/reference/android/graphics/Canvas.html For one object to pass over another, you use drawing layers, which Canvas supports. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 9, 9:56 pm, vinny.s...@gmail.com vinny.s...@gmail.com wrote: Hi Everyone, This is Vinod I'm trying to do a 2D game in android please can any one guide me how to write it actually the game specifications are one level game one object should move automatically there are some obstacle passeing this object should over come this obstacles how can i do thins please guide me and one more doubt i need to create a sprite object how can i do this thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: SMS
Hi Janardhan, if you want a client and server both on the phone, use an Activity for the former and Service for the latter. Otherwise, if you want to the server to be accessible by any phone, then one way to do this is to use Google's App Engine. Your client application can then communicate with the server using some protocol. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 9, 9:32 pm, janardhan vuruvakilina...@gmail.com wrote: Hi Balwinder Kaur, Actually i want to do my application as follows i want seperate code for client and server in this scenario if client sends a message to server ,server will receive the message ,after that in server it will give reply to client. (its just like chatting) client hi server will receive hi and server replies hi client will receive hi and client will reply h r u? like that i want. i understand that one wht u send the link. pls reply to this On Jun 9, 8:50 pm, Balwinder Kaur (T-Mobile) balwinder.k...@t- mobile.com wrote: Hi Janardhan, Could you please provide more details about what you are looking to do in your client-server application ? If you are looking to do SMS messaging in Android, here is a link that may helphttp://mobiforge.com/developing/story/sms-messaging-android You may also check out the SmsManager Class athttp://developer.android.com/reference/android/telephony/gsm/SmsManag... and how to use the Emulator for that athttp://developer.android.com/guide/developing/tools/emulator.html Hope this helps. If not, please be slightly more explicit about what it is that you are specifically looking for, so that we may be able to assist you. Balwinder Kaur Senior Mobile Software Engineer Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 9, 2:17 am, janardhan vuruvakilina...@gmail.com wrote: hi this is janardhan i am trying one application i.e.,client and server application. can any one guide me how to write it in android. Thanks and regaards jana --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Installing the android SDK on my new PC
You also need to set up the Run Configuration. One way to do this is by right-clicking on the project in the left pane, and selecting Run As - Run Configurations. In left side of the resultant popup dialog, click on the little icon for new launch configuration (you will find it above where it says type filter text), to create a run configuration. On the right side of the dialog, type in your project name and then select the Target tab and pick one of the AVDs in the list there. Hope this helps. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 6, 2:08 am, Troy Borja tbo...@systemacorp.com wrote: Did the same procedre Windows-Preferences-Android and selected the directory for 1.5. The 3 build targets showed, but when building a New Android project the SDK target list choices are still empty. On May 28, 3:04 pm, SarahEZiegler sarah.e.zieg...@gmail.com wrote: I was having this problem too and followed another thread to this solution: I've selected the android sdk directory in Windows-preferences- android So I went and selected the android SDK directory in Windows-preferences- android and then went back and tried to start a new project again and now there were three checkboxes where none had been there before. And once I entered 2 into Min SDK Version one of the checkboxes autoselected. So no more An SDK target must be stpecified, and I could move on. Hope this helps. -Sarah E Ziegler On May 14, 10:02 am, Raphael r...@android.com wrote: On Tue, May 12, 2009 at 2:38 PM, Johan Degraeve johan.degra...@gmail.com wrote: I'm having the same problem on a Mac : when trying to create a new android project there's an error message on top 'An SDK Target must be specified'. The project wizard should have a list with 3 SDK targets to choose from: android 1.1, 1.5 and google apis. Click one of the checkboxes. R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Game Shooting A Object
This is the Canvas class I was referring to: http://developer.android.com/reference/android/graphics/Canvas.html That will be where you start with 2D graphics on Android. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 2, 10:48 pm, Desu Vinod Kumar vinny.s...@gmail.com wrote: What i need exactly means i need to know is there any framework for this 2d graphics in android Thanks in advance On Tue, Jun 2, 2009 at 12:29 PM, vinny.s...@gmail.com vinny.s...@gmail.comwrote: Hi every one I'm stater in game Development. Can any Body Helps Me how to develop an application like shooting An object thanks in advance -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09916009493 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How can i display message in thai language ?
To display Thai (or any alphabet that does not ship with your phone) in your app, you need two things: (1) put your strings in unicode, preferably not hard-coded in-place. Read up on Java internationalization if you don't know about it. (2) the font to be installed. My G2 doesn't seem to support Thai, so I'm guessing you need to include it with your app. For font fiddling, see http://whyandroid.com/android/177-fun-with-fonts.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 1, 11:15 pm, Freshman csato...@gmail.com wrote: Hi guys, In my application i need to display some messages in thai language. can anyone suggest me how can i display thai language in my application ? any info/suggestion would be greatly appriciated. many thanks, Freshman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Game Shooting A Object
I will assume that you already know about application development in general, and Android development in particular. If not, there are some Android tutorials that can help you with those. For shooting an object, your application will need to do three things: 1) listen for the user pressing a particular button or tapping on a screen. FYI, some Android phones don't have QWERTY buttons just built in, just the on-screen soft keyboard. 2) draw the elements on the screen, such as spaceship, laser and Martian. There are several ways to do this, probably using the canvas class is the easiest: http://www.designerandroid.com/?cat=3 3) collision detection: this means using math to calculate when the laser hits the Martian. If you haven't already seen it, I would also recommend this fine article: http://www.rbgrn.net/content/54-getting-started-android-game-development Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 1, 11:59 pm, vinny.s...@gmail.com vinny.s...@gmail.com wrote: Hi every one I'm stater in game Development. Can any Body Helps Me how to develop an application like shooting An object thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Urgent!!!!!!!!!Audio recording..
What have you tried so far? Have you looked at http://developer.android.com/guide/topics/media/index.html ? There is also a tutorial, although the API may have changed a bit with cupcake: http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ Other problems people have encountered are with enabling the audio in the first place. How this is done depends on whether you are using Ubuntu, Mac or Windows, but first make sure you can record audio with any app on your PC. I myself will neither confirm nor deny that neglecting to ascertain that I plugged the frickin' microphone into the right frickin' port has on occasion been the source of some aggravation. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 25, 3:56 am, vineeth Desai vineeth.desa...@gmail.com wrote: Hi, Is audio recording works on android sdk simulator? If yes please let me know how to code that? Warm Regards, Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to send MMS
The Android emulator supports sending SMS, but not MMS. Sorry. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 21, 6:02 am, andu alemf...@yahoo.com wrote: I am doing a project to use MMS for data collection which enables users to send MMS and store it in database. And I developed J2ME form for that purpose. But to test my system I plan to use emulator which is capable of sending MMS and which enables me to integrate (install) by J2ME form. But I don't know how to do that in android. Therefore my question is: 1. Does android support sending and receiving MMS? If yes, How can I use this feature? 2. Can I integrate my J2ME application in the emulator? if yes, How can I use it? Please help me. I am new to android, I really need help. Andu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how write simple chat application on android
Have you looked at androidchat? http://code.google.com/p/androidchat/ It is written for Android 1.0, which means it may need some modification to be compatible with the Android 1.5 API. You will find some more network client tutorials here: http://www.androidnotes.com/android-tutorials/ Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 20, 10:50 pm, ssfss nakhaie.1...@gmail.com wrote: Hi. I'm very beginner in android programming and my english is very bad!. I not realy understand explanation of this email :simple chat application on android. I find the good cod of chatAndroid in this link :http://androidchat.googlecode.com/svn/trunk/androidchat/ But I want to learn how writing client_server in android. If it is can,someOne send me a full of code of simple chat application on android.or send me a part of code that shown connection of server and client. I hope you undrestand me! PLZ help! -- fatemeh nakhaie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Differentiating between Simulator v/s. Real device
For an Android to question whether its lives in a simulation, it could detect the number of sensors (should be zero) http://developer.android.com/reference/android/hardware/SensorManager.html Or query various ids like the IMEI: http://developer.android.com/reference/android/telephony/TelephonyManager.html Caveat: these can be handy for development, but not rigorous enough to put into a production application. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. P.S.: or you could tell it to take the red pill and see how deep the rabbit-hole goes. On May 7, 10:39 pm, aa aagarwa...@gmail.com wrote: How do I differentiate between simulator and real device? I need to change service URLs depending on if the app is running on simulator v/ s. Real device. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Accessing a server through wifi
Do you mean you are able to ping the server from PCs on the same subnet as the G1, but not able to access the website from the G1? If so, can you see the website from the PCs? Are you entering the same URI on the phone as on the PCs? Is it possible to look at the server log to see if it sees an HTTP request from the phone? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Apr 25, 10:24 am, Lakshmie Narayan Viswanathan lakshmie.nara...@gmail.com wrote: I want to access a server from my G1 phone which is in the same wifi network. Using other nodes in the network, I found out that I am able to ping the server but I am unable to access the web page. Please help - Naan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Why does this give an error.
I got the same illegal modifier for strSheikResp error from Eclipse when I put it inside a function, but no error when I put it inside a class but outside of a function. static final String[] strSheikResp = new String[]{open sesame}; Where did you put the declaration? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Apr 15, 4:57 pm, fadden fad...@android.com wrote: On Apr 15, 4:37 pm, Kevin J. Brooks bear123434...@comcast.net wrote: I took out the key word static and fixed the problem. You now have a different string array in every instance of the class, instead of one for all instances of the class. How does Eclipse feel about: static final String[] strSheikResp = {test1, test2}; ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---