[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo
Hi Dianne, I'm missing that android:required part - is this how we can use it?: I want to say: "I want permission to use the camera if it exists, and I'm going to use the camera if it exists - but neither are required for my application". The above should also allow me to use auto-focus (if it exists), right? I tried adding the above "android:required" but it doesn't seem to belong there, Thanks On Dec 17, 5:26 pm, Dianne Hackborn wrote: > It looks like the overview docs are not yet mentioning this, but you can use > android:required to say you don't need the feature: > > http://developer.android.com/reference/android/R.styleable.html#Andro... > > > > > > On Thu, Dec 17, 2009 at 9:12 AM, Mark Wyszomierski wrote: > > >> So if my app does (sometimes) use autofocus but works OK without > > autofocus I should use > > > What if the app uses the camera if one is available, but also works > > fine on a device *without* a camera? By adding the following to the > > manifest: > > > > > > > > are we going to block all devices that don't have a camera? > > > Thanks > > > On Dec 3, 7:58 pm, steve wrote: > > > While we are at it , any idea why the exif interface is not > > > availableon the tattoo ? > > > > On Dec 2, 12:08 am, "tomei.ninge...@gmail.com" > > > > wrote: > > > > After I rebuilt my app a few times w/o change the AndroidManifest.xml, > > > > my user told me now he can see it on the Android market. This seems a > > > > bit strange, but I am happier now. > > > > > SoftwareForMe.com wrote: > > > > > "I guess Google expects others to fill the void and build business > > > > around the services we all need. For > > > > example, online market listings: there are now many." > > > > > How can anyone build such a business when the market data is not > > > > available (without hacking, etc)? I have used many of the online > > > > market listings. None of them allow me to contact the user. Only one > > > > allows viewing multi-language comments, but that's very clumsy to use. > > > > > I am frustrated because Google has all the data. If it decides just to > > > > lift its little finger for a few engineer-days, the data can be > > > > exported to Developer Console. And Google has not done anything for > > > > more than a year. And that's because it thinks developers like us a > > > > shiite. > > > > > On Dec 1, 11:22 am, "SoftwareForMe.com SoftwareForMe.com" > > > > > wrote: > > > > > @Nemat, > > > > > > Would you mind telling me if you can see PhoneMyPC in the Market on > > your > > > > > Tattoo? > > > > > > @tomei, > > > > > I too would like some of those services. I guess Google expects > > others to > > > > > fill the void and build business around the services we all need. For > > > > > example, online market listings: there are now many. > > > > > > I hope you're wrong about HTML5/Chrome; I'd like to see the idea of > > on-board > > > > > apps continue. There are many things you can do with an app that > > won't be > > > > > possible in HTML5 for many years to come. > > > > > > SoftwareForMe.com > > > > > Makers of PhoneMyPC > > > > > > On Mon, Nov 30, 2009 at 10:21 PM, tomei.ninge...@gmail.com < > > > > > > tomei.ninge...@gmail.com> wrote: > > > > > > No, it's not protected. > > > > > > > On Nov 30, 10:12 pm, westmeadboy wrote: > > > > > > > Is your app copy-protected? > > > > > > > > On Dec 1, 1:48 pm, "tomei.ninge...@gmail.com" > > > > > > > > wrote: > > > > > > > > Hi SoftwareForMe.com, > > > > > > > > > Sorry for my ranting. I was/am really frustrated by Google's > > lack of > > > > > > > > developer support, especially related to the Market. > > > > > > > > > I really would like to have features like these: > > > > > > > > > (a) When I upload my app, it would be nice for them to give me > > a > > > > > > > > warning -- your app will not show up on these devices because > > of > > > > > > > > reason XXX. > > > > > > > > > (b) contact a user to address bad comments he posted about my > > app > > > > > > > > > (c) see comments from users, in all languages, in real time via > > the > > > > > > > > web > > > > > > > > > (d) see ranking, per-country statistics, etc > > > > > > > > > The Market has been operating for more than a year. I can't > > believe a > > > > > > > > company who claims to be a web company can't even do such basic > > stuff. > > > > > > > > > My only conclusion is -- Google doesn't want Android apps to be > > "too > > > > > > > > successful". They want everyone to use HTML5, web, etc, so that > > they > > > > > > > > can sell more ads. That's the direction they want to go with > > Chrome > > > > > > > > OS. So for developers like me who write a local, non-ad-based > > app, I > > > > > > > > can go screw myself. > > > > > > > > > On Nov 30, 9:06 pm, "SoftwareForMe.com SoftwareForMe.com" > > > > > > > > > wrote: > > > > > > > > > Being a real lover of the Android platform, I'm a little > > frustrated > > > > > > that > > > > > > > > > things aren't perfect, that there are
[android-developers] Format SD card.
Hi, Is there any way to Format the SD card data, through Android SDK code? Regards, Raj -- 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] link for my products in android market
If I have any products published by me in android market and I want to put a link to that [in my website, marketing docs] to enable users to see it before downloading in android device ? Wont I be able to do that in Android ? As we do it in case of iPhone apps ? regards -- 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] using soundPool but sound plays after a delay, sound is lagging
I am using the SoundPool as follows: Caching my sounds: // load sound effects soundPool = new SoundPool(2, AudioManager.STREAM_MUSIC, 0); soundPoolMap = new HashMap(); AssetFileDescriptor afd; try { afd = context.getAssets().openFd("sounds/piecemove.ogg"); soundPoolMap.put(SOUND_PIECEMOVE, soundPool.load(afd, 1)); afd = context.getAssets().openFd("sounds/piecestop.ogg"); soundPoolMap.put(SOUND_PIECESTOP, soundPool.load(afd, 1)); afd = context.getAssets().openFd("sounds/pieceattack.ogg"); soundPoolMap.put(SOUND_PIECEATTACK, soundPool.load(afd, 1)); afd = context.getAssets().openFd("sounds/pieceselect.ogg"); soundPoolMap.put(SOUND_PIECESELECT, soundPool.load(afd, 1)); afd = context.getAssets().openFd("sounds/selection.ogg"); soundPoolMap.put(SOUND_MENUSELECTION, soundPool.load(afd, 1)); afd = context.getAssets().openFd("sounds/pageturn.ogg"); soundPoolMap.put(SOUND_PAGETURN, soundPool.load(afd, 1)); } catch (IOException e) { e.printStackTrace(); } Function to play sounds: public static int playSound(Context context, int sound) { AudioManager mgr = (AudioManager) context .getSystemService(Context.AUDIO_SERVICE); float streamVolumeCurrent = mgr .getStreamVolume(AudioManager.STREAM_MUSIC); float streamVolumeMax = mgr .getStreamMaxVolume(AudioManager.STREAM_MUSIC); float volume = streamVolumeCurrent / streamVolumeMax; /* Play the sound with the correct volume */ return soundPool .play(soundPoolMap.get(sound), volume, volume, 1, 0, 1f); } Playing a sound effect i.e when button is clicked: Resources.playSound(context, Resources.SOUND_PIECESELECT); However as I said the sound is lagging. What can I do to improve this? All my sounds are OGG file format. -- 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] Sensor Manager: How to Use
I work on SDK1.5 this code compile and make apk file. but this file don't walk on my virtual device. package com.exemple.android.skeleton; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.hardware.*; import java.util.Date; public class TimeButton extends Activity implements SensorListener { /** Called when the activity is first created. */ TextView myTextView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); SensorManager sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE); boolean TempSupported = sensorMgr.registerListener(this,SensorManager.SENSOR_TEMPERATURE,SensorManager.SENSOR_DELAY_UI); if (!TempSupported) { sensorMgr.unregisterListener(this,SensorManager.SENSOR_TEMPERATURE); myTextView.findViewById(R.id.TextView01); myTextView.setText("Pas de temperature"); } } SensorListener mySensorListener = new SensorListener() { @Override public void onSensorChanged(int sensor, float[] values) { if (sensor == SensorManager.SENSOR_TEMPERATURE) onTemperatureChanged(sensor, values); } public void onTemperatureChanged(int sensor, float[] values){ float temp; temp = values[0]; myTextView.findViewById(R.id.TextView01); myTextView.setText("Temp:"+temp); } public void onAccuracyChanged(int sensor, int accuracy) {} }; @Override public void onAccuracyChanged(int sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(int sensor, float[] values) { // TODO Auto-generated method stub } } -- Nzouwo bernis Etudiant maître en informatique. spécialité réseaux et dévellopement. certifié cisco Tel:(00237)75282421 loisirs: sport, jeu d'echec, musique... -- 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: Same servicein multiple APKs, only want "best one" to launch
Hi Diane, > something else if you want. Then when you bind to the service, set an > explicit component in the intent for the service you have picked. How would I do that if the service is implemented in another APK ? I can't call new Intent(Context context,Class clazz) in this case because clazz may not be in the current APK. Thanks > > > > On Thu, Dec 17, 2009 at 9:20 AM, Watcher wrote: > > Hi, > > > I have the same service in multiple APKs. In each of the APKs, I am > > going to launch the serivce. > > Because the APK are difference "applications" that have been installed > > & upgraded at various times, the service implementation in each may be > > different. I am trying to figure out a way to make sure startService() > > runs the implementation that is newest. > > > I have been fiddling around with PackageManager and Manifest meta-data > > and categories but I can't seem to get my head around it. It's really > > a leader-election problem... has anyone ever done this ? Any clues ? > > > Thanks ! > > > -- > > 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 > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- 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] [DRM] How to install a DRM CD content?
Dear All, I want to implement OMA DRM 1.0 CD case on my project. I know Android default support OMA DRM 1.0 FL case, after i tracing codes, i found after downloading content(FL ot CD), it will call addDrmFile() function in DrmStore.java. In FL case, the process is ok because there is no constraint, but on CD case, it will fail in below process DrmRights rights = manager.queryRights(content); this process will call SVC_drm_getRightsInfo function to get right infomation. Than it will fail at drm_readFromUidTxt function means there is no rights, but in CD case, it should have rights in CD DRM message ( I am sure the CD DRM message test content is normal cause it works on other DRM supported system ). And the Uid text path is at "/data/drm/rights/ uid.txt", But i don't see any write or installation of CD right process. I also don't why query rights info in addDrmFile() before the right installation. Does any one can give me a help? Best regards Michael -- 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: Same servicein multiple APKs, only want "best one" to launch
Using android:priority is an interesting idea ! I didn't even know it was there. Reading from the docs, I see that "When an intent could be handled by multiple activities with different priorities, Android will consider only those with higher priority values as potential targets for the intent." and then something about broadcast receivers. But nothing about services so does this not apply to services ? Because if it did, my problem would be solved just by incrementing this ! Thanks On 18 déc, 02:39, John Seghers wrote: > Here is one possibility: use ordered BroadcastReceivers with > android:priority attributes to determine which service is newest. > > Each APK has its copy of the Service and a BroadcastReceiver. > The intent-filter for the BroadcastReceiver has the android:priority > attribute. Upon each release across all of these apps, you increment > the priority so that the newer the APK (and thus the service) the > higher the priority. > > When you want to invoke a service, first use > Context.sendOrderedBroadcast to send an intent to the > BroadcastReceivers in the apps. The one with the highest priority will > be called first. You can then return to the caller an Intent to be > used to start the service in that APK. > > Returning the Intent can be handled in one of two ways: > * Use BroadcastReceiver.setResultExtras() to store the Intent and > BroadcastReceiver.setResultCode to indicate that this has been > handled. All the other BRs along the way should check the ResultCode > to see if it has been set before responding themselves. The last BR > in the chain would be the one supplied to the sendOrderedBroadcast() > function. > * Instead, you can pass a PendingIntent (such as from > Activity.createPendingResult()) in an Extra in the initial broadcast > intent. Then the first BR to receive the intent calls > BroadcastReceiver.abortBroadcast() to prevent the intent from going to > any of the older versions. The BR returns the service intent via the > PendingIntent. -- 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] Application Initialization: Best or Better Practice
I have an application that is driven by a configuration XML: various app properties are loaded at the app start-time by parsing the XML and initializing static variables of some class. The data read from this XML drives different Activities of the application. Presently, I have called the "parsing and the properties-initialization" from the onCreate() of my Main Activity. I have a few questions as regards this case/approach: 1. Should I invoke the app initialization method from the Application Object or is the current approach correct? What advantages/ disadvantages do/would we get/have if I choose to invoke it from the Application object? 2. Do we really need a static class? Can we have all the properties as a static Collection variable in the application object? 3. Parsing a XML(~200 nodes) at app load time might take some time(not sure how long tho); How can I avoid the dreaded ANRs? I am using a Pull Parser. Please help me find answers to these questions. Thank you. -- 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] OpenGL hardware requirements specification
There is growing list of upcoming devices (HTC Tattoo, HTC Legend, MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) will not feature GPU. However many games rely on a hardware accelerated OpenGL for lag-free rendering. Currently, we can use: to specify the GLES version needed by the application. I assume that this requirement will be satisfied with the Android PixelFlinger (the software renderer) which is not what we want. Is there any way to specify a hardware accelerated OpenGL as a requirement in the manifest? Something like this would be great: Thanks, David -- 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: Format SD card.
On Dec 18, 10:38 am, Raj wrote: > Hi, > > Is there any way to Format the SD card data, through Android SDK code? > > Regards, > Raj It depends on what you mean by "format". If you'd just like to remove all files fro the SD then it is as simple as traversing all directories with java.io.File. Of course aproppriate permissions heve to be added to your apps Manifest.xml. But if you mean a "format" in file system sense http://en.wikipedia.org/wiki/Disk_formatting then you are not in luck. -- 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: Format SD card.
On Dec 18, 10:38 am, Raj wrote: > Hi, > > Is there any way to Format the SD card data, through Android SDK code? > > Regards, > Raj It depends on what you mean by "format". If you'd just like to remove all files fro the SD then it is as simple as traversing all directories with java.io.File. Of course aproppriate permissions heve to be added to your apps Manifest.xml. But if you mean a "format" in file system sense http://en.wikipedia.org/wiki/Disk_formatting then you are not in luck. -- 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: Can i initiate threads in BroadcastReceiver's onReceive method?
I just skimmed through your post; my 2 cents: - you have not verified the Intent Action in onReceieve call - Generally, onReceive() should return immediately so you should use threads and/or background service, if possible. -- 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: button Click event inside custom listview.... Help!
I have the same request: this is my getView method : public static class ViewHolder { TextView libelle; TextView ville; Button map; Button itineraire; } public View getView(int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub ViewHolder holder; if(convertView==null){ convertView= myInflater.inflate(R.layout.store_list_item, null); holder= new ViewHolder(); holder.libelle=(TextView)convertView.findViewById (R.id.store_libelle); holder.ville=(TextView)convertView.findViewById(R.id.store_ville); convertView.setTag(holder); }else{ holder=(ViewHolder) convertView.getTag(); } holder.ville.setText(store.get(position).Ville); holder.libelle.setText(store.get(position).libelle); //holder.map.setOnClickListener(this); return convertView; } I want to set an onclick on the map button and on the itinerary button... those click launche a new activity. On 18 déc, 06:48, Kumar Bibek wrote: > If you can post an excerpt of your getView method. I can show you > > Thanks, > Kumar Bibek. > > On Dec 18, 10:02 am, Abhi wrote: > > > Hi Kumar, > > > Can you show me how to do that? I am not getting the right method to > > do this. > > > Thanks, > > > Abhishek > > > On Dec 17, 11:49 pm, Kumar Bibek wrote: > > > > Yes, you will have to define the listener inside the Custom adapter, > > > in the getView Method, on the button. > > > > Thanks, > > > Kumar Bibek > > > >http://tech-droid.blogspot.com > > > > On Dec 18, 7:47 am, Abhi wrote: > > > > > Hi guys, > > > > > I have my own custom adapter to create a custom listview with > > > > checkbox, textview and button in each row. I want to implement onClick > > > > on Button and take different action based on which row button is > > > > pressed. How can I use onClickListener in this case? Define it inside > > > > getView? If so how? > > > > > Thanks > > > > > Abhishek -- 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: Getting contact's address
i am trying to get the address from the contacts from the following query in the Businesscard application cursor = contentResolver.query(StructuredPostal.CONTENT_URI, new String[]{StructuredPostal.FORMATTED_ADDRESS}, StructuredPostal.CONTACT_ID + "=" + contactId, null, StructuredPostal.IS_SUPER_PRIMARY + " DESC"); System.out.println("cursor "+cursor.getCount()); try { if (cursor.moveToFirst()) { System.out.println("addadress "+cursor.getString (cursor.getColumnIndex(StructuredPostal.FORMATTED_ADDRESS))); } } finally { cursor.close(); } But i am getting no results.Am i doing something wrong here? On Dec 11, 12:49 am, Artak Kalantarian wrote: > Thanks Dmitry, > > The main issues ended up being that address has moved from a column called > "data" to a column called "data1". > > On Thu, Dec 10, 2009 at 9:16 AM, Dmitri Plotnikov > wrote: > > > See these documents for descriptions of what you can get out of an > > Android 2.0 contacts database and how: > > >http://d.android.com/reference/android/provider/ContactsContract.Data... > > >http://d.android.com/reference/android/provider/ContactsContract.Comm... > > > If you are building an APK that must work with both pre-Eclair and > > Eclair contacts data, consider writing something like this: > > >http://code.google.com/p/android-business-card/source/browse/#svn/tru... > > > I hope these help. > > - Dmitri > > > On Tue, Dec 8, 2009 at 7:54 PM, Artak wrote: > > > My app had in intent-filter to respond when users click on a person's > > > address in the contacts application. > > > > In Android 1.5 I would get an intent with data like > > > content://contacts/people/16/contact_methods/3 > > > > In order to retrive the address from the contact I would later I would > > > do: > > > > Cursor c = getContentResolver().query(intentUri, ...); > > > > Get the column called "data" and take the address from there. > > > > That stopped working on later android releases. On 2.0 all I get is: > > > > content://com.android.contacts/data/4 > > > > And I do not know how to get the address form that. It fails when I > > > query for it. > > > > Any suggestions? > > > > Thank you, > > > > Artak Kalantarian > > > > -- > > > 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 > > > -- > > 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 -- 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: button Click event inside custom listview.... Help!
What you are doing is right, holder.map.setOnClickListener(new OnClickListener(){ public void onClick(View v){ // Wirte your code } ); On Dec 18, 3:20 pm, Geoffrey Monté wrote: > I have the same request: > this is my getView method : > public static class ViewHolder > { > TextView libelle; > TextView ville; > Button map; > Button itineraire; > } > > public View getView(int position, View convertView, ViewGroup parent) > { > // TODO Auto-generated method stub > ViewHolder holder; > > if(convertView==null){ > convertView= > myInflater.inflate(R.layout.store_list_item, null); > holder= new ViewHolder(); > > holder.libelle=(TextView)convertView.findViewById > (R.id.store_libelle); > > > holder.ville=(TextView)convertView.findViewById(R.id.store_ville); > convertView.setTag(holder); > }else{ > holder=(ViewHolder) convertView.getTag(); > } > > holder.ville.setText(store.get(position).Ville); > holder.libelle.setText(store.get(position).libelle); > //holder.map.setOnClickListener(this); > return convertView; > } > > I want to set an onclick on the map button and on the itinerary > button... > those click launche a new activity. > > On 18 déc, 06:48, Kumar Bibek wrote: > > > If you can post an excerpt of your getView method. I can show you > > > Thanks, > > Kumar Bibek. > > > On Dec 18, 10:02 am, Abhi wrote: > > > > Hi Kumar, > > > > Can you show me how to do that? I am not getting the right method to > > > do this. > > > > Thanks, > > > > Abhishek > > > > On Dec 17, 11:49 pm, Kumar Bibek wrote: > > > > > Yes, you will have to define the listener inside the Custom adapter, > > > > in the getView Method, on the button. > > > > > Thanks, > > > > Kumar Bibek > > > > >http://tech-droid.blogspot.com > > > > > On Dec 18, 7:47 am, Abhi wrote: > > > > > > Hi guys, > > > > > > I have my own custom adapter to create a custom listview with > > > > > checkbox, textview and button in each row. I want to implement onClick > > > > > on Button and take different action based on which row button is > > > > > pressed. How can I use onClickListener in this case? Define it inside > > > > > getView? If so how? > > > > > > Thanks > > > > > > Abhishek -- 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: Upload multiple versions for single android application for different SDK levels 1.5, 1.6, 2.0
hi TreKing Thanks for your reply. I was not aware of reflection.Now I am learning about reflection.I will seriously follow your recommendations. thanks Alok On Dec 17, 12:20 am, TreKing wrote: > > I've three different .apk files for all three SDK. > > You should probably be using the latest SDK with your minSDK set to 3 (for > 1.5) and using reflection to do things that are different across the API > levels. > > How can i upload three different .apk files on Android Market Place for > > > single application? > > They all have to have a different package name, which means you would have > to make (and maintain) 3 copies of your source code. You probably don't want > to do this. > > > I would like to have all 3 versions available under one application name. > > is this possible ? > > Technically, yes. They can all have the same name via the "label" attribute > in your manifest, and they can appear with the same name in the Market (you > set this in the Developer Console). But, again, they have to have different > package names. > > I would highly recommend you look through the blog posts for the one about > targeting different platform versions and seriously rethink publishing and > maintaining 3 different versions of the same app for each SDK. > > What happens when 2.1 comes out? 2.2? 3.0? 43.67? Are you going to keep > making a new version of your app for each new version that comes out? > > - > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > On Wed, Dec 16, 2009 at 2:11 AM, lk wrote: > > Hi, > > > I'm developing one android application which needs to support Android > > OS 1.5, 1.6, and 2.0. > > > I've three different .apk files for all three SDK. > > > How can i upload three different .apk files on Android Market Place > > for single application? > > I would like to have all 3 versions available under one application > > name. is this possible ? > > > So, users with any SDK can use my application. > > > Thanks. > > > -- > > 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 > > -- 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: Display Contacts "You don't have any contacts to display" possibly caused by NullPointerException: null
Just a quick follow-up: Using the built-in search facility, I am able to "view" names, however no information is displayed. I believe the problem here is the same as the Names list. Looking at res/layout-finger/contact_card_layout.xml in Eclipse is a NullPointerException: null. Again, LogCat shows no error output. Interestingly, when I search for a name, the search suggestions box displays contact information e.g. phone number, email address but selecting the name doesn't show this information. In addition, the "Edit" button is greyed out and not selectable. I have done some testing and the queries for Names are not being directed to Android's Contacts provider. Cheers, Scott -- 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: AutoCompleteTextView doesn't work with android:style/Theme.Light
The same on my Motorola Milestone (german Droid) with still 2.0 -- 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 device management
Hi, I hear android doesn't support device management right know. But if we want to implement can any body give me some key ideas -- 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] Simulating scrollable tables
Hello, I would like to create a web page with two iframes. The problem is that even though my web browser one of the frames is scrollable and on the browser, it shows up till the end. This is troubling me. Could someone help me find a solution to scrolling between the iframes for the android browser?? For example, try to view this http://www.cs.tut.fi/~jkorpela/html/iframe.html link section Simulating scrollable tables using web browser as well as android browser. I want to implement the same on android. -- 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] Get the list of discovered bluetooth
Can any body help me how can I get the list of discovered bluetooth device ? I am currently developing an application which scan for bluetooth devices in a specific time interval and log their names. I haven't been found any example yet. also it seems that BluetoothAdapter class does not support this. -- 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: multiple activity refresh
is it mandatory to be the db created by SQLiteOpenhelper ? is it mandatory to be the field names all small ? I compared the whole code with mark's reviewed it umpteen number of times, dont understand where is any trick left ? I am gonna try changing the 2 field names to all small case i downloaded the code from above link and it works, but in context menu the icon is not being displayed, and while adding record it crashes. I am using 1.5 Are there any known issues ? regards On Dec 18, 1:47 pm, Jags wrote: > anybody out there ? the values in the cursor are perfect, i printed > them one by one, but the rows are blank in the listview > > On Dec 18, 12:38 pm,Jags wrote: > > > now, after fixing those things, I get 2 items in the list [which is > > correct], but unfortunately, these are shown blank, no texts !. Am I > > missing something somewhere ? > > > regards > > > On Dec 18, 12:17 pm,Jags wrote: > > > > Hey Mark, > > > > yes this is what i am trying to do. But the problem is, I dont see a > > > ListView in your main layout. neither you do a setContentView() in > > > your OnCreate method. it was crashing for me when i did a > > > setContentView, it is now showing blank list. How can I debug adapters > > > to see the records ? records are coming to the cursor, I am sure. No > > > exception either ! > > > > regards > > > > On Dec 17, 6:28 pm, "Mark Murphy" wrote: > > > > > > If I want to refresh that in the same activity, then ? For example, i > > > > > need a cursoradapter and select a row and delete, that row is deleted > > > > > and record is also deleted, and dsplay updated. on click of a button > > > > > in the same activity. which example of yours demonstrate this type ? > > > > > I confess to having some difficulty in following your questions. > > > > However, > > > > I think this may help: > > > > >http://github.com/commonsguy/cw-android/tree/master/Database/Constants/ > > > > > -- > > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > > Android App Developer Books:http://commonsware.com/books.html > > -- You received this message because you are subscribed to the Google Groups "Android 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: Large data file: how to deal with it?
On Dec 17, 5:09 pm, Alain wrote: > 1. How does one split an App that requires overs 10MB when the code is > combined with thedata, into two APKs, one APK for the code to make > it as small as possible and the second APK for the 10MBdatafile. H There are multiple possibilities. The first that came into my mind is: Make 'data' APK as content provider, which provides data from data files packaged with it. Then make 'logic' APK to make it own data store (e.d. SQLite database) and populate it with data obtained by querying 'data' APK as content provider. > 2. How does an App split into two get loaded on the Market. No idea. Probably as 2 separate applications. > On Dec 11, 2:59 pm, WoodManEXP wrote: > > > Several of my apps have hugedatafiles, like 20mB or more. One > > technique is to download the compresseddatafilewhen the app first > > starts. Store it on secondary store and access it with regular java IO > > classes (Unfortunately Java IO is really, really slow because it is so > > strung out on being type safe). So you kinda need to design around > > that. But otherwise the Android is quite capable of dealing withlarge > >datafiles. Definitely do not loaddatain the APK. It is best to keep > > the APK small as possible. > > > On Dec 10, 12:03 pm, Andriy Tsykholyas > > wrote: > > > > Hi, > > > > My application needs to intensively manipulate (read-write) on some > > > structured textdata. The size of thedatais significant ~1Mb. And > > > there is initialdataavailable for the user to start with. > > > > My idea is to put thisdataas afilein the .apk. Then, on initial > > > application launch to read thisdataand populate Android SQLite > > > database with it. Then just work with this database. But after the > > > database is populated thedatafileis no longer needed. And I'd like > > > to remove it to free some memory. > > > Alternate approach is to work with thisdatafileinstead of SQLite > > > database. But I assume SQLite would work a magnitude faster then i/o > > > on mydatafile... > > > > My questions are: > > > 1) Is this approach OK? :) > > > 2) Is it possible to delete thefilewhich comes with .apk at all? If > > > yes, where to put it in Eclipse project? > > > > Thanks in advance, > > > > Andriy > > -- 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] Extract tar.gz file
Hi there, has someone found a way to extract a tar.gz file from code? I am aware of gzipinputstream, but that still leaves me with a .tar file... best regards, Yves -- 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
Re: [android-developers] Re: Need an invitation to google Wave?
I am in. please invert me , thanks a lot. 2009/11/27 sheik > i like to have one googlewave account . kindly send me one , > please .. thanks .. > > email id : sheik...@gmail.com > regards > Sheik > > On Nov 10, 12:12 am, shobhit kasliwal > wrote: > > Hi > > I also want one google wave invite if you have one > > My Email id is shobhit.kasli...@gmail.com > > > > Thanks > > Shobhit > > > > > > > > On Sat, Nov 7, 2009 at 1:46 AM, fairfriend > wrote: > > > please gimme one as well, i damn like google wave... > > > shaheryar.a...@gmail.com > > > > > Thanks, > > > Google Rocks > > > > > On Nov 7, 5:11 am, Braders wrote: > > > > Hi, > > > > > > I would love a Google Wave invite, my email is > > > > seobrad...@googlemail.com I would be so gratefull if you could > > > > dominate me. > > > > > > Hope you dont mind the post, thanks for your time. > > > > > > Simon Bradley > > > > > > On Nov 7, 12:50 am, Lorys Pognon wrote:> Hi > I > > > would like to have one > > > > > > > On Sun, Nov 1, 2009 at 7:20 AM, Auguste Lunang < > legraphi...@gmail.com > > > >wrote: > > > > > > > > Hi, > > > > > > i have some google wave. invits to share. tell me if u want .. > > > > > > thx > > > > > > > > -- > > > > > > 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 > > > > > cr...@googlegroups.com> > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > 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 > > > > -- > > Shobhit Kasliwal > > Application Developer > > Liventus Designs > > 3400 Dundee Rd Northbrook IL 60062 > > skasli...@liventus.com > > office: 847-291-1395 ext. 192 > > Cell: (309) 826 4709 > > -- > 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 > -- Ivan -- 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: Automatic market updates
Thanks Vytautas -- I was careful to update both android:versionCode and android:versionName before I uploaded my new apk. However, none of my beta testers have received an update notification and it has been over a week now. I have read myriad comments about users not receiving update notifications and many more about custom code developers are having to place n their apps as a workaround. Are you saying these are problems of the past and don't exist any longer? Peace, Scott -- 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] Typo in android developer resource site.
I found a typo in android developer resource site. http://developer.android.com/resources/faq/commontasks.html Returning a Result from a Screen // Listen for results. protected void onActivityResult(int requestCode, int resultCode, Intent data){ // See which child activity is calling us back. switch (resultCode) {<-- this should be requestCode. case CHOOSE_FIGHTER: ... ... } -- 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: OutofMemoryError: bitmap size exceeds VM budget.....
Anyone? On Dec 18, 12:11 am, Abhi wrote: > Hi, > > I am doing the following in my app, which at times results in the > above error. > > Action 1: Button on Main activity calls all pictures using ACTION_PICK > (results in a thumbnail view of all pictures on my phone). User picked > image (URI) is then passed over to next activity where the image is > displayed (ImageView) full screen. When I hit back, I go back to the > main activity. If I try to open all pictures and pick a picture again, > I get a FORCE CLOSE and the logCat data says "OutofMemoryError: bitmap > size exceeds VM budget. > > Action 2: I get the same error and FORCE CLOSE when I try to rotate > the full-sized picture by changing phone orientation back and forth. > > What am I supposed to do to save memory? I can't change the use case > of my app... the user has to follow the above steps. How can I free up > memory without having to change anything in my app. > > Thanks, > > Abhi -- 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] Typo in android developer resource site. 2
I found another typo in android developer resource site. http://developer.android.com/resources/faq/commontasks.html Selecting, Highlighting, or Styling Portions of Text id="@+id/styled_welcome_message">We are so glad to see you. should be We are so glad to see you. -- 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
Re: [android-developers] Typo in android developer resource site. 2
NoraBora wrote: > I found another typo in android developer resource site. > > http://developer.android.com/resources/faq/commontasks.html > > Selecting, Highlighting, or Styling Portions of Text > > id="@+id/styled_welcome_message">We are so glad > to see you. > > should be > > We are so glad > to see you. Please post bug reports, including documentation bug reports, to http://b.android.com. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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: Adding contacts to a custom account
I faced the same problem. I'm doing the research now. If you have found how to do it, please provide this info. I'd be very greatfull. I also wanted to know, what exactly way do you create custom account? As i understood account creation currently *requires* a developer to implement a service that extends AbstractThreadedSyncAdapter and publishes the correct intent in its manifest. When this is not the case, the "Accounts & Sync" settings does not handle the case where this is not defined and causes the NPE in the core process that causes the reboot. It is recommended that this defect be patch and/or the documentation updated to include the proper procedures and requirements for creation of an account in Android. Also account creation requires of the authenticator to be implemented for the account type. In order to be an authenticator developer must extend AbstractAccountAuthenticator class, provider implementations for the abstract methods and write a service that returns implemented AccountAuthenticator. Or there is more simple way to create a custom account for Contacts? On Dec 15, 4:52 pm, sazilla wrote: > Hi everyone, > > I encountered an issue while configuring my own account for android > contacts sync. When the user choses to add a new contact to the custom > account, only the name fields and the photo are showed. This behaviour > can be found in the ExternalSource.java android source file. > > My question is, if I don't want to add custom contacts fields for my > account, how can I configure the account to show all the standard > fields in the contacts application in the same way the google account > does? > > Thank you > > Carlo -- 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: button Click event inside custom listview.... Help!
Kumar, Here is the excerpt of getView method in my code. class CustomAdapter extends ArrayAdapter { CustomAdapter() { super(kis.this, R.layout.row_kis, items); } public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater=getLayoutInflater(); View row=inflater.inflate(R.layout.row_kis, parent, false); TextView label=(TextView)row.findViewById(R.id.label); label.setText(items[position]); ImageView icon=(ImageView)row.findViewById(R.id.icon); Button row_button = (Button) findViewById(R.id.btlst1); if (items[position].compareTo("Abhi") == 0) { icon.setImageResource (R.drawable.alan); //set icon for row with name "Abhi" } .. and so on for other rows } } See if this helps. Thanks, Abhishek On Dec 18, 5:42 am, Kumar Bibek wrote: > What you are doing is right, > > holder.map.setOnClickListener(new OnClickListener(){ > public void onClick(View v){ > // Wirte your code > } > ); > > On Dec 18, 3:20 pm, Geoffrey Monté wrote: > > > > > I have the same request: > > this is my getView method : > > public static class ViewHolder > > { > > TextView libelle; > > TextView ville; > > Button map; > > Button itineraire; > > } > > > public View getView(int position, View convertView, ViewGroup > > parent) > > { > > // TODO Auto-generated method stub > > ViewHolder holder; > > > if(convertView==null){ > > convertView= > > myInflater.inflate(R.layout.store_list_item, null); > > holder= new ViewHolder(); > > > holder.libelle=(TextView)convertView.findViewById > > (R.id.store_libelle); > > > > > holder.ville=(TextView)convertView.findViewById(R.id.store_ville); > > convertView.setTag(holder); > > }else{ > > holder=(ViewHolder) convertView.getTag(); > > } > > > holder.ville.setText(store.get(position).Ville); > > holder.libelle.setText(store.get(position).libelle); > > //holder.map.setOnClickListener(this); > > return convertView; > > } > > > I want to set an onclick on the map button and on the itinerary > > button... > > those click launche a new activity. > > > On 18 déc, 06:48, Kumar Bibek wrote: > > > > If you can post an excerpt of your getView method. I can show you > > > > Thanks, > > > Kumar Bibek. > > > > On Dec 18, 10:02 am, Abhi wrote: > > > > > Hi Kumar, > > > > > Can you show me how to do that? I am not getting the right method to > > > > do this. > > > > > Thanks, > > > > > Abhishek > > > > > On Dec 17, 11:49 pm, Kumar Bibek wrote: > > > > > > Yes, you will have to define the listener inside the Custom adapter, > > > > > in the getView Method, on the button. > > > > > > Thanks, > > > > > Kumar Bibek > > > > > >http://tech-droid.blogspot.com > > > > > > On Dec 18, 7:47 am, Abhi wrote: > > > > > > > Hi guys, > > > > > > > I have my own custom adapter to create a custom listview with > > > > > > checkbox, textview and button in each row. I want to implement > > > > > > onClick > > > > > > on Button and take different action based on which row button is > > > > > > pressed. How can I use onClickListener in this case? Define it > > > > > > inside > > > > > > getView? If so how? > > > > > > > Thanks > > > > > > > Abhishek- Hide quoted text - > > - Show quoted text - -- 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] HTC Tattoo Market - New issues after 1.6 upgrade
Ok, so I have an app that WAS showing up on the HTC Tattoo's Android Market, but users are reporting that it is now gone after they have upgraded to Android 1.6 from 1.5. Copy protection is OFF There is no Camera permission at all All screen sizes are supported in the manifest -android:smallScreens = true -android:normalScreens = true -android:largeScreens = true -android:anyDensity = true Is anyone else seeing this same behavior? Can anyone with an HTC Tattoo w/Android 1.6 confirm? The app I'm referring to is called AppAlarm and should be available from this link http://episode6.com/aa (click it from your phone to goto the market, otherwise just search the market for AppAlarm) I'd really appreciate any feedback here, cause I have no idea how to proceed. Thanks in advance, Geoff -- 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: Extremely long DNS lookup (and failure) on T-Mobile network
I am experiencing the same issue, i have been testing my app on my phone(HTC Hero 1.5) and it would give me a UnknownHostException from time to time, I can only fix it by restarting the phone. I hope they have a team working on this as this is very critical to the development on Android as it's not only happening on the emulator. Thanks, Alberto -- 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
Re: [android-developers] Re: Automatic market updates
I wouldn't rely on those Market update notifications. Personally, I never get them when they should kick in. Instead I usually check My Downloads manually and, AFTER I've checked, the notification will kick in. And, not only is it ridiculously late, it usually tells me the wrong number of updates are available (usually twice as many as there actually are). If you need your users to know when new updates are available, best bet is to add this as a feature in your app. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Fri, Dec 18, 2009 at 8:07 AM, stanlick wrote: > Thanks Vytautas -- > > I was careful to update both android:versionCode and > android:versionName before I uploaded my new apk. However, none of my > beta testers have received an update notification and it has been over > a week now. I have read myriad comments about users not receiving > update notifications and many more about custom code developers are > having to place n their apps as a workaround. Are you saying these > are problems of the past and don't exist any longer? > > Peace, > Scott > > -- > 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 > -- 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: Automatic market updates
Wow! So the messages on this forum from over a year ago are still applicable today? It is incomprehensible to expect every app developer to write this code and that to notify users about updates? So how do I get my users up to the current published version when my app was deployed without the check-this-web-file-version-by-hand-code and I don't even know who my users are? Why even bother with the manifest? Very sad. Peace, Scott On Dec 18, 8:58 am, TreKing wrote: > I wouldn't rely on those Market update notifications. Personally, I never > get them when they should kick in. Instead I usually check My Downloads > manually and, AFTER I've checked, the notification will kick in. And, not > only is it ridiculously late, it usually tells me the wrong number of > updates are available (usually twice as many as there actually are). > > If you need your users to know when new updates are available, best bet is > to add this as a feature in your app. > > - > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > On Fri, Dec 18, 2009 at 8:07 AM, stanlick wrote: > > Thanks Vytautas -- > > > I was careful to update both android:versionCode and > > android:versionName before I uploaded my new apk. However, none of my > > beta testers have received an update notification and it has been over > > a week now. I have read myriad comments about users not receiving > > update notifications and many more about custom code developers are > > having to place n their apps as a workaround. Are you saying these > > are problems of the past and don't exist any longer? > > > Peace, > > Scott > > > -- > > 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 > > -- 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] creaky wave sound with AudioTrack in unter linux
Hi I made a test App, which uses the AudioTrack to play the wave sound from Buffer, via "onPeriodicNotification". ie if the PlaybackHeadPosition is at the middle of Buf, dann fill the buffer full(write the nexte Wave date from source array ). The Buffer has the min. Size 8192 Bytes unter sdk 1.5 it works fine with a emulator on windows, but if I run it on linux, the sound begin to be creaky. it is important for me to know, how it will be on a device, as G1 for example? Do anyone know why and could u explain me.please? thanks a lot c.b. -- 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: multiple activity refresh
thanks a lot mr mark. I was able to figure out problem thanks to another review. But it seems delete.png is still not shown on context menu. regards On Dec 18, 5:08 pm, Jags wrote: > is it mandatory to be the db created by SQLiteOpenhelper ? > > is it mandatory to be the field names all small ? > > I compared the whole code with mark's reviewed it umpteen number of > times, dont understand where is any trick left ? > > I am gonna try changing the 2 field names to all small case > > i downloaded the code from above link and it works, but in context > menu the icon is not being displayed, and while adding record it > crashes. I am using 1.5 > > Are there any known issues ? > > regards > > On Dec 18, 1:47 pm,Jags wrote: > > > anybody out there ? the values in the cursor are perfect, i printed > > them one by one, but the rows are blank in the listview > > > On Dec 18, 12:38 pm,Jags wrote: > > > > now, after fixing those things, I get 2 items in the list [which is > > > correct], but unfortunately, these are shown blank, no texts !. Am I > > > missing something somewhere ? > > > > regards > > > > On Dec 18, 12:17 pm,Jags wrote: > > > > > Hey Mark, > > > > > yes this is what i am trying to do. But the problem is, I dont see a > > > > ListView in your main layout. neither you do a setContentView() in > > > > your OnCreate method. it was crashing for me when i did a > > > > setContentView, it is now showing blank list. How can I debug adapters > > > > to see the records ? records are coming to the cursor, I am sure. No > > > > exception either ! > > > > > regards > > > > > On Dec 17, 6:28 pm, "Mark Murphy" wrote: > > > > > > > If I want to refresh that in the same activity, then ? For example, > > > > > > i > > > > > > need a cursoradapter and select a row and delete, that row is > > > > > > deleted > > > > > > and record is also deleted, and dsplay updated. on click of a button > > > > > > in the same activity. which example of yours demonstrate this type ? > > > > > > I confess to having some difficulty in following your questions. > > > > > However, > > > > > I think this may help: > > > > > >http://github.com/commonsguy/cw-android/tree/master/Database/Constants/ > > > > > > -- > > > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > > > Android App Developer Books:http://commonsware.com/books.html > > -- You received this message because you are subscribed to the Google Groups "Android 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] alarm cancel
Now that i am able to successfully fire alarms, I need a case where if i delete a record in my db the corresponding alarm should be cancelled. i send recid which is primary key for my table with the pendingintent through putExtra. can i cancel on the basis of that primary key ? if yes, how ? thanks and regards -- 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] TelephonyManager.getNetworkType() returns type for on French UMTS networks (?!?)
Hello, According to http://developer.android.com/intl/fr/reference/android/telephony/TelephonyManager.html, TelephonyManager.getNetworkType() should return a number between 0 and 3 at API level 3. I am however getting sometimes getting 4 as a response for all operator networks in France. According to the new docs, 4 means CDMA network which is unheard of here. It looks more like HSPDA to me. Could there be an issue with some handset reporting the wrong value ? Thanks -- 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] How to downgrade T-Mobile G1 from Donut to Cupcake?
Hi, I need to support Android 1.5 (Cupcake) for my application but I don't have any 1.5 device. I currently have a Motorola Droid with 2.0.1 and the T-Mobile G1 (HTC Dream) with 1.6 (Donut). What I want to do is to downgrade my G1 to the previous official OTA release of Cupcake. I have no experience in rooting an Android device, so I would appreciate if someone could give me a step-by-step guide on how to accomplish this? Thank you 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] Re: Audio options for music app - should I use JET?
It sounds like we are working on a similar application. I have placed the same question not too long ago and have received no definite answer so I ended up experimenting with all currently available choices; JetPlayer, SoundPool and the AudioTracker, in this order. I have rejected the JetPlayer almost immediately. It is much too high level. The SoundPools looked very promising since it does allow you to play concurrent sounds but I also found it too limiting. I settled down with the AudioTrack but, not surprisingly, it has its own limits. It's interface does not support the pitch/rate control but it does allow you to stream raw date which can be synthesized during the run time. The point I am trying to make is that you will have to experiment with all the options and see what works for you. What you need to do is to design your application in such a way (strategy pattern or such) so you can replace one implementation of the sound control layer with the other, as you experiment with the different options. Let me know how you are doing. Good Luck. Roman On Dec 16, 1:43 am, k_day wrote: > Watched the Google I/O talk on media tonight, and learned some > interesting stuff. Right now I am leaning towards using SoundPool > since I need to guarantee that certain music notes are played at the > exact same time, and I want to be able to control tempo. > > If I use setRate() with soundPool to speed up the tempo, will this > change the pitch (i.e., make it sound like a chipmunk if sped up), or > will the pitch remain the same? > > Also, my original question still remains - I will not be able to > control the tempo of playback if going with JetPlayer, right? > > So for a music app that plays music notes and chords (notes played at > the same time) and allows users to control the tempo of playback, does > SoundPool sound like my best bet? > > Thank you for your help. > > -k_day > > On Dec 15, 3:56 am, k_day wrote: > > > > > Wow, I didn't realize my initial message got cut off. Too finish, I > > was thinking JET may be too limited since users must be able to: > > > 1) Change the tempo of the notes being played real time and > > 2) Record their own sounds that can be played as notes. > > > Is this possible when using JetPlayer? The JetPlayer interface looks > > pretty simple. It looks like you can only control which tracks play, > > and transposing the tracks, but I don't see any controls for tempo. > > > Akitto- I assume you are referring to > > this:http://www.youtube.com/watch?v=-0UmSQeWsJc > > > I will check it out. Thanks for the tip. > > > On Dec 14, 10:29 pm, k_day wrote: > > > > I am currently working on a music app and am starting to think about > > > how audio playback should work. At any given point in time, a user is > > > able to play multiple notes from multiple instruments. > > > > My initial thought was to use JET, but I am thinking it may be too > > > limited given that I also would like to: > > > > 1)- Hide quoted text - > > - Show quoted text - -- 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: OutofMemoryError: bitmap size exceeds VM budget.....
Resolved!!! On Dec 18, 9:25 am, Abhi wrote: > Anyone? > > On Dec 18, 12:11 am, Abhi wrote: > > > > > Hi, > > > I am doing the following in my app, which at times results in the > > above error. > > > Action 1: Button on Main activity calls all pictures using ACTION_PICK > > (results in a thumbnail view of all pictures on my phone). User picked > > image (URI) is then passed over to next activity where the image is > > displayed (ImageView) full screen. When I hit back, I go back to the > > main activity. If I try to open all pictures and pick a picture again, > > I get a FORCE CLOSE and the logCat data says "OutofMemoryError: bitmap > > size exceeds VM budget. > > > Action 2: I get the same error and FORCE CLOSE when I try to rotate > > the full-sized picture by changing phone orientation back and forth. > > > What am I supposed to do to save memory? I can't change the use case > > of my app... the user has to follow the above steps. How can I free up > > memory without having to change anything in my app. > > > Thanks, > > > Abhi- Hide quoted text - > > - Show quoted text - -- 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: Same servicein multiple APKs, only want "best one" to launch
I already had this discussion and was able to put together a workable solution. I bloged it here: http://tinyurl.com/9hwdva Regards Mark -- 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: HTC Tattoo Market - New issues after 1.6 upgrade
In your application (AppAllarm v1.1.3) manifest file, the supports- screens tag is empty (""). Are you building your project using 1.6 SDK or later? On Dec 18, 3:43 pm, G wrote: > Ok, so I have an app that WAS showing up on the HTC Tattoo's Android > Market, but users are reporting that it is now gone after they have > upgraded to Android 1.6 from 1.5. > > Copy protection is OFF > There is no Camera permission at all > All screen sizes are supported in the manifest > -android:smallScreens = true > -android:normalScreens = true > -android:largeScreens = true > -android:anyDensity = true > > Is anyone else seeing this same behavior? Can anyone with an HTC > Tattoo w/Android 1.6 confirm? The app I'm referring to is called > AppAlarm and should be available from this linkhttp://episode6.com/aa > (click it from your phone to goto the market, otherwise just search > the market for AppAlarm) > > I'd really appreciate any feedback here, cause I have no idea how to > proceed. > > Thanks in advance, > Geoff -- 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: Expanding the size of an Android Virtual Device (emulator) instance?
Okay, for the sanity of future searchers I'll answer my own question, now that I've found it. You need to start the emulator with the partition-size option followed by the size in MB. For example: emulator -partition-size 200 -avd whatever for a 200MB partition on the "whatever" AVD. Jeremy On Dec 17, 11:28 am, Jeremy Logan wrote: > Okay, so disk.cachePartition.size appears to not be related at all and > seems to be used for the browser's cache. > > Anyone else have any ideas? > > On Dec 17, 10:38 am, Jeremy Logan wrote: > > > On a relatively new emulator image (AVD) I have about 40mb of free > > space. How can I expand this? I tried setting the > > disk.cachePartition.size option, but it didn't seem to have any > > effect. > > > Just to be clear... I'm talking about the "Internal phone storage" > > size, not the SD Card size. > > > Thanks, > > Jeremy > > -- 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] how to get back to the activity from a webview (very urgent)
Hi Dear, i need to call a webview to launch a url for authentication process and need to get back once authentication is successful, dont know how can i kill webview and resume the process on first activity. here is what i am trying Activity1: public OnClickListener loginButtonListener = new OnClickListener() { public void onClick(View v) { try { authorize(); // i need to wait for the authorize and once its finished then start the funtion below anotherprocess(); } catch(Exception e) { e.printStackTrace(); } } }; private void authorize() throws IOException, SAXException, FlickrException { IntentAuth = new Intent(Intent.ACTION_VIEW, Uri.parse (authUrl.toString())); startActivity(Auth); } problem: anotherprocess starts immidiately after authorize which fail to get the result webview requires some login process manually by the user and goes forward to a couple of URL. please help me how can i wait at anotherprocess() ? thanks in advance for your kind help -- 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: HTC Tattoo Market - New issues after 1.6 upgrade
Wait, really?! I must've missed something in the latest update, will double check. On Dec 18, 11:20 am, moneytoo wrote: > In your application (AppAllarm v1.1.3) manifest file, the supports- > screens tag is empty (""). Are > you building your project using 1.6 SDK or later? > > On Dec 18, 3:43 pm, G wrote: > > > > > Ok, so I have an app that WAS showing up on the HTC Tattoo's Android > > Market, but users are reporting that it is now gone after they have > > upgraded to Android 1.6 from 1.5. > > > Copy protection is OFF > > There is no Camera permission at all > > All screen sizes are supported in the manifest > > -android:smallScreens = true > > -android:normalScreens = true > > -android:largeScreens = true > > -android:anyDensity = true > > > Is anyone else seeing this same behavior? Can anyone with an HTC > > Tattoo w/Android 1.6 confirm? The app I'm referring to is called > > AppAlarm and should be available from this linkhttp://episode6.com/aa > > (click it from your phone to goto the market, otherwise just search > > the market for AppAlarm) > > > I'd really appreciate any feedback here, cause I have no idea how to > > proceed. > > > Thanks in advance, > > Geoff -- 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] TTS TalkBack doesn't read AlertDialog titles or messages?
So I tried turning on TalkBack to see how well my application works with the feature and I was surprised to discover that TalkBack does not speak the title or text of an AlertDialog. It's only speaking the text from the buttons I add to the dialog. Am I doing something wrong when I define my AlertDialogs or is this intended behavior? Do I need to code specifically against the AccessibilityManager to have AlertDialog text (or any other non-focusable text) spoken by TalkBack? I'm currently using 1.5 (SDK 3) in my manifest's minSdkVersion. As I understand it, I'd have to bump the setting to 1.6 (SDK 4) if i want to use the AccessibilityManager. Am I mistaken? I'm reluctant to change my minSdkVersion to 4 after seeing how large the v1.5 slice of the OS pie still is according to Google: http://developer.android.com/intl/fr/resources/dashboard/platform-versions.html Is there another solution? -- 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] DEV Phone 2 or Nexus One
I am thinking about getting a DEV Phone 2, but there's new about Google's Nexus One phone that seems to have higher spec. Is there any advantage of getting DEV Phone 2 ? Any news about DEV Phone 3 (if any) ? -- 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] PVMFErrResourceConfiguration error on preparing MediaPlayer
I have a very brief video that I would like to include as a raw resource in my app. The video plays correctly when loaded from the SD card in the ApiDemos MediaPlayerDemo_Video example. However, if I attempt to load it as a raw resource, I get the following error after calling MediaPlayer.prepare: 12-18 15:23:08.190: ERROR/PlayerDriver(554): Command PLAYER_PREPARE completed with an error or info PVMFErrResourceConfiguration 12-18 15:23:08.190: ERROR/MediaPlayer(1242): error (1, -16) The (simplified) code: AssetFileDescriptor afd = this.getResources().openRawResourceFd (R.raw.thevideo); MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); afd.close(); mp.prepare(); } catch (Exception e) {} What can I be doing wrong? Thank you 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] Re: TTS TalkBack doesn't read AlertDialog titles or messages?
You might wish to check if the following recent update addresses your problem http://groups.google.com/group/tts-for-android/browse_thread/thread/291c47b0992d37f or else bring up your problem on that list. Regards On Dec 18, 5:55 pm, RNekic wrote: > So I tried turning on TalkBack to see how well my application works > with the feature and I was surprised to discover that TalkBack does > not speak the title or text of an AlertDialog. It's only speaking the > text from the buttons I add to the dialog. Am I doing something wrong > when I define my AlertDialogs or is this intended behavior? > > Do I need to code specifically against the AccessibilityManager to > have AlertDialog text (or any other non-focusable text) spoken by > TalkBack? > > I'm currently using 1.5 (SDK 3) in my manifest's minSdkVersion. As I > understand it, I'd have to bump the setting to 1.6 (SDK 4) if i want > to use the AccessibilityManager. Am I mistaken? I'm reluctant to > change my minSdkVersion to 4 after seeing how large the v1.5 slice of > the OS pie still is according to > Google:http://developer.android.com/intl/fr/resources/dashboard/platform-ver... > > Is there another solution? -- 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: OutofMemoryError: bitmap size exceeds VM budget.....
How did you resolve it? I think we do need a list of ways one can cause this, how you figure out what caused it, and what to do to fix it. On Dec 18, 8:11 am, Abhi wrote: > Resolved!!! > > On Dec 18, 9:25 am, Abhi wrote: > > > Anyone? > > > On Dec 18, 12:11 am, Abhi wrote: > > > > Hi, > > > > I am doing the following in my app, which at times results in the > > > above error. > > > > Action 1: Button on Main activity calls all pictures using ACTION_PICK > > > (results in a thumbnail view of all pictures on my phone). User picked > > > image (URI) is then passed over to next activity where the image is > > > displayed (ImageView) full screen. When I hit back, I go back to the > > > main activity. If I try to open all pictures and pick a picture again, > > > I get a FORCE CLOSE and the logCat data says "OutofMemoryError: bitmap > > > size exceeds VM budget. > > > > Action 2: I get the same error and FORCE CLOSE when I try to rotate > > > the full-sized picture by changing phone orientation back and forth. > > > > What am I supposed to do to save memory? I can't change the use case > > > of my app... the user has to follow the above steps. How can I free up > > > memory without having to change anything in my app. > > > > Thanks, > > > > Abhi- Hide quoted text - > > > - Show quoted text - > > -- 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: HTC Tattoo Market - New issues after 1.6 upgrade
See kids, that's why you always double check your code before posting questions. My mistake, thanks for pointing it out (feelin pretty dumb right about now) On Dec 18, 11:49 am, G wrote: > Wait, really?! I must've missed something in the latest update, will > double check. > > On Dec 18, 11:20 am, moneytoo wrote: > > > > > In your application (AppAllarm v1.1.3) manifest file, the supports- > > screens tag is empty (""). Are > > you building your project using 1.6 SDK or later? > > > On Dec 18, 3:43 pm, G wrote: > > > > Ok, so I have an app that WAS showing up on the HTC Tattoo's Android > > > Market, but users are reporting that it is now gone after they have > > > upgraded to Android 1.6 from 1.5. > > > > Copy protection is OFF > > > There is no Camera permission at all > > > All screen sizes are supported in the manifest > > > -android:smallScreens = true > > > -android:normalScreens = true > > > -android:largeScreens = true > > > -android:anyDensity = true > > > > Is anyone else seeing this same behavior? Can anyone with an HTC > > > Tattoo w/Android 1.6 confirm? The app I'm referring to is called > > > AppAlarm and should be available from this linkhttp://episode6.com/aa > > > (click it from your phone to goto the market, otherwise just search > > > the market for AppAlarm) > > > > I'd really appreciate any feedback here, cause I have no idea how to > > > proceed. > > > > Thanks in advance, > > > Geoff -- 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: ClassLoader leaking memory?
If you have a small sample that demonstrates the problem that seems perfect for b.android.com. On Dec 17, 6:01 pm, "B++" wrote: > After some further analysis, it seems that the problem lies on the > DexFile. The PathClassLoader internally invokes the DexFile which > apparently unzips the package to retrieve the class. However, these > resources don't seem to be released. > > B. > > On Dec 17, 3:45 pm, "B++" wrote: > > > Thanks for the response. > > > I have already run it using hprof and mat, and located the issue, and > > the problem lies in here: > > onCreate(..) { > > ... > > PathClassLoader classLoader = new PathClassLoader("/path/to/apk.apk", > > getClassLoader()); > > classLoader.loadClass("path.to.class"); > > classLoader = null; > > > } > > > Only these three lines will cause a "leak" if you keep on creating > > this activity and destroying it with the back button. > > The class is getting loaded successfully, but the resources are never > > released. As you can see, I set the reference of the classLoader to > > null, and I never instantiate any object using the loaded class, but > > the problem still persists. > > > I have isolated the code as above, and you can clearly see that the > > memory is growing. > > > Can the getClassLoader() reference create a problem here? > > > Thanks > > > B. > > > On Dec 17, 2:57 pm, fadden wrote: > > > > On Dec 17, 7:45 am, "B++" wrote: > > > > > The problem is that this happens even if no objects are instantiated > > > > using the loaded class. There seems a problem with garbage collector, > > > > which doesn't seem to release resources about the loaded class on > > > > Destroy even if there are no references to it. > > > > It usually turns out that something is holding a reference to whatever > > > it is that isn't getting thrown away. The best way to figure this out > > > is to get the HPROF output and run it through jhat or MAT. > > > > See also: > > > http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks > > > http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d... > > > http://kohlerm.blogspot.com/ > > -- 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
Re: [android-developers] Re: Automatic market updates
> > So how do I get my users up to the current published version when my app > was deployed without the check-this-web-file-version-by-hand-code and I > don't even know who my users are? Is it absolutely crucial that your users have the most recent update the second it's put out? If not, don't worry about this. Put your update out and let the users discover it on their own, either if the Market actually works and notifies them or if they go check for updates manually. Otherwise you'll have to suck it up and write some version checking code. This can't be that hard. Check a file on a web server, do a compare with the current version, notify the user with an alert that a new version is available and start the Market with your app when the user clicks the notification. Why even bother with the manifest? Because without a higher version number the Market won't know there's an update available. And you won't even be allowed to publish via the Market unless the version code is higher than what's already there. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Fri, Dec 18, 2009 at 9:16 AM, stanlick wrote: > Wow! So the messages on this forum from over a year ago are still > applicable today? It is incomprehensible to expect every app > developer to write this code and that to notify users about updates? > So how do I get my users up to the current published version when my > app was deployed without the check-this-web-file-version-by-hand-code > and I don't even know who my users are? Why even bother with the > manifest? Very sad. > > Peace, > Scott > > On Dec 18, 8:58 am, TreKing wrote: > > I wouldn't rely on those Market update notifications. Personally, I never > > get them when they should kick in. Instead I usually check My Downloads > > manually and, AFTER I've checked, the notification will kick in. And, not > > only is it ridiculously late, it usually tells me the wrong number of > > updates are available (usually twice as many as there actually are). > > > > If you need your users to know when new updates are available, best bet > is > > to add this as a feature in your app. > > > > > - > > TreKing - Chicago transit tracking app for Android-powered deviceshttp:// > sites.google.com/site/rezmobileapps/treking > > > > On Fri, Dec 18, 2009 at 8:07 AM, stanlick wrote: > > > Thanks Vytautas -- > > > > > I was careful to update both android:versionCode and > > > android:versionName before I uploaded my new apk. However, none of my > > > beta testers have received an update notification and it has been over > > > a week now. I have read myriad comments about users not receiving > > > update notifications and many more about custom code developers are > > > having to place n their apps as a workaround. Are you saying these > > > are problems of the past and don't exist any longer? > > > > > Peace, > > > Scott > > > > > -- > > > 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 > > > > > > -- > 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 > -- 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: Upload multiple versions for single android application for different SDK levels 1.5, 1.6, 2.0
An Android developer has to develop the habit of untraining management that is used to J2ME. If you release multiple different APKs you technically can fork your codebase, into different packages, to target different firmware. But you don't want to compete with yourself for market listings, you don't want to fork your code, you don't want to have to maintain different branches. Mind you, I don't want to use reflection, it frightens me a bit, and it's annoyed me and made my app harder to debug every time I've used it. Eventually though we'll really want to use a feature not in 1.5. I'm curious, what happens if you release an application that requires Android 1.5 or higher on the market, and then you update it with a version that requires 1.6 or higher? Will 1.5 users simply no longer be able to download the application? What is their user experience? Thanks, -MK On Dec 18, 2:42 am, lk wrote: > hi TreKing > > Thanks for your reply. I was not aware of reflection.Now I am > learning about reflection.I will seriously follow your > recommendations. > > thanks > Alok > > On Dec 17, 12:20 am, TreKing wrote: > > > > I've three different .apk files for all three SDK. > > > You should probably be using the latest SDK with your minSDK set to 3 (for > > 1.5) and using reflection to do things that are different across the API > > levels. > > > How can i upload three different .apk files on Android Market Place for > > > > single application? > > > They all have to have a different package name, which means you would have > > to make (and maintain) 3 copies of your source code. You probably don't want > > to do this. > > > > I would like to have all 3 versions available under one application name. > > > is this possible ? > > > Technically, yes. They can all have the same name via the "label" attribute > > in your manifest, and they can appear with the same name in the Market (you > > set this in the Developer Console). But, again, they have to have different > > package names. > > > I would highly recommend you look through the blog posts for the one about > > targeting different platform versions and seriously rethink publishing and > > maintaining 3 different versions of the same app for each SDK. > > > What happens when 2.1 comes out? 2.2? 3.0? 43.67? Are you going to keep > > making a new version of your app for each new version that comes out? > > > - > > TreKing - Chicago transit tracking app for Android-powered > > deviceshttp://sites.google.com/site/rezmobileapps/treking > > > On Wed, Dec 16, 2009 at 2:11 AM, lk wrote: > > > Hi, > > > > I'm developing one android application which needs to support Android > > > OS 1.5, 1.6, and 2.0. > > > > I've three different .apk files for all three SDK. > > > > How can i upload three different .apk files on Android Market Place > > > for single application? > > > I would like to have all 3 versions available under one application > > > name. is this possible ? > > > > So, users with any SDK can use my application. > > > > Thanks. > > > > -- > > > 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 > > -- 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: Camera intent - what's safe to use?
On Dec 11, 4:37 pm, Vytautas Vaitukaitis wrote: > @Matt > > Yes, you're absolutely right - I'm trying to do what works on Hero - > if that fails, I do what works on all the other phones. > > I'm not quite sure about which of the Camera API issues you're talking > about: the failure to retrieve images with resolution greater than > 512x384 or lack of single method to obtain images of 512x384 > resolution? I was having out memory leak issues, so I was trying to cleanup my whole application. Taking a picture, then manipulating, then uploading an image takes a lot of memory, so I was looking for the best practices for this sort of thing. I hoped a good practice was to call the default camera activity, and that there would be a standardized response. That's what I was talking about. -- 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
Re: [android-developers] Re: Upload multiple versions for single android application for different SDK levels 1.5, 1.6, 2.0
Matt Kanninen wrote: > Mind you, I don't want to use reflection, it frightens me a bit, and > it's annoyed me and made my app harder to debug every time I've used > it. Eventually though we'll really want to use a feature not in 1.5. FYI, reflection is an option here, but it is not the only solution. You can also: -- Implement an interface/abstract class representing your wrapper around the APIs you're concerned about -- Create two implementations, one using the long-term API, one using whatever you're getting by with (e.g., for 1.5) -- Create a singleton of the appropriate implementation based on the SDK level reported by the device, and use that singleton (via the interface/abstract class) On a 1.5 device, it will never load the implementation of the new-API class, and so it will never complain with a VerifyError and such. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com -- 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] Portrait vs landscape using sensor
Hi, I'm trying to detect landscape vs portrait orientation with the following: public void onSensorChanged(SensorEvent event) { float pitch = event.values[2]; if (pitch <= 45 && pitch >= -45) { // portrait } else if (pitch < -45) { // landscape } else if (pitch > 45) { // landscape } } anyone have something more robust? It works pretty well, except if the phone is in a landscape orientation, and the user starts to 'flatten' it out, starts thinking it's in the portrait orientation again, Thanks -- 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] this is just too much
Somebody on craigslist reseling our apps half price http://knoxville.craigslist.org/mob/1515792578.html -- 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: this is just too much
i contacted them to remove it, but this is whet is says on craigslist --- Android Apps Date: 2009-12-18, 11:51AM EST Reply to: see below Android Apps Advanced Task Manager $0.50 BitTorrent Client |aBTC $2.50 Album Art Grabber $1.00 Better Keyboard $1.50 PoliceStream $0.75 Beautiful Widgets $1.00 Pic Say Pro $1.00 Root Explorer $0.75 WhitePages with Caller ID $3.50 JetFlicks TV $4.50 PhoneMyPC $5.00 Weather Widget-Donate $0.75 All apps are half the price from the android market. If you have any app requests let me know How to Buy: I will deliver apps thru email so just pay me thru paypal at smalltownsouthernma...@yahoo.com be sure to let me know which app or apps your paying me for How To Install: 1: Transfer the app to your phone and place in a folder you will remember placing it in on your SDCard (Skip this step if using you Android to download) 2. Go to the Market (on your Android) and search for Astro 3. Download Astro File Manager (its free) 4. Once installed open Astro 5. Go to the folder you put the application in (if you downloaded from you Android it will be the folder call "download" or "downloads") 6. Click the app once (a PopUp should appear) and choose open app manager (or words to that effect) 7. Click install once (you may get a PopUp saying its blocked from installing just go to the settings and check the "Unknown Applications") If you have any questions or need any help just email me smalltownsouthernma...@yahoo.com * it's NOT ok to contact this poster with services or other commercial interests PostingID: 1515792578 No contact info? if the poster didn't include a phone number, email, or other contact info, craigslist can notify them via email. * Copyright © 2009 craigslist, inc. * terms of use * privacy policy * feedback forum -- 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: this is just too much
i flagged it as prohibited, as should others. hth -- jason.vp.engineering.particle -- 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] BETA Tester Wanted
We are looking for people to help BETA test the FunMail app coming to the Android Market soon! Get a sneak peak at our app and help us find some bugz! Download the BETA at: http://funmail.com/android FunMail is a next-generation visual messaging platform. FunMail finds contextual relevant visual content for any text, tweet or status update. Users simply enter a message, and the FunMail Media Brain analyzes the text and offers entertaining, relevant choices. Find some bugz and send us feedback on the app, go to: http://funmail.com/android -- 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: ClassLoader leaking memory?
On Dec 17, 2:45 pm, "B++" wrote: > PathClassLoader classLoader = new PathClassLoader("/path/to/apk.apk", > getClassLoader()); > classLoader.loadClass("path.to.class"); > classLoader = null; > > } > > Only these three lines will cause a "leak" if you keep on creating > this activity and destroying it with the back button. So if I understand this correctly, you're creating a new class loader each time, and re-loading one or more classes in the new class loader. So if you start this 10 times you'll have 10 copies of class Foo, each from a different class loader. Why not just load the class(es) once? What is it you're trying to do? What APK are you opening? The Dalvik VM doesn't presently unload classes. Given the nature of Android applications, the feature is not likely to percolate to the top of the "to do" list any time soon. -- 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] I am a newbie...
I just followed the direction on google code page to set up java IDE, eclipse and android sdk and i tried all the steps to go hello world app. now i want to try to run other sample codes provided by google android team. i downloaded zip file from http://android-developers.blogspot.com/?hl=en and i took out a folder out of it, but how do i run it in eclipse then execute in android sdk? and how do i repackage the file to apk to run it in a phone? i want to be able to try samples and how they run so that i can start it by using sample codes to write my own code (i have an electrical engineeering degree from college and i did c and c++ coding though it was very basic, but i can say i can learn what is explained with proper steps) tell me where i can find the steps to run or just tell me how to do it. -- 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] Obtain Point of Interest data based on current location.
Hi, I am developing a GPS application in Android using Location/ Location Manager package. I am able to get the current latitude and longitude data correctly. My doubt is, do we have any means by which we can obtain the nearest "Point of Interest" based on the current location using Android/google API? If so then please let me know the steps for obtaining the same. Also let me know whether the type of POI can also be obtained using the current location. Regards, - Ruppin -- 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: Divert a call by sending the USSD command
Please start an activity as below: String encodedHash = Uri.encode("#"); startActivity(new Intent(Intent.ACTION_CALL,Uri.parse ("tel:*122*123456789"+encodedHash))); Thanks. Regards Prashanth D On Dec 17, 7:05 am, Mohammad Siddiqui wrote: > Hi > > can any one tell me how to programmaticaly divert a call on particular > number by > > sending the USSD command.eg, to divert a call on the number-123456789 > we dial > > *122*123456789#. it divert the call on to the 123456789, > > Thanks in advance > > Thanks & Regards > > Mohammad Azhar -- 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] Connect via USB and consume web service
I need to connect my phone via the USB cable to my development machine and consume a web service that is running there. What do I need to do to get my Android to see the web service? Thanks. -- 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: Motorola Milestone not showing up in ddms / adb on Mac OS X Snow Leopard
I don't know what did it, but trying it out today worked fine. I definitely had "None" selected back then, since I used it on Windows as well, but severall reboots obviously have restarted adb since. :) Nice one, I'll try that if it happens again, cheers. On Dec 15, 11:03 pm, TJ wrote: > If it's the same problem I've experienced, it can be fixed by pulling > down the notification bar, pressing the "USB connection" notification, > and selecting the option "None". If the adb service is running, kill > the server and restart it. > > On Dec 1, 3:02 pm, Oliver wrote: > > > I have the same problem. On a MacBook Pro running Leopard (10.5.8). > > > On Nov 25, 1:11 pm, 24z wrote: > > > > I've connected my (new) Motorola Milestone running Android 2.0 to an > > > Intel iMac running the latest version of Snow Leopard. > > > > USB Debugging is enabled on the device. However, ddms doesn't see the > > > device. Running adb devices returns an empty list. > > > > Any ideas how to troubleshoot? -- 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: Uninstalling TTS Data from the G1 / Dream
Hi! I found a solution: use adb tool to remove the app TtsService.apk: open the console with cmd navigate to tools dir inn your sdk: get rights and remove app: adb root adb shell cd system cd app rm TtsService.apk here you are. On 16 Dez., 06:22, Desu Vinod Kumar wrote: > HI > > while installing this tts jar file it showing some exception > not instatalling > can u help me regarding that. > > On Sat, Oct 17, 2009 at 11:38 PM, Thomas Riley > wrote: > > > > > > > As per subject I would like to uninstall the text to speech data app > > from my G1 so I can set out some TTS code I'm working on. > > > Is it possible? > > > Thanks. > > --~--~-~--~~~---~--~~ > > 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 > > -~--~~~~--~~--~--~--- > > -- > Regards > --- > D Vinod Kumar > Software Engineer - Android Platform > 09916009493 -- 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] Enumerate activity history stack
When debugging I've sometimes wanted a tool that would list running tasks and show which activities are on the history stack for each task. I can get a list of tasks by calling ActivityManager.getRunningTasks(). Each ActivityManager.RunningTaskInfo object in the list gives me interesting information such as the base activity, top activity, and number of activities in the task. I haven't found a way to actually enumerate all the activities in the task's history stack. Is there a way to get at such information? -- 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: How To apply our settings to selected text instead of all text in Edit text View
It is easy to do it for user selected text, just use getSelectionStart () and getSelectionEnd() and use Spannable to set the styles. On Nov 17, 10:49 am, Ram wrote: > Hi Androids, > I have a problem as follows: > > In my project i am havingrichtexteditoroptions to apply for the > edittextview. > In that i applied font color,font names,font size options for user.But > these options will apply for wholetextavailable in edittext. > But my problem is i want to apply user selected settings (like font > color,size,font) for user selectedtextinstead of Wholetext. > i want to apply the user selected font/color/size to the user > selectedtext.How? > > How to implement this . > If any body knows answer please let me know that thing. -- 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] Program unique identifier
Hi All, As known, we can get devcie unique ID using TelephonyManager#getDeviceId() . So, does a program have an unique identifier? How can I get it? I googled it but got nothing. Br -- 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] WebView Help
Hi, I was wondering if there is a way to select or highlight or focus at text from a webview's content. Or even select and copy text to the clipboard? (just like the default browser) Or even access the emulateShiftHeld() function? I'm working on an browser and am trying to add accelerators but I can really only focus on links and buttons. Thanks. -- 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] Contacts App crashes when switching between Dialer to Call log
I've altered the contact app so that in Dialer the soft keypad always stays and it hides when other tab activity resumes, We've given different look for the contacts app, but when using the same, a crash occurs when we rapidly change from dialer to call log. And the App crashes without the standard crash dialog. I have copied the log and the error seems to be happening in a deeper section.. 01-01 06:25:37.401: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.464: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.472: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.081: DEBUG/(1350): The INPUT TYPE OF MDIGITS onPause 1 01-01 06:25:39.097: WARN/InputManagerService(1082): Ignoring hideInputMethod of token: null 01-01 06:25:39.222: DEBUG/dalvikvm(1404): GC freed 70 objects / 5424 bytes in 143ms 01-01 06:25:39.573: DEBUG/dalvikvm(1350): GC freed 41355 objects / 1657488 bytes in 214ms 01-01 06:25:39.589: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.589: INFO/dalvikvm(1350): Uncaught exception thrown by finalizer (will be discarded): 01-01 06:25:39.589: INFO/dalvikvm(1350): Ljava/lang/ IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@45c8b2b0 on calls that has not been deactivated or closed 01-01 06:25:39.589: INFO/dalvikvm(1350): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 01-01 06:25:39.589: INFO/dalvikvm(1350): at dalvik.system.NativeStart.run(Native Method) 01-01 06:25:39.620: WARN/IInputConnectionWrapper(1350): finishComposingText on inactive InputConnection 01-01 06:25:39.698: INFO/DEBUG(1008): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-01 06:25:39.698: INFO/DEBUG(1008): Build fingerprint: 'zoom/ldp1/ ldp1/ldp1:Donut/Donut/eng.vishal.20091203.130315:eng/test-keys' 01-01 06:25:39.698: INFO/DEBUG(1008): pid: 1350, tid: 1355 >>> android.process.acore <<< 01-01 06:25:39.698: INFO/DEBUG(1008): signal 11 (SIGSEGV), fault addr 0004 01-01 06:25:39.698: INFO/DEBUG(1008): r0 0004 r1 40023778 r2 0004 r3 ad32d629 01-01 06:25:39.698: INFO/DEBUG(1008): r4 r5 r6 ad34e495 r7 4203afb8 01-01 06:25:39.698: INFO/DEBUG(1008): r8 100ffd00 r9 4203afb0 10 4203afa0 fp 0001 01-01 06:25:39.698: INFO/DEBUG(1008): ip ad372c80 sp 100ffce8 lr ad32d633 pc afb04408 cpsr 0010 01-01 06:25:39.776: INFO/DEBUG(1008): #00 pc 4408 / system/lib/libcutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): #01 lr ad32d633 / system/lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): stack: 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffca8 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcac ad371820 /system/ lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb0 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb4 afd00949 /system/ lib/libstdc++.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb8 0028c820 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcbc 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc0 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc4 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc8 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffccc a9d222bf /system/ lib/libutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd0 a000 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd4 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd8 100ffd30 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcdc 000d 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce0 df002777 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce4 e3a070ad 01-01 06:25:39.800: INFO/DEBUG(1008): #00 100ffce8 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcec ad32d633 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf0 100ffd20 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf4 ad34e4a5 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf8 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcfc ad00e438 /system/ lib/libdvm.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd00 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd04 0010e8a0 [heap] 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd08 ad34e495 /system/ lib/libandroid_runtime.so 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd0c 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd10 1071 01-01 06:25:39.808: INFO
Re: [android-developers] Re: just another android rtp stack question
maxsap wrote: > Anyone? > > On Dec 1, 3:34 pm, maxsap wrote: >> Hello all, I am new in android developer and I would like to make a >> sip based application for this platform. In the signaling part I have >> found about jain-sip (used it) and sipdroid( any good tutorial? ) the >> problem starts when I want to stream data from a phone to a server. So >> the question is: Is there any stack for RTP? does the new SDK support >> this? I have found this:http://www.hsc.com/tabid/87/ItemId/20/Default.aspx >> have anyone used this stack? also I found this video on >> youtube :http://www.youtube.com/watch?v=g1NHEsXFEnswhich demonstrates >> the use of rtp to stream video/audio is this fake does any one know >> how? also I have read somewhere on the net that sipdroid has support >> for rtp is this correct? Sipdroid implements its own RTP stack which would confirm that there is no RTP stack in the Android platform. You can reuse their code if you do not mind having your code been distributed under a GPL license. -- 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] Hebrew font on Android!
When we see Hebrew languages that are available in the Android Mobile? -- 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: OutofMemoryError: bitmap size exceeds VM budget.....
how ? On Dec 18, 6:11 pm, Abhi wrote: > Resolved!!! > > On Dec 18, 9:25 am, Abhi wrote: > > > Anyone? > > > On Dec 18, 12:11 am, Abhi wrote: > > > > Hi, > > > > I am doing the following in my app, which at times results in the > > > above error. > > > > Action 1: Button on Main activity calls all pictures using ACTION_PICK > > > (results in a thumbnail view of all pictures on my phone). User picked > > > image (URI) is then passed over to next activity where the image is > > > displayed (ImageView) full screen. When I hit back, I go back to the > > > main activity. If I try to open all pictures and pick a picture again, > > > I get a FORCE CLOSE and the logCat data says "OutofMemoryError: bitmap > > > size exceeds VM budget. > > > > Action 2: I get the same error and FORCE CLOSE when I try to rotate > > > the full-sized picture by changing phone orientation back and forth. > > > > What am I supposed to do to save memory? I can't change the use case > > > of my app... the user has to follow the above steps. How can I free up > > > memory without having to change anything in my app. > > > > Thanks, > > > > Abhi- Hide quoted text - > > > - Show quoted text - -- 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: androidplayground.net
Hi Scott, Figured I would let you in on something. I have nothing to do with that site anymore. I haven't in a while. If Tony is still on it then fine. But please don't put my name into anything. Me and you had a long discussion and touched many topics not to long ago and from what I can recall, I told you I am done with that site. I couldn't if I wanted to. I don't have access to the domain name anymore. So for all developers trying to find out about their applications look elsewhere. Honestly, when the site was going on it wasn't much money anyways. But like I said leave my name out of it. I am currently developing an application and have no time for websites. Have a good day, On Dec 17, 2:20 am, "SoftwareForMe.com" wrote: > We found this site some time ago; it's operated by Nick Narbone and > someone named Tony, both in Florida. > > We requested that they remove our software, and as far as we could > tell, they did so. > > However, they used to have a complete list of their available apps, > but have now redone their site and taken the list off, saying "We > cannot give a list because of issues with some developers." > > SoftwareForMe.com > Makers of PhoneMyPC > & Imagine Multi-touch -- 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] this is just too much
Somebody on Craigslist selling our apps half price http://knoxville.craigslist.org/mob/1515792578.html -- 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: OpenGL hardware requirements specification
I'd really like to see a GPU Class enumeration starting with the software renderer. android:gpuClass="integer" class 0 = software renderer class 1 = MSM7200 series class 2 = PowerVR SGX series class 3 = Some faster, more powerful GPU etc... This way, we could specify that a game only works on class-2 and above hardware. It would make it MUCH easier for us to build high-quality games targeted at "gamer" phones. This in conjunction with a GL ES version would be perfect, however I believe there will be some overlap. My gut says that using the proposed class system, one would expect class 2 and above GPUs to support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will support 2.1 or 3.0 or whatever comes down the pipeline. On Dec 18, 4:05 am, Hexage wrote: > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > will not feature GPU. However many games rely on a hardware > accelerated OpenGL for lag-free rendering. > > Currently, we can use: > > > > to specify the GLES version needed by the application. I assume that > this requirement will be satisfied with the Android PixelFlinger (the > software renderer) which is not what we want. Is there any way to > specify a hardware accelerated OpenGL as a requirement in the > manifest? > > Something like this would be great: > > > > Thanks, > David -- 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: using soundPool but sound plays after a delay, sound is lagging
Can you quantify the lag? How much is it lagging? Lately I've been seeing my footstep sounds, which are individually triggered right and left steps, take 2-50ms to trigger for some reason. I'm not sure if it has something to do with the way the OGG is encoded, but I feel like it could. Perhaps the SoundPool author would like to chime in and give us some hints? On Dec 18, 3:45 am, rukiman wrote: > I am using the SoundPool as follows: > > Caching my sounds: > // load sound effects > soundPool = new SoundPool(2, > AudioManager.STREAM_MUSIC, 0); > soundPoolMap = new HashMap(); > AssetFileDescriptor afd; > try { > afd = > context.getAssets().openFd("sounds/piecemove.ogg"); > soundPoolMap.put(SOUND_PIECEMOVE, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/piecestop.ogg"); > soundPoolMap.put(SOUND_PIECESTOP, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/pieceattack.ogg"); > soundPoolMap.put(SOUND_PIECEATTACK, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/pieceselect.ogg"); > soundPoolMap.put(SOUND_PIECESELECT, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/selection.ogg"); > soundPoolMap.put(SOUND_MENUSELECTION, > soundPool.load(afd, 1)); > > afd = > context.getAssets().openFd("sounds/pageturn.ogg"); > soundPoolMap.put(SOUND_PAGETURN, > soundPool.load(afd, 1)); > } catch (IOException e) { > e.printStackTrace(); > } > > Function to play sounds: > > public static int playSound(Context context, int sound) { > > AudioManager mgr = (AudioManager) context > .getSystemService(Context.AUDIO_SERVICE); > float streamVolumeCurrent = mgr > .getStreamVolume(AudioManager.STREAM_MUSIC); > float streamVolumeMax = mgr > > .getStreamMaxVolume(AudioManager.STREAM_MUSIC); > float volume = streamVolumeCurrent / streamVolumeMax; > /* Play the sound with the correct volume */ > return soundPool > .play(soundPoolMap.get(sound), volume, > volume, 1, 0, 1f); > } > > Playing a sound effect i.e when button is clicked: > > Resources.playSound(context, Resources.SOUND_PIECESELECT); > > However as I said the sound is lagging. What can I do to improve this? > All my sounds are OGG file format. -- 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: How to test if app is shown on Market for all screensizes
The problem of some Milestone devices not seeing copy protected apps is one we continue to work on addressing. We are working with the OEM to resolve the root cause. > You guys are funny. Android Market on HTC Tattoo does not show > applications that do not implicitly declare that they support its > screen. It definitely has nothing to do with CAMERA permission or > whatsoever This is false. As previously stated, *if* the app requires the android.permission.CAMERA manifest, it *must* state that it does not require autofocus in in order to show on Tattoo. This is because the camera permission, if granted, implies access to an autofocus camera. The request must be modified to not require autofocus with . Admittedly this is not as developer- friendly as it could be, its the result of a lack of foresight in our original design. A separate issue is that apps that do not explicitly support sdkVersion 4 or above will not be shown to Tattoo because it contains a "small" screen. "small" screen devices did not exist before Android 1.6 (sdkVersion 4) and apps may break when shrunk to fit the smaller screen. Apps declaring support for sdkVersion 4 or above will be assumed to support small screens, unless stated otherwise in the element. Regards, Justin Android Team @ Google On Dec 9, 3:38 pm, Paul Turchenko wrote: > You guys are funny. AndroidMarketon HTC Tattoo does not show > applications that do not implicitly declare that they support its > screen. It definitely has nothing to do with CAMERA permission or > whatsoever. I do agree that Google could post some clear explanations > what exactly AndroidMarkettakes into account when he decides that > application should not show up (I'm pretty sure that it's a server > side of AndroidMarketwho makes these decisions). And it has nothing > to do with device vendor since it just includes AndroidMarketin > their firmwares. > > Please stop blaming phone vendors. Google is the only one to blame for > Android Market behavior. > > On Nov 18, 11:58 am, blindfold wrote: > > > Same thing with me, I have copy protection turned off in Android > >Market. > > > It would be good now to get some feedback from Google or HTC on > > whether it is a bug. > > > On Nov 18, 9:54 am, Klaus Kartou wrote: > > > > We haven't turned copy protection on for ourapp, and it is still not > > > visible on HTC Tattoo/HTC Dragon. > > > Please, Google is this a known issue? > > > > On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff wrote: > > > > I noticed this problem when the new Droid Eris came out. At first, i > > > > started messing with minsdk and even lowered it to "2" but that didnt > > > > fix it, the apps didnt show up in themarket. I ran through Verizon > > > > and Sprint stores for days to try to get this to work. > > > > > I dont think Google people even know the problem exist. I am surprised > > > > that this problem hasnt been fixed for such a long time now. Anyway, > > > > the reason why you can 't see yourappon HTC Hero/Eris or any other > > > > 1.5 phones is because you have copy protection set to "On". You can > > > > turn this off in your developer console when logged in to your Android > > > >Marketaccount and editing your application description/title > > > > > cheers! > > > > > On Nov 17, 1:19 am, Klaus Kartou wrote: > > > > > Is there any Google people that can shed some light on this issue? > > > > > > On Mon, Nov 16, 2009 at 4:42 PM, blindfold > > > >wrote: > > > > > > > Thanks Phil! > > > > > > > Indeed this is very strange. As I understand it,allAndroid 1.6 apps > > > > > > should by default be visible to HTC Tattoo on the AndroidMarket, and > > > > > > use of the camera should not matter. I had even tested myappto show > > > > > > OK on a 240x320 screen using the emulator, and cannot think of > > > > > > anything else to correct. I was thinking of trying an empty > > > > > > > > > > > screens> element in case documentation is ambiguous, but even so it > > > > > > would not seem to make sense to have the CAMERA dependency. > > > > > > Hopefully > > > > > > HTC or Android developers (Romain?) will figure it out soon, because > > > > > > this kind ofmarketfragmentation seems unnecessary. > > > > > > > On Nov 16, 9:55 am, phil wrote: > > > > > > > Hi Blindfold, > > > > > > > > We were not able to find The vOICE for Android in theMarketon the > > > > > > > Tattoo. But we found it on the HTC Magic in theMarket. > > > > > > > > Hope there will be a solution for this issue soon. > > > > > > > > On Nov 15, 8:21 am, blindfold wrote: > > > > > > > > > OK, I didn't know that. My curiosity was triggered by Phil with > > > > > > > > the > > > > > > > > suggested role of the CAMERA permission in having apps be > > > > > > > > visible > > > > on > > > > > > > > theMarket, which AFAIK should not have made any difference. > > > > > > > > Also, > > > > > > > > android:minSdkVersion="4" (Android 1.6) according to > > > > > > > > documentation > > > > > > > > implies thatallscreensizesa
Re: [android-developers] Enumerate activity history stack
"adb shell dumpsys activity" prints the current activity stacks, plus other core state in the activity manager. On Thu, Dec 17, 2009 at 4:11 PM, rich wrote: > When debugging I've sometimes wanted a tool that would list running > tasks and show which activities are on the history stack for each > task. I can get a list of tasks by calling > ActivityManager.getRunningTasks(). Each > ActivityManager.RunningTaskInfo object in the list gives me > interesting information such as the base activity, top activity, and > number of activities in the task. I haven't found a way to actually > enumerate all the activities in the task's history stack. Is there a > way to get at such information? > > -- > 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 > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: } catch (OutOfMemoryError E) {
As a followup this had no impact. Also it wasn't an OutOfMemoryError when it it got bubbled up to my activity, it was an InflateException. Catching the exception seemed to have no impact, it still crashed. I tried this: //not having much luck fixing our OutOfMemoryErrors, so lets see what happens if we just catch and log it. Might be nicer to the user. try { setContentView(R.layout.arl_start); } catch (OutOfMemoryError e) { GlobalUtils.outOfMemoryCount++; Log.e(getClass().getCanonicalName(),"GlobalUtils.outOfMemoryCount "+GlobalUtils.outOfMemoryCount); e.printStackTrace(); finish(); } catch (InflateException e) { GlobalUtils.outOfMemoryCount++; Log.e(getClass().getCanonicalName(),"GlobalUtils.outOfMemoryCount "+GlobalUtils.outOfMemoryCount); e.printStackTrace(); finish(); } On Dec 11, 11:19 am, Matt Kanninen wrote: > Can I ask what Android does with un caught OutOfMemoryErrors that it > wouldn't do if I caught them? It's really tempting for me to do this: > > try { > setContentView(R.layout.result);} catch (OutOfMemoryError E) { > > outOfMemoryCount++; > e.printStackTrace(); > finish(); > > } > > If I don't catch the OutOfMemory my activity crashes, but then the > user just clicks the button again and it loads great the second time. > So something happens resulting in the rightmemorybeing cleared. -- 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: Program unique identifier
If your software is running on a phone-less tablet, chances are you won't even get an instance of TelephonyManager so getDeviceId() won't work Unique program identifer is the package identifier although anyone could use the same id as yours... On Dec 18, 4:49 am, lphpc wrote: > Hi All, > As known, we can get devcie unique ID using > TelephonyManager#getDeviceId() . So, does a program have an unique > identifier? How can I get it? I googled it but got nothing. > > Br -- 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: ClassLoader leaking memory?
After some further analysis, I noticed that memory resources are released if the loaded class belongs to the same apk as the app. The problem seems to be apparent if a loaded class belongs to a different apk. It looks like the resources about the class extraction are not getting released properly. fadden, I create a new class loader onCreate(), so that I will always ensure that a new apk is loaded everytime the app is launched. Ideally, I would like to clean these resources onDestroy, but supposedly, this should be handled by gc. By the way, the loaded apk represents a plugin (A simple class, and some plugin specific resources), and onCreate, I need to check if plugin has changed, but this is not possible without loading the class from the apk first :) -- 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: OpenGL hardware requirements specification
I think Robert Green is on the right track. We need something like this now! On Dec 18, 2:34 pm, Robert Green wrote: > I'd really like to see a GPU Class enumeration starting with the > software renderer. > > android:gpuClass="integer" > > class 0 = software renderer > class 1 = MSM7200 series > class 2 = PowerVR SGX series > class 3 = Some faster, more powerful GPU > etc... > > This way, we could specify that a game only works on class-2 and above > hardware. It would make it MUCH easier for us to build high-quality > games targeted at "gamer" phones. > > This in conjunction with a GL ES version would be perfect, however I > believe there will be some overlap. My gut says that using the > proposed class system, one would expect class 2 and above GPUs to > support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will > support 2.1 or 3.0 or whatever comes down the pipeline. > > On Dec 18, 4:05 am, Hexage wrote: > > > > > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > > will not feature GPU. However many games rely on a hardware > > accelerated OpenGL for lag-free rendering. > > > Currently, we can use: > > > > > > to specify the GLES version needed by the application. I assume that > > this requirement will be satisfied with the Android PixelFlinger (the > > software renderer) which is not what we want. Is there any way to > > specify a hardware accelerated OpenGL as a requirement in the > > manifest? > > > Something like this would be great: > > > > > > Thanks, > > David- Hide quoted text - > > - Show quoted text - -- 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] Explanation about different UI meansuring...
Hi, Can any body explain about , or give any refernce to different measuring quantities in Android like dip, dp, inch. Thank You. -- 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: OpenGL hardware requirements specification
And to be able to access the device's setting for GPU class (or whatever it ends up being) programmatically at runtime if we want to disable/enable features/effects based upon its value. On Dec 18, 3:12 pm, shaun wrote: > I think Robert Green is on the right track. We need something like > this now! > > On Dec 18, 2:34 pm, Robert Green wrote: > > > > > I'd really like to see a GPU Class enumeration starting with the > > software renderer. > > > android:gpuClass="integer" > > > class 0 = software renderer > > class 1 = MSM7200 series > > class 2 = PowerVR SGX series > > class 3 = Some faster, more powerful GPU > > etc... > > > This way, we could specify that a game only works on class-2 and above > > hardware. It would make it MUCH easier for us to build high-quality > > games targeted at "gamer" phones. > > > This in conjunction with a GL ES version would be perfect, however I > > believe there will be some overlap. My gut says that using the > > proposed class system, one would expect class 2 and above GPUs to > > support OpenGL ES 2.0. Perhaps in the future some class 5 GPUs will > > support 2.1 or 3.0 or whatever comes down the pipeline. > > > On Dec 18, 4:05 am, Hexage wrote: > > > > There is growing list of upcoming devices (HTC Tattoo, HTC Legend, > > > MOTO MT710, etc.) without hardware accelerated OpenGL. Basically all > > > devices based on a low-end chip (Qualcomm MSM72xx, Marvell PXA310) > > > will not feature GPU. However many games rely on a hardware > > > accelerated OpenGL for lag-free rendering. > > > > Currently, we can use: > > > > > > > > to specify the GLES version needed by the application. I assume that > > > this requirement will be satisfied with the Android PixelFlinger (the > > > software renderer) which is not what we want. Is there any way to > > > specify a hardware accelerated OpenGL as a requirement in the > > > manifest? > > > > Something like this would be great: > > > > > > > > Thanks, > > > David- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- 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: androidplayground.net
The site uses Paypal for subscriptions too, not just donations. And paypal has clear polices on infringement. Report here https://cms.paypal.com/be/cgi-bin/?&cmd=_render-content&content_ID=ua/InfringementRpt_full On Dec 17, 8:43 pm, "Guess Who, You Probably have my Number" wrote: > Hi Scott, > Figured I would let you in on something. I have nothing to do with > that site anymore. > I haven't in a while. If Tony is still on it then fine. But please > don't put my name into anything. > > Me and you had a long discussion and touched many topics not to long > ago and from what I can > recall, I told you I am done with that site. > > I couldn't if I wanted to. I don't have access to the domain > name anymore. So for all developers trying to find out about their > applications look elsewhere. > Honestly, when the site was going on it wasn't much money anyways. > > But like I said leave my name out of it. I am currently developing an > application and have no time for websites. > > Have a good day, > > On Dec 17, 2:20 am, "SoftwareForMe.com" > wrote: > > > We found this site some time ago; it's operated by Nick Narbone and > > someone named Tony, both in Florida. > > > We requested that they remove our software, and as far as we could > > tell, they did so. > > > However, they used to have a complete list of their available apps, > > but have now redone their site and taken the list off, saying "We > > cannot give a list because of issues with some developers." > > > SoftwareForMe.com > > Makers of PhoneMyPC > > & Imagine Multi-touch -- 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
Re: [android-developers] Re: ClassLoader leaking memory?
Um, you are making this way too hard. You should load code with this: http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String, int) And please please note, there are major security and functional issues with loading code like this. If this isn't all code you have written that is only running in your own app, you really need to seriously rethink what you are doing. Security -- you are allowing someone else's code to run in your process, with your identity, with your permissions. They can do everything you can, as you, so any problems in their code are effectively -your- problem. Functionality -- the code is loading and running with your uid, so it can not request its own permissions, and can only read and write files under your data directory. if multiple applications load it, all of its data is isolated in each of those apps, and it ends up running with different permissions depending on the app. On Fri, Dec 18, 2009 at 12:12 PM, B++ wrote: > After some further analysis, I noticed that memory resources are > released if the loaded class belongs to the same apk as the app. The > problem seems to be apparent if a loaded class belongs to a different > apk. It looks like the resources about the class extraction are not > getting released properly. > > fadden, I create a new class loader onCreate(), so that I will always > ensure that a new apk is loaded everytime the app is launched. > Ideally, I would like to clean these resources onDestroy, but > supposedly, this should be handled by gc. > > By the way, the loaded apk represents a plugin (A simple class, and > some plugin specific resources), and onCreate, I need to check if > plugin has changed, but this is not possible without loading the class > from the apk first :) > > > > > > > > > > > > -- > 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 > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Explanation about different UI meansuring...
Abdul Mateen wrote: > Can any body explain about , or give any refernce to different measuring > quantities in Android like dip, dp, inch. http://developer.android.com/guide/topics/resources/available-resources.html#dimension -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year -- 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] Unable to start an activity, load the home screen, or show a notification during calls on Droid
Hi All, Has anyone been successful showing a notification, starting an activity, or loading the home screen *during* a call on the Droid? All three of these actions can be done with the emulator running 2.0, but will not run from the Droid. I don't receive any type of notification that these actions fail on the Droid. Although, every action works when a call is *not* active. Missed calls during a call *do* show up in the notification bar, so I am hoping there is a way. I understand that the notification bar can not be accessed by users during calls, but it would be nice if a notification could at least be delivered. I also understand the security and usability concerns of displaying a window or action during phone calls. Although, there are a lot of users who would like actionable functionality based on calls. Thanks for any input, Matt -- 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: Hebrew font on Android!
If you have a rooted phone and you want to add Hebrew fonts, you can follow the instructions in this link: http://iandroid.co.il/archives/485 In case you're using CyanogenMod ROM, you can update to version 4.2.9 which, as the change-log states, has Hebrew fonts. http://www.cyanogenmod.com/home/cyanogenmod-4-2-9 Once you have the Hebrew fonts installed, and you want a Hebrew virtual keyboard, you can download 'AnySoftKeyboard' http://code.google.com/p/softkeyboard/ Lior Gonnen UltimateFavesPRO developer. http://ultimatefaves.wordpress.com/ On Dec 18, 8:07 pm, Do it wrote: > When we see Hebrew languages that are available in the Android Mobile? -- 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: Program unique identifier
@Watcher That's why the ANDROID_ID is meant to be used I believe, it is phone even on phone-less devices. Though some phone-less devices redirect the getDeviceId() call to return the ANDROID_ID too. @Iphpc Watcher is correct, there is no unique program specific identifier outside of the package name. You could simply concatenate that with the ANDROID_ID though for program specific uniqueness. This would returned you a new value for each device that is running you app. You could even add a version to this to differentiate across versions since you package stays the same... -Tim Strazzere On Dec 18, 3:07 pm, Watcher wrote: > If your software is running on a phone-less tablet, chances are you > won't even get an instance of TelephonyManager so getDeviceId() won't > work > > Unique program identifer is the package identifier although anyone > could use the same id as yours... > > On Dec 18, 4:49 am, lphpc wrote: > > > Hi All, > > As known, we can get devcie unique ID using > > TelephonyManager#getDeviceId() . So, does a program have an unique > > identifier? How can I get it? I googled it but got nothing. > > > Br > > -- 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: Localized to: unknown even though I have localized strings
Same issue here. Tempted to ignore, but want to make sure not missing something. Anyone with an update on this? On Dec 10, 1:09 pm, Beth wrote: > Hey! I also see the unknown message in my localized application. The > first time I loaded a localized app on the Android Market, it read the > folders right. Since the (SDK 1.6) Market upgrade I have gotten the > unknown message. It looks like a bug should be filed on the Market. > > Sandscorpio, do you want to take that step? > > Thanks and regards, > Beth > > On Dec 9, 4:19 pm, tassie wrote: > > > > > I have the same issue. I've been ignoring it, inasmuch as my > > localizations obviously work on the device. > > > Even so, I am wondering what is going on here. Did you ever get a > > resolution? > > > On Nov 8, 3:46 pm, sandscorpio wrote: > > > > I have default strings under res/values/strings.xml andlocalized > > > strings at res/values-de/strings.xml and res/values-es/strings.xml . > > > But when I upload the app to the Market, it shows 'Localizedto:unknown'! > > > > If I run the app in the simulator using the German or Spanish locale, > > > thelocalizedstrings show up correctly. > > > > Thanks. -- 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: using soundPool but sound plays after a delay, sound is lagging
I have had similar issues using wav and mp3 files. I haven't profiled the delays, but I did decide to pre-load all of the settings that I could pre-load. Even retrieving all settings from the context and storing them. Then, just call playSound. This doesn't diagnose the problem, but it should reduce a little overhead. Matt On Dec 18, 12:37 pm, Robert Green wrote: > Can you quantify the lag? How much is it lagging? Lately I've been > seeing my footstep sounds, which are individually triggered right and > left steps, take 2-50ms to trigger for some reason. I'm not sure if > it has something to do with the way the OGG is encoded, but I feel > like it could. Perhaps the SoundPool author would like to chime in > and give us some hints? > > On Dec 18, 3:45 am, rukiman wrote: > > > I am using the SoundPool as follows: > > > Caching my sounds: > > // load sound effects > > soundPool = new SoundPool(2, > > AudioManager.STREAM_MUSIC, 0); > > soundPoolMap = new HashMap(); > > AssetFileDescriptor afd; > > try { > > afd = > > context.getAssets().openFd("sounds/piecemove.ogg"); > > soundPoolMap.put(SOUND_PIECEMOVE, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/piecestop.ogg"); > > soundPoolMap.put(SOUND_PIECESTOP, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/pieceattack.ogg"); > > soundPoolMap.put(SOUND_PIECEATTACK, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/pieceselect.ogg"); > > soundPoolMap.put(SOUND_PIECESELECT, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/selection.ogg"); > > soundPoolMap.put(SOUND_MENUSELECTION, > > soundPool.load(afd, 1)); > > > afd = > > context.getAssets().openFd("sounds/pageturn.ogg"); > > soundPoolMap.put(SOUND_PAGETURN, > > soundPool.load(afd, 1)); > > } catch (IOException e) { > > e.printStackTrace(); > > } > > > Function to play sounds: > > > public static int playSound(Context context, int sound) { > > > AudioManager mgr = (AudioManager) context > > .getSystemService(Context.AUDIO_SERVICE); > > float streamVolumeCurrent = mgr > > .getStreamVolume(AudioManager.STREAM_MUSIC); > > float streamVolumeMax = mgr > > > > .getStreamMaxVolume(AudioManager.STREAM_MUSIC); > > float volume = streamVolumeCurrent / streamVolumeMax; > > /* Play the sound with the correct volume */ > > return soundPool > > .play(soundPoolMap.get(sound), volume, > > volume, 1, 0, 1f); > > } > > > Playing a sound effect i.e when button is clicked: > > > Resources.playSound(context, Resources.SOUND_PIECESELECT); > > > However as I said the sound is lagging. What can I do to improve this? > > All my sounds are OGG file format. -- 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