[Q] Adding Events to Caldroid - Java for Android App Development

Hey there everybody,
I needed a calendar library that would help me add custom events from my server to the app.Searching around for it and I Found ExtendedCalendarView and Caldroid, However, ECV doesn't support androids below API14.Leaving me with Caldroid.
I Was amazed to see how easy it was to implement it in my app but I wasn't able to do what I wanted it for.Add custom events.
I Read the documentation and figured that there are no functions for doing that and we have to implement it ourselves.
So i tried adding it but i failed in even assigning a custom background for a date.I Tried various methods and sometimes it did nothing and sometimes it just crashed.
Can anybody help me with setting custom events to it?

caldroid events
hi, how do you make the events using caldroid? thankyou.

Related

[Q] Detecting homescreen

Hey guys,
In an effort to 'hack' the Sense homescreen to use a custom launch/shortcut bar, I am creating an app that needs to know if the homescreen is currently visible. With this, I need some help.
I've been looking at four possibilities to do this:
1. constantly poll the window manager for the current activity. This works, however my battery doesn't like this and it's generally bad practice.
2. Use a widget to tell the service wether it's active. Too bad, Android doesn't seem to provide some kind of event to a widget when the homescreen is opened. Strange though, as you'd say this would be very useful when updating widgets. Am I overlooking something?
3. Watch the logcat or message broadcast. This works nicely to intercept a user moving away from the homescreen at it will output this when switching activities:
08-22 12:25:28.891: VERBOSE/HtcAppUsageStats(255): (launch app, package): (People, com.android.htccontacts)
I think I could intercept that, but then there's another problem. Pressing home broadcasts this message for com.htc.launcher, however using the back key (or even software options) to move back to the homescreen do not invoke this.
4. Intercept hardware presses. This seems rather hard when you don't want to actually do something with the presses. This combined with the above method would give me a decent way to see if the homescreen is active.
But all of those methods just don't work the way I want them to. Anyone got a clue on how to accomplish this? I don't mind if I require root access or some dirty programming, by the way. After all, it's some sort of a hack.
A push in the right direction would be very welcome
Quick kick. No one knows a solution for this?
Sent from my HTC Sensation Z710e using XDA App
If this is just for sense, have you checked the openSense sdk?
From something awesome
I haven't really looked into this, I also have no experience with widgets, but using my general knowledge in how Android works, concerning 2), does the widget not receive a visibility change? I know for LiveWallpapers there is a void VisibilityChanged(boolean visible) method that allows it to update when visible. Do Widgets not have this?
killersnowman said:
If this is just for sense, have you checked the openSense sdk?
From something awesome
Click to expand...
Click to collapse
Couldn't find the documentation of it. But it must be somewhere, this is indeed another option to look into.
Metastable said:
I haven't really looked into this, I also have no experience with widgets, but using my general knowledge in how Android works, concerning 2), does the widget not receive a visibility change? I know for LiveWallpapers there is a void VisibilityChanged(boolean visible) method that allows it to update when visible. Do Widgets not have this?
Click to expand...
Click to collapse
I've tried all the event listeners I could find in the reference. I don't remember the VisibilityChanged method thou, will look into that tonight. Otherwise I might be able to build a Live Wallpaper and hook it to a service.. Interesting
Thanks both!

Fragment Tab-Pager

I am having trouble implementing the Pager and TabsPager from the examples into my apps. Has anyone successfully (besides the Google Devs) implemented these into their apps? I'm also wanting to know how to make fragments (necessary for the ViewPager). Every attempt I've done ends in force closes. Can anyone help? Thanks in advance

Requesting Help: Would like to add and "Add Account" Option on List View..

