[android-beginners] I want to find source file which controls wifi signal icon on status bar.
which file control it ? Tell me please! -- Best Regards! -- 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: execSQL SQLiteException near "?"
In my experience on other SQL databases, you can't substitute a parameter for a table name. You can only substitute values for parameters that don't change the execution path of the query. On Feb 16, 10:59 pm, Torch wrote: > Why doesn't this work? > db.execSQL("INSERT INTO PARTIES (PARTY_NAME, PARTY_COUNT) SELECT > DISTINCT(PARTY), COUNT(PARTY) FROM ? WHERE (Year=?) GROUP BY PARTY > ORDER BY PARTY ASC", new Object[] { "Election", "2004" }); -- 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
Re: [android-beginners] Fighting with Eclipse
All you suggestion are working. Thanks a lot! - Ralf 2010/2/24 Xavier Ducrohet > On Mon, Feb 22, 2010 at 2:27 AM, Ralf Schneider > wrote: > > Hello, > > > > I develop my application in C++ with the NDK. > > > > The C++ part is no problem for me. > > I'm using cygwin and Visual C++ (my project is completely cross-platform > and > > I can test and debug everything with my desktop computer under Windows). > > > > But, I'm really new to Eclipse. There are two annoying things I like to > get > > rid off. > > > > 1.) Whenever I start my application in the debugger with Eclipse I get > > asked: "Select a way to debug ...". A list of options follows: "Android > > Application", "Android JUnit Test", ... > > => Becuase my application is always the same type: An "Android > Application" > > I really want to get rid of this stupid question! How can I disable this > > dialog and go straight into the "debug perspective"? > > I'm guessing you're launching the debug session by simply clicking the > "Debug" (green bug) icon in the toolbar, or Run >Debug from the menu? > > What this does is make Eclipse try to create/find a launch > configuration that is valid for your project instead of launching a > specific configuration, which is what you should do after you've > created one or launched once (this creates one the first time) > > here's what you could do: > - use the drop down menu next to the icon to see the list of existing > launch config (or open "Debug configurations" to create a new one). > - Go to the preferences and under Run/Debug > Launching, change the > "Launch Operation" preference to "Always launch the previously > launched application". That way you can just click the bug icon > directly (or use the Run > Debug which actually becomes Run > Debug > Last Launched) > > > 2.) Because I'm using the NDK my Android Projects contains a shared > library. > > If I compile a new version of the library Eclipse does not recognize that > > the library has changed and does not create a new package. So, I always > have > > to make a modification(space, backspace) to a Java source file if I > create a > > new shared library. > > => How can I tell Eclipse the project depends on the shared library? If > the > > library changes Eclipse should create and deploy a new package. > > It looks like your workspace isn't set for auto-refresh. Go to the > preferences and under General > Workspace check "refresh > automatically". > This will make Eclipse automatically detect files that are changed > outside of Eclipse and trigger a recompilation. > > Xav > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > > Please do not send me questions directly. 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 > -- 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: GPS Can't get onLocationChanged to hit
worked like a charm, thanks. jim On Feb 22, 10:03 am, Mark Murphy wrote: > cellurl wrote: > > I got it to work in an entirely different Activity, but this one uses > > a thread, so perhaps that's a clue. > > > > > @Override > > public void run() { > > > Looper.prepare(); > > It is quite stunning how much Android code you can write without needing > a custom Looper. My advice has always been, and will remain, that if you > feel you need a Looper, start by looking for other implementation > patterns, then and only then actually put in the Looper. > > > final LocationListener locationListener= new > > LocationListener() { > > public void onLocationChanged(Location newloc) { > > Log.d("TAG","NEVER GETS HERE"); > > } > > public void onProviderDisabled(String provider) {} > > public void onProviderEnabled(String provider) {} > > public void onStatusChanged(String provider, int status, > > Bundle extras) {} > > }; > > You are declaring your LocationListener inside your Runnable. That is > very scary. Try declaring it on your Activity or Service or something. > > Even better, there is absolutely no reason to be registering for > location updates in a background thread. Register for the location > updates on your main application thread. If you need to do the work > triggered by the location update on a background thread, deal with it > only at that point (e.g., by an AsyncTask). You can see an example of > that pattern here: > > http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ > > > lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, > > (float) 0.001, locationListener); > > > while (true) > > { > > } > > Never never never never never never never never never never never never > never never never never never never never never never never never never > never never never never never never never never never never never never > never never never never never never never never never never never never > never do this. > > You went and declared a Looper, then decided that you're not actually > going to use the Looper, because you never give the Looper a chance to > do anything. So even if your LocationListener is properly registered, it > will never get control, because your thread is tied up in this busy loop. > > Furthermore, a tight busy loop like that is going to chew up the CPU > enough that it will make anything else difficult to run. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training in US: 26-30 April 2010:http://onlc.com -- 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
Re: [android-beginners] Fighting with Eclipse
On Mon, Feb 22, 2010 at 2:27 AM, Ralf Schneider wrote: > Hello, > > I develop my application in C++ with the NDK. > > The C++ part is no problem for me. > I'm using cygwin and Visual C++ (my project is completely cross-platform and > I can test and debug everything with my desktop computer under Windows). > > But, I'm really new to Eclipse. There are two annoying things I like to get > rid off. > > 1.) Whenever I start my application in the debugger with Eclipse I get > asked: "Select a way to debug ...". A list of options follows: "Android > Application", "Android JUnit Test", ... > => Becuase my application is always the same type: An "Android Application" > I really want to get rid of this stupid question! How can I disable this > dialog and go straight into the "debug perspective"? I'm guessing you're launching the debug session by simply clicking the "Debug" (green bug) icon in the toolbar, or Run >Debug from the menu? What this does is make Eclipse try to create/find a launch configuration that is valid for your project instead of launching a specific configuration, which is what you should do after you've created one or launched once (this creates one the first time) here's what you could do: - use the drop down menu next to the icon to see the list of existing launch config (or open "Debug configurations" to create a new one). - Go to the preferences and under Run/Debug > Launching, change the "Launch Operation" preference to "Always launch the previously launched application". That way you can just click the bug icon directly (or use the Run > Debug which actually becomes Run > Debug Last Launched) > 2.) Because I'm using the NDK my Android Projects contains a shared library. > If I compile a new version of the library Eclipse does not recognize that > the library has changed and does not create a new package. So, I always have > to make a modification(space, backspace) to a Java source file if I create a > new shared library. > => How can I tell Eclipse the project depends on the shared library? If the > library changes Eclipse should create and deploy a new package. It looks like your workspace isn't set for auto-refresh. Go to the preferences and under General > Workspace check "refresh automatically". This will make Eclipse automatically detect files that are changed outside of Eclipse and trigger a recompilation. Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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] How to save a WiFi connection?
Hi, I have written an app that programmatically scans for open WiFi networks and connects to the one that has been hard-coded in the app code. For e.g., I have a home network, SSID: Abhi and is secured as WPA-Personal with a Passkey. The passkey for the above network has been saved within the App, so when it looks for networks the first time and comes across the SSID 'Abhi', it connects with the passkey. However, the problem is, once I am done using the connection and switch WiFi off and back on again, I don't get connected automatically to 'Abhi' which would happen if I manually add the WiFi network going into settings and so on. Can someone help me figure this out? Thanks, Abhi -- 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
Re: [android-beginners] Creating DEMO and FULL versions
And to make it a little more robust so that people can't fake out the key you can check to make sure the Key application and your main application were digitally signed the same. The link I gave you shows how to incorporate that as well. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Feb 23, 2010 at 1:55 PM, Justin Anderson wrote: > Yes there is... As with any solution there are different tradeoffs, > advantages, disadvantages etc. I actually have a post where I explain in > detail what worked for me. The gist of it to move the check from being just > a resource string check to actually creating a "Pro Key Application." > > When the key is installed the pro version of the app runs. When it is not, > the free version of the app runs. > > You can find more info here: > > http://groups.google.com/group/android-beginners/browse_thread/thread/7d5698ab66aadd62/719851f55bfccbd9?lnk=gst&q=appswipe#719851f55bfccbd9 > > Hope this helps, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > > On Mon, Feb 22, 2010 at 9:22 PM, Roger wrote: > >> I have a couple of apps for which I have 2 different versions. Code >> executes conditionally based on R.string.isDemo. Everything works >> great until it's time to publish to the Market. The Market >> (understandably) requires different package names. >> >> So, here's what I started doing - I develop the FULL version in >> Eclipse and test it. When I'm done, I make a copy, import that into >> Eclipse and refactor it to change the package name. When I try to >> install to my dev phone, I get the following error: >> >> "Re-installation failed due to different application signatures." >> >> OK, so I understand what's going on here, but my question is this- if >> I publish this version to the Market, will it require users to >> uninstall and reinstall their copies? That's not exactly a seamless >> process and I don't want the users' databases to be deleted, either. >> >> I really don't want to maintain two versions by adding/testing the >> same code in two different projects. That is a formula for mistakes >> and oversights. Is there some other way? >> >> Maybe when I export the Signed App Package, everything will be fine? >> >> -- >> 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 >> > > -- 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
Re: [android-beginners] Creating DEMO and FULL versions
Yes there is... As with any solution there are different tradeoffs, advantages, disadvantages etc. I actually have a post where I explain in detail what worked for me. The gist of it to move the check from being just a resource string check to actually creating a "Pro Key Application." When the key is installed the pro version of the app runs. When it is not, the free version of the app runs. You can find more info here: http://groups.google.com/group/android-beginners/browse_thread/thread/7d5698ab66aadd62/719851f55bfccbd9?lnk=gst&q=appswipe#719851f55bfccbd9 Hope this helps, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Mon, Feb 22, 2010 at 9:22 PM, Roger wrote: > I have a couple of apps for which I have 2 different versions. Code > executes conditionally based on R.string.isDemo. Everything works > great until it's time to publish to the Market. The Market > (understandably) requires different package names. > > So, here's what I started doing - I develop the FULL version in > Eclipse and test it. When I'm done, I make a copy, import that into > Eclipse and refactor it to change the package name. When I try to > install to my dev phone, I get the following error: > > "Re-installation failed due to different application signatures." > > OK, so I understand what's going on here, but my question is this- if > I publish this version to the Market, will it require users to > uninstall and reinstall their copies? That's not exactly a seamless > process and I don't want the users' databases to be deleted, either. > > I really don't want to maintain two versions by adding/testing the > same code in two different projects. That is a formula for mistakes > and oversights. Is there some other way? > > Maybe when I export the Signed App Package, everything will be fine? > > -- > 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 > -- 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: How to trace the functions called ? [by the app]
On Feb 23, 5:38 am, Naveen DS wrote: > I tried trace view and dmtracedump, but these show info about the > System functions rather than the user defined ones in app.. The android.os.Debug method tracing shows all methods. It doesn't discriminate based on whether something is part of the framework or not. -- 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
RE: [android-beginners] Problems installing Dev Kit
What OS are you installing it on? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Subjective Effect Sent: Sunday, February 21, 2010 11:08 AM To: Android Beginners Subject: [android-beginners] Problems installing Dev Kit 2 things. 1. No matter which version of Eclipse I DL when I try to run it I get an error saying it needs java in some /jre/ directory which doesn't exist in the location it states (in the Eclipse directory). NB: I have the latest JDK. 2. The Android SDK set-up program does nothing. A cmd window flashes up and then... nothing. Can anyone help? -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 271.1.1/2676 - Release Date: 02/22/10 19:34:00 -- 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] Dragging a particular view in a viewgroup
Hi i want to create a custom layout which should be like the home screen in which dragging of a particular view (folder , application icon etc) is possible.I tried with creating views in a viewgroup(customlayout) but i cannot able to drag these views so if any one know the solution suggest me. thanks 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] Re: google gdata Calender api problems with android
1. As written in http://developer.android.com/reference/android/app/DatePickerDialog.OnDateSetListener.html: monthOfYear The month that was set (0-11) for compatibility with Calendar. 2. Did you try to print startdate and enddate to be sure of their values ? Your code is not complete, where did you declare mYear, mMonth and mDay ? 3. I'm not sure but I suppose that getEntries gives the result from the last application on top, like getExtras. I have one question for you : what packages are you using ? I googled for days looking how to get datas from gmail without success. Thanks, ik. On 19 fév, 12:22, gganesh wrote: > Hi group, > I trying to use Datepicker widget to select the date and pass to > google gdata api to fetch calender events > > private DatePickerDialog.OnDateSetListener mDateSetListener = > new DatePickerDialog.OnDateSetListener() { > > public void onDateSet(DatePicker view, int year, > int monthOfYear, int dayOfMonth) > { > > mYear = year; > mMonth = monthOfYear+1; // why is that step up is > needed > mDay = dayOfMonth; > updateDisplay(); > } > }; > > private void updateDisplay() { > > StringBuilder status= new StringBuilder(50); > String y1=String.valueOf(mYear); > String m1=String.valueOf(mMonth); > if(m1.length()==1) > { > m1="0"+m1; > } > String d1=String.valueOf(mDay); > if(d1.length()==1) > { > d1="0"+d1; > } > > String startdate=y1+"-"+m1+"-"+d1+"T"+"00:00:00"; > //example out put for startdate:2009-02-12T00:00:00 > String enddate=y1+"-"+m1+"-"+d1+"T"+"23:59:59"; > > try{ > > myQuery.setMinimumStartTime(DateTime.parseDateTime(startdate)); > myQuery.setMaximumStartTime(DateTime.parseDateTime(enddate));; > Feed resultFeed = myService.query(myQuery, Feed.class); > for (int i = 0; i < resultFeed.getEntries().size(); i++) { > Entry entry = resultFeed.getEntries().get(i); > status.append("\t" + > entry.getTitle().getPlainText()); > > } > }catch(Exception e){System.out.println(e);} > > mDateDisplay.setText(status); > > } > > I will be glad if someone clarifies few points > > 1. Why is that this step up is needed - > mMonth = monthOfYear+1; > 2. DateTime.parseDateTime(String args) takes date format as > 2009-02-12T00:00:00 and is there any other simple approach to convert > int values from Datepicker to required format,the one shown above > doesn't work .At present i hard-code values to make it work ,like > > myQuery.setMinimumStartTime(DateTime.parseDateTime("2010-02-12T00:00:00")); > > myQuery.setMaximumStartTime(DateTime.parseDateTime("2010-03-12T23:59:59")); > > 3. The code works fine(when i hard code the as shown above) for the > very time of execution .when i clicked back button and again tried to > run the app ,resultFeed throws Null pointer exception. > > I could appreciate your valuable suggestion to correct my mistakes. > > Thanks > ganesh -- 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: Why on Earth is it so hard to set up the development environment?
I think I understand your frustration I came from VisStudio and before that it was mostly embedded systems and UNIX. The android "environment" (somewhat like Java itself) tries to be a lot of things to a lot of people -- remember the "write once, run many" pronouncement of years gone by? You can even (so I've been told) can code in VS and then using the binary interface compile and build your Android pkg. Not for the faint of heart though. But let me make this suggestion. If you go to the Android SDK site, read the basic material regarding android development, read the simple HELLO world example(s) using Eclipse, then following that lead and download Eclipse, "attaching to" the SDK itself, and creating at least one target "DEVICE"; that is to say --- doing exactly as the docs suggest ... You Will Succeed. The bad news is that the Eclipse and Android SDK do not spoon feed you (as the VS comes close to doing) *but* it does make logical sense and you can create an app and run (and DEBUG) it on the Eclipse/Android- device-emulator. Perhaps if you are still having trouble you can re-view each step, and send in questions at each phase? It may seem quite a bit less daunting. You should also apply some critical thinking to each step your stuck at... e.g. I found that I had to change the PORT number from the DEFAULT when trying to DEBUG my first app. The Android Hello World doc indicated that the debugger would try to attach via PORT # x, but my Mac-version documentation for the (binary)debugger suggested a different PORT # y --- and viola' it finally connected! we're here to help. tob -- 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] ListViews, Tabs & Back buttons!!
Hi all. I don't think I'll show code as I'd like to understand the correct method rather than get bogged down in syntax. I have three tabs which are going to hold three different RSS feeds. Focusing purely on the Tab 1, I'm loading a ListView of the required feed into that, this list has an onClickListener on it. I can successfully select a row and pass the required data to a ScrollView holding the specific feed item content if I set up the second tab to hold that ScrollView, but ideally I'd like the ScrollView to be loaded into Tab 1 in place of the ListView its coming from. Eveything I've tried results in an Emulator load error. I get the feeling its because I've declared the listview in main.xml and I'm then trying to load a ScrollView into it which isn't of the same type. So what do I do? Convert the xml node in main.xml somehow? This feels like it should be a bread and butter type operation but I can't work it out. One way that almost works is to club the ListView and ScrollView together in a ViewFlipper. I can then toggle between them but this feels incorrect and I can't see any way of controlling a flipper view sufficiently, especially how do I then implement a keydown listener to control the back button back to the listview. Any insight as to the correct approach much appreciated. Many thanks. Davdi -- 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] How to get more than one result from Voice Recognition?
I see there is a parameter called EXTRA_MAX_RESULTS to limit the number of results you get back from the Recognizer, but I never get more than one anyway. Is there some way to get multiple closest matches back? -- 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] Error in Activity Lifecycle diagram? When to open/close SQLite db?
Hi, Looking at the activity lifecycle diagram here http://developer.android.com/guide/topics/fundamentals.html#actlife I wonder, shouldn't onDestroy also be called if the process is killed (the path on the left braching off from onPause - "Other Application needs memory")? Specifically I wonder when to open and close a SQLite database? Would onCreate and onDestroy be the right place, or should it rather be onResume and onPause? Thanks! Bjoern -- 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] Creating DEMO and FULL versions
I have a couple of apps for which I have 2 different versions. Code executes conditionally based on R.string.isDemo. Everything works great until it's time to publish to the Market. The Market (understandably) requires different package names. So, here's what I started doing - I develop the FULL version in Eclipse and test it. When I'm done, I make a copy, import that into Eclipse and refactor it to change the package name. When I try to install to my dev phone, I get the following error: "Re-installation failed due to different application signatures." OK, so I understand what's going on here, but my question is this- if I publish this version to the Market, will it require users to uninstall and reinstall their copies? That's not exactly a seamless process and I don't want the users' databases to be deleted, either. I really don't want to maintain two versions by adding/testing the same code in two different projects. That is a formula for mistakes and oversights. Is there some other way? Maybe when I export the Signed App Package, everything will be fine? -- 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] Dev phone 2 have pressure sensor?
Does the dev phone 2 have a pressure sensor? 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] onClick symbol insert
Hello, I have a button next to an EditText window and I would like this button to always insert a symbol of my choice like £ when clicked. And I want it to be inserted where ever the marker is in the EditText window. How do I do this? André -- 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: Help Cannot Deploy to Droid
Thank you! I was able to deploy to my Droid phone using this method. One question though. I have a few apps that I deploy my Droid through eclipse, but this one recently stopped doing so. The other apps will still deploy to it when it is hooked up. Is there there a project setting I should look at? Dale On Feb 23, 12:27 pm, BobG wrote: > Close emulator. Open cmd window. Navigate to tools dir. c:>adb > install pathtoyourapp.apk > Hope this helps? -- 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
Re: [android-beginners] Re: Deactivate any calls to Log methods before publishing app
However, it would be a good programming practice to only leave logging on if you provide a way for users to get that information back to you if they have a problem... Otherwise it is just wasting cycles and battery and slows your app down a bit. Again though, the key word is SHOULD. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Feb 23, 2010 at 8:56 AM, TreKing wrote: > On Tue, Feb 23, 2010 at 4:55 AM, Indicator Veritatis wrote: > >> is is really true that all logging using 'Log' must be turned off to put >> the application on the market? >> > > No, it's just recommended that you do. > > >> I can think of lots of uses for logging >> that even the user can turn on/off, yet the guidelines at >> http://developer.android.com/guide/publishing/preparing.html really do >> seem to forbid using 'Log'. >> > > Where does it say you're forbidden? All I saw was "you should make sure > that debug facilities are turned off...". Keyword: SHOULD. > > Many many apps leave logging on for release. You can see for yourself by > just running a few on your device while connected to the debugger or DDMS. > > > - > 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. > > 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 > -- 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] Filesystem sandbox
I was thinking about making an app that emails and then deleted files (backups) from my sd card. I was wondering if that is even gonna be possible. I remember reading something about restrictions on manipulation of the files of other programs. Thanks I love watching this group even thought I have yet gotten a chanxe to really code anything. sent on location from my Motorola Droid -- 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: Proximity alert for location already in.
Hey Mark, That was quick. Thanks a lot. I appreciate. Regards, Tejas On Feb 23, 2:02 pm, Mark Murphy wrote: > Tej wrote: > > Yes. Agreed. > > But in this case, the location I check may not be exactly the same as > > the point I want to register the proximity alert. > > How will I find out whether the two coordinates are within certain > > distance ? > > http://stackoverflow.com/questions/27928/how-do-i-calculate-distance-... > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.9 > 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.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] How to trace the functions called ? [by the app]
On Tue, Feb 23, 2010 at 7:38 AM, Naveen DS wrote: > I tried trace view and dmtracedump, but these show info about the > System functions rather than the user defined ones in app.. > http://developer.android.com/intl/de/reference/android/util/Log.html - 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. 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
Re: [android-beginners] Re: Proximity alert for location already in.
Tej wrote: > Yes. Agreed. > But in this case, the location I check may not be exactly the same as > the point I want to register the proximity alert. > How will I find out whether the two coordinates are within certain > distance ? http://stackoverflow.com/questions/27928/how-do-i-calculate-distance-between-two-latitude-longitude-points -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.9 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.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Proximity alert for location already in.
Tej wrote: > If I add a proximity alert for a position say (x,y) and the device is > already at that location, then I want an alert to fire. It seems that > proximity alert doesn't work in this situation. Can anyone tell how > can this functionality be achieved ? Check your location before you register your proximity alert. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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] How to trace the functions called ? [by the app]
Hi, I am using an application for android and having source code also. I am trying to extend that app and I am unable to understand how the app is running inside android. Is there any way to know which "method" or "function" is called and in what sequence(when the application is running..).?? ie.. for eg, if app has some 2 classes and each has 5 methods each , I want to kno which method is called, (I need to know the sequence) I tried trace view and dmtracedump, but these show info about the System functions rather than the user defined ones in app.. Kindly help me out with this .. Thanks .. Naveen.DS -- 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: Proximity alert for location already in.
Yes. Agreed. But in this case, the location I check may not be exactly the same as the point I want to register the proximity alert. How will I find out whether the two coordinates are within certain distance ? On Feb 23, 12:07 pm, Mark Murphy wrote: > Tej wrote: > > If I add a proximity alert for a position say (x,y) and the device is > > already at that location, then I want an alert to fire. It seems that > > proximity alert doesn't work in this situation. Can anyone tell how > > can this functionality be achieved ? > > Check your location before you register your proximity alert. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books -- 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: Help Cannot Deploy to Droid
Close emulator. Open cmd window. Navigate to tools dir. c:>adb install pathtoyourapp.apk Hope this helps? -- 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] Android alarm manager
Hi, i have a class which sets an alarm but i need to set a more of these alarms .. instead of duplicating classes is there a way i can just make a new instance of the class and set the alarm time? Each alarm class will be triggered from a button in another class. Im trying to avoid having alot of duplicate classes with different times set for the alarms. Heres my code. public class Alarm extends Activity { /* for logging - see my tutorial on debuggin Android apps for more detail */ private static final String TAG = "SomeApp "; protected Toast mToast; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setAlarm(); } public void setAlarm() { try { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DAY_OF_YEAR, 0); cal.set(Calendar.HOUR_OF_DAY, 9); cal.set(Calendar.MINUTE, 01); cal.set(Calendar.SECOND, 0); Intent intent= new Intent(Alarm.this, Alarm1.class); PendingIntent sender = PendingIntent.getBroadcast(this, 1234567, intent, 0); PendingIntent sende2 = PendingIntent.getBroadcast(this, 123123, intent, 0); AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); am.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender); // to be alerted 30 seconds from now am.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sende2); // to be alerted 15 seconds from now /* To show how alarms are cancelled we will create a newIntent and a new PendingIntent with the * same requestCode as the PendingIntent alarm we want to cancel. In this case, it is 1234567. * Note: The intent and PendingIntent have to be the same as the ones used to create the alarms. */ Intent intent1= new Intent(Alarm.this, Alarm1.class); PendingIntent sender1 = PendingIntent.getBroadcast(this, 1234567, intent1, 0); AlarmManager am1 = (AlarmManager) getSystemService(ALARM_SERVICE); am1.cancel(sender1); } catch (Exception e) { Log.e(TAG, "ERROR IN CODE:"+e.toString()); } } }; b1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Intent i = new Intent(getContext(),Alarm.class); //Code below is from another class which is where im calling the alarm application // ctx.startActivity (i);// start the Alarm class activity (class)public void onClick(View v) { Alarm a = new Alarm (); a.setAlarm(); b1.setText(prod); } }); -- 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: tutorials for a beginner?
There are lots of alternative tutorials. But they tend to be even more out of date than Google's. So the best course of action is to be persistent, live with the bugs you find in the online tutorials, finding workarounds by searching this group, Stack Overflow, and the open internet. There you will find corrections for at least many of the bugs in the tutorials. That said, I have found the following alternative online tutorials also useful: http://android.cyrilmottier.com/?p=85 http://developerlife.com/tutorials/?p=300 http://www.anddev.org/viewforum.php?f=2 On Feb 17, 1:32 pm, herbie <4whi...@o2.co.uk> wrote: > I've started working though the 'Hello Views' tutorials but like a > number of people on this group, I've found a number bugs which is > frustraiting. > > Can anyone recommend any alternative online tutorials? > > 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] Proximity alert for location already in.
Hi, If I add a proximity alert for a position say (x,y) and the device is already at that location, then I want an alert to fire. It seems that proximity alert doesn't work in this situation. Can anyone tell how can this functionality be achieved ? Regards, Tej -- 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
Re: [android-beginners] Problem with my first very basic Google map application
hey imran, try to review your procedure in generating api key for google maps. you must be doing a mistake . regards, wahib On 2/21/10, IT wrote: > Hello everyone! > I am new at Android.I have been trying from many days to make very > basic google map application but unable to complete it yet...:( > there are no errors in code,emmulator running fine from terminal,Map > key also fine but still i am unable to see the map.When i run my > app only grid appears and map is not displayed.Here is the code,can > any body please help me .. > > > ///.java > package com.android.GoogleMaps; > > import android.os.Bundle; > > import com.google.android.maps.MapActivity; > import com.google.android.maps.MapView; > > > public class HelloGoogleMaps extends MapActivity { > /** Called when the activity is first created. */ > @Override >public void onCreate(Bundle savedInstanceState) > { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > MapView mapView =(MapView)findViewById(R.id.mapview); > mapView.setBuiltInZoomControls(true); > } > protected boolean isRouteDisplayed(){ > return false; > } > } > ///main.xml > > xmlns:android="http://schemas.android.com/apk/res/android"; > android:id="@+id/mapview" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_weight="1" > android:clickable="true" > android:apiKey="0fyF-qSuCtdQinoUGoFbLxZoTx10Tm-YV6m6A8g" > /> > /manifest > file// > > http://schemas.android.com/apk/res/android"; > package="com.android.GoogleMaps" > android:versionCode="1" > android:versionName="1.0"> > > > android:name="android.permission.ACCESS_COARSE_LOCATION"/> > android:name="android.permission.ACCESS_FINE_LOCATION"/> > > > >android:label="@string/app_name" > android:theme="@android:style/Theme.NoTitleBar"> > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > / > don't know where is anything wrong.I am using eclipse and android > 1.6.Anybody please helpme > > -- > 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 > -- 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. 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: Internet only via WLAN, no 3g
OK i found the problem. the content i get from the URL is with line breaks, when connected via wifi. When the phone is connected via mobile internet, the content is without line breaks! crazy... any ideas on that? On 16 Feb., 02:20, Marco wrote: > Hi everyone, > my application connects to the internet via import java.net.URL. > If the phone is connected via WLAN, everything works fine! But if I > turn off WLAN, > the application crashes instead of using the 3G connection. > I've set the INTERNET permissions. Is there anything that I lost sight > of? > > regards, > Marco -- 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: can't seem to stop my media player in a service..
hello, you are kind of committing suicide if you do super.onDestroy() :) -- Jay - Android training for developers on http://android.voxisland.com On Feb 18, 7:20 pm, ChaluxeDeluxe wrote: > Hi, I want my app to run a service in the background playing a sound. > > I created this service and when it create's it is set to start the > media player. > > I want the media player to stop simply by stopping the service. > > In my activity i have startService called and that starts the music > but when I call stopService I have to force close. > > If I put a simple Toast in the onDestroy than the whole thing works > like a charm but I still have the problem of the sound hasn't stopped. > > Here is the code from my service.. > > import android.app.Service; > import android.content.Intent; > import android.media.MediaPlayer; > import android.os.IBinder; > > public class MyService extends Service { > > private MediaPlayer player; > > @Override > public IBinder onBind(Intent intent) { > return null; > } > > @Override > public void onCreate() { > super.onCreate(); > MediaPlayer playerlayer = MediaPlayer.create(MyService.this, > R.raw.my_sound); > player.start(); > player.setLooping(true); > } > > @Override > public void onDestroy() { > super.onDestroy(); > player.stop(); > } > > > > } -- 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: Webview
You need to capture the Back keyevent... public boolean onKeyDown(int keyCode, KeyEvent event){ if((keyCode == KeyEvent.KEYCODE_BACK)){ // put your code to recall page here } return super.onKeyDown(keyCode, event); } But you have to be careful because "Back" is also how the user expects to leave the app (which is why your app is closing...you're at the main activity it sounds like when the user hits back). Ken On Feb 22, 8:26 pm, StouteEnterprises wrote: > I can not figure a way to make the back button recall the last loaded > page in my applications. > > Search: "Stoute" in market for the apps. > > When you click the back button it closes the application. > > Can someone help me figure this out? I tried looking it up in the > developer tools and got lost in a string of code. > > Is there an easy way to solve this problem? If so what is the answer? -- 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: Default Map Not Showing Up During Tutorial
So I went and attempted to write the same program on a different computer. It worked fine. I suspect that this is not an issue with the apikey, but rather some setting in my original computer that limits access to the internet (possibly higher security settings or some firewall). Anyways, thanks for the help and hopefully this helps others as well. Mike On Feb 22, 7:10 pm, Imran Tanveer wrote: > Hello Mark, > > I am stuck in prob similar to this i-e i am making basic Map app that jst > displays map.Only grid appears when i run my app and no map...:( > I posted this problem on beginner's group but got no reply.I am using > android 1.6 and working on linux.Can u share any app as shared one for > windows so that I can figure out where I am wrong.Please help me I m stuck > with this for many days and had tried evry thing.Please help me. > > Thanks in Advance > > On Tue, Feb 23, 2010 at 7:39 AM, Mark Murphy wrote: > > > Mike wrote: > > > It looks to me like both of the issues you mentioned should be taken > > > care of, but did I type something incorrectly? > > > I am assuming the asterisks in the API key are something you put there. > > Bear in mind that the API key is tied to the signing key on your > > development machine, so I'm not aware of any harm in publishing them. > > > Nothing leaps out at me as being particularly wrong. > > > Download and grab this project: > > >http://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk/ > > > Put your API key in place of mine and give it a shot. If it works, then > > you have a basis for figuring out where we're approaching things > > differently. If it doesn't work, your API key is messed up for some reason. > > > -- > > Mark Murphy (a Commons Guy) > >http://commonsware.com|http://twitter.com/commonsguy > > > Android 2.0 Programming Books:http://commonsware.com/books > > > -- > > 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 -- 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
Re: [android-beginners] Re: Deactivate any calls to Log methods before publishing app
On Tue, Feb 23, 2010 at 4:55 AM, Indicator Veritatis wrote: > is is really true that all logging using 'Log' must be turned off to put > the application on the market? > No, it's just recommended that you do. > I can think of lots of uses for logging > that even the user can turn on/off, yet the guidelines at > http://developer.android.com/guide/publishing/preparing.html really do > seem to forbid using 'Log'. > Where does it say you're forbidden? All I saw was "you should make sure that debug facilities are turned off...". Keyword: SHOULD. Many many apps leave logging on for release. You can see for yourself by just running a few on your device while connected to the debugger or DDMS. - 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. 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
Re: [android-beginners] What's the little clock by one of my contacts mean?
On Wed, Feb 17, 2010 at 5:51 AM, Carl Whalley wrote: > What's this mean? It's their Google Chat status. Green means they're online. Orange means they're away. - 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. 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
Re: [android-beginners] Problem with AlertDialog.Builder
On Sat, Feb 20, 2010 at 2:38 PM, Ivan Longin wrote: > i've heard that method getApplicationContext() is creating some > problems but i've tried replace it with activity.this and it doesn't > work anyway... > What do you mean it doesn't work anyway? What happens when you use the activity (what you should be doing)? - 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. 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
Re: [android-beginners] help installing ADT eclipse Plugin
Hi, do you is using what kind of operational system? You can try to add http://download.eclipse.org/releases/galileo to the update list and do an update. This may install the pluggins that are missing. Regards, Rogerio 2010/2/22 bmesta > Hello, > > I tried following the installation steps on > http://developer.android.com/sdk/eclipse-adt.html > but i get the following errors when i reach the last step. > > The error i get is the following: > Cannot complete the install because one or more required items could > not be found. > Software being installed: Android Development Tools > 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group > 0.9.5.v200911191123-20404) > Missing requirement: Android Development Tools > 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group > 0.9.5.v200911191123-20404) requires 'org.eclipse.wst.xml.ui 0.0.0' but > it could not be found > > FYI, I tried all three different ways even downloading the archive and > installing it manually but unfortunately no luck. How do you fix this? > > -- > 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 > -- 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: Deactivate any calls to Log methods before publishing app
Hi, Justin- True to from, the official Android documentation on this property on http://developer.android.com/reference/android/R.attr.html is not all that clear, but it seems to say just as you do: that it concerns using the debugger, NOT logging. But the OP had another closely related question still unanswered: is is really true that all logging using 'Log' must be turned off to put the application on the market? I can think of lots of uses for logging that even the user can turn on/off, yet the guidelines at http://developer.android.com/guide/publishing/preparing.html really do seem to forbid using 'Log'. On Feb 22, 6:29 am, Justin Anderson wrote: > AFAIK, the android:debuggable property only affects whether you can actually > step through your code in the debugger... > > On Feb 21, 2010 11:15 AM, "mikek" wrote: > > In the Android publishing How-To guide it says, > > * Deactivate any calls to Log methods in the source code. > > I assume this refers to calls in the app like, > Log.i(Application.TAG, "connectClient connect... "); > > I thought these log messages would automatically be supressed when, > * Remove the android:debuggable="true" attribute from the > element of the manifest. > > Is it really the case that all Log messages need to be commented out? > > -- > 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 > athttp://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com > For more options, visit this group > athttp://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: Scrollbars Problem
He explicitly said he wanted horizontal scroll bars. Those are for horizontal scrolling; ScrollView supports only vertical. If the OP wants to scroll a TextView, he should look at http://developer.android.com/reference/android/R.styleable.html#TextView_scrollHorizontally. On Feb 19, 3:00 pm, Mike wrote: > I assume you want some part of a view in one of your layouts to > scroll? Place that view inside a ScrollView. > > - Mike > > On Feb 8, 11:02 pm, Chirayu Dalwadi wrote: > > > hii folks, > > > How to apply horizontal scroll bars? > > > -- > > Warm Regards, > > Chirayu Dalwadi > > > Cell Number: +91-997-470-4341 > > Email: chirayu.dalw...@gmail.com > > Profile:http://www.google.com/profiles/chirayu.dalwadi > > > "Pain is temporary. Quitting lasts forever." -- Lance Armstrong -- 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