[android-beginners] Re: communication between android phone and pc using 3G network
IP connectivity from a cellular data network to for example your home network is not straight forward Be aware of the following: + your cellular 3G IP address might be NAT'd (important when you try to reach the mobile device) + your home network IP address is not public reachable (if this is the case try to place your home ip address in a DMZ zone ~possible security risks!!!) Q1: How does your phone know about your home ip address (manually configured)? Q2: Can you ping your home network from outside your LAN? --Roman On Mar 2, 10:31 pm, Burgwindeck wrote: > Hi Gn, > > I also have been trying to setup a Droid to Droid 3G connection. > I can confirm that all works great in wifi mode. The Droid can make > connection requests (Http, Telnet, raw sockets) in 3G, but I cannot > get the Droid to accept a socket connection in G3 mode. I was told by > Verizon that a special license was needed to accept socket connection > requests and they would send me some information. So far, none has > been received. If anyone knows how to program the Droid to accept > socket connection requests over 3G, please respond. > > Thanks > > Burgwindeck > > On Jan 20, 12:35 am, Na Gu wrote: > > > Dear all, > > > I am trying to use an android phone to send afileto my laptop, the > > program works well under wifi network, but it does not work if i use > > 3G network...How to solve this problem? > > > mysocketis very simple: > > server side: adr1 = new ServerSocket(3108); > > Socketserver = adr1.accept(); > > client side: Socketclient; > > client = newSocket("10.217.137.110", > > 3400); > > > I tried to use asocketwith remote ip, remote port, local ip and > > local port, this method does not work for both wifi and 3G network > > > Thanks a lot! > > gn -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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: wifi configuration
Before calling the addNetwork you want to create a WifiConfiguration. The configuration below is for an open Wifi. WifiConfiguration wifiConfiguration = new WifiConfiguration(); wifiConfiguration.SSID = YOUR_SSID; wifiConfiguration.BSSID = YOUR_BSSID; wifiConfiguration.hiddenSSID= false; //if it's not hidden wifiConfiguration.priority = 1; wifiConfiguration.status= WifiConfiguration.Status.ENABLED; wifiConfiguration.allowedKeyManagement.set (WifiConfiguration.KeyMgmt.NONE); After this adding the network configuration should be successful. -- 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 Nov 22, 6:43 am, Abbas Naqvi wrote: > Hi > > Does someone has a clue how to configure the WiFiManager and what are > the basic parameters to be set before calling 'addNetwork' method? > > Thanks/Regards -- 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: Network down issue
Hi Ali, I assume that the getInputStream call is blocking after it is called and you don't have an internet connection. You might end up in a deadlock situation. In case of losing internet connectivity I would have another thread running which acts on connection state changes. By the way Android is supporting the Selector class which is similar to the Posix select. Get some understanding of the Selector class at http://developer.android.com/reference/java/nio/channels/Selector.html -- 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 Nov 20, 5:44 am, Ali Adnan wrote: > Hi, > > In my application i get response from web service and show its result > from resultant stream at activity, i get stream as > > try > { > String connectTo = webService + webServiceMethod + queryString; > connectTo = connectTo.replaceAll(" ", "%20"); > URL url = new URL(connectTo); > URLConnection ucon = url.openConnection(); > ucon.setConnectTimeout(15000); > ucon.connect(); > InputStream is = ucon.getInputStream(); > BufferedInputStream bis = new BufferedInputStream(is); > return bis;} > > catch (SocketTimeoutException e) > { > throw e;} > > catch (MalformedURLException e) > { > throw e;} > > catch (IOException e) > { > throw e; > > } > > If emulator/device is connected with internet then this code work fine > but if i disconnect internet and try to connect any URL then it keep > continue to wait even few minutes, however i set connection timeout 15 > seconds. This feel really bad. I want a smart solution, if internet is > down or disconnected this code will throw SocketTimeOut exception or > notify me AFTER 15 seconds that net is down. > > Ali Adnan. -- 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 measure download speed ?
When you write the file on the sdcard, you can always start a timer and check for the current file size. Another possibility is to count the number of bytes which you are writing in each write step. -- 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 Nov 18, 5:24 am, joareiss wrote: > Hello, > > Is there a possibilty to measure how many kb/s get downloaded, when I > don't know how big the file is, that I am downloading ? -- 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: File transfer over phones
Hi John, Could you explain or rephrase your question "How exactly do I tell another phone to do a specific task(IE access a webpage)?" Q: Also how do I send a file from one phone to another? A:You can use an existing ftp implementation or write your own ftp like protocol (read the ftp RFC to get an idea what is needed) Q: Once the clients connect to the server, I am stumped as to how I will get the server to tell the clients what to do. A: As I already mentioned, you should read the FTP rfc to get an idea which commands you need. Also check out the FTP application http://www.lysesoft.com/products/andftp/index.html which gives you an good idea about possible functionality. -- 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. > (IE access a webpage)? On Nov 16, 10:56 am, John wrote: > I'm writing a simple downloader/file transfer app and ran into a few > problems. How exactly do I tell another phone to do a specific task > (IE access a webpage)? Also how do I send a file from one phone to > another? > > I have created a client and a server app. Basically, the the clients > connect to the server given an IP and port, which is implemented with > a server socket. Once the clients connect to the server, I am stumped > as to how I will get the server to tell the clients what to do. -- 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: No internet connection in emulator
The output of the commands looks fine to me. Do you know whether you need to access the internet over a proxy? If yes, then use also the proxy settings for the emulator. + You could also try to connect to a server which is running locally in your LAN. For example install Tomcat and try to access the server using the emulator. + What happens if you run the emulator on 1.5 or 2.0? Let me know if this works. -- 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 Nov 13, 9:15 am, Chris wrote: > I get the same problem in Ubuntu 9.4 and Android SDK 1.6. > > netstate -r displays the following: > > Proto Recv-Q Send-Q Local Address Foreign Address State > tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN > tcp 0 0 0.0.0.0: 0.0.0.0:* LISTEN > tcp 0 0 10.0.2.15: 10.0.2.2:48937 ESTABLISHED > > netcfg shows: > lo UP 127.0.0.1 255.0.0.0 0x0049 > eth0 UP 10.0.2.15 255.255.255.0 0x1043 > tun10 DOWN 0.0.0.0 0.0.0.0 0x0080 > gre0 DOWN 0.0.0.0 0.0.0.0 0x0080 > > Any ideas? > Thanks, > Christian > > On Nov 2, 2:22 pm, erisa wrote: > > > After a fresh install of ubuntu 9.10 and the Android SDK, I discovered > > that the emulator hasnointernet access. All websites produce the > > "Page not available" screen when accessed by the Android browser > > (1.6). I do not have a firewall and my internet access from my > > computer is fully functional. Any ideas on trouble shooting? > > > 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: When to split an application into serveral activities -- and when not to :D
Dominik, Try to keep the number of views as low as possible especially the hierarchy level of views should be as short as possible. In case of your question I would create a new activity. Find some performance tips from Romain at http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html -- 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 Nov 15, 9:53 am, "domi...@pich.info" wrote: > hi, > I come from the iphone side and am now looking at the android > platform. > > So far, nothing seems overly strange/unknown to me.. the only > exception being ACTIVITIES :P (well I guess thats a basic concept I > should grasp though :D) > > Concrete issue: > I have 1 mainActivity.. that is a tab host > now I have 5 tabs... should make each tab an activy or should just use > 5 listviews as tab contents? -- 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: sending over WiFi
Mike, What exactly are you trying to accomplish? + sending file to a server? + sending file to another device/PC, ...? Have a look at the following post, which might already answer some of your questions http://groups.google.com/group/android-developers/browse_thread/thread/8ac73c9fdbc3/8c726476212491a8?lnk=raot -- 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 Nov 6, 3:14 pm, Mike88 wrote: > Hey guys, > > I am new to android development and I was just wonder how you could > programing sending a file over WiFi. I have failed to find any > tutorials on any site. This infomration or a link to where i might > find it would be really helpful. > > Thanks and Regards > Mike -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Can I use an old Android phone for development purposes?
GPS is not dependent on a carrier network. You could get a prepaid sim card and put it in your device. If you run out of minutes, you should be still able to use the triangulation method in case you don't want to use GPS. -- 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 Nov 10, 8:02 pm, Tone wrote: > I might be able to get a used 1.5 phone for development purposes, > besides the voice and data networks does anything else depend on a > carrier? > Mostly I'm concerned about the GPS, I'm sure it might be weaker > without any towers to work with. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Game Save/Load File
Hi Ben, A very fast and easy way to store profile information is using Android's sharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html For more complex and also expandable scenarios (support multiple players, upload profile information on a server, ) I would use the DB functionality. -- 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 Nov 10, 2:51 pm, ben wrote: > This may belong on the 'Android Developers' board instead of > beginners, but I figured I would start here as I feel it may be a > beginner's question. I recently made the decision to make a game for > the android. I spend all my time at work and at home reading about > development. Now comes the actual development. > > The first step that I am kind of caught up on is the loading and > saving of a user's Profile and respective Characters associated with > that profile etc. > > The question being : "What is the best way to go about saving/loading > information pertaining to games? (i.e.: profile, characters, items, > etc)" > > Thanks in advance for any help and direction. > > Ben -- 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: Regarding top command in adb shell
This post might help http://groups.google.com/group/android-beginners/browse_thread/thread/e6f2d396a68238ad -- 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 Nov 10, 4:17 am, sabs wrote: > Hi all > I want to know information regarding top command in adb shell > (particular about VSS and RSS ) > > thanks > sabs -- 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: Phone to phone communication
If you want to use Wifi as radio interface you have the option to + setup a client/server infrastructure + or use the IP broadcast address In a client/server setup the server would be the central component which keeps track of your clients within the wireless LAN. You would have to implement registration/unregistration. Also a mechanism has to be implemented whether clients are still alive. In case of you are using a broadcast IP address, a device could broadcast a "Hello I am alive" message in your wireless LAN. Each device which is listening on the broadcast address would receive the message and would know about the presence of the new device. You could think of to add to this message the local IP address of the device. Other devices could use the IP address for direct communication (of course going over the AP). -- 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 Nov 8, 11:52 am, David Kebo wrote: > Hello, > I’m writing an application that requires 2 or multiple phones to talk > to each other ? Phones are on the same Wi-Fi network and will send > simple status messages to each other. I’m thinking of client-server , > with one phone as server and the others as clients, but i'm not sure. > Please provide some suggestions or references, if possible. > > Thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: android bluetooth
The following link gives you some answers about Bluetooth http://source.android.com/projects/bluetooth-faq -- 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 Nov 3, 11:43 pm, george wrote: > hi all > > can i enable the bluetooth on sdk 2.0 emulator > > thnks -- 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: Wifi does not automatically connect after boot
Could you be more specific? Are you trying to connect programmatically to the Wifi network or do you have this Wifi network configured in your Wifi settings. I noticed that after a reboot the phone automatically connects to a cellular data connectivity. After some time it connects to an already configured wifi network. If you want to force your phone to connect much faster to the Wifi network, try to disable to configured APN in your settings. In general I am missing in the Android SDK an API which supports the "preferred radio" interface. -- 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 Nov 3, 3:20 am, Urizev wrote: > Hi, > > I am developing an application which has to connect to an specific > Wifi network. It must to be automatic with no user activity. > > The phone has the configuration for this network, but it does not > connect until I press any key. Then it is a very fast process. > > What could be happening? -- 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: Manage the Wifi connection from an applicacion
When you add the configuration of your new Wifi network using the API addNetwork, did you make sure that this API is executed successfully? You also mentioned that you disable your previous connection. Make sure that you receive a connection state change event (for disconnecting) before you enable your new Wifi connection. -- 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 Nov 3, 3:26 am, Urizev wrote: > Hello, > > I have some troubles connecting to a wireless network. I enable Wifi, > start the scan, and when it is ready I search for the network I am > finding. When I have found it, I create a configuration with every > parameter and it goes properly but when I try to enable it (disabling > the others), it fails. > > Maybe I have forgeting anything? Any example I could follow? > > 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: Audio Stream Processing
You should also be able to do some audio processing on Java level. But be aware that it won't be as efficient as if you would do this on native level. For example the SipDroid application does some conversion of Audio to the G711 codec in Java. -- 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 Nov 2, 7:20 am, Tim wrote: > You can write native functions using the NDK. It should work on any > android phone. The only downside to this approach is that it can be > tricky to transfer large amounts of data between the Java VM and you > native code quickly. > > Seehttp://developer.android.com/sdk/ndk/1.6_r1/index.html > > On Nov 1, 5:08 pm, heteroskedasicity > wrote: > > > On Oct 30, 5:40 pm, "Roman ( T-Mobile USA)" > > mobile.com> wrote: > > > On SDK level you won't find any API support to render your audio > > > stream. If you want to do this, you have to do some native coding. > > > Thanks Roman. Got a link to where I could begin exploring that > > possibility? > > > Would such an API enhancement need 'phone manufacturer cooperation in > > order for it to be accessible to third party apps? Or would it be > > possible to retrofit it into an existing Android based product? > > -- 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: No internet connection in emulator
You might want to check when the emulator is started up whether your network support is correctly started You can use "dmesg" for this. <6>ashmem: initialized <6>Installing knfsd (copyright (C) 1996 o...@monad.swb.de). <4>yaffs Feb 2 2009 12:47:30 Installing. <6>msgmni has been set to 184 <6>io scheduler noop registered <6>io scheduler anticipatory registered (default) <6>io scheduler deadline registered <6>io scheduler cfq registered <4>allocating frame buffer 320 * 480, got ffc1 <4>Console: switching to colour frame buffer device 40x30 <6>console [ttyS0] enabled <6>brd: module loaded <6>loop: module loaded <6>nbd: registered device at major 43 <6>logger: created 64K log 'log_main' <6>logger: created 256K log 'log_events' <6>logger: created 64K log 'log_radio' <4>smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <4>No set_type function for IRQ 12 (goldfish) <4>eth0: SMC91C11xFD (rev 1) at c680 IRQ 12 [nowait] <4>eth0: Ethernet addr: 52:54:00:12:34:56 <7>eth0: No PHY found <4>goldfish nand dev0: size 45e, page 2048, extra 64, erase 131072 <4>goldfish nand dev1: size 400, page 2048, extra 64, erase 131072 <4>goldfish nand dev2: size 400, page 2048, extra 64, erase 131072 <6>mice: PS/2 mouse device common for all mice <4>*** events probe *** <4>events_probe() addr=0xc6804000 irq=16 <4>events_probe() keymap=qwerty2 <6>input: qwerty2 as /devices/virtual/input/input0 <6>goldfish_rtc goldfish_rtc: rtc core: registered goldfish_rtc as rtc0 <6>IPv4 over IPv4 tunneling driver <6>GRE over IPv4 tunneling driver <6>TCP cubic registered <6>NET: Registered protocol family 17 <6>RPC: Registered udp transport module. <6>RPC: Registered tcp transport module. <6>802.1Q VLAN Support v1.8 Ben Greear <6>All bugs added by David S. Miller <6>VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0 <6>goldfish_rtc goldfish_rtc: setting system clock to 2009-11-03 00:01:25 UTC (1257206485) <6>Freeing init memory: 104K <3>init: cannot open '/initlogo.rle' <6>yaffs: dev is 32505856 name is "mtdblock0" <6>yaffs: passed flags "" <4>yaffs: Attempting MTD mount on 31.0, "mtdblock0" <4>yaffs_read_super: isCheckpointed 0 <4>save exit: isCheckpointed 1 <6>yaffs: dev is 32505857 name is "mtdblock1" <6>yaffs: passed flags "" <4>yaffs: Attempting MTD mount on 31.1, "mtdblock1" <4>yaffs_read_super: isCheckpointed 0 <6>yaffs: dev is 32505858 name is "mtdblock2" <6>yaffs: passed flags "" <4>yaffs: Attempting MTD mount on 31.2, "mtdblock2" <4>yaffs_read_super: isCheckpointed 0 <3>init: cannot find '/system/bin/playmp3', disabling 'bootsound' <3>init: cannot find '/system/bin/dbus-daemon', disabling 'dbus' <3>init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery' <6>eth0: link up <6>warning: `rild' uses 32-bit capabilities (legacy support in use) What do you see when you execute "netstat -r" and netcfg? -- 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 Nov 2, 2:22 pm, erisa wrote: > After a fresh install of ubuntu 9.10 and the Android SDK, I discovered > that the emulator has no internet access. All websites produce the > "Page not available" screen when accessed by the Android browser > (1.6). I do not have a firewall and my internet access from my > computer is fully functional. Any ideas on trouble shooting? > > 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: Audio Stream Processing
On SDK level you won't find any API support to render your audio stream. If you want to do this, you have to do some native coding. -- 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 30, 2:08 pm, heteroskedasicity wrote: > 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: How to connect through HttpConnection using WiFi for Android?
Your HttpConnection code is independent from the type of data connectivity (whether it's wifi or cellular). There are no changes needed on your code. Changes might be needed when the requirements for data connectivity on Wifi are different than on cellular data. For example it might be that you are on Wifi behind a firewall and that you have to talk to a proxy to be able to connect to the internet. In this case you want to make sure that you correctly get data connectivity setup in the Wifi environment you are working in. Your main application code does not change. -- 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 28, 11:25 pm, Nemat wrote: > Hi Friends > > I have written my HttpConnection code for Android.I have also set > Network preferences. Should I change the code so that it would be able > to work for Wifi?or I dont need any change.Does the same code work for > Wifi correctly?Here is my code: > > public static String http_get(String urlParameters) > { > String msg = "",uid = ""; > int ch; > > url = url + urlParameters ; > > int BUFFER_SIZE = 2000; > InputStream in = null; > try { > in = OpenHttpConnection(url); > } catch (IOException e1) { > // TODO Auto-generated catch block > e1.printStackTrace(); > > } > > try > { > InputStreamReader isr = new InputStreamReader > (in); > int charRead; > String str = ""; > char[] inputBuffer = new char > [BUFFER_SIZE]; > try { > while ((charRead = isr.read(inputBuffer))>0) > > { > //---convert the chars to a String--- > String readString = > String.copyValueOf(inputBuffer, > 0, charRead); > str += readString; > inputBuffer = new char[BUFFER_SIZE]; > } > in.close(); > } catch (IOException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > > } > Log.i("Server",str); > > if(str.indexOf("1_")!=-1) > { > > uid = str.substring(2); > > } > else > { > > uid="0"; > > } > > } > catch (Exception e) > { > msg = e.toString(); > } > return uid; > } > > public static String postData(String user,String file, String > Contents){ > > // Create a new HttpClient and Post Header > HttpClient httpclient = new DefaultHttpClient(); > HttpPost httppost = new HttpPost(url+file); > String result=""; > > try { > // Add your data > List nameValuePairs = new > ArrayList(1); > Log.i("POSTDATA",user); > nameValuePairs.add(new BasicNameValuePair("sID", > user)); > nameValuePairs.add(new BasicNameValuePair("content", > Contents)); > httppost.setEntity(new UrlEncodedFormEntity > (nameValuePairs)); > > // Execute HTTP Post Request > HttpResponse response = httpclient.execute(httppost); > > InputStream is = response.getEntity().getContent(); > BufferedInputStream bis = new BufferedInputStream(is); > ByteArrayBuffer baf = new ByteArrayBuffer(20); > > int current = 0; > while((current = bis.read()) != -1){ > baf.append((byte)current); > } > Log.d("GETANDPOST",new String(baf.toByteArray())); > result=new String(baf.toByteArray()); > /* Convert the Bytes read to a String. */ > // text = new String(baf.toByteArray()); > // tv.setText(text); > > } catch (ClientProtocolException e) { > // TODO Auto-generated catch block > } catch (IOException e) { > // TODO Auto-gener
[android-beginners] Re: What am I doing wrong (installing and setting up Android SDK)
Have you set your path and class path variable? You can easily find out whether this is set when you try to run "javac" in your command line shell. -- 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 28, 8:59 pm, nextelbuddy wrote: > I don't know where to post this but I'm hoping someone in here may > have some insight. > > id like to start dabbling in the android SDK to see about developing > apps (got to start somewhere) > > I have android SDK 1.5 installed also downloaded the 1.6 update > (haven't installed it yet (wont let me CMD window pops up and goes > away) that's another day ill play around with > > I also downloaded Eclipse IDE for Java EE Developers as well as the > SUN Java SDK kit as I read on the android SDK site that's what I > needed > > every time I try to run Eclipse it tells me it can not detect a java > runtime environment SDK or Java virtual machine > > I have it installed what am I missing? > > Thank you for any and all 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: video frame
Nope, you would have to implement this on your own -- 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 25, 9:45 pm, Vinu Vijayan wrote: > Hi all, > > is there any api availble to get the first screen of an video file so > that we can show the first frame of the videos while listing the > videos. --~--~-~--~~~---~--~~ 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: MediaRecorder records with slow quality
Kiro, I noticed the same. Audio quality sucks using the MediaRecorder. It is very difficult to hear audio at all I was not able to improve the audio quality. I am in the hope that Android 2.0 has a much better media support! -- 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 24, 12:56 am, kiro wrote: > Hi! > > I have a problem. > > I'm recording from AudioSource as MIC using MediaRecorder, i try to > use all possible configurations of encoder, format but quality still > ugly with 8kHz and 128 kbps... > > Did some workaround solutions exist? for example record as mp3 with > 44khz? > > Thanks, > Kiro --~--~-~--~~~---~--~~ 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: Radio Transmitter
I assume that you have your own HW which is equipped with a transmitter/receiver for the range 380-450 Mhz, correct? Transmitter/Receiver of this range have a reachability of maybe 500 meters max. It would be helpful if you could give some more information about the HW you are using and which software support comes with the HW. Furthermore I suggest to ask your question in the android-porting group because based on the information I got out of your posts is, that you have to do some lower level development (accessing the radio interface of your transmitter/receiver, driver interface,). The Android platform right now only supports Wifi, cellular and bluetooth radios. Support of radios in the 433Mhz range would have to be added. -- 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 21, 8:43 pm, aggie_hellcat2009 wrote: > Which is the best method for transmitting and receiving signals at 433 > Mhz? This frequency is not the same as the phone network. The device > that I am transmitting to does not have bluetooth or Wifi either. --~--~-~--~~~---~--~~ 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 i check if an EditText is empty
You cannot check the emptiness of a String using the "=" operator! You would need to use the equals method which is a method in the String class String yourString = someEditText.getText().toString(); if (yourString.equals("") ){ } -- 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 20, 1:48 pm, JasonMP wrote: > using "if(someEditText.getText().toString == null) " doesnt work > > im passing information from this editText into a database. Ive > already limited it to 2 characters and numbers only in the xml file, > but i need to run a check to fill its defaults to 0 if nothing is > entered. I could set its default to 0, but then my hint text would > show up. Could someone give me a hand with this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can a application developed using Android used on any mobile phone type?
In general yes BUT and the BUT is very very big . Android is an OS which consists of different parts. Android is based on Linux which can in general run on whatever platform you could think of (with some more or less efforts). To be able to communicate with the HW the Linux kernel uses drivers which are normally developed by the HW vendor. On top of the Linux kernel you have the Android framework which uses libraries. Libraries are a set of functionalities bundled together. Last but not least Android consists of an application layer. On this layer you find applications written in Java ( there is something called NDK, but this might be too confusing). As you can see, the Android platform consists of different layers. To be able to run an Android application on devices like iPhone, Blackberry, ... you would have to port these Android layers or parts of Android to another platform (which is not trivial). If you want to do Android development on a mobile device try to get a device which is Android compatible. If you don't want to spend money, you can still use your PC and do testing using the emulator which comes with the Android SDK. But the really first step is to get some understanding in programming. -- 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 19, 11:52 am, SamDP wrote: > I have zero knowledge of software so pls bear with my questions b'se > they might seem to be some stupid questions. > > I want to develop a application which can be used on different cell > phones like iPhone, Blackberry, Palm. I am aware that it might need > something different for each one. May be the programming language > could be different or whatever. Again my software knowledge is zero so > will appreciate inputs, advice. > > Can a application developed using Android used on any mobile phone > type? > > Thanks > Sam --~--~-~--~~~---~--~~ 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: Radio Transmitter
For a wireless paging system you need a transceiver and a receiver. Both is available in multiple forms on wireless cell phones (Wifi, cellular, bluetooth, ...) In case of cellular the SMS has replaced the old paging system. In general if you want to implement a paging system you would need only to act on an incoming paging signal (which you can define). In case of SMS you could act on an incoming SMS messages (define a text pattern to identify a paging message) and implement your paging logic around SMS. In case of Wifi a paging system is easy to setup within a LAN. It will get complicated if you try to support paging outside your LAN network (network components are required and also you have to deal with NAT). In general Android does not support paging with specific APIs but you can implement a paging system using what Android provides on functionality. -- 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 17, 3:55 pm, aggie_hellcat2009 wrote: > I'm interested in developing a program that pages another device other > than a phone using radio signals. The program would also need to > listen for these signals back. Does Android support this or should I > be looking at the mobile devices capability? If either support this > how do I get access and use this? --~--~-~--~~~---~--~~ 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: OnCompletion video notification on MediaController and VideView usage?
You can use the onCompletion to restart the Video also if you use a VideoView and the MediaController (if you only want to replay the video) The method public void onCompletion(MediaPlayer arg0) { Log.d(TAG, "onCompletion called"); arg0.start(); // can be also executed in a loop till you are tired of watching y video } -- 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 17, 1:23 am, Clave Yard wrote: > All, > > I am playing my video file from sdcard using the following code. > > private VideoView myVideo; > private MediaController mc; > > myVideo=(VideoView)findViewById(R.id.VideoView01); > myVideo.setVideoPath(filename); > mc=new MediaController(this); > mc.setMediaPlayer(myVideo); > myVideo.setMediaController(mc); > myVideo.requestFocus(); > myVideo.start(); > > It works fine. I would like to restart the video on completion of the video.. > I saw that there is a function called 'void onCompletion(MediaPlayer mp)', > but that is only if i use MediaPlayer, not for the MediaController and > VideoView combination of playing video. But i want to get notified when the > completion of my video play, so that i can restart my video again. Basically > i want to continuously play my video. > > Could some one please suggest how do i approach it to achieve this? > --~--~-~--~~~---~--~~ 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: Which phone to use for developer?
If you get an Android phone from T-Mobile, you should be safe :-) -- 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 16, 2:03 pm, Jeffrey Blattman wrote: > i think it's safe to assume if it has google maps (the app) then it has > the google SDK. > > On 10/16/09 1:34 PM, jotobjects wrote: > > > > > Do all phones have the Google Maps API add-on library? How to find > > out which phones have that? > > > On Oct 16, 12:50 pm, RichardC wrote: > > >> Best advice I can give is to make sure any phone you want to buy has: > > >> a) The Google Market Place Application (and also the other Google > >> Apps) > > >> and > > >> b) From the font menu button you can get to: > >> [Menu]> Settings> Applications> Development> > >> USB Debugging > >> Stay awake > >> Allow mock locations > > >> Making sure the above are are all present will give you a phone > >> suitable for development of Android applicatons. > > >> -- > >> RichardC > > >> On Oct 15, 8:56 am, kengheng wrote: > > >>> Hi All, I would like to check which phone to use for the android > >>> development ? > > >>> Thanks. > > >>> -- > >>> Best regards, > >>> KengHeng. Chan > >>> Mobile : +6-016-717-0273 > >>> SQL Technology Sdn Bhdhttp://www.mysql.cc > >>> c...@mysql.cc > > -- --~--~-~--~~~---~--~~ 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: difference between CharSequence and strings
CharSequence is an interface which gives you the freedom to implement for example a String class. -- 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 15, 9:44 pm, jax wrote: > what is the difference between CharSequence[] and a String[]? --~--~-~--~~~---~--~~ 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: Playing video in Android not showing the video, playing sound only with a still image
You are using in your code mVideoView.setVideoPath(path); but you are trying to play a video from web address. I assume that setVideoPath expects a local path on your file system (Android documentation is very bad and does not say anything). Use video.setVideoURI(Uri.parse("rtsp: wrote: > I tried to play a you tube movie through the media app provided in the > samples. The emulator is running fine but once i click the media apps > and try to play the video demo, i get the following error : "Sorry > this video cannot be played" > > Here is the code and i am trying to play a youtube video in my > emulator: > > package com.example.android.apis.media; > > import com.example.android.apis.R; > import android.app.Activity; > import android.graphics.PixelFormat; > import android.net.Uri; > import android.os.Bundle; > import android.util.Log; > import android.widget.MediaController; > import android.widget.Toast; > import android.widget.VideoView; > import android.media. > > public class VideoViewDemo extends Activity { > > /** > * TODO: Set the path variable to a streaming video URL or a local > media > * file path. > */ > private String path = "http://www.youtube.com/watch? > v=0p_6ZruRC_c"; > private VideoView mVideoView; > > @Override > public void onCreate(Bundle icicle) { > super.onCreate(icicle); > setContentView(R.layout.videoview); > mVideoView = (VideoView) findViewById(R.id.surface_view); > > if (path == "") { > // Tell the user to provide a media file URL/path. > Toast.makeText( > VideoViewDemo.this, > "Please edit VideoViewDemo Activity, and set path" > + " variable to your media file URL/path", > Toast.LENGTH_LONG).show(); > > } else { > > /* > * Alternatively,for streaming media you can use > * mVideoView.setVideoURI(Uri.parse(URLstring)); > */ > mVideoView.setVideoPath(path); > mVideoView.setMediaController(new MediaController(this)); > mVideoView.requestFocus(); > > } > }} > > On Sep 29, 2:33 pm, Mark Murphy wrote: > > > shobhit kasliwal wrote: > > > I tried the DemoApi's that come's with the sdk but still no luck. > > > I am still getting a still image with audio if I try to run teh Wmv file > > > and for 3gp and mp4 I am not getting anything. > > > WMV is not supported onAndroidgenerally. WMV may be supported on > > select devices from manufacturers. > > > > I am not geting what the problem is...?? > > > 1. Start with avideofile known to work with your sample, or known to > > work onAndroid. > > > For example: > > >http://www.law.duke.edu/cspd/contest/finalists/ > > > At least the "Documentaries and You"videoworks fine onAndroid. I have > > used it with numerous training classes, with my sample code I linked to > > earlier. > > > 2. Check your warnings in logcat to see if anything shows up. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > AndroidApp 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 drop call???
Could you rephrase your question? If you want to drop programmatically a call, you cannot do this "officially" with the Android SDK. If you try to get the duration of a call, try to capture Call state changes. -- 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 12, 8:27 am, midoub wrote: > Hi, > I want to fix duration of call, someone have ideas how I can do > This??? > > Thanks for your help. > > Regards, --~--~-~--~~~---~--~~ 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 install
You might be interested to look at the following page http://www.androidonhtc.com/ -- 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 12, 8:20 am, chaos wrote: > can android be installed on a phone that had window mobile on it at > first the phone is a att tilt made by htc. --~--~-~--~~~---~--~~ 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 use the Network Manager?
Based on your preferred interface list, I would first do a scan on Wifi. Look for open Wifi networks to connect without security codes. Otherwise open a dialog that the user can enter the security information for the secured network. If no Wifi network is available turn off Wifi which automatically triggers to connect to cellular data. Have a broadcast receiver implemented to check for network changes. When you receive a network change you can use the code below to find out what your actual network is. To find out about your current connection: ConnectivityManager connection = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connection.getActiveNetworkInfo(); Log.d(TAG,"type:"+networkInfo.getTypeName()); To connect to a wifi network you have to create a WifiConfiguration. After adding your configuration to the WifiMgr with mWifiMgr.addNetwork(wifiConfiguration); you can connect to the network with boolean successConnected = mWifiMgr.enableNetwork(inetId, true); In your broadcast receiver you should receive an intent about the network status change. -- 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 8, 3:29 am, Gautam Tripathi wrote: > I need to connect my device to the network. > I have a preference order of Wifi/GPRS/dial-up modem in sequence. > How do I go about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to use the Network Manager?
Based on your preferred interface list, I would first do a scan on Wifi. Look for open Wifi networks to connect without security codes. Otherwise open a dialog that the user can enter the security information for the secured network. If no Wifi network is available turn off Wifi which automatically triggers to connect to cellular data. Have a broadcast receiver implemented to check for network changes. When you receive a network change you the code below to find out what your actual network is. To find out about what your current connection is do ConnectivityManager connection = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connection.getActiveNetworkInfo(); Log.d(TAG,"type:"+networkInfo.getTypeName()); To connect to a wifi network you have to create a WifiConfiguration. After adding your configuration to the WifiMgr with mWifiMgr.addNetwork(wifiConfiguration); You can connect to the network with boolean successConnected = mWifiMgr.enableNetwork(inetId, true); In your broadcast receiver you should receive an intent about the network status change. -- 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 8, 3:29 am, Gautam Tripathi wrote: > I need to connect my device to the network. > I have a preference order of Wifi/GPRS/dial-up modem in sequence. > How do I go about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problem involving emulators and networking.
When you are in a LAN you can use the IP broadcast address to send out some "hey, it me! Who is out there" messages. Other clients would receive the broadcast and respond back with their IP address. -- 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 6, 6:22 am, Craig Panton wrote: > Hey thanks for the reply. I understand a bit better what I need to do now > but still having a lot of bother on actually finding devices via the ip > address and connecting through this. are there any tutorials or sample code > on how to do this anywhere? > > On Oct 5, 2009 9:30 PM, "Roman ( T-Mobile USA)" < > > roman.baumgaert...@t-mobile.com> wrote: > > 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 eit... --~--~-~--~~~---~--~~ 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: 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: 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: 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: Chosse the connection interface before sending request?
The current SDK does not support Wifi AdHoc. You can enable Wifi-AdHoc on system level, but you would need to root the phone and write some JNI wrapper or socket communication to access this functionality from application level. Regarding to the support of two interfaces at the same time you also need to change the platform code. Android SDK right now does not support multiple interfaces at the same time. In general you are able to get the things done, but you need platform changes. -- 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, 1:32 am, DWischer wrote: > Hi, > > what im trying to do is, to connect the phone to an adhoc wlan with no > internet access. Over this connection, i connect to a printer, to > print over wireless. > Normal http Requests should be made over the UMTS connection of the > phone. > > Is it possible to choose the interface which will be used for the > connection? How is this made? > > 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: real-time audio transfer over Wi-Fi
Based on your description there are no problems writing such an application. My understanding is that your connection is only half-duplex, means you send the traffic only in one direction. When I mentioned that with mixing Voip and data traffic in a Wifi network the quality of your connection could decrease, I wanted to say that in your WLAN there might be also other systems communicating over Wifi. Android SDK does not support specifically audio streaming which is recorded over the mic (there are no APIs for Voip :-( ). You have to think about the following + signaling + RTP streaming For the signaling you can use your own proprietary protocol or an existing protocol like SIP or XMPP (have a look at SipDroid which uses MjSIP) Also SipDroid implements some RTP socket communication which you can use in your application. -- 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 Sep 28, 10:32 pm, kevin j wrote: > This is helpful. I wouldn't call what I'm doing Voip, though it is > similar. Without going through the Internet, I want to send audio or > data to a nearby Wi-Fi enabled PC. I don't need to mix the two, > because I'm only sending one type at a time. Would the SDK Voip > services still apply to this situation, ie, will the SDK support this > type of Voip? > > On Sep 21, 12:39 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > Android gives you the support to doreal timeaudio (Voip) on SDK > > level. > > > As a good example check out the app SipDroid. If you mix Voip traffic > > with data traffic, > > you might get a different audio quality overWifi. The reason is that > > normal data traffic has different traffic characteristics then Voip > > overWifi. > > > You will find research papers on this topic which talk about mixing > > different traffic types on aWifinetwork. > > > -- > > 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 Sep 20, 7:14 pm, kevin j wrote: > > > > I would like to know if the following application is possible given > > > the currently available tools and OS services. I want to send audio > > > from the microphone inreal-timeover Wi-Fi to a Windows desktop > > > application. I also want to send data which represents what screen > > > icons have been tapped. I want to receive audio and data the same way > > > - using Wi-Fi. > > > > Sincerely, > > > > Kevin J- 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: connect to wifi from Program
When you get disconnected (use networkInfo.getDetailedState() to get current network state), the API getDetailedState() should tell you that you are disconnected. Try to scan for available networks executing mWifiMgr = (WifiManager)mContext.getSystemService (mWifiService); mWifiMgr.startScan(); Also implement a broadcast receiver which acts on scan results. For example add to your onReceive method if(intent.getAction().equals (WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)){ //Loop through the scan result and get the capability (which authentication,key management, ...) //select a result where the network is open (I assume you don't have key management information) //create a WifiConfiguration //add the WifiConfiguration to your WifiMgr using addNetwork //enable your new WifiConfiguration using mWifiMgr.enableNetwork } The last step should result in a network state change which you can capture again in your context receiver. -- 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 Sep 27, 6:12 pm, musunee md wrote: > Hi all, > > How another available wifi can be connected from program once other network > is down? > I got stuck in choosing from availabe wifi after 1 n/w is down. > > 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: ADT plugin for eclipse
When you try to create a project you should be able to see Android as a new option. -- 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 Sep 24, 11:46 am, John Douma wrote: > I am using Eclipse 3.4 on Windows XP. I downloaded and installed the > Android SDK, version 1.6, in accordance with the instructions > athttp://developer.android.com/sdk/1.6_r1/installing.html. I also > installed the Android Developer Tools and Android DDMS plugins. > However, when I restart Eclipse to set the Android preferences, no > entry for Android appears on the left panel of the screen. Also, I > don't see any menu items for Android at all in the work bench of > Eclipse. > > How do I know if my plugin installation succeeded correctly? I see > both the development tools and ddms listed under installed > applications. Does this mean they installed correctly or are there > other indicators? --~--~-~--~~~---~--~~ 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 launch android emulator
You can run the emulator using the Eclipse IDE or via command line. Follow the instructions on http://developer.android.com/sdk/1.6_r1/index.html for the latest SDK version. Make sure that you download the Android package for the correct platform. If you add more information what exactly you are doing, this would be helpful! -- 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 Sep 24, 11:21 am, Android_n00b wrote: > You have to be more specific. Did you create an avd? > > On Sep 24, 12:31 pm, Androidbeginner wrote: > > > I followed the instruction to load Android in (http:// > > source.android.com/download). I am using Ubuntu ver9.03. I am having > > trouble to launch emulator. Message I got: emulator:cannot excute > > binary file. Anyone has ideas why? > > > Thanks > > Androidbeginner. > > --~--~-~--~~~---~--~~ 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 connect to the internet behind proxy ?
Can you connect with a normal browser to the internet or do you need already a proxy in your desktop browser? If you have no proxy configured in your normal browser on your desktop, there is no need to add any proxy stuff on the Android emulator. -- 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 Sep 22, 3:28 pm, "tinyang" wrote: > Can you connect to the internet without the proxy on the emulator? > > -Original Message- > From: android-beginners@googlegroups.com > > [mailto:android-beginn...@googlegroups.com] On Behalf Of rcy > Sent: Thursday, September 17, 2009 7:02 AM > To: Android Beginners > Subject: [android-beginners] How to connect to the internet behind proxy ? > > Hi All, > > Not recently I installed the android SDK for the first time. After playing > with the emulator I notice that I can’t log in to the internet via the > browser application. > I looked for a and found the following command : “emulator -avd em15 - > http-proxy ” > > For the I copy the prams’ from the browser (Tools à Internet Option > à Connection à Lan settings ) but still I can’t see any WebPages via the > browser. > > Any suggestion ? > > Thanks > > No virus found in this incoming message. > Checked by AVG -http://www.avg.com > Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/17/2009 > 3:55 PM > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Active and deactivate the Wifi Radio
Using the WifiLock only makes sure that you keep the Wifi on for your data connectivity. If you use WifiManager.setWifiEnabled(boolean ) you are still able to enable/disable the Wifi transport independently whether you have a Lock acquired or not. -- 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 Sep 21, 12:17 pm, mist3r0 wrote: > Hello everyone,how can I do to enable and disable the Wifi Radio? > > If I try to instantiate the object > > WifiLock wifi = new WifiLock (); > > tells me that the costructor is not visible! > > What should I do? > > 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: Connecting to Android Emulator from Local Computer
get some understanding of port forwarding in Android http://developer.android.com/guide/developing/tools/adb.html -- 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 Sep 20, 11:53 pm, Timothy Ong wrote: > Hi guys, > I'm developing a basic web adapter servlet to allow android to connect > to a axis web service. > I'm using 10.0.2.2 from android to connect to my local computer which > is running the web service. > My problem comes when I'm trying to redirect the connection back to > the android emulator through response.sendRedirect(). > > Would anyone how to connect to the android emulator in this case? As > in the IP for the emulator. > > Regards, > Timothy --~--~-~--~~~---~--~~ 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: real-time audio transfer over Wi-Fi
Android gives you the support to do real time audio (Voip) on SDK level. As a good example check out the app SipDroid. If you mix Voip traffic with data traffic, you might get a different audio quality over Wifi. The reason is that normal data traffic has different traffic characteristics then Voip over Wifi. You will find research papers on this topic which talk about mixing different traffic types on a Wifi network. -- 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 Sep 20, 7:14 pm, kevin j wrote: > I would like to know if the following application is possible given > the currently available tools and OS services. I want to send audio > from the microphone in real-time over Wi-Fi to a Windows desktop > application. I also want to send data which represents what screen > icons have been tapped. I want to receive audio and data the same way > - using Wi-Fi. > > Sincerely, > > Kevin J --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: make my own libraries
Another method would be to create a native library using the NDK if you need native support. -- 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 Sep 19, 9:13 pm, Jeffrey Blattman wrote: > i understand that you can create a jar in whatever manner you wish, and > then import the JAR into your project (in eclipse). another different > option is to create an android service, then pre-install the service for > use by your other apps. > > On 9/19/09 5:23 AM, Michael Dorin wrote: > > > Hello, > > I am making libraries that I would like to use on different projects. > > So far I am just copying the code in... > > > Is there an easy way to make a 'library' project...and I import? > > > Thanks, > > Mike > > -- --~--~-~--~~~---~--~~ 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: Development on the MyTouch 3G
Yes! -- 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 Sep 17, 4:42 pm, somatt wrote: > does that come with android > > On Sep 14, 3:37 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > If you are a fan of the G1 you will be also be a fan of the new > > Motorola cliq which comes with a keyboard. > > -- > > 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 Sep 14, 9:31 am, Matt wrote: > > > > I for one would never buy a phone without a keyboard. MyTouch is > > > ridiculous > > > for exactly that reason. > > > > On Sep 13, 2009 9:27 PM, "Roman ( T-Mobile USA)" < > > > > roman.baumgaert...@t-mobile.com> wrote: > > > > Well, a myTouch user isn't t likely to inadvertently write > > > > > applications > > > > that don't work without... > > > Hm, he could ... but testing might me tough :-) > > > > -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together > > > The > > > views, opinions and st... > > > > On Sep 13, 8:17 pm, Chris Stratton wrote: > On Sep 13, > > > 9:45 pm, "Roman ( T-Mobil... > > --~--~-~--~~~---~--~~ 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: Open socket through gprs
Nope, this is currently not supported in the Android SDK. You can change the platform code and write your own JNI API to use this functionality. -- 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 Sep 15, 1:34 am, Borut wrote: > Hi > > I need to connect to a certain server with a socket connection. No > problem, that's the easy part. > > The problem is that a socket should be done exclusively through gprs > connection, not through wifi. > > So, is it possible to force a socket connection to be opened through > gprs signal even though a wifi is also enabled and active at the same > time? --~--~-~--~~~---~--~~ 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 Emulator suddenly won't boot...
Are you able to run the emulator via command line? May be your AVD image got corrupted ... -- 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 Sep 16, 8:44 am, Jack Ha wrote: > Have you looked at the "adb logcat" output? > > -- > Jack Ha > Open Source Development Center > ・T・ ・ ・Mobile・ stick together > The coverage you need at the price you want > > 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 16, 5:10 am, furby wrote: > > > I had the 1.5 android emulator starting from Eclipse perfectly > > nicely until yesterday when it suddenly won't finish booting. I > > haven't installed anything new (Running it on Windows Vista - i know, > > uck, but I'm waiting for Win 7 to hurry up), haven't even changed the > > java code I am trying to run... > > > The emulator starts up, get's to the point where it shows "Android" > > with the nice lighting effect that goes from left to right over it and > > then just stays in that state. Last night I tested it by starting it > > up, going out to the living room, watching two hour long episodes of > > the first series of Doctor Who, and then coming back in (Essentially > > giving it 1.5 hours to do it's stuff) - it was still stuck in that > > state > > > Any ideas what I did 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: How to disable connection to internet in android phone?
There are already several threads on this topic. For example http://groups.google.com/group/android-developers/browse_thread/thread/752a2e56dce42123 Also look for "changing the APN settings". -- 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 Sep 15, 7:42 am, kiro wrote: > b.c. it costly by my provider and eats battery --~--~-~--~~~---~--~~ 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: Unable to start Wi-fi
What do you mean with "setting up network"? Right now you can do data connectivity having Wifi disabled. The emulator is able to simulate 3G data connectivity. If you try to communicate with a server located on the desktop you might have to setup port forwarding (look for android port forwarding). -- 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 Sep 14, 8:19 pm, andriod learner wrote: > To be able to test the application of network availables in emulator, is > there any steps for setting up network within emulator enviornments? > > thanks, > > andy > > On Tue, Sep 15, 2009 at 1:14 PM, Roman ( T-Mobile USA) < > > roman.baumgaert...@t-mobile.com> wrote: > > > On the emulator there is no Wifi support. > > > -- > > 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 Sep 14, 5:31 pm, andriod learner wrote: > > > Hi, > > > > I want to test the application to detect network over emulator but in > > > emulator, it display unable to start wi-fi under wireless control. How > > can i > > > solve this problem? any suggestions? > > --~--~-~--~~~---~--~~ 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: hwo to test call?
Read the following thread http://groups.google.com/group/android-platform/browse_thread/thread/88f1de1bcb6ccd94 -- 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 Sep 14, 6:50 pm, zhy wrote: > Hi everyone > After the emulator start up, I send a call to the emulator by ddms. > But the phone does not have any notification. > In Logcat it says: > > 09-15 09:44:30.019: INFO/CallNotifier(683): CallNotifier: rejecting > incoming call: device isn't provisioned > > how can I do? Can somebody help me? > > Thanx --~--~-~--~~~---~--~~ 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: Unable to start Wi-fi
On the emulator there is no Wifi support. -- 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 Sep 14, 5:31 pm, andriod learner wrote: > Hi, > > I want to test the application to detect network over emulator but in > emulator, it display unable to start wi-fi under wireless control. How can i > solve this problem? any suggestions? --~--~-~--~~~---~--~~ 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: Development on the MyTouch 3G
If you are a fan of the G1 you will be also be a fan of the new Motorola cliq which comes with a keyboard. -- 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 Sep 14, 9:31 am, Matt wrote: > I for one would never buy a phone without a keyboard. MyTouch is ridiculous > for exactly that reason. > > On Sep 13, 2009 9:27 PM, "Roman ( T-Mobile USA)" < > > roman.baumgaert...@t-mobile.com> wrote: > > Well, a myTouch user isn't t likely to inadvertently write > applications > > that don't work without... > Hm, he could ... but testing might me tough :-) > > -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The > views, opinions and st... > > On Sep 13, 8:17 pm, Chris Stratton wrote: > On Sep 13, > 9:45 pm, "Roman ( T-Mobil... --~--~-~--~~~---~--~~ 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 Vs J2ME
J2Me is Java platform for embedded devices. Android instead is a mobile OS which consists of - a Linux kernel, - middle layer written in Java and native and - an application layer. -- 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 Sep 13, 9:33 am, Alok wrote: > I have a basic question. J2ME is a subset of core Java + Special > functionality specific to mobile devices. The reason : Mobile devices > are resource constrained devices. Lack of memmory , processing power > etc etc... > Now Android can use the entire core java.(Correct me if i am wrong). > So is it because of just increased capability of Android mobile > devices or any other reasons.. > Thanks, > Alok. --~--~-~--~~~---~--~~ 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: Development on the MyTouch 3G
> Well, a myTouch user isn't t likely to inadvertently write > applications that don't work without a slide-out keyboard ;-) Hm, he could ... but testing might me tough :-) -- 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 Sep 13, 8:17 pm, Chris Stratton wrote: > On Sep 13, 9:45 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > Don't worry. You have not to send back your MyTouch. You can do what > > you can do with the G1 or developer phone. > > Well, a myTouch user isn't t likely to inadvertently write > applications that don't work without a slide-out keyboard ;-) --~--~-~--~~~---~--~~ 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: Development on the MyTouch 3G
Don't worry. You have not to send back your MyTouch. You can do what you can do with the G1 or developer phone. I assume that the web page is not updated with newer information. Changes on myTouch - improved battery life - system RAM from 192MB to 288MB - ROM storage from 256MB to 512MB - Cupcake Android 1.5 firmware ... and of course the look changed ... -- 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 Sep 12, 7:52 am, Sid wrote: > Hi - I just ordered a T-Mobile myTouch 3g to develop Android apps on. > I read on the Android Developers URL > http://developer.android.com/guide/developing/device.html > that the suggested devices to test/develop apps on are the "Android > dev phone" and the classic "G1". > > Can I test and/or develop apps on a myTouch 3g also? Apart from the > virtual kbd, are there any differences, as far as app development > goes? > > 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: confusion about bluetooth
Nope, there is nothing available on Java level. You could try to write some JNI wrapper to access the interfaces on native level (look in extern/bluez folder). -- 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 Sep 11, 2:17 pm, cellurl wrote: > How about USB? > Can we access USB from Java? > > -jim > > On Aug 24, 2:02 pm, gymshoe wrote: > > > Ah. Thank you. > > > On Aug 24, 12:58 pm, "Mark Murphy" wrote: > > > > > The current Android release offers: > > > > "StereoBluetoothsupport (A2DP and AVCRP profiles) " > > > > (http://developer.android.com/sdk/android-1.5-highlights.html) > > > > > However, it has also been stated in the developers forum: > > > > "There is noBluetoothAPI in the SDK at this time". > > > >http://groups.google.com/group/android-developers/browse_thread/threa... > > > > > So how are theBluetoothA2DP or AVCRP profiles used if there are no > > > >BluetoothAPI's? > > > > There are noBluetoothAPIs available in the SDK for Java applications. > > > Applications and features built into the firmware have access to bluez. > > > > -- > > > 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 import packages in android?
If you have a jar package or the source code you can always add a dependency to the project settings. When you open the properties of your project and check the Java build path you can add libraries or Java Projects as additional dependency. -- 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 Sep 11, 6:39 am, mmkr wrote: > Hai, > > In my application in need to use the java.image.io package, but it is > not suppoted by android. Is there any way i can import packages into > android. Please help me. > > I need to do the image processing in my app, which can be done through > image.io. If it is not really possible please let me know. It would be > helpful for me. > > Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How Can I Block Unwanted Calls.
Mark, I agree. It's a good point that being able to block incoming calls is a dangerous functionality ... -- 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 Sep 10, 8:48 am, Mark Murphy wrote: > Roman ( T-Mobile USA) wrote: > > > There are several similar threads about this on the forum. It seems > > like you can block incoming calls using what is available on SDK/NDK > > level. For example the application Panda firewall gives you the > > functionality to block an incoming call. I have not had time yet to > > find out how they are doing this. No idea whether they are using the > > unofficial way ... Mark, tell us the secret :-) > > If I'm the "Mark" in question, I don't know the secret. Again, AFAIK, > there is no officially supported way to do this. > > Every now and then, I'll talk about undocumented approaches, but I try > to limit that to things that are non-critical (e.g., how to change the > looks of tabs in TabWidget). Blocking incoming phone calls...even if I > knew how to do it, I would not be discussing it on an open list like > this. After all, malware might exploit this capability to block all > incoming calls, or random incoming calls, or something. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > 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 Can I Block Unwanted Calls.
There are several similar threads about this on the forum. It seems like you can block incoming calls using what is available on SDK/NDK level. For example the application Panda firewall gives you the functionality to block an incoming call. I have not had time yet to find out how they are doing this. No idea whether they are using the unofficial way ... Mark, tell us the secret :-) -- 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 Sep 10, 2:29 am, eNtriZe wrote: > Ok thanks for reply. > There is no official support to block unwanted calls what about > unofficial support ? > Any information about this ? > > Regards! > > On Sep 8, 4:11 pm, "Mark Murphy" wrote: > > > > Can any one tell me how i can block unwanted calls through my application? > > > There is no officially supported way to do 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: Know when Outgoing Call has been answered or whatever state
The current call states which you get on SDK level are public static final int CALL_STATE_IDLE Device call state: No activity. Constant Value: 0 (0x) public static final int CALL_STATE_OFFHOOK Device call state: Off-hook. At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting. Constant Value: 2 (0x0002) public static final int CALL_STATE_RINGING Device call state: Ringing. A new call arrived and is ringing or waiting. In the latter case, another call is already active. Constant Value: 1 (0x0001) ( http://developer.android.com/reference/android/telephony/TelephonyManager.html) It would be nice if the Android SDK could offer a better telephony support. -- 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 Sep 9, 4:06 am, Mark Ellul wrote: > Hi, > > I am wondering if its possible to know when an outgoing call (made by > an Intent) has been answered? > > If so, any pointers would be appreciated > > Regards > > Mark --~--~-~--~~~---~--~~ 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: Call to activity problem
For being able to start an activity you need a context. One possibility is to pass a reference of your application context to your class from which you want to call startActivity. Something like class A extends Activity { void yourMethodA(){ ... B b = new B(getBaseContext() ); ... } } class B{ Context mContext=null; public B(Context context){ mContext = context; } void yourMethod(){ . i = new Intent(mContext, YourActivity.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i); } } Also check out the API getApplicationContext() -- 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 Sep 9, 4:57 am, "kapil.k" wrote: > i am reading the sms body from > > class SmsRx extends Brodcast receiver{/./} > > I want to start some activity after receiving sms but as this class is > not activity i am unable to start my new activity.so can you please > tell me what shoul i do so that i can start activity after receiving > the sms. --~--~-~--~~~---~--~~ 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 detect the availability of networks programatically in andriod emulator?
I would recommend to play around with the service which Android currently supports for data connectivity. private String mWifiService= Context.WIFI_SERVICE; private String mTelephonyService = Context.TELEPHONY_SERVICE; private String mConnectionService = Context.CONNECTIVITY_SERVICE; Try to write an application which implements a broadcast receiver to get familiar with the events for the different radios. You find many blogs and tutorials about how to write a broadcast receiver. Make sure that you update your manifest file with the permissions and the broadcast receiver. Permissions: Dependent on the functionality you want to support you might have to add some more permissions. In general Android can only be connected with one network at the same time, which makes your application pretty easy. If you want to display the available networks, this is a different story. -- 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 Sep 7, 8:08 pm, andymoris wrote: > I am trying to implement the application which listens the > availability of networks in emulator or real T mobile device later on. > For example, the application shows all availabe network such as wifi, > LAN and public networks > According to the connection/disconnections, it only have to show > current connected networks available at all time. > > I have found wifiManager in SDK but i can't find for 3G. > > plese, give me some suggestions/ sample prg to start up writing above > program as I am quite new to this platform. > > your reply would be much appreciated. > > Thanks all in advance. > > Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: A sample mobile banking solution
The security requirements on your banking application are independent from the platform you are going to use. Based on your requirements you would have to investigate what Android is supporting and what you have to extend. -- 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 Sep 7, 2:12 am, Sudeep Jha wrote: > Hi all, > Can anybody tell me something about the security architecture > required to build a mobile banking solution in android? > Warm Regards, > Sudeep > > -- > Warm Regards, > Sudeep --~--~-~--~~~---~--~~ 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 there a way to install LiveAndroid to PC permanently?
Instead of running LiveAndroid directly why not running it on a virtual machine on your system? -- 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 Sep 3, 11:02 am, windrg wrote: > Hello, All? > I'd like to see if there is a way to install LiveAndroid to PC > permanently? > Pls let me know if you have...^^ > I really hope get a real Android machine that is networking available. > > Thx. --~--~-~--~~~---~--~~ 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 Phone
HTC Hero from Motorola ? I was not aware of that Motorola had money to buy HTC :-) -- 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 Sep 6, 2:44 am, Maxood wrote: > Go for the HTC Hero from Motorola...its awesome! Or you can also > consider buying a TMobil G1 phone. There are other varieties as well. > I'm not sure whether about AT&T service though. > You may check their websites. > > Maqsood > > On Sep 5, 7:31 am, pdelaney wrote: > > > Hello; > > I have just begun developing for the Android phone and all of my test > > have been on the emulator. I realize I need to get a real phone, but > > I am not sure which one I should get. I have AT&T service and they do > > not have an Android phone to date only iPhone. > > > Could someone recommend a phone that I may purchase that will allow me > > to test my application while also using it as a phone with my current > > AT&T service? > > Peter > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hi all! How can I get the default apn setting.
You can get the APN settings displayed using the activity string ACTION_APN_SETTINGS using Intent i = new Intent(Settings.ACTION_APN_SETTINGS ); (look at http://developer.android.com/reference/android/provider/Settings.html) but I did not find out how you can retrieve the APN name via a get method. -- 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 Sep 4, 10:40 pm, Garbin wrote: > Hello! Does anyone can tell me how can I get the apn that selected by > user in "access point names". thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: remove apllication from emulator prob
When you uninstall don't use the name of your apk file. You have to specify the package name of your application. For example if you have an application called test.apk the package name of the app might be ownpackage.test.com then uninstall the app with adb uninstall ownpackage.test.com -- 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 Sep 4, 5:27 am, kapnk...@gmail.com wrote: > thanks for your reply .that is fine but why this default commands are not > finding my packages?does my applications are on another location how to get > that is there any command? > > On Fri, Sep 4, 2009 at 5:20 PM, Mark Murphy wrote: > > > > i want to remove application from emulator > > > i am useing > > > adb shell in tool derectory > > > i got > > > # > > > then i used > > > # cd /data/app > > > # > > > > here i am not getting any .apk files on emulator?so is the path is not > > > same or any other way to remove files > > > You do not remove applications from any Android device or emulator that > > way. > > > You can use the Settings application to manage applications on the > > emulator the same way as you do on the device. Or, you can use the adb > > uninstall command: > > > adb uninstall your.package.name.here > > > -- > > 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: problems getting started
When you create your first Android application you normally have not to do anything besides creating an Android project. The Eclipse ADT is going to create all the needed resources for you. Check the following - Your Eclipse: for example Version: 3.4.1 Build id: M20080911-1700 - the Problems-tab in Eclipse editor - make sure that ADT is correctly installed -- 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 Sep 3, 8:49 am, leeuwerik wrote: > I'm brand new to Android (although not to Eclipse and Java). > Yesterday I installed ADT within Eclipse (always latest versions) both > on Windows and XP. > Then I try creating HelloWorld by following the tutorial. > > When creatin the android project I get an error on the line > setContentView(R.layout.main) ==> R unknown. > > I tried ctr-shift-O ==> import android.R is added but the error > remains. > > Undaunted I follow the tuturial and edit to create a TextView instead > ==> application runs, i.e. I see a mobile terminal image with > 'ANDROID' written in the centre. On XP it's strange: after a seemingly > long time-out the text font changes and an icon (android) is added > after the text. > > Next I try editing the resource .xml files as suggested in the > tutorial in order to change the text. This also implies reintroducing > the line with setContentView(R.layout.main) in lieu of the TextView. > This time no error reported > > When inspecting main.xml, the new layout and text look OK. Yet when > running the application I keep getting the same mobile picture, i.e. > without the new text. It looks like the emulation doesn't work > properly. > I rebuilt the application from scratch and did another tutorial, with > the same negative result. > > I must say that I'm lost. > Can anyone help please --~--~-~--~~~---~--~~ 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: Any way to measure network traffic ?
You could use the netstat application netstat -I -b which gives the the number of incoming and outgoing traffic. -- 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 Sep 3, 8:59 am, FaticaLabs wrote: > Sorry, > Never mind, I found this:http://www.jaqpot.net/netcounter/ > I will study that one since it is open source. > > On 3 Set, 17:56, FaticaLabs wrote: > > > Hi all, > > I did not find any application for doing this, so I would like to > > write one ( please tell me if I'm wrong ). > > I would like to measure how many bytes are sent/received over the > > internet ( not wifi ). Is there some event ( intent ) to be notified > > from ? The so collected data will then be reported in a monthly > > fashion, to measure how the phone company will bill the user. > > 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: apk install error
When you select the target for the AVD in the emulator, which one are you selecting? Based on the name of your application (mapact) you are using Google APIs for the map support, correct? Try to use target 3. Also make sure that in your Manifest you have "uses-library" to include the map library. -- 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 Sep 2, 10:08 pm, geeth ganesh wrote: > when i try to install the apk in emulator i'm getting this error... Y > > ./adb install /home/.../tools/mapdemo/bin/mapact-debug.apk > * daemon not running. starting it now * > * daemon started successfully * > 56 KB/s (4703 bytes in 0.081s) > pkg: /data/local/tmp/mapact-debug.apk > Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] > > -- > with regards > Geetha --~--~-~--~~~---~--~~ 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: rssi of multiple wifi networks
I am only aware of getting the signal level after a successful scan with class ScanResult. You could convert the signal level back to a RSSI value. Based on the documentation the class WifiInfo can be used for connections which are already setup or in the progress of being setup. You might be able to initiate a connection and try to get the RSSI with getRSSI also if you are not able to get connected. I did not try this yet and for sure it would not be the fastest way. -- 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 Sep 2, 3:03 am, eska wrote: > Hi, > > It is posible to get rssi of all avilable network connections? > > The only think I managed to do is to read the rssi value of network > I'm conected to: > > wifiService=(WifiManager) getSystemService(Context.WIFI_SERVICE); > wifiService.getConnectionInfo().getRssi(); --~--~-~--~~~---~--~~ 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: startActivity() crash...
Justin, In case of the calendar application the activities have no action assigned. When you try to start this activities from SDK level you get the permission error because you don't have the correct permissions. When you start the calendar application with calendarIntent.setClassName ("com.android.calendar","com.android.calendar.LaunchActivity"); the calendar app is brought to the foreground at the last activity it was. If you left the calendar app in the MonthActivty, it will be in the monthActivity after executing the command above. I assumed that you can use the PackageManager to find out about activities but PackageInfo packageInfo = pm.getPackageInfo (taskInfo.topActivity.getPackageName(), GET_ACTIVITIES); in case of the calendar application returns NULL. I noticed that the approach you took works fine for 3rd party apps and some of the system apps but not all system apps ... -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 30, 11:45 pm, Tikoze wrote: > Roman, > > I very well may be missing something here, but using > taskInfo.topActivity still does not work (even if a taskInfo > instance)... The problem, at least for the Calendar, is that > taskInfo.topActivity.getClassName() does not return > com.android.calendar.LaunchActivity It returns > com.android.calendar.MonthActivity or com.android.calendar.DayActivity > or com.android.calendar.WeekActivity and all of those cause my app to > crash. > > Actually, if you look at the very first post I made about this, I am > using the topActivity object to modify the newly created intent... > > Am I not supposed to use taskInfo.topActivity.getClassName()? That is > what I assume you mean when you mention "activity name" because I > cannot find anything in the topActivity object that references an > activity name. > > I have a workaround for the problem, as mentioned in an earlier post, > but I am still interested in figuring out the cause of this problem to > help me better understand the Android operating system. > > Thanks, > Justin --~--~-~--~~~---~--~~ 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: Voice Encryption
The voice stream for cellular communication is not exposed to the SDK level. If you try to do some Voip it is possible. But keep in mind that the SW envryption/decryption is very slow especially using Java. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 30, 9:09 am, TripShock wrote: > What I would like to do is encrypt all voice communication (over a > telephone network) between two devices running Android. Is it possible > to do this? If yes, how? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Change system time
Normally your phone gets the time information from your telephony layer using NITZ. The Ril layer passes the time information up to the higher level. I am assuming that you cannot change the time settings as a normal user. You might be able to change the time using the date command as root, but then you want to make sure that you block that the ril layer passing up the time information received over the network. I am not sure whether this is what you want to do -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 26, 10:50 pm, debuti wrote: > Hi everyone! > > I'm looking forward to code a ntp application for android. The issue > is that i dont know how to achieve this with the latest api, i dont > know how to change/set the current phone time/date. > > Any suggestions? > > Thanks dudes. --~--~-~--~~~---~--~~ 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: Developing application in Android
For sure you already found the following page http://developer.android.com/index.html?utm_campaign=en&utm_source=en-ha-na-us-bk&utm_medium=ha Download the Android SDK for your system (Windowsm, Linux or Mac) I recommend to start playing around with the SDK. You find on the Android SDK page information how to install and start developing a HelloWord application which you can test on the emulator. Of course if you are serious about Android programming get an Android beginner book. Most of your up coming beginner questions are answered somewhere on this forum. But don't hesitate to reach out for help -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 9:42 am, blixs wrote: > Hi!! > > I am a programmingstudet at the Norwegian It-University. Now in the > second year we have a huge proyect where we have to develope a product > to a event. To do it best we have to make an mobile application in the > Android Platform. I have worked with Java, and want to develope me in > this area, but I don't have experiencie about Android. Therefor, I'm > looking for help here, what can I use for make the application and if > exist an API. Do I need to get an Android-cellphone to test if it > work, or can I emulate it in the computer? > > Best regards! > > J --~--~-~--~~~---~--~~ 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: Forced G1 Dev Phone reboot?
You can write a system application which uses the intent ACTION_REBOOT. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 28, 4:48 pm, Kent Loobey wrote: > Is there a way to force a G1 Phone to reboot? > If so how. --~--~-~--~~~---~--~~ 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: Configure my Account without G1
You should be able to connect to 2G or 3G. If this does not work at all I recommend to go to a T-Mobile store to get your phone checked. If you are living in an area with bad T-Mobile 3G coverage, also let T- Mobile know. They will try to improve 3G coverage. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 10:40 pm, Jose Ayerdis wrote: > Is there any way to configure my account at start of my HTC Dream G1 without > having G3 i do have wireless but seems odd does not detec it and i cant > access the settings to configure it ... > > any ideas ? > > thank you > > -- > Atte > > [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: startActivity() crash...
Justin, For being able to start up a system application you need to find out the package name and the activity name. In case of Calendar app it is package="com.android.calendar" activity android:name="LaunchActivity" which results in the intent calendarIntent.setClassName ("com.android.calendar","com.android.calendar.LaunchActivity"); In case of the Calculator package="com.android.calculator2" activity android:name="Calculator" calculatorIntent.setClassName ("com.android.calculator2","com.android.calculator2.Calculator"); You are able to get the activity name with taskInfo.topActivity (of course q taskInfo instance is required). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 26, 11:19 pm, Tikoze wrote: > Roman, > > Thanks for looking into this issue. I spoke with another developer > who has published a similar app on the market and was able to come up > with a workaround for the problem. > > Is the solution you described specific to the calendar activity or can > it be used in general? > > e.g. Can I use myIntent.setClassName(packageName, > packageName.LaunchActivity)? > > If that works, then I would rather use that since that code is cleaner > than my current solution. > > Thanks, > Justin > > On Aug 26, 1:37 pm, "Roman ( T-Mobile USA)" > mobile.com> wrote: > > Justin, > > > With the following line of code you should be able to start up the > > calendar app > > > calendarIntent.setClassName > > ("com.android.calendar","com.android.calendar.LaunchActivity"); > > > -- > > Roman Baumgaertner > > Sr. SW Engineer-OSDC > > ·T· · ·Mobile· stick together > > The views, opinions and statements in this email are those of the > > author solely in their individual capacity, and do not necessarily > > represent those of T-Mobile USA, Inc. > > > On Aug 26, 9:00 am, "Roman ( T-Mobile USA)" > > mobile.com> wrote: > > > Justin, > > > > I verified your latest remark about the usage of the hard-coded > > > example which causes an exception. Sorry, for the misleading > > > information. > > > > I only guess that you are not allowed to start some of the systems > > > applications in the way how you want to do it. For sure someone from > > > the Android team should be able to give some more insight information > > > on this. > > > > -- > > > Roman Baumgaertner > > > Sr. SW Engineer-OSDC > > > ·T· · ·Mobile· stick together > > > The views, opinions and statements in this email are those of the > > > author solely in their individual capacity, and do not necessarily > > > represent those of T-Mobile USA, Inc. > > > > On Aug 26, 8:02 am, Tikoze wrote: > > > > > Wow... it has been over a week since anyone other than me has > > > > responded to this post. No one has any ideas on what is 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: startActivity() crash...
Justin, With the following line of code you should be able to start up the calendar app calendarIntent.setClassName ("com.android.calendar","com.android.calendar.LaunchActivity"); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 26, 9:00 am, "Roman ( T-Mobile USA)" wrote: > Justin, > > I verified your latest remark about the usage of the hard-coded > example which causes an exception. Sorry, for the misleading > information. > > I only guess that you are not allowed to start some of the systems > applications in the way how you want to do it. For sure someone from > the Android team should be able to give some more insight information > on this. > > -- > Roman Baumgaertner > Sr. SW Engineer-OSDC > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Aug 26, 8:02 am, Tikoze wrote: > > > Wow... it has been over a week since anyone other than me has > > responded to this post. No one has any ideas on what is 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: startActivity() crash...
Justin, I verified your latest remark about the usage of the hard-coded example which causes an exception. Sorry, for the misleading information. I only guess that you are not allowed to start some of the systems applications in the way how you want to do it. For sure someone from the Android team should be able to give some more insight information on this. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 26, 8:02 am, Tikoze wrote: > Wow... it has been over a week since anyone other than me has > responded to this post. No one has any ideas on what is 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: what is the fast way to save/load string from/in an array?
Instead of using Strings, try to use StringBuffer. Normally the usage of StringBuffer's is more efficient than normal Strings. By the way for analyzing your code to find out where you spend most of the time, use the traceview tool. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 25, 11:25 am, Liviu Ungureanu wrote: > Thank you for reply,, > > I want to save the history for my application in a file on sdcard. > > First i tried to save it as xml and parse it to load...but these actions > take a lot of time..(almost 8 seconds for 20 strings on a HTC Hero device); > > this is the code: > > package com.app.lookitup2; > > import java.io.BufferedInputStream; > import java.io.BufferedWriter; > import java.io.File; > import java.io.FileInputStream; > import java.io.FileNotFoundException; > import java.io.FileWriter; > import java.io.IOException; > import java.util.ArrayList; > > import org.apache.http.util.ByteArrayBuffer; > > import android.content.Context; > import android.os.Environment; > import android.util.Log; > > public class HistoryManager > { > > private ArrayList history_items; > private Context context; > private final String WHAT_TAG_START = ""; > private final String WHAT_TAG_END = ""; > private final String WHERE_TAG_START = ""; > private final String WHERE_TAG_END = ""; > private final String DATE_TAG_START = ""; > private final String DATE_TAG_END = ""; > private final String ITEM_TAG_START = ""; > private final String ITEM_TAG_END = ""; > > public HistoryManager(Context ctx) > { > context = ctx; > > history_items = new ArrayList(); > } > > public void addHistoryItem(HistoryItem h_item) > { > history_items.add(h_item); > } > > public HistoryItem getHistoryItem(int position) > { > return history_items.get(position); > } > > public boolean saveHistory() > { > > String data; > int i; > > File root = Environment.getExternalStorageDirectory(); > File history_file = new File(root,"history_lookitup.xml"); > if(history_file.length() >= 1048576) > { > Log.e("SAVE_HISTORY","History is full!Please empty!"); > return false; > } > > data = new String(""); > > for(i = 0; i < history_items.size(); i++) > { > data = data + ITEM_TAG_START + > WHAT_TAG_START + > history_items.get(i).getWhat().getText().toString() + WHAT_TAG_END + > WHERE_TAG_START + > history_items.get(i).getWhere().getText().toString() + WHERE_TAG_END + > DATE_TAG_START + > history_items.get(i).getDate().toString() + DATE_TAG_END + > ITEM_TAG_END; > } > > try > { > if(root.canWrite()) > { > FileWriter history_writer = new > FileWriter(history_file,true); > BufferedWriter out = new BufferedWriter(history_writer); > > out.write(data); > out.close(); > Log.e("SAVE HISTORY","History is saved"); > return true; > } > else > { > Log.e("SAVE HISTORY","no sd card or no permission to write > on it"); > return false; > } > } catch (IOException e) > { > Log.e("WRITE FILE","Could not write file " + e.getMessage()); > return false; > } > > } > > public boolean loadHistory() throws IOException > { > String myString = " "; > ArrayList items; > > FileInputStream is; > try { > > is = new FileInputStream("/sdcard/history_lookitup.xml"); > BufferedInputStream bis = new BufferedInputStream(is); > > ByteArrayBuffer baf = new ByteArrayBuffer(50); > int current = 0; > while((current = bis.read()) != -1) > baf.append((byte)current); > > myString = new String(baf.toByteArray()); > > if(myString.equals(" ") == false) > { > HistoryParser parser = new HistoryParser(" version='1.0' encoding='UTF-8'?>" + myString + "",context); > > items = new ArrayList(); > items = parser.getItemList(); > Log.e("FIRST_HISTORY", items.get(0).getDate().toString()); > Log.e("DATA",myString); > > history_items = items; > Log.e("history_items = > ",Integer.toString(history_items.size())); > return true; > } > else > return false; > > } catch (FileNo
[android-beginners] Re: Get arguments from another activity
The usage of intents is a little bit more complex and there are different options available how to communicate between your two activities. Try to understand the basics of intents (action, data, ...) Basics: - http://developer.android.com/reference/android/content/Intent.html When you start another Activity you have to decide how you want to communicate back to the calling activity. Please, get familiar with Start other activities:startActivity(Intent) and startActivityForResult - http://developer.android.com/reference/android/app/Activity.html) Also get some understanding how to write your Manifest to use intents correctly. Check out the following link: - http://developer.android.com/guide/topics/manifest/intent-filter-element.html -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 25, 12:48 am, Sebeto wrote: > Hi, > > I try to get the value of a parameter from another activity, but can't > succeed in doing that. I found things about putExtra/getExtra, but > couldn't get it to work unfortunately. > > Problem: > I've got a TabActivity called "methodes", which has a TabHost. The > contents of the Tabs are activities, and I need to retrieve in these > activities the value of maValeur (which is actually a > ArrayList). My application is "net.sebeto.android.essai". > > public class Methodes extends TabActivity > { > public static ArrayList maValeur; > public void onCreate(Bundle savedInstanceState) > { > > // I initialize "maValeur", ... > (...) > > // MethTab2 will be the content of the second tab > Intent Tab2 = new Intent(this, MethTab2.class); > Tab2.putStringArrayListExtra > ("net.sebeto.android.essai.Methodes.maValeur", maValeur); > > TabHost host = getTabHost(); > (...) > host.addTab(host.newTabSpec("two").setIndicator > ("Valeur").setContent(Tab2)); > } > > } > > Now: > > public class MethTab2 extends Activity > { > private ArrayList maValeurBis; > > @Override > public void onCreate(Bundle savedInstanceState) > { > super.onCreate(savedInstanceState); > > // How to get the value of maValeur?? > // I found no way to use getStringArrayList? > // maValeurBis = savedInstanceState.getStringArrayList > ("net.sebeto.android.cuisine.Methodes.maValeur"); crashes, ... > // I can get the value with maValeurBis = > Methodes.maValeur; but I'm not sure that it's > // a good way to do it, is it? It works, but... do you > think it's a good method? > > maValeurAdapter = new ArrayAdapter(this, > R.layout.methtab2,maValeurBis); > ListView list = new ListView(this); > list.setAdapter(maValeurAdapter); > list.setSelector(android.R.color.transparent); > setContentView(list); > } > > } > > Thank you for your answers, I'm a perfect beginner in java and in > android... If someone could give me a code which would work it would > be great! I know that it's probably very simple but... --~--~-~--~~~---~--~~ 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: INTERNET
If you use an emulator try to set your DNS when you start the emulator ./emulator -dns-server -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 20, 8:52 pm, Mitch wrote: > I'm not trying to use HTTP, the "www.google.com" was just a URL I knew > would be able to respond. Turns out that if I replace the > "www.google.com" with it's IP "74.125.53.105" then it works. Don't > know why. > > I would like to get 2 android simulators talking so I can test 2 way > communications with data. I haven't found out how to get 2 simulators > up yet either. > > On Aug 19, 11:14 pm, Mitch wrote: > > > I would like to play around with sockets to see if I can get them to > > work, but I'm not having any luck. Here's what I tried: > > > new Socket("www.google.com", 80); > > > I've also tried > > > new Socket("localhost", 7); > > > but anything you can suggest that's simple is appreciated. I'm no > > socket expert so I'm not sure if these are considered simple > > examples. > > > I read that I should add INTERNET permission to my manifest, so I did > > this too: > > > > > http://schemas.android.com/apk/res/android"; > > package="com.kea" > > android:versionCode="1" > > android:versionName="1.0"> > > > > > android:label="@string/app_name"> > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > > > > > permission> > > > > > I'm just trying to learn so there's no real goal, just looking for a > > simple example that I can get working. Any hints what I'm missing? > > 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: INTERNET
It really depends on what you are trying to accomplish. If you want to implement a simple application using sockets you can try so setup a server on your desktop and execute the following commands from the Android device Socket s = new Socket("); PrintWriter out = new PrintWriter(s.getOutputStream(), true); out.println("Hello World"); The server should listen on the port you have specified in your Android app. If you don't want to implement any server you also can download netcat. It is a very powerful TCP/IP testing tool. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 11:14 pm, Mitch wrote: > I would like to play around with sockets to see if I can get them to > work, but I'm not having any luck. Here's what I tried: > > new Socket("www.google.com", 80); > > I've also tried > > new Socket("localhost", 7); > > but anything you can suggest that's simple is appreciated. I'm no > socket expert so I'm not sure if these are considered simple > examples. > > I read that I should add INTERNET permission to my manifest, so I did > this too: > > > http://schemas.android.com/apk/res/android"; > package="com.kea" > android:versionCode="1" > android:versionName="1.0"> > > android:label="@string/app_name"> > > > android:name="android.intent.category.LAUNCHER" /> > > > > > permission> > > > I'm just trying to learn so there's no real goal, just looking for a > simple example that I can get working. Any hints what I'm missing? > 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: INTERNET
It really depends on what you are trying to accomplish. If you want to implement an application simple application using sockets you can try so setup a server on your desktop and execute the following commands from the Android device Socket s = new Socket("); PrintWriter out = new PrintWriter(s.getOutputStream(), true); out.println("Hello World"); The server should listen on the port you have specified in your Android app. If you don't want to implement any server you also can download netcat. It is a very powerful TCP/IP testing tool. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 11:14 pm, Mitch wrote: > I would like to play around with sockets to see if I can get them to > work, but I'm not having any luck. Here's what I tried: > > new Socket("www.google.com", 80); > > I've also tried > > new Socket("localhost", 7); > > but anything you can suggest that's simple is appreciated. I'm no > socket expert so I'm not sure if these are considered simple > examples. > > I read that I should add INTERNET permission to my manifest, so I did > this too: > > > http://schemas.android.com/apk/res/android"; > package="com.kea" > android:versionCode="1" > android:versionName="1.0"> > > android:label="@string/app_name"> > > > android:name="android.intent.category.LAUNCHER" /> > > > > > permission> > > > I'm just trying to learn so there's no real goal, just looking for a > simple example that I can get working. Any hints what I'm missing? > 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: startActivity() crash...
Justin, The framework does a check on the permissions of the applications you are trying to start. In the case of how you are trying to start the activities the framework does not grant the permission. In general if you would be root or the owner of the calendar application (in this case its the system ) you get the permission granted right away to start the activity. In your case the check for the permission is not successful because of the wrong permission is passed down to the framework. I did not find out what permission you need in your case. But if you want to spend time investigating the framework code look at checkComponentPermission() in frameworks/base/services/java/com/ android/server/am/ActivityManagerService.java final int perm = checkComponentPermission(aInfo.permission, callingPid, callingUid, aInfo.exported ? -1 : aInfo.applicationInfo.uid); if (perm != PackageManager.PERMISSION_GRANTED) { if (resultRecord != null) { sendActivityResultLocked(-1, resultRecord, resultWho, requestCode, Activity.RESULT_CANCELED, null); } String msg = "Permission Denial: starting " + intent.toString() + " from " + callerApp + " (pid=" + callingPid + ", uid=" + callingUid + ")" + " requires " + aInfo.permission; Log.w(TAG, msg); throw new SecurityException(msg); } By the way starting the calendar app in this way does not cause any exception Intent calendarIntent = new Intent() ; calendarIntent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT ); calendarIntent.setClassName ("com.android.calendar","com.android.calendar.MonthActivity"); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 18, 8:23 pm, Tikoze wrote: > Any ideas on why my app doesn't have permissions to launch the > Calendar app when it is running but it does have permissions to launch > virtually any other running app > > This bug is driving me crazy! > > Thanks in advance for any pointers/suggestions > Justin --~--~-~--~~~---~--~~ 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: Cannot see my HTC Magic via DDMS to take screenshot
On your phone go to the settings/application and select development ( I am not sure what this would be in your language ..). The enable USB debugging. -- 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 Jun 24, 1:33 am, kidhermes wrote: > Hello > > I'm new to Android and will start to develop on. But I can't connect > my phone (HTC Magic, branded Swisscom in Switzerland) to my XP Eclipse > + SDK 1.5r1. > > First I will simply take a few screenshot following this > process:http://blog.digitaltinder.net/2009/06/how-to-take-android-screenshots/ > > Won't! I can run the emulator via Eclipse with a project, but when I > plug my phone (debug mod on as requested), DDMS doesn't me any device. > Empty. > In my device manager on XP, I can see my phone as "HTC Android Phone > USB Device". And when I mount the drive, I can access to my sd card > with all the application and files. > > Any advice(s)? > > A lot of thx in advance. > Regards, Dom --~--~-~--~~~---~--~~ 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: help needed creating a AVD
Try to do a java -version to see whether you have access to your java environment. If not your environment variables are not correctly setup. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 17, 12:55 pm, automerc wrote: > I just got a new laptop with x64 vista and i'm following the > development on setting up my laptop for development but I keep getting > a error when I try to create my AVD. > When i tried to enter the android create avd --name -- > target > command into the commandprompt it gives me a error > java is not recognized as an internal or external command, operable > program or batch file > > I remember setting it up on a xp laptop (broken now) before and > everything worked but I can't remember if I went this step or not --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can android support MIDP ?
MIDP is not supported on Android. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 15, 8:41 pm, conqueror wrote: > Can any MIDP app such as a game run on android ( google phone ) ? --~--~-~--~~~---~--~~ 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: startActivity() crash...
It might be helpful to see also the logcat trace of your crash. Have you tried to use the debugger or debug prints to find out where and when exactly your code crashes? I am assuming that you have defined the following permission in your Manifest -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 17, 9:08 am, Tikoze wrote: > Here is the code that I am using to bring a "running" activity > to the foreground: > > ActivityManager.RunningTaskInfo task = getTask(idx); > if (task != null) > { > Intent intent = new Intent(); > intent.setClassName(task.topActivity.getPackageName(), > task.topActivity.getClassName()); > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > try > { > m_context.startActivity(intent); > } > catch (ActivityNotFoundException e) > { > Toast.makeText(m_context, "Unable to launch > activity...", Toast.LENGTH_SHORT).show(); > } > > } > > - Crash Scenario 1: > Switching to any task in the list of running task that has started > another activity (i.e. task.topActivity and task.baseActivity are > different) causes a crash. I have tried the code above using both > task.topActivity and task.baseActivity but the results are the same... > force close. > > - Crash Scenario 2: > Switching to specific tasks always causes a force close. For example, > when I try to switch to the Calendar Task when it is "running" my > program always crashes. However, I can successfully switch to Google > Maps, Home, Browser, and most others. > > I have been unable to find any information about these issue anywhere > in google groups or on the internet... --~--~-~--~~~---~--~~ 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: startActivity() crash...
It might be helpful to see also the logcat trace of your crash. Have you tried to use the debugger or debug prints to find out where and when exactly your code crashes? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 17, 9:08 am, Tikoze wrote: > Here is the code that I am using to bring a "running" activity > to the foreground: > > ActivityManager.RunningTaskInfo task = getTask(idx); > if (task != null) > { > Intent intent = new Intent(); > intent.setClassName(task.topActivity.getPackageName(), > task.topActivity.getClassName()); > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > try > { > m_context.startActivity(intent); > } > catch (ActivityNotFoundException e) > { > Toast.makeText(m_context, "Unable to launch > activity...", Toast.LENGTH_SHORT).show(); > } > > } > > - Crash Scenario 1: > Switching to any task in the list of running task that has started > another activity (i.e. task.topActivity and task.baseActivity are > different) causes a crash. I have tried the code above using both > task.topActivity and task.baseActivity but the results are the same... > force close. > > - Crash Scenario 2: > Switching to specific tasks always causes a force close. For example, > when I try to switch to the Calendar Task when it is "running" my > program always crashes. However, I can successfully switch to Google > Maps, Home, Browser, and most others. > > I have been unable to find any information about these issue anywhere > in google groups or on the internet... --~--~-~--~~~---~--~~ 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: Beginner Android-Java development:
In general if you understand one OO programming language then it should be not a big deal to pick up Java. But it is not a bad idea to go through some Java tutorials. Sometimes you will be shocked what the language has to offer which you are not aware of. Another thing what I recommend to study is to read something about effective Java programming. When you work on the Android platform the code should still run on an embedded device. It is important to understand how to do this with Java -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 12:05 pm, Clave Yard wrote: > hi > > I am a new-bie for Java development and also Android. But i have well > experince on developing other mobile device development such as Windows > Mobile, Palm and iPhone. Basically know C,C++ well. > > Please someone or from Android team advice how should i learn it? Do i need > to learn Java basics first and then study Android? OR Can i directly work on > Android - Java development so that i can pickup Java as well as about > Android? And where i can get and start the tutorials to study(i know about > developer.android.com), which should be the perfect way based on my current > skills? > > Clave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Hello World Emulator Issue
Can you see whether your application is uploaded to the emulator? You should see something like this [2009-08-12 19:53:12 - Test3] Waiting for HOME ('android.process.acore') to be launched... [2009-08-12 19:53:13 - Emulator] 2009-08-12 19:53:13.704 emulator [22750:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. [2009-08-12 19:54:19 - Test3] HOME is up on device 'emulator-5554' [2009-08-12 19:54:19 - Test3] Uploading Test3.apk onto device 'emulator-5554' [2009-08-12 19:54:19 - Test3] Installing Test3.apk... [2009-08-12 19:54:30 - Test3] Success! [2009-08-12 19:54:30 - Test3] Starting activity com.test.test on device [2009-08-12 19:54:32 - Test3] ActivityManager: Starting: Intent { comp= {com.test/com.test.test} } If not let me know what you can see in your console window. If you are able to successfully start the emulator you could try to use adb install to install your application manually. Any luck with this? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 12, 6:05 pm, Structure wrote: > So, no resolution this time either? > > On Aug 11, 3:47 pm, Structure wrote: > > > Still no luck. There's no extra emulator process running. I restarted > > my computer to make absolutely sure and still no go. > > Any other ideas? > > > On Aug 11, 3:36 pm, Roman wrote: > > > > Use the TaskManager on Windows to find out whether another emulator > > > process is running. If so kill the process and restart the emulator. > > > > -- > > > Roman Baumgaertner > > > Sr. SW Engineer-OSDC > > > ·T· · ·Mobile· stick together > > > The views, opinions and statements in this email are those of the > > > author solely in their individual capacity, and do not necessarily > > > represent those of T-Mobile USA, Inc. > > > > On Aug 9, 11:05 pm, Structure wrote: > > > > > I'm starting out in Android developing but I can't seem to even get > > > > the very first Hello World tutorial to run. I've followed the > > > > instructions > > > > athttp://developer.android.com/guide/tutorials/hello-world.html. > > > > When I run the application from within eclipse the emulator starts up > > > > fine and eventually I get to the home screen but my application > > > > doesn't start. > > > > There's no errors in the output: > > > > [2009-08-10 17:41:07 - Hello] Android Launch! > > > > [2009-08-10 17:41:07 - Hello] adb is running normally. > > > > [2009-08-10 17:41:07 - Hello] Performing > > > > com.android.helloandroid.HelloAndroid activity launch > > > > [2009-08-10 17:41:07 - Hello] Automatic Target Mode: launching new > > > > emulator with compatible AVD 'my_avd' > > > > [2009-08-10 17:41:07 - Hello] Launching a new emulator with Virtual > > > > Device 'my_avd' > > > > > I did a search for this issue and it seems to have come up a few times > > > > but there were no resolutions. > > > > I'm on Vista 32bit. Any help would be 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] Re: Android UI related:
Please, find below a possible way how you could implement the logic. If you have problems with filling out the missing code, feel free to contact me. - use button.setText to change the text on a button - use findViewById( ) to change the resource id public class ButtonSwap extends Activity implements OnClickListener protected Button button1, button2; protected boolean mSwitch = true; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //button button1 = (Button)findViewById(R.id.Button01); button2 = (Button)findViewById(R.id.Button02); button1.setOnClickListener(this); button2.setOnClickListener(this); ... } public void onClick(View v) { if (v.getId() == button1.getId()) { Log.d(TAG,"you pressed button 1"); } else if (v.getId() == button2.getId()) { Log.d(TAG,"you pressed button 2"); } mainLogic(); } void mainLogic(){ Log.d(TAG,"switch:"+mSwitch); //we swap the text on the buttons if(mSwitch){ Log.d(TAG,"TRUE"); //change the resource Id for the buttons } else{ Log.d(TAG,"FALSE"); //change the resource Id for the buttons } mSwitch = !mSwitch; } -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 12:49 pm, Calve Martin wrote: > Hi, > > I'm new to Android development. I want to create Two rectangle button > on my application. I want to apply swapping logic for that two > buttons. For ex: When i press first button it should move to second > button and second button will come to first button place. > How to do that in Android? Can anyone please provide me the links > where i can go and directly catch that logic? > Note: I know about developer.android.com website already. > > thanks. > > Calve. --~--~-~--~~~---~--~~ 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: AVD extremely slow...
Make sure that you have not too much running on your system. It is not necessarily the speed of your processor but the memory of your system. -- don't use firefox -- Eclipse might slow down y system (close it ... may be it helps) -- run emulator via command line -- if you run on Windows use the task manager to find out what else is using a lot of memory -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 10, 9:36 am, WaltFromBavaria wrote: > Dear Developpers, > > I created a 'Hello-World'-application on my PC and saw that the AVD is > very slow. > When I type text in the simulation, it takes several seconds until the > text appears in the > text field. Also mouse interactions are very slow. > Possibly my PC is too slow. it's a single core AMD with 1.6 GHz > > Are the simulations on your PCs running reasonably fast ? > I just want to make sure it's my PC. > > Regards, > Walter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---