Monday 12 May 2014

Different Types of Android Errors | Android Programming Bugs

·  Syncing Error

This is one of the most frequent errors you will get while trying to sync your Android Device. Its solution is somewhat similar to fixing syncing for most Windows devices. First, remove the account information from  device, reboot/restart, and re-enter the information back into  device. Try to download our messages/sync the device.STEPS:
  • Go to Menu >> Settings>> Accounts and Sync
  • Identify the application with issue
  • Remove from your accounts to manage
  • Reboot/restart your Android Device
  • Go back to Menu >> Settings>> Accounts and Sync
  • Add the account
  • Attempt to sync (use the “sync all” button if needed)
·  SMS Error Cause Code 97 Class 2

This error pops up while sending SMS. Users are usually not aware that this error could be possibly due to text plan or lack of it. While activating your number, you may be required to call an automated number. Please follow instructions carefully or your SMS service might be disrupted even after few months.
·  Battery Drain

Battery woes seem to be a never ending saga for Android. No matter which version you are using Android OS simply is a battery hog.  It gets worst with services like Bluetooth, Wi-Fi and GPS. These services drain out your battery quicker than you can probably imagine. So make sure that you turn off such services when not in use. Some other ways to beat the battery drain is by disabling auto-updation of apps, adjusting brightness level of your screen, and deleting unnecessary apps.

·  Crashes

Frequent crashes having become synonymous with Android. It is annoying to helplessly watch your mobile reboot or freeze while you are just in the middle of sending a text, about to disconnect a call, or closing an app. In order to solve this problem, you simply need to check whether RAM has enough space. Just delete the clutter such as unwanted apps or images. You can also remove apps that not compatible with current version of your OS.  This will solve problem to a great extent.


·  “Installation Unsuccessful Error” in GooglePlay


