I am new to Android development and just installed the new Android sdk with Eclipse and ADT bundle. From this question, I knew about installing Intel X86 system image.But, I have one confusion about installing intel x86 for which I coudn't find any solution on internet.

In SDK manager, Intel x86 system image installation options are shown for each API level as in the picture.

image is here (since I have no privileges. Hope someone will correct it)

So, my question is that Do we need to have intel x86 system image for all API levels?
(I am making an application which will support from Android ICs to kitkat.)

I want to make animation on my main activity.. when my app is opened i want to open with animation ..

I have posted my main activity code and i want bounce animation while opening my pager xml.

import android.app.ActionBar;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.app.FragmentTransaction;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;


public class DesignMainActivity extends FragmentActivity {

ViewPager Tab;
TabPagerAdapter TabAdapter;
ActionBar actionBar;

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


    TabAdapter = new TabPagerAdapter(getSupportFragmentManager());

    Tab = (ViewPager)findViewById(R.id.pager);
    Tab.setOnPageChangeListener(
            new ViewPager.SimpleOnPageChangeListener() {
                @Override
                public void onPageSelected(int position) {

                    actionBar = getActionBar();
                    actionBar.setSelectedNavigationItem(position); 
                    }
            });
    Tab.setAdapter(TabAdapter);

    actionBar = getActionBar();
    //Enable Tabs on Action Bar
    actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    ActionBar.TabListener tabListener = new ActionBar.TabListener(){

        @Override
        public void onTabReselected(android.app.ActionBar.Tab tab,
                FragmentTransaction ft) {
            // TODO Auto-generated method stub

        }

        @Override
         public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {

            Tab.setCurrentItem(tab.getPosition());
        }

        @Override
        public void onTabUnselected(android.app.ActionBar.Tab tab,
                FragmentTransaction ft) {
            // TODO Auto-generated method stub

        }};
        //Add New Tab
        actionBar.addTab(actionBar.newTab().setText("Login").setTabListener(tabListener));
        actionBar.addTab(actionBar.newTab().setText("Register").setTabListener(tabListener));


       }


} 

**My Questions :

1.I want bounce Animation While opening my app.

2.I want to hide title bar.**

I'm developing a Android app to detect vehicle number plate. i did image processing up to findContours level of image. Now i need to convert following C++ code to Opencv Based Android java.

This is Original image

This is now i have after to Otsu’s threshold image

this is my andoid+opencv code (working 100%)

                    ImageView imgView  = (ImageView) findViewById(R.id.imageView1);
                    Bitmap bmp = BitmapFactory.decodeResource(getResources(),car);
                    //First convert Bitmap to Mat
                    Mat ImageMatin = new Mat ( bmp.getHeight(), bmp.getWidth(), CvType.CV_8U, new Scalar(4));                       
                    Mat ImageMatout = new Mat ( bmp.getHeight(), bmp.getWidth(), CvType.CV_8U, new Scalar(4));
                    Mat ImageMatBk = new Mat ( bmp.getHeight(), bmp.getWidth(), CvType.CV_8U, new Scalar(4));
                    Mat ImageMatTopHat = new Mat ( bmp.getHeight(), bmp.getWidth(), CvType.CV_8U, new Scalar(4));
                    Mat temp = new Mat ( bmp.getHeight(), bmp.getWidth(), CvType.CV_8U, new Scalar(4));

                    Bitmap myBitmap32 = bmp.copy(Bitmap.Config.ARGB_8888, true);
                    Utils.bitmapToMat(myBitmap32, ImageMatin);  


                    //Converting RGB to Gray.
                    Imgproc.cvtColor(ImageMatin, ImageMatBk, Imgproc.COLOR_RGB2GRAY,8);                     

                    Imgproc.dilate(ImageMatBk, temp, Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(9, 9)));
                    Imgproc.erode(temp, ImageMatTopHat, Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(9,9)));  

                    //Core.absdiff(current, previous, difference);
                    Core.absdiff(ImageMatTopHat, ImageMatBk, ImageMatout);                          

                    //Sobel operator in horizontal direction.                       
                    Imgproc.Sobel(ImageMatout,ImageMatout,CvType.CV_8U,1,0,3,1,0.4,Imgproc.BORDER_DEFAULT);

                    //Converting GaussianBlur                   
                    Imgproc.GaussianBlur(ImageMatout, ImageMatout, new Size(5,5),2);                        

                    Imgproc.dilate(ImageMatout, ImageMatout, Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(3,3)));

                    Mat element = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(17, 3));                       
                    Imgproc.morphologyEx(ImageMatout, ImageMatout, Imgproc.MORPH_CLOSE, element);

                    //threshold image
                    Imgproc.threshold(ImageMatout, ImageMatout, 0, 255, Imgproc.THRESH_OTSU+Imgproc.THRESH_BINARY);

