I need to implement Fragmentation concept in my android sample app. If the device is smart phone then when i click on buton it should display the result in another window else if it is tablet then it should display the result in same window. But i don't know how to do it. I got some references code but it works for tablet not for smart phone. when i try to run that same project then it's giving the force close error. So any one have an idea please help me.
Any advise is accepted.
Would highly recommend this tutorial, it describes the concept perfectly and provides a very clear and simple example of implementing Fragments in your application. Hope this helps you.
Related
I am a student and working on a school project. At the moment I am in the research phase. Part of the idea I came up with is to run an app on the phone to hide some of the other icons such as phone call icon, message icon, camera icon and ect. I wanted to know if this idea is feasible. I was wondering if you could give me some tips or point me to a website so that I could post such questions.
Quite simply,
you cannot do this on iPhone.
Hope that helps!
Maybe someone else will tell you the Android case. Good luck in your studies.
I've developed different personal apps for android and now i'm interested in google cardboard project
So, would be possible to create an application for android to implement the same system of this project : http://www.vrdesktop.net ( windows only ). In few words mirroring the android screen inside another app that will split everything ..
actually i don't know if there are some usefull api/ways to accomplish the job.
EDIT1: i've prepared a draw to better show the idea: https://docs.google.com/drawings/d/15AYvjesIhZDTe5mfOmm5TzhRkyxmDA6L0jI9MzdKbB4/edit
After long researches i've found an open source project that is doing exactly what i was looking for:
https://github.com/frma71/sbs
P.S. Thank you for useless downvoting
Alright. I first wanna apologize for creating another question as I did come across a few things on Google but i am just not fully understanding the things I've found. The three links i found are Make your application a device administrator and Android developer website and this
I completely understand the whole XML part but the part I'm not grasping is where do i put the code i want to run? Like i am trying to place the device into standby mode after executing some code. I know i need to use PowerManager but in order to do this i need to make my app an administrator. Also in the first link i'm not sure what this means startActivityForResult(intent, REQUEST_ENABLE); and why the REQUEST_ENABLE is underlined in red giving Cannot be resolved to a variable error and in the tutorial there was nothing mentioned about creating REQUEST_ENABLE variable or method or class or anything.
Thanks everyone in advanced for helping me wrap my head around this!
I am troubling what technologies was used/should be used on an app like teamviewer. I am thinking about an application for android which can auto record any action on the screen of android device, then provide a streaming-line to a PC application to view that screen on real time.
Anyone can give me some tips?
yes, you can do it.
This is how you do it for android. few steps are required, but you can do it...
http://www.howtogeek.com/howto/42491/how-to-remote-view-and-control-your-android-phone/
Hope this helps.
Thanks.
I want to develop an android application that will be an alternative lockscreen.
I searched a lot and i couldn't found an explanation about how to make an app to work like a lockscreen. I understand that there is no official android API for lockscreens, but there must be way, because there are a lot of alternative lockscreens applications in the market.
Does someone know how could i make my app work like a lockscreen? Or if there is a basic code out there of lockscreen app that i can learn from it how to do it?
Thanks a lot (:
The way this is usually accomplished is creating an app that becomes the home application and then when the screen is turned on display your custom lockscreen and hide it when the user successfully unlocks it so they can use the device.
Make sure to take a look at the numerous questions on SO that are very similar to this.