One of the most common errors is “Download Unsuccessful” or “Installation Unsuccessful” while you are trying to update or download app from Google Play.
Here is how you can fix this problem:
Clear Cache(Applications > Manage Applications > All > GooglePlay and hit “Clear Data”
In most cases this will solve the problem. If not, you are very likely facing an SD card issue.
You can follow these simple steps:
Unmount SD Card >> Uninstall Play Store Updates (Settings > Applications > All > PlayStore and hitting “Uninstall Updates”)

(203) 208-3081


Using Delayed_jobs Gem in Rails 3

Consider we have a long running task like sending emails to large number of users,the user have to wait until the request is completed then only the rails application can accept another request.so it is preferable to run the long running tasks in the background,for that we can use sidekiq or resque or DelayedJob etc.Sidekiq and rescue requires redis,here we are going to use delayedjob.Lets us see how to use delayed_jobs gem in our rails application.

Add the following to your gem file.

gem 'delayed_job_active_record'

Run the bundle install command to install the gems.

The following command will create a table as it is required to have a jobs table for AR backend.

rails generate delayed_job:active_record
rake db:migrate


Then we can use .delay method to process any job in the background.

without delayed_job  

UserMailer.notification_email(self).deliver

Here we are going to remove the .deliver and add .delay to the UserMailer

UserMailer.delay.notification_email(self)


Thats it! now the process will be added to the delayed_jobs table.

But we have to start the jobs,for that use the following command by entering into your application directory. 

script/delayed_job


In staging add gem "daemons" bundle and run rails generate delayed_job.

RAILS_ENV=staging script/delayed_job start

In production add gem "daemons" bundle and run rails generate delayed_job.

RAILS_ENV=production script/delayed_job start



(203) 208-3081


Monday 5 May 2014

R cannot be resolved to a variable [duplicate]

Go to Project > Properties > Java Build Path > tab [Order and Export] > Tick Android Version Checkbox 
Then if your workspace does not build automatically…




Android Offshore Company in Hyderabad India

We Have worked in all the major platforms including iPhone, IOS 7, iPad, Android and others, Panzer Technologies was one of the first companies in India to launch offshore Android app Development Company. Our specialized Android developers are provides the following services from our Panzer Tech.
  • Widget Development
  • Application Development
  • Android Consulting
  • Support & Maintenance
  • Much more…
Panzer Technologies
(203) 208-3081

Tuesday 29 April 2014

Installing Ruby on Rails on Linux Machine

You can follow the steps below to install ruby on rails on your linux machine.Open your terminal and follow the steps below.

First we are going to install curl,we will be fetching RVM by using curl.
sudo apt-get install curl

Installing RVM:-
RVM means ruby version manager it is used to maintain multiple ruby versions.It is highly recommended to use RVM  as sometimes you may want to use earlier ruby versions(ex:- 1.8.7,1.9.3) for older projects and current version for the latest projects(ex:- 2.1) and this problem is solved by RVM,you can refer the documentation for other versions and full details .

We can install RVM using the following command.

curl -L get.rvm.io | bash -s stable

In order to source the rvm scripts file we will be using this command. 

source ~/.rvm/scripts/rvm
This command will install the dependencies.

rvm requirements
you can get the list of ruby versions available by using

rvm list known
Now we can install the required ruby version with this command

rvm install RUBY_VERSION
ex:- rvm install 2.1.0
now we can check the ruby version installed by using

ruby -v

If you want to set ruby 2.1.0 as default ruby version then use

rvm --default use 2.1.0

As both RVM and some version of ruby are installed in our machine and we can proceed with installation of rails.
we can install rails by using the following command.

gem install rails

The above command will install the latest rails version,if you want to install some other version of rails you can use

gem install rails -v SOME_VERSION

ex:- gem install rails -v 3.2.11

That's it you can check your rails version using rails -v in your terminal.

Call Us – (203) 208 3081
Write us – sales@panzertechnologies.com.


Monday 28 April 2014

Open the iPhone Simulator Using Terminal

 First the project installed in application folder and then follow the following command are

$ OPEN /Applcaition Folider/Xcode.app/Content/Developer/Platform/Iphone simulator.platform/Developer/applications/iphone simulator.app

add alias name to your ./bash profile if you want

alias simulator=‘open PEN /Applcaition Folider/Xcode.app/Content/Developer/Platform/Iphone simulator.platform/Developer/applications/iphone simulator.app’

now just type in command
$ Simultor

Call Us – (203) 208 3081
Write us – sales@panzertechnologies.com



Friday 25 April 2014

How To install Android environment | Android Developer Hyderabad


How To install Android environment:
Here’s a quick start installation guide to get you up and running with the Google Android Software Development Kit (SDK). This guide will describe how to install the Android SDK and set up your chosen development environments. If you’ haven’t already done so you can download the Android SDK from the link below, then we can get started.
First you’ll need to download the Android SDK source files:
( http://code.google.com/android/download.html )
System Requirements
In order to first use the Android SDK code and tools for development you will of course need a suitable environment develop from.
Currently the following operating systems are supported:
  • Windows XP or Vista
  • Mac OS X 10.4.8 or later (x86 only)
  • Linux (tested on Linux Ubuntu Dapper Drake)
You will also need to install a suitable development environment such as:
  1. Eclipse
  2. JDK (Java Development Kit)
  3. Android SDK
  4. ADT (Android Development Tools)



1.Installing the Eclipse:
  1. Download and install Eclipse IDE latest version or 3.2 or 3.3 or above. Recommended version is “Eclipse IDE for Java Developers”
                                  http://www.eclipse.org/downloads/.
Ø  For Windows, The Eclipse download comes as a big ZIP file that you install by extracting the files to your favorite directory. We’ll assume that you extracted to C:/eclipse.
Ø  For Mac OS X, The Eclipse download comes as a big tar ball (.gz file) that you install by extracting             the files to your favorite directory. we'll assume that you extracted to /usr/lib/eclipse.
2.Installing the JDK:
  1. Install JDK (Java Development Kit) version 5.0 or 6.0.


Ø  For Windows, you can go to http://java.sun.com/javase/downloads and choose JDK 6 Update.

Ø  In Mac OS X, we don't need to do this as JDK (5.) is built-in installed with Mac OS X.
3.Installing the Android SDK
First you will need to download the Android SDK pack .zip archive, once downloaded find a suitable installation location on your machine and extract the zipped files.
Mac OS X
  1. In the home directory locate the .bash_profile and locating the PATH variable add the location to your $SDK_ROOT/tools folder.
Windows XP / Vista
  1. Download the latest Android SDK.
  2. Unzip to C:\AndroidSDK
  3. Right-click on (My) Computer, and select Properties
  4. Go to Advanced settings
    • XP: Click the Advanced tab
    • Vista/7: Click Advanced system settings on the left
  5. Click the Environment Variables button
  6. double-click on Path (under System Variables)
  7. Add the full path to the tools/ directory:
C:\AndroidSDK\tools\
(Make sure a semicolon (;) separates this new path from all the others)
The Android SDK also requires a suitable development environment to work in, here’s the installation guides for each of the supported environments.

4.Installing the ADT Plugin:

  1. Start Eclipse, then select Help > Install New Software.
  2. In the Available Software dialog, click Add....
  3. In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field.
In the "Location" field, enter this URL:
Note: If you have trouble acquiring the plugin, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).
Click OK.
  1. Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.
  2. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
  3. Restart Eclipse.
Configuring the ADT Plugin:
Once you've successfully downnloaded ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
  1. Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
  2. Select Android from the left panel.
  3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.   Click Apply, then OK.
Updating the ADT Plugin
To update the ADT plugin to the latest version, follow these steps:
  1. Select Help > Software Updates > Find and Install….
  2. Select Search for updates of the currently installed features and press Finish.
  3. If any update for ADT is available, select and install.
Alternatively:
  1. Select Help > Software Updates > Manage Configuration.
  2. Navigate down the tree and select Android Development Tools <version>
Create New Project
  1. Start Eclipse
  2. Click on File-> New -> Project
  3. Select "Android Project" and click Next.
  4. Fill in the project details with the following values:
1.    Project name: HelloAndroid
2.    Application name: Hello, Android
3.    Package name: com.example.helloandroid (or your own private namespace)
4.    Create Activity: HelloAndroid
  1. Choose minimum Android target version.
  2. Click Finish project.

Your Android project is now ready. It should be visible in the Package Explorer on the left. Open the HelloAndroid.java file, located inside HelloAndroid > src > com.example.helloandroid). It should look like this:
package com.example.helloandroid;



import android.app.Activity;

import android.os.Bundle;



public class HelloAndroid extends Activity {

    /** Called when the activity is first created. */

    @Override

    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);

    }

}

Run the Application

The Eclipse plugin makes it easy to run your applications:
  1. Select Run > Run.
  2. Select "Android Application".
Call Us – (203) 208 3081
Write us – sales@panzertechnologies.com