[Q] Using transparent sys bars without breaking compatibility with older versions - Java for Android App Development

Hi,
I'm developing an app and to make it look better I would like to use transparent system bars on kitkat devices but when I set it up it forces me to move the minimum api level to kitkat (19) but that means my app is only gonna show up on kitkat devices, right? So I was searching around the web to see if it's possible to use it on kitkat while keeping the compatibility for ics or jb. I couldn't find anything so I'm posting here.
EDIT 1:
it is possible, pushbullet features that functionality while compatible with ics

if(Build.VERSION.SDK_INT >= 19)
{
// your kitkat specific code
}
also add SupressLint("NewApi")
annotation to your method
voilla no more compiler issues
Sent from my GT-S5302 using Tapatalk 2

Related

How do I change Camera shortcut in Lockscreen by Modding Framework-res.apk

I would like to know how can I change the Camera shortcut in my lockscreen, since it's not that important to me. I want to change it to Messaging.
peeweew said:
I would like to know how can I change the Camera shortcut in my lockscreen, since it's not that important to me. I want to change it to Messaging.
Click to expand...
Click to collapse
Please provide:
1. Android version (e.g. 4.0 Ice Cream Sandwich)
2. Custom ROM, if any (e.g. Cyanogenmod, Paranoid Android, AOKP, etc.)
3. If you are running stock firmware on your phone, please tell which phone model you have (e.g. Samsung Galaxy s3, Sony Xperia Z, LG Optimus Black, etc.).
For future reference, the next time you have a question, make sure to post it in the android q+a section or the q+a section for your device.
Sent from my Xperia Pro using xda app-developers app
Sorry, Im using a Cherry Mobile Flare or Karbonn A9+. Stock rom based custom rom. On ICS version.
Send from my Cherry Mobile Flare using Tapatalk 2

Samsung S View Cover work with Custom roms ?

Hi,
Just wondering if the Samsung S View Cover / Spigen S View will still work with the custom roms installed on GS4 ??
Eg
Omega / Cyanogenmod / Paranoid / etc? Please let me know thanks.
heartnet89 said:
Hi,
Just wondering if the Samsung S View Cover / Spigen S View will still work with the custom roms installed on GS4 ??
Eg
Omega / Cyanogenmod / Paranoid / etc? Please let me know thanks.
Click to expand...
Click to collapse
As far as I know, the S View Cover is only working in Samsungs Stock Roms (and Custom Roms basing on a Stock Rom).
No, however, S-View support can be easily added to CyanogenMod, it's made of two simple classes in android's source code. I don't have any storage space on my PC to download CM's source code and add support for it though.
Sent from my Samsung Galaxy S4 (i9500)
I use Omega ROM and all is fine.
Sent from my GT-9505 using xda app-developers app
MohammadAG said:
No, however, S-View support can be easily added to CyanogenMod, it's made of two simple classes in android's source code.
Click to expand...
Click to collapse
Can you give us some more information about this? Which files do you mean and where can I take a look at them? Are they stored in a public repo?

[MOD][GT-I9082L][4.2.2] [CM 10.1] Grand 'Google Play Experience Edition'

