Open kvijay1995 opened 9 years ago
we would additionally also require an server to host the database, and also to handle server side requests from the UI.
But before starting to build any of this stuff,we have to start with design i.e UI,we can later decide whether we want to add on the database feature to create and handle accounts
Yeah you're right, that would probably be the best way to start. I guess the first thing then is to start messing around with the java graphics engine? Or is there another way for UI design? I'll try googling for solutions.
i have never worked with java graphics engine before,i thought we'd start by using the Standard ADT tools,ADT gives us a modded form of eclipse which can be used to design the UI by swing.But like i said i hav no expertise with android ,If u let me knw how to work around the java graphics engine, we can work that way.what say?or if u come up other solution we can try that too.
and download these tools bro ,these are important for android development.You can download it from here .http://developer.android.com/tools/help/adt.html
Thanks man! I'll download that and start messing with it. Meanwhile, since you've never used git before it might be a good idea for you to check this link out:
https://try.github.io/levels/1/challenges/1
Even though that's just a trial version, it should give you a basic idea to do things in git. If you have spare time AND you're more interested in git, check this very helpful link out:
Thanks a lot bro! I had no idea on how to work on this thing before,those links really helped me a lot !
Hey i was googling a bit abt creating an android application,and i think we should start by learning about xml layouts and swing programming in java.we will have to create the UI of our application through xml.i also found out that rest of the coding can be done by importing java class written in swing.So lets start by learning some amount xml layout basics and java swing programming. Then we can work on our app.Though android studio provides us some tools,i think it would be pointless to use them without knowing the basics.
No problem dude! Glad it helped out!
Yeah I downloaded Android studio last night, and I was overwhelmed by all the info in it. So yea, I think what you said above is a good idea. Please let me know if you find anything useful that's relevant to XML/swing
hey when u try to run ur app using the avd u'll be facing a error saying intel haxm not installed.If u get that error let me knw i can help u with the solution.
And mostly try to run ur app using mobile by downloading the appropriate driver,unless ur system has a high end config,u wiil be facing a lot problems with the android emulator,
hey bud i didnt know how to send it in github but here is the layout of my app,i used most of the code from some reference sites and did what i could .Im yet to add an splash screen to this one,
On Sat, Jan 3, 2015 at 11:29 AM, Vijay Thiagarajan <notifications@github.com
wrote:
No problem dude! Glad it helped out!
Yeah I downloaded Android studio last night, and I was overwhelmed by all the info in it. So yea, I think what you said above is a good idea. Please let me know if you find anything useful that's relevant to XML/swing
— Reply to this email directly or view it on GitHub https://github.com/Uttam-Gupta/Project-songshare/issues/1#issuecomment-68584670 .
i did this one in eclipse
On Sun, Jan 4, 2015 at 11:24 AM, uttam gupta vuubn.87foru@gmail.com wrote:
hey bud i didnt know how to send it in github but here is the layout of my app,i used most of the code from some reference sites and did what i could .Im yet to add an splash screen to this one,
On Sat, Jan 3, 2015 at 11:29 AM, Vijay Thiagarajan < notifications@github.com> wrote:
No problem dude! Glad it helped out!
Yeah I downloaded Android studio last night, and I was overwhelmed by all the info in it. So yea, I think what you said above is a good idea. Please let me know if you find anything useful that's relevant to XML/swing
— Reply to this email directly or view it on GitHub https://github.com/Uttam-Gupta/Project-songshare/issues/1#issuecomment-68584670 .
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
Dude this tutorial gives you an good idea of working with layouts ! check it out...... https://www.youtube.com/watch?v=xn9KYnwIoBE
hey this is the mainxml with horizontal view and buttons.Just include it in the activity xml.i have also tagged the main java activity .
On Sun, Jan 4, 2015 at 11:25 AM, uttam gupta vuubn.87foru@gmail.com wrote:
i did this one in eclipse
On Sun, Jan 4, 2015 at 11:24 AM, uttam gupta vuubn.87foru@gmail.com wrote:
hey bud i didnt know how to send it in github but here is the layout of my app,i used most of the code from some reference sites and did what i could .Im yet to add an splash screen to this one,
On Sat, Jan 3, 2015 at 11:29 AM, Vijay Thiagarajan < notifications@github.com> wrote:
No problem dude! Glad it helped out!
Yeah I downloaded Android studio last night, and I was overwhelmed by all the info in it. So yea, I think what you said above is a good idea. Please let me know if you find anything useful that's relevant to XML/swing
— Reply to this email directly or view it on GitHub https://github.com/Uttam-Gupta/Project-songshare/issues/1#issuecomment-68584670 .
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:src="@drawable/bgone" android:id="@+id/imagedisplay" android:layout_width="400dp" android:layout_height="200dp" android:layout_gravity="center"/> <Button android:id="@+id/setwall" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Set As Wallpaper" android:background="#ff24e2ff" /> <HorizontalScrollView android:layout_width="400dp" android:layout_height="wrap_content" android:layout_gravity="center" android:background="#fffbfdff"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<ImageView android:src="@drawable/bg"
android:id="@+id/img5"
android:layout_width="200dp"
android:layout_height="200dp"
android:padding="1dp"
android:layout_gravity="center"/>
<ImageView android:src="@drawable/bgtwo"
android:id="@+id/img4"
android:layout_width="200dp"
android:layout_height="200dp"
android:padding="1dp"
android:layout_gravity="center"/><ImageView android:src="@drawable/bgone"
android:id="@+id/img1"
android:layout_width="200dp"
android:layout_height="200dp"
android:padding="1dp"
android:layout_gravity="center"/><ImageView android:src="@drawable/bg"
android:id="@+id/img2"
android:layout_width="200dp"
android:layout_height="200dp"
android:padding="1dp"
android:layout_gravity="center"/><ImageView android:src="@drawable/bgone"
android:id="@+id/img3"
android:layout_width="200dp"
android:layout_height="200dp"
android:padding="1dp"
android:layout_gravity="center"/>
package com.guptaventures.batmanultimatewallpapers;
import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.app.WallpaperManager; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.ImageView;
import java.io.IOException;
public class MainActivity extends ActionBarActivity implements View.OnClickListener { ImageView display; int toPhone;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
toPhone = R.drawable.bgone;
display = (ImageView) findViewById(R.id.imagedisplay);
ImageView image1 = (ImageView) findViewById(R.id.img5);
ImageView image2 = (ImageView) findViewById(R.id.img4);
ImageView image3 = (ImageView) findViewById(R.id.img1);
ImageView image4 = (ImageView) findViewById(R.id.img2);
ImageView image5 = (ImageView) findViewById(R.id.img3);
Button sw = (Button) findViewById(R.id.setwall);
image1.setOnClickListener(this);
image2.setOnClickListener(this);
image3.setOnClickListener(this);
image4.setOnClickListener(this);
image5.setOnClickListener(this);
sw.setOnClickListener(this);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.img5:
display.setImageResource(R.drawable.bg);
toPhone = R.drawable.bg;
break;
case R.id.img4:
display.setImageResource(R.drawable.bgtwo);
toPhone = R.drawable.bgtwo;
break;
case R.id.img1:
display.setImageResource(R.drawable.bgone);
toPhone = R.drawable.bgone;
break;
case R.id.img2:
display.setImageResource(R.drawable.bg);
toPhone = R.drawable.bg;
break;
case R.id.img3:
display.setImageResource(R.drawable.bgone);
toPhone = R.drawable.bgone;
break;
case R.id.setwall:
WallpaperManager myWallpaperManager
= WallpaperManager.getInstance(getApplicationContext());
try {
myWallpaperManager.setResource(toPhone);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
A thread to discuss the ideas for this app. As we previously discussed, I remember that we need the following stack:
1) Front-end - Java for Android 2) Back-end - MySQL work bench
Please add anything that I've missed here @Uttam-Gupta