 How can we perform a heavy background task without freezing the activity? So there is something called as a waterlock concept. If you go to the developer android website, there is a waterlock concept. What it does is it will keep your activity always on, so it will consume your power all the time. Actually it is not advisable to use if it is not required to, I mean because see if you never freeze your activity, if it is see if something is happening at the background and that is a more prior work than your activity then the whole resources and everything should be given to that background task and not to your activity. So it is better you freeze your activity because it is not required and in case you have need that no you cannot freeze it, it has to go there is a waterlock concept available. So using which you can keep your activity on all the time irrespective whatever higher priority task comes in the picture. Wake lock. Wake lock. Wake lock. I am so sorry it is a wake lock W-A-K-E-L-O-C-K wake lock. I am so sorry. Thanks. 1116, H-G-S-I-T-S Indore. Thank you for the workshop ma'am and it has been wonderful so far. I want to ask when I open my phone, Android phone, there is an option UI control basically where I hold the screen and widgets get open, a menu pops up where I find all the widgets. Can you tell me what that option is, what kind of UI control it is? It may be something you know corresponding to yeah the maybe a new version which is there for the jellybean or something or it may be a device respective. Long touch. So okay I have got answer from my teammates over here that it is a long touch message and I am personally not aware about it. So basically see it would be something a very device corresponding function or maybe your Android jellybean function that is what some answers I am getting from here but I am not exactly aware about it. What you can do is you can just post this query on a model and we definitely get back to you on this. 1178. VBTIT Surat. My question is it is possible to make the any humanoid robot with the help of the Android system who are the features of the artificial intelligence and if it is possible then how and if it is not possible then why? Okay so basically the answer to your question is yes it is possible rather at IIT Bombay itself our team have developed an application which controls a robot using Akash tablet. So definitely it is possible the technology behind is what it does is it connects through a Wi-Fi so it has a on the robot it has a Wi-Fi and on tablet we connect to the same Wi-Fi and using this Wi-Fi transmission we control the robot. So basically that is the hardware behind it it is called as a Raspberry Pi rather if you can I will encourage all of you to go to YouTube and go for the DB Fatak video or for Akash project you will see lots of interesting applications which lot of team have developed at IIT Bombay for Akash tablet you can see what all things are possible. So yes the answer to your question is yes it is possible. Yeah my question is did your institution will makes the robots that with the help of the Android system who are having features of artificial intelligence? See I mean artificial intelligence has so many applications one of is a robot application another can be a games so there are if you see the Android apps there are so many games available very cool games available that is also artificial intelligence. There are see artificial intelligence domain has a lots of areas lots of applications so it is not just a robot there are lot of others and yes there are lot of things possible in artificial intelligence using Android that is the answer to your question sir. One zero double two. Sri Santh Gajanan Maharaj College of Engineering go ahead we can hear you. Hello good afternoon sir I have a question for Tushar sir. Actually you tell about what when I try to do is I cannot resize it so is there any property which has to be so set so that I can resize the web view. I guess the question is about the web view so it should it will be directed to Ajay not the Tushar so he will answer your query. So you want to resize your web view right so when you drag the web view on a graphical layout so you can resize by setting the properties so you have a different different properties over there so layout width and layout height so you can change that properties and your web view widget will resize that is it. I have checked a lot of other properties like align parent, align left, align bottom and all but when I try to resize it it is not happening it is becoming the same way as it was. So have you tried the margin left margin top attributes what it does is it. Yes ma'am actually I have checked all the attributes which are available to the right side all the properties I changed and I checked all the major things. See I mean with available attributes it should actually it should be happening what you can do is you can just zip your example code and just send it to us we can check at our end because these attributes have been given to resize the web view there is no I mean the issue would be something regarding the code itself I mean because we have been able to successfully do it I mean all UI widgets have some common resizing properties the margins and lots of others so those are applicable to all UI widgets the web view is not anything very special widgets rather I have also shown you the video view I have resized it using a margin left margin top right bottom properties so it is possible. In the morning you told something about a small button and a text view so I tried to write the code and then I tried to run that app on the AVD but it is coming all the time unfortunately it has stopped so what can be the probable cost for it. So have you checked your lock at error in your lock at window you should get some error why it is getting close do you know the where the lock at window is if you are not sure go to window menu and go to show view in that you should get a lock at option just make that option available and you should get some error because it cannot close with you know unknown reason. Okay ma'am thank you. One double zero one MNIT Bhopal. My first question is how much memory is required by SKU light database at run time. At a run time you can run on a very low memory exactly it is not exactly the specified the low memory depends on your data you can use actually the SQL light will store not up we cannot use this SQL light to store the many like how the lakhs or two lakhs of data we can use to store only not larger monitor we cannot store in this small amount of data we can store only in this SQL light. So it is not specified exactly how much space be required but this SQL light will run on very low memory. Maximum size of memory depends on your device if you have any device like suppose you are talking about Akash so internal memory I think such 2 GB and external memory up to 32 GB so you can run your 2 power 64 entries possible in SQL light. My second question is which types of image format are supported by android. Whatever your like if you are talking about minimum memory required whatever your device you have in your internal memory you can run your SQL light in 100 kb also depends on your internal device size. Sir my second question is which types of image format are supported by android just like JPG, GIF and all formats are supported by android. JPG, GIF, PNG supported all kind of images supported by android. So basically on developer website there is a huge table which displays you what all image types are supported encoders decoders which are supported. So you can go to the support media I mean in Google you can just type android developer support media format and you will get a link to that the whole list is given there. KCB technical academy in the Dalvik virtual machine convert the Java byte code in Dalvik byte code. Is there any language whose object code can be converted into Dalvik byte code? So basically yes it converts Java byte code to the Dalvik byte code but I mean the answer to your question is other languages code yes can be converted to the .dex file that's what I had mentioned earlier about the ndk. So you can have your cc++ code imported and your compiler will actually do it for you using ndk concept. Okay so answer to your question is yes it is possible. 1, 2, 1, 0 go to institute. 1, 2, shared preferences and the and SQL lights for data source. Okay suppose you want to store some data in a structured way so at that time you can use SQL light or suppose you want to store some data temporarily in your application or you want to share your data from one activity to another activity at that time you can use shared preferences. Thank you so much.