[Q] appcombat_v7 and fragment_main.xml - Java for Android App Development

Hello there,
I just started using Eclipse and I'm confused by the appcombat_v7 and fragment_main.xml.
I've never seen those files in a youtube-video I watched for tutorials.
Do I need them?

philip0908 said:
Hello there,
I just started using Eclipse and I'm confused by the appcombat_v7 and fragment_main.xml.
I've never seen those files in a youtube-video I watched for tutorials.
Do I need them?
Click to expand...
Click to collapse
its a new stuff they have added , if u don't want u can revert back adt and Eclipse

honorably ailughb
hisee said:
its a new stuff they have added , if u don't want u can revert back adt and Eclipse
Click to expand...
Click to collapse
what would you recommend? where do implement my code now?
in onCreate of Fragment class or of Activity class?

philip0908 said:
what would you recommend? where do implement my code now?
in onCreate of Fragment class or of Activity class?
Click to expand...
Click to collapse
Depends on what you want to do and what version of Android you are supporting. Using Fragments is usually a good style, but you need to make sure you understand them, so head over to the training class on fragments. To clarify with the appcompat-v7, that is one of the two support libraries which were released not so long ago to port some of the features and layouts only found in higher android versions back to v7 (which is 2.1) in this case. The v7 support lib is used to get the ActionBar in earlier versions. If you want to use fragments and support pre-Honeycomb, you'll need to use the v4 support library, which is just a jar file.

Related

[Q] how do i start creating a custom rom?

hey everyone,
i've tried several roms and i like the idea of creating one.
i know how long of a process it can be and how many lines of code,
but i still want to do it.
i was wondering if there is someone else's rom i could use as a base?
if not how do i go about starting from scratch?
any information would be appreciated.
skennedy08 said:
hey everyone,
i've tried several roms and i like the idea of creating one.
i know how long of a process it can be and how many lines of code,
but i still want to do it.
i was wondering if there is someone else's rom i could use as a base?
if not how do i go about starting from scratch?
any information would be appreciated.
Click to expand...
Click to collapse
I believe some devs such as cvpcs may have released his source, but im sure most keep it private. To build your own, grab the android sdk from google, their source code, and the source for the 2.2 release for droid X
Sent from my DROIDX using XDA App
SysAdmin-X said:
I believe some devs such as cvpcs may have released his source, but im sure most keep it private. To build your own, grab the android sdk from google, their source code, and the source for the 2.2 release for droid X
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
alright i'll look at some developers and then i'll check out the sdk, thanks!
so i downloaded the sdk and everything, but i don't know how to get to editing and working on the stock 2.2.1 2.3.340 rom!
right now i'm just doing some easy stuff like making the boot animation
and designing some stuff on paper.
skennedy08 said:
so i downloaded the sdk and everything, but i don't know how to get to editing and working on the stock 2.2.1 2.3.340 rom!
right now i'm just doing some easy stuff like making the boot animation
and designing some stuff on paper.
Click to expand...
Click to collapse
You'll need some java knowledge, as I believe android is built off java... If you have some java programming experience, you're a step ahead. I believe Google also has some documentation and tutorials on their sdk page or a link from there.
SysAdmin-X said:
You'll need some java knowledge, as I believe android is built off java... If you have some java programming experience, you're a step ahead. I believe Google also has some documentation and tutorials on their sdk page or a link from there.
Click to expand...
Click to collapse
yeah i'm currently in the second half of a java programming class that is offered at my university.

Upgrade Android?

Has anyone successfully upgraded their nst to android 2.2 or higher?
If it isn't possible, how difficult would it be to modify the api of an apk to become compatible with android 2.1?
it need alot of work to modify the controls.of android 2.2 also the kernl if need ..... why u need upgrade android version ....... u must know tha nsr build for read only , and android 2.1+root fair for me indeed
Sent from my NOOK using xda app-developers app
In order to utilize the full features of an app I am trying to use, I need to run Android 2.2 minimum on my nst.
speedman2202 said:
it need alot of work to modify the controls.of android 2.2 also the kernl if need ..... why u need upgrade android version ....... u must know tha nsr build for read only , and android 2.1+root fair for me indeed
Click to expand...
Click to collapse
mantano, perfect viewer, aldiko etc. they have been upgraded to function only with 2.2+ , i know, there are old versions still compatibles but newer have functions that may be desiderable
centralpark said:
If it isn't possible, how difficult would it be to modify the api of an apk to become compatible with android 2.1?
Click to expand...
Click to collapse
you need to disassemble the apk with apktool then modify the android:minSdkVersion value in AndroidManifest.xml to work with an early android version but it is not guaranteed that works
i have never do that but there are many tutorials arounds

A beginner need help... what is the concept of android programming?

