[android-beginners] Font size
I am a UX designer and was wondering if anyone could tell me the font size I should be using whille making a mock-up in pixels ( droid sans) for a list view and other menu options like context menu etc? Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more information about this change, please read [http://goo.gl/xkfl] or visit the Group home page. Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Text box +radio menu(pop-up)
Hi, I had a general UI question, I didn't find this in many applications on Android and I was wondering if it is possible to have a text box( For some text input) in the radio menu which pops up if one is having a list to select from. Any feedback would be much appreciated. In case you guys feel a sketch or a pic would be helpful to explain what I am asking I could do that as well. Regards, Varun -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Text box +radio menu(pop-up)
Thanks. I was thinking of a quick entry box according to the list items, It was a one click process on I-phone. Regards, Varun On Jul 14, 4:13 pm, TreKing treking...@gmail.com wrote: On Wed, Jul 14, 2010 at 4:17 PM, Varun Khanduja varunkhand...@gmail.comwrote: I was wondering if it is possible to have a text box( For some text input) in the radio menu which pops up if one is having a list to select from. If you're talking about the Context Menu, then no, I don't think so. Besides, that would really not make sense ... - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Geo-tagging and OCR
Hi, I am trying to make a small prototype, which would involve taking pictures and then using some scanning mechanism like OCR to scan the text on the picture. After OCR processing a screen with a some text boxes with the geotagged present location of the user would be present on one of the text boxes. Do you know of any resource where I can look into some example code. I looked into some existing discussions for geotagging but it seemed quite complex for a beginner like me. Is there any resource which can help me a beginner like me in the idea I am trying to make. Thank you in advance. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] App installation
I asked a question yesterday about a application I am trying to make based on OCR and some other points. I tried to look for applications which have individual elements like current location finder, Camera capture etc. I tried to install individual elements after modifying some source codes, but I am not sure how I can install on my phone. I made a apk file, sent it to my e-mail as a attachment( since I don't have a key ), downloaded it and then through Astro file manager tried to find it but it never shows even if I try to search the application. I guess we need a sd card to install a application, is it possible to install applications if we don't have a sd card? Some help please. Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Duplicate case problems
Hello All, I am trying to work on the notepad tutorial on the Android website. I tried incorporating a menu function to see how I can try to use mutiple functions. I keep getting errors of Duplicate case for the switch cases like Menu_1, insert_ID. Does any one knows what are some of the things I could do to avoid these errors please? Thank you. /* * Copyright (C) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.demo.notepad1; import android.app.ListActivity; import android.database.Cursor; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.SimpleCursorAdapter; public class Notepadv1 extends ListActivity { private int mNoteNumber = 1; private NotesDbAdapter mDbHelper; private static final int MENU_1=Menu.FIRST; private static final int MENU_QUIT=Menu.FIRST+1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.notepad_list); mDbHelper = new NotesDbAdapter(this); mDbHelper.open(); fillData(); } private void fillData() { // Get all of the notes from the database and create the item list Cursor c = mDbHelper.fetchAllNotes(); startManagingCursor(c); String[] from = new String[] { NotesDbAdapter.KEY_TITLE }; int[] to = new int[] { R.id.text1 }; // Now create an array adapter and set it to display using our row SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.notes_row, c, from, to); setListAdapter(notes); } public static final int INSERT_ID = Menu.FIRST; @Override public boolean onCreateOptionsMenu(Menu menu) { boolean result = super.onCreateOptionsMenu(menu); menu.add(0, INSERT_ID, 0, R.string.menu_insert); menu.add(0, MENU_1, 0, New Game); menu.add(0, MENU_QUIT, 0, Quit); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case INSERT_ID: createNote(); return true; case MENU_1: createNote(); return true; case MENU_QUIT: createNote(); return true; return true; } return super.onOptionsItemSelected(item); } private void createNote() { String noteName = Note + mNoteNumber++; mDbHelper.createNote(noteName, ); fillData(); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Duplicate case problems
Hi Justin, Thanks for your response. I m sorry maybe I m not very clear with some of the steps I should take. I followed this tutorial(http:// www.youtube.com/watch?v=6UYNnQOxCS8) and in the first 2 minutes they declare the way I declared here. Although I know this is a very basic problem, but in case your time permits some more help will be very kind of you. Thank you On Jun 25, 4:05 pm, Justin Anderson janderson@gmail.com wrote: I meant when you have them in the same switch statement... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jun 25, 2010 at 5:04 PM, Justin Anderson janderson@gmail.comwrote: * Does any one knows what are some of the things I could do to avoid these errors please?* Yes... don't have duplicate case values. Your problem lies with this line: public static final int INSERT_ID = Menu.FIRST; So when you include INSERT_ID and Menu.FIRST in the same case statement they have the same value. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jun 25, 2010 at 4:38 PM, Varun Khanduja varunkhand...@gmail.comwrote: INSERT_ID -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Duplicate case problems
I am sorry I didn't read your comment properly. I ll work on it again. Thanks On Jun 25, 4:05 pm, Justin Anderson janderson@gmail.com wrote: I meant when you have them in the same switch statement... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jun 25, 2010 at 5:04 PM, Justin Anderson janderson@gmail.comwrote: * Does any one knows what are some of the things I could do to avoid these errors please?* Yes... don't have duplicate case values. Your problem lies with this line: public static final int INSERT_ID = Menu.FIRST; So when you include INSERT_ID and Menu.FIRST in the same case statement they have the same value. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jun 25, 2010 at 4:38 PM, Varun Khanduja varunkhand...@gmail.comwrote: INSERT_ID -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Application crashing
Hello, I am trying to make a small To do list application. The application keeps crashing on and saying, the application closed and please try again. The message also has force close option. Here is the code, does anyone has an idea what's wrong? Thanks package com.todolist; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.View.OnKeyListener; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; public class todolist extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { // Inflate your view setContentView(R.layout.main); // Get references to UI widgets ListView myListView = (ListView)findViewById(R.id.myListView); final EditText myEditText = (EditText)findViewById(R.id.myListView); // Create the array list of to do items final ArrayListString todoItems = new ArrayListString(); // Create the array adapter to bind the array to the listview final ArrayAdapterString aa; aa = new ArrayAdapterString(this, android.R.layout.simple_list_item_1, todoItems); // Bind the array adapter to the listview. myListView.setAdapter(aa); myEditText.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN) if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { todoItems.add(0, myEditText.getText().toString()); aa.notifyDataSetChanged(); myEditText.setText(); return true; } return false; } }); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Application crashing
Hello everybody. Thanks for the suggestions. I guess the problem is I am learning Java as well and at the same time I am learning Android. So it's sort of hard for me to follow the conventions and the syntax. But I do try to look into the existing questions related to the topic. I will certainly try to look more in depth in future to avoid redundant posts. Thanks everyone On Jun 23, 12:21 pm, Justin Anderson janderson@gmail.com wrote: One other thing to mention... These groups are not only great for posting questions but also for searching through them to find other posts with the same problem or question that may already have an answer. In particular, your question is one that has been answered many times over and a quick search for Force Close or Crash probably would have given you several posts with the same answers that Mark and Simon gave. Not only does it prevent the group from getting bloated with duplicate questions, it can also help improve your development time because you don't have to constantly wait for responses to your questions. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Jun 23, 2010 at 11:41 AM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Jun 23, 2010 at 1:28 PM, Varun Khanduja varunkhand...@gmail.com wrote: I am trying to make a small To do list application. The application keeps crashing on and saying, the application closed and please try again. The message also has force close option. Here is the code, does anyone has an idea what's wrong? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your crash, so you can see where in your code the problem occurs. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.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. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Date picker problem
It worked now. Thank you very much everyone. :) On Jun 22, 8:37 pm, Temitope Akinwande takinwa...@gmail.com wrote: Looking through your code, I do not see where you are using R.id.display, however I see R.id.dateDisplay If the problem is with R.id.dateDisplay, do you have any layout defined that has the id dateDisplay? Check in your res/layout folder -Tope On Tue, Jun 22, 2010 at 3:57 PM, Varun Khanduja varunkhand...@gmail.com wrote: Thank you everyone. I resolved most of the issues with all the help from all the group members. I have one last issue: R. id. display cannot be resolved. Couldn't find anything online to help. Any help would be appreciated. /*** * Excerpted from Hello, Android!, * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose. * Visithttp://www.pragmaticprogrammer.com/titles/ebandfor more book information. ***/ package org.example.sudoku; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import java.util.Calendar; import android.app.DatePickerDialog; import android.app.Dialog; import android.widget.Button; import android.widget.DatePicker; import android.widget.TextView; import android.widget.Toast; public class sudoku extends Activity implements OnClickListener { private TextView mDateDisplay; private Button mPickDate; private int mYear; private int mMonth; private int mDay; static final int DATE_DIALOG_ID = 0; �...@override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // capture our View elements mDateDisplay = (TextView) findViewById(R.id.dateDisplay); mPickDate = (Button) findViewById(R.id.pickDate); // add a click listener to the button mPickDate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { showDialog(DATE_DIALOG_ID); } }); // get the current date final Calendar c = Calendar.getInstance(); mYear = c.get(Calendar.YEAR); mMonth = c.get(Calendar.MONTH); mDay = c.get(Calendar.DAY_OF_MONTH); // display the current date updateDisplay(); // Set up click listeners for all the buttons View continueButton = findViewById(R.id.continue_button); continueButton.setOnClickListener(this); View newButton = findViewById(R.id.new_button); newButton.setOnClickListener(this); View aboutButton = findViewById(R.id.about_button); aboutButton.setOnClickListener(this); View exitButton = findViewById(R.id.exit_button); exitButton.setOnClickListener(this); } /** Called when the activity is first created. */ @Override protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: return new DatePickerDialog(this, mDateSetListener, mYear, mMonth, mDay); } return null; } // updates the date we display in the TextView private void updateDisplay() { mDateDisplay.setText( new StringBuilder() // Month is 0 based so add 1 .append(mMonth + 1).append(-) .append(mDay).append(-) .append(mYear).append( )); } // the callback received when the user sets the date in the dialog private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; updateDisplay(); } }; // ... public void onClick(View v) { switch (v.getId()) { case R.id.about_button: Intent i = new Intent(this, About.class); startActivity(i); break; // More buttons go here (if any) ... } } } On Jun 22, 8:56 am, DonFrench dcfre...@gmail.com wrote: Well you can't have two onCreate methods -- that much is certain. So fix that first and then work on the other problems. On Jun 21, 9:13 pm, Varun Khanduja varunkhand...@gmail.com wrote: Thank you. I resolved some of the issues and the number of errors are down to 3. /*** * Excerpted from Hello, Android!, * published
[android-beginners] Re: Date picker problem
Thank you everyone. I resolved most of the issues with all the help from all the group members. I have one last issue: R. id. display cannot be resolved. Couldn't find anything online to help. Any help would be appreciated. /*** * Excerpted from Hello, Android!, * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose. * Visit http://www.pragmaticprogrammer.com/titles/eband for more book information. ***/ package org.example.sudoku; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import java.util.Calendar; import android.app.DatePickerDialog; import android.app.Dialog; import android.widget.Button; import android.widget.DatePicker; import android.widget.TextView; import android.widget.Toast; public class sudoku extends Activity implements OnClickListener { private TextView mDateDisplay; private Button mPickDate; private int mYear; private int mMonth; private int mDay; static final int DATE_DIALOG_ID = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // capture our View elements mDateDisplay = (TextView) findViewById(R.id.dateDisplay); mPickDate = (Button) findViewById(R.id.pickDate); // add a click listener to the button mPickDate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { showDialog(DATE_DIALOG_ID); } }); // get the current date final Calendar c = Calendar.getInstance(); mYear = c.get(Calendar.YEAR); mMonth = c.get(Calendar.MONTH); mDay = c.get(Calendar.DAY_OF_MONTH); // display the current date updateDisplay(); // Set up click listeners for all the buttons View continueButton = findViewById(R.id.continue_button); continueButton.setOnClickListener(this); View newButton = findViewById(R.id.new_button); newButton.setOnClickListener(this); View aboutButton = findViewById(R.id.about_button); aboutButton.setOnClickListener(this); View exitButton = findViewById(R.id.exit_button); exitButton.setOnClickListener(this); } /** Called when the activity is first created. */ @Override protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: return new DatePickerDialog(this, mDateSetListener, mYear, mMonth, mDay); } return null; } // updates the date we display in the TextView private void updateDisplay() { mDateDisplay.setText( new StringBuilder() // Month is 0 based so add 1 .append(mMonth + 1).append(-) .append(mDay).append(-) .append(mYear).append( )); } // the callback received when the user sets the date in the dialog private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; updateDisplay(); } }; // ... public void onClick(View v) { switch (v.getId()) { case R.id.about_button: Intent i = new Intent(this, About.class); startActivity(i); break; // More buttons go here (if any) ... } } } On Jun 22, 8:56 am, DonFrench dcfre...@gmail.com wrote: Well you can't have two onCreate methods -- that much is certain. So fix that first and then work on the other problems. On Jun 21, 9:13 pm, Varun Khanduja varunkhand...@gmail.com wrote: Thank you. I resolved some of the issues and the number of errors are down to 3. /*** * Excerpted from Hello, Android!, * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose. * Visithttp://www.pragmaticprogrammer.com/titles/ebandformore book information. ***/ package org.example.sudoku; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import java.util.Calendar; import
[android-beginners] Which Applications are most famous on Android
I am making a report on Android vs other smart phone comparison. One of the comparison is to look into 10 top applications on Android and other smart phones like I-phone. This comparison should help me answer if Android is geared more towards gaming or some other category of Applications. I visited the android market online and it has top applications section but it's divided into each category and I wasn't able to get hands on some article which spoke if Android is geared more towards helping developers make games ( or any other category of applications) more easily or is it having more user friendly features for the end users to play better games. I think I am focusing more on the present models out there in market like droid incredible. Any help in terms of links or opinions would be very appreciated. Regards, Varun -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en