[android-beginners] Re: forms
This is how I connect to a php script that I wrote. To fill in a form on any website surely it's just a matter of loading it in the browser? hope this helps John s = callWebPage(Constants.WebCall, ? do=startgroupphone=+getMy10DigitPhoneNumber()); exampel of a webcall the url is in Constants.WebCall public String callWebPage(String URLstring, String parameters){ String s; try { URL updateURL = new URL(URLstring+parameters); URLConnection conn = updateURL.openConnection(); InputStream is = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is); ByteArrayBuffer baf = new ByteArrayBuffer(50); Log.e(SettingsDialog, after the call to web); int current = 0; while((current = bis.read()) != -1){ baf.append((byte)current); } Log.e(SettingsDialog, back from web page+parameters); /* Convert the Bytes read to a String. */ s = new String(baf.toByteArray()); Log.e(SettingsDialog, String.format(in callWebPage = %s ,s)); return s; } catch (Exception e) { Log.e(SettingsDialog, exception in callWebPage); } return error; } On Nov 11, 8:54 pm, mnish twan...@gmail.com wrote: Hello all, Can someone please tell me how to do the following in andoird?: 1. connect to a website 2. fill in a form with necessary information 3. get the found information Even if you know just answer to one of those questions please drop some lines of info. thank you very much in advance, mnish -- 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] Having problems trying to find the right way to parse text files.
Hello all, I'm trying to get a usable program for the Android to allow it to sync with Emacs Org-Mode. I'm pretty good with Python, but Java is a new beast to me. Currently, I've got it so that it can contact the server and sync the files. However, now that I've got the files downloaded, I'm trying to get it parsed and split into a ListView so that it can be viewed and edited. (An example of what I'm trying to do can be found here: http://mobileorg.ncogni.to/[1] ). The files each look like this: * Headline 1 Some Body Text ** (Headline 2) First Child of Headline 1 *** (Headline 3) First Child of Headline 2 ** (Headline 2) Second Child of Headline 1 * Headline 2 I'm stuck figuring out the best way to store the data object-wise to easily go through the headlines and children, and to pass the info to a ListAdapter. Any thoughts? [1] The MobileOrg software was developed for the iPhone, but it looks like it's doing the equivalent of a series of ListViews. When an item is selected, it show a ListView of the children of the headline. Ideally, each ListView would open up all the children onClick(), and open up a context menu onListViewLongClick(). -- 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 update TextView on a scheduled-basis
Lance Nanek wrote: The painless threading blog post here mentions a lot of nice ways: http://android-developers.blogspot.com/2009/05/painless-threading.html Lance, i wouldn't load a heavy canon (read Threads) for such a light task instead i would use Handlers pskink -- 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
Re: [android-beginners] Re: Unable to update TextView on a scheduled-basis
HI I think in pizza time example u can see the update of textview ... On Thu, Nov 12, 2009 at 4:47 PM, skink psk...@gmail.com wrote: Lance Nanek wrote: The painless threading blog post here mentions a lot of nice ways: http://android-developers.blogspot.com/2009/05/painless-threading.html Lance, i wouldn't load a heavy canon (read Threads) for such a light task instead i would use Handlers pskink -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09176147148 -- 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] Fwd: Oi, preciso de um favor
【アランロゲ】 -- Forwarded message -- From: João Carlos Camargo jcamargo.segura...@gmail.com Date: 2009/11/12 Subject: Fwd: Oi, preciso de um favor To: João Barros jsouzabarr...@yahoo.com.br, Bruna Caroline Vieira Ferreira brunacaroline_vie...@hotmail.com, \Allan Rogge de Menezes Souza\ a pc.alla...@gmail.com, altamir alves de assis filho altamir...@ig.com.br -- Forwarded message -- From: Bruna Caroline Vieira Ferreira brunacaroline_vie...@hotmail.com Date: 2009/11/11 Subject: Oi, preciso de um favor To: Oi, preciso de um favor Desculpe te incomodar é muito urgente Tenho um amigo que veio de muito longe e precisa ficar em algum lugar. Sendo assim, indiquei sua casa. Te peço que o receba e o ame. O nome dele é Jesus Cristo. Agora diga bem baixo: Pode entrar Senhor, eu preciso de Ti, limpa meu coração com Teu sangue e abençoe a minha família. Mande pra 20 pessoas e vai receber um milagre amanhã * Se acredita em Deus envia esta mensagem a 20 pessoas, se rejeitar lembre do que Jesus disse: se me negas entre os homens, te negarei diante do pai Dentro de 4 minutos te dirão uma noticia boa -- Novo Windows 7: Seu computador mais simples e fácil. Conheça!http://www.microsoft.com/brasil/windows7/default.html?WT.mc_id=1539 -- 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] support of jdbc for sqlite
Hi, can i open connection to sqlite database using JDBC and use all the classes that are in java.sql or i have to use SQLiteOpenHelper.getWritableDatabase() and use android.database.sqlite -- 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 update TextView on a scheduled-basis
Why, yes. The blog post is good. But it inspires me to wonder: what is Guy's native language? I ask because he gave a classic learner's mistake confusing the gerund with the participle. I refer to: Since everything happens on a single thread performing long operations, like network access or database queries, on this thread will block the whole user interface. As it stands, 'performing' must be a participle, which leaves like network access or database queries dangling without a role in the sentence. But with moving just one comma (and adding the clarifying parentheses), it now parses correctly as a gerund, to read: Since everything happens on a single thread, performing long operations (like network access or database queries) on this thread will block the whole user interface. I am sure many readers of this forum will find that version of the sentence much more memorable as well as easier to follow. On Nov 11, 10:36 am, Lance Nanek lna...@gmail.com wrote: The painless threading blog post here mentions a lot of nice ways:http://android-developers.blogspot.com/2009/05/painless-threading.html On Nov 9, 12:12 pm, Chris cpar...@alum.rpi.edu wrote: Hello everyone, I'm new to Android (but not Java), so bear with me. I'm trying to create a stopwatch-type UI, where a digital timer is displayed and incrementing every second. I started off creating atextviewand attempted to update thistextview(TextView.setText()) using either the TimerTask class to update the view in a timer as well as updating the view in the same thread, using a Thread.sleep(1000). In either case, the view does not get updated. Obviously this doesn't seem to be the proper way to go about updating a text view. Any suggestions on the proper way to notify thetextview? Thanks Chris -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Game Save/Load File
Roman, Thanks so much for the direction. I didn't want to start working with a certain solution just to find that another function would have worked better. Thanks again. On Nov 11, 10:58 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: Hi Ben, A very fast and easy way to store profile information is using Android's sharedPreferences http://developer.android.com/reference/android/content/SharedPreferen... 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 belliot...@gmail.com 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] Puzzled By ImageView
Hi all, My first post. Greetings. I'm toying around with the Notepad tutorial and adding some functionality. So far, I've successfully added a timestamp to the note which is subsequently displayed to the left of the note title in the listview after saving a new note. However, as you can see below, I'm attempting to load and display a small .png file in the row as the first element - no luck so far. It seems fairly straight forward from the few docs I have found. The resource (yellowbutton) is created and listed as a drawable in the R file after saving the image to the drawable folder, and everything compiles fine. However the image (yellowbutton) isn't displayed in the row. Perhaps ImageView isn't the class/attribute I should be using? Any insight would be greatly appreciated. Code is below. Thanks. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/yellowbutton android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/text1 xmlns:android=http:// schemas.android.com/apk/res/android android:textColor=#FFF0CC android:textStyle=bold android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1/ TextView android:id=@+id/date xmlns:android=http:// schemas.android.com/apk/res/android android:textColor=#FFF0CC android:textStyle=italic android:gravity=right android:layout_marginLeft=40px android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1/ /LinearLayout -- 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] Simple animation question
Hello Android newbie here. Let's say I have two Drawables and I want to swap them and animate the swapping process. Is there an animation class that will take care of this or do I have to use a thread and draw each frame step-by-step? 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] LinearLayout View Tutorial, weight behavior
Hi Everyone... Very short background... I'm currently a C developer (not C++ unfortunately... so no experience with OOP) who writes homebrew for the nintendo DS. I'm exploring moving away from that platform and towards the Android. That said, I'm doing as suggested at the end of the LinearLayout View tutorial and modifying the weight values to see how it affects the size of the columns and rows. The structure seemed very simple, so it seemed obvious that modifying the first weight (the top half) to 2 should give the top section 2/3rds of the screen and the bottom only 1/3rd. Instead... it appeared to be reversed... the upper area had become the smaller third (this is in the emulator... I do not have actual hardware yet). I tested the same idea on the color columns and the more expected result occured... the columns with greater weight were now wider and seemed to take up the correct fractional area of the screen. Any particular reason for this behavior? Thanks everyone, Jeremiah -- 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] Google Voice Search vs Voice Dial
I find that Google Voice Search is pretty accurate in finding any kind of information, but the Voice Dial is abolustely horrible in finding matching contact info. Often the Google Voice search will find the exact information on the web that is in the Contacts. Is there a syntax to get the Google Voice Search to search through Contacts? -- 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 text displayed on emulator in Hello World program
Hello, I'm using NetBeans, and I have the same problem, the emulator does not show the text. I got this error: Device's package manager not ready to install new packages On Nov 5, 9:59 am, Walker Rowe wer...@walkerrowe.com wrote: Hi, Following the tutorial I wrote the hello world application shown below and eclipse shows the console messages shown at the bottom. Problem is the emulator launched just has normal graphical display and does not show the message Hello, Android. package com.rosewoodhillfarm.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(Hello, Android); setContentView(tv); } } [2009-11-05 12:37:57 - Android Project]-- [2009-11-05 12:37:57 - Android Project]Android Launch! [2009-11-05 12:37:57 - Android Project]adb is running normally. [2009-11-05 12:37:57 - Android Project]Performing com.rosewoodhillfarm.helloandroid.HelloAndroid activity launch [2009-11-05 12:37:57 - Android Project]Automatic Target Mode: Preferred AVD 'my_avd' is not available. Launching new emulator. [2009-11-05 12:37:57 - Android Project]Launching a new emulator with Virtual Device 'my_avd' [2009-11-05 12:38:01 - Android Project]New emulator found: emulator-5554 [2009-11-05 12:38:01 - Android Project]Waiting for HOME ('android.process.acore') to be launched... [2009-11-05 12:38:34 - Android Project]HOME is up on device 'emulator-5554' [2009-11-05 12:38:34 - Android Project]Uploading Android Project.apk onto device 'emulator-5554' [2009-11-05 12:38:34 - Android Project]Installing Android Project.apk... [2009-11-05 12:38:48 - Android Project]Success! [2009-11-05 12:38:48 - Android Project]Starting activity com.rosewoodhillfarm.helloandroid.HelloAndroid on device [2009-11-05 12:38:56 - Android Project]ActivityManager: Starting: Intent { cmp=com.rosewoodhillfarm.helloandroid/.HelloAndroid } -- 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
Re: [android-beginners] Re: how to hide keyboard when done typing
For the HTC Eris, the bottom leftmost button has an icon of a keyboard with an down arrow. Pressing that button will hide the keyboard. And like the others have said, the back button works too. On Wed, Nov 11, 2009 at 1:08 PM, Justin Anderson janderson@gmail.comwrote: On the G1 the menu button doesn't toggle the onscreen keyboard... If the hard keyboard is not open you have to click on the textbox to get it to show up. To hide it, you press the back button. Perhaps other models of phones are different. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Nov 10, 2009 at 10:24 AM, androXid patrik.e...@gmail.com wrote: Hold down the menu button. On 7 nov, 10:03, Marton Kodok pentiu...@gmail.com wrote: Hello, Whenever a keyboard shows up, how can I hide it after I finished my typing. For example when I run the SkeletonActivity, I can type in some text, but how do I hide the keyboard when I'm done -- Márton -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Re: Google Maps Api - No image displayed
Looks like you're running in debug mode. Are you sure you're using the debug key? If you tested a release version on your Mac it would explain why it works there. 2009/11/10 Raphaël Piéroni raphaelpier...@gmail.com Hi Folks, Some updates, I retried on mac osx JAVA6 (i was on winXP JAVA5) and it works fine. I have 2 hypothesys on my problem : - OS but i don't believe it - Java version but i don't believe also Raphaël Le 10 novembre 2009 12:36, Raphaël Piéroni raphaelpier...@gmail.com a écrit : Hello folks, In my map view i have NO image displayed. I did get an apiKey from my keystore fingerprint. I using the ant script that affirms to sign the apk with the same keystore. I have proper permissions and library usage. But still I got no image. If anyone has a clue for displaying the map in my simulator i will be very happy. Regards, Raphaël Extracts from the manifest : ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; android:versionCode=1 android:versionName=1.0 *uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION /* uses-sdk android:minSdkVersion=5 / application android:label=@string/application_name *uses-library android:name=com.google.android.maps /* activity android:name=InitializationActivity android:label=@string/application_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Extracts from the layout.xml ?xml version=1.0 encoding=utf-8? ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map_view android:layout_width=fill_parent android:layout_height=fill_parent * android:apiKey=0U4YsOFH1B2CbsN0un0AcdDlD30t4i-EDL3h4JQ* / /ScrollView Extract from the activity which extends MapActivity with proper override. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map_test); MapView map = (MapView) findViewById(R.id.map_view); map.setClickable(true); MapController mc = map.getController(); double latitude = 47.3869316; double longitude = -2.9516315; GeoPoint location = new GeoPoint((int) (latitude * 100.0), (int) (longitude * 100.0)); mc.setCenter(location); mc.setZoom(10); map.setEnabled(true); map.setSatellite(true); map.invalidate(); } Installing the application ... -package-resources: [echo] Packaging resources [aaptexec] Creating full resource package... -package-debug-sign: [apkbuilder] Creating MapTest-debug-unaligned.apk and signing it with a debug key... *[apkbuilder] Using keystore: C:\Documents and Settings\raphael\.android\debug.keystore* debug: [echo] Running zip align on final apk... [echo] Debug Package: C:\MapTest\bin\MapTest-debug.apk BUILD SUCCESSFUL Total time: 5 seconds C:\SVNLOCAL\DexemGuiDynamicadb install -r bin\MapTest-debug.apk 1087 KB/s (1061868 bytes in 0.953s) pkg: /data/local/tmp/MapTest-debug.apk Success -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: Image buttons changing position based on orientation of phone.
so if you just delete the layout folder and just leave the layout-land folder, will it be a landscape only app? if no, then how would you do that? -- 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
Re: [android-beginners] how to install the sdk in my computer?
I disagree. The SDK I downloaded was in a .zip file. I extracted it, opened the directory, and I had to click the SDK Setup.exe before Eclipse would see that I had it installed. Ryan On Wed, Nov 11, 2009 at 1:03 PM, wahib haq wahib.t...@gmail.com wrote: hi ! There's nothing to install by the way. Its just a package and you need to extract and paste it somewhere. This is a very ambiguous question kindly be more precise where anyone could really help you out. I started working on android just few months back and i am still learning. Its my personal experience that you have to get started for yourself. Get star from development guide on android.com. Thats the best source of learning for all of us !! :) Regards, wahib On 11/11/09, isra israelgarci...@gmail.com wrote: I downloaded the sdk file and tried to install it in my computer, but i couldnt. I would like to learn how to develop apps, please help me.. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Wahib-ul-haq Communications Engineering Student, NUST, Pakistan. www.sizzlotech.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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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 with installation on Mac.
Thanks. I just did something that I should've tried right away. I deleted the entire installation, and re-installed by expanding the zip file. This time I left the outside folder name intact (I changed it when I'd installed the previous time). So, when I tried to add packages - I was able to see the platform packages fine now, and downloading and installing them went on smoothly.. On Nov 11, 11:55 am, Shadana shadana.my...@gmail.com wrote: When I received this error last week: - I clicked on the Installed Packages in the left column of the Android SDK and AVD Manager. - My window had the Android SDK Tools, revision 3. I refreshed the Tools even though I had just downloaded it. - Clicked on Available Packages in the left column - Clicked the dropdown arrow to the right of the checkbox. It should display all the APIs and Platform. - Select the ones you want to install and click Install Selected. I remembering see that error when I clicked the arrow next to the / repository.xml line without selecting any platforms below it. The AVD window will remain empty until you install a platform. Let me know if that helps. On Nov 9, 11:25 pm, Ram ram.komarr...@gmail.com wrote: Hi, I downloaded android sdk release 3 for mac as per the instructions, but when I try to download the platforms by running Android SDK and AVD Manager - I get the following error: Failed to fetch URLhttps://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings. I don't understand why I should be getting this error in the first place. However, since I couldn't fix it, I tried changing the https prefix to http. This time, I got one step further - it was able to show available packages - but these packages are only API packages and the USB package. It doesn't show the platform packages which are required for the API packages to work. When I go ahead to install these anyway - the installation fails because there are no platforms. Just to confirm - I don't see any files/folders under the platforms directory. List of AVDs in Android UI is empty as well. After spending nearly two hours trying various combinations of this and researching online, I am at my wits end, so any help is quite appreciated! Thanks, Ram. -- 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] Choice of API Level
The developer guide recommends choosing the lowest API level your application can support. However, the current SDK only includes images down to level 2. What about level 1? Aren't there devices in the wild that will use the 1.0 Platform? If you want to target level 1, do you need to use an old SDK? -- 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: It there a bug in the1.6 Emulators in landscape mode ?
I have worked this out now. You need to make a new AVD for the emulator. In the options for the AVD you need to add the keyboard option and then set this to be false. This will force this AVD not to emulate a physical keyboard and therefore show your keyboard in landscape mode. On Oct 16, 4:22 am, Shoby shoby.su...@wipro.com wrote: ctrl-F12 does display the emulator screen in thelandscapemode. i just tried the same and it works fine On Oct 15, 11:56 pm, Nitin67 nitin6...@gmail.com wrote: Hello, I have started the QVGA and WVGA800 emulators from Eclipse. I am using Windows XP. I pressed Ctrl-F12 to put them inlandscape mode. Then tried to bring up the Androidkeyboard, but it will not popup. This is preventing me from testing my owninputmethod. Can someone verify if they also have this problem or is it just my setup ? Thanks ! Nitin -- 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] Google Gears on Android 2?
Both the Google+Android2 emulator and the real Motorola DROID device seem to not be able to run the sample Google Gears applications. For example, the sample http://code.google.com/apis/gears/samples/hello_world_geolocation.html displays a dialog prompting for the installation of Gears - selecting 'ok' redirects to a page that states that Gears is not available for this platform. When will Google Gears be made available on Android 2? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] android list targets FAILS
In the documentation, I read: To generate a list of system image targets, use this command: android list targets this fails with the following error: Error: Ignoring add-on 'google_apis-3-r03': Unable to find base platform with API level '3' It repeats this message 3 times: once for each level of 3, 4, 5. I've tried adding android to my path environments, but it doesn't seem to have worked. I'm on windows 7 ultimate (64-bit). If anyone (anyone AT ALL) has a solution to this, or even a clue as to what might possibly be wrong, I'd be very appreciative. -- 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
Re: [android-beginners] Re: changing a package name
Indicator Veritatis wrote: NB: the tutorials go on and on glowingly about Java 1.6, but you really want 1.5 for Android. Why do you say that? I've been using 1.6 without incident. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- 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 hide keyboard when done typing
Holding the Menu button does not work on the Hero, either, which is a phone that doesn't even have a hard keyboard! After I published an app, I found out that Hero users couldn't input any information into my EditText fields. (As a workaround I added a button that allowed them to unhide/hide the soft keyboard. But it's just a workaround; Hero users tell me that they are accustomed to apps automatically showing the keyboard for them.) I haven't gotten around to writing the logic to determine whether or not to automatically unhide the keyboard, and I'm not necessarily looking forward to it. On Nov 11, 12:08 pm, Justin Anderson janderson@gmail.com wrote: On the G1 the menu button doesn't toggle the onscreen keyboard... If the hard keyboard is not open you have to click on the textbox to get it to show up. To hide it, you press the back button. Perhaps other models of phones are different. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Nov 10, 2009 at 10:24 AM, androXid patrik.e...@gmail.com wrote: Hold down the menu button. On 7 nov, 10:03, Marton Kodok pentiu...@gmail.com wrote: Hello, Whenever a keyboard shows up, how can I hide it after I finished my typing. For example when I run the SkeletonActivity, I can type in some text, but how do I hide the keyboard when I'm done -- Márton -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en- 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: error when starting Android project in Eclipse
Sorry, my last response was delayed because new members' messages are moderated, so it sounds more rude than it actually was if you consider the original post time. :) On Nov 7, 1:28 pm, PJ pjbar...@gmail.com wrote: To help narrow down the problem, please tell us: 1. Have you ever launched *any* app successfully before? (This lets us know if we are dealing with an Eclipse/Android SDK setup/emulator issue, or an issue with your app.) 2. If yes to #1, have you ever launched *this particular app* successfully before? (This lets us know if we are dealing with an issue with creating your project initially, versus an issue where your project was working before, but you changed something such as your AndroidManifest.xml file.) 3. In Eclipse, in the Problems tab at the bottom, do you have any errors? -- PJ On Nov 7, 3:11 am, Marton Kodok pentiu...@gmail.com wrote: Hello, What might be wrong? eclipse.buildId=M20090917-0800 java.version=1.6.0_14 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=hu_HU Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product Error Sat Nov 07 11:06:58 EET 2009 An internal error occurred during: Launching test1. *java.lang.NullPointerException* at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch( Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(U nknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Unk nown Source) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat ion.java:853) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat ion.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja va:866) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) and second error *Unable to restore source lookup path - unknown type source container type specified: org.eclipse.cdt.debug.core.containerType.mapping* -- Márton- 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] Smart Building
Hi, I wanna realise an application for Android which following features (as a kind of remote control that you can use in a room): - switch light on/off - control the radiator (e.g. change room temperature from 20° to 15° Celsius) - jalousie/draps control Is there any free application for android which above mentioned features? I`ve seen such an app for Iphone but could find nothing for the 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: ADB and T-Mobile Pulse
I too am having this problem. What exactly should the adb.usb.ini file look like, please? On Nov 9, 4:42 am, Faiz mohd.faizud...@gmail.com wrote: I had the same problem at first. In order for the adb to detect T- MobilePulsefrom both command line and Eclipse, the Cupcake (1.5) SDK is needed. 1. Edit the adb.usb.ini (in home directory - ~/.android) 2. Add 0x12d1 3. Restart adb (adb kill-server / adb start-server) adb should now be able to detect the device but with incorrect serial number (it is listed as ?p on my machine). Eclipse (I'm using 3.5 on Mac OS X) can now detect the correct 1.5 API onPulse. Well, I'd suggest not to upgrade to 2.0 SDK unless you really have to. On Oct 29, 9:33 pm, Tim tdh...@gmail.com wrote: Hmm thought I replied to this. 1. You need the latest 2.0 SDK. 2. You need to use 12d1 rather than 0bb4 for the vendor ID. The Android Dev Guide is wrong. Even then adb does not pick up the correct serial number for the device, so it will work from the command like if you use ./adb - d ... but not from within eclipse. On Oct 27, 1:43 am, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: under settings applications development is usb debugging enabled? On 10/26/09 6:09 AM, marktyers wrote: Hi I have purchased a T-Mobilepulsefor the purpose of testing some applications but it does not show up when I run ./adb devices or when I test my apps using Eclipse. Please can someone help otherwise Iam left with a useless lump of plastic :-( ps. I am an absolute beginner to this so please be gentle... 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] How to deploy add-ons?
If I have an app, that I'm distributing on the Android Market (or in general, really) - what's the general best practice strategy for building and deploying add-on data (that is to be purchased seperately). Specifically, in this case, I need to deploy sound assets as a seperate download, but to be used in the original application. Any pointers would be much appreciated. -Kai -- 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
Re: [android-beginners] Re: Post Data and get the Response as a JSON
yes that works. Thanks On Wed, Nov 11, 2009 at 10:02 PM, Ian Guedes Maia iangm...@gmail.comwrote: Yes, your application must declare it needs internet permission. Just put on your AndroidManifest.xml: uses-permission android:name=android.permission.INTERNET / 2009/11/9 mapper sai.vaiku...@gmail.com: Thanks Ian, I have used this. and noe I am getting Errror: java.net.SocketException: Permission denied (maybe missing INTERNET permission) How Can I resolve it.? Is there any settings for that in Emulator? I am using Android 2.0 Emulator HVGA. On Nov 6, 5:02 am, Ian Guedes Maia iangm...@gmail.com wrote: /* makes a request andgettheresponseas string */ String responseStr = null; HttpClient client = new DefaultHttpClient(); HttpGet httpGetRequest = new HttpGet(url); HttpResponseresponse= client.execute(httpGetRequest); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { ByteArrayOutputStream os = new ByteArrayOutputStream(); response.getEntity().writeTo(os); responseStr = os.toString(); } /* parse the stringresponseusing the androidJSONlibrary */ JSONObjectjson= new JSONObject(responseStr); JSONObject feed = (JSONObject)json.get(feed); JSONArray entry = (JSONArray) feed.get(entry); int length = entry.length(); 2009/11/5 mapper sai.vaiku...@gmail.com: Hi, I am developing a application where I have topostthedatato the server and it will give meJSONas aresponse. So how can Ipostthedatato server andgettheJSONas aresponse which I have to parse it? Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Beginners group. Topostto this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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] Looking for a developer to partner with
Hello, I have been a user of the smartphone style products since the original blackberries. I have used nearly every style of app available for the droid market, and I know what works and what doesn't, and what people look for. I have a few ideas that I have researched that are not currently available for download on the android market, and would like to see them come to life. Most of these ideas are game ideas that I see people calling for but so far have not been produced. With the experience I have, I believe these games would work best as small seperate demo games, then packaged together for a charge that would unlock full options and a leaderboard. I need someone who is getting to be pretty solid at the android game development end of things to partner with me. If the product is acceptable, I would pay the posting fee to android market and split any profits from potential sales. Please email me at rwinfield4...@gmail.com if you are up to 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: error when starting Android project in Eclipse
What I have observed is that when adb does not have sufficient privileges, the device window shows the connected device as: ??unknown When in this state, attempting to run/deploy an Android application from Eclipse results in a null pointer exception. This will also occur regardless of the presence of other valid devices/emulators in the device window, so I suspect that the deployer interrogates the list of connected devices and throws the null pointer when it hits the unknown device. I am pretty new to this, but I outlined a work around that worked for me here: http://notannoidwithdroid.blogspot.com/ //Nicholas On Nov 7, 2:28 pm, PJ pjbar...@gmail.com wrote: To help narrow down the problem, please tell us: 1. Have you ever launched *any* app successfully before? (This lets us know if we are dealing with an Eclipse/Android SDK setup/emulator issue, or an issue with your app.) 2. If yes to #1, have you ever launched *this particular app* successfully before? (This lets us know if we are dealing with an issue with creating your project initially, versus an issue where your project was working before, but you changed something such as your AndroidManifest.xml file.) 3. In Eclipse, in the Problems tab at the bottom, do you have any errors? -- PJ On Nov 7, 3:11 am, Marton Kodok pentiu...@gmail.com wrote: Hello, What might be wrong? eclipse.buildId=M20090917-0800 java.version=1.6.0_14 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=hu_HU Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product Error Sat Nov 07 11:06:58 EET 2009 An internal error occurred during: Launching test1. *java.lang.NullPointerException* at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch( Unknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(U nknown Source) at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Unk nown Source) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat ion.java:853) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat ion.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja va:866) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) and second error *Unable to restore source lookup path - unknown type source container type specified: org.eclipse.cdt.debug.core.containerType.mapping* -- Márton -- 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] Building an app around Google Maps Navigation
I want to build a navigational app that builds around the new Google Maps Navigation. Can the SDK for Navigation be downloaded? or is there a different way to go about this? Sorry im new at 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] DCHP Options in Android 2.0
It appears that only a few basic options are enabled in Android 2.0. Is this so? I just bought a Droid and am having trouble connecting it to my work wifi network (it connects OK at home). We are using a Mikrotik PowerRouter 732 with RouterOS 3.x to issue DHCP. For our clients on our VLANs to find their way outside, we issue a static route with DHCP. The Mikrotik unit 'pushes' this onto all of our clients, until I started using the Droid. It doesn't seem to take. I can connect to the network, get an IP address, but all Internet traffic disappears at the first router. Mikrotik uses a non-standard option, 249, which is in the private range to issue this route. I've tried putting a static route into our core switch, but have not seen success with that method yet. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Eclipse plugin Archos skin : can't unlock screen...
Hello ! I'm new to android developement, and I'm currently trying to make an application for an archos using eclipse. To do so, I downloaded the archos skin, and it's working, but it's a touch-only device with no button, so I can't press Menu to unlock the screen... Is there another way to unlock the screen ? Or to add a menu button to the skin ? Thanks ! Gyscos -- 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] appwidget query
Hi all, I am trying to launch an app widget from another application. On click of a button in an application, the appwidget is receiving the message i broadcasted. I have implemented the appwidgetprovider class. In the appwidgetprovider class, in the onReceive function i am able to get the broadcasted message. My broadcast file is: package com.example.broadcast; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class broadcast extends Activity implements View.OnClickListener { /** Called when the activity is first created. */ public static final String ACTION_UPDATE_WIDGET = Broadcast_Message; public static final String MESSAGE = message; public void onClick(View v) { sendBroadcast(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button start = (Button) findViewById(R.id.button); start.setOnClickListener(this); } private void sendBroadcast() { Log.i(test, send broadcast); Intent broadcast = new Intent(this, receiver.class); broadcast.putExtra(MESSAGE, Bye); broadcast.setAction(ACTION_UPDATE_WIDGET); sendBroadcast(broadcast); Log.i(test, after send); } } My appwidget class is as follows: package com.example.broadcast; import android.appwidget.AppWidgetHost; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.appwidget.AppWidgetProviderInfo; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; public class receiver extends AppWidgetProvider { public void onReceive ( Context context,Intent intent ){ //super.onReceive(context,intent ); String action = intent.getAction(); String message=; //String packagename=; int appwidgetid; Log.i(test, message received); if( Broadcast_Message.equals ( action ) ) { //String message; Toast.makeText( context, Broadcast sucessfull..., Toast.LENGTH_LONG).show(); if ( intent.hasExtra(broadcast.MESSAGE)) { message = (String) intent.getCharSequenceExtra(broadcast.MESSAGE); Toast.makeText( context, message, Toast.LENGTH_LONG).show(); } message = message+in the for loop; updateSampleWidget( context, appWidgetManager, 1,message ); } } private void updateSampleWidget(Context context,AppWidgetManager appWidgetManager, int widget, String text) { Log.i(test,In the update sample widget function); RemoteViews views = new RemoteViews (context.getPackageName (),R.layout.widget_provider); views.setTextViewText(R.layout.widget, text); //Intent intent1 = new Intent(context, broadcast.class); //PendingIntent pendingIntent = PendingIntent.getActivity (context, 0,intent1, 0); //views.setOnClickPendingIntent(R.layout.widget, pendingIntent); //appWidgetManager.updateAppWidget(widget, views); } } The widget_provider.xml file contains the appwidget resource file. The widget.xml file contains a textview element only. The updateSampleWidget function is not getting executed. Am i doing anything wrong here??? My questions are: 1. Is it possible to start an appwidet from the onReceive function? 2. Is it possible to start an appwidget from another applicaion by sending and receiving a broadcast message? Can any one help me on this? Regards, Anand -- 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: SDK Setup on Windows
I had the same problems on Windows XP. I created add-ons and platforms directories by hand and then run Setup.exe, everything worked. On Nov 3, 8:33 pm, wade.jen wildwind@gmail.com wrote: My experience: 1. change another packing sofeware, unpack again, then there are three folders: platform, add-ons, tools 2. run SDK Setup.exe 3. I got the error message Failed to fetch URL https://. You might want to force download through HTTP in the settings. 4. so I checked this item Force https://... sources to be fetched using http://; in Settings 5. restart SDK Setup.exe 6. enjoy it. hope it works for you On 11月3日, 上午12時42分, mellery451 mellery...@gmail.com wrote: On Nov 1, 10:31 pm, Raphael r...@android.com wrote: On Thu, Oct 29, 2009 at 10:20 AM, mellery451 mellery...@gmail.com wrote: sorry for the delay in responding. Here is the output: C:\android\android-sdk-windowstools\android.bat Starting Android SDK and AVD Manager Error: Error parsing the sdk. Error: C:\android\android-sdk-windows\platforms is missing. Error: Unable to parse SDK content. Thanks. It looks like you don't have a platforms folder in your SDK folder. The SDK requires 3 folders there: tools, add-ons and platforms. Do you have them there? If you create them, does that make the SDK Setup.exe work? R/ I did not have those folders present. I've manually created them and now the setup launches fine. I'm getting a download error for repository.xml now, but I'll search around to see if I can find a resolution for that. Thanks! -Mike- 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
Re: [android-beginners] Having problems trying to find the right way to parse text files.
Looks like a treeview is how you want to display the data. I would store it using a parent-child format. I'm sure there is some code out there that parses XML, so take that code and modify it to parse your files in the same manner. On Thu, Nov 12, 2009 at 4:25 AM, ben.k.mcken...@gmail.com ben.k.mcken...@gmail.com wrote: Hello all, I'm trying to get a usable program for the Android to allow it to sync with Emacs Org-Mode. I'm pretty good with Python, but Java is a new beast to me. Currently, I've got it so that it can contact the server and sync the files. However, now that I've got the files downloaded, I'm trying to get it parsed and split into a ListView so that it can be viewed and edited. (An example of what I'm trying to do can be found here: http://mobileorg.ncogni.to/[1] ). The files each look like this: * Headline 1 Some Body Text ** (Headline 2) First Child of Headline 1 *** (Headline 3) First Child of Headline 2 ** (Headline 2) Second Child of Headline 1 * Headline 2 I'm stuck figuring out the best way to store the data object-wise to easily go through the headlines and children, and to pass the info to a ListAdapter. Any thoughts? [1] The MobileOrg software was developed for the iPhone, but it looks like it's doing the equivalent of a series of ListViews. When an item is selected, it show a ListView of the children of the headline. Ideally, each ListView would open up all the children onClick(), and open up a context menu onListViewLongClick(). -- 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] reposition a button programatically
I am new to android, and kinda confused how to reposition a button in the screen programmatically ! setLayoutParams ? a few lines to illustrate will help thanks in advance regards Jagat -- 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] understanding opencore
hi all, i am going through opencore framewrok. i am trying to figure out as how the data and commands pass between pvmf nodes . what are the main functions in a pvmf node ? I mean there is no such description abbout the functions which are implemented generally in a node. Can anyone provide some info . regards techietone -- 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] Computer Project
I am taking a class where we have to develope a personal medical record viewer for the droid. The problem is she wants a prototype of our software on the web. Is there anyway I can throw my application along with an emulator online so she can play around with it like that? If not, do you guys have any ideas how I can do this? 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] help
This is my first time developing an app, not just for android, but in general. Needing some serious help. If anyone would be willing I'm a quick learner and will try not to ask you the same question twice. 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] Getting layouts to share space
Hello, I'm working on my first Android application which is basically a specialized calculator for a specific card game. What I need is to have two side by side tables of numbers (basically two side by side normal calculators). So, imagine your typical calculator, then imagine two of those side by side on the same form, that's what I need. Now, I just started developing this week, so I'm still really new. But basically I need to know how I can have two tables share equal space in my LinearLayout. I want each calculator table to share equal space (with a tad bit of padding in between them) in the layout, however I have no idea what attributes to use to do this. Any help is appreciated, 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] Unable to display ContextMenu in a ListView with multiple components
Hi all, I have a layout that I can't invoke the ContextMenu on. My XML for the layout and individual row for each item is here: http://www.pastie.org/695992 If I take out the LinearLayout and CheckBox component in the row xml (leaving only the TextView component), I can invoke the ContextMenu. But not when those other two elements are there. Why is that? -- 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
Re: [android-beginners] Re: Problem: connection to Internet
Thanks, It works fine now. On Wed, Nov 11, 2009 at 9:10 PM, jbrohan jbro...@gmail.com wrote: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.johnprog android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.RECORD_AUDIO / uses-permission android:name=android.permission.READ_PHONE_STATE / application android:icon=@drawable/micon The error message tells you the answer.put in a permission record in the manifest.xml file. This snippet from mine shows you where they go! Good Luck John On Nov 9, 3:01 am, mapper sai.vaiku...@gmail.com wrote: Hi When I am sending and receiving the response I got this error: java.net.SocketException: Permission denied (maybe missing INTERNET permission) I am using this /* makes a request and get the response as string */ String responseStr = null; HttpClient client = new DefaultHttpClient(); HttpGet httpGetRequest = new HttpGet(url); HttpResponse response = client.execute(httpGetRequest); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { ByteArrayOutputStream os = new ByteArrayOutputStream(); response.getEntity().writeTo(os); responseStr = os.toString(); } /* parse the string response using the android JSON library */ JSONObject json = new JSONObject(responseStr); JSONObject feed = (JSONObject) json.get(feed); JSONArray entry = (JSONArray) feed.get(entry); int length = entry.length(); http://groups.google.com/group/android-beginners/browse_thread/thread... How can I configured the Internet settings in the Emulator. 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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] NUDE COLLEGE HIDDEN CAMARA SEX INFO
NUDE COLLEGE HIDDEN CAMARA SEX INFO JUST SEE HOW IS IT THE MATTER http://higearn.blogspot.com http://higearn.blogspot.com http://higearn.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] Invoking a remote service in a different application
Hi I have an eclipse project with a remote service that exports an API (defined in a aidl file). I have another project that implements a client that wants to call the remote service API. When trying to run the client it crashes and Android complains: Unable to resolve superclass of Lse/remoteserviceclient/ RemoteServiceClient My question is this: What is the correct way of calling a remote service in a different application? The 'service project' is on the build path of the 'client project'. Do I need to export the service application into a jar file and include in the client project? Thanks, igar -- 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: Write a on sdcard
One last thing. 1.6+ apps will need the WRITE_EXTERNAL_STORAGE permission to write to the sd card. For more info, see: http://developer.android.com/guide/topics/security/security.html http://developer.android.com/reference/android/Manifest.permission.html -- PJ On Nov 10, 9:18 am, Jairo jairo.alme...@gempi.com.br wrote: Hi, When is possible programing a sample android aplication to write text files on sdcard. I need to do this but i don't know why I search a tutorial about writing text files programing by android But i need help. 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: Write a on sdcard
I think Environment.getExternalStorageDirectory() is the proper way for an Android app to obtain a File object for the root of the sdcard. Once you have a File object, just use normal Java I/O stuff. -- PJ On Nov 10, 9:18 am, Jairo jairo.alme...@gempi.com.br wrote: Hi, When is possible programing a sample android aplication to write text files on sdcard. I need to do this but i don't know why I search a tutorial about writing text files programing by android But i need help. 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: How much number of voices can android support for MIDI?
Look at: http://developer.android.com/guide/appendix/media-formats.html For specific number of simultaneous voices, I assume that it depends on which file type you're using (e.g. MIDI, RTTTL/RTX, etc.) and the CPU power for the specific device. For example, if you're using MIDI, you can look at the MIDI specification. Note that Android phones and most phones nowadays support Truetone (i.e. wave-data based instead of note-based, e.g. 3gp or mp3), which produces better quality sound, so these are popular. Consider that as well. -- PJ On Nov 11, 6:24 am, ando andoroi...@gmail.com wrote: Hi, I'd like to know Polyphonic ringtones which android supports. I'll make a ringtone for android phone. How much number of voices can android support? 32 tones? -- 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] Changing view then sleeping does not show up on screen.
I have a simple app that just changes the state of an image when you press a button, waits 3 seconds, then changes back. The problem I am seeing that that when it seems to sleep without changing the view to show the state change, then when it is done, it changes back to the original state, so to the user, it looks like nothing changed at all. I may be way off in what I am thinking, but that seems to be the case, as I can tell the sleep is working. The code I have for the on click listener is: press.setOnClickListener(new OnClickListener() { public void onClick(View v) { bButtonBlue.setSelected(true); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } bButtonBlue.setSelected(false); } }); } Any ideas that could point me in the right direction would be much appreciated. Thank you -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Write a on sdcard
By the way, the emulator does not necessarily have an sdcard out-of- the-box. If you look in the top left corner of the emulator screen, you may see a notification that you do not have an sd card. So, before launching the emulator, you may need to create an sdcard image file to simulate that. For more info on that, see: http://developer.android.com/guide/developing/tools/emulator.html Also, you can use the adb shell command to get a command-line prompt to the emulator and look around the filesystem to get a feel for how files are laid out. For example, look at /data for system and application data, look at /sdcard for sdcard data, etc. For more info on adb, see: http://developer.android.com/guide/developing/tools/adb.html Hope this helps! -- PJ On Nov 10, 9:18 am, Jairo jairo.alme...@gempi.com.br wrote: Hi, When is possible programing a sample android aplication to write text files on sdcard. I need to do this but i don't know why I search a tutorial about writing text files programing by android But i need help. 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
Re: [android-beginners] unsubscribe
You need to unsubscribe yourself... Click the link in your email after the line that says To unsubscribe... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 11, 2009 at 11:10 AM, my moon akmallu...@gmail.com wrote: *PLZ* unsubscribe -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Re: how to hide keyboard when done typing
You shouldn't have to write logic for that. I don't have a Hero so I don't know for sure, but they should be able to just click in the TextBox (either by touch, trackball, or any other way) and the keyboard should come up... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 11, 2009 at 2:40 PM, PJ pjbar...@gmail.com wrote: Holding the Menu button does not work on the Hero, either, which is a phone that doesn't even have a hard keyboard! After I published an app, I found out that Hero users couldn't input any information into my EditText fields. (As a workaround I added a button that allowed them to unhide/hide the soft keyboard. But it's just a workaround; Hero users tell me that they are accustomed to apps automatically showing the keyboard for them.) I haven't gotten around to writing the logic to determine whether or not to automatically unhide the keyboard, and I'm not necessarily looking forward to it. On Nov 11, 12:08 pm, Justin Anderson janderson@gmail.com wrote: On the G1 the menu button doesn't toggle the onscreen keyboard... If the hard keyboard is not open you have to click on the textbox to get it to show up. To hide it, you press the back button. Perhaps other models of phones are different. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Nov 10, 2009 at 10:24 AM, androXid patrik.e...@gmail.com wrote: Hold down the menu button. On 7 nov, 10:03, Marton Kodok pentiu...@gmail.com wrote: Hello, Whenever a keyboard shows up, how can I hide it after I finished my typing. For example when I run the SkeletonActivity, I can type in some text, but how do I hide the keyboard when I'm done -- Márton -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Re: Image buttons changing position based on orientation of phone.
I don't think so. If you want a landscape only app, I believe you can set some value (no idea what though) in the manifest. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 11, 2009 at 8:35 PM, johnnyj...@gmail.com johnnyj...@gmail.comwrote: so if you just delete the layout folder and just leave the layout-land folder, will it be a landscape only app? if no, then how would you do that? -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Changing view then sleeping does not show up on screen.
The UI won't update until after you leave the onClick method... Either spawn a new thread or start a background service to do the waiting for you... On Nov 12, 2009 4:23 PM, ElPollo Diablo hackas...@gmail.com wrote: I have a simple app that just changes the state of an image when you press a button, waits 3 seconds, then changes back. The problem I am seeing that that when it seems to sleep without changing the view to show the state change, then when it is done, it changes back to the original state, so to the user, it looks like nothing changed at all. I may be way off in what I am thinking, but that seems to be the case, as I can tell the sleep is working. The code I have for the on click listener is: press.setOnClickListener(new OnClickListener() { public void onClick(View v) { bButtonBlue.setSelected(true); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } bButtonBlue.setSelected(false); } }); } Any ideas that could point me in the right direction would be much appreciated. Thank you -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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: LinearLayout View Tutorial, weight behavior
Hi- The most likely explanation is that you did not modify the weight you thought you did. The very first occurrence of the layout_weight attribute is in the outermost LinearLayout, so it applies to the entire screen, not to the upper half alone (the color bands). To change the weight only for the latter, you need to change the SECOND occurrence of the layout_weight attribute. Of course, that still doesn't explain the reverse behavior you described, but at least it is a start. Now concerning your background: it is impressive that you have made this much progress in Android w/o an OOP background, but you will make it much easier on yourself if you take the time out to learn at least the elements of OOP using Java before putting too much effort into Android. All the Android documentation and tutorials do assume a fairly high level of familiarity with these elementary facts about Java. On Nov 11, 3:09 pm, maximus-dev sylus.mcf...@gmail.com wrote: Hi Everyone... Very short background... I'm currently a C developer (not C++ unfortunately... so no experience with OOP) who writes homebrew for the nintendo DS. I'm exploring moving away from that platform and towards the Android. That said, I'm doing as suggested at the end of the LinearLayout View tutorial and modifying the weight values to see how it affects the size of the columns and rows. The structure seemed very simple, so it seemed obvious that modifying the first weight (the top half) to 2 should give the top section 2/3rds of the screen and the bottom only 1/3rd. Instead... it appeared to be reversed... the upper area had become the smaller third (this is in the emulator... I do not have actual hardware yet). I tested the same idea on the color columns and the more expected result occured... the columns with greater weight were now wider and seemed to take up the correct fractional area of the screen. Any particular reason for this behavior? Thanks everyone, Jeremiah -- 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: LinearLayout View Tutorial, weight behavior
Or so I thought on first reading. But no, I was misled by the small frame in the tutorial. Now that I have it running in the emulator myself, I see the exact same thing you saw. OTOH, the behavior is closer to what is to be expected (based on the tutorial) if you change from the default only the weight in the green band, changing from 1 to 2: then the green band is approximately twice as big as the red and blue, but the yellow falls somewhere in between! It looks like the layout manager is not perfect. On Nov 12, 5:19 pm, Indicator Veritatis mej1...@yahoo.com wrote: Hi- The most likely explanation is that you did not modify the weight you thought you did. The very first occurrence of the layout_weight attribute is in the outermost LinearLayout, so it applies to the entire screen, not to the upper half alone (the color bands). To change the weight only for the latter, you need to change the SECOND occurrence of the layout_weight attribute. Of course, that still doesn't explain the reverse behavior you described, but at least it is a start. Now concerning your background: it is impressive that you have made this much progress in Android w/o an OOP background, but you will make it much easier on yourself if you take the time out to learn at least the elements of OOP using Java before putting too much effort into Android. All the Android documentation and tutorials do assume a fairly high level of familiarity with these elementary facts about Java. On Nov 11, 3:09 pm, maximus-dev sylus.mcf...@gmail.com wrote: Hi Everyone... Very short background... I'm currently a C developer (not C++ unfortunately... so no experience with OOP) who writes homebrew for the nintendo DS. I'm exploring moving away from that platform and towards the Android. That said, I'm doing as suggested at the end of the LinearLayout View tutorial and modifying the weight values to see how it affects the size of the columns and rows. The structure seemed very simple, so it seemed obvious that modifying the first weight (the top half) to 2 should give the top section 2/3rds of the screen and the bottom only 1/3rd. Instead... it appeared to be reversed... the upper area had become the smaller third (this is in the emulator... I do not have actual hardware yet). I tested the same idea on the color columns and the more expected result occured... the columns with greater weight were now wider and seemed to take up the correct fractional area of the screen. Any particular reason for this behavior? Thanks everyone, Jeremiah -- 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
Re: [android-beginners] Getting layouts to share space
Create a parent layout (LinearLayout, RelativeLayout, GridLayout, etc...) and just make both of your calcs have the same layout weight On Nov 12, 2009 4:23 PM, AliasXNeo joshuagil...@gmail.com wrote: Hello, I'm working on my first Android application which is basically a specialized calculator for a specific card game. What I need is to have two side by side tables of numbers (basically two side by side normal calculators). So, imagine your typical calculator, then imagine two of those side by side on the same form, that's what I need. Now, I just started developing this week, so I'm still really new. But basically I need to know how I can have two tables share equal space in my LinearLayout. I want each calculator table to share equal space (with a tad bit of padding in between them) in the layout, however I have no idea what attributes to use to do this. Any help is appreciated, 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] appwidget query
What exactly do you mean by launching and starting an AppWidget? AppWidgets can't be launched or started... they can be updated. On Nov 12, 2009 4:23 PM, anand anand.ramasw...@wipro.com wrote: Hi all, I am trying to launch an app widget from another application. On click of a button in an application, the appwidget is receiving the message i broadcasted. I have implemented the appwidgetprovider class. In the appwidgetprovider class, in the onReceive function i am able to get the broadcasted message. My broadcast file is: package com.example.broadcast; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class broadcast extends Activity implements View.OnClickListener { /** Called when the activity is first created. */ public static final String ACTION_UPDATE_WIDGET = Broadcast_Message; public static final String MESSAGE = message; public void onClick(View v) { sendBroadcast(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button start = (Button) findViewById(R.id.button); start.setOnClickListener(this); } private void sendBroadcast() { Log.i(test, send broadcast); Intent broadcast = new Intent(this, receiver.class); broadcast.putExtra(MESSAGE, Bye); broadcast.setAction(ACTION_UPDATE_WIDGET); sendBroadcast(broadcast); Log.i(test, after send); } } My appwidget class is as follows: package com.example.broadcast; import android.appwidget.AppWidgetHost; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.appwidget.AppWidgetProviderInfo; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; public class receiver extends AppWidgetProvider { public void onReceive ( Context context,Intent intent ){ //super.onReceive(context,intent ); String action = intent.getAction(); String message=; //String packagename=; int appwidgetid; Log.i(test, message received); if( Broadcast_Message.equals ( action ) ) { //String message; Toast.makeText( context, Broadcast sucessfull..., Toast.LENGTH_LONG).show(); if ( intent.hasExtra(broadcast.MESSAGE)) { message = (String) intent.getCharSequenceExtra(broadcast.MESSAGE); Toast.makeText( context, message, Toast.LENGTH_LONG).show(); } message = message+in the for loop; updateSampleWidget( context, appWidgetManager, 1,message ); } } private void updateSampleWidget(Context context,AppWidgetManager appWidgetManager, int widget, String text) { Log.i(test,In the update sample widget function); RemoteViews views = new RemoteViews (context.getPackageName (),R.layout.widget_provider); views.setTextViewText(R.layout.widget, text); //Intent intent1 = new Intent(context, broadcast.class); //PendingIntent pendingIntent = PendingIntent.getActivity (context, 0,intent1, 0); //views.setOnClickPendingIntent(R.layout.widget, pendingIntent); //appWidgetManager.updateAppWidget(widget, views); } } The widget_provider.xml file contains the appwidget resource file. The widget.xml file contains a textview element only. The updateSampleWidget function is not getting executed. Am i doing anything wrong here??? My questions are: 1. Is it possible to start an appwidet from the onReceive function? 2. Is it possible to start an appwidget from another applicaion by sending and receiving a broadcast message? Can any one help me on this? Regards, Anand -- 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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
Re: [android-beginners] Getting layouts to share space
I forgot to mention that the calcs need to be children of the parent layout. I would suggest reading the Dev guide on layouts and looking at some of the Hello Views samples... On Nov 12, 2009 4:23 PM, AliasXNeo joshuagil...@gmail.com wrote: Hello, I'm working on my first Android application which is basically a specialized calculator for a specific card game. What I need is to have two side by side tables of numbers (basically two side by side normal calculators). So, imagine your typical calculator, then imagine two of those side by side on the same form, that's what I need. Now, I just started developing this week, so I'm still really new. But basically I need to know how I can have two tables share equal space in my LinearLayout. I want each calculator table to share equal space (with a tad bit of padding in between them) in the layout, however I have no idea what attributes to use to do this. Any help is appreciated, 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.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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] Support of JKS Keystore in Android
Hi, I am having Java SSL based server and I want to connect android SSL supported client to it. My keystore in Java is JKS, but android says no JKS implementation found. It supports BKS. Is there any way to have JKS support for android ? If not then how can use BKS in Java. I am trying using PKCS12, but documentation says using PKCS12 for trustanchors purpose is not supported. Does anybody has any suggestions about this issue ? -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- 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 update TextView on a scheduled-basis
Yeah, I was thinking the View#postDelayed way from that post would be fine in this case myself. On Nov 12, 6:17 am, skink psk...@gmail.com wrote: Lance Nanek wrote: The painless threading blog post here mentions a lot of nice ways: http://android-developers.blogspot.com/2009/05/painless-threading.html Lance, i wouldn't load a heavy canon (read Threads) for such a light task instead i would use Handlers pskink -- 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