28 Haziran 2017 Çarşamba

HELP DISABLED PEOPLE - MAKE EVERYONE VISIBLE

Hello everyone today I am going to talk about the website that I developed for disabled people. Here is the link. Click here for Turkısh version of this post.

Now I am going to explain the aim of the website and how to use it:
  • Helper and disabled person should register to system. If user type is selected as “Disabled” new text box should be appear for disabled to enter her/his story, what is her/his disability, what are her/his needs etc. If conditions are satisfied, operation should be completed succesfully.

  • If user type is selected as helper, they should have 2 pages available. One page for helper is home page. In helpers home page, story of disabled persons should be listed. Below every story there should be button to show comments about story, a button to report the post and a button to mark the post as helped. In the right corner of every post there should be “+” button to add that post to helpers’s list. Helper can write comment to learn more about disabled person.

  • Second page for helper is "My List" page. Helper can add a post to his list to follow disabled. 

  • If helper helped that disabled, he can click "Mark As Helped" button. By this way other helpers can see how many people helped a disabled.

  • Also helper can remove a post from his list.

  • If “helper” wants to report post for some reason (may think disabled person is not disabled in real life etc.),  he can click Report Post button that is placed under the story that he will report. If number of reports about a story becomes five, then disabled users acount becomes disable and that user cannot login to the system.

  • In disabled home page, they can only see their story and comment to their story. They can write comments to their stories also.

Now there are some data for trial purposes. I don't get any money from this project. I just want to make sure we can satisfy disabled person need. I write this here because by this way, many people can see and use it. I am open to any idea.

Thank you for reading. 

ENGELLİ BİREYLERE YARDIM ETMEK

Herkese merhaba bu yazımda tez projem olarak oluşturduğum siteden bahsetmek istiyorum.
Sitemin linki burada yer alıyor.  Click here for English version of this post.

Ben öncelikle işlevinden bahsetmek istiyorum. 
  • Yardıma ihtiyacı olan engelli bireyler, kendileri yapamayacak durumdaysa onlar adına bir kişi, sisteme üye oluyorlar. Üye olurken kendilerinde kısaca hastalıkları ve ihtiyaçları hakkında bilgi girmeleri bekleniyor.

  •  Gönüllü kişiler sisteme giriş yaptıklarında giriş yaptıklarında anasayfalarında engellilerin hikayelerini görüyorlar. Yorum yapıp daha fazla bilgi sahibi olabiliyorlar. Daha yakından takip etmek için kendi listelerine ekleyebiliyorlar. 

  • Gönüllü üyeler yardım ettikleri engelli bireylerin hikayelerini yardım edildi olarak işaretleyip diğer kişilerinde kaç kişi tarafında yardım edildiği konusunda bilgi sahibi olması sağlanıyor. Bu şekilde gönüllü üyelerimiz daha fazla yardıma ihtiyacı olan kişilere yardım edebiliyorlar. 

  • Gönüllü üyeler eğer engelli bireyin hikayesinin gerçek olduğuna inanmıyorsa, engelli kişinin hikayesini şikayet edebilirler. Şikayet sayısı 5 olduğunda engelli kişinin sisteme giriş yapması engelleniyor. 

  • Engelli birey ise sayfasında sadece kendi hikayesini ve yapılan yorumları görebilir. Yorum yapabilir.
Şu an sitede deneme amaçlı veriler yer alıyor. Bu proje üzerinden herhangi bir maddi kazancım yok.  Sadece ihtiyacı olan kişilere ulaşmasını ve yardımcı olmasını istiyorum. Ve buradan mümkün olduğunca çok kişiye duyurmayı amaçlıyorum. Önerilere açığım.

Okuduğunuz için teşekkür ederim.

24 Haziran 2017 Cumartesi

ANDROID - FOTOGRAF VE VIDEO CEKMEK - USING CAMERA AND VIDEO

Bu yazimda fotograf ve video cekmeyi ve bunlari ekranda gostermeyi anlatacagim. Bunun icin camera kullanacagiz.
Projemizi olusturup activity_main.xml layoutumuza iki tane button, imageView ve videoView ekleyecegim. Butonlardan birisi fotograf cekmek, digeri ise video cekmek icin olacak. ImageView resimleri gostermek, videoView ise cekilen videoyu gostermek icin kullanilacak.


activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"    tools:context="com.example.gamze.cameraandvideoexample.MainActivity">


    <Button        android:id="@+id/imageButton"        android:layout_width="match_parent"        android:layout_height="wrap_content"
        android:text="Take Picture" />

    <Button        android:id="@+id/videoButton"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:text="Capture Video" />

    <ImageView        android:id="@+id/imageView"        android:layout_width="wrap_content"        android:layout_height="wrap_content" />
    <VideoView
        android:id="@+id/videoView"        android:layout_width="wrap_content"        android:layout_height="wrap_content" />
</LinearLayout>


Simdi ise MainActivity.java dosyamiza gerekli kodlari ekleyelim.


package com.example.gamze.cameraandvideoexample;

import android.content.Intent;
import android.graphics.Bitmap;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.MediaController;
import android.widget.VideoView;

public class MainActivity extends AppCompatActivity {

    private ImageView imageView;
    private VideoView videoView;
    private static final int IMAGE_REQUEST =1;
    private static final int VIDEO_REQUEST = 2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button takePicButton = (Button) findViewById(R.id.imageButton);
        takePicButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                imageView = ((ImageView) findViewById(R.id.imageView));
                Intent pic_intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
                startActivityForResult(pic_intent, IMAGE_REQUEST);
            }
        });
        Button captureVideoButton = ((Button) findViewById(R.id.videoButton));
        captureVideoButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                videoView = (VideoView)findViewById(R.id.videoView);
                Intent video_intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
                startActivityForResult(video_intent,VIDEO_REQUEST);
            }
        });
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if(resultCode != RESULT_OK) return;
        else if(requestCode == IMAGE_REQUEST){
            Bitmap image = (Bitmap)data.getExtras().get("data");
            imageView.setImageBitmap(image);
        }
        else if(requestCode == VIDEO_REQUEST){
            videoView.setVideoURI(data.getData());
            videoView.setMediaController(new MediaController(this));
            videoView.requestFocus();
            videoView.start();
        }
    }
}


Son durumda ekranimiz nasil gorunuyor ona bakalim.




ANDROID WEBVIEW OLUSTURMA - CREATING WEBVIEW

Merhaba, bugunku yazimda Android uygulamalarimizda WebView kullanimini anlatacagim. Oncelikle WebView nedir bunu ogrenelim. WebView sayesinde uygulamalarimiz icinde web sayfalarini acabiliriz. Bu sekilde uygulamamiz kapanmaz ve biz web sayfasina erisebiliriz.

Yeni proje olusturalim.Herseyden once bunu yapabilmemiz icin internete erismemiz gerekir. Yani bunun iznini almaliyiz. Bunun icin izinleri yazdigimiz kisim olan AndroidManifest. xml e internet erisim kodunu eklemeliyiz. Bunun icin application taginin oncesine asagidaki kod satirini eklemeliyiz.

&lt;uses-permission android:name="android.permission.INTERNET" /&gt;

Daha sonra activity_main.xml e gidip ordaki layoutu linear layout a cevirelim ve bir web view ekleyelim.

activity_main.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    tools:context="com.example.gamze.webwiewexample.MainActivity">


    <WebView        android:id="@+id/webWiewId"        android:layout_width="match_parent"        android:layout_height="match_parent" />
</LinearLayout>

Simdi ise MainActivity.java ya gecip kodlarimizi yazalim. Yapmamiz gereken sey su:

  • Ekledigimiz web view i id ile alacagiz. 
  • Daha sonra javascript kodlarinin eklenmesini sagliyoruz.
  • Acilmasini istedigimiz url i ekliyoruz.
MainActivity.java



package com.example.gamze.webwiewexample;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        WebView webView = ((WebView) findViewById(R.id.webWiewId));
        webView.getSettings().setJavaScriptEnabled(true);
        webView.loadUrl("http://gamzesen123.blogspot.com.tr/");
    }
}


Bu sekilde calistirdigimizda verdigimiz url ekranimizda aciliyor. Isterseniz bir buton ekleyip o butona tikladiginda sitenin acilmasini saglayabilirsiniz.

Ekran goruntumuz su sekilde olacaktir.