Software Development Blog

In this blog I will give tutorials on programming technologies.I will try to bring solutions of problems in computer science and software development.
App :
https://play.google.com/store/apps/details?id=com.sc.myblog

It will create the testsite as project. Each project consist of many sub projects call apps. Lets create a app and call it soapapp, Which will take input soap requests. and will response json. I will write a blog on it latter on.

python manage.py startapp soapapp

Use terminal and write these command

>> ls

you will see component if django app like views, models, tests with (py) extensions, ofcourse it is python project

Views.py

So in views. py we will create a view. A simple code that will response ok is attached

Monday, December 15, 2014

In this blog I will demonstrate how to set up environment for development of apps for SW2.
I purchase SW2 because of its benefits written below

# Now I can set my mobile on silence mod in office. When any call comes SW2 notify me.

# I have 5 inc mobile. Now I dont need to pick up every time I gets any notification. I just use my watch to see if the notification is important for me i.e I wana reply only then I pick phone. It saves time for me ... as I am a busy guy :)

# I can take selfy by adjusting my mobile on some place and with the help of SW2 I can capture picture.

# There are holes in software of this device, there are great opportunities to build software for it

Import projects in this folder. If you find any dependency issue. Right click each project and go to Properties -> Android -> Android target project and make it 4.4.2. After doing this to all clean and build workspace.

Step 2 Run a project on smartwatch 2:

# Now run a sample project. Lets say HelloActiveLowPowerPreferenceActivity. If your SW2 is connected with phone you can see below app, On Clicking text counters increment .

Any mistakes in above step case crashes. We can speed up this process with some ORM, In this tutorial we will create a database with OrmLite and will see how many steps in sqlite database management we can skip. This is a basic level tutorial.

Wednesday, May 22, 2013

Pre-req: you should familiar with eclipse, know android programming and have knowledge of AOP.

Hi guys,

Software development with Aspect oriented programming(AOP) is very popular these days. Because it is easy use and apply. And we can achieve good level of modularity and re-usability in our software architectures.
So I decide to deliver a presentation in my office. While preparing presentation I am writing this blog. The idea of my presentation is to introduce AOP and explain it with a demonstration (Sample), My sample will show how we can use AOP in android development. I will surly write blogs on android development with AOP but step by step.

AOP is also useful in enhancing legacy systems. By that I mean if you dont want to change existing code of system then create new modules in AOP. It will help you to keep separate no code with old one.

So lets start with step up eclipse and create a hello world android project with AOP.

Install AOP tool for eclipse:
1) Open eclipse and go to eclipse market place. Type AJDT (AspectJ Development Tools) in search bar. Choose respective plugin for eclipse. I am going to use Aspectj for compilation.

2) For example for my juno eclipse it is

3) Download and install then restart eclipse

Create android project:

Assuming you guys know how to create android project.

Fix android project for aspects

1) Right click android project and go to Configure and then Convert to AspectJ project. By doing that compile time errors will be remove and you can start creating aspects.

2) Know create a prospect , I am creating aspect to print some words on start and end of onCreate() functionin activity

3) Right click and run android project , you can see the printing in logs below