Now i need to extract number Plate

i hope if i could convert following C++ code to java+opencv and apply i can do it. please help me to convert this..

                    std::vector rects;  
                    std::vector<std::vector >::iterator itc = contours.begin();  
                    while (itc != contours.end())  
                    {  
                             cv::RotatedRect mr = cv::minAreaRect(cv::Mat(*itc)); 
                           float area = fabs(cv::contourArea(*itc));  
                           float bbArea=mr.size.width * mr.size.height;  
                           float ratio = area/bbArea;  
                           if( (ratio < 0.45) || (bbArea < 400) ){  
                                    itc= contours.erase(itc);  
                           }else{  
                                    ++itc;  
                                    rects.push_back(mr);  
                           }  
                        } 

Environment: Latest NDK + Eclipse Juno + ADT + CDT. Everything is up to date.

When I try to debug my Android application natively, I get the following error:

 warning: Unable to find dynamic linker breakpoint function.
 GDB will retry eventurally.  Meanwhile, it is likely
 that GDB is unable to debug shared library initializers
 or resolve pending breakpoints after dlopen().

To ensure it is not my specific application, I created a simple dummy application. Here are the steps I took.

  1. From Eclipse, create a new Android application project (with min-sdk 16 and target-sdk 21)
  2. Added a class:

     package com.test.mytest1;

     public class MyNative {
       static {
         android.os.Debug.waitForDebugger();
         System.loadLibrary("mytest1");
       }
       native public static void init();
     }

Note that I have added a line to wait for the debugger to initialize.

  1. Called MyNative.init() from MainActivity's onCreate() method.

  2. From preferences, fixed NDK to point to C:\adt\ndk directory.

  3. From the project menu, selected Android Tools-->Add Native Support.

  4. From Properties->C++ Build, set build command to "ndk-build NDK_DEBUG=1"

  5. Here is the code in mytest1.cpp:


      static int x = 0;

      JNIEXPORT void JNICALL Java_com_test_mytest1_MyNative_init
        (JNIEnv *, jclass) {
        x++;
      }
  1. Added Application.mk in jni directory:

      APP_ABI := armeabi-v7a 
      APP_PLATFORM := android-16

Now, when I try to run the app as native application, it fails with the above mentioned message.

When I look at the apk file, lib/armeabi-v7a does contain gdbserver as well as libmytest1.so files.

The app does work. If I add a log() statement in my native method, it does get displayed in LogCat.

I am confused and tired. A simple thing like thing should just work out of the box. Wondering if you can share what you did differently to make it work. Regards.

I have a listview with play button to play songs in each row. When i click on play button its background changes to pause button. What i want is when I click on play button in one row, the button that has background set to pause image on previous click should automatically change to play image and only the button which I has clicked should have pause background. On click of button in a row of listview how to change other rows buttons background?

Regards, Naresh T

I am developing an android app based on webview. I have a question: Is it possible to apply LINKIFY method to ACTION BAR of app. Simply I mean when user clicks on action bar of app, it will open the main page of website. I really appreciate any help you can provide.

I have a form. Which has few rows. Every row has two text views side by side. the left textview is static and the right textview is dynamic. based on the text of right textview(it may be any number of lines) the origin of the next row must depend as shown below. I am using relativelayout and writing in xml. How can i do it.

enter image description here

Note: I dont want to use grid or table layout due to some limitation.

In our application,during server hit say logout there is a server hit and the user is navigated to Login screen . If in the process of server hit the user clicks on device home and pushes the application to background,after server hi success even if the user is on device home, the user is force pushed to Login.

The same scenario happens while navigating to any activity after success of server response.

As for me i would like to navigate the user to other screen even if he is in background,bu still make the application be in the background until the user clicks and opens it from recent apps.

Please let me know your valuable suggestions.