UPDATED: 10/28/13. Battery Stats
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After desperately waiting for Samsung to deliver our latin variant (9082L) Galaxy Grand the Jelly Bean 4.2.2 update, and seeing that pawitp sorted out CyanogenMod's AOSP firmware, I decided to build a project in which I could maximize all of the Galaxy Grand -L's potential. I found that the Pure Android experience lacked some features that I use often (DLNA, Robust Picture and Video Gallery, etc) so I added what I consider to be the best available: Sony Xperia Media Apps.
Taking all this, plus my previous knowledge of our device's settings, I give you, The Grand Google Play Experience Edition, inspired by the S4 Google Play Edition (Pure Nexus Experience), and Sony Xperia Media Apps. Please read through all threads and their direction, for some require modding system files. Device must be ROOTED. I am NOT responsible for you bricking your device. This should also work on the I9082. I take no credit in the development of these mods, my credit goes to hours and days of testing out different ROMS, Media Packs, Scripts and Apps from many different sources and people, and making them all work smoothly and stable in our device, to seem as if it was meant to be this way.
If you find this post useful, please click THANKS! .
- - -​
CM10.1 ROM FOR GALAXY GRAND
CyanogenMod is designed to increase performance and reliability over Android-based ROMs released by vendors, it offers a variety of features & enhancements that give a pure Android experience, that similar to the Nexus/Google Play Edition line of devices. NO DUAL SIM SUPPORT: Only Primary SIM Card Slot Works. The Dual SIM feature is proprietary of Samsung.
- Install the ROM & GAPPS using ClockworkMod Recovery
- Wipe data/Dalvik if coming from Stock ROM
• ROM: CM10.1 [4.2.2] for Galaxy Grand GT-i9082/9082L (Thread)
• Google Apps for Android 4.2.2
• Modem for GT-i9082Lhttp://www.mediafire.com/download/ijtxn8ecmyq5to8/Dcamc1.tar.md5 *(My 9082L experienced signal problems, so I RECOMMEND flashing this modem)
GOOGLE PLAY EDITION BOOT ANIMATION
Original S4 Google Play Edition Boot Animation optimized for our screen.
1. Boot in CWM
2. Flash zip
3. Reboot
• Download Bootanimation
GOOGLE PLAY EDITION SUNBEAM LIVE WALLPAPER
Original S4 Google Play Edition Live Wallpaper.
• Download SunBeam Live Wallpaper
GOOGLE PLAY EDITION 4.3 CAMERA
Original S4 Google Play Edition 4.3 Camera. Working Photosphere, Volume Rocker Capture. Smooth, No Lag. Gallery loads a lot quicker. Tested several. This is the best one for our device.
1. Delete Gallery app. (Use Titanium, Uninstall Master, etc)
2. Install apk
• Download Google Edition Camera (Thread)
GOOGLE PLAY EDITION SYSTEM AUDIO
Original S4 Google Play Edition System Audio. Far less junk sound than CM. Use File Manager to select the UI Sounds (Charger Connecting,etc)
1. Decompress Zip
2. Push folder to system/media/audio (requires a root level file manager) {Tip: Some File Manager will require you to change original audio folder name, ex: audio-bkp, then delete.
• Download Google Edition System Audio
ANDROID 4.3 SYSTEM FONTS
New updated Roboto font. Cleaner display, but not noticeable on small fonts due to our screen's resolution.
1. Boot in CWM
2. Flash zip
3. Reboot
• Download Android 4.3 System Fonts
SONY XPERIA Z MEDIA PACK
The one thing lacking in pure Android is a robust media package, and this perhaps is the only thing I miss from the Samsung package. Sony has a much more robust and integrated media pack which brings back all the goodies one may miss; Organized and pinch-zoom albums, access to pictures and music from other sources, better audio quality and adaptations. Out of the several ports available, this particular Xperia media pack runs perfectly on the Grand, with the only exception of downloading song information (artwork and track info). And Yes, DLNA if working on this port.
1. Boot in CWM
2. Flash zip
3. Reboot
* DSP Manager must be frozen, stopped or deleted. Sony sound enhancement will now perform that sound processing.
• Download Sony Xperia Media Pack (Developer)
PERFORMANCE TWEAKS​
There are numerous apps and scripts out there. After trying just about all of them, the following mix and matching of tweaks has yielded the best performance for my device. I am getting a consistent 11400 - 11600 on Antutu's Benchmarking tests and best of all, a steady line of stability and temperature readings. You are welcome to further tweak, but it's been thoroughly test for hours, days and nights. I have gotten really close to breaking 12000, so I'll keep you all posted.
SUPREMACY TRILOGY SCRIPT
Many tweaks in one simple flash.
Features: Better ram allocation, More free ram (clearing cache), Faster GUI, UI processed by GPU, Loopy smoothness tweak, Apps zipaligned at every boot, Faster Networking, SQlite database optimizations, Lag fixer, Smoother LWP animation, Adrenaline boost and more...
1. Boot in CWM
2. Wipe Dalvik Cache
3. Flash zip
4. Reboot
• Download Supermacy Script V3 (Thread)
PIMP MY ROM (BETA)
ONLY USE THE ENTROPY GENERATOR. You are welcome to use other tools and tweaks, but use at your own risk. Noticed further tweaking only decreases performance. The Supremacy Script does a better job and already handles most of the tweaks offered here, with great settings. No other Entropy Generator works as well as this one though. Before tweaking, make Rescue Package is recommended.
1. Select Tools-> Entropy Generator: ON | Feed Interval: 1 sec. | Fill Watermark: 90% | Randon Read & Write Wakeup Threshold: Detect Average |
2. Press Save (Diskette Icon)
• Download Pimp My Rom (Thread)
SD CARD SPEED BOOST
I read on people suggesting all sorts of cache sizes for their SD cards, and though it is true that it works, this is the way I believe you should choose your cache size. I've gotten 100% speed increase and write, and 50% increase in read.
Recommended optimization method:
1. Download ROM TOOLBOX LITE or PRO
2. In the performance section, select SD BOOSTER
3. Under Benchmark, Run a test a 500MB size and all cache sizes selected.
4. Choose the size with the highest read/write values.
5. Apply cache value. And select to apply on boot. (You can use this or any other SD Card cache app, I use this app for it's benchmarking only)
• Download ROM Toolbox Lite
{PERFORMANCE TESTING NOTES} 10/28/13
BATTERY STATISTICS - People in the CM10 thread are commenting about massive power drains. This is what you can expect from this CM10.1 and my mods. Like I said in the CM10 thread: "It doesn't get more horizontal than this" *Results may vary, depending on software, my device is about 60% full.
Will this support dual sim?
Yeah! Well this support dual SIM?
Sent from my GT-I9082 using XDA Premium 4 mobile app
hunter0389 said:
Will this support dual sim?
Click to expand...
Click to collapse
donnie.darko said:
Yeah! Well this support dual SIM?
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is a MOD not a ROM. If the base ROM on which this is flashed on supports dual SIM then it will. At the moment CM10.1 does not support dual SIM.
@Paul_Days Nice to see a new dev for our grand community. Looking forward to this mod
iceyhotguy said:
This is a MOD not a ROM. If the base ROM on which this is flashed on supports dual SIM then it will. At the moment CM10.1 does not support dual SIM.
@Paul_Days Nice to see a new dev for our grand community. Looking forward to this mod
Click to expand...
Click to collapse
How is this mod different from xenons this http://forum.xda-developers.com/showthread.php?t=2482207 mod
Sent from my GT-I9082 using XDA Premium 4 mobile app
androidbaba said:
How is this mod different from xenons this http://forum.xda-developers.com/showthread.php?t=2482207 mod
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Not sure, we will see when both of them are released or the dev here lists all the details
iceyhotguy said:
This is a MOD not a ROM. If the base ROM on which this is flashed on supports dual SIM then it will. At the moment CM10.1 does not support dual SIM.
@Paul_Days Nice to see a new dev for our grand community. Looking forward to this mod
Click to expand...
Click to collapse
@iceyhotguy Absolutely right, No Dual SIM Support. I'm sorting out all the files, for many have broken features, and some have them working right, etc. You know how it is....just making my Galaxy as 'Grand' as it can be. But...several flashable system mods are giving me better performance results than Pimp My Rom....so it looks like I'm scratching the PMR tweaks, for zip scripts.
Cheers,
Paul
androidbaba said:
How is this mod different from xenons this http://forum.xda-developers.com/showthread.php?t=2482207 mod
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
will OP care to answer this??
androidbaba said:
will OP care to answer this??
Click to expand...
Click to collapse
This MOD is to have the Galaxy Grand be like the Google PlayEdition devices. The only similarity I can see between these mods and the link provided is that the Xperia Media Apps and only these are an optional install. In my case, I use a lot of DLNA media streaming, CM10 nor Samsung alone can provide this, but the available Xperia apps are out there and perform this. I am not here to add fonts, launchers, and such to make the device into an Xperia, but more to a Google Play Edition: Bare Bones, fast, stable.
Paul_Days said:
This MOD is to have the Galaxy Grand be like the Google PlayEdition devices. The only similarity I can see between these mods and the link provided is that the Xperia Media Apps and only these are an optional install. In my case, I use a lot of DLNA media streaming, CM10 nor Samsung alone can provide this, but the available Xperia apps are out there and perform this. I am not here to add fonts, launchers, and such to make the device into an Xperia, but more to a Google Play Edition: Bare Bones, fast, stable.
Click to expand...
Click to collapse
thanks for your reply and waiting for the great rom/mod..:good:
Will These mods work for 4.2.2? and can I flash these mods for Stock 4.2.2 odex version..? Please reply..
Thanks in advance..
Sent from my GT-I9082 using Tapatalk 2
Parth2187 said:
Will These mods work for 4.2.2? and can I flash these mods for Stock 4.2.2 odex version..? Please reply..
Thanks in advance..
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
read the op and title carefully dear its for 10.1 ONLY
androidbaba said:
read the op and title carefully dear its for 10.1 ONLY
Click to expand...
Click to collapse
Oh.. Sorry for wrong post..
Sent from my GT-I9082 using Tapatalk 2
@Paul_Days Camera download link broken.
iceyhotguy said:
@Paul_Days Camera download link broken.
Click to expand...
Click to collapse
@iceyhotguy: Fixed it, and kinda glad that the other link I had was wrong, with the original link, I started getting force quits, it was a ported 4.3 cam, this one that I included now, which was available also loads a lot quicker and after using all the features, no FC or lags.
Thanks for the patience....mainly I'm testing some system tweaks, some new that I've never seen, I've gotten score of 11949 on antutu and trying as a personal goal to break 12000, lol. I'm sure that if I had a Class 10 card i'd gotten over it.
Benchmark
Update: This testing out some performance tweaks. No Overclocking.
Paul_Days said:
@iceyhotguy: Fixed it, and kinda glad that the other link I had was wrong, with the original link, I started getting force quits, it was a ported 4.3 cam, this one that I included now, which was available also loads a lot quicker and after using all the features, no FC or lags.
Thanks for the patience....mainly I'm testing some system tweaks, some new that I've never seen, I've gotten score of 11949 on antutu and trying as a personal goal to break 12000, lol. I'm sure that if I had a Class 10 card i'd gotten over it.
Click to expand...
Click to collapse
Check some of the tweaks I posted if you haven't already altered VM Settings outside of the script : http://forum.xda-developers.com/showthread.php?t=2476926
I have 11680-11740 score on my CM10.1 with these and some other tweaks : zero lag, 430-517 MB RAM free on an average with 180+ apps installed, no scripts uptil now.
About to give the camera a try, been relying on lenevo super cam uptil now
Gonna try the camera and script now, will post the results
UPDATE : Script installed without problems, minor benchmark boosts, little smoother. Like all scripts true effects can be seen in everyday use, not right away. The VM settings I altered are not in the script, so they can be applied with it, you'll notice the effect as soon as you apply them
Camera not installing for me, think I messed up the original gallery apk afew days ago too much but that's my fault
Waiting patiently for the mod..
Sent from my GT-I9082 using XDA Premium 4 mobile app
Will ported camera replace stock camera app in i9082l? thanks!
Looking nice
Try soon
Sent from my GT-I9100 using XDA Premium 4 mobile app

[ROM][KK 4.4.2][20/05/2014] Unofficial SuperNexus KK4.4.2 build 1.2.5 port

This is a port of [ROM][UNOFFICIAL][AOSP][KK][4.4.2][KOT49H] SuperNexus 4.0 for the Samsung Captivate.
All the hard work was done by aways so spam his thanks button!
The main idea behind SuperNexus is to provide stock Android experience, just like how Google intended it to be. SuperNexus is entirely built from Google's AOSP source. A lot of improvements and optimisations have been done to the Google's Source Code to have the best possible Vanilla Android Experience. SuperNexus is very light too as there are no 3rd party apps (ZERO Bloatware).
System Details:
Android 4.4.2 KitKat (KOT49H - Android-4.4.2_r1)
All KitKat features and apps (Nothing excluded from AOSP)
No Visual Changes!
Stock KitKat look and feel
This will turn your Samsung Captivate into a Nexus 5
ROM Features:
Deodexed
Rooted (Super SU)
BusyBox Installed
No 3rd Party App
ZERO Bloatware
Android Source Code vastly improved and optimised (i.e. Bionic, Dalvik, Webkit, Framework, libcore, SQlite etc - Thanks to CAF)
Init.d Support
Rsync Support
UserInit Support
Bash & Nano Support
Native SIP/VOIP Support
OpenSSH Support (ssh, sshd, scp, stfp)
HSPA+ Support
OpenVPN Support
Ad-Hoc Network Support
exFAT and NTFS-3G support
EXT4 File System Optimisations
Large APN & SPN List
SELinux enabled
Framework Features:
-Extended Power Menu (Reboot, Recovery, Download & Screenshot Options)
-Tweaked Animation Values Of Progress Spinners (Silky Smooth Loading Spinners)
-Options for switching between USB Mass Storage and MTP/PTP (On Specific Devices)
Browser Features:-
-Increased Maximum Tab limit from 16 to 64
-Option To Close All Tabs With One-Click
-Allowed Any Type Of File To Be Downloaded
Phone Features:-
-Noise Suppression
Miscellaneous Features:
-Allowed Installation Of Apps From Unknown Sources By Default
-Disabled Data Roaming By Default
-Removed Google's Software Updates Option from Settings
-Enabled Gesture Input By default
-Emoji Enabled by default
-Hardware Information of the device (Settings>About Device>Hardware Information)
DOWNLOAD SuperNexus KK4.4.2 build 1.2.5
GAPPS: PARANOID MINI MODULAR PACKAGE (ART compatible)
Goo.im
Android File Host
Dev-Host
OLD ROMS:
DOWNLOAD SuperNexus KK4.4.2 build 1.1.1
If you need more customization install Xposed Framework and Gravity Box: most of the Gravity Box mods will work.
A special thank to pawitp, Alberto96, mohammad.afaneh and cannondaleV2000 for the kernels.
First! ( Oh, dream come true to say that )
Anyway, thanks for this fresh work! I'll try it later on
This is really smooth nice feel to it and sure feels like you have a Nexus
Monfro said:
This is a port of [ROM][UNOFFICIAL][AOSP][KK][4.4.2][KOT49H] SuperNexus 4.0 for the Samsung Captivate.
All the hard work was done by aways so spam his thanks button!
The main idea behind SuperNexus is to provide stock Android experience, just like how Google intended it to be. SuperNexus is entirely built from Google's AOSP source. A lot of improvements and optimisations have been done to the Google's Source Code to have the best possible Vanilla Android Experience. SuperNexus is very light too as there are no 3rd party apps (ZERO Bloatware).
System Details:
Android 4.4.2 KitKat (KOT49H - Android-4.4.2_r1)
NeatKernel with CMA
All KitKat features and apps (Nothing excluded from AOSP)
No Visual Changes!
Stock KitKat look and feel
This will turn your Samsung Captivate into a Nexus 5
ROM Features:
Deodexed
Rooted (Super SU)
BusyBox Installed
No 3rd Party App
ZERO Bloatware
Android Source Code vastly improved and optimised (i.e. Bionic, Dalvik, Webkit, Framework, libcore, SQlite etc - Thanks to CAF)
Init.d Support
Rsync Support
UserInit Support
Bash & Nano Support
Native SIP/VOIP Support
OpenSSH Support (ssh, sshd, scp, stfp)
HSPA+ Support
OpenVPN Support
Ad-Hoc Network Support
exFAT and NTFS-3G support
EXT4 File System Optimisations
Large APN & SPN List
SELinux enabled
Framework Features:
-Extended Power Menu (Reboot, Recovery, Download & Screenshot Options)
-Tweaked Animation Values Of Progress Spinners (Silky Smooth Loading Spinners)
-Options for switching between USB Mass Storage and MTP/PTP (On Specific Devices)
Browser Features:-
-Increased Maximum Tab limit from 16 to 64
-Option To Close All Tabs With One-Click
-Allowed Any Type Of File To Be Downloaded
Phone Features:-
-Noise Suppression
Miscellaneous Features:
-Allowed Installation Of Apps From Unknown Sources By Default
-Disabled Data Roaming By Default
-Removed Google's Software Updates Option from Settings
-Enabled Gesture Input By default
-Emoji Enabled by default
-Hardware Information of the device (Settings>About Device>Hardware Information)
DOWNLOAD SuperNexus 4.0 build 1.1.1
DOWNLOAD GAPPS
If you need more customization install Xposed Framework and Gravity Box: most of the Gravity Box mods will work.
A special thank to pawitp, Alberto96, mohammad.afaneh and cannondaleV2000 for the kernels.
Click to expand...
Click to collapse
Cant wait to try it.
Sent from my SGH-I897 using xda app-developers app
.
Sent from my SGH-I897 using Tapatalk 2
Great port. Pretty much exactly what I was looking for on the old Captivate.
Sent from my GT-I9505G using xda app-developers app
hey guys how is everyone? Great ROM by the way, I am just wondering if there is a way to enable volume button wake nativly from settings or do I have to download an app to activate it?
Plans to update to build 1.2? (Has call delay Fixed )
ManaSV93 said:
Plans to update to build 1.2? (Has call delay Fixed )
Click to expand...
Click to collapse
It was already included in this build.. For this reason I called it 1.1.1 and not 1.1 as the original.
Rom updated.
Link to new gapps.
I see a lot of people downloading Supernexus. I suggest to try SlimKat from my other thread: seems to run smoother.
slimkat vs supernexus
Monfro said:
I see a lot of people downloading Supernexus. I suggest to try SlimKat from my other thread: seems to run smoother.
Click to expand...
Click to collapse
I ran Slimkat last month and Supernexus this month. Slim has a few more inherent features that GravityBox alone cannot help Supernexus with. I have liked both ROMs so far. I am thinking of switching back to Slimkat- the memory management seems to be different on Supernexus and occasionally my media player closes when in the background- not a big deal though. I am going to try both with Neat kernel 1.09.
Thank you very much @Monfro :good:
@Monfro any chance we'll see a 4.4.3 update to supernexus
Sent from my SGH-I897 using XDA Premium 4 mobile app
Can't seem to get pa_gapps to install. It says it's successful, but they're not there when I reboot?
Maybe try to redownload pa_gapps, and try again?
Sent from my SGH-I897 using XDA Premium 4 mobile app
swiftlycreepin said:
@Monfro any chance we'll see a 4.4.3 update to supernexus
Sent from my SGH-I897 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Probably not, since original Supernexus is no more updated.
Slim, CM11 and Omni now have a better optimized base.
Alright. I'm currently running a minimal install of ArchiDroid, when I posted that I was still running the port of SN
Sent from my SGH-I897 using XDA Premium 4 mobile app
Need help...
Tried to flash this ROM, i did a factory wipe, flashed it, now stuck on Semaphore logo. (coming from 2.3.5 based Legend v.6 ROM)
Its not the apps. It might possibly be how the space is partitioned. Im coming from SlimBean rom if it helps.
swiftlycreepin said:
Maybe try to redownload pa_gapps, and try again?
Sent from my SGH-I897 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sent from my ME173X using XDA Free mobile app
Uhm. Maybe try flashing from stock?
Sent from my Rogers Captivate (sgh-i896)

[Q] Android Studio build error - Google Drive

I'm totally new to android Dev.
I'm trying to create an app that can access Google Drive. I have done all the developer setup on the Google console.
I used SDK manager to install google play services etc.
See this link for everything I did:
https://developers.google.com/drive/android/get-started
For some reason I'm getting the following error:
cannot find symbol variable mGoogleApiClient
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
I'm missing a library or something. Can anyone suggest why this would be?
You forgot to give a data type for mGoogleApiClient, i guess that is the problem:
GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)
---------------------------------
Gesendet von Tapatalk
Thanks for that, looks like that could the issue! Will check tomorrow
Cheers!
Cheers man, no problem
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)
---------------------------------
Gesendet von Tapatalk
I added that this morning and I'm still getting these errors:
cannot find symbol class GoogleApiClient
cannot find symbol variable Drive
package GoogleApiClient does not exist
I have definately installed Google Repository and Google play services using the Android SDK Manager.
Do I need to do anything else in Android Studio?
I have this in my build.gradle:
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'com.google.android.gmslay-services:4.2.42'
}
Mh ok did you import the needed packages inside your activity? Like
import java.lang.* (just an example, i dont know the exact package for the GoogleApiClient)
In eclipse you can automatically insert needed imports by pressing CTRL+SHIFT+O
I have never used android studio so i have no idea if you can do automatic imports or how it works there..
Because to use some predefined class, you obviously first have to download/install/whatever that package. But then you have to tell java that you want to use it in that one specific activity by inserting that import (or imports, not sure)... Thing directly under the class header
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)
---------------------------------
Gesendet von Tapatalk
Thanks - it looks like I needed to import the packages, I've done that and it's working now!
Masrepus said:
Mh ok did you import the needed packages inside your activity? Like
import java.lang.* (just an example, i dont know the exact package for the GoogleApiClient)
In eclipse you can automatically insert needed imports by pressing CTRL+SHIFT+O
I have never used android studio so i have no idea if you can do automatic imports or how it works there..
Because to use some predefined class, you obviously first have to download/install/whatever that package. But then you have to tell java that you want to use it in that one specific activity by inserting that import (or imports, not sure)... Thing directly under the class header
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)
---------------------------------
Gesendet von Tapatalk
Click to expand...
Click to collapse
Great!
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods (but only for the first time ;D)
---------------------------------
Gesendet von Tapatalk

Categories

Resources