[android-developers] Re. Tablet filtering
My apps has been successfully downloaded by mobile/tablet users without problems. But in 1.9 release, we have changed only the app version number and version code in the Manifest file. After making that update, tablet users are no longer able to update the app from Google Play. Its showing device isn't compatible. But mobile users are able to update/install without any issue. --Moktarul Anam -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: HTML5 Geolocation doesn't work with Android default browser
hi, can u check whether ur GPS is on or not ? Moktarul On Tuesday, 1 May 2012 14:56:18 UTC+5:30, Aymeric Raguet wrote: Hi, I am having some difficulties with the Geolocation API in Javascript. It works very well in the following cases: - On a PC with Chrome, Opera and Safari (not tested with IE) - On Windows Mobile phone with IE - On Android mobile with Opera (not tested on an iPhone) But it is not working with Firefox on PC and especially with the default browser on Android. I have a Samsung Galaxy S LC (equivalent to Galaxy S1) Here is my code (standard API Geoloc): body We need your location. script type=text/javascript // attempting to retrieve the GPS location document.write(Trying to retrieve your location); if(navigator.geolocation){ document.write(Geolocation is supported); navigator.geolocation.getCurrentPosition(successCallback, errorCallback, { enableHighAccuracy : true, timeout : 5000, maximumAge : 0 } ); function successCallback(position){ document.write(You have been located. Latitude : + position.coords.latitude +, longitude : + position.coords.longitude); }; function errorCallback(error){ document.write(We coulnd't get your location); switch(error.code){ case error.PERMISSION_DENIED: document.write(Permission Denied); break; case error.POSITION_UNAVAILABLE: document.write(Position unavailable); break; case error.TIMEOUT: document.write(Timeout); break; case error.UNKNOW_ERROR: document.write(Unknown error); break; } } } else{ document.write(La géolocalisation n'est pas supportée par le navigateur); } /script /body What's going on with the Android default browser: 1. The following messages appear: Trying to retrieve your location Geolocation is supported 2. After the time specified by the timeout (10s here) the page becomes all white. The functions sucessCallback or errorCallback are not called. I then tried trough a Webview but it does the same. Thank you very much 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] Re: OnTouchEvent disable
Dear Memo, try to use view.setFocusable(false) and check Enjoy Moktarul Anam On Friday, 27 April 2012 09:16:39 UTC+5:30, Memo wrote: Hello every one, In my program, I handle a touch event on the screen using OnTouchEvent, if I handle the touch , I will do some tasks and during that, I want to disable touch event handler, i.e the OnTouchEvent does not respond to the touch. Could you please help me. Thanks all in advance. -- Mai A. Al-Ammar Teacher Assistant Imam Mohammad bin Saud Islamic University College of Computer Science -- 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: OnTouchEvent disable
Dear Memo, try to use view.setFocusable(false) and check Enjoy Moktarul Anam On Friday, 27 April 2012 09:16:39 UTC+5:30, Memo wrote: Hello every one, In my program, I handle a touch event on the screen using OnTouchEvent, if I handle the touch , I will do some tasks and during that, I want to disable touch event handler, i.e the OnTouchEvent does not respond to the touch. Could you please help me. Thanks all in advance. -- Mai A. Al-Ammar Teacher Assistant Imam Mohammad bin Saud Islamic University College of Computer Science -- 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: Refresh current list after receiving notification
Dear rachana govilkar , try to use android broadcast receiver/ service. Moktarul On Thursday, 26 April 2012 17:56:32 UTC+5:30, rachana govilkar wrote: Hello, I have an application in which i display list of messages between two users. Whenever i receive notification for new message,i have written a code to click on that notification and show details of it. But i don't know how to write a code if i am already on Message List screen and notification arrived then refresh that list without clicking on the notification. Please tell me if there is any example of it. Thanks. On Thursday, 26 April 2012 17:56:32 UTC+5:30, rachana govilkar wrote: Hello, I have an application in which i display list of messages between two users. Whenever i receive notification for new message,i have written a code to click on that notification and show details of it. But i don't know how to write a code if i am already on Message List screen and notification arrived then refresh that list without clicking on the notification. Please tell me if there is any example of it. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to copy files from Android to PC?
install dropbox moktarul On Thursday, 15 March 2012 16:13:27 UTC+5:30, Italo Mendonça Rocha wrote: Hello, Does anyoane know how to copy files from Android to PC programmatically? Thanks 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: Please Help me! I have SQLiteDatabaseCorruption Error
Hi Soylu, First u check whether myContext.getAssets().open(ASSETS_DB_FOLDER+/+dbFiles[i]); files exists or not then then copy method do it in asyntask Moktarul On Tuesday, 13 March 2012 03:30:16 UTC+5:30, Halil Enver Soylu wrote: I have a 5MB database. I split it into 1MB chuck files. application merges these files and creates its database. However it works in some Android phones, and does not works in others. I tried almost dozen of code example in blogs. everytime I got same result. App's platform vers. is 1.5 so it is not about platform vers. According to logs of phones that application crushs, app creates copies db file from Assets to database. then when it attempts to get a query for the first time, it crushs and gives that error: 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg = database corruption at line 46886 of [42537b6056] 03-11 01:11:34.111 I/Database( 4516): sqlite returned: error code = 11, msg = database disk image is malformed 03-11 01:11:34.111 D/AndroidRuntime( 4516): Shutting down VM 03-11 01:11:34.111 W/dalvikvm( 4516): threadid=1: thread exiting with uncaught exception (group=0x40018560) 03-11 01:11:34.111 E/AndroidRuntime( 4516): FATAL EXCEPTION: main 03-11 01:11:34.111 E/AndroidRuntime( 4516): android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed: , while compiling: SELECT Names FROM MYTABLE WHERE SayfaNo = 1 and here is my codes that copies asset files into database String[] dbFiles = myContext.getAssets().list(ASSETS_DB_FOLDER); OutputStream myOutput = new FileOutputStream(DB_PATH+DB_NAME); for(int i =0; i dbFiles.length; i++) { Log.i(FFLOG,COPYDB:+dbFiles[i]); InputStream myInput = myContext.getAssets().open(ASSETS_DB_FOLDER+/+dbFiles[i]); byte[] buffer = new byte[1024]; int length; while ((length = myInput.read(buffer)) 0) { myOutput.write(buffer, 0, length); } myInput.close(); } myOutput.flush(); myOutput.close(); please help me if there were a problem about database file or query SQL code, it would not work in some phones. So, it is not about db file or query. I am looking for a solution for 2 weeks please 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
[android-developers] Re: how to post jsonarray to server ?
hi, u change json array to json stringify Enjoy Moktarul Anam On Tuesday, 13 March 2012 11:31:34 UTC+5:30, Mulsaniya Bhadresh wrote: hello friends, i have problem with my service and it will return null when i sent httppost request to serveri don't know what is the problem. I am here explain what is happen inside my code... String query = + ServiceUtils.KEY_methodnameForPlaceOrder + = + ServiceUtils.KEY_PlaceOrderMethodName + + ServiceUtils.KEY_InstanceId + = + request.instanceID + +ServiceUtils.KEY_CustomerId + = +request.CustomerID + + ServiceUtils.KEY_TableIdForPlaceOrder + = +request.tableID + +ServiceUtils.KEY_QuantityandItemId + = +xyz ; and it will generate query like this::MethodName=InsertOrderForTableInstanceId=1CustomerId=1TableID=5quantityAndItemID=[{id:5,Quantity:4,comment:}] here this is my query string and it will be useful for creation of my url which will be useful for sending request to server. and here xyz variable is nothing but my jsonarray which i want to send to server .and it is somthing like this::[{id:5,Quantity:4,comment:}] now i want to generate complete url so i am using URIUtils.CreateUri and code is somthing like this.. URI uri = URIUtils.createURI(ServiceUtils.SCHEME, ServiceUtils.HOST, ServiceUtils.PORT, ServiceUtils.GetAllMenuCategoriesService_PATH_ABSTRACT, query, ServiceUtils.FRAGMENT); and here query string is which is mentioned above when this second statement execute it will return me null ..i don't know what is the problem... My final url is somthing like this.:;; http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTableInstanceId=1CustomerId=1TableID=5quantityAndItemID=[{ id:5,Quantity:4,comment:},{id:4,Quantity:1,comment:},{id:27,Quantity:3,comment:}] when i paste this url in browser then it will give me complete response if anyone knows what is the problem here please reply me ASAP. -- 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: Hi
Hi, r u using gmail.com or hav created ur own site and calling gmail api ? Moktarul On Monday, 12 March 2012 15:09:40 UTC+5:30, chowdary nani wrote: Hi all, I am working on loading URL in web view in android. i am able to load the gmail URL in web view when i entered email and password and click login button i need to read the response can any one help me in handling the button clicks in HTML Please help me in solving this . Thanks Naveen -- 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: UI design
Hi this will be simple listview and use custom adapter Moktarul anam On Wednesday, 7 March 2012 11:37:06 UTC+5:30, megha agrawal wrote: Hello All, I want to create a UI for my app as shown in image attached with this mail. I am not getting what type of widget they have used?? Can somebody explain, how to go for this type of design? Thanks 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: SD card database
File dbfile = new File(/sdcard/android/com.myapp/databases/mydatabase.db ); SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbfile, null); db.open() .. Moktarul On Wednesday, 7 March 2012 00:09:30 UTC+5:30, bob wrote: Is it possible to use SQLiteOpenHelper to create a database on the SD card? -- 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: layout configuration qualifiers
Hi harr..., can u tell me what is ur android version? because layout, layout-large.. etc will support from 2.3. below 2.3 version ( 2.2, 2.1..) does not support this Moktarul On Friday, 2 March 2012 02:23:36 UTC+5:30, harr...@roadrunner.com wrote: I have an app that uses configuration qualifiers for different size screens like so: layout layout-large layout-normal layout-xlarge But when I run the app on the emulator using different skins, they all seem to use the normal layout file. Even skins that should use the layout-large file use the layout-normal file. 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
[android-developers] Re: How To: Run Multiple Apks in Single Process
Hi animesh kumar bhadra, * * *in android each application runs in separate process. for data sharing u look in to service and contentProvider * * * *Moktarul * * * * * On Friday, 2 March 2012 20:47:32 UTC+5:30, animesh kumar bhadra wrote: Hi, I want to run 2 Apks in a Single process, so that the sharing of data is possible between these two Apks. As i know in Android each Apks create there own process. Please point me to any literature if this already discussed. Regards, Animesh K. Bhadra. -- 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: sqlite database on phone creash
Hi Jagruti Sangani, *There is some problem in ur program. one problem may be ur not closing database after fetching data from database. * *better share ur database code * * * *Moktarul anam * * * On Monday, 5 March 2012 14:50:12 UTC+5:30, Jagruti Sangani wrote: hello, i have use the sqlite databse for storing and retrive the value during application run.It is work perfectly when i run my apllication on emulator but when i run my application on phone then when try to get data from database then it will crash the application.So anybody know hot to use the sqlit database on phone work. -- 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: WebView Java script function
Hi Amit. in html header script function onload(){ var url = window.loacation; alert(url); Android.currentUrl(url); } /script body onload=onload() Moktarul On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is there any way to retrieve current loaded url inside called Java script function? Thanks, On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is there any way to retrieve current loaded url inside called Java script function? Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GalleryView issue
Hi Raju, here u r fetching images form server better do it in android async task. and after that change to bitmap. and add this to view. there is some 3rd party apps also available, there u hav to provide Utils.setImage(view, url, caching time) ; Enjoy Moktarul Anam On Monday, 5 March 2012 18:39:36 UTC+5:30, Raju Gaddam wrote: Hi Iam trying to get Images from server that images is adding to Gallery View in LandScape mode. Here Gallery View is displaying but images are not showing in Gallery View Please any help for me regards Raju -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using setContentView(viewList) in current Activity
Hi Shani, its not clear. In setContentview u can add only layout name. setContentView(R.layout.main); moktarul On Thursday, 1 March 2012 22:46:51 UTC+5:30, Shani wrote: Hi, i'm new to android and trying to dispatch a ViewList from a current Activity. (Android 2.2) . I'm getting this exception java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. e.g. Like the search contacts dispatch a new window with the multiple possibilities and then go back to the 1'st Activity Does anyone know how you do it ? Appreciate quick response. Shani -- 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: Push Notification
Hi Sugan , there s something C2DM. Funda is u hav to connect ur device to some server . and there will be one background service will be running. whenever new message will come to server ... service will through notification. in android there c2dm already there. u can use decona and metero also( http://deacon.daverea.com/) Enjoy Moktarul anam On Monday, 27 February 2012 17:33:38 UTC+5:30, Sugan wrote: Hai, I am new to Android what is Push Notification ?how to use in Android ?Can anyone help me with examples thank u -- 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: what kind of database should I use
do u want to server side database or client side db? for client side db u can use default sqlite db moktarul On Sunday, 26 February 2012 21:29:10 UTC+5:30, d1343 wrote: Hi, I am trying to make a app that would generate names, I want to manually add the names, currently I am using case switch statement, and using random number generator to pick the case statement to generate the names, but I want to make app better, what should I use, can I use such type of XML database in which I can add like 1000 or so names in database and able to pick random name everytime they click button. or can I read from text file with names and able to read random number of line from that text file Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ContentProvider
In android database is private to application. and if u want to share db in another application u hav 2 use ContentProvider funda. Moktarul On Tuesday, 28 February 2012 19:58:32 UTC+5:30, bob wrote: Anyone know of a good example of a ContentProvider serving out a movie? (maybe a 20 meg MPG) Most of what I've seen is a ContentProvider handing out small amounts of info. -- 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: an error
remove android.R from top Moktarul On Tuesday, 28 February 2012 14:27:23 UTC+5:30, needoo wrote: ? how to solve this error as it gives me this message id cannot be resolved or is not a field when i write this.. add = (Button) findViewById(R.id.bAdd); sub = (Button) findViewById(R.id.bSub); -- 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: View height changes when image set as background by 1.25 times of the image height
hi Murali , use *android*:*scaleType*=*fitXY* Moktarul On Wednesday, 29 February 2012 16:58:35 UTC+5:30, Reddy wrote: Hi, I have a .png file. I set this as the background of a TextView and the height and width of the TextView are wrap context. The ideal behavior here is that the height and width of the textview should be of height and width of the .png file. But what i am getting is that size of text view is getting increased 1.25 times of the image size. If any has solved this issue, please help me. Thanks in advance. Regards, Murali -- 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 widget: dinamically list from own combiled string (as template)
hi Stan, its not clear... can u send me ur sample template ir images ? or can u clearly explain Moktarul On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote: HI, I'm now develop my first widget (not application) and I want to generate dynamically strings, there each string should be as: image(left)+text(left)+text(right). I has been prepared this string in layout, and I want to use my template-string as template to generate all strings a few times, as list. But I can't understood how it do. Could you please explain how do correct my idea? (Or may be key words to search in google...) Thanks. On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote: HI, I'm now develop my first widget (not application) and I want to generate dynamically strings, there each string should be as: image(left)+text(left)+text(right). I has been prepared this string in layout, and I want to use my template-string as template to generate all strings a few times, as list. But I can't understood how it do. Could you please explain how do correct my idea? (Or may be key words to search in google...) Thanks. On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote: HI, I'm now develop my first widget (not application) and I want to generate dynamically strings, there each string should be as: image(left)+text(left)+text(right). I has been prepared this string in layout, and I want to use my template-string as template to generate all strings a few times, as list. But I can't understood how it do. Could you please explain how do correct my idea? (Or may be key words to search in google...) Thanks. On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote: HI, I'm now develop my first widget (not application) and I want to generate dynamically strings, there each string should be as: image(left)+text(left)+text(right). I has been prepared this string in layout, and I want to use my template-string as template to generate all strings a few times, as list. But I can't understood how it do. Could you please explain how do correct my idea? (Or may be key words to search in google...) Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re : DOMParser
Hi i.putExtra(name,name); this will me i.putExtra(name,name); Enjoy Moktarul anam On Thursday, 1 March 2012 10:08:17 UTC+5:30, vivek elangovan wrote: Hi members, Using DOMParser i m able to retrieve XML data from my database.Now i need to pass the name which i retrieved to other class using intenet,but i m not able to read it here is my code : void parseByDOM(String response) throws ParserConfigurationException, SAXException, IOException {//response is ur xml as string DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(new InputSource(new StringReader(response))); // normalize the document doc.getDocumentElement().normalize(); // get the root node NodeList nodeList = doc.getElementsByTagName(user); Node node=nodeList.item(0); // the node has three child nodes for (int i = 0; i node.getChildNodes().getLength(); i++) { Node temp=node.getChildNodes().item(i); if(temp.getNodeName().equalsIgnoreCase(name)){ String name = temp.getTextContent(); System.out.println(name :+name); } else if(temp.getNodeName().equalsIgnoreCase(mail)){ String mail=temp.getTextContent(); } else if(temp.getNodeName().equalsIgnoreCase(phno)){ String phno=temp.getTextContent(); } } Intent i = new Intent(getApplicationContext(), test.class); i.putExtra(name,name); startActivity(i); } and in my test.java i m using like this : name.setText(getIntent().getStringExtra(name)); -- 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 you give me the answer...about 'Unable to stop activity'...
Hi This issue is coming because of media player if ur see 02-29 21:19:31.765: E/AndroidRuntime(5374): Caused by: *java.lang.**IllegalStateException* 02-29 21:19:31.765: E/AndroidRuntime(5374): at *android.media.MediaPlayer*._stop(Native Method) 02-29 21:19:31.765: E/AndroidRuntime(5374): at *android.media.MediaPlayer.**stop*(MediaPlayer.java:964) this is basically memory leak issue. http://code.google.com/p/android/issues/detail?id=957 http://stackoverflow.com/questions/7089201/android-media-player-returns-illegalstateexception http://stackoverflow.com/questions/4445663/mediaplayer-prepare-is-throwing-an-illegalstateexception-when-playing-m4a-file this s common issue in android .. just go through these link and will solve ur problem Enjoy Moktarul Anam On Wednesday, 29 February 2012 18:08:17 UTC+5:30, Jae-young Yun wrote: Logcat 02-29 21:19:31.765: E/AndroidRuntime(5374): java.lang.RuntimeException: Unable to stop activity {com.android.sinsunby/com.android.sinsunby.SevenActivity}: java.lang.IllegalStateException 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java: 3607) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java: 3673) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.ActivityThread.access$2900(ActivityThread.java:125) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.os.Handler.dispatchMessage(Handler.java:99) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.os.Looper.loop(Looper.java:123) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.ActivityThread.main(ActivityThread.java:4627) 02-29 21:19:31.765: E/AndroidRuntime(5374): at java.lang.reflect.Method.invokeNative(Native Method) 02-29 21:19:31.765: E/AndroidRuntime(5374): at java.lang.reflect.Method.invoke(Method.java:521) 02-29 21:19:31.765: E/AndroidRuntime(5374): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) 02-29 21:19:31.765: E/AndroidRuntime(5374): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 02-29 21:19:31.765: E/AndroidRuntime(5374): at dalvik.system.NativeStart.main(Native Method) 02-29 21:19:31.765: E/AndroidRuntime(5374): Caused by: java.lang.IllegalStateException 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.media.MediaPlayer._stop(Native Method) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.media.MediaPlayer.stop(MediaPlayer.java:964) 02-29 21:19:31.765: E/AndroidRuntime(5374): at com.android.sinsunby.SevenActivity.onStop(SevenActivity.java:236) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.Instrumentation.callActivityOnStop(Instrumentation.java: 1171) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.Activity.performStop(Activity.java:3857) 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java: 3602) i don't know why this happen,,, -- 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: View height changes when image set as background by 1.25 times of the image height
Reddy, hmm... do this way.. in textview setbackground .. one xml file .. that file will be in drawable file and there u set background. Basically u add set background drawable xml Moktarul On Wednesday, 29 February 2012 17:21:40 UTC+5:30, Reddy wrote: Hi Moktarul, Still i am facing the same problem. Let me clarify my problem clearly. My .png height is 53px. When png set as BG of TextView, and the textview properties are wrap context, the height of the textview is becoming big. When i set the textview height to 53px then the height of the TextView is 53px. Please provide me solution if u have. Regards, Murali On Feb 29, 4:35 pm, moktarul anam mokta...@gmail.com wrote: hi Murali , use *android*:*scaleType*=*fitXY* Moktarul On Wednesday, 29 February 2012 16:58:35 UTC+5:30, Reddy wrote: Hi, I have a .png file. I set this as the background of a TextView and the height and width of the TextView are wrap context. The ideal behavior here is that the height and width of the textview should be of height and width of the .png file. But what i am getting is that size of text view is getting increased 1.25 times of the image size. If any has solved this issue, please help me. Thanks in advance. Regards, Murali -- 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: Run application in background
Hi, There are two way to do this 1. service funda 2. transparent activity selection will be based on ur requirement Moktarul On Feb 27, 10:11 am, Juned Khan jkhan6...@gmail.com wrote: hii all developers, how do i keep my application running on background until it manually closed or exited by the user. -- 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: nested listview
Hi, In in android there is something expandable list view. better use that and in subitem also use list view Enjoy Moktarul On Feb 26, 7:25 pm, hazem omies hazem.om...@gmail.com wrote: hi,,, how i can make nested listview as follow : main activity contain a listview binding from web servers XML parser ,,my issue is when click on item ,,the seconed listview open related to this item as nested ,,?? -- 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: Add to recent application list
oke,. in onclick method save intent in to database and i think u also know this.. Actually i want to see which launcher r u modifying ? is is adwlauncher ? give me reply then i will send u complete code Enjoy Moktarul On Feb 27, 9:06 am, elham elhamna...@gmail.com wrote: Yes i am working on launcher application On Feb 24, 2:49 pm, moktarul anam mokta...@gmail.com wrote: R u working on launcher application ( adwLauncher)? Moktarul On Feb 24, 11:24 am, elham elhamna...@gmail.com wrote: Dear All, I have a requirement to add a activity into therecentapplist. Is it anyway possible to add new RunningTaskInfo obj into the list . I know there are no api's to do it directly but could anyone suggest any other approach to hack the list . Kindly let me know .Thanks . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android pdf viewer
can u suggest me any good android pdf viewer jar library? actually i want to use this jas as a pdf viewer library in my application moktarul anam -- 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: switching views
Hi Vani , better u create separate activity for display attach file and make that activity android:theme=@android:style/Theme.Dialog Moktarul anam On Feb 27, 3:49 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, How to create switching views in android ,like in the attached snapshot from the iPad. -- Regards, Vani Reddy photo.PNG 454KViewDownload -- 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: Add to recent application list
see i will suggest ... create new table and insert there. Moktarul On Feb 28, 10:09 am, elham elhamna...@gmail.com wrote: No i am not modifying adwlauncher . We are updating the default android launcher. In which table should i insert the intent ? Actually my activity(call it LaunchActivity) is not the main activity of the application . The requirement is whenever LaunchActivity is started it should be appended to the recent list which is shown on long click of home button. Help will be appreciated ! thanks On Feb 27, 4:24 pm, moktarul anam mokta...@gmail.com wrote: oke,. in onclick method save intent in to database and i think u also know this.. Actually i want to see which launcher r u modifying ? is is adwlauncher ? give me reply then i will send u complete code Enjoy Moktarul On Feb 27, 9:06 am,elhamelhamna...@gmail.com wrote: Yes i am working on launcher application On Feb 24, 2:49 pm, moktarul anam mokta...@gmail.com wrote: R u working on launcher application ( adwLauncher)? Moktarul On Feb 24, 11:24 am,elhamelhamna...@gmail.com wrote: Dear All, I have a requirement to add a activity into therecentapplist. Is it anyway possible to add new RunningTaskInfo obj into thelist. I know there are no api's to do it directly but could anyone suggest any other approach to hack thelist. Kindly let me know .Thanks . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Reading and Writing xml file to Internal Memory
Hi Dancing, First u check, whether ur xml file s created or not. my guess is there s some problem in save xml because of that u r getting null pointer exception. and for writing u hav to give permission in ur Manifest.xml file Moktarul anam On Feb 27, 9:27 pm, Dancing Fingers batym...@gmail.com wrote: Hi guys, My app needs to learn user words and store them in XML files. So I wrote a test method: public void writeWordXmlFile() { myWords = new ArrayListWord(); myWords.add(new Word(Diversability)); myWords.add(new Word(Theate)); try { FileOutputStream fos = new FileOutputStream(mywords.xml); XmlSerializer serializer = Xml.newSerializer(); serializer.setOutput(fos, UTF-8); serializer.startDocument(null, Boolean.valueOf(true)); //set indentation option serializer.setFeature(http://xmlpull.org/v1/ doc/features.html#indent-output, true); serializer.startTag(, Words); for( int i=0; imyWords.size(); i++) { serializer.startTag(, WordPair); serializer.startTag(, word); serializer.text(myWords.get(i).getWord()); serializer.endTag(, word); serializer.startTag(, count); serializer.text(Integer.toString(myWords.get(i).getCount())); serializer.endTag(, count); serializer.endTag(, WordPair); } serializer.endTag(, Words); fos.close(); System.out.println(mywords.xml file written.); } catch (IOException e) { System.out.println(e); } } This appears to work fine. So I wrote a SAX Xml parser and I kept getting a File Not Found exception. So a wrote a simple file reader method : public void parseMyWordXmlFile() { myWords = new ArrayListWord(); Word wHandler = new Word(); String sIn; //create an InputSource from the XML document source try { System.out.println(Reading mywords.xml); BufferedReader bin = new BufferedReader( new FileReader( mywords.xml)); while ((sIn = bin.readLine()) != null){ System.out.println(sIn); } } catch (Exception e) { System.out.println(NOT Reading mywords.xml + e); } } Again, I get a FileNotFound Exception. Doesn't Android read and write to the same path in internal memory? Thanks. Chris -- 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: onStop() coming with delay
Hi Pavel in activity life cycle when u will move one activity to another-- when foreground activity will lose focus the onPause and then new activity will be foreground and that activity will be all onStop() method and then android system will check whether that activity is last activity or not or needs ti kill that activity .. then on destroy function will get call. In your case two thing may happen 1. 2nd activity is taking time to come in foreground 2. r u dong any operation in onstop method? Moktarul anam On Feb 23, 7:03 am, Pavel Dudka dudka.pa...@gmail.com wrote: I have a problem in one of my apps. I have 2 activities (2 different apps) - 1st is in foreground, and 2nd is in background. When I press back button - it finishes 1st activity and puts 2nd to the foreground. For the first activity onPause()-onStop()-onDestroy is called. It looks correct, but onStop-onDestroy is coming with delay (~2sec) which is not what I expect. I can live with onDestroy() delay, but I did not expect that call to onStop() can be delayed as well. As I understand onStop() should be called right after activity has disappeared from the screen, but I'm curious why there is such delay. What could possibly cause that kind of things? -- 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: Webview inner link problem
Hi Kalandar, In webview there s something JavaScriptInterface funda. From webview browser u can call activity method from here See this link: http://developer.android.com/guide/webapps/webview.html Enjoy Moktarul anam On Feb 24, 11:37 am, kalandar kasimk...@gmail.com wrote: hi friends, android webview can trigger the event shouldOverrideUrlLoading when we click the external url (likehttp://www.google.com). but the problem was with inner link. this event does not trigger when we click the inner link. but i want to fire some process when click the inner link. if anybody have the solution please let me know... thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Add to recent application list
R u working on launcher application ( adwLauncher)? Moktarul On Feb 24, 11:24 am, elham elhamna...@gmail.com wrote: Dear All, I have a requirement to add a activity into the recent app list. Is it anyway possible to add new RunningTaskInfo obj into the list . I know there are no api's to do it directly but could anyone suggest any other approach to hack the list . Kindly let me know .Thanks . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom Listview in android?
Hi Duygu, better u use custom adapter for listview. In getview() method create ur view Moktarul anam On Feb 23, 9:18 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: I have some problem about customlistview.How can i do this screen? First seem like all of them button but all line must be listview.Some item is nested.I am a bit confused. Can anybody help me? This is screen http://i.stack.imgur.com/bVDxe.jpg -- 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 get the DB File from real android device
see first u hav to connect ur device to ur pc( through LAN) if ur device ip is ... 192.168.1.100 then use following command 1. cd sdk package-tools folder 2. adb connect 192.168.1.100 3. adb device then let me know mokta...@gmail.com Moktarul Anam On Feb 24, 3:52 pm, suram sridhar suram.srid...@gmail.com wrote: Hi.. Only in emulator we can able to access the db files, but it is not possible on Real devices? How to access the db file on real device? On Fri, Feb 24, 2012 at 12:15 PM, moktarul anam mokta...@gmail.com wrote: execute these command 1. cd sdk package-tools folder 2. adb shell (adb shell to chech device s connected or not) 3. cd /data/data/packagename 4. cd database 5. ls u will see ur db file 6. sqlite3 dbfies 7. .table Enjoy Moktarul Anam On Feb 23, 6:17 pm, suram sridhar suram.srid...@gmail.com wrote: Hi friends, Can u please help me to get the db file from the real device(Android). I am using debug build of the app, but still i am not able to get the db file. I am using adb shell command to pull the file. eg# adb pull dbname c:\ Please give the reply which command should i use in ADB SHELL. -- *Best Thanks Regards ** * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Best Thanks Regards ** * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get the DB File from real android device
execute these command 1. cd sdk package-tools folder 2. adb shell (adb shell to chech device s connected or not) 3. cd /data/data/packagename 4. cd database 5. ls u will see ur db file 6. sqlite3 dbfies 7. .table Enjoy Moktarul Anam On Feb 23, 6:17 pm, suram sridhar suram.srid...@gmail.com wrote: Hi friends, Can u please help me to get the db file from the real device(Android). I am using debug build of the app, but still i am not able to get the db file. I am using adb shell command to pull the file. eg# adb pull dbname c:\ Please give the reply which command should i use in ADB SHELL. -- *Best Thanks Regards ** * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Image Button Onclik view
Hi kholif, u can use ImageView.setOnclickListener(new setOnclick(){ Onclick(view){ /// user hide/display code here } } Moktarul On Feb 21, 5:33 pm, kholif adig adig...@gmail.com wrote: hi I have some problems in image button I have some image button that when clicked on the button will display the same image. the problem is if the image double click the botton on the button will display the same image on the first and second positions. please give me a solution thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: displaying face book albums and photos
Hi, Please go through this link http://stackoverflow.com/questions/7454284/get-my-facebook-album-photos-in-android-java Hope this will solve ur problem Moktarul On Feb 22, 2:31 pm, chowdary nani naveenneeli...@gmail.com wrote: Ali Chousein, Thanks for replay. Thanks for considering Thanks for help. I have already worked on those links I need some code as i am new to android I have tried a lot of ways but i am unable to get response please help me by posting some code. Thanks Naveen On Wed, Feb 22, 2012 at 2:54 PM, Ali Chousein ali.chous...@gmail.comwrote: Your question is related to usage of Facebook Graph API and not to usage of Android SDK. But anyway, take a look at the links below, they should guide you on how to access your albums and photos in Facebook programmatically. https://developers.facebook.com/docs/reference/api/album/ https://developers.facebook.com/docs/reference/api/photo/ - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com|http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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: SMS Table
Hi Deepa, What do want to do ? already sms db table is there in android. Moktarul On Feb 22, 12:56 pm, Deepa M deepam8...@gmail.com wrote: Dear All can any one help me to create a sms database table as sms table in android to store all iin that created database incoming messages ... -- Thanks Regards Deepa M -- 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: Re : Save output data as XML
Hi Viek, saving username and password in sdcard is not a good idea. yes u can same ur xml file to sdcard. use file write use http://developer.android.com/guide/topics/data/data-storage.html ( i think u have to use java serialize ) Moktarul Anam On Feb 22, 2:57 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Seshu, i checked the link u referred and its working fine, but in that sample no xml part is defined what i need is (for eg : in the same example after login i want to save the username and password as XML files in my sdcard ) - Vivek On Feb 22, 12:30 pm, Seshu s.seshu...@gmail.com wrote: Hi Vivek, Used Shared Preferences so that the output data will be saved in xml format only. https://github.com/junal/Android-SharedPreferences/tree/master/Shared... http://www.tutorials-android.com/learn/How_to_store_and_retrieve_pref... Thanks and Regards, S.Seshu On Feb 22, 9:55 am, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I want to develope an application where after entering the required input fields i want to save the output data as XML in my local (eg : memory card) . Is there any sample available ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: displaying face book albums and photos
Hi Naveen, Just want to know, have u installed facebook sdk and using that api? please go through this link and hope this will solve ur problem http://developers.facebook.com/docs/mobile/android/build/ Moktarul On Feb 22, 3:09 pm, chowdary nani naveenneeli...@gmail.com wrote: Hi Moktarul, Thanks for response, Thanks for considering. I nee help on how to get responses in android. how to open those urls in amy app to get responses. when i try to open those urls iam getting error as token expires. please help me with some code please help me Thanks Naveen. On Wed, Feb 22, 2012 at 3:17 PM, moktarul anam mokta...@gmail.com wrote: Hi, Please go through this link http://stackoverflow.com/questions/7454284/get-my-facebook-album-phot... Hope this will solve ur problem Moktarul On Feb 22, 2:31 pm, chowdary nani naveenneeli...@gmail.com wrote: Ali Chousein, Thanks for replay. Thanks for considering Thanks for help. I have already worked on those links I need some code as i am new to android I have tried a lot of ways but i am unable to get response please help me by posting some code. Thanks Naveen On Wed, Feb 22, 2012 at 2:54 PM, Ali Chousein ali.chous...@gmail.com wrote: Your question is related to usage of Facebook Graph API and not to usage of Android SDK. But anyway, take a look at the links below, they should guide you on how to access your albums and photos in Facebook programmatically. https://developers.facebook.com/docs/reference/api/album/ https://developers.facebook.com/docs/reference/api/photo/ - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com|http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Displaying Facebook Albums
please go through this link http://developers.facebook.com/docs/mobile/android/build/ Moktarul anam On Feb 22, 1:13 pm, chowdary nani naveenneeli...@gmail.com wrote: Hi All, I am working on facebook integration . Here i need some code to read the status messages of face book Using graph api in android sdk Please help me Thanks Naveen. -- 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: Fwd: listview getting stuck while scrolling,
Hi Vani, I Have gone through your code and problem is in image fetching portion. Fetching images from server and display part you do it in android asynctask task. Fetching part you do in doInBackground method and in onPostExecute add that image into view. Always you will remember .. for all server interaction you have to use asynctask task or thread or handler otherwise ANR( android not responding) error will come (http://developer.android.com/reference/android/os/AsyncTask.html) Enjoy Moktarul Anam On Feb 22, 3:36 pm, vani reddy vani.reddy.bl...@gmail.com wrote: - Hi friends, In the LazyAdapter class i am sending an object which consists of an arraylist , while scrolling the listview it gets stuck and shows the infamous ANR dialog. This is the listview in xml ListView android:id=@+id/android:list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_margin=5dip android:background=@android:color/transparent android:cacheColorHint=# android:divider=@android:color/darker_gray android:scrollbars=none android:fastScrollEnabled=true Below is thegetView method @Override public View getView(final int position, View convertView, ViewGroup parent) { String name = ; ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.commentitem, null); holder = new ViewHolder(); holder.reviewText = (TextView) convertView .findViewById(R.id.reviewText); holder.fbImage = (ImageView) convertView.findViewById(R.id.fbImage); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } String profilePictureURL = http://graph.facebook.com/; + cList.getData().get(position).getFbid() + /picture; if (cList.getData().get(position).getName() == null) { name = ; } else { name = cList.getData().get(position).getName() + says ; } holder.reviewText.setText( + name + cList.getData().get(position).getComment()); try { Bitmap bitmap = BitmapFactory.decodeStream((InputStream) new URL( profilePictureURL).getContent()); holder.fbImage.setImageBitmap(Utility.getRoundedCornerBitmap( bitmap, 10)); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return convertView; } How to resolve this?? -- Regards, Vani Reddy -- 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: SQLite sharing between apps
Hi Ashiq, Sqllite database is private to that application. if you want to use that database in other application you hav to contentProvider. ContentProvider is one type of IPC (inter process communication) just go through android contentProvider tutorial and example Moktarul anam On Feb 22, 3:57 pm, ashiq sayyad ashiqsay...@gmail.com wrote: Hi all, Hope doing well..I have following doubt.. I have created one sqlite database in one application.I want to access that sqlite database in some other application.. Is it possible to access? Thanks Regards, Ashiq -- 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 can i post jsonarray at the end of requeseted url?
Hi Mulsaniya, if your response data is not proper formatted u can not parse that string Moktarul On Feb 22, 11:50 am, Mulsaniya Bhadresh bhadresh.ha...@gmail.com wrote: http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTa...[{ commej:,id:1,Quantity:5}] In the above url i got the error like that:: java.net.URISyntaxException: Illegal character in query at index 129:http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTa...[{ commej:,id:1,Quantity:5}] means error at starting square bracket. How can i solve this problem ? can anyone 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
[android-developers] Re: SQLite sharing between apps
hmmm very interesting. can you please send me some example link or tutorial Moktarul On Feb 22, 4:22 pm, Chrystian Vieyra chrys.vie...@gmail.com wrote: android:sharedUserIdThe name of a Linux user ID that will be shared with other applications. By default, Android assigns each application its own unique user ID. However, if this attribute is set to the same value for two or more applications, they will all share the same ID — provided that they are also signed by the same certificate. Application with the same user ID can access each other's data and, if desired, run in the same process. -- 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: Mismatch in runtime layout selection based upon size/density
Hi William, I will suggest you to use layout weight/ weight sum ( basically instead if giving dip value, give in percentage) Moktarul Anam On Feb 22, 7:08 am, William Ferguson william.ferguson...@gmail.com wrote: I am trying to work out why a device (in this case an AVD) that is 800*400 and mdpi is selecting a layout that is large-hdpi. There are only 2 layout options for the app, the default and large- hdpi. I can conceivably see how the device could be considered large - large screens are at least 640dp x 480dp (fromhttp://developer.android.com/guide/practices/screens_support.html#range) even though it's not quite there is one dimension. But it's only 160dpi, so certainly not hdpi (ie approx 240dpi). I had always thought that in order to match a resource qualifier (including layout) you need to at least match all items. So I expected this to fail to match based on density. Is my understanding incorrect? Is it actually trying to do a nearest match or best fit and is determining that large-hdpi is the closest fit for large-mdpi? It's almost like it has ignored density altogether when choosing the layout. Is there a way to programatically determine which resource selectors have been used to choose layout? William -- 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: Re : Save output data as XML
Hi Vivek, I think simple and good solution is android Shared Preferences Moktarul On Feb 22, 3:19 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Moktarul Anam , I m not going to save uname and pssword in my xml for sample only i gave that.My scenario is if i m entering some data i have to save it as xml in my sdcard and i also have to retrieve that data. - Vivek On Feb 22, 3:09 pm, moktarul anam mokta...@gmail.com wrote: Hi Viek, saving username and password in sdcard is not a good idea. yes u can same ur xml file to sdcard. use file write usehttp://developer.android.com/guide/topics/data/data-storage.html ( i think u have to use java serialize ) Moktarul Anam On Feb 22, 2:57 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Seshu, i checked the link u referred and its working fine, but in that sample no xml part is defined what i need is (for eg : in the same example after login i want to save the username and password as XML files in my sdcard ) - Vivek On Feb 22, 12:30 pm, Seshu s.seshu...@gmail.com wrote: Hi Vivek, Used Shared Preferences so that the output data will be saved in xml format only. https://github.com/junal/Android-SharedPreferences/tree/master/Shared... http://www.tutorials-android.com/learn/How_to_store_and_retrieve_pref... Thanks and Regards, S.Seshu On Feb 22, 9:55 am, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I want to develope an application where after entering the required input fields i want to save the output data as XML in my local (eg : memory card) . Is there any sample available ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Set state list drawable as a background is getting resized
Hi Acidcromaticle , Can u send me ur layout code? Moktarul On Feb 19, 4:05 am, acidcromaticle prata.cata...@gmail.com wrote: Hello, I am having a TextView and in xml I am setting its background to a state list drawable. After I inflate the view everything is working well but if I want to change it's background drawable to other state list drawable after the invalidate, the TextView shrinks and the background drawable is getting smaller too. I tried to set the background color instead just for testing and it works.. but I really need to change the drawable not just the color of the background. The two state list drawables are 4(2 for each one) nine patch images and are of the same size, just the color is changed. Does anybody know what could be the problem? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hello Everyone, i just have a quick question:
Hi Soyer, I think problem is in ur oncreate or onstart method. can u please do that ... remove all code from oncreate and check Can u please send little more log Moktarul On Feb 22, 11:42 pm, Mohamed Gougam mblack...@gmail.com wrote: Hello moktarul, the thing about manifest.xml, is tht i have only one activity so nothing to get confused with. the manifest file is bellow: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=android.mgo.helloandroid android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 / application android:icon=@drawable/ic_launcher android:label=@string/app_name activity android:label=@string/app_name android:name=.BTDdetecetwithV7Activity intent-filter action android:name=android.intent.action.MAIN/ category android:name=android.intent.category.LAUNCHER/ /intent-filter /activity /application uses-permission android:name=android.permission.BLUETOOTH/ uses-permission android:name=android.permission.BLUETOOTH_ADMIN/ /manifest On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam mblack...@gmail.com wrote: Hello moktarul, Thanks alot, i will do that, and let you know :) On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam mokta...@gmail.comwrote: sorry, its Activity Intent filter not internt filter Moktarul On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote: Hi Soyer, All your activity class has to be there in your Manifest.xml file if you call your activity class from other activity then that class has to be main( internt filter main) Please check these two point and i think this will solve ur problem. I am sure some problem in ur Manifest.xml file Moktarul On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote: Hi Moktarul, What is in the the manifest file, you mean i have to remove the . ? i don't think that's it, the . has to be there. Thanks guys for the help, Kris is it wrong if somebody try to learn something different, out of his field !! Thanks for the help though i really appreciate it. On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote: Hi BTDdetecetwithV7Activity in ur android Manifest file activity name=BTDdetecetwithV7Activity/\ Enjoy moktarul On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? have anyone faced the same? ERROR: 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{android.mgo.helloandroid/ android.mgo.helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hello Everyone, i just have a quick question:
can u please send me ur activity code and little more log message Moktarul anam On Feb 23, 10:18 am, moktarul anam mokta...@gmail.com wrote: Hi Soyer, I think problem is in ur oncreate or onstart method. can u please do that ... remove all code from oncreate and check Can u please send little more log Moktarul On Feb 22, 11:42 pm, Mohamed Gougam mblack...@gmail.com wrote: Hello moktarul, the thing about manifest.xml, is tht i have only one activity so nothing to get confused with. the manifest file is bellow: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=android.mgo.helloandroid android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 / application android:icon=@drawable/ic_launcher android:label=@string/app_name activity android:label=@string/app_name android:name=.BTDdetecetwithV7Activity intent-filter action android:name=android.intent.action.MAIN/ category android:name=android.intent.category.LAUNCHER/ /intent-filter /activity /application uses-permission android:name=android.permission.BLUETOOTH/ uses-permission android:name=android.permission.BLUETOOTH_ADMIN/ /manifest On Wed, Feb 22, 2012 at 1:04 AM, Mohamed Gougam mblack...@gmail.com wrote: Hello moktarul, Thanks alot, i will do that, and let you know :) On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam mokta...@gmail.comwrote: sorry, its Activity Intent filter not internt filter Moktarul On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote: Hi Soyer, All your activity class has to be there in your Manifest.xml file if you call your activity class from other activity then that class has to be main( internt filter main) Please check these two point and i think this will solve ur problem. I am sure some problem in ur Manifest.xml file Moktarul On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote: Hi Moktarul, What is in the the manifest file, you mean i have to remove the . ? i don't think that's it, the . has to be there. Thanks guys for the help, Kris is it wrong if somebody try to learn something different, out of his field !! Thanks for the help though i really appreciate it. On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote: Hi BTDdetecetwithV7Activity in ur android Manifest file activity name=BTDdetecetwithV7Activity/\ Enjoy moktarul On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? have anyone faced the same? ERROR: 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{android.mgo.helloandroid/ android.mgo.helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to swipe three images and on onclicking the image corresponding sound should come from image
Hi Tiwari, 1. Onclick button and playing audio.. use button tag . in button tag store audio file name. and onclick get button tag (audio name) and play that audio. 2. for 3 inage swap.. use android drag and drop . ( first swar 1 and 2 then 2 and 3 ) Moktarul On Feb 23, 10:53 am, Yogeshkumar Tiwari yogeshtiwari2...@gmail.com wrote: Hi Freinds, i have 400 png images and 400 mp3 audio file . i have to swipe three images at a time from left to right and right to left when users click on image corresponding sound should come. when we swipe next three images comes at a time till at the end of image. please help me to overcome with this problem. I am sending screen that i want to swipe. thanks in advance. -- With Regards: Yogesh 2.png 653KViewDownload -- 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: Hello Everyone, i just have a quick question:
sorry, its Activity Intent filter not internt filter Moktarul On Feb 21, 12:42 pm, moktarul anam mokta...@gmail.com wrote: Hi Soyer, All your activity class has to be there in your Manifest.xml file if you call your activity class from other activity then that class has to be main( internt filter main) Please check these two point and i think this will solve ur problem. I am sure some problem in ur Manifest.xml file Moktarul On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote: Hi Moktarul, What is in the the manifest file, you mean i have to remove the . ? i don't think that's it, the . has to be there. Thanks guys for the help, Kris is it wrong if somebody try to learn something different, out of his field !! Thanks for the help though i really appreciate it. On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote: Hi BTDdetecetwithV7Activity in ur android Manifest file activity name=BTDdetecetwithV7Activity/\ Enjoy moktarul On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? have anyone faced the same? ERROR: 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{android.mgo.helloandroid/ android.mgo.helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException -- 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: adb logclear?
better u use adb logcat -s use in ur code: Log.v(DEMO , some message..); then use adb logcat -s DEMO then u will get DEMO related message Moktarul On Feb 21, 9:33 am, bob b...@coolfone.comze.com wrote: What is the adb command to tell a device to clear its log? -- 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: listview populate from external url
Hi Abu, http://ofertaweb.ro/android/sleepandlovemusic/list_files.php api output is one string u can do this way , 1. get the content of that url in string format String output = Crickets_near_a_River:::Waterfall:::rainforest_sound:::Quick_Rain:::Atlantic_Ocean..; 2. string split of ::: and put into ArrayList 3. Display ArrayList in listview Enjoy Moktarul On Feb 21, 2:11 am, Abu Hamzah abuhamza...@gmail.com wrote: i have posted my question here (http://stackoverflow.com/questions/9355617/android-mediaplayer- streaming-music) but no avail, can anybody look at the question let me know what i am missing? i am trying a way to populate listview items from this urlhttp://ofertaweb.ro/android/sleepandlovemusic/list_files.php anybody please? -- 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 force Close when trying to run app
Can you send me your log messages Moktarul anam On Feb 22, 1:17 am, Pram goodp...@gmail.com wrote: Here is what my Android.xml file looks like. I am getting a force close when I am trying to run my app. I am trying to get input from the user in number form, but I do not know the right import or code to use to get the input. package com.global.genname; import android.app.Activity; import android.os.Bundle; import java.util.Scanner; public class GenNameActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Scanner GetInput = new Scanner(System.in); int valueTypedIn = GetInput.nextInt(); switch (valueTypedIn) { case 1: System.out.println(That is 1l); break; case 2: System.out.println(That is 2); break; default: System.out.println(That number is not recognized.); } } } -- 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: Regarding an android phone acting as server and client
Yes u can run server on android phone Moktarul On Feb 21, 10:24 pm, sahiti sowmya...@gmail.com wrote: Hi, Can any one suggest me whether an android phone could act both as a server and a client in a program? -- 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: Hello Everyone, i just have a quick question:
Hi BTDdetecetwithV7Activity in ur android Manifest file activity name=BTDdetecetwithV7Activity/\ Enjoy moktarul On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? have anyone faced the same? ERROR: 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{android.mgo.helloandroid/ android.mgo.helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException -- 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: What is the significance of main.xml.out file?
Hi, Manually just delete this file Moktarul On Feb 18, 9:27 am, Kedar dattatrayhkulka...@gmail.com wrote: What is the significance of main.xml.out file? Sometimes while debugging the application, I am getting an error in the main.xml file -- 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: Hello Everyone, i just have a quick question:
Hi Soyer, All your activity class has to be there in your Manifest.xml file if you call your activity class from other activity then that class has to be main( internt filter main) Please check these two point and i think this will solve ur problem. I am sure some problem in ur Manifest.xml file Moktarul On Feb 20, 11:24 pm, Mohamed Gougam mblack...@gmail.com wrote: Hi Moktarul, What is in the the manifest file, you mean i have to remove the . ? i don't think that's it, the . has to be there. Thanks guys for the help, Kris is it wrong if somebody try to learn something different, out of his field !! Thanks for the help though i really appreciate it. On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam mokta...@gmail.com wrote: Hi BTDdetecetwithV7Activity in ur android Manifest file activity name=BTDdetecetwithV7Activity/\ Enjoy moktarul On Feb 20, 12:26 am, Soyer mblack...@gmail.com wrote: Hello everyone, Can anyone explain to me what this following error means? have anyone faced the same? ERROR: 02-19 18:10:41.321: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{android.mgo.helloandroid/ android.mgo.helloandroid.BTDdetecetwithV7Activity}: java.lang.NullPointerException -- 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: ProgressDialog with Thread
Hi, Better use android asynctask (http://developer.android.com/reference/ android/os/AsyncTask.html) Moktarul On Feb 17, 3:13 am, dc dcone1...@gmail.com wrote: I am attempting to show a progress dialog while I am performing some actions. I am having troubles getting it to perform the way I would like. Here is what I want to do: click event of a button pop up a progress dialog showing a busy message. perform some action then once the action is complete, inflate a new layout into my main layout. (changing screens) It works fine except either I inflate the layout while the other actions are still processing (layout change is outside the thread) or if I put the layout change in the thread, it forces a close of the app, at the layout.removeallviews; line. private OnClickListener feeAcceptListener = new OnClickListener() { @Override public void onClick(View v) { progressBar = ProgressDialog.show(v.getContext(), Please Wait...,Communicating,true); new Thread(new Runnable() { @Override public void run() { GetWts(); //processes some action progressBar.dismiss(); } }).start(); Handler handle=new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); } }; LinearLayout layout = (LinearLayout)findViewById(R.id.main_view); layout.removeAllViews(); LayoutInflater inflater = getLayoutInflater(); layout.addView(inflater.inflate(R.layout.wts, null)); Button print = (Button)findViewById(R.id.btnPrintTic); Button done= (Button)findViewById(R.id.btnDone); print.setOnClickListener(wtsPrintListener); done.setOnClickListener(wtsDoneListener); } }; -- 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 Button Customization
public class cButton extends Button{ public OnPressButton(Context context) { super(context); } public OnPressButton(Context context, AttributeSet attrs){ super(context, attrs); } @Override protected void onDraw(Canvas canvas) { //sets the button image based on whether the button in its pressed state setBackgroundDrawable(getResources().getDrawable(isPressed()? R.drawable.btn_on : R.drawable.btn_off)); super.onDraw(canvas); } } Then instead of using the Button widget, use the above implementation of Button in your layout xml file. view class=com.mycompany.android.ui.OnPressButton android:background=@android:color/transparent android:layout_width=fill_parent android:layout_height=wrap_content android:text=My Button / http://bend-ing.blogspot.in/2008/10/android-how-to-implement-custom-button.html Moktarul On Feb 17, 1:53 pm, shihab shiha shihabkp.andr...@gmail.com wrote: 2. create cbutton extent Button and override onDraw method and then instate of button use cbutton Can you explain this one little widely. I tried the first one but it doesnt give the exact solution what i expect On Fri, Feb 17, 2012 at 1:08 PM, moktarul anam mokta...@gmail.com wrote: you can do this two way 1. set background 2 some drawable xml file and then customize there 2. create cbutton extent Button and override onDraw method and then instate of button use cbutton Enjoy Moktarul On Feb 16, 1:45 pm, value makers shihabkv22...@gmail.com wrote: Hi All, I am new in android development. I have one problem regarding with my button customization. i would like to customize a button in a semi circular form . -- 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: App Design Issue
HI Giles if your web service data he heavy then i will suggest you to store in database or local files. otherwise memory will be allocated through out ur application( if u store in static variable/ stack memory). if your web service data is xml file use saxParser. ( android sax parser) Moktarul anam On Feb 17, 12:09 pm, giles ian gilesian@gmail.com wrote: Hi, I have 2 activities A B. Both display data fetched from 2 different web service lets say ws1 and ws2 When i click on a button on Activity A i call ws2 in that avtivity itself and show loading dialog there itself and then move to Activity B and display data.(In this case i have to save lot of data in static variables so that they can be shared across activities as im getting data on Activity A and need to display on Activity B) Is this rite approach. The other option that i have is i call ws2 from Activity B instead of A Which is a better way. -- 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: create table of ranking
Hi Zarrouk, do u want to display ranking directly fetching from server or want to store in to database? but i will suggest u that store all information 2 database and create one ranking algorithm. this algorithm will be user choice. user also can select rank by * Moktarul On Feb 15, 10:53 pm, zarrouk.ani...@yahoo.fr azaniszarr...@gmail.com wrote: I am creating an android application of football in which you can find information, the live matches and rankings championships .. but I'm stuck in the ranking. my teacher told me you can do Standings using jsoup, in fact I used jsoup and I posted values from a website but I have not figured out how to put these values into a table .. please help me if you like -- 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 can i export my sqlite database from intellj idea?
First tell me r u able to connect adb means check whether ur adb is connected or not. execute -- adb devices check whether ur device s there or not Moktarul On Feb 17, 2:54 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: intellj is not include ddms and you can not push /data/data/packagename/ etc. Can anybody help me? 17 Şubat 2012 08:57 tarihinde shihab shiha shihabkp.andr...@gmail.comyazdı: ya but you can open it using command mode. just go command mode and change your directory into the android sdk . android-sdk-linux/tools and type ./ddms then you will get the window from there you can get the access to the sdcard and all On Fri, Feb 17, 2012 at 11:25 AM, moktarul anam mokta...@gmail.comwrote: Hi I think ddms feature is not there in intellj Moktarul On Feb 17, 10:20 am, shihab shiha shihabkp.andr...@gmail.com wrote: you can use ./ddms On Fri, Feb 17, 2012 at 10:37 AM, moktarul anam mokta...@gmail.com wrote: best way is use adb shell 1. adb shell 2. cd /data/data/packagename/ 3. adb pull database ./ Enjoy Moktarul On Feb 16, 8:18 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: I am using intellj idea and i am working with **ORMLite**. My question is, i create a database but i want to export database for looking my data.When i use Eclipse i can export my sqlite database a few ways but i have no idea about **intellj**. Can anybody know something about that? THX. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 -- --- Duygu Kahraman http://tr.linkedin.com/in/duygukahramann -- 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 in using frame layout
Hi, 1. In frameLayout use focusable false and clickable also false 2. in imageView use give some padding (android:padding=5dip for selection color) next will tell u later Enjoy Moktarul - Hide quoted text - On Thu, Feb 16, 2012 at 3:38 PM, chowdary nani naveenneeli...@gmail.com wrote: Hi moktarul anam. Thanks for time here is my frame lay out code FrameLayout android:id=@+id/frameLayout1 android:layout_width=180dp android:layout_height=240dp android:layout_marginLeft=20dip android:layout_marginTop=20dip android:background=@drawable/roundedselect ImageView android:id=@+id/imageView1 android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/iphoneforimagecon android:scaleType=matrix / /FrameLayout roundeselect.xml code is as follows: shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle solid android:color=#FF / stroke android:width=2dip android:color=#00 / corners android:bottomLeftRadius=20dip android:bottomRightRadius=20dip android:topLeftRadius=20dip android:topRightRadius=20dip / /shape please help me for this Thanks Naveen. On Feb 10, 10:20 am, chowdary nani naveenneeli...@gmail.com wrote: Hi All, I am working with image view and frame layout i have a frame layout with rounded borders frame layout consists of image view when i select image from gallery view the image is displaying in image view here i have a problem i.e, when the image displaying in the image view it is displaying in rectangle insted of round borders Please help me. Thanks Naveen -- 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: Facebook Android Application
Hi Rickky There are two way to create facebook apps on android 1.install android sdk and use there api( dont think this s good idea) 2.. user facebook api for getting all contact (friends name, email, phone number etc) then parse there api and then enjoy Moktarul On Feb 15, 11:16 am, Passion Android passion4andr...@gmail.com wrote: I want to create an facebook android application where i want to create a option ..by press it will show all the phone numbers of the friends who are in my friend list.so how to do this please give the idea. Thanks . Rickkky -- 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: to know about how to use variable accross differnt activities
there are many way to access. best : create one class extent Application. and variable declaration in this class will be accessible through out the application / activity On Feb 16, 10:17 pm, amit pandey aammit110...@gmail.com wrote: how to use a variable across different activities -- 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 restrict my app??
if your application is server dependent then in server side create admin panel. admin will able to add mobile number next save auth flag in ur application ( shared pref or in database ) false. whenever user will use ur application first time then flag will b null then check for authentication and save true/false value Moktarul On Feb 16, 4:30 pm, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: hi, I want to restrict my android app to just open on specific No. of mobiles that i want. how can i do that? Thanks and Regards umer -- 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 can i export my sqlite database from intellj idea?
best way is use adb shell 1. adb shell 2. cd /data/data/packagename/ 3. adb pull database ./ Enjoy Moktarul On Feb 16, 8:18 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: I am using intellj idea and i am working with **ORMLite**. My question is, i create a database but i want to export database for looking my data.When i use Eclipse i can export my sqlite database a few ways but i have no idea about **intellj**. Can anybody know something about that? THX. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can i export my sqlite database from intellj idea?
Hi I think ddms feature is not there in intellj Moktarul On Feb 17, 10:20 am, shihab shiha shihabkp.andr...@gmail.com wrote: you can use ./ddms On Fri, Feb 17, 2012 at 10:37 AM, moktarul anam mokta...@gmail.com wrote: best way is use adb shell 1. adb shell 2. cd /data/data/packagename/ 3. adb pull database ./ Enjoy Moktarul On Feb 16, 8:18 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote: I am using intellj idea and i am working with **ORMLite**. My question is, i create a database but i want to export database for looking my data.When i use Eclipse i can export my sqlite database a few ways but i have no idea about **intellj**. Can anybody know something about that? THX. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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: Arabic text
Hi Kamran, if u store all verses in database there will some display problem. ( im also creating this type of application). so if ur verses not readable then ur application is useless my first approach was storing one pdf file in drawable folder and displaying using page-flip( didnt get success. there s no page-flip pdf reader) So now im doing these way; i have list of pages.( transparent png and verses in white color) total size is 20mb ( Dont same arabic verses in database, store english or others languages in database) Moktarul On Feb 17, 10:30 am, shihab shiha shihabkp.andr...@gmail.com wrote: I am aslo searching for this solution. If you find any thing about this pleas let me know Thanks in advance On Fri, Feb 17, 2012 at 9:30 AM, Areesha kamran arkamr...@gmail.com wrote: I have to write Islamic verses in android application. Can any one guide me what steps should i follow. Should these verses store in database -- 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: Arabic text
Hi, adding one more point you can store images in to database (blob/byte array) and save this database 2 asset folder. Now onload activity check if databse is not present then copy from asset folder Moktarul On Feb 17, 11:41 am, moktarul anam mokta...@gmail.com wrote: Hi Kamran, if u store all verses in database there will some display problem. ( im also creating this type of application). so if ur verses not readable then ur application is useless my first approach was storing one pdf file in drawable folder and displaying using page-flip( didnt get success. there s no page-flip pdf reader) So now im doing these way; i have list of pages.( transparent png and verses in white color) total size is 20mb ( Dont same arabic verses in database, store english or others languages in database) Moktarul On Feb 17, 10:30 am, shihab shiha shihabkp.andr...@gmail.com wrote: I am aslo searching for this solution. If you find any thing about this pleas let me know Thanks in advance On Fri, Feb 17, 2012 at 9:30 AM, Areesha kamran arkamr...@gmail.com wrote: I have to write Islamic verses in android application. Can any one guide me what steps should i follow. Should these verses store in database -- 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: How to create two projects as one apk file.
Hi, it is not possible. u can not merge two apk as a single apk. but u can many launcher in a single apps Moktarul On Feb 16, 1:14 pm, android devloper android.devlope...@gmail.com wrote: Hi, iam new to android,i have created two different projects and i have created two different apk files too. but now i want to create those two projects as a single apk file.is it possible? if possible help me in this. Many thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: hai
First go through android's component Activity, service, content Provider, broadcast receiver this will make ur life easy Moktarul On Feb 16, 11:14 am, deepu mandy deepikamandapa...@gmail.com wrote: i am very new to the android development and working on desidning apps... i have so many confusions while doing this plase let me help if u have idea... nw i am working on a sample module to make phone calls and also to get status of that call? how to get whether he lift the call/ end call? how? -- 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 Button Customization
you can do this two way 1. set background 2 some drawable xml file and then customize there 2. create cbutton extent Button and override onDraw method and then instate of button use cbutton Enjoy Moktarul On Feb 16, 1:45 pm, value makers shihabkv22...@gmail.com wrote: Hi All, I am new in android development. I have one problem regarding with my button customization. i would like to customize a button in a semi circular form . -- 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 Open app from other App
final ComponentName cn = new ComponentName(packagename, class); intent.setComponent(cn); here class name nothing but one activity and in that application's manifest file this activity class has to be main(intent filter main) Enjoy :) On Feb 15, 11:08 am, Kristopher Micinski krismicin...@gmail.com wrote: well, s/question/answer, ..., kris On Wed, Feb 15, 2012 at 1:08 AM, Kristopher Micinski krismicin...@gmail.com wrote: No, his question *is* the answer, you're not reading it correctly. You're trying to open an activity. It's just not in your app, but you still use startActivity... kris On Wed, Feb 15, 2012 at 12:52 AM, Passion Android passion4andr...@gmail.com wrote: anyways thanks TreKing Its Not the answar.My question Open an Application From Current Application. Thaks For Giving effort to my question. On Thu, Feb 9, 2012 at 12:18 AM, Passion Android passion4andr...@gmail.com wrote: How to open a app from another App.plz guide me i have used final Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.addCategory(Intent.CATEGORY_LAUNCHER); final ComponentName cn = new ComponentName(packagename, class); intent.setComponent(cn); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity( intent); -- 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: How to interconnect two Android emulators
1. adb connect device ip address 2. adb devices list of devices 3. adb install- s device address *.apk location Enjoy Moktarul On Feb 15, 10:31 pm, Robokop robert.kozlov...@gmail.com wrote: I have a question for you because I am new in Android programming I am not quite sure how to interconnect two emulator instances.I found link where it's explained but it's not very comprehensible to me (http://developer.android.com/guide/developing/devices/emulator.html#c... ). I don't understand how to Set up the server on B and how the set up client connection to 10.0.2.2. Could someone please help me and explain how to do that? -- 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: Hello Grid View Tutorial don't work
have u copied R.drawable.sample_2, R.drawable.sample_3. all images in to your drawable folder?? On Feb 12, 10:30 pm, Asaf Nassi superdrag...@gmail.com wrote: I tray the Hello Grid View Tutorial, I using eclipse (even to copy and paste from the android developer sitehttp://developer.android.com/resources/tutorials/views/hello-gridview... ), but its don't work I get to match error , i don't know what else to do... -- 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: OutOfMemory exceptions
Hi, try to avoid recursive function On Sep 12, 9:01 am, Christopher Van Kirk christopher.vank...@gmail.com wrote: The best strategy here is to figure out why you're running out of memory and re-architect your code so you don't even come close. This is a cell phone and tablet OS, not a surface to air missile OS. There's no need to be writing code that pushes the hardware to its absolute limits. On 9/12/2011 6:42 AM, Nick Risaro wrote: On Sun, Sep 11, 2011 at 4:11 AM, gjs garyjamessi...@gmail.com mailto:garyjamessi...@gmail.com wrote: These are typically OutOfMemory errors (not exceptions) which you can catch in a try catch block, you can then hide these errors from the user or display a friendly message. In general you can't do that. If you have an OutOfMemoryError the JVM can't allocate more memory and then you can't show a message or something because there is no memory to build the objects. -- 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: Emulator Help
can u tell me ur ram size?. if less than 2GB then emulator will be very slow On Sep 11, 11:19 pm, Amol Sharma amolsharm...@gmail.com wrote: Hi all, i am new in this android development..i have recently installed Eclipse and Android SDK API 13.created a hello world application i know that emulator takes time to load..but after loading also it is also working very slowly..is there any fix for it ??does the size of sd memory selected in avd has any affect only one more thingthere is only one skin available in my eclipse...how can i install more skins. plz guide me thank you -- Amol Sharma Third Year Student Computer Science and Engineering MNNIT Allahabad http://gplus.to/amolsharma99 http://twitter.com/amolsharma99http://in.linkedin.com/pub/amol-sharma/21/79b/507http://youtube.com/amolsharma99 -- 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