How to replace below string.

String test =  "This is my Test's cases";

Now i am replacing "'" with space means like this "This is my Tests cases" I tried:

  1) replace("'","")
  2) replaceAll("'","")
  3) replace("\'","")

... but i did not get any required results.

Test code:

String test = "The First American's style";
System.out.println("old text::"+test);      
test = test.replaceAll("'","\\'");
System.out.println("new text::"+test);

I run windows and used Macincloud to build my game and it installs fine on devices using testflightapp.com but when ever it starts it shows the unity logo splash then minimizes. My friend was able to get me a crash log but I have no clue in the world how to read it...

I have no clue what is going wrong... runs fine on windows and android...

Incident Identifier: 035E3FBC-75D7-4A83-ACFD-BFDBE1B76146
CrashReporter Key:   366e6d2ba3ef9141e57f3cb9bd69c3cf7830efdf
Hardware Model:      iPhone4,1
Process:             kanaji [317]
Path:                /var/mobile/Applications/5B46F2B2-ED6F-4BBA-8D97-ED5156F3F2A1/kanaji.app/kanaji
Identifier:          com.ubersoftech.kanaji
Version:             0.2.4-2 (0.2.4-2)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2014-09-10 19:59:30.353 -1000
OS Version:          iOS 7.1.1 (11D201)
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Thread 0 name:  main
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x39e091f0 __pthread_kill + 8
1   libsystem_pthread.dylib         0x39e73792 pthread_kill + 54
2   libsystem_c.dylib               0x39db9fd8 abort + 72
3   kanaji                          0x013ab5c0 0x91000 + 20030912
4   kanaji                          0x013c82f8 0x91000 + 20148984
5   libsystem_platform.dylib        0x39e6df90 _sigtramp + 40
6   libsystem_pthread.dylib         0x39e73792 pthread_kill + 54
7   libsystem_c.dylib               0x39db9fd8 abort + 72
8   kanaji                          0x00da7948 0x91000 + 13723976
9   kanaji                          0x00da295c 0x91000 + 13703516
10  kanaji                          0x00d95350 0x91000 + 13648720
11  Foundation                      0x2f9ad15e __NSFireDelayedPerform + 410
12  CoreFoundation                  0x2ef991b4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
13  CoreFoundation                  0x2ef98dca __CFRunLoopDoTimer + 778
14  CoreFoundation                  0x2ef97166 __CFRunLoopRun + 1206
15  CoreFoundation                  0x2ef01f0a CFRunLoopRunSpecific + 518
16  CoreFoundation                  0x2ef01cee CFRunLoopRunInMode + 102
17  GraphicsServices                0x33e5a65e GSEventRunModal + 134
18  UIKit                           0x3184d168 UIApplicationMain + 1132
19  kanaji                          0x00096c44 0x91000 + 23620
20  kanaji                          0x00096a74 0x91000 + 23156

Thread 1:
0   libsystem_kernel.dylib          0x39df6808 kevent64 + 24
1   libdispatch.dylib               0x39d38078 _dispatch_mgr_invoke + 228
2   libdispatch.dylib               0x39d37dfe _dispatch_mgr_thread$VARIANT$mp + 34

Thread 2:
0   libsystem_kernel.dylib          0x39e09c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x39e70bda _pthread_wqthread + 306
2   libsystem_pthread.dylib         0x39e70a94 start_wqthread + 4

Thread 3:
0   libsystem_kernel.dylib          0x39e09c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x39e70bda _pthread_wqthread + 306
2   libsystem_pthread.dylib         0x39e70a94 start_wqthread + 4

Thread 4:
0   libsystem_kernel.dylib          0x39e09c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x39e70bda _pthread_wqthread + 306
2   libsystem_pthread.dylib         0x39e70a94 start_wqthread + 4