Requesting Help for an Application I am modifying., There is a very simple Password Manager called UPM, and basically I have been modifying it's base code to have additional features. The original Code is located at "github.com/adrian/upm-android", and the modified code I am working on is at "github.com/servingbaby/UPM-Epassafe".
So far I have been successful in implementing most of the changes I have planned for. I'm currently stuck though with one change I would like to put in. In the Listview, when long press on one of the items, I currently have the choice to edit that particular item. I would like to add the option to also delete that current item.
I have attempted different avenues of implementing the code that would do this, however I keep coming up short as the best way to get this to work.
I would really appreciate some help in solving this issue.
The particular files I have been looking at are, AccountsList.java, AddEditAccount.java, FullAccountList.java, ViewAccountDetails.java, and account_context_menu.xml.
Thankyou for any advice!
In the onlongclicklistener method you should inflate a contextmenu. You can add options in an xml file or programatically ( http://developer.android.com/guide/topics/ui/menus.html).
Sent from my NexusHD2 using xda app-developers app
Thank you for your advice. I've pretty much modified the program in so many areas. Almost like a different program now. Ended up changing a lot of features and adding some. There's only one more thing left for me to do before I declare beta over and that is to get a delete account option from the context menu from List View. It's been the one thing I've had the hardest time with.

[Q] Application using Backend Services

Hello,
I'm new here and just starting to dabble with Android app development.
I've installed android studio and began playing around with it making a few Activities just to try it out and begin building my knowledge. I want to make an app where users will need to authenticate then pull data from a server (via an API). I followed this guide (google how-to-build-mobile-app-with-app-engine-backend-tutorial to find, can't post link) to add the app engine backend to it, but I couldn't finish it because I couldn't find the RegisterActivity so I decided to take a break and come ask here.
I'm very new to this, trying to warm up to the Android activities/layouts/things so I'd appreciate it if someone could link me some tutorials or guides on setting up a backend that will be able to interact with my app to perform things like registering, logging in and fetching data? Instagram would be a good example (I'm not making a photo sharing app but the functionality in terms of signing in then fetching your photos from the feed is a similar idea of what I want to do).
I have solid knowledge in web development languages and Java but am still trying to grasp this all.
Thanks for any and all help!
Daniel

Need help developing a lockscreen android

Hey guys, I plan on creating an app but I need some tips and/or tricks to help me get started. I do plan on releasing the app on here (Using XDADevelopers) first to get some attention, then release it on the Google Play store. Here are the details of the app:
App Type: Lockscreen Customization
Minimal SDK: API 16 (JellyBean)*
Testing Device: Samsung S6 Edge (Rooted, running Android Marshmallow)
IDE: Android Studio
Key Components:
The app must be able to detect weither the home button is being pressed (which makes the phone access to the launcher, we dont want that) and quickly intercept the action and return back to the locker
Allow to lots, and I mean LOTS of customability (Much like C Locker, which is the app that has inspired me ^^), some of these customizations include the following:
App widgets and custom widgets like images, text, sprites, etc
LED/Vibration/Notifcation settings for apps
Change speed of animations (Like NovaLauncher does), also be able to choose different types of animations for the lockscreen
Customize colors in app
Integrate Android Wear (make the watch vibrate or ring your phone is low on power, or when the connection is lost)
Different lockscreens that show whenever the conditions configured are met, similar to C Locker (like bluetooth connections, music playing, WiFi, SmartLock conditions ,etc)
This is the cricual part: MUST have several different unlock unlock, like fingerprint (Thanks to Android 6.0.1), pattern, pin, SmartLock, Slide-To-Unlock, and Gestures
Be able to integrate as a plugin for Tasker, like have tasker check for launched apps
Intregrate voice assistants like Google Now/Google Assistant, S Voice, and such others
Have high and steady performance for all phones like. Also not be a resource hog!
This may is maybe feature: Be able to do functions like override the system settings and bypass system lock via root
Utilize Material style (this is a personal preference tbh)
I will add in some more ideas I have for the app.. Actually, I haven't gotten a good name for the app, but I'm thinking of Trinity Locker.
As you can see, I have numerous of ideas for this app.. all I need is some help with creating it. I will warn you guys this, I am pretty new to Android development (I typically code on Minecraft, even created some pretty decent mods), so I need some guidance on what and how things work with the Android system. I do have some coding experience from coding mods for Minecraft and taking a class on the basics of C++. If you guys have some ideas or tips and tricks to give, I'm all ears. Thank you!
NOTE: Anything with a * means that it is subject to change!
Oh yeah, I forgot to mention, I did also have a chance of using MIT App Inventor so I have a small foundation of the Android development. But I am new to Android Studio, so I need some tips with using that as well.
ALSO, to crucially note, I am in high school.. So I may not have time to respond to everyone/program the app since I have majority of my classes are cross college (or to most known as Dual Enrollment or Advanced Placement (AP)) courses :crying:. Oh and I live in the Central US Timezone, so my time will be different (or the same) for most
NovaViper said:
Hey guys, I plan on creating an app but I need some tips and/or tricks to help me get started. I do plan on releasing the app on here (Using XDADevelopers) first to get some attention, then release it on the Google Play store. Here are the details of the app:
App Type: Lockscreen Customization
Minimal SDK: API 16 (JellyBean)
Recommended SDK: API 23-24 (Marshmallow and Nogaut)
Testing Device: Samsung S6 Edge (Rooted, running Android Marshmallow)
IDE: Android Studio
Key Components:
The app must be able to detect weither the home button is being pressed (which makes the phone access to the launcher, we dont want that) and quickly intercept the action and return back to the locker
Allow to lots, and I mean LOTS of customability (Much like C Locker, which is the app that has inspired me ^^), some of these customizations include the following:
App widgets and custom widgets like images, text, sprites, etc
LED/Vibration/Notifcation settings for apps
Change speed of animations (Like NovaLauncher does), also be able to choose different types of animations for the lockscreen
Customize colors in app
Integrate Android Wear (make the watch vibrate or ring your phone is low on power, or when the connection is lost)
Different lockscreens that show whenever the conditions configured are met, similar to C Locker (like bluetooth connections, music playing, WiFi, SmartLock conditions ,etc)
This is the cricual part: MUST have several different unlock unlock, like fingerprint (Thanks to Android 6.0.1), pattern, pin, SmartLock, Slide-To-Unlock, and Gestures
Be able to integrate as a plugin for Tasker, like have tasker check for launched apps
Intregrate voice assistants like Google Now/Google Assistant, S Voice, and such others
Have high and steady performance for all phones like. Also not be a resource hog!
This may is maybe feature: Be able to do functions like override the system settings and bypass system lock via root
Utilize Material style (this is a personal preference tbh)
I will add in some more ideas I have for the app.. Actually, I haven't gotten a good name for the app, but I'm thinking of Trinity Locker.
As you can see, I have numerous of ideas for this app.. all I need is some help with creating it. I will warn you guys this, I am pretty new to Android development (I typically code on Minecraft, even created some pretty decent mods), so I need some guidance on what and how things work with the Android system. I do have some coding experience from coding mods for Minecraft and taking a class on the basics of C++. If you guys have some ideas or tips and tricks to give, I'm all ears. Thank you!
Click to expand...
Click to collapse
You can only choose one minimum or target API level
Sent from my GT-S7580 using Tapatalk
DodoGTA said:
You can only choose one minimum or target API level
Click to expand...
Click to collapse
What I meant by the recommended api is the api I'm starting on first (since that's what Android Studio defaultly sets mento the develop on the latest first)
Hey I have gotten the first bits of the app started! I'm trying to work on the setup phase of the app (where the app asks for permissions and basic settings to start). I even got the code uploaded on Github. Oh also, I might create a XDA Developer project and start adding some info there
Hey guys! I've been adding lots of stuff to the app! If you guys notice something off with the coding, please let me now at Github! Thanks!

Categories

Resources