Hi everyone, I'm new to the android programming playground and it looks complicated. I have no experience in Java, only in Python and JavaScript. I have seen some tutorials before and I just don't understand the .java file. How do they connect? public void? What is this? I don't want to use ruboto or kivy or phonegap or anything else because I want my app to be independent. I have no problems with the xml files because I have worked with HTML files before. The only thing is the java files. Can someone give me a nice concept of the android programming language? About how do the files get wired, about starting an activity, and more if available. The android programming tutorial on developers.android.com never helps. Any help is appreciated!
Angjinhang said:
Hi everyone, I'm new to the android programming playground and it looks complicated. I have no experience in Java, only in Python and JavaScript. I have seen some tutorials before and I just don't understand the .java file. How do they connect? public void? What is this? I don't want to use ruboto or kivy or phonegap or anything else because I want my app to be independent. I have no problems with the xml files because I have worked with HTML files before. The only thing is the java files. Can someone give me a nice concept of the android programming language? About how do the files get wired, about starting an activity, and more if available. The android programming tutorial on developers.android.com never helps. Any help is appreciated!
Click to expand...
Click to collapse
If you have worked only with python and JavaScript, Java will certainly feel like an alien language. In addition, navigating through eclipse can be a pain as well. Learning three things (Java, usage of Eclipse, & Android Development) together is next to impossible.
I would suggest that you pick up on the basics of Java first. That will make your development with Android easier.
You should also go through this thread: Free Online Mobile Development Courses (Java, Android, etc.)
Thanks a lot.
Nice reply. I finally found the information i need. You are right. I need some java basics before starting. Actually what is the relationship between android and java?
Angjinhang said:
what is the relationship between android and java?
Click to expand...
Click to collapse
Android is an operating system. To develop Apps which work on it, you use Java, and call the various methods provided in the Android API.
Your App is compiled to bytecode. They are then converted from Java Virtual Machine-compatible .class files to Dalvik-compatible .dex (Dalvik Executable) files before installation on a device.
Dalvik is the process virtual machine (VM) in Google's Android operating system. It is the software that runs the apps on Android devices.
You can also use C++ to write for certain low level processing, which is faster than running in the Dalvik Virtual Machine.
To simpilfy you can think of android as a framework written on java like BootstrapTwitter written on JavaScript
Sent from my GT-S5302 using Tapatalk 2
So... you meen like Ubuntu is an operating system. To develop apps for it, I use python. Am I right?
Angjinhang said:
So... you meen like Ubuntu is an operating system. To develop apps for it, I use python. Am I right?
Click to expand...
Click to collapse
Exactly
Sent from my GT-S5302 using Tapatalk 2

[Q] Problem build phone package

hi! I need to build and modify the stock phone app.
I'm using Android Studio, I clone the git source (github.com/android/platform_packages_apps_phone) but when i try to build without modify anything I have this error:
/home/user/Phone/phone/src/com/android/phone/INetworkQueryServiceCallback.aidl:19: couldn't find import for class com.android.internal.telephony.OperatorInfo
I think that this class is in another packages (github.com/android/platform_frameworks_base).
How can i do?
thanks! :good:
tuttofede1 said:
hi! I need to build and modify the stock phone app.
I'm using Android Studio, I clone the git source (github.com/android/platform_packages_apps_phone) but when i try to build without modify anything I have this error:
/home/user/Phone/phone/src/com/android/phone/INetworkQueryServiceCallback.aidl:19: couldn't find import for class com.android.internal.telephony.OperatorInfo
I think that this class is in another packages (github.com/android/platform_frameworks_base).
How can i do?
thanks! :good:
Click to expand...
Click to collapse
Yeah, there are dependencies on other ROM specific packages. I don't think that you can build this without building the whole ROM.
As far as I know, all phone apps have to use an API.
ok thank you. I will build entire ROM. I think this could be the best solution.

[Q] Supporting "Somc_Color" In LP SDK? - Building Assets Via Eclipse

Hello everyone, I'm having another really annoying problem, and it's :
I Can't build assets with "somc_color" lines, like somc_color_accent_light or anything related to Xperia theming engine.
Why i don't use Apktool?
When i compile the assets with 5.0 framework, those assets will return "white" in 5.1 System, So the only solution to build it using Eclipse, And i've tried Android Studio, the same, i need to define it in the SDK, but that's hard and a waste of time maybe.
So, anyone got an idea?
I've tried up to 12 frameworks, all with the same result .
Thats I question I asked before. But I'm not sure. Very interested to know as well
yuzhengwen said:
Thats I question I asked before. But I'm not sure. Very interested to know as well
Click to expand...
Click to collapse
DeviceDefault, add this in your style to make it according to Xperia Themes, BUT the annoying thing is if you're using latest AppCompat, then you need to parent it, and it will be impossible to make the app according to Theme Colors .
Thread closed
The development forum is not the place to ask questions
Please refer to the cross development section rules and guidelines here and here

Categories

Resources