Thread 5:
0   libsystem_kernel.dylib          0x39df6aa8 semaphore_wait_trap + 8
1   kanaji                          0x01492f88 0x91000 + 20979592
2   kanaji                          0x013eeba4 0x91000 + 20306852
3   kanaji                          0x0146ea68 0x91000 + 20830824
4   kanaji                          0x0148ba9c 0x91000 + 20949660
5   kanaji                          0x014a7c38 0x91000 + 21064760
6   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
7   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
8   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 6:
0   libsystem_kernel.dylib          0x39df6aa8 semaphore_wait_trap + 8
1   kanaji                          0x00fcdfc8 0x91000 + 15978440
2   kanaji                          0x00fcd6b0 0x91000 + 15976112
3   kanaji                          0x00fce4a4 0x91000 + 15979684
4   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
5   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
6   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 7:
0   libsystem_kernel.dylib          0x39df6aa8 semaphore_wait_trap + 8
1   kanaji                          0x014faec8 0x91000 + 21405384
2   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
3   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
4   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 8:
0   libsystem_kernel.dylib          0x39df6aa8 semaphore_wait_trap + 8
1   kanaji                          0x00fcdfc8 0x91000 + 15978440
2   kanaji                          0x00f10a3c 0x91000 + 15202876
3   kanaji                          0x00fce4a4 0x91000 + 15979684
4   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
5   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
6   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 9 name:  com.apple.NSURLConnectionLoader
Thread 9:
0   libsystem_kernel.dylib          0x39df6a58 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x39df6854 mach_msg + 44
2   CoreFoundation                  0x2ef98896 __CFRunLoopServiceMachPort + 150
3   CoreFoundation                  0x2ef96fbc __CFRunLoopRun + 780
4   CoreFoundation                  0x2ef01f0a CFRunLoopRunSpecific + 518
5   CoreFoundation                  0x2ef01cee CFRunLoopRunInMode + 102
6   Foundation                      0x2f941082 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7   Foundation                      0x2f9b6a5a __NSThread__main__ + 1058
8   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
9   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
10  libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 10:
0   libsystem_kernel.dylib          0x39e09c70 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x39e70bda _pthread_wqthread + 306
2   libsystem_pthread.dylib         0x39e70a94 start_wqthread + 4

Thread 11:
0   libsystem_kernel.dylib          0x39df6aa8 semaphore_wait_trap + 8
1   kanaji                          0x01228938 0x91000 + 18446648
2   kanaji                          0x0123d838 0x91000 + 18532408
3   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
4   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
5   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 12:
0   libsystem_kernel.dylib          0x39df6a58 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x39df6854 mach_msg + 44
2   AudioToolbox                    0x2e97d7f6 AURemoteIO::IOThread::Run() + 102
3   AudioToolbox                    0x2e9808dc AURemoteIO::IOThread::Entry(void*) + 4
4   AudioToolbox                    0x2e8bdfc0 CAPThread::Entry(CAPThread*) + 208
5   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
6   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
7   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 13:
0   libsystem_kernel.dylib          0x39e09544 __semwait_signal + 24
1   libsystem_c.dylib               0x39d7a988 nanosleep + 168
2   libsystem_c.dylib               0x39d7a8d6 usleep + 46
3   kanaji                          0x0122868a 0x91000 + 18445962
4   kanaji                          0x0123d822 0x91000 + 18532386
5   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
6   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
7   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 14 name:  com.apple.CFSocket.private
Thread 14:
0   libsystem_kernel.dylib          0x39e09434 __select + 20
1   CoreFoundation                  0x2ef9c758 __CFSocketManager + 480
2   libsystem_pthread.dylib         0x39e72916 _pthread_body + 138
3   libsystem_pthread.dylib         0x39e72886 _pthread_start + 98
4   libsystem_pthread.dylib         0x39e70aa0 thread_start + 4

Thread 0 crashed with ARM Thread State (32-bit):
    r0: 0x00000000    r1: 0x00000000      r2: 0x00000000      r3: 0x27d70990
    r4: 0x00000006    r5: 0x3bdae18c      r6: 0x00000006      r7: 0x27d70988
    r8: 0x04fede00    r9: 0x39e6df69     r10: 0x00000002     r11: 0x17681260
    ip: 0x00000148    sp: 0x27d7097c      lr: 0x39e73797      pc: 0x39e091f0
  cpsr: 0x00000010

Binary Images:
{Cut to conserve space in post}

I have a doubt regarding usage of data types for Images. We are developing a Xamain iOS application where we need to store images which are captured through photo view controller and the images pulled from the library. In order to implement this, which data types needs to be used? Can we use same data type for both of the images? If not, why can't we use and what is the difference?

Can anyone help me on this asap to proceed forward? It would be really great if I can get any sample code.

Thanks.

