Coder Social home page Coder Social logo

pbcare's Introduction

Pregnancy and Baby Care Application

Nowadays, many pregnant women suffer from lack of knowledge about pregnancy period because of poor awareness they might receive from the health providers. They do not know what is the appropriate way to handle this new condition that they’re going through. For pregnancy period and after birth. There are a lot of important notes that a new mother should consider when the baby is two months old. More then five vaccinations the baby should take in his first year.

Our application comes as a solution for those mothers. Pregnancy & Baby Care Application helps a mother to be aware of the important events during her pregnancy and on year after birth. The application provides an environment where mothers can share their experience between each other. They can ask question privately to a specialist doctor and he will answer to them. One of the feature that will help mother to be aware if her child crawls out of bedroom is a door sensor, this sensor will alarm mother’s using Bluetooth connection.

Our application now is running on Android and iOS devices to support more users. The website is up and running on azure server with MySQL database for handling data. and the door sensor is ready to use inside a littlie box so it can nicely placed in on side of bedroom door.

.....

pbcare's People

Contributors

saudmakeen avatar ibragh avatar

Watchers

 avatar  avatar

pbcare's Issues

Android only allows one navigation page on screen at a time issue

After login page (LoginPage.cs) there will be a push navigation to the main page (MyPage.cs). which contain a navigation page for each tabbed page.. Android only supports one navigation page at a time. This is an Android limitation. In iOS it works.
So now we have to develop our application starting the application from (MyPage.cs). Not (LoginPage.cs). until we solve this problem

@SaudMakeen

CarouselPage: doesn't load pages in android

I have a carousal page which contain collection of content pages. I used this approach for creating the carousal page -because i have more then 30 content pages-

Assign a collection to the ItemsSource property and assign a DataTemplate to the ItemTemplate property to return ContentPage instances for objects in the collection.

Everything was working fine on iOS and android .. but suddenly for unknown reason it stopped working on android -on iOS it works perfect-.

I tried the other approach:

Populate the CarouselPage with a collection of child ContentPage instances.

it works fine. but i don't wont to use it.

I need to use the other approach for some reasons.

This is my Carousal Page class :

PregnancyWeekly[] d = new PregnancyWeekly[40];
for (int i = 1; i < 40; i++) {
        d[i] = new PregnancyWeekly("Week "+i,info [i]);
}
this.ItemsSource =d;

this.ItemTemplate = new DataTemplate (() => {
    return new PregnancyWeeklyPage (); // ContentPage
});
this.SelectedItem = ((PregnancyWeekly[])ItemsSource) [2];

And this is my content page PregnancyWeeklyPage();

public class PregnancyWeeklyPage : ContentPage
    {

        public PregnancyWeeklyPage ()
        {
            Label WeekLabel = new Label {
                FontSize = 50,
                HorizontalOptions = LayoutOptions.Center, TextColor = Color.Red
            };
            Label messageLabel = new Label { 
                FontSize = 20,
                HorizontalOptions = LayoutOptions.Center, TextColor = Color.Red
            };
            WeekLabel.SetBinding (Label.TextProperty, "week");
            messageLabel.SetBinding (Label.TextProperty, "message");

            this.Content = new StackLayout {
                Children = {
                    WeekLabel, messageLabel
                }
            };  
        }

Screenshot

On iOS i can slide between pages and it is working fine. on android it is not showing anything

Exception : Could not open database in Andriod

After testing a local database in iPhone and it works good. i pushed the files here. but after that i decided to test it on android so my friend Saud can work with it.
when i test it on android the application stopes. after debugging it appears that there is an excption at the SQLite_Driod file, at these lines

            var path = "/Users/ibrahim/Projects/pbcare_resources/pbcare.db";

            var conn = new SQLite.SQLiteConnection (path);

            // Return the database connection 
            return conn;

I change the path but it didn't work.
I test it in iPhone simulator again and it works.. So there is a problem in android configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.