Re: [android-developers] Android findViewById() problem
On Sat, Jul 16, 2011 at 11:40 AM, Árón aaronmulhal...@gmail.com wrote: I know I would usually use the code below but this is not working as the R.id.currency TextView is not in the main R.layout.date_list_layout What is the point of setting the text on a TextView that is not presently being displayed? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Expandable List with Progress Bar or Dialog
On Sat, Jul 16, 2011 at 4:42 PM, Frito Lay cheezypoofs@gmail.comwrote: The groups are also loaded via HTTP request to a PHP service and I have a message dialog being displayed while loading the groups but cannot figure out a way to do it with the children Seems like pretty much the exact same problem - what specifically are you having trouble with doing this with the children? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] setting a textView in a ListView from a DialogBox. Frustrating....
On Sat, Jul 16, 2011 at 12:55 AM, Chris Johnson cj1098sil...@gmail.comwrote: Currently my code will save the text and put it in a random View in the ListView. I do NOT want that... I want the text I save to go to a specific view and stay there.. anyone have any suggestions? First, when posting code, please keep it short and to the point. Posting every bit of your code will just make people's eyes glaze over and they'll just ignore all of it. To your problem: when you get your text from the EditText, it should not be going directly to some TextView - it should be going to the data structure that your ListView items represent. Then you invalidate your adapter and your list gets updated. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to lock current orientation at runtime?
Note that basically everything you do for dealing with a configuration change is *exactly* the same thing you need to do to correctly handle your app being killed in the background if the user has (temporarily) left its UI. Thus making sure you deal correctly with a config change is a really good way to test that you are also able to correctly restore if your process needs to be restarted. If you have transient data that shouldn't be restored (such as a running thread), just use Activity.onRetainNonConfigurationInstance(): http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance() (Or as the current document recommends, the more convenient new Fragment APIs.) On Sat, Jul 16, 2011 at 9:17 PM, Brad bradfull...@gmail.com wrote: Dianne, thanks for the response - you're probably right, I should just bite the bullet. I'd like to vent a little though about what a hassle it is to deal with orientation changes. It must be the #1 source of bugs in the apps that I've come across (including my own apps). iOS does a lot of things wrong, but it makes orientation changes so much easier than Android. I still haven't found a way to preserve the state of an activity that launches another dialog style activity that gets an orientation change - I end up shoving everything in the db or passing the state data to the dialog class. I'm no guru so I'm probably doing something wrong there, but I wish to God that we could go back in time and come up with a better way to deal with orientation changes that didn't involve killing and reconstructing the entire activity! Ok, done w/the vent. Having said all that I still enjoy programming for Android more than Apple even though I sell a lot more apps on the App Store vs the Market :-) Brad On Jul 16, 8:53 pm, Dianne Hackborn hack...@android.com wrote: Those are two different orientations. The Configuration constants: http://developer.android.com/reference/android/content/res/Configurat... The constants for set/getRequestedOrientation(): http://developer.android.com/reference/android/content/pm/ActivityInf... Beyond that, I would strongly recommend not doing what you are trying to do. This would result in a UI flow that is very counter to what the user expects -- that either an app is going to run in a particular orientation, or allow them to rotate their screen as they would elsewhere. Ending up locked into whatever orientation they happened to launch the app in is just not how things should work. Besides which, there are all kinds of edge cases you'll never get right -- for example what happens if they press home to leave your app, rotate their device, and then task switch back to your app? Or as another poster mention, if you lock the screen into portrait like this and they flip the lid on their keyboard the orientation won't change to landscape, which is not what they are going to want. You really, really just need to code your activity correctly to be able to destroy and re-create the activity. On Sat, Jul 16, 2011 at 3:41 PM, Brad bradfull...@gmail.com wrote: Hi, I'm trying to lock my activity to the current orientation to prevent an orientation change from restarting my activity while I'm waiting for a http response. So I'm trying to use this: setRequestedOrientation(getResources().getConfiguration().orientation); And it works fine for portrait (orientation == 1), but when the device is in landscape it's getting a value of 2 which == ActivityInfo.SCREEN_ORIENTATION_USER And this doesn't lock the screen. Does anyone have any idea why I'm getting this instead of LANDSCAPE? Any suggestions for a better way to lock the current orientation? 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 -- Dianne Hackborn Android framework engineer hack...@android.com
Re: [android-developers] Spinner usage
Thank you, I've re-written the adapter and it now works. On 17/07/2011 6:56 AM, TreKing wrote: On Sat, Jul 16, 2011 at 8:56 AM, Simon Platten simonaplat...@googlemail.com mailto:simonaplat...@googlemail.com wrote: When I'm not making a selection the spinner shows as an empty box with a down arrow, once I've made a selection the list is removed but the spinner still shows empty, shouldn't it show the current / last selection ? It should, but I suppose you could be doing something wonky in your adapter. Care to share that? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Xoom external storage
Oh, thank you. I completely misunderstood it before. On júl. 16, 18:20, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 16, 2011 at 12:15 PM, b_t bartata...@gmail.com wrote: Can somebody explain something aboutXoom? I would like to getexternalsd path There is no such concept in Android as externalsd path. but it returns the internal storage as /mnt/sdcard No, that isexternalstorage.Externalstorage does not mean can be physically removed by the user without requiring a soldering iron.Externalstorage means can be mounted as a drive or volume on a host machine when the device is connected via USB. The real sd path is /mnt/external1 but I can't get it from the Api. There is no API to get an sd path. Device manufacturers will declare something to beexternalstorage. On older devices, this tends to be an SD card. On newer devices, this tends to be on-board flash. Newer devices withexternalstorage as on-board flash may also have some form of SD card slot; there is no API means of getting a path to that SD card slot or determining its state (e.g., is there media in it). Is it a bug inXoomfirmware? No. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Android SDK Courses
Thank you guys very very much, thank you Kristopher * * thank you rich* * thank you mark thank you every member in this group I owe you and am grateful to serve you wonderful okay Mark could you please give me books and links for your courses and don't skimp :) for any seminar or conference related to SDK and applications developer or if you don't mind i need website has calendar year for seminar or conference application developer thank you for your serve 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: Opengl ES Texture working on Emulator but not on Device
Try using bitmap with power of two dimensions or even square bitmap with power of two dimensions. Something like 64*64 or 128*128. On 16 июл, 19:00, odrya12 odr...@gmail.com wrote: I tried everything.. Source: Texture class: public class XAndroidTexture { private int[] textures = new int[1]; public int width, height; Bitmap bmp; public XAndroidTexture(GL10 gl, Bitmap bitmap) { gl.glEnable(GL10.GL_TEXTURE_2D); this.bmp = bitmap; width = bmp.getWidth(); height = bmp.getHeight(); gl.glGenTextures(1, textures, 0); // ...and bind it to our array gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); // create nearest filtered texture gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE); // Use Android GLUtils to specify a two-dimensional texture image from our bitmap GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); //GLUtils.texSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, bmp); // Clean up bitmap.recycle(); } public void bind(GL10 gl) { gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); } public static XAndroidTexture createTextureFromBitmap(GL10 gl, Bitmap bmp) { return new XAndroidTexture(gl, bmp); } } Texture loading function: XAndroidTexture Textureload(String path) { InputStream is; Bitmap bmp = null; try { is = this.getAssets().open(path); BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inDither = true; Bitmap tBmp = BitmapFactory.decodeStream(is, null, opts); bmp = Bitmap.createBitmap(tBmp.getWidth(), tBmp.getHeight(), Bitmap.Config.ARGB_); Canvas canvas = new Canvas(bmp); canvas.drawBitmap(tBmp, 0, 0, null); canvas.save(); tBmp.recycle(); tBmp = null; } catch (IOException e) { e.printStackTrace(); } if(bmp == null) return null; else return new XAndroidTexture(gl, bmp); } It working on Emulator perfect, but not on device Can anyone post here texture class that work on device? -- 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 3.2 Twitter support
Discovered in the docs: http://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION public static final int TWEET_TRANSACTION Since: API Level 13 IBinder protocol transaction code: send a tweet to the target object. The data in the parcel is intended to be delivered to a shared messaging service associated with the object; it can be anything, as long as it is not more than 130 UTF-8 characters to conservatively fit within common messaging services. As part of HONEYCOMB_MR2, all Binder objects are expected to support this protocol for fully integrated tweeting across the platform. To support older code, the default implementation logs the tweet to the main log as a simple emulation of broadcasting it publicly over the Internet. Also, upon completing the dispatch, the object must make a cup of tea, return it to the caller, and exclaim jolly good message old boy!. Constant Value: 1599362900 (0x5f545754) I have a question for Google engineers: is there a way to specify the kind of tea that the object makes? Myself, I prefer strongly flavored black tea, but considering that Google HQ is in California, I'm worried that the default is caffeine-free herbal tea. I don't see a way in the API to specify this - is it planned for a future release, or left up to the device manufacturers, to provide reasonable defaults as part of their regionally targeted firmware(s)? -- Kostya Vasilyev -- 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 set focusable a LinearLayout in touch mode?
Hi How to set focusable a LinearLayout in touch mode? I tried this: android:focusable=false android:clickable=true android:focusableInTouchMode=true also this: android:focusable=false android:clickable=false android:focusableInTouchMode=false But these dont work.What to do? Thanks in advance. Regards Goutom -- 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] Spinner Adapter problem
I have a spinner with a checkbox in it, here is the XML for the item: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=10dp CheckBox android:id=@+id/chkBox android:layout_width=fill_parent android:layout_height=wrap_content android:text=Folder name android:textColor=@color/black android:soundEffectsEnabled=true/ /RelativeLayout Here is the adapter code: public class spAdapter extends BaseAdapter implements OnClickListener { private ArrayListString m_arySelItems = new ArrayListString(); private LayoutInflater m_layoutInfater; private ArrayListString m_aryFolders; public spAdapter(Context context, int textViewResourceId, ArrayListString aryFolders) { m_aryFolders = aryFolders; m_layoutInfater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public void add(String item) { m_aryFolders.add(item); } public void clear() { m_aryFolders.clear(); } public int getCount() { return m_aryFolders.size(); } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { View vi = convertView; try{ // Get the Actual Image from the Array String strFolder = m_aryFolders.get(position); if ( vi == null ) { vi = m_layoutInfater.inflate(R.layout.spfolders, null); } CheckBox chkBox = (CheckBox)vi.findViewById(R.id.chkBox); chkBox.setText(strFolder); chkBox.setTag(strFolder); if ( m_arySelItems.contains(strFolder) ) { chkBox.setChecked(true); } chkBox.setOnClickListener(this); } catch( Exception ex ) { Log.e( TAG, ex.getMessage() ); } return vi; } @Override public void onClick(View v) { CheckBox chkBox = (CheckBox)v; String strFolder = (String)chkBox.getTag(); if ( chkBox.isChecked() ) { if ( m_arySelItems.contains(strFolder) == false ) { m_arySelItems.add(strFolder); } } else { if ( m_arySelItems.contains(strFolder) == true ) { m_arySelItems.remove(strFolder); } } } } I've done something wrong in the getView, something is missing because when I scroll off view, any selections get mixed up. Is there a good example / tutorial where I can find out how to implement this correctly? Thank you, -- Regards, Sy -- 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] Again TableLayout and setting column's weight programmatically
Hi All!! I need to create a schedule view like a grid with a WRAP_CONTENTed first 'Description' column and 24 'hour'-columns with the same width. This should be created programmatically. I've tried a different variants, but 'hour'-columns seem like a WRAP_CONTENTED too. :-( XML-part: .. HorizontalScrollView android:layout_width=wrap_content android:layout_height=wrap_content TableLayout android:id=@+id/laytBluetooth android:layout_height=wrap_content android:layout_width=wrap_content android:stretchColumns=0 /TableLayout /HorizontalScrollView . Java-part: TableLayout layout; TableRow row; TextView txtHeader; TableRow.LayoutParamslpHeader, lpHourHdr; lpHeader= new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT, TableRow.LayoutParams.WRAP_CONTENT, *6f*); lpHourHdr = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT, TableRow.LayoutParams.WRAP_CONTENT, *1f*); /// // Generates grid /// layout = (TableLayout)findViewById(R.id.laytBluetooth); // // Header // row = new TableRow(this); row.setWeightSum(30f); txtHeader = new TextView(this); txtHeader.setText(R.string.hdrHour); txtHeader.setLayoutParams(*lpHeader*); row.addView(txtHeader); // Hours for (int hour = 0; hour 24; hour++) { layout.*setColumnStretchable*(hour, true); txtHeader = new TextView(this); txtHeader.setLayoutParams(*lpHourHdr*); txtHeader.setText(String.valueOf(hour) + ); txtHeader.setGravity(Gravity.CENTER_HORIZONTAL); row.addView(txtHeader); } layout.addView(row, new TableLayout.LayoutParams( TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT)); Could anyone help me? --- Peter. -- 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] MediaPlayer - mp3 audio stream Nexus Devices vs others
Hi, I am using the following to stream mp3 or m4a files from a server: mMediaPlayer.setOnCompletionListener(MyActivity.this); mMediaPlayer.setOnPreparedListener(MyActivity.this); mMediaPlayer.setOnErrorListener(MyActivity.this); mMediaPlayer.setDataSource(MyActivity.this,Uri.parse(mMediaURL)); //mMediaPlayer.setDataSource(mMediaURL); mMediaPlayer.prepareAsync(); This works fine on Nexus devices. Eg I get the following in the logcat and the music can be heard: INFO/StagefrightPlayer(68): setDataSource('http://media….') INFO/NuHTTPDataSource(68): connect to media…. @0 WARN/AudioFlinger(68): write blocked for 161 msecs, 67 delayed writes, thread 0xea00 However on other devices I get the following in logcat and no sound: VERBOSE/PlayerDriver(1233): Completed command PLAYER_HELPER status=PVMFSuccess VERBOSE/PVPlayer(1233): setDataSource(http://media) VERBOSE/PVPlayer(1233): prepareAsync VERBOSE/PVPlayer(1233): data source = http://media VERBOSE/PlayerDriver(1233): Send player code: 4 VERBOSE/PlayerDriver(1233): handleSetDataSource VERBOSE/PlayerDriver(1233): handleSetDataSource- scanning for extension VERBOSE/PlayerDriver(1233): CommandCompleted VERBOSE/PlayerDriver(1233): Completed command PLAYER_SET_DATA_SOURCE status=PVMFSuccess VERBOSE/PVPlayer(1233): run_init s=0, cancelled=0 VERBOSE/PlayerDriver(1233): Send player code: 7 VERBOSE/PlayerDriver(1233): headers size 0 VERBOSE/PlayerDriver(1233): release string is 2.2.2 len 5 INFO/CheckinTask(1573): Sending checkin request (1855 bytes) INFO/dalvikvm(1573): Jit: resizing JitTable from 8192 to 16384 VERBOSE/PlayerDriver(1233): HandleInformationalEvent: PVMFInfoContentType VERBOSE/PlayerDriver(1233): HandleInformationalEvent: PVMFInfoContentLength VERBOSE/PlayerDriver(1233): HandleInformationalEvent: PVMFInfoBufferingStart DEBUG/(1233): enter PVOMA1MOTRecognizerPlugin::Recognize DEBUG/(1233): enter PVGetInterface DEBUG/(1233): enter Instance DEBUG/(1233): enter SharedLibraryLookup DEBUG/(1233): enter GetFactoryAndMimeString DEBUG/(1233): PVMFCPMMotPlugInOMA1:SetSourceInitializationData in DEBUG/(1233): sourceURL is DEBUG/(1233): PVMFCPMMotPlugInOMA1:SetSourceInitializationData m_pvfile.Open failed VERBOSE/PlayerDriver(1233): HandleInformationalEvent: PVMFInfoErrorHandlingStart VERBOSE/PlayerDriver(1233): HandleInformationalEvent: type=26 UNHANDLED WARN/MediaPlayer(5088): info/warning (1, 26) INFO/MediaPlayer(5088): Info (1,26) DEBUG/(1233): enter SharedLibraryLookup DEBUG/(1233): enter GetFactoryAndMimeString INFO/WMDRMD(1233): unload libwmdrmdependency.so VERBOSE/PlayerDriver(1233): CommandCompleted VERBOSE/PlayerDriver(1233): Completed command PLAYER_INIT status=PVMFFailure ERROR/PlayerDriver(1233): Command PLAYER_INIT completed with an error or info PVMFFailure ERROR/MediaPlayer(5088): error (1, -1) ERROR/MediaPlayer(5088): Error (1,-1 Is there a way to get more debug or error information to find out what might be going wrong or what is different? My error listener just gives me a what and extra of 1 and -1. I have tried unsuccessfully on devices running 2.1 update 1 and 2.2.2. Thanks for any help. Regards, Julius. -- 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 many threads android os can execute at a time in a application?
Hi How many threads android os can execute at a time in a application? Thanks in advance. Regards Goutom -- 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] Android findViewById() problem
It is being displayed. The second layout file is for a list item with multiple details for a ListView that is found in the first parent layout file For example the list item layout file is as follows.. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal TextView android:layout_width=180dp android:layout_height=wrap_content android:id=@+id/categoryNameView android:textSize=16px android:paddingRight=30dp android:textColor=#00 /TextView LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=100dp android:layout_height=wrap_content android:orientation=horizontal android:gravity=right android:paddingRight=0dp TextView android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/currency android:text= android:textSize=14px android:paddingLeft=10dp android:textColor=#d17375 /TextView TextView android:layout_width=90dp android:layout_height=wrap_content android:id=@+id/amountView android:textSize=14px android:textStyle=bold android:textColor=#d17375 /TextView /LinearLayout /LinearLayout LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal TextView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/dataView android:layout_weight=1 android:textColor=#00/TextView TextView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/placeView android:layout_weight=1 android:textColor=#00/TextView /LinearLayout /LinearLayout This is used for the listView in the date_list_layout xml file as follows. ListView android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/DisplayDateList android:cacheColorHint=# android:divider = @drawable/horizontalline /ListView It is populated from a database in the activity as follows... mCursor = mDb.query(incometracker, null, year_id=? AND month_id=? AND day_id=?, new String[] { year1, month1, day1}, null, null, _id ASC); startManagingCursor(mCursor); int view[] = {R.id.categoryNameView, R.id.dataView, R.id.placeView, R.id.amountView}; String col[] = { income_name, date, place, amount}; SimpleCursorAdapter ca = new SimpleCursorAdapter( this, R.layout.display_item, mCursor, col, view); But my problem is that there is one more TextView that is found within each list item that needs to be filled from an input from the user and not the database On 17 July 2011 07:05, TreKing treking...@gmail.com wrote: On Sat, Jul 16, 2011 at 11:40 AM, Árón aaronmulhal...@gmail.com wrote: I know I would usually use the code below but this is not working as the R.id.currency TextView is not in the main R.layout.date_list_layout What is the point of setting the text on a TextView that is not presently being displayed? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Aaron Mulhall APPIDAE Developer Interaction Design Centre, CSIS Dept. Engineering Research Building University of Limerick +353 0862151535 www.appidae.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] Postdelayed don't work for more than 1 hour
Hello, I implemented a Live Wallpaper displaying a picture. This pic can be changed automatically from 5 minutes to 24 hours. The change is applied for 5, 15, 30 minutes...but for a value higher than 1 hour, the call is not called. I use a simple postdelayed calling an internal method loading the good picture. Do you think that the best way should be to implement an intent call to my wallpaper service ? -- 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 many threads android os can execute at a time in a application?
Using AsyncTask you can have some problem with 25 simultaneous task. After this, you can try to implement your own threadpool and make some tests. -- 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] Postdelayed don't work for more than 1 hour
You should never use postDelayed() for such delays. Use the AlarmManager instead. On Sun, Jul 17, 2011 at 2:24 AM, arnouf arnaud.far...@gmail.com wrote: Hello, I implemented a Live Wallpaper displaying a picture. This pic can be changed automatically from 5 minutes to 24 hours. The change is applied for 5, 15, 30 minutes...but for a value higher than 1 hour, the call is not called. I use a simple postdelayed calling an internal method loading the good picture. Do you think that the best way should be to implement an intent call to my wallpaper service ? -- 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 -- Romain Guy Android framework engineer romain...@android.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] Problem with Progress Dialog
Hi I want to use Progress Dialog in my application with default style(Spin Wheel). I use setMax() to set the max value. Now when I do setProgress() in the Thread, it doesn't work. It doesn't stop when progress reaches MAX value. So after doing setProgress, I tried getProgress() again to see if progress was set at all. I found that Progress of that dialog remained 0 always. Please suggest. Any help is appreciated. Regards, Ajith -- 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] Postdelayed don't work for more than 1 hour
Yes I thought this, but I didn't know if in a wallpaper it was a good idea (working in a service)... So if you confirm that my strategy was bad, I change this soon. Thanks for your 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] clearing notification
hi, I ve searched for answer here but nothing seems to work as expected. I have a service that in onStartCommand sends notification, created as final Notification notification = new Notification(icon, notify_title, when); final Intent notificationIntent = new Intent(this, MyActivity.class); final PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK); notification.setLatestEventInfo(this, notify_title, expandText, contentIntent); notification.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_NO_CLEAR | Notification.FLAG_FOREGROUND_SERVICE; mNotificationManager.notify(SERVICE_STARTED_NOTIFICATION_ID, notification); and this is fine but in onDestroy I try to clear that notification, I thought that mNotificationManager.clear(SERVICE_STARTED_NOTIFICATION_ID) would be enough but it wasnt. then I tried to post another notification and then clear it like final Notification notification = new Notification(icon, notify_title, when); final PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(), PendingIntent.FLAG_UPDATE_CURRENT); notification.setLatestEventInfo(this, stopping_title, stopping_text, contentIntent); //notification.flags = Notification.FLAG_ONLY_ALERT_ONCE | Notification.FLAG_AUTO_CANCEL; mNotificationManager.notify(SERVICE_STARTED_NOTIFICATION_ID, notification); // mNotificationManager.cancelAll(); I tried with and without flags (Notification.FLAG_ONLY_ALERT_ONCE | Notification.FLAG_AUTO_CANCEL), with and without mNotificationManager.cancelAll() or cancel(SERVICE_STARTED_NOTIFICATION_ID) clicking on notification itself is not clearing it. the service and other activities are not running (I dont see them in process manager) Im really out of 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] Re: Problem with Progress Dialog
are you creating this dialog every time you want to show it or are you try to set progress value on already created dialog?? On 17 Lip, 11:29, Ajith Kamath sjce.aj...@gmail.com wrote: Hi I want to use Progress Dialog in my application with default style(Spin Wheel). I use setMax() to set the max value. Now when I do setProgress() in the Thread, it doesn't work. It doesn't stop when progress reaches MAX value. So after doing setProgress, I tried getProgress() again to see if progress was set at all. I found that Progress of that dialog remained 0 always. Please suggest. Any help is appreciated. Regards, Ajith -- 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: Spinner Adapter problem
Fixed, the problem was in my adapter: // Categories / Folders Adapter for Spinner View public class spAdapter extends BaseAdapter implements OnClickListener { private ArrayListString m_arySelItems; private LayoutInflater m_layoutInfater; private ArrayListString m_aryFolders; public spAdapter(Context context, int textViewResourceId, ArrayListString aryFolders) { m_aryFolders = aryFolders; m_arySelItems = new ArrayListString(); m_layoutInfater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public void add(String item) { m_aryFolders.add(item); } public void clear() { m_aryFolders.clear(); } public int getCount() { return m_aryFolders.size(); } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { View vi = convertView; try{ if ( vi == null ) { vi = m_layoutInfater.inflate(R.layout.spfolders, null); } // Get the folder from the current position in the array CheckBox chkBox = (CheckBox)vi.findViewById(R.id.chkBox); String strFolder = m_aryFolders.get(position); if ( chkBox != null strFolder != null ) { chkBox.setText(strFolder); chkBox.setChecked(m_arySelItems.contains(strFolder)); chkBox.setOnClickListener(this); } } catch( Exception ex ) { Log.e( TAG, ex.getMessage() ); } return vi; } @Override public void onClick(View v) { CheckBox chkBox = (CheckBox)v; String strFolder = chkBox.getText().toString(); if ( chkBox.isChecked() ) { if ( m_arySelItems.contains(strFolder) == false ) { m_arySelItems.add(strFolder); } } else { if ( m_arySelItems.contains(strFolder) == true ) { m_arySelItems.remove(strFolder); } } } } On Sun, Jul 17, 2011 at 9:42 AM, Simon Platten simonaplat...@googlemail.com wrote: I have a spinner with a checkbox in it, here is the XML for the item: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:padding=10dp CheckBox android:id=@+id/chkBox android:layout_width=fill_parent android:layout_height=wrap_content android:text=Folder name android:textColor=@color/black android:soundEffectsEnabled=true/ /RelativeLayout Here is the adapter code: public class spAdapter extends BaseAdapter implements OnClickListener { private ArrayListString m_arySelItems = new ArrayListString(); private LayoutInflater m_layoutInfater; private ArrayListString m_aryFolders; public spAdapter(Context context, int textViewResourceId, ArrayListString aryFolders) { m_aryFolders = aryFolders; m_layoutInfater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public void add(String item) { m_aryFolders.add(item); } public void clear() { m_aryFolders.clear(); } public int getCount() { return m_aryFolders.size(); } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { View vi = convertView; try{ // Get the Actual Image from the Array String strFolder = m_aryFolders.get(position); if ( vi == null ) { vi = m_layoutInfater.inflate(R.layout.spfolders, null); } CheckBox chkBox = (CheckBox)vi.findViewById(R.id.chkBox); chkBox.setText(strFolder); chkBox.setTag(strFolder); if ( m_arySelItems.contains(strFolder) ) { chkBox.setChecked(true); }
Re: [android-developers] Postdelayed don't work for more than 1 hour
But is it possible to send an information to a wallpaperservice from broadcastreceiver ? -- 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 retrieve a Wallpaperservice.Engine from broadcastreceiver
I would like to know how can I do to retrieve my WallpaperService.Engine running from a BroadcastReceiver... Thanks by 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: Horizontal List View
You can try gridview and if you have less number of elements you can manipulate number of columns in the grid view so that only one row is shown -Hegde On Jul 16, 5:03 am, bhasker reddy.ba...@gmail.com wrote: I am surprised that there is no Horizontal List View in Android. Tried using gallery but cannot live with it center element locking feature. I dont even see a possibility to get rid of it, either with the API or by extending it. Any suggestions? -- 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] Android findViewById() problem
I didn't go through your code (not able to atm) but are you trying to merge layouts and access the widget ids therein? If so, you should check out this: http://developer.android.com/resources/articles/layout-tricks-merge.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] error: device not found suddenly...
Did inserting the SIM card reset the USB debugging to disabled? -- 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 retrieve a Wallpaperservice.Engine from broadcastreceiver
Ok I found a solution using an internal Broadcastreceiver class -- 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 a contact name given its phone number
Why are you working with content://com.android.contacts/ phone_lookup, content://contacts/phones/filter etc? Use ContactsContract instead, which is supported since API level 5. Otherwise you are not writing a code which is guaranteed to work. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for Cisco Cius) https://marketplace.cisco.com/apphq/products/510 -- 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] latitude and longitude Problem
I just simply wants my current location.in real time like i press some login button and fetch my location On Sun, Jul 17, 2011 at 10:49 AM, TreKing treking...@gmail.com wrote: On Sat, Jul 16, 2011 at 2:39 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: i try the below code but it always return me same old Address like right now me in city A but it always return me old City B You're specifically asking for last known location. If that's not what you want, don't ask for it. Also, you're duplicating a ton of code. They're called functions ;-) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- 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] Checkbox bug?
Whilst building a layout I think I've found a bugin a relative layout: CheckBox android:text=File-name android:layout_width=fill_parent android:layout_height=wrap_content android:layout_gravity=left android:id=@+id/chkUse android:textColor=@color/yellow android:textStyle=bold / Works find, with the text aligned to the left of the checkbox, however if I add a background colour to the checkbox, the text overlays the checkbox: CheckBox android:text=File-name android:layout_width=fill_parent android:layout_height=wrap_content android:layout_gravity=left android:id=@+id/chkUse android:background=@color/blue android:textColor=@color/yellow android:textStyle=bold / -- Regards, Sy -- 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: Android SDK Courses
There is a video on: http://www.udemy.com/ On Jul 16, 1:15 am, Saad Alghaidani adebofi...@gmail.com wrote: Hello Guys, i just joined the group today , and i am very interesting in android development, so Could you please help me how can i take Course in Andriod SDK for junior? and where it will be?and inform me for any new course. thank you for this Wonderful group. -- 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 long is a paid app considered refundable?
I seem to recall seeing this mentioned, either in the dev guide or somewhere else, but I have no idea where it was How long is a paid app, with an accompanying free app, considered refundable? If I remember correctly, with a free app, the paid app is not refundable. Is this correct? Or is the damage to my memory just playing tricks on me? Thanks, --jim -- 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com Do not look into waveguide with remaining eye! -- 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] How long is a paid app considered refundable?
24 hrs I believe. On 17/07/2011 2:54 PM, Jim Graham wrote: I seem to recall seeing this mentioned, either in the dev guide or somewhere else, but I have no idea where it was How long is a paid app, with an accompanying free app, considered refundable? If I remember correctly, with a free app, the paid app is not refundable. Is this correct? Or is the damage to my memory just playing tricks on me? Thanks, --jim -- 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] How long is a paid app considered refundable?
Wait, wasn't it changed to 15 minutes some time in December 2010? Oh, and the free app doesn't come into play here at all - the free and paid apps are entirely separate entities, Market doesn't know that those are two versions of the same application. -- Kostya 17.07.2011 17:58, Simon Platten пишет: 24 hrs I believe. On 17/07/2011 2:54 PM, Jim Graham wrote: I seem to recall seeing this mentioned, either in the dev guide or somewhere else, but I have no idea where it was How long is a paid app, with an accompanying free app, considered refundable? If I remember correctly, with a free app, the paid app is not refundable. Is this correct? Or is the damage to my memory just playing tricks on me? Thanks, --jim -- Kostya Vasilyev -- 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] How long is a paid app considered refundable?
On Sun, Jul 17, 2011 at 06:04:54PM +0400, Kostya Vasilyev wrote: Oh, and the free app doesn't come into play here at all - the free and paid apps are entirely separate entities, Market doesn't know that those are two versions of the same application. Ok, that confirms the other possibility I thought I might have seen, i.e., someone commenting that it *should* be non-refundable if there is a free app. That must be what I saw. Later, --jim -- 73 DE N5IAL (/4)| Peter da Silva: No, try rm -rf / spooky1...@gmail.com| Dave Aronson:As your life flashes before Running FreeBSD 7.0 | your eyes, in the unit of time known as an ICBM / Hurricane: | ohnosecond (alt.sysadmin.recovery) 30.44406N 86.59909W | Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.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] How long is a paid app considered refundable?
On a related note, a paid app is dev-refundable forever which makes me a little nervous... Suppose your Google Account was compromised. The hacker could then go through refunding all of your sales, if they were so inclined. -- 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: error: device not found suddenly...
Hi Rich, It did not reset.. and i have double check enabled, disabled, enabled it again... On Jul 17, 7:14 pm, rich friedel rich.frie...@gmail.com wrote: Did inserting the SIM card reset the USB debugging to disabled? -- 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: Install % not updating?
Ok, my turn to be affected. Now when I log into the Checkout order list, I get this: Error Purchase History Error Oops! An error occurred while retrieving data for your request. Please try again. If the error persists, please contact Google. That's a nice one. -- Kostya 16.07.2011 23:09, Adam Ratana ?: Looks like the checkout thing seems to be crashing on orders that have been cancelled in a certain way, or something, not just the Docomo, it happens with some older cancelled orders now too. They are clickable, so it's possible to move to archive (or back to inbox) on each crashed one to then see others. A workaround, but not ideal though. Checkout Orders Page completely crashes on Tablet and Phone browsers though, can only really see the checkout orders page from a desktop browser - haven't found a workaroud yet, if others can also report this issue if you encounter that, hopefully action will be taken soon. The market wackiness is a little frustrating, I'm small potatoes though; I can only imagine how it may be affecting people who depend on sales from a consistently working market. Adam On Saturday, July 16, 2011 11:49:11 AM UTC-4, Nikolay Elenkov wrote: On Sun, Jul 17, 2011 at 12:06 AM, Adam Ratana adam@gmail.com wrote: This seems to be happening again. I also noticed the following: 1. App descriptions sometimes display in a random language on the honeycomb market app (mine and others) This is also happening on the new phone version of Market. 'What's new' is displayed in one language, the description in another. Sometimes, if you are lucky, both are displayed in the same language. The whole silliness with reordering comments based on some unknown 'usefulness' metric is also quite annoying: the top comments are sometimes months old. 2. Google checkout seems to be crashing when particular orders are in the inbox or archive (for me it's some cancelled ones from Japan) There was a problem with handling orders from Docomo yesterday or the day before. I think it's fixed now. 3. There was a strange spike in the active installs of the free version of my app, followed by an adjustment a day or two later, around the time this issue first surfaced. Those numbers depend on cosmic radiation and maybe solar flares. 4. Saw some doubling up of my screenshots, a small low-res version followed by the standard one. Was the same on the new phone version too, but it seems it's fixed now. (for now?) All in all, business as usual. -- 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 -- Kostya Vasilyev -- 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] Android SDK Courses
Hey , I am android professional since one and half years, I can teach you. But you need to pay fee for it.. On Sat, Jul 16, 2011 at 11:45 AM, Saad Alghaidani adebofi...@gmail.comwrote: Hello Guys, i just joined the group today , and i am very interesting in android development, so Could you please help me how can i take Course in Andriod SDK for junior? and where it will be?and inform me for any new course. thank you for this Wonderful group. -- 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 -- Thanks Regards, -Zameer. -- 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: error: device not found suddenly...
Make sure you are not trying to use an unusable run configuration. Make sure it isn't trying to use the old SIM id. -- 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] Context menu problem
Context Menu is returning me object how should I get text view(Name) which was their in list? HomeActivity is ListView like Name Date --- public void onCreateContextMenu(ContextMenu menu,View v,ContextMenuInfo menuInfo) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo; //CharSequence itemTitle = tv.getText(); //Object lv= (Object) HomeActivity.getItemAtPosition(info.position); tv= HomeActivity.getAdapter().getItem(info.position).toString(); // String keyword = o.toString(); menu.setHeaderTitle(tv); menu.add(0, Id_Details, 0, Details); menu.add(0, Id_Email, 0, Email); //menu.add(0,3,0, HomeActivity.getItemAtPosition(info.position)); // Toast.makeText(HomeActivity.this,(CharSequence) s , Toast.LENGTH_SHORT).show(); } -- 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] Context menu problem
Context Menu is returning me object how should I get text view(Name) which was their in list? HomeActivity is ListView like Name Date --- public void onCreateContextMenu(ContextMenu menu,View v,ContextMenuInfo menuInfo) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo; //CharSequence itemTitle = tv.getText(); //Object lv= (Object) HomeActivity.getItemAtPosition(info.position); tv= HomeActivity.getAdapter().getItem(info.position).toString(); // String keyword = o.toString(); menu.setHeaderTitle(tv); menu.add(0, Id_Details, 0, Details); menu.add(0, Id_Email, 0, Email); //menu.add(0,3,0, HomeActivity.getItemAtPosition(info.position)); // Toast.makeText(HomeActivity.this,(CharSequence) s , Toast.LENGTH_SHORT).show(); } -- 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] Linkify combined with Html.fromHtml
Hi, I have a String with 'a href=...Something/a' tags and some text such as 'www.example.com'. I would like both to be links that can be clicked in a TextView. I can use Html.fromHtml to create links from the tags, but if I use Linkify.addLinks I lose the links created from the Html.fromHtml. mArticleTextView.setText(mDescription); mArticleTextView.setText(Html.fromHtml(mArticleTextView.getText().toString(), new MImageGetter(), null)); Linkify.addLinks(mArticleTextView, Linkify.ALL); Is there a way to get both to link in a TextView? Regards, Julius. -- 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] Low Maturity or Everyone - Which reaches the most people?
Low Maturity or Everyone - Which reaches the most people? I feel many are putting Low Maturity which imo means for children? But their apps are in fact for everyone. I don't understand. -- 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] latitude and longitude Problem
On Sun, Jul 17, 2011 at 7:34 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: I just simply wants my current location.in real time like i press some login button and fetch my location Then wait for an update instead of getting and immediately using the last known location. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Android findViewById() problem
On Sun, Jul 17, 2011 at 4:12 AM, Aaron Mulhall aaronmulhal...@gmail.comwrote: But my problem is that there is one more TextView that is found within each list item that needs to be filled from an input from the user and not the database Then you'll likely need your own adapter, perhaps extending SimpleCursorAdapter, that is aware of and populates this extra text view. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Invoking clickable call-back?
I have a checkbox that has an onClick listener function attached, when my application starts up I read in the settings and set-up the initial state of the controls, is there anyway to get the views (in this case a checkbox) to invoke its onClick call-back when a value is assigned to it? -- Regards, Sy -- 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] Low Maturity or Everyone - Which reaches the most people?
On Mon, Jul 18, 2011 at 1:24 AM, Droid rod...@gmail.com wrote: Low Maturity or Everyone - Which reaches the most people? I feel many are putting Low Maturity which imo means for children? But their apps are in fact for everyone. I don't understand. If you use location, you need to set it to 'low maturity'. In fact, the developer console sets it automatically if you have a location access permission in your manifest. Read the guidelines: https://www.google.com/support/androidmarket/developer/bin/answer.py?answer=188189 -- 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: Install % not updating?
On Sun, Jul 17, 2011 at 9:42 AM, Kostya Vasilyev kmans...@gmail.com wrote: Ok, my turn to be affected. Now when I log into the Checkout order list, I get this: Error Purchase HistoryError Oops! An error occurred while retrieving data for your request. Please try again. If the error persists, please contact Google. I've had this ongoing a week now. I just love the fact that it says please contact Google with no link, email, or number to do so, because, as we all know, contacting Google is so obviously easy. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Invoking clickable call-back?
On Sun, Jul 17, 2011 at 11:32 AM, Simon Platten simonaplat...@googlemail.com wrote: I have a checkbox that has an onClick listener function attached, when my application starts up I read in the settings and set-up the initial state of the controls, is there anyway to get the views (in this case a checkbox) to invoke its onClick call-back when a value is assigned to it? Hint: look at the CheckBox documentation. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Problem with Progress Dialog
spin wheel you can't set the progress...it is on of off. -- 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: Problem with Progress Dialog
you have to setCancelable(true); end of the progess dialog .. On Sun, Jul 17, 2011 at 10:15 AM, Mike darksk...@gmail.com wrote: spin wheel you can't set the progress...it is on of off. -- 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: Opengl ES Texture working on Emulator but not on Device
there is a way to change the image to power of 2? and thanks, it working perfect! -- 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] latitude and longitude Problem
Ok Thanks On Sun, Jul 17, 2011 at 9:57 PM, TreKing treking...@gmail.com wrote: On Sun, Jul 17, 2011 at 7:34 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: I just simply wants my current location.in real time like i press some login button and fetch my location Then wait for an update instead of getting and immediately using the last known location. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- 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: Install % not updating?
Yeah, I know, and contacting Checkout is _especially_ easy: - checkout-supp...@google.com gives an auto-response saying don't write here, we don't read it - help forums posts are often closed by Google employees with please read the help pages - contact us screens require choosing one of a handful of predefined categories, and Other is not one of them (Something is badly broken isn't either). Maybe my telepathic skills are too weak, that would work really well, but I don't have Jedi training :) -- Kostya 17.07.2011 21:03, TreKing пишет: I've had this ongoing a week now. I just love the fact that it says please contact Google with no link, email, or number to do so, because, as we all know, contacting Google is so obviously easy. -- Kostya Vasilyev -- 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] Invoking clickable call-back?
I have already checked the documentation. Perhaps I didn't make myself clear. In my activity onCreate method: m_chkShowAll = (CheckBox)findViewById(R.id.chkShowAll); m_chkShowAll.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { CheckBox chkShowAll = (CheckBox)v; showAllCallback(chkShowAll); } }); m_chkShowAll.setChecked(m_blnSelectAll); The listener is not invoked when using setChecked, only when the user touches the checkbox. What I want is to invoke the listener when I set the state of the checkbox programmatically. For the time being I can call showAllCallback after setChecked, just wondered if they're is a better way to do itand as far as I can tell from the documentation they're isn't. On Sun, Jul 17, 2011 at 6:11 PM, TreKing treking...@gmail.com wrote: On Sun, Jul 17, 2011 at 11:32 AM, Simon Platten simonaplat...@googlemail.com wrote: I have a checkbox that has an onClick listener function attached, when my application starts up I read in the settings and set-up the initial state of the controls, is there anyway to get the views (in this case a checkbox) to invoke its onClick call-back when a value is assigned to it? Hint: look at the CheckBox documentation. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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, Sy -- 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: Install % not updating?
Yes, attempting to file a bug report on this was one of the more frustrating experiences I've had, I had to just pick some random thing tangentially related, which got me a canned response. But I replied to the canned response and a human replied indicating that the developers have been made aware. I imagine since this is probably affecting EVERYONE something will be done soon. On Sun, Jul 17, 2011 at 1:22 PM, Kostya Vasilyev kmans...@gmail.com wrote: Yeah, I know, and contacting Checkout is _especially_ easy: - checkout-supp...@google.com gives an auto-response saying don't write here, we don't read it - help forums posts are often closed by Google employees with please read the help pages - contact us screens require choosing one of a handful of predefined categories, and Other is not one of them (Something is badly broken isn't either). Maybe my telepathic skills are too weak, that would work really well, but I don't have Jedi training :) -- Kostya 17.07.2011 21:03, TreKing пишет: I've had this ongoing a week now. I just love the fact that it says please contact Google with no link, email, or number to do so, because, as we all know, contacting Google is so obviously easy. -- Kostya Vasilyev -- 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.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Adam Ratana adam.rat...@gmail.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] Invoking clickable call-back?
On Sun, Jul 17, 2011 at 12:23 PM, Simon Platten simonaplat...@googlemail.com wrote: I have already checked the documentation. http://developer.android.com/reference/android/widget/CompoundButton.html#setOnCheckedChangeListener(android.widget.CompoundButton.OnCheckedChangeListener) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Install % not updating?
17.07.2011 21:40, Adam Ratana пишет: Yes, attempting to file a bug report on this was one of the more frustrating experiences I've had, I had to just pick some random thing tangentially related, which got me a canned response. But I replied to the canned response and a human replied indicating that the developers have been made aware. Yep, that seems to be the process. I imagine since this is probably affecting EVERYONE something will be done soon. I'm keeping my fingers crossed :) -- Kostya Vasilyev -- 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] Invoking clickable call-back?
17.07.2011 21:23, Simon Platten пишет: The listener is not invoked when using setChecked, only when the user touches the checkbox. What I want is to invoke the listener when I set the state of the checkbox programmatically. The listener will be invoked if the new state is different from the old state. If not, it won't be. For the time being I can call showAllCallback after setChecked Since you have the anonymous thunk invoking the real method anyway, why not just keep it that way? -- Kostya Vasilyev -- 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] Invoking clickable call-back?
Thank you, I've tried it and it works: m_chkShowAll = (CheckBox)findViewById(R.id.chkShowAll); m_chkShowAll.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { m_blnSelectAll = isChecked; m_spFolder.setVisibility((m_blnSelectAll == true) ? View.GONE : View.VISIBLE); } }); m_chkShowAll.setChecked(m_blnSelectAll); On Sun, Jul 17, 2011 at 6:40 PM, TreKing treking...@gmail.com wrote: On Sun, Jul 17, 2011 at 12:23 PM, Simon Platten simonaplat...@googlemail.com wrote: I have already checked the documentation. http://developer.android.com/reference/android/widget/CompoundButton.html#setOnCheckedChangeListener(android.widget.CompoundButton.OnCheckedChangeListener) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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, Sy -- 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: Odp: SoundPool and DualCore (Samsung Galaxy S2) : Random Crashes ingame
can you provide the build fingerprint of the device you are testing and being able to reproduce ? Also code snippet will be helpful ... -Dan On Sat, Jul 16, 2011 at 9:53 PM, Daniel daniel.ge.sm...@gmail.com wrote: I have been getting reports of S2 crashes too... and based on this thread, and since i use SoundPool extensively, i'm pretty confident at this point that it is the cause. Has anyone been able to try native OpenSL ES audio, and seen better results? (Haven't got round to setting all that up yet since 2.3 adoption has been pretty slow). I guess it will depend on whether the problem is with SoundPool specifically or the lower level drivers. -- 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
Re: [android-developers] How many threads android os can execute at a time in a application?
On Sun, Jul 17, 2011 at 4:01 AM, Goutom goutom.sust@gmail.com wrote: How many threads android os can execute at a time in a application? It should be fairly straightforward to write some code to test this. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Yet another paid app question: Licensing code
I have what I hope will be the final question on this topic for a while Looking at the instructions in the dev guide on Application Licensing, I'm still not clear on one thing. Specifically, after installing the library code from the Market Licensing Library, if I'm understanding correctly, I STILL need to copy (and configure for my public key, etc.) the code from the sample directory into my main activity, correct? Or, is there equivalent code in the library directory itself (which I added as a library in Eclipse) that I need to configure? Thanks, --jim -- 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com Saw something on TV about Psych-os. H, Psych OS. Perhaps the next freeware OS --me -- 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] Send dtmf tone on uplink
I'd like to add my voice to this topic also, as I have several devices which are DTMF enables (relays) and being able to use an app to send the tones would be extremely helpful, having to drive 25 miles to open and close greenhouse windows is a major chore and while I have the temp and humidity uploaded nicely, its hard to write an app that can tell if plants are starting to droop with heat that makes DTMF enabled relay so useful. On 17/07/2011, lbendlin l...@bendlin.us wrote: I stumbled across this too a while back. What I don't understand - why is DTMF supported downlink? What's the point? To play a phreaky Für Elise ? -- 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] Can I sell hardware+app together on Android Market?
I want to sell a companion piece of hardware with my app. Can anyone point me to where this is OK, not-OK in the terms. I need facts only please. Thanks -cellurl -- 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 sell hardware+app together on Android Market?
The android market is for selling software, not software and hardware. How would you handle special refunds? It seems that the best approach to your app would be to contact Google and see if they can give you a special android market contract or you can try to sell your app on a different market or on your own. -- 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 sell hardware+app together on Android Market?
Might be best to sell the hardware on your own online store and through other sites willing to sell it. Then release the app for free and make it work only with the hardware. You could also give each HW device a serial number and that number has to be entered when starting the app to register it so it can be used. NXP's online-only compiler for its mBed dev kit uses a similar approach. On Jul 17, 3:03 pm, cellurl gpscru...@gmail.com wrote: I want to sell a companion piece of hardware with my app. Can anyone point me to where this is OK, not-OK in the terms. I need facts only please. Thanks -cellurl -- 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] Android SDK Courses
dear zameer, no problem give me the titles of your course and price -- 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 sell hardware+app together on Android Market?
I don't see where it is prohibited here: http://www.android.com/us/developer-distribution-agreement.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
Re: [android-developers] Android findViewById() problem
@rich friedel I dont think the merge will work for me. Like this tutorialhttp://codehenge.net/blog/2011/05/customizing-android-listview-item-layout/Im trying to customize the list Items(1 item for each row) and display the list of all items from a database table with 5 variables(5 cols). This is all working using the code in my previous post. The problem is that the activity takes an intput from the user and it should assign it to a 6th variable on each item of the list but I can't seem to populate the items with both data from the database and from the edit text. I'm only getting the data from the database to each item and not from the Edittext. @TreKing I was thinking I might need to do something like that but didn't know where to start. As I'm a complete newbie I still haven't got my head around The SimpleCursorAdapter. Any suggestions on how would I go about extending it here to allow the text from the edittext fill the 6th TextView in each item? Cheers A On 17 July 2011 12:12, rich friedel rich.frie...@gmail.com wrote: I didn't go through your code (not able to atm) but are you trying to merge layouts and access the widget ids therein? If so, you should check out this: http://developer.android.com/resources/articles/layout-tricks-merge.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 -- Aaron Mulhall APPIDAE Developer Interaction Design Centre, CSIS Dept. Engineering Research Building University of Limerick +353 0862151535 www.appidae.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] Re: Can I sell hardware+app together on Android Market?
Even if it's not, purchases from the Android store don't ask for shipping address, postage options/prices, etc. It's just not set up for physical goods and even if you somehow got it working, I bet it would be a very painful process for both you and your customers. On Jul 17, 6:12 pm, cellurl gpscru...@gmail.com wrote: I don't see where it is prohibited here:http://www.android.com/us/developer-distribution-agreement.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
Re: [android-developers] Android findViewById() problem
On Sun, Jul 17, 2011 at 6:24 PM, Aaron Mulhall aaronmulhal...@gmail.comwrote: I was thinking I might need to do something like that but didn't know where to start. As I'm a complete newbie I still haven't got my head around The SimpleCursorAdapter. Any suggestions on how would I go about extending it here to allow the text from the edittext fill the 6th TextView in each item? I've not used SimpleCursorAdapter, but I would imagine it would go something like this: class MySimpleCursorAdapter extends SimpleCursorAdapter { public View getView(...) { View v = super.getView(...); // - Does all the SimpleCursorAdapter crap, I assume // Now do all you custom crap WhateverViewTypeImReturning w = (WhateverViewTypeImReturning) v; w.setTextOnSixthItem(getTextFromEditText()); return w; } } Should go without saying that is untested and is probably wrong in many ways, but should give you an idea of what to look at. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Yet another paid app question: Licensing code
On Sun, Jul 17, 2011 at 02:01:47PM -0500, Jim Graham wrote: I have what I hope will be the final question on this topic for a while Looking at the instructions in the dev guide on Application Licensing, I'm still not clear on one thing. Specifically, after installing the library code from the Market Licensing Library, if I'm understanding correctly, I STILL need to copy (and configure for my public key, etc.) the code from the sample directory into my main activity, correct? Or, is there equivalent code in the library directory itself (which I added as a library in Eclipse) that I need to configure? Ok, let me clarify the question, as it obviously didn't make sense the first time around. In the section called Working with library projects / Copying the LVL sources to your application the last line of that section reads, If you add the LVL sources directly to your application, you can skip the next section and start working with the library, as described in . Now, here's the question. I AM using the LVL as a library in Eclipse. So I know that I do not skip the next section, Including the LVL library project sources in your application which, despite the name, is about including the library, not the sources. Ok, I understand that. Now, I've added the library to my project's path in Eclipse, instead of adding the plain source. Where does the part I need to configure/add/whatever end, and the section mentioned earlier ( ) begin? And do I also need to do the steps in (if there are any), or what? Where does the one part end, and the other begin? Or do they overlap after a certain point (would that be the mysterious ?)? Or is it safer to just include the library, the library source, and the additional code that follows in the dev guide, (which is the sample app the license manager project includes), presumeably all in my project's main activity? Thanks, --jim -- 73 DE N5IAL (/4)| Peter da Silva: No, try rm -rf / spooky1...@gmail.com| Dave Aronson:As your life flashes before Running FreeBSD 7.0 | your eyes, in the unit of time known as an ICBM / Hurricane: | ohnosecond (alt.sysadmin.recovery) 30.44406N 86.59909W | Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.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] Drawing To And Then Re-Using A Bitmap In A Map Overlay
Below is a generalized version of the map overlay class of an application I'm developing. The feature I'm trying to highlight is that the class does all of its drawing to a bitmap and then re-renders the bitmap when requested to draw the overlay onto a map that hasn't moved. There are more details in the comments. I've realized significant performance improvements in my app since implemented my overlay this way. I'm posting this in the hopes that it may be useful to others and also for critiques. Any constructive criticism will be appreciated. Thanks, Dave import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; /** * BitmapMapOverlay extends Overlay and implements an optimized draw() method. * * Overview: * * My application maintains 1000's of geographic data points scattered * across the globe but only a few are rendered by a typical draw() call. * Determining which data points to render is expensive. * * draw() is often called several times for the same map projection. (It * appears to be called as map tiles are retrieved or refined.) Therefore, * the same items are often drawn repeatedly. The draw() method below draws * its items to a bitmap and then just re-draws the bitmap if the projection * hasn't changed. * */ public class BitmapMapOverlay extends Overlay { // Used to determine whether the overlay bitmap needs to be redrawn private GeoPoint prevZeroZeroGeoPoint = new GeoPoint(0, 0); private Bitmap mOverlayBitmap = null; private Canvas mOverlayCanvas = null; private Paint mOverlayBitmapPaint; public BitmapMapOverlay() { mOverlayBitmapPaint = new Paint(); mOverlayBitmapPaint.setStyle(Paint.Style.FILL); } @Override public void draw(Canvas mapCanvas, MapView mapView, boolean shadow) { super.draw(mapCanvas, mapView, shadow); if (shadow) { // All drawing done in the non-shadow layer return; } // Retrieve the GeoPoint (longitude and latitude) under pixel 0:0. GeoPoint zeroZeroGeoPoint = mapView.getProjection().fromPixels(0, 0); // Determine if overlay needs to be redrawn // // Note: Add whatever additional conditions you may need to determine if the data has changed // and needs to be redrawn. For example, my application's database accessor class maintains // a static last modified time. I record the modified time along with the GeoPoint at 0:0 // and redraw if either changes. // // Note 2: I originally thought I could compare the MapView's map center GeoPoint and latitude // span to the previously drawn values to determine whether to redraw but I got // weird results. It seems that draw() is called several times during a map zoom's // animation but that 'mapView' is set to the end of the zoom so its center and span // don't change. However, the projection does reflect the current state of the zoom so // checking if 0:0 moved works as desired. // if (zeroZeroGeoPoint.equals(prevZeroZeroGeoPoint)) { // Map hasn't moved. Copy the previous drawing to the map's canvas mapCanvas.drawBitmap(mOverlayBitmap, 0, 0, mOverlayBitmapPaint); return; } // Save the value(s) used on the next draw to determine if the map has scrolled or scaled prevZeroZeroGeoPoint = zeroZeroGeoPoint; if (mOverlayBitmap == null) { // First call. Allocate the bitmap and attach it to the canvas mOverlayBitmap = Bitmap.createBitmap(mapCanvas.getWidth(), mapCanvas.getHeight(), Bitmap.Config.ARGB_); mOverlayCanvas = new Canvas(mOverlayBitmap); } // Clear the overlay bitmap mOverlayBitmap.eraseColor(Color.TRANSPARENT); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // // Perform drawing operations here drawing everything on 'overlayCanvas'. // // Once drawing is complete, overlayBitmap will contain the image // to transfer to mapCanvas. // // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // Copy the overlay bitmap to the map's canvas
Re: [android-developers] Re: Problem with Progress Dialog
Hi Thanks for the all the suggestions. @kamiseq : I create a new Progress Dialog in my Activity and trying to set its progress from a thread spawned in this activity. In the thread I'm doing some work and then setting its progress. @Mike: Even I'm thinking of the same. Is there any way to confirm that setProgress doesn't work for Spin wheels. @rambabu: I've kept setCancellable(true) . Still same problem. Let me know your inputs. Regards, Ajith On Mon, Jul 18, 2011 at 2:18 AM, rambabu mareedu rambabu.mare...@gmail.comwrote: you have to setCancelable(true); end of the progess dialog .. On Sun, Jul 17, 2011 at 10:15 AM, Mike darksk...@gmail.com wrote: spin wheel you can't set the progress...it is on of off. -- 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
Re: [android-developers] clearing notification
On Sun, Jul 17, 2011 at 4:39 AM, kamiseq kami...@gmail.com wrote: and this is fine but in onDestroy I try to clear that notification, I thought that mNotificationManager.clear(SERVICE_STARTED_NOTIFICATION_ID) would be enough but it wasnt. Are you sure onDestroy is being called? And it should be cancel() not clear(). Typo? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Regarding Wifi in android
Hi All, I want to develop an android app that is based on Wifi. App should always be active to receive wifi signal. From my research I have come to know that I have to use WifiManager.WifiLock class. But this will consume battery a lot. Please let me know that is it only the way to get wifi signal or I should use some other way. Regards, Sohan Badaya -- 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] SharedPreferences update issue
Dear All : I had use getSharedPreferences, edit, putString commit to save the setting in activity A successfully. I start another Activity B from Activity A. I can display the setting on the Activity A. I also use the same command to update the setting on the Activity B ( getSharedPreferences, edit, putString commit command) the program doesn't occur error. But I check the setting on the SharedPreferences, the value is still the same as I set on Activity A. What's wrong ? Can anyone help me? Thanks. BR, 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
Re: [android-developers] SharedPreferences update issue
On Sun, Jul 17, 2011 at 10:45 PM, mark2011 androidmark2...@gmail.comwrote: What's wrong ? Can anyone help me? Without the actual relevant code to look at, I'm not sure how much help you're going to get. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Getting Transformer factory exception in android 2.1
Thanks for previous replies. I am using xml parser for android 2.1 version, whenever i compile the application i am getting transformer factory exception, i searched this issue in google, they mentioned that android 2.1 version never support transformer factory (javax.xml.transform.TransformerFactory) is there any third party jar file which could support transformer factory in android 2.1, pls guide me, -- Thanks and Regards Hariram -- 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: Again TableLayout and setting column's weight programmatically
Isn't there anyone can help me? :-( -- 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] Fwd: image view listener
thank you for reply while changing that code am getting application force close. On Sat, Jul 16, 2011 at 2:49 PM, gaurav gupta gaurav.gupta...@gmail.comwrote: Hi Arun, Add this line in ur program if (((ImageView) v).isClickable()) { img4.setVisibility(View.VISIBLE); *img3.setVisibility(View.GONE);* } else { img4.setVisibility(View.INVISIBLE); } } }); On Sat, Jul 16, 2011 at 12:25 PM, arun kumar arun.kata...@gmail.comwrote: -- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Fri, Jul 15, 2011 at 2:52 AM Subject: image view listener To: android-developers@googlegroups.com Hi am having two image one is placed rightside and other is placed leftside to the layout when i click on image 1 image 3 has to display inbetween image 1 and image 2similarly when i click on image 2... image 4 has to display inbetween image1 and image2 for me here when i click on image1 ...image 3 has appearing and when i click on image 2.. image 4 along with image 3 has appearing//here image 3 has to disappear i set images 3and 4 as invisible in xml file ...in java file i wrote onclick listener for image1 and image 2 . ImageView android:layout_height=wrap_content android:scaleType=center android:id=@+id/iv8 android:visibility=invisible android:layout_width=20dip android:src=@drawable/logo8/ImageView ImageView android:layout_height=wrap_content android:scaleType=center android:visibility=invisible android:onClick=@drawable/logo android:id=@+id/iv5 android:layout_width=30dip android:src=@drawable/logo5/ImageView final ImageView img1=( ImageView)findViewById(R.id.iv1); img1.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub ImageView img3 = (ImageView)findViewById(R.id.iv3); if (((ImageView) v).isClickable()) { img3.setVisibility(View.VISIBLE); } else { img3.setVisibility(View.INVISIBLE); } }); final ImageView img2=( ImageView)findViewById(R.id.iv2); img2.setOnClickListener(new OnClickListener() { public void onClick(View v) { ImageView img8=(ImageView)findViewById(R.id.iv4); if (((ImageView) v).isClickable()) { img4.setVisibility(View.VISIBLE); } else { img4.setVisibility(View.INVISIBLE); } } }); -- 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] Start Intent
HI all, from an activity class A I start another activity process (class B belongin to the same package) using the following: Intent intent = new Intent(); intent.setClass(myContext, org.myClass.ServiceImpl.class); intent.setFlags(intent.FLAG_ACTIVITY_NEW_TASK); myContext.startActivity(intent); What is the context of class B? What is the setClass method setting? If I want to start yet another activity from inside another class (class C) does the context get passed across these classes? Shouldn't the 'this' grab the app's context? 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
Re: [android-developers] Fwd: image view listener
Hi Arun, it should to work. i dont know the full flow of your code. if u will send ur code, then i can help you.its not a big issue,its simplest program. On Mon, Jul 18, 2011 at 11:06 AM, arun kumar arun.kata...@gmail.com wrote: thank you for reply while changing that code am getting application force close. On Sat, Jul 16, 2011 at 2:49 PM, gaurav gupta gaurav.gupta...@gmail.comwrote: Hi Arun, Add this line in ur program if (((ImageView) v).isClickable()) { img4.setVisibility(View.VISIBLE); *img3.setVisibility(View.GONE);* } else { img4.setVisibility(View.INVISIBLE); } } }); On Sat, Jul 16, 2011 at 12:25 PM, arun kumar arun.kata...@gmail.comwrote: -- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Fri, Jul 15, 2011 at 2:52 AM Subject: image view listener To: android-developers@googlegroups.com Hi am having two image one is placed rightside and other is placed leftside to the layout when i click on image 1 image 3 has to display inbetween image 1 and image 2similarly when i click on image 2... image 4 has to display inbetween image1 and image2 for me here when i click on image1 ...image 3 has appearing and when i click on image 2.. image 4 along with image 3 has appearing//here image 3 has to disappear i set images 3and 4 as invisible in xml file ...in java file i wrote onclick listener for image1 and image 2 . ImageView android:layout_height=wrap_content android:scaleType=center android:id=@+id/iv8 android:visibility=invisible android:layout_width=20dip android:src=@drawable/logo8/ImageView ImageView android:layout_height=wrap_content android:scaleType=center android:visibility=invisible android:onClick=@drawable/logo android:id=@+id/iv5 android:layout_width=30dip android:src=@drawable/logo5/ImageView final ImageView img1=( ImageView)findViewById(R.id.iv1); img1.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub ImageView img3 = (ImageView)findViewById(R.id.iv3); if (((ImageView) v).isClickable()) { img3.setVisibility(View.VISIBLE); } else { img3.setVisibility(View.INVISIBLE); } }); final ImageView img2=( ImageView)findViewById(R.id.iv2); img2.setOnClickListener(new OnClickListener() { public void onClick(View v) { ImageView img8=(ImageView)findViewById(R.id.iv4); if (((ImageView) v).isClickable()) { img4.setVisibility(View.VISIBLE); } else { img4.setVisibility(View.INVISIBLE); } } }); -- 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 -- 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