 So, hello everyone Srikant again. So, you may ask your questions if we have anything regarding my topics or topics after that. So, we have selected RC Surat. My doubt is on the morning session I need to know about how to install APK file on Android emulator. On Android emulator have you not tried ADB install APK name? No sir, we have tried it before but not got it correctly. Can you please tell me what kind of error you are getting? Yeah, actually we tried to set a path for platform plugin and then we have tried a command called ADB yeah platform tools and we have tried a command called ADB space install then followed by the apk file name dot extension apk. No, I want I am interested in what kind of error you got. Unable to install and then followed by some failure message. Yeah, the most obvious reason for that is your apk is already installed. So, you might you may try adb install hyphen r then your apk name. Sorry sir, actually we have tried to install clicker software apk it is not yet installed before. See because if you are getting a failure message that means your adb is working fine and there is something problem with your installation. The default way how it works is when you install anything it expect that there is no previous version of that application. So, to overwrite that you have to use adb install space hyphen r then apk name. Double one five two, seniors of college. Okay, I want to know about the ECAS tablet can be used as an emulator. Emulator is different and ACAS tablet is different. I did not get your question right means ACAS tablet is real hardware. If you want to use ACAS tablet as emulator that does not make any sense means emulators are virtual machines. So, they are totally different. I think you mean that you want to use ACAS tablet as an emulator means like you run your Eclipse program it automatically runs in your emulator same thing you want to do with ACAS tablet. So, assuming that your question is this I will answer to this just connect ACAS tablet via USB and instead of emulator it will automatically take your ACAS tablet as the device. So, I think that is some default way by which Eclipse work. Double one double two, NJR Institute Udaipur. I have a question if I have an external apk file and I want to run it in any emulator is it possible? Yes, it is possible using adb you can run it on emulator also. I know how exactly means I do not have emulator right now but you can you just invoke an emulator session and then just do adb devices and it will detect your adb it will detect your emulator device then you just do adb install like you did for ACAS tablet. So, you want to know how to invoke an emulator without using Eclipse right. I am using Eclipse, but the dot apk file is from another source I had made. Yes, so let the emulator be open let the Eclipse emulator which you have which you have invoked let it be open and from the command line window you just type adb devices and look for the emulator device it will show emulator 554 or something like that. Then you do adb install your apk which you have downloaded from somewhere else to that emulator. Does it answer your question? Thank you. 1195 Bansal College. Sir, the question is that you give a question of the tournament in your PPTs. I try to implement in my program but there is a error in set duration method. They give that set duration is not the correct method and I disable this error check in the Eclipse. Then the program is not running properly. Can you do some suggestions to me? Sir, actually the error is that this method do not found. Set duration. Are you talking about? Yes sir, they give that set duration is not a method. This is because you might have specified as a parameter number of milliseconds right. Yes sir, I give millisecond thousand millisecond. And 1000 after you have to write f because it takes as a parameter float values. So if you have specified 1000.0 or something then it might take it as a double value. So it might not downcast it on its own. So you have to specify f after it. Is this my system error? Not specifically system error but there might be some coding problem. You might take an example of that the code I will be sharing. So you can play around with it. So you might have some typos in that or you might have not specified float value. You might have specified some double value. So it might be some error with that type or something. Means the parameter of animation object are wrong. Yes, let's discuss this on Moodle because I might have to see the code what you are writing. So let's you can post it on Moodle. Okay. Sir, thank you for holding Moodle and deserve shop. Thank you. 1145 KME Engineering College. We are doing our Android project in the Eclipse framework. It's actually a chemistry lab simulation and we are planning to do some animations in it. And if I do those animations in Blender, will I be able to use it in Eclipse? And if so, then how? You cannot use the Eclipse animation on the Eclipse file. You can have the Blender dot directly AVI as the output or can have an interactive file and can directly run on the Android device. As a Blender player is available free open source, you can directly have a dot blend file play on the tablet or the Android device. Or you can get a AVR or video output. So what about the coding and all? The coding part, if you want the interactivity coding part, it is done inside Blender itself in a Python languages Python. So can we do it using Java? No, it doesn't support Java, it supports Python. It inside Blender itself. 1269 IE RCEM Institute of Information Technology. Why are using Blender player APK and not other players? Other players such as if you want to play a video output such as AVR, MPEC 4, we have a VLC media player or other media player as the output. But Blender itself has a graphical user interface in 3D. So for the 3D rendering process, each time when you are doing something, it has to directly render into 3D. When we are doing the rendering process, rendering process we are getting an output. So in the game when we are creating a simulation, the simulation doesn't require output. It directly rendered itself when we are actually playing the file. So it requires the graphical user interface in a 3D engine behind it. So that's why we have to use the Blender APK which is developed by the Blender foundation itself. And the other player won't support the .blend file. It will only support any video or media file. Sir, why we use a cast tablet for this workshop? Is there any other tablet? Tablet is just lost. Is there any tracking system to search this? By far no. There is no tracking system. Is there any tracking system? Yes, I answered your second part that is there is no tracking system as of now. I'm coming back to your first question. Why only Akash tablet? Why not others? You can use some other Akash tablet compatible, other compatible tablets which are as good as Akash like Akash tablet uses A13 system on chip all-winner A13. You can look for similar A13 based Android tablets which are readily available in market for 3000 to 4000 rupees. And they work almost same as good as Akash tablet. You can use your phone, you can use any tablet for this development. There is no specific requirement that you have to use Akash only. 1075, D.Y. Patil College. Go ahead now. What is the best way to render Blender model in Android? And how to make an object visible at a particular key frame without moving it in a Blender? What is the best way to render Blender model in Android? The best way to get is if you have a non-interactive output such as a video file. So you can directly render on a desktop as a video file and can play it on Android in any media player. If you have interactive simulation like I showed you the single replacement reaction then we have to use the Blender Player APK only. There is no other option available for that. Can you repeat your second question? How to make an object invisible at a particular key frame without moving it in a Blender? Okay, if you want to, that is done in the desktop. That's a key framing. You have to restrict its visibility. So in the Python script as well you have to define visibility at a particular session. So at a particular key interval you have to give a command line visibility restricted or the true visibility or the false visibility. So that you have to define in the Python language or you can do it in the logic brick as well. You can set the visibility visible or non-visible. Yeah, again one question. Can we have two canvas in an activity whether the performance of the graphics is high or low? Two canvas in one activities. Yes, of course you can have. So about the performance, it totally depends on how you write your code. I have talked about invalidation. So more you invalidate, more you redraw your canvas, the more performance will degrade. So you must keep your invalidation count low so that it only invalidates when only required. So if you invalidate more it degrades your performance. But having two or more canvas does not degrade your performance. So it totally depends on your coding style. As compared to Windows, does Android operating system supports better graphics performance? As compared to Windows, it's a totally different thing. You can't compare both of them because Windows is a high level fully desktop operating system and Android is a mobile operating system. So Android does have fewer APIs. I mean the APIs are rich, but in Windows you get for example DirectX, the drivers you can have direct access to low level drivers. So your performance might improve, but again on the Android part you have ND case. So you can write your C++ code on Android. So that is more advanced topic to improve your performance inside Android. So yes, if you use these things and compare it with Windows, so Windows might be having a good performance since it is a desktop OS. 1160. Hello, first of all I want to say that I am not asking any doubt about this session still taken. My doubt is that I have developed one GPS application in Eclipse. It just doesn't have any error. GPS APK was installed and emulated, but unfortunately it is displaying that while it is running, it is displaying that unfortunately your application was closed. It is displayed, this message is displayed. What is the reason? Let me repeat your question. You have developed an application which uses GPS data and you want to test that application on emulator, right? Your emulator doesn't have any GPS hardware. You should try it on a real phone or tablet which supports GPS hardware. I think that is the primary reason I can think of right now. So it happens if you invoke a camera module from your, if you wrote a camera program in Eclipse and try to run it on emulator, it doesn't show up. Same thing with GPS. Even GPS you require a real hardware to try it on. You can check it in logcat. Yes. 1016 KJ Somya, Mumbai. Sir, my app which wants to list all the intent filters of all the apps installed on my device. So by which, for which I am using a package manager which is a class, but all the intent filters of all the apps, it is not displayed by the package manager. And I have seen that it has been displayed by the ADB shell. So is there any alternative to use the ADB shell commands in a device by which I can list all the intent filters of all the apps installed on my device. What do you mean by intent filters? I didn't get your first part. It can be termed as gateway by which I can manipulate or use the another application installed on my device. For that I required intent filter for which I have to pass a package manager as an parameter to a method which gives me an intent filter as an output. So for which I required list of package managers installed on my device. So basically you want to list all the APKs, all the packages on your device. Yeah, so ADB shell PM list packages does that for you? It does that for me, but I want to execute it during the run time. That is when my app runs on my device. Yes, so you can write a small batch script which will do for you. So what you can do exactly is, install your APK, check for your APK in the top process. So just grab that portion and then write a batch script which will check that if that app has in the highest priority means the latest PID is your app only, then do this. So what you want to do, you want to list the package manager that your app is there or not. Is it? Okay, but sir, how to get the output of batch script and use it in my Java code? That is a different topic means that totally depends on what kind of application you are developing. I am talking about ADB shell through that way. So actually I don't have any clues how to do it on Eclipse. Thank you. 1032 Mufakkamja College, Hyderabad. What is the advantage of using Linux? Using GNU Linux basically gives you freedom that's everyone know, but development of Android and Android related similar open source project is much easier in native mode. When we say native mode we means Linux kernel. See Android also shares Linux kernel, GNU Linux also has a Linux kernel. So it is easy to bridge both them, easy to bridge. So whatever you means, it is easy to set up a development environment on a Linux machine rather than Windows. And as I said before, there are plenty of open source operating systems, mobile operating system, tablet and desktop operating system dominating the market. So there will be a good advantage if you use GNU Linux as your default operating system. Is that your question? Yes sir, thank you. One more question. Yes, yes, please. Is there any MATLAB, MATLAB or other software that can be provided on Akash or any Android peripherals? Yeah, there is a Sylab running on Akash which you can use. Sylab is an open source equivalent for MATLAB. So Sylab port is already available. You can just look for apl.apk in our repository and that will help you. So you can run MATLAB codes on Akash. The package name is apl, Akash programming lab. 1090, KCS. Hello sir, now you teach how to draw to the object by using OpenGL. Can you explain how to draw the three objects, same OpenGL pattern? So I have explained how to draw on Kenwas. So there is a GL surface view inside Android. So similar to what we have extended view and we have got the reference of Kenwas, we need to get a reference of GL surface view. And then we can use the APIs, OpenGL APIs like GL translator, GL rotator, etc. If you know OpenGL, then you can easily port your application to Android because they are the similar APIs and the same concept works here. So first you will need to learn what is the basics of OpenGL. So once you know OpenGL, you can easily develop your app. Similar to what we have seen in Kenwas, you can use GL surface view and you can render your application. Sir, would you share API? Yes, so that is similar to what we used APIs in Kenwas. So there is a whole set of API which is, for example, I will give a few function names for example, GL translate, GL rotate, etc. So you need to pass the parameters and that API, if you want to get a full reference of that API, you can check the developer, Android developer site, d.android.com. So there is a full set of API and if you know GL, there will not be any difficulty in learning that APIs. So the main idea is to learn the OpenGL. 1-1-2-1 SVP Engineering College, Visagapatnam. Blender tools, how can I answer? Blender tool is used for 3D animations and simulation creation for the desktop and it is used for the desktop application, as a desktop application. But you can have the .blend file can use on the Android device with the Blender player. If you install Blender player, you can directly use the blend file on the Android device. Yes, .1-1-2 SVU College of Engineering, Chittor. Why and that tablet doesn't have a Bluetooth facility? Is there any provision for this? This Aakash tablet doesn't have Bluetooth facility, but you can connect an external dongle, Bluetooth dongle and you can use Bluetooth. 1-2-0-7 Jawaharlal Institute, Madhya Pradesh. Sir, my question is what is keyframe animation? In my session, I'll explain you about the time interpolator and type evaluator. Time interpolator gives you at which input time you can tweak that time in some way. Keyframe animation gives a pair of key and values. At which time you want your property, at which time you want your property at which value. For example, at time equal to some milliseconds, for example, 500 milliseconds, you want your property to be some value. For example, x or for example, if it is an integer value, you want it to be 5000, for example. And at some other time instance, for example, at 1500 milliseconds, you want some other values. So, that is a keyframe. For example, so in the entire duration, you specify those key values, key and value pairs. So, at that key and value pair, you will get the desired value. So, you are in between all the, at the time between two keyframes will be interpolated linearly. So, you can get the interpolated value. So, that is the use of keyframe. So, you don't, you won't use the time interpolator. Sir, what is the use of Blender tool for the student? For the student, Blender, using Blender, you can create animations and 3D simulations. For a student, it is helpful to get the perspective of the 3D environment. How the front view, side view, and get the depth of the knowledge. As a third dimension, we can have a working knowledge of the 2D dimension as a XY plane. But using Blender, you can have a third dimension knowledge. Engineering, if the, for, it is very useful for the engineering students, who have the subject as an engineering drawing as a subject, for they can learn the third dimension, the basic perspective, difference gradient perspective and orthographic view, and can learn about what the third dimension is, how the depth of the object can be created. Sir, you told about the programming. Data develop on the Android device or not? Okay, is this the programming data on Android device? Yes, sir. Programming data on Android device, the programming file, the Blender setup itself runs on the desktop, and then you can transfer the file on the Android device. So, your code, programming data, you mean code, is not actually on your Android device. Android device just contains, as it is explained earlier, you have to install the APK. So, your program data does not transfer to your Android. 1056. Sir, how to import SQLite manager into Eclipse? So, we had covered this data storage session last week. And the, if I understand your question correctly, how to import SQLite manager on the Android, right, on the Eclipse? So, I mean there are already APIs available which already supports this SQLite operations. So, what I'll suggest to you is, please visit the Moodle, please visit the GitHub, where all training material has been uploaded, along with the videos that how to code in SQLite. So, using that, you can definitely understand how to do all operations using the SQLite on the device. I hope that answers your question. Please go through the video material and training material which has been uploaded on GitHub. Thank you.