I need to save an NSArray of Google Cloud endpoint objects to file. When I look inside the .m file to see if it has an encode and decode method, it does not. All I see in the documentation is

/* This file was generated by the ServiceGenerator.
 * The ServiceGenerator is Copyright (c) 2014 Google Inc.
 */

How might I serialize the object/class so I can save the array to file. I would rather not subclass the endpoint class. The server can change at any time and having to edit encode/decode each time is extremely error likely. For background see the following other two questions on the matter:

How to save NSArray to and retrieve NSArray from file

caching response of google cloud endpoints with iOS

I am using xcode5 and iOS7

the encode/decode mentioned is so I could use

Bool result = [NSKeyedArchiver archiveRootObject:response toFile:arrayPath];
NSArray *arrayFromFile = [NSKeyedUnarchiver unarchiveObjectWithFile:arrayPath];

on the array

I am developing a .NET WebApi that will be accessed by IOS app and from a website with angular. Some parts of the api data is public. That means we will not ask for user to login to view this data.

But we don't want others to use this api to access these data. These data has some commercial value and we are only publishing it free for our website and APP users.

We thought about an API KEY. But anyone might be able to access this key from client JavaScript or if they de-compile the app.

What might be a good solution to allow public users to access this data through only our site/app, but restrict other users from accessing it.

I have a public website that does not require authentication. It's a lighting calculator for indoor cultivation. Anyone can enter and complete the process and ultimately save your settings for future use sharing it on Facebook or twitter.

The configuration is saved as a document in a database, using a REST api. At this time nothing prevents someone make a bot and fill my hard disk in a few hours.

What steps can I take to give protection to my service?

So I am working on a solo project that involves a lot of strings. In one of my smaller test cases there will be at least 70 million elements. So my question is, what is the largest possible size a TreeSet or a HashSet can reach until it can no longer grow OR until it reaches a size that it can no longer be feasible to use in terms of efficiency.

If I use an Open Source library which is released under a zLib like license, but it has dependencies on libraries that are using LGPL or GPL; what license am I able to release my project under? If I read things I find on the net it sounds like I can sell my project but I can't stop people from distributing it freely as per GPL?

I've been trying to come up with the best way to design my file manager for a project. I need to work with many file implementations and I have a File class made of 2 classes inside: Data and Descriptor.

enter image description here

As you can see, I have many different implementations of the Data class, one for each file organization. All of the implementations use records to organize their information but the fields for each kind of file (users, transactions, etc...) have to be stored as metadata inside their respective descriptor file. So basically my problem is trying to access and updating the descriptor of each file.

For example, while trying to search() inside the Users file from the Stacked class, I need the fields (username, name, last name, etc...) which are inside the Users Descriptor file, but I cant come up with a nice design for it. The only way I can think of is passing the Descriptor reference to each method (search, write, etc...) but I have a feeling that my solution would be bad design.

Please note that I still have to keep adding more file organizations for different files, so I want to plan ahead and have a nice file manager to handle all the requests the best way possible, but currently this is what I've come up with.

![Blockquote][1]

asdasdasdasdasdasdasdasdas asdasd asd asd asdas dasd asdas d adas dasd

asdasdasdasdasdasdasdasdas asdasd asd asd asdas dasd asdas d adas dasd

asdasdasdasdasdasdasdasdas asdasd asd asd asdas dasd asdas d adas dasd

asdasdasdasdasdasdasdasdas asdasd asd asd asdas dasd asdas d adas dasd

asdasdasdasdasdasdasdasdas asdasd asd asd asdas dasd asdas d adas dasd

asdasdasdasdasdasdasdasdas asdasd asd asd asdas dasd asdas d adas dasd

So I'm not a big fan of change and the new itunes connect is making me unhappy. I just uploaded an app binary and realized there is an issue I need to fix before Apple spends another 2 weeks reviewing it. In the old days, I could just reject the binary, but I am not seeing that as an option now. My app exists in the Pre-Release section, but I cannot figure out where to go to remove it. Where do I go and how do I do it?

I want to download my photos from old windows phone (synced on "Camera roll" folder). But windows phone only lets me to see these photos online. There is an option that sync this folder in two-way?

PS.: Sorry for my bad english.

When my nokia lumia 1020 is connected to my PC is it running off my internet or using my data?