[android-developers] Android soundpool stop sequence of sounds
I have developed an application that plays a sequence of 20 sounds using soundpool. If I try to use a button or touch the screen during the playback, I get a dialog "Sorry! Application is not responding." I also get a Force close button and a wait button. Is there a way to use the user interface to stop soundpool from playing? Any advice is appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Downloading an .apk update
The following url explains how to install an .apk file from your SD card. My daughter helps me test my projects, so she installs the .apk to her Droid after I send it to her as an e-mail attachment. http://www.ieumart.com/how-to-install-apk-files-through-desktop-using-windows-vista.html On Feb 10, 4:11 pm, dashman wrote: > ok - i see what marcin was suggesting. > > i download the .apk to the sd card. > > now - what intent do i start to install the .apk file. > > On Feb 10, 12:36 pm, Mark Murphy wrote:> On Thu, > Feb 10, 2011 at 12:11 PM, dashman wrote: > > > > i set the mime-type like this > > > > i.setType("application/vnd.android.package-archive"); > > > > and the app crashes. > > > Use setDataAndType(). setType() nulls out your Uri. And, again, this > > is only needed if you follow Marcin's recommendation and download the > > APK yourself, then use an Intent to kick off installation. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Dictionary for word game ..pls help :)
Have you considered Sqlite? I'm using it in a speeling app I'm developing. Jerry On Feb 5, 3:36 pm, nivedita arora wrote: > hi, > i really need help. > i am making a word game for college which uses words of length 4 to > 7. > i have a certain array of string containing words of length 4 -7.i > have to check if those words are valid english words or not.i was > earlier trying to implement database containing 4 tables each having > all possible for word of length 4,5,6,7 which were being added by > reading respective file of words i had made . > > But its taking way too much time to create database for any user to > wait,and the app times out. > > so i started searching alternate ways..cant decide what should be done > and is best considering my req. > 1)trie for dictionary > 2)hashset for storing words of each length of 4,5,6,7 > (would using this be better than trie as i hv to access just words > of length 4,5,6,7 only?) > 3)some dictionary api(some preinstalled db whch i cud query) > > pls any help would be really appreciated what should be selected? > i want to make an efficient game.pls suggest what should be done? > thanx in advance :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android activity forces close.
I am working on a game app for my granddaughter. It has several activities. I was working on the hangman game activity and decided to add some animation. Afterward, I find the activity forces closed. I have it defined in the androidmanifest.xml file. I even reverted to a prior version of the activity that was working fine, but it still forces close. Note the line that has the comment "// Crashes here." I have a breakpoint set at that line, but execution stops at this point. Any advice is appreciated. Source code for game menu activity shown below. package com.AE.HollySpelling; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class GameMenu extends ListActivity { /** Called when the activity is first created. */ String[] items={"Spelling test", "Scramble", "Hangman", "Exit"}; Intent intent = getIntent(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.games); setListAdapter(new ArrayAdapter(this, R.layout.listrow, R.id.label, items)); Intent intent = getIntent(); } @Override public void onListItemClick(ListView parent, View v, int position, long id) { switch(position) { case 0: intent = new Intent(v.getContext(), VoiceManager.class); startActivityForResult(intent, 0); break; case 2: intent = new Intent(v.getContext(), Hangman.class); startActivityForResult(intent, 0); // Crashes here. break; case 3: finish(); break; } } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: numeric input by default
This might be a start in the XML layout for EditText: android:numeric="integer|decimal" android:inputType="numberDecimal" On Sep 27, 11:45 am, easy wrote: > I have EditText. If soft keyboard is open user is able to change > laquage or numeric-alfa mode. I want the EditText is in numeric mode > by default BUT user has to have possibility to change the keyboard > from numeric mode to text mode. > If anybody knows tell me how to do it please. > > Best Regards, > Sergey -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ho to take a screenshot of the current activity and email it to a specific email id
If you are using Windows, this should work: The Print Screen key will copy the screen image to the windows clipboard. Alt Print Screen will copy the active window to the clipboard. You should be able to past into an e-mail, or at least paste into an editor like Paint and save it to a file for insertion into an e-mail. Jerry On Sep 10, 1:41 am, DG wrote: > Hello, > > Currently, I am working on an Android application were I have a > requirement to get a screenshot of current activity on a button click > and send it to a specific email id. > > I have searched the documentation and did not got any way to get the > screen shot and add it as the attachment. > > Is there any way in Android SDK to get the screen shot. > > Thanks for Help, > Dwakresh -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why Android cannot play .avi but can play youtube (avi?) and flash?
I'm not certain, but I think YouTube converts uploaded AVI files to Flash, or some other format before putting them online. On Sep 8, 5:32 am, Mystique wrote: > Most youtube are flash am I right? then the codec must be build in > somewhere? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Apps availability on US Market
I checked. A world of faces is on the market with a 5 star rating. Jerry On Aug 30, 7:55 pm, Yahel wrote: > Hi all, > > Sorry to bother the group for that but I don't really know where to > ask for that favor :s > > I've launched my new app "a World of Faces" a few days ago. Nothing > too fancy but an idea I had for a long time. > > Anyway I was looking at my stats today and realized I have no one from > the US that came to visit. So in short I was wondering if someone in > the us could just try to check if my app is available on the market > there. > > Thanks a million. > > Yahel. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en