[android-beginners] HelloMapView Tutorial not working
Hi, im trying to launch the HelloMapView tutorial from the Android Dev Guide. I copy-pasted the things from the tutorial, but i always get a ClassNotFound Exception. Heres the detail message: com.hellomapview.HelloMapView in loader dalvik.system.PathClassLoader com.hellomapview is my package name, HelloMapView is the MapActivity Class. What could be the reason for this? I'm trying to get this working since 2 days. Regards, Daniel --~--~-~--~~~---~--~~ 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: HelloMapView Tutorial not working
I just tried to make it a lot more easier than the tutorial to find the error. This is my main class: package com.map.maptest; import com.google.android.maps.MapView; import android.app.Activity; import android.os.Bundle; public class MapAppTest extends Activity { private MapView mv = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); this.mv = new MapView(this, "mykey"); //setContentView(this.mv); } } When i uncomment the line: this.mv = new MapView(this, "mykey"); no error occurs and the app is starting normally. With this line i get an InvokationTargetException with a Verify Error with this detail Mesage: com.map.maptest.MapAppTest I really dont know where to search. I added the uses-library tag to the Manifest, so the Mapview class should be available. Regards, Grinarn --~--~-~--~~~---~--~~ 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: Passing messages from BroadcastReceiver to Activity
just add that extra bundle to intent & start new activity with this extra.inthe activity just retrive the bundle you added to it. On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder wrote: > > Hi, > > I'm developing an application with android.telephony.gsm that is > supposed to process incoming SMS messages. > > I've figured out that I need to have a BroadcastReceiver for receiving > the incoming messages. But how am I supposed to pass the received > messages from the BroadcastReceiver and on to my Activity? > > Thanks in advance, > > Anders Feder > > > --~--~-~--~~~---~--~~ 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 receive incoming call automatically?
Can you please tell me how can we do this? I have an idea to inject answer key when an incoming call arrives from a particular number.is it correct way? On Sep 25, 11:59 pm, "Balwinder Kaur (T-Mobile USA)" wrote: > Intercepting an incomingcallis not supported officially from the > SDK, > which does not mean that folks are not using hacks to do just the > same, as many apps on the market will show you. > > Balwinder Kaur > Mobile.Software.Development > ·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 Sep 25, 5:25 am, Nemat wrote: > > > > > Hi frnds > > > is it possible in Android Ifcallis received from user defined > > number, it should be picked up automatically with no sign and speaker > > should be turned on. Its history must be deleted. > > > need urgent help > > > Thanks in advance > > Nemat- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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: Issue while encapsulating a TableLayout in a ScrollView.
ok. i tweaked the layout in a different way and got it to work. thanks. On Sat, Oct 3, 2009 at 1:18 PM, Android Development wrote: > Hello everyone, > When i encapsulate a table layout in a scroll view, i am unable to see the > vertical scroller on the screen (that the user will hold and drag to > actually scroll). > > What am i doing wrong ? > > The page i am trying to draw is a configuration page, where i need to take > user input in a table. As there may be many options, i am using a scroll > view, so that the user can scroll if needed. > > Kindly assist. Help is appreciated. > > I am attaching my XML view as an example below: > - > > // Root layout of the view > > > android:id="@+id/widget66" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:background="#3366CC" > xmlns:android="http://schemas.android.com/apk/res/android"; > android:orientation="horizontal"> > > // This is the page header > > android:id="@+id/widget89" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Configuration Page" > android:cursorVisible="false" > android:layout_margin="5dip" > android:background="#0099FF" > android:textSize="18sp" > android:gravity="center" > > > > > //Scroll view starts here > > android:id="@+id/widget96" > android:padding="5dip" > android:scrollbars="vertical" > android:layout_height="250dip" > android:scrollbarSize="12dip" > android:layout_below="@+id/widget89" > android:scrollbarStyle="outsideOverlay" > android:layout_width="fill_parent"> > > // Putting a table that needs to be scrolled. > > android:id="@+id/table" > android:layout_width="wrap_content" > android:layout_height="fill_parent" > android:orientation="vertical" > > > > // Linear layout contains a text view that is a subheading of the > configuration option > // and an edit text that takes user input. Linear layout aligns these > components in > // a horizontal manner > > android:id="@+id/widget101" > android:layout_width="wrap_content" > android:layout_height="30dip" > android:paddingTop="4dip" > android:paddingBottom="4dip" > android:orientation="horizontal" > > > android:id="@+id/widget118" > android:layout_width="100dip" > android:layout_height="fill_parent" > android:textColor="#CC" > android:text="Interval" > > > > android:id="@+id/widget144" > android:layout_height="30dip" > android:background="#" > android:textSize="15sp" > android:layout_width="170dip" > android:cursorVisible="false" > > > > > > // Linear layout contains a text view that is a subheading of the > configuration option > // and an edit text that takes user input. Linear layout aligns these > components in > // a horizontal manner > > android:id="@+id/widget101" > android:layout_width="wrap_content" > android:paddingBottom="4dip" > android:paddingTop="4dip" > android:layout_height="30dip" > android:orientation="horizontal" > > > android:id="@+id/widget118" > android:layout_width="100dip" > android:layout_height="fill_parent" > android:textColor="#CC" > android:text="config2" > > > > android:id="@+id/widget144" > android:layout_width="170dip" > android:layout_height="30dip" > android:background="#" > android:textSize="15sp" > > > > > > // Linear layout contains a text view that is a subheading of the > configuration option > // and an edit text that takes user input. Linear layout aligns these > components in > // a horizontal manner > > android:id="@+id/widget101" > android:layout_width="wrap_content" > android:layout_height="30dip" > android:paddingBottom="4dip" > android:paddingTop="4dip" > android:orientation="horizontal" > > > android:id="@+id/widget118" > android:layout_width="100dip" > android:layout_height="fill_parent" > android:textColor="#CC" > android:text="config3" > > > > android:id="@+id/widget144" > android:layout_width="170dip" > android:layout_height="30dip" > android:paddingBottom="5dip" > android:background="#" > android:textSize="15sp" > > > > > > > > > --~--~-~--~~~---~--~~ 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: conference call
supplementary service implementation should be done at the server side. The conferencing server will do the media mixing/transcoding etc. The device (client) will only receive and play RTP streams. On Wed, Sep 30, 2009 at 12:36 AM, Yusuf Saib (T-Mobile USA) < yusuf.s...@t-mobile.com> wrote: > > No AFAIK. > > > 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 Sep 29, 5:26 am, Nemat wrote: > > Hi, > > > > is it possible to add an incoming call with current call to make it as > > a conference call programmatically? > > > > Thanks in advance > > Nemat > > > --~--~-~--~~~---~--~~ 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: Icon and text on button
Using setCompoundDrawablesWithIntrinsicBounds() worked perfectly. Thank you. But why did that work and not setCompoundDrawables()? Bruce --~--~-~--~~~---~--~~ 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: Returning a value from TabActivity.
Bump. --~--~-~--~~~---~--~~ 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 receive incoming call automatically?
There is no correct way, at this point in time. Your approach may work (assuming the security model does not prohibit you), but it may also break when the next Android update is released. On Mon, Oct 5, 2009 at 10:57 AM, Nemat wrote: > > Can you please tell me how can we do this? > > I have an idea to inject answer key when an incoming call arrives from > a particular number.is it correct way? > > On Sep 25, 11:59 pm, "Balwinder Kaur (T-Mobile USA)" mobile.com> wrote: >> Intercepting an incomingcallis not supported officially from the >> SDK, >> which does not mean that folks are not using hacks to do just the >> same, as many apps on the market will show you. >> >> Balwinder Kaur >> Mobile.Software.Development >> ·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 Sep 25, 5:25 am, Nemat wrote: >> >> >> >> > Hi frnds >> >> > is it possible in Android Ifcallis received from user defined >> > number, it should be picked up automatically with no sign and speaker >> > should be turned on. Its history must be deleted. >> >> > need urgent help >> >> > Thanks in advance >> > Nemat- Hide quoted text - >> >> - Show quoted text - > > > --~--~-~--~~~---~--~~ 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 as a Universal Remote for CE/HA?
Thanks to everyone who's offered any useful insights/thoughts thus far. If you look at the attached diagram I'm hoping to build a device that acts a central controller for consumer electronics & home automation. I want a hand-held to interface with it, this hand-held would ideally have IR integrated, but it's not imperative as Wifi would be used mostly. So far the best solution I've found is this: http://openremote.org/display/HOME/OpenRemote You don't have to use their reference hardware but something low power/profile like it would be ideal. It's critical one has JRE + Apache Tomcat installed/configured properly, I'd run this software on top of Ubuntu or maybe LinuxMCE. I was thinking of integrating the entire thing into my HTPC (at least the IR part). However I'm not sure yet, it might be better to have a dedicated machine. This controller would be able to send/receive via; Internet, Wifi, Ethernet, IR, X10, proprietary RF, & numerous other CE/HA related protocols. I'm hoping to make do with my axim x50v as the hand-held but porting to android is slow moving so i may eventually have to move to a better supported device (preferably with IR but not essential). I'm interested in other peoples ideas, have you tried something similar? Have you played with a platform that's better (in your opinion) than openremote? Or perhaps you know of a better hware/sware/topology combo for the hand-held or controller/s? Cheers, Jed --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- ÿþM i s c e l l a n e o u s - - - - - - - - I n t e r n e t - - - - - - - - | | . . . . . . . H a n d - h e l d - - - - W i f i - - - - - - - - - - C E / H A s e r v e r ( P l u t o / L M C E ? ) - - - - - - - - - - P o E ( e x i s t i n g a i r c o n n e t w o r k ) . . . | | | - - W i f i ? ( 2 . 4 g h z 8 0 2 . 1 1 n ) . . . - - I r d a | | - - I R ? . . . | | _ I R b r i d g e _ _ C E d e v i c e s | | | - - P o w e r l i n e ? . . . | _ C E d e v i c e s | | _ P r o p r i e t a r y R F : Z i g b e e , Z w a v e , I n s t e o n , X 1 0 e t c . O n e o r c o m b i n a t i o n . . . H A / C E e n d d e v i c e s = = = >
[android-beginners] Re: Passing messages from BroadcastReceiver to Activity
Thanks for your response, but could you please elaborate a bit? I don't have the lingo that straight yet. What exactly should I do? Should I add something in the AndroidManifest file? If so what, and where? Thanks again. Anders Feder 2009/10/5 > just add that extra bundle to intent & start new activity with this > extra.in the activity just retrive the bundle you added to it. > > > On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder wrote: > >> >> Hi, >> >> I'm developing an application with android.telephony.gsm that is >> supposed to process incoming SMS messages. >> >> I've figured out that I need to have a BroadcastReceiver for receiving >> the incoming messages. But how am I supposed to pass the received >> messages from the BroadcastReceiver and on to my Activity? >> >> Thanks in advance, >> >> Anders Feder >> >> --~--~-~--~~~---~--~~ 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: Passing messages from BroadcastReceiver to Activity
Use Intent.putExtra() to add the data you want to pass to the activity you are starting. There are several different versions of putExtra depending on the data you want to pass. Then the activity you are starting can get that information from the bundle that is passed in via onCreate(). I have never actually done this, but I believe that is how it happens... If I am wrong, could somebody please correct me? Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 9:16 AM, Anders Feder wrote: > Thanks for your response, but could you please elaborate a bit? I don't > have the lingo that straight yet. What exactly should I do? Should I add > something in the AndroidManifest file? If so what, and where? Thanks again. > > Anders Feder > > 2009/10/5 > > just add that extra bundle to intent & start new activity with this >> extra.in the activity just retrive the bundle you added to it. >> >> >> On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder >> wrote: >> >>> >>> Hi, >>> >>> I'm developing an application with android.telephony.gsm that is >>> supposed to process incoming SMS messages. >>> >>> I've figured out that I need to have a BroadcastReceiver for receiving >>> the incoming messages. But how am I supposed to pass the received >>> messages from the BroadcastReceiver and on to my Activity? >>> >>> Thanks in advance, >>> >>> Anders Feder >>> >> > > > > --~--~-~--~~~---~--~~ 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 new Android language?
If you wish to write C/C++ programs on Android, Mr. Kulkarni's new language (which does sound like a neat project) may not help you. I recommend you look at the Android NDK: http://developer.android.com/sdk/ndk/1.6_r1/index.html#overview 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 Oct 3, 3:14 am, cookiemonsta wrote: > i would love to follow this and get updates on how the thing is > progressing. > i've been searching all over for a compiler which would let me write > and compile C/C++ programs on my android phone. > > good luck with your project :D > > On Oct 3, 6:43 am, niksbin wrote: > > > > > Thanks. I will get right to this, and hope that it helps. > > > Thanks, again. > > > Sincerely, > > Nikhil Kulkarni > > > On Oct 2, 5:54 pm, "Mark Murphy" wrote: > > > > > I am not sure if I need permission to create the language, so I am > > > > asking it here. > > > > You do not need permission to create the language. Unlike some platforms, > > > interpreters are welcome on Android. > > > > -- > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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 receive an incoming call programmatically?
Sorry, no. 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 Oct 2, 10:47 pm, Nemat wrote: > I mean when we have an incoming call,phone should not be notified and > call should be received automatically > > On Oct 1, 11:47 am, naG wrote: > > > > > can you explain it more... > > > On Sep 30, 4:12 am, Nemat wrote: > > > > is it possible to intercept an incoming call? > > > > I want my application to receive the call automatically through > > > programming.Can we do this in SDK-1.6? > > > > Thanks > > > Nemat- Hide quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ 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: Ode to the tmobile g1 serial port
Pritee tarry not for to gamble thither. On Oct 2, 6:33 pm, "Mark Murphy" wrote: > > I love thee tmobile g1 serial port, let me count the ways: > > 1. I made a serial cable to thee that works with your serial debugger > > > I was told to get access to the serial port for my own writing the > > following > > would have to occur: > > > 1. The serial debugger would have to be disabled > > 2. mknod may have to be used to create the device like /dev/tty0 > > > When I do a logcat and plug in the serial cable no logging shows anything > > is > > loading. It still works so I know something is loading. Help I beg of > > thee > > my kind fellows! > > Try the [android-porting] list -- it is better suited for questions like > this. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Passing messages from BroadcastReceiver to Activity
Aha. So I will do something like this in the BroadcastReceiver: myIntent.putExtra("x","y"); myActivity.startActivity(myIntent); And then in myActivity.onCreate() do something like: DoSomething(myBundle.getBundleExtra("x")); Does that look about right? If so, how do I tell, in onCreate(), whether the Activity was started by the user or by my BroadcastReceiver? Thanks a lot, Anders Feder 2009/10/5 Justin Anderson > Use Intent.putExtra() to add the data you want to pass to the activity you > are starting. There are several different versions of putExtra depending on > the data you want to pass. > > Then the activity you are starting can get that information from the bundle > that is passed in via onCreate(). > > I have never actually done this, but I believe that is how it happens... If > I am wrong, could somebody please correct me? > > Thanks, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > > On Mon, Oct 5, 2009 at 9:16 AM, Anders Feder wrote: > >> Thanks for your response, but could you please elaborate a bit? I don't >> have the lingo that straight yet. What exactly should I do? Should I add >> something in the AndroidManifest file? If so what, and where? Thanks again. >> >> Anders Feder >> >> 2009/10/5 >> >> just add that extra bundle to intent & start new activity with this >>> extra.in the activity just retrive the bundle you added to it. >>> >>> >>> On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder >>> wrote: >>> Hi, I'm developing an application with android.telephony.gsm that is supposed to process incoming SMS messages. I've figured out that I need to have a BroadcastReceiver for receiving the incoming messages. But how am I supposed to pass the received messages from the BroadcastReceiver and on to my Activity? Thanks in advance, Anders Feder >>> >> >> >> > > > > --~--~-~--~~~---~--~~ 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] Integrating G729 codec in mjsip
Hi all i am dveloping a VoIP client for Android based on the pjsip can any one tell me how to integrate the G729 codec with mjsip 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] Htc Touch Dual
i want install android to my htc touch dual which has windows mobile 6.1 on it. is it possible yet? --~--~-~--~~~---~--~~ 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] how to get bitmap X or Y
Hey my freands help me i wont to use bitmap X nad Y of canvas i need X, Y how i do that pls help --~--~-~--~~~---~--~~ 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: getting color array of image
Hey my freands pls help me I won't to get bitmap x,y iwont to control bitmap x , y tell me how On Aug 19, 11:06 am, eldo wrote: > I want to createbitmapfrom ImageView. > > Will you guide me. > Now i am creatingbitmapfor Images from res/drawable by using > > BitmapmBitmap = BitmapFactory.decodeResource(getResources(), > R.drawable.pic1); > then I am getting color array for thisbitmapby using > mBitmap.getPixels(pix, 0, picw, 0, 0, picw, pich); > > Presently I am creatingbitmapof images only from res/drawable, I > want to creatbitmapfor any image > > e.g I have Image in ImageView object (picked from media provider or > captured from camera) > > So how should getbitmapfor this image, will you guide me, I am not > getting any function from BitmapFactory. > My aim is get color array for any image, I am referring > thishttp://www.developer.com/java/j2me/article.php/10934_3748281_3 > (download this project from this page Under reference heading) Its > tutorial on Image. > > My main Goal is to just color array of any image > (mBitmap.getPixels(pix, 0, picw, 0, 0, picw, pich); here pix is color > array) --~--~-~--~~~---~--~~ 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: HelloAndroid app crashing
This alone did not help, but when I updated also ADT (9.1 to 9.3) plug- in then it was solved. On 22 sept, 23:50, hjnorris wrote: > Go to Help -> Software Updates and update the Android DDMS. --~--~-~--~~~---~--~~ 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] Problem involving emulators and networking.
Hi Basically I'm trying to either run two emulators or having an emulator running and having my android phone connected to the computer at the same time. I have created a game and all i really want is for the game screen to update on the other device. Eg if I move my sprite on one emulator the others view is updated. I was hoping to do this without the need of a server or using 3G or WIFI. Would anyone be able to tell me if this is at all possible? I've looked about for quite a while and cant find any examples of this at all. If its not possible it would be good if you could give me some suggestions about a way to go about this task. Cheers. --~--~-~--~~~---~--~~ 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] AdMobExample no visibility ad
Hi I don't understand why my app don't show test ad. It's only show text view. Here is: -layout http://schemas.android.com/apk/res/android"; xmlns:app="http://schemas.android.com/apk/res/org.ifies.android"; android:layout_width="fill_parent" android:layout_height="fill_parent"> -attars.xml -app.java package org.ifies.android; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; import com.admob.android.ads.AdManager; import com.admob.android.ads.AdView; public class AdmobExample extends Activity{ private TextView example_message; private AdView example_adview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.main); example_adview = (AdView) findViewById(R.id.ad); example_adview.setVisibility(AdView.VISIBLE); example_message = (TextView) findViewById(R.id.example_message); example_message.setVisibility(TextView.VISIBLE); } } -Manifest http://schemas.android.com/apk/res/android"; package="org.ifies.android" android:versionCode="1" android:versionName="1.0"> I'm developing under Kubuntu,Eclipse and Android SDK 1.5 What's wrong?? --~--~-~--~~~---~--~~ 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: getting color array of image
Hey my freand help me I won't to get bitmap x ,y how I do that I won't to control bitmap x,y 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] Alarm Triggering Notification
Hello Everyone I'm having a small issue and needed some advice. I have an alarm set to trigger at a specific date and time. I know how to configure it to display a toast after the alarm is triggered but I do not know how to trigger a simple notification. Here is my sample code that displays the toast after the alarm goes off, any help would be appreciated: public class AlarmTriggered extends BroadcastReceiver{ Toast mToast; NotificationManager nm; private static final int HELLOID = 1; @Override public void onReceive(Context context, Intent intent) { mToast = Toast.makeText(context, "Alarm Works", Toast.LENGTH_LONG); mToast.show(); } } --~--~-~--~~~---~--~~ 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] Problem with Toast
Hello everyone, When i try to make a Toast notification from onCreate() method of a Service, it works fine, but if i copy and paste the same call to a method created by me, it seems to ignore the Toast and it isn't showed. This is part of the code that isn't working. public class TestService extends Service { private Timer timer = new Timer(); private Timer timerTemp = new Timer(); private boolean UI = false; Servicio[] servs; public Servicio[] initServicios(SharedPreferences prefs, Servicio [] servs) { Log.v("Debug", "Mostrando Toast..."); Toast toast = Toast.makeText(this, "No has especificado una direccion para el servicio . El servicio no se comprobará!", Toast.LENGTH_LONG).show(); . . . . . . . . . . . . Thanks, and excuse my bad english ;-) --~--~-~--~~~---~--~~ 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] Creating an AVD
Hi, I am using Vista. I have been trying to create an AVD, but have had little success. In my directory I go to android-sdk-windows-1.6_r1/ tools. I then open the android application which brings me to command promt. Initially when opened the command prompt says that I do not have access and precedes to take me to 'android sdk'. So, I also tried this under admin access, but received the same results. The command prompt states 'no command parameters provided, launching ui'. I then opened cmd and tried to go in manually with no luck. Cmd would not let me open android-sdk-windows-1.6_r1. I am trying to do the following command line: android create avd -n -t [- ] ... This is provided by: http://developer.android.com/guide/developing/tools/avd.html Any help is much appreciated. 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] Running voice recognition at the background
Hi, Is it possible to run the voice recognition activity in the background and perform the actions on foreground based on the voice commands? As of now if i invoke the activtiy with RecognizerIntent.ACTION_RECOGNIZE_SPEECH, it is prompting the user with speak button UI. I would like to avoid this prompting UI and have my application's UI. Thanks in advance for any help. --~--~-~--~~~---~--~~ 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] Creating a Lite and Pro version of an application
I want to crete two seperate android applications. 1. A "Lite" version with limited functionality 2. A upgrade to the lite version (Pro version) with extended functionality (This will cost money) Can someone tell me the best way to approach thisproject setup etc. --~--~-~--~~~---~--~~ 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] Android communication
I'd like to build an application in which there are several Android devices that communicate amongst themselves. What is the best way to do this? Wi-Fi seems like a good option, in that you can discover your neighbors and don't need any hard coded identifiers (such a phone number), but I'm not sure. What is the standard practice? Thanks jerome --~--~-~--~~~---~--~~ 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] Using standard gallery
Am I able to use the standard gallery for development? I meen the gallery with the folder selection and when you select a folder a thumbnail grid will be displayed for photo selection. 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] addProximityAlert() doesn't fire intent
Hi, I am new to Android development and I am trying to write an App that uses the addProximityAlert() method. I know my intent / intent-filters work (as I can manually fire the intent) however I cannot seem to get addProximityAlert to fire an intent. I've searched on various forums and read the API docs numerous times however have not been able to determine what is wrong with my code. Any ideas? package com.example.gpsprox; import android.app.Activity; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.widget.Button; import android.widget.Toast; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class GpsProx extends Activity implements OnClickListener { private LocationManager lm; private Proximity prox; String phoneNo; String message; double latitude; double longitude; float radius; private static final String PROXIMITY_ALERT = "com.example.gpsprox.PROXIMITY_ALERT"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //---use the LocationManager class to obtain GPS locations--- lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); // Use addProximityAlert public method of locationmanager // Test Latitude / Longitude is at corner of Bute Gardens and the broadway. latitude = 51.4935684; longitude = -0.2223873; radius = 0; // Context context; Intent intent = new Intent(PROXIMITY_ALERT); PendingIntent pi = PendingIntent.getBroadcast(getApplicationContext (), 0, intent, 0); // sendBroadcast(intent); lm.addProximityAlert(latitude, longitude, radius, -1, pi); IntentFilter filter = new IntentFilter(PROXIMITY_ALERT); registerReceiver(new Proximity(), filter); Button button = (Button)findViewById(R.id.Button); button.setOnClickListener(this); Toast.makeText(getBaseContext(), "Got here!", Toast.LENGTH_SHORT).show(); } // Implement the OnClickListener callback public void onClick(View v) { // lm.removeProximityAlert(GpsProx.pi); finish(); } public class Proximity extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub Toast.makeText(getBaseContext(), "Got here too!", Toast.LENGTH_SHORT).show(); String key = LocationManager.KEY_PROXIMITY_ENTERING; boolean entering = intent.getBooleanExtra(key, false); // Bundle extras = intent.getExtras(); if(entering) { // we know that the device is entering the location. // display a message and send a text message. Toast.makeText(getBaseContext(), "Entered the zone!", Toast.LENGTH_SHORT).show(); } } } } Thanks, Chris --~--~-~--~~~---~--~~ 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] I can't make a scheduled task fire
Hi guys, I have spend over an hour trying to make this work now. I must be missing something obvious, but no amount of searching is working. I am trying to schedule a task to run every few minutes, and i am trying to do it using scheduleAtFixedRate(). I am testing this in a very basic hello world app to isolate it from the rest of my project. I have a very simple app with one Activity and in its onCreate() method i have the following code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Runnable task = new Runnable() { public void run() { Toast.makeText(getApplicationContext(), "RUN!", Toast.LENGTH_SHORT).show(); } }; final ScheduledExecutorService locationUdateScheduler = Executors.newScheduledThreadPool(1); locationUdateScheduler.scheduleAtFixedRate( task, 1, 10, TimeUnit.SECONDS); } For some reason i can not work out, when i run this I never see the toast message. Any help debugging this would be much appreciated. p.s. i have a vague hunch it might be because i have not added something to the manifest file, but searching around the internet reveals nothing of relevance. --~--~-~--~~~---~--~~ 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: Display performances in the Gallery Widget, working with thumbnails.
help me how to get bitmap X,Y of canvas i wont to controll bitmap X , Y --~--~-~--~~~---~--~~ 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] CheckBox with Background attribute renders incorrectly?
Beginners question: why does the CheckBox render the text (when setText is invoked) behind the checkbox (instead of next to the checkbox) when an background image is assigned? Second question: how do I make it *not* render behind the checkbox (and still use a background image)? Layout code: http://schemas.android.com/apk/res/android"; android:id="@+id/check" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="This checkbox is: unchecked" android:background="@drawable/icon" /> Main class import android.app.Activity; import android.os.Bundle; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.CompoundButton.OnCheckedChangeListener; public class TestCheckBox extends Activity implements OnCheckedChangeListener { CheckBox m_checkBox; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); m_checkBox = (CheckBox)findViewById(R.id.check); m_checkBox.setOnCheckedChangeListener(this); } public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) m_checkBox.setText("Checkbox is checked"); else m_checkBox.setText("Checkbox is unchecked"); } } --~--~-~--~~~---~--~~ 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] api key
ow do you get fingerprint for the key APIs for android --~--~-~--~~~---~--~~ 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] How to set button background color?
Hi group members, I have a question about setting the background color for buttons. When I am using btn.setBackgroundColor(Color.RED), the entire button turns into a red rectangle. Is there actually a workaround to achieve this? Also what can I do to revert back to the default color of the button (the typical plain greysh background). Thanks, Nicholas --~--~-~--~~~---~--~~ 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] How to control the LED lighter
Hi, Does anybody know how to control the LED light using the SDK 1.5 R1 ? Is there any available API or function to control the color, flash rate of the LED lighter near the earphone, as well as the lighter at the track ball? Or how to implement this? Thanks in advance! Xiaoming -- Freetec http://xiaonei.com/freetec --~--~-~--~~~---~--~~ 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] What API should I use ? Local Service Binding ? Remote Service Binding ? Handler ?)
Hello, I am very new beginner, and I am designing a small application as below. - After a user starts the application, he/she can click the start button to start a background task. (e.g. retrieving the news headlines periodically, then do something...) - Even after the user quits the application, the background task still running. - To stop the background task, the user needs to run the application again, and clicks the stop button to stop the background task. In the above scenario, what API should I use ? (Local Service Binding ? Remote Service Binding ? Handler ?) Please help me. Thank you 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] Re: CheckBox with Background attribute renders incorrectly?
You need to add padding to your background drawable. On Sat, Oct 3, 2009 at 9:17 PM, Droidnostics wrote: > Beginners question: why does the CheckBox render the text (when setText is > invoked) behind the checkbox (instead of next to the checkbox) when an > background image is assigned? > > Second question: how do I make it *not* render behind the checkbox (and > still use a background image)? > > > > Layout code: > > > > http://schemas.android.com/apk/res/android"; > > android:id="@+id/check" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="This checkbox is: unchecked" > > android:background="@drawable/icon" > > /> > > > > > > Main class > > import android.app.Activity; > > import android.os.Bundle; > > import android.widget.CheckBox; > > import android.widget.CompoundButton; > > import android.widget.CompoundButton.OnCheckedChangeListener; > > > > public class TestCheckBox extends Activity implements > OnCheckedChangeListener > > { > > CheckBox m_checkBox; > > > > /** Called when the activity is first created. */ > > @Override > > public void onCreate(Bundle savedInstanceState) > > { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > > > m_checkBox = (CheckBox)findViewById(R.id.check); > > > > m_checkBox.setOnCheckedChangeListener(this); > > } > > > > public void onCheckedChanged(CompoundButton buttonView, boolean > isChecked) > > { > > if (isChecked) > > m_checkBox.setText("Checkbox is checked"); > > else > > m_checkBox.setText("Checkbox is unchecked"); > > } > > } > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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: HelloMapView Tutorial not working
This seems like there is a problem with your apikey. Did you copy your apikey in the place of mykey? Good Luck Sandreev. On Oct 5, 1:55 am, DWischer wrote: > I just tried to make it a lot more easier than the tutorial to find > the error. > > This is my main class: > package com.map.maptest; > > import com.google.android.maps.MapView; > > import android.app.Activity; > import android.os.Bundle; > > public class MapAppTest extends Activity { > > private MapView mv = null; > > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > //setContentView(R.layout.main); > > this.mv = new MapView(this, "mykey"); > > //setContentView(this.mv); > } > > } > > When i uncomment the line: this.mv = new MapView(this, "mykey"); > no error occurs and the app is starting normally. > With this line i get an InvokationTargetException with a Verify Error > with this detail Mesage: com.map.maptest.MapAppTest > > I really dont know where to search. I added the uses-library tag to > the Manifest, so the Mapview class should be available. > > Regards, > Grinarn --~--~-~--~~~---~--~~ 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: Alarm Triggering Notification
There is a demo app, for which this is the documentation: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.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 Oct 4, 9:00 am, Magic-H wrote: > Hello Everyone > > I'm having a small issue and needed some advice. I have an alarm set > to trigger at a specific date and time. I know how to configure it to > display a toast after the alarm is triggered but I do not know how to > trigger a simple notification. Here is my sample code that displays > the toast after the alarm goes off, any help would be appreciated: > > public class AlarmTriggered extends BroadcastReceiver{ > Toast mToast; > NotificationManager nm; > private static final int HELLOID = 1; > @Override > public void onReceive(Context context, Intent intent) > { > mToast = Toast.makeText(context, "Alarm Works", > Toast.LENGTH_LONG); > mToast.show(); > > } > > > > } --~--~-~--~~~---~--~~ 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: I can't make a scheduled task fire
Since i did eventually work it out, i might as well post the answer here for anyone who searches in the future: final Handler handler = new Handler() { @Override public void handleMessage(Message msg) { Toast.makeText(getApplicationContext(), "Run!", Toast.LENGTH_SHORT).show(); } }; class ScheduledTaskWithHandeler implements Runnable { @Override public void run() { handler.sendEmptyMessage(0); } } final ScheduledExecutorService locationUdateScheduler = Executors.newScheduledThreadPool(1); scheduleHandle = locationUdateScheduler.scheduleAtFixedRate(new ScheduledTaskWithHandeler(), 1, 5, TimeUnit.SECONDS); The reason is: scheduled tasks are run in another thread, so you must used a handler (which lives on the main thread) to do the work. Any messages sent to the handler are processed the next time the main thread processes messages and events (near instant if the main thread is not busy). On Oct 2, 10:46 pm, aefaradien wrote: > Hi guys, > > I have spend over an hour trying to make this work now. I must be > missing something obvious, but no amount of searching is working. > > I am trying to schedule a task to run every few minutes, and i am > trying to do it using scheduleAtFixedRate(). > > I am testing this in a very basic hello world app to isolate it from > the rest of my project. I have a very simple app with one Activity > and in its onCreate() method i have the following code: > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > final Runnable task = new Runnable() { > public void run() { > Toast.makeText(getApplicationContext(), > "RUN!", > Toast.LENGTH_SHORT).show(); > } > }; > final ScheduledExecutorService locationUdateScheduler = > Executors.newScheduledThreadPool(1); > locationUdateScheduler.scheduleAtFixedRate( > task, 1, 10, TimeUnit.SECONDS); > } > > For some reason i can not work out, when i run this I never see the > toast message. Any help debugging this would be much appreciated. > > p.s. i have a vague hunch it might be because i have not added > something to the manifest file, but searching around the internet > reveals nothing of relevance. --~--~-~--~~~---~--~~ 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: Battery Usage Indicator API - JDK 1.6
I searched the entire API... couldn't find BatteryStats. Also, when I run the emulator, I went to Settings ->About Phone- >Battery Usage That's exactly what I was looking for but sadly it comes with the OS. Any idea where could I get help to reach that application? I suppose, this IS the official Android forum. So, I hope to get some help from the people who built that application. Sagar Hatekar On Oct 4, 11:54 am, "Mark Murphy" wrote: > > Okay :( > > Any idea if how it shows the information. I was working on writing a > > similar application even before SDK 1.6 came out. > > > API would have made my job easier. If there is no API, I would have to > > dig 1 layer deep and access the linux kernel which can show the > > processor info based on each Process ID. The tough part would be > > travelling to the kernel and back. > > > Any insight ? > > I rummaged through Google Code Search to try to answer your questions. I > do not keep the tabs open indefinitely. BatteryStats as a class name comes > to mind. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Passing messages from BroadcastReceiver to Activity
I believe that would be correct. As far as I can tell, the only way to determine the difference is by checking the following: - Bundle is null - Bundle doesn't have the key you specified. Again, I have not had the need to do this yet so I am only speculating. But this is what I understand from having read through the Dev Guide. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 10:58 AM, Anders Feder wrote: > Aha. So I will do something like this in the BroadcastReceiver: > > myIntent.putExtra("x","y"); > myActivity.startActivity(myIntent); > > And then in myActivity.onCreate() do something like: > > DoSomething(myBundle.getBundleExtra("x")); > > Does that look about right? > > If so, how do I tell, in onCreate(), whether the Activity was started by > the user or by my BroadcastReceiver? > > Thanks a lot, > > Anders Feder > > 2009/10/5 Justin Anderson > > Use Intent.putExtra() to add the data you want to pass to the activity you >> are starting. There are several different versions of putExtra depending on >> the data you want to pass. >> >> Then the activity you are starting can get that information from the >> bundle that is passed in via onCreate(). >> >> I have never actually done this, but I believe that is how it happens... >> If I am wrong, could somebody please correct me? >> >> Thanks, >> Justin >> >> -- >> There are only 10 types of people in the world... >> Those who know binary and those who don't. >> -- >> >> >> >> On Mon, Oct 5, 2009 at 9:16 AM, Anders Feder >> wrote: >> >>> Thanks for your response, but could you please elaborate a bit? I don't >>> have the lingo that straight yet. What exactly should I do? Should I add >>> something in the AndroidManifest file? If so what, and where? Thanks again. >>> >>> Anders Feder >>> >>> 2009/10/5 >>> >>> just add that extra bundle to intent & start new activity with this extra.in the activity just retrive the bundle you added to it. On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder >>> > wrote: > > Hi, > > I'm developing an application with android.telephony.gsm that is > supposed to process incoming SMS messages. > > I've figured out that I need to have a BroadcastReceiver for receiving > the incoming messages. But how am I supposed to pass the received > messages from the BroadcastReceiver and on to my Activity? > > Thanks in advance, > > Anders Feder > >>> >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ 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 a Lite and Pro version of an application
I have already asked the same question, and later the solution on another thread. Just do a quick search for "code base" and you will find out how to do this. If you have done this already, then you can ignore this, but a lot of duplicate questions can be eliminated simply by searching for an answer before posting a new question... Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: > > I want to crete two seperate android applications. > > 1. A "Lite" version with limited functionality > 2. A upgrade to the lite version (Pro version) with extended > functionality (This will cost money) > > Can someone tell me the best way to approach thisproject setup > etc. > > > > > --~--~-~--~~~---~--~~ 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: Display performances in the Gallery Widget, working with thumbnails.
Batuka, Please stop spamming the group with your question. This is the 3rd or 4th such request I have seen. You probably have not gotten an answer because your question is not very clear. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Sun, Oct 4, 2009 at 11:44 PM, Batuka wrote: > > help me how to get bitmap X,Y of canvas > i wont to controll bitmap X , Y > > > > --~--~-~--~~~---~--~~ 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 set button background color?
The default button background is not a color, but rather a 9-patch png image. Your best bet would be to create a similar 9-patch png image in your favorite image editing software that has a red background. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Sun, Oct 4, 2009 at 7:33 PM, Nicholas Key wrote: > > Hi group members, > > I have a question about setting the background color for buttons. > When I am using btn.setBackgroundColor(Color.RED), the entire button > turns into a red rectangle. > > Is there actually a workaround to achieve this? > > Also what can I do to revert back to the default color of the button > (the typical plain greysh background). > > Thanks, > > Nicholas > > > > --~--~-~--~~~---~--~~ 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: api key
It's all explained here: http://code.google.com/android/add-ons/google-apis/mapkey.html On Mon, Oct 5, 2009 at 5:23 AM, android wrote: > > ow do you get fingerprint for the key APIs for android > > > > -- Xavier Ducrohet Android SDK Tech Lead Google 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: charting
I have to partly agree...it makes sense to build platform as small as possible. On other hand..there is big value in charting controls for lazy developers and charting library can be very small. So..I am not calling to have a charting library in core. It should be option as google libraries (maps, etc). Btw.. now is even TTS in core :) On Oct 4, 7:03 pm, "Mark Murphy" wrote: > > Creating platform without basic charting is really crazy imho. > > Expecting charting libraries to be built into a mobile device platform, > where firmware space is at a premium, is really crazy IMHO. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: problem creating new android project
You might want to fill out the rest -- 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 Oct 3, 2:02 pm, mugdha lakhani wrote: > > Hi, > > > I have just installed android ADT in eclipse. And when I try to create a > > new android project, I cannot specify the SDK target due to some weird GUI > > problem, there are no checkboxes to click on! > > > I am enclosing a screenshot so that you can understand what I am talking > > about. I have to set this up fast...is there any other way to specify the > > SDK target and make it work? > > > I cannot create a project before specifying this. I have my android SDK's > > path included in preference->android, and the android tools directory > > included in the system PATH variables. > > > I tried creating a simple java project and converting it to android project > > without much success. > > > Thanks > > Mugdha > > > > screenshot.bmp > 1229KViewDownload --~--~-~--~~~---~--~~ 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 communication
If you want to communicate within a wireless LAN (using infrastructure mode on Wifi) you can come up with your own discovery protocol. If you want to communicate outside your locale network, you might want to use some cloud service which can help with client discovery. Another option might be Wifi Adhoc. Current Android SDK has no support for Wifi Adhoc, but you can get it running on platform level (or wait till it's supported). -- 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 Oct 2, 4:51 pm, Jerome White wrote: > I'd like to build an application in which there are several Android > devices that communicate amongst themselves. What is the best way to > do this? Wi-Fi seems like a good option, in that you can discover your > neighbors and don't need any hard coded identifiers (such a phone > number), but I'm not sure. What is the standard practice? Thanks > > jerome --~--~-~--~~~---~--~~ 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 a Lite and Pro version of an application
I don't think the other thread explained how to do this without creating two package names. You would either have to re-name your package each time you published, or you would need two different projects, wouldn't you? Another approach is to try to pull out as much common functionality as you can into a 3rd Java-only project, with each of your projects (paid and free). The tough part is that you can't move anything that references resources into a Java-only project. On Oct 5, 11:58 am, Justin Anderson wrote: > I have already asked the same question, and later the solution on another > thread. Just do a quick search for "code base" and you will find out how to > do this. > > If you have done this already, then you can ignore this, but a lot of > duplicate questions can be eliminated simply by searching for an answer > before posting a new question... > > Thanks, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > > On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: > > > I want to crete two seperate android applications. > > > 1. A "Lite" version with limited functionality > > 2. A upgrade to the lite version (Pro version) with extended > > functionality (This will cost money) > > > Can someone tell me the best way to approach thisproject setup > > etc. --~--~-~--~~~---~--~~ 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] Scroll Left and Right
I posted a question that I never got a response to. I'm starting to think what I'm trying to do must be impossible. I see a ListView that allow me to go up and down. As a consolation prize, is there any way I can pan left and right even if it can't go up and down at the same time? If this isn't possible, then I assume I'll need to find another way. See original question below... Thanks - Mitch From: Mitch Date: Thu, 1 Oct 2009 22:54:17 -0700 (PDT) Subject: Spreadsheet View I've been trying to make a layout that displays something like a mini spreadsheet that's specialized for my app. I would like it to have headers for both rows and columns. The row header can only pan left and right. The column header can only pan up and down. Hard to explain in words, so I'll try a picture (must be seen in a fixed pitch font): Stays| ... T3 T4 T5 ... --- . Row 3| ... 32 31 7 ... Row 4| ... 17 21 9 ... . If the user pushes the image up the screen, row 3 goes away and row 5 appears but the header row stays. If the user pushes the image to the left, column T3 goes away and column T6 appears and the header column stays. Having the "..." continuation hint would be nice, but is not required. I would also like to be able to have more than 1 header row and column (the ones that stay fixed). The info in the upper left quadrant of the spreadsheet would always stay put. It would be good to have the spreadsheet retain orientation in both landscape and portrait to allow the user to choose if the rows or columns would benefit from more display space. A nice feature would be to let the user resize rows and/or columns. This would be especially helpful for the fixed headers as display space is at a premium. I don't see anything that scrolls right or left nor anything that would scroll both right/left and up/down as would be needed for the lower right quadrant so I'm not even sure where to start. I suspect nothing like this exists as a single view I can simple drop into my xml, but how would I create such a thing by combining other views? Is there some other way through code to do his? I'm new so simple hints are appreciated. Thanks in advance. - Mitch --~--~-~--~~~---~--~~ 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: Integrating G729 codec in mjsip
SipDroid has right now implemented the G711 on Java level. You can use the current implementation as a guideline for your G729 codec implementation (how to pass the raw audio to the convert API). First you should answer the question whether you want to implement your codec on Java or on native level. Converting raw audio to G711 is pretty straight forward and not as "expensive" as converting your raw audio to G729 format (find a native implementation at http://www.readytechnology.co.uk/open/ipp-codecs-g729-g723.1/). Be aware of that you can use g729 only for trial purposes. If you try to sell an app using g729 you need a license! -- 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 Oct 4, 11:50 pm, Mohammad Siddiqui wrote: > Hi all > > i am dveloping a VoIP client for Android based on the pjsip > > can any one tell me how to integrate the G729 codec with mjsip > > 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: Problem involving emulators and networking.
You can directly communicate on Wifi from emulator to another phone if you are in the same LAN. There would be no server required. Only thing what you have to think about is, how do you get the IP address of your destination (discovery protocol on Wifi)? -- 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 Oct 3, 5:51 am, ExO PoLiTiX wrote: > Hi > > Basically I'm trying to either run two emulators or having an emulator > running and having my android phone connected to the computer at the > same time. I have created a game and all i really want is for the game > screen to update on the other device. Eg if I move my sprite on one > emulator the others view is updated. I was hoping to do this without > the need of a server or using 3G or WIFI. Would anyone be able to tell > me if this is at all possible? I've looked about for quite a while and > cant find any examples of this at all. If its not possible it would be > good if you could give me some suggestions about a way to go about > this task. > > Cheers. --~--~-~--~~~---~--~~ 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: Scroll Left and Right
> I posted a question that I never got a response to. What you asked for is rather difficult. > I'm starting to > think what I'm trying to do must be impossible. Not impossible, but probably beyond [android-beginners] in scope. > As a consolation prize, is there any way > I can pan left and right even if it can't go up and down at the same > time? HorizontalScrollView, but I suspect that's not what you want to solve your problem. > I've been trying to make a layout that displays something like a mini > spreadsheet that's specialized for my app. I would like it to have > headers for both rows and columns. The row header can only pan left > and right. The column header can only pan up and down. You will need to draw this yourself, in all likelihood. Create a subclass of View and implement onDraw(), using the supplied Canvas to render your 2D-scrolling grid. You would track your own scrolling, draw your gridlines, paint in your shaded cells, render your text, etc. I do not have any examples of this handy, as I haven't used the technique myself. However, most 2D games use this, so you may find some examples or tutorials there. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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 a Lite and Pro version of an application
The method is to have a main application and an application that acts a key to "unlock" functionality in the main app. You can't upload two products with the same package to the android market. Doing it the way I described in the other thread allows the main application to contain all the functionality to run in both "lite" and "paid" modes. The mode that the application runs in is determined by whether you have the key installed, which of course would have to have a separate package name because you are not allowed to upload two projects with the same package name. The application that acts as a key never even has to run... it just has to exist. Although, in my case, I have my key program set to just launch my main app and quit. Pulling common stuff out into a separate library would "work" (kind of) but it would not be as easy as my method. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 2:19 PM, Steve wrote: > > I don't think the other thread explained how to do this without > creating two package names. You would either have to re-name your > package each time you published, or you would need two different > projects, wouldn't you? > > Another approach is to try to pull out as much common functionality as > you can into a 3rd Java-only project, with each of your projects (paid > and free). The tough part is that you can't move anything that > references resources into a Java-only project. > > On Oct 5, 11:58 am, Justin Anderson wrote: > > I have already asked the same question, and later the solution on another > > thread. Just do a quick search for "code base" and you will find out how > to > > do this. > > > > If you have done this already, then you can ignore this, but a lot of > > duplicate questions can be eliminated simply by searching for an answer > > before posting a new question... > > > > Thanks, > > Justin > > > > -- > > There are only 10 types of people in the world... > > Those who know binary and those who don't. > > -- > > > > > > > > On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: > > > > > I want to crete two seperate android applications. > > > > > 1. A "Lite" version with limited functionality > > > 2. A upgrade to the lite version (Pro version) with extended > > > functionality (This will cost money) > > > > > Can someone tell me the best way to approach thisproject setup > > > etc. > > > --~--~-~--~~~---~--~~ 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 set button background color?
> The default button background is not a color, but rather a 9-patch png > image. Your best bet would be to create a similar 9-patch png image in > your > favorite image editing software that has a red background. It's not even just a 9-patch. It is a StateListDrawable of many 9-patch images (regular, pressed, focused, selected, disabled, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Battery Usage Indicator API - JDK 1.6
> I searched the entire API... couldn't find BatteryStats. It's not in the API. It is in the source code. This is why you cannot access it from the API, as I have pointed out. > Also, when I run the emulator, I went to Settings ->About Phone- >>Battery Usage > > That's exactly what I was looking for but sadly it comes with the OS. > Any idea where could I get help to reach that application? I suppose, > this IS the official Android forum. So, I hope to get some help from > the people who built that application. You will find this stuff in the source code. http://source.android.com, or Google Code Search. You may not find the authors of that application on this list, though. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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 a Lite and Pro version of an application
So a user would need to download both the free app, as well as the paid app (which unlocks features in the free app)? Is there a way where a user could download just the paid app? On Mon, Oct 5, 2009 at 1:34 PM, Justin Anderson wrote: > The method is to have a main application and an application that acts a key > to "unlock" functionality in the main app. You can't upload two products > with the same package to the android market. > > Doing it the way I described in the other thread allows the main > application to contain all the functionality to run in both "lite" and > "paid" modes. The mode that the application runs in is determined by > whether you have the key installed, which of course would have to have a > separate package name because you are not allowed to upload two projects > with the same package name. > > The application that acts as a key never even has to run... it just has to > exist. Although, in my case, I have my key program set to just launch my > main app and quit. > > Pulling common stuff out into a separate library would "work" (kind of) but > it would not be as easy as my method. > > Thanks, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > On Mon, Oct 5, 2009 at 2:19 PM, Steve wrote: > >> >> I don't think the other thread explained how to do this without >> creating two package names. You would either have to re-name your >> package each time you published, or you would need two different >> projects, wouldn't you? >> >> Another approach is to try to pull out as much common functionality as >> you can into a 3rd Java-only project, with each of your projects (paid >> and free). The tough part is that you can't move anything that >> references resources into a Java-only project. >> >> On Oct 5, 11:58 am, Justin Anderson wrote: >> > I have already asked the same question, and later the solution on >> another >> > thread. Just do a quick search for "code base" and you will find out >> how to >> > do this. >> > >> > If you have done this already, then you can ignore this, but a lot of >> > duplicate questions can be eliminated simply by searching for an answer >> > before posting a new question... >> > >> > Thanks, >> > Justin >> > >> > -- >> > There are only 10 types of people in the world... >> > Those who know binary and those who don't. >> > -- >> > >> > >> > >> > On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: >> > >> > > I want to crete two seperate android applications. >> > >> > > 1. A "Lite" version with limited functionality >> > > 2. A upgrade to the lite version (Pro version) with extended >> > > functionality (This will cost money) >> > >> > > Can someone tell me the best way to approach thisproject setup >> > > etc. >> >> > > > > -- Android mobile application development http://steveoliverc.squarespace.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: Android communication
Or to put it another way, the current method is to use a make a server somewhere on the internet (or perhaps wifi intranet) to catalog and function as an intermediary between the phones. In the future or maybe now with low-level hacking, ad-hoc wifi or something bluetooth based could become an option. On Oct 5, 4:09 pm, "Roman ( T-Mobile USA)" wrote: > If you want to communicate within a wireless LAN (using > infrastructure mode on Wifi) you can come up with your own discovery > protocol. > > If you want to communicate outside your locale network, you might want > to use some cloud service which can help with client discovery. > > Another option might be Wifi Adhoc. Current Android SDK has no support > for Wifi Adhoc, but you can get it running on platform level (or wait > till it's supported). > > -- > 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 Oct 2, 4:51 pm, Jerome White wrote: > > > I'd like to build an application in which there are several Android > > devices that communicate amongst themselves. What is the best way to > > do this? Wi-Fi seems like a good option, in that you can discover your > > neighbors and don't need any hard coded identifiers (such a phone > > number), but I'm not sure. What is the standard practice? Thanks > > > jerome --~--~-~--~~~---~--~~ 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 a Lite and Pro version of an application
what's missing from the market is dependencies. i often had the idea of publishing an "app" that is just a service for use by other apps ... but the fact that the user needs to manually download the service first sort of rules that out. if we had dependencies, you could have an app core and then have a free and paid app "check" that depend on the core. all the checker activity does it set some bit and then launch the core. yes i know that's a lot of hand waving. On 10/5/09 1:55 PM, Steve Oliver wrote: So a user would need to download both the free app, as well as the paid app (which unlocks features in the free app)? Is there a way where a user could download just the paid app? On Mon, Oct 5, 2009 at 1:34 PM, Justin Andersonwrote: The method is to have a main application and an application that acts a key to "unlock" functionality in the main app. You can't upload two products with the same package to the android market. Doing it the way I described in the other thread allows the main application to contain all the functionality to run in both "lite" and "paid" modes. The mode that the application runs in is determined by whether you have the key installed, which of course would have to have a separate package name because you are not allowed to upload two projects with the same package name. The application that acts as a key never even has to run... it just has to exist. Although, in my case, I have my key program set to just launch my main app and quit. Pulling common stuff out into a separate library would "work" (kind of) but it would not be as easy as my method. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 2:19 PM, Steve wrote: I don't think the other thread explained how to do this without creating two package names. You would either have to re-name your package each time you published, or you would need two different projects, wouldn't you? Another approach is to try to pull out as much common functionality as you can into a 3rd Java-only project, with each of your projects (paid and free). The tough part is that you can't move anything that references resources into a Java-only project. On Oct 5, 11:58 am, Justin Anderson wrote: > I have already asked the same question, and later the solution on another > thread. Just do a quick search for "code base" and you will find out how to > do this. > > If you have done this already, then you can ignore this, but a lot of > duplicate questions can be eliminated simply by searching for an answer > before posting a new question... > > Thanks, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > > On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: > > > I want to crete two seperate android applications. > > > 1. A "Lite" version with limited functionality > > 2. A upgrade to the lite version (Pro version) with extended > > functionality (This will cost money) > > > Can someone tell me the best way to approach thisproject setup > > etc. -- Android mobile application development http://steveoliverc.squarespace.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: HelloMapView Tutorial not working
Yes, i used the Debug Certificate to get my key. Does a wrong key raise this type of exceptions? On 5 Okt., 19:32, sandreev wrote: > This seems like there is a problem with your apikey. > Did you copy your apikey in the place of mykey? > > Good Luck > Sandreev. > > On Oct 5, 1:55 am, DWischer wrote: > > > I just tried to make it a lot more easier than the tutorial to find > > the error. > > > This is my main class: > > package com.map.maptest; > > > import com.google.android.maps.MapView; > > > import android.app.Activity; > > import android.os.Bundle; > > > public class MapAppTest extends Activity { > > > private MapView mv = null; > > > /** Called when the activity is first created. */ > > @Override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > //setContentView(R.layout.main); > > > this.mv = new MapView(this, "mykey"); > > > //setContentView(this.mv); > > } > > > } > > > When i uncomment the line: this.mv = new MapView(this, "mykey"); > > no error occurs and the app is starting normally. > > With this line i get an InvokationTargetException with a Verify Error > > with this detail Mesage: com.map.maptest.MapAppTest > > > I really dont know where to search. I added the uses-library tag to > > the Manifest, so the Mapview class should be available. > > > Regards, > > Grinarn --~--~-~--~~~---~--~~ 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: HelloMapView coming up with empty tiles
I pulled the apikey by submitting the fingerprint I got from the debug.keystore for the androiddebugkey which was what it said to do on the dev site. I copied that api key off of the webpage and pasted it directly MapView android:apikey element in the main.xml (and I've repeated and verified this several times). Since I doubt the api key I'm retrieving from the site is invalid, is there any other reasons I could be getting empty tiles back that anyone is aware of? This is really frustrating as the app I'm writing needs maps so I can't really proceed until I get this working. If I download a new SDK will my androiddebugkey change? I suppose I could try this. On Oct 1, 12:50 pm, jotobjects wrote: > What you are doing looks right. The empty tiles view with cross > hatches is a symptom of an invalid apiKey, but possibly it is > something else. > > On Sep 26, 8:47 am, Clayton wrote: > > > > > I'm having trouble getting the HelloMapView to work. I have the Maps > > API key that I got from, submitting the androiddebugkey, in the > > main.xml but my HelloMapView comes up in the emulator with empty > > tiles, no map. The GoogleMaps app works on the emulator but my app > > doesn't work. What am I missing? > > > Here's my manifest > > > > http://schemas.android.com/apk/res/android"; > > package="com.example" > > android:versionCode="1" > > android:versionName="1.0"> > > > > > > > > > android:label="@string/app_name"> > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > > > > > > > > > My main.xml > > > > http://schemas.android.com/apk/res/ > > android" > > android:id="@+id/mainlayout" > > android:orientation="vertical" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > > > > android:id="@+id/mapview" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:clickable="true" > > android:apiKey="" > > /> > > > > > Here's my HelloMapView class: > > > package com.example; > > > import com.google.android.maps.MapActivity; > > import com.google.android.maps.MapView; > > > import android.app.Activity; > > import android.os.Bundle; > > import android.widget.LinearLayout; > > import android.widget.RelativeLayout; > > import android.widget.ZoomControls; > > > public class HelloMapView extends MapActivity { > > > /** Called when the activity is first created. */ > > @Override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > > } > > > @Override > > protected boolean isRouteDisplayed() { > > // TODO Auto-generated method stub > > return false; > > } > > > } > > > Thanks in advance, > > Clayton --~--~-~--~~~---~--~~ 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 a Lite and Pro version of an application
*> So a user would need to download both the free app, as well as the paid app (which unlocks features in the free app)?* Yes. I don't think that is that big of a deal... That is how the Documents To Go app by DataViz works. And that is an extremely successful app. Also, the paid app does virtually nothing, and so the size of it is not really an issue. *> Is there a way where a user could download just the paid app?* There sure is. That is how my current version of AppSwipe! works. I am switching to the "Key" method I mentioned above with my next release because it makes maintaining the code so much simpler. It is a royal pain to have both of them on the market because they have to have different package names... And since the package of an application in Java is based on a real file structure, it makes it a bear to change the package just to be able to create the paid .apk file. My justification for using the paid key is that, in the long run, the users will benefit because it is much easier for the developer to maintain the code and so there will be less bugs. It will also make it easier to fix bugs because they can be fixed in a single place. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 3:21 PM, Jeffrey Blattman wrote: > what's missing from the market is dependencies. i often had the idea of > publishing an "app" that is just a service for use by other apps ... but the > fact that the user needs to manually download the service first sort of > rules that out. > > if we had dependencies, you could have an app core and then have a free and > paid app "check" that depend on the core. all the checker activity does it > set some bit and then launch the core. yes i know that's a lot of hand > waving. > > > On 10/5/09 1:55 PM, Steve Oliver wrote: > > So a user would need to download both the free app, as well as the paid app > (which unlocks features in the free app)? > Is there a way where a user could download just the paid app? > > On Mon, Oct 5, 2009 at 1:34 PM, Justin Anderson > wrote: > >> The method is to have a main application and an application that acts a >> key to "unlock" functionality in the main app. You can't upload two >> products with the same package to the android market. >> >> Doing it the way I described in the other thread allows the main >> application to contain all the functionality to run in both "lite" and >> "paid" modes. The mode that the application runs in is determined by >> whether you have the key installed, which of course would have to have a >> separate package name because you are not allowed to upload two projects >> with the same package name. >> >> The application that acts as a key never even has to run... it just has to >> exist. Although, in my case, I have my key program set to just launch my >> main app and quit. >> >> Pulling common stuff out into a separate library would "work" (kind of) >> but it would not be as easy as my method. >> >> Thanks, >> Justin >> >> -- >> There are only 10 types of people in the world... >> Those who know binary and those who don't. >> -- >> >> >> On Mon, Oct 5, 2009 at 2:19 PM, Steve wrote: >> >>> >>> I don't think the other thread explained how to do this without >>> creating two package names. You would either have to re-name your >>> package each time you published, or you would need two different >>> projects, wouldn't you? >>> >>> Another approach is to try to pull out as much common functionality as >>> you can into a 3rd Java-only project, with each of your projects (paid >>> and free). The tough part is that you can't move anything that >>> references resources into a Java-only project. >>> >>> On Oct 5, 11:58 am, Justin Anderson wrote: >>> > I have already asked the same question, and later the solution on >>> another >>> > thread. Just do a quick search for "code base" and you will find out >>> how to >>> > do this. >>> > >>> > If you have done this already, then you can ignore this, but a lot of >>> > duplicate questions can be eliminated simply by searching for an answer >>> > before posting a new question... >>> > >>> > Thanks, >>> > Justin >>> > >>> > -- >>> > There are only 10 types of people in the world... >>> > Those who know binary and those who don't. >>> > -- >>> > >>> > >>> > >>> > On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: >>> > >>> > > I want to crete two seperate android applications. >>> > >>> > > 1. A "Lite" version with limited functionality >>> > > 2. A upgrade to the lite version (Pro version)
[android-beginners] Re: Creating a Lite and Pro version of an application
*> what's missing from the market is dependencies. * I wholeheartedly agree... *> i often had the idea of publishing an "app" that is just a service for use by other apps ... but the fact that the user needs to manually download the service first sort of rules that out. *Yes and no. It is a little bit of an annoyance, but the programmer who wishes to use your service could look for it and provide a one-button-push method for them to go to the market and install it. My paid key app does just this. When the user tries to launch it, it simply tries to launch the free version of my app. If the free version doesn't exist an exception is thrown and I display a dialog that more or less says "AppSwipe! was not found. Please go to the market and install it now" The dialog has a button that says "Go to market..." and when they click on that it goes to the market and pulls up only the application that needs to be installed. It sounds like a lot of work, but really it isn't all that bad. I programmed that functionality in about 20 minutes. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 3:21 PM, Jeffrey Blattman wrote: > what's missing from the market is dependencies. i often had the idea of > publishing an "app" that is just a service for use by other apps ... but the > fact that the user needs to manually download the service first sort of > rules that out. > > if we had dependencies, you could have an app core and then have a free and > paid app "check" that depend on the core. all the checker activity does it > set some bit and then launch the core. yes i know that's a lot of hand > waving. > > > On 10/5/09 1:55 PM, Steve Oliver wrote: > > So a user would need to download both the free app, as well as the paid app > (which unlocks features in the free app)? > Is there a way where a user could download just the paid app? > > On Mon, Oct 5, 2009 at 1:34 PM, Justin Anderson > wrote: > >> The method is to have a main application and an application that acts a >> key to "unlock" functionality in the main app. You can't upload two >> products with the same package to the android market. >> >> Doing it the way I described in the other thread allows the main >> application to contain all the functionality to run in both "lite" and >> "paid" modes. The mode that the application runs in is determined by >> whether you have the key installed, which of course would have to have a >> separate package name because you are not allowed to upload two projects >> with the same package name. >> >> The application that acts as a key never even has to run... it just has to >> exist. Although, in my case, I have my key program set to just launch my >> main app and quit. >> >> Pulling common stuff out into a separate library would "work" (kind of) >> but it would not be as easy as my method. >> >> Thanks, >> Justin >> >> -- >> There are only 10 types of people in the world... >> Those who know binary and those who don't. >> -- >> >> >> On Mon, Oct 5, 2009 at 2:19 PM, Steve wrote: >> >>> >>> I don't think the other thread explained how to do this without >>> creating two package names. You would either have to re-name your >>> package each time you published, or you would need two different >>> projects, wouldn't you? >>> >>> Another approach is to try to pull out as much common functionality as >>> you can into a 3rd Java-only project, with each of your projects (paid >>> and free). The tough part is that you can't move anything that >>> references resources into a Java-only project. >>> >>> On Oct 5, 11:58 am, Justin Anderson wrote: >>> > I have already asked the same question, and later the solution on >>> another >>> > thread. Just do a quick search for "code base" and you will find out >>> how to >>> > do this. >>> > >>> > If you have done this already, then you can ignore this, but a lot of >>> > duplicate questions can be eliminated simply by searching for an answer >>> > before posting a new question... >>> > >>> > Thanks, >>> > Justin >>> > >>> > -- >>> > There are only 10 types of people in the world... >>> > Those who know binary and those who don't. >>> > -- >>> > >>> > >>> > >>> > On Sun, Oct 4, 2009 at 7:48 PM, jax wrote: >>> > >>> > > I want to crete two seperate android applications. >>> > >>> > > 1. A "Lite" version with limited functionality >>> > > 2. A upgrade to the lite version (Pro version) with extended >>> > > functionality (This will cost money) >>> > >>> > > Can someone tell me the best way
[android-beginners] zoomToSpan() then setZoom()
i have some code that uses zoomToSpan(...), then calls getZoomLevel() and based on the result may call setZoom(...). this is to ensure a minimum zoom level. what i am seeing is that the call to setZoom(...) is ignored and the level is not set. does zoomToSpan() introduce some sort of pending operation that when executed overwrites the call to setZoom()? perhaps the operation hasn't animated to the value yet? not sure if there's another way to do this ... as i don't think there's any way to go directly from a lat-lng span to a zoom level other than calling zoomToSpan() and getting the result. any ideas? thanks. --
[android-beginners] Re: HelloMapView coming up with empty tiles
I figured it out. I had the as a child of rather than a child of the , it's working now. Thanks for your help! On Oct 5, 4:27 pm, Clayton wrote: > I pulled the apikey by submitting the fingerprint I got from the > debug.keystore for the androiddebugkey which was what it said to do on > the dev site. I copied that api key off of the webpage and pasted it > directlyMapViewandroid:apikey element in the main.xml (and I've > repeated and verified this several times). Since I doubt the api key > I'm retrieving from the site is invalid, is there any other reasons I > could be getting empty tiles back that anyone is aware of? This is > really frustrating as the app I'm writing needs maps so I can't really > proceed until I get this working. If I download a new SDK will my > androiddebugkey change? I suppose I could try this. > > On Oct 1, 12:50 pm, jotobjects wrote: > > > > > What you are doing looks right. The empty tiles view with cross > > hatches is a symptom of an invalid apiKey, but possibly it is > > something else. > > > On Sep 26, 8:47 am, Clayton wrote: > > > > I'm having trouble getting the HelloMapView to work. I have the Maps > > > API key that I got from, submitting the androiddebugkey, in the > > > main.xml but my HelloMapView comes up in the emulator with empty > > > tiles, no map. The GoogleMaps app works on the emulator but my app > > > doesn't work. What am I missing? > > > > Here's my manifest > > > > > > http://schemas.android.com/apk/res/android"; > > > package="com.example" > > > android:versionCode="1" > > > android:versionName="1.0"> > > > > > > > > > > > > > > android:label="@string/app_name"> > > > > > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > > > > > > > > > > > > > > > My main.xml > > > > > > http://schemas.android.com/apk/res/ > > > android" > > > android:id="@+id/mainlayout" > > > android:orientation="vertical" > > > android:layout_width="fill_parent" > > > android:layout_height="fill_parent" > > > > > > > android:id="@+id/mapview" > > > android:layout_width="fill_parent" > > > android:layout_height="fill_parent" > > > android:clickable="true" > > > android:apiKey="" > > > /> > > > > > > > Here's my HelloMapView class: > > > > package com.example; > > > > import com.google.android.maps.MapActivity; > > > import com.google.android.maps.MapView; > > > > import android.app.Activity; > > > import android.os.Bundle; > > > import android.widget.LinearLayout; > > > import android.widget.RelativeLayout; > > > import android.widget.ZoomControls; > > > > public class HelloMapView extends MapActivity { > > > > /** Called when the activity is first created. */ > > > @Override > > > public void onCreate(Bundle savedInstanceState) { > > > super.onCreate(savedInstanceState); > > > setContentView(R.layout.main); > > > > } > > > > @Override > > > protected boolean isRouteDisplayed() { > > > // TODO Auto-generated method stub > > > return false; > > > } > > > > } > > > > Thanks in advance, > > > Clayton --~--~-~--~~~---~--~~ 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] How do you get the dimensions of a Dialog?
I need to get the height and width of a dialog from inside a dialog class. Clearly confused. Help appreciated. Thank You, Jason --~--~-~--~~~---~--~~ 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: Passing messages from BroadcastReceiver to Activity
if you do simply as you written & if what ever clear from your post to me here the activity will start every time you receive the message?is it ok with you?but if you want to start some activity from user will will acess the receivid data then just save that data some where n the acess it from user activity. On Mon, Oct 5, 2009 at 10:28 PM, Anders Feder wrote: > Aha. So I will do something like this in the BroadcastReceiver: > > myIntent.putExtra("x","y"); > myActivity.startActivity(myIntent); > > And then in myActivity.onCreate() do something like: > > DoSomething(myBundle.getBundleExtra("x")); > > Does that look about right? > > If so, how do I tell, in onCreate(), whether the Activity was started by > the user or by my BroadcastReceiver? > > Thanks a lot, > > Anders Feder > > 2009/10/5 Justin Anderson > > Use Intent.putExtra() to add the data you want to pass to the activity you >> are starting. There are several different versions of putExtra depending on >> the data you want to pass. >> >> Then the activity you are starting can get that information from the >> bundle that is passed in via onCreate(). >> >> I have never actually done this, but I believe that is how it happens... >> If I am wrong, could somebody please correct me? >> >> Thanks, >> Justin >> >> -- >> There are only 10 types of people in the world... >> Those who know binary and those who don't. >> -- >> >> >> >> On Mon, Oct 5, 2009 at 9:16 AM, Anders Feder >> wrote: >> >>> Thanks for your response, but could you please elaborate a bit? I don't >>> have the lingo that straight yet. What exactly should I do? Should I add >>> something in the AndroidManifest file? If so what, and where? Thanks again. >>> >>> Anders Feder >>> >>> 2009/10/5 >>> >>> just add that extra bundle to intent & start new activity with this extra.in the activity just retrive the bundle you added to it. On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder >>> > wrote: > > Hi, > > I'm developing an application with android.telephony.gsm that is > supposed to process incoming SMS messages. > > I've figured out that I need to have a BroadcastReceiver for receiving > the incoming messages. But how am I supposed to pass the received > messages from the BroadcastReceiver and on to my Activity? > > Thanks in advance, > > Anders Feder > >>> >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ 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] Double-Permissions when publishing to Android Market?
I'm running into a strange issue publishing on the Android market, and am wondering if anybody else has seen the same: Basically, whatever permissions I list in my "Android Manifest" file get listed twice when I upload the APK. By way of example, here's a direct copy/paste from the upload area... -- This apk requests 6 permissions that users will be warned about 'android.permission.READ_CONTACTS' 'android.permission.WRITE_CONTACTS' 'android.permission.CALL_PHONE' android.permission.READ_CONTACTS android.permission.WRITE_CONTACTS android.permission.CALL_PHONE -- And here are the three relevant lines in my android manifest file --- -- I've tried uploading in FF3.5, IE7, and IE8, and modified the permissions tags to end with a space before the trailing /> and without. Every permutation of any possible quirk I try to work around, still ends up with the whole "everything listed twice" issue. Those three permission tags are direct children of the tag. I don't actually know if this is something I should even care about, but I did notice earlier today that I couldn't search for my application ("Contacts Evolved") in the market, wheras I could before my phone updated to donut... I had to un-publish and re-publish the app for it to show up again. It downloads fine now, but still gives me the feeling that something is "wrong" that might cause issues down the line, and I'd like to get it fixed. Any ideas on what's happening, or if it's happened to anybody else, would be greatly appreciated:) --~--~-~--~~~---~--~~ 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] plz help with sdcard image file and push command not working!!
hi !! I have created a image file in a folder /androidimages and when i try to run emulator from terminal giving path to this image file it gives error: i try => $ emulator -sdcard /home/soms/androidemuimages/androidnew.img -avd androidnew error=> SDL init failure, reason is: No available video device as a second alternative i give path to this image file in AVD manager in eclipse but even it doesnt recognises it i guess. coz when i try to use camera it display the toast that sdcard is not enabled. = second problem is that when i try to push a .bmp file to sdcard using $ adb push bar3.bmp /sdcard there is no error but there is no change in logcat and no image added to gallery. or is it somewhere else?:S Plz forgive if i sound childish. Thanks in advance, regards, wahib --~--~-~--~~~---~--~~ 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: plz help with sdcard image file and push command not working!!
the push command worked now as i tried chmod 777 /sdcard using shell. Then i tried copying it to sdcard/Camera/DCIM/bar3.bmp and it is successfully copied but problem is that it isnt shown in the gallery. I even tried moving jpeg image but same problem even after restarting the emulator --~--~-~--~~~---~--~~ 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: Passing messages from BroadcastReceiver to Activity
Turns out I just barely had to do something similar... In order to get the data from the intent you created, you need to do the following in the activity that is started: Bundle extras = getIntent().getExtras(); if (extras != null) { ...do stuff... String value = extra.getString("myKey"); } Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Oct 5, 2009 at 10:46 PM, wrote: > if you do simply as you written & if what ever clear from your post to me > here the activity will start every time you receive the message?is it ok > with you?but if you want to start some activity from user will will acess > the receivid data then just save that data some where n the acess it from > user activity. > > On Mon, Oct 5, 2009 at 10:28 PM, Anders Feder > wrote: > >> Aha. So I will do something like this in the BroadcastReceiver: >> >> myIntent.putExtra("x","y"); >> myActivity.startActivity(myIntent); >> >> And then in myActivity.onCreate() do something like: >> >> DoSomething(myBundle.getBundleExtra("x")); >> >> Does that look about right? >> >> If so, how do I tell, in onCreate(), whether the Activity was started by >> the user or by my BroadcastReceiver? >> >> Thanks a lot, >> >> Anders Feder >> >> 2009/10/5 Justin Anderson >> >> Use Intent.putExtra() to add the data you want to pass to the activity you >>> are starting. There are several different versions of putExtra depending on >>> the data you want to pass. >>> >>> Then the activity you are starting can get that information from the >>> bundle that is passed in via onCreate(). >>> >>> I have never actually done this, but I believe that is how it happens... >>> If I am wrong, could somebody please correct me? >>> >>> Thanks, >>> Justin >>> >>> -- >>> There are only 10 types of people in the world... >>> Those who know binary and those who don't. >>> -- >>> >>> >>> >>> On Mon, Oct 5, 2009 at 9:16 AM, Anders Feder >>> wrote: >>> Thanks for your response, but could you please elaborate a bit? I don't have the lingo that straight yet. What exactly should I do? Should I add something in the AndroidManifest file? If so what, and where? Thanks again. Anders Feder 2009/10/5 just add that extra bundle to intent & start new activity with this > extra.in the activity just retrive the bundle you added to it. > > > On Mon, Oct 5, 2009 at 5:12 AM, Anders Feder < > anders.feder...@gmail.com> wrote: > >> >> Hi, >> >> I'm developing an application with android.telephony.gsm that is >> supposed to process incoming SMS messages. >> >> I've figured out that I need to have a BroadcastReceiver for receiving >> the incoming messages. But how am I supposed to pass the received >> messages from the BroadcastReceiver and on to my Activity? >> >> Thanks in advance, >> >> Anders Feder >> > >>> >>> >>> >> >> >> >> >